@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,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IR-level state declaration.
|
|
3
|
+
*
|
|
4
|
+
* Authoring-time superset of ui-bridge-auto's runtime State shape. The
|
|
5
|
+
* IR -> WorkflowConfig adapter strips IR-only fields (provenance, metadata,
|
|
6
|
+
* elementIds, incomingTransitions, visualRefs) before handing to the runtime.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { IRElementCriteria } from "./element-criteria";
|
|
10
|
+
import type { IRCrossRef, IRMetadata, IRProvenance, IRVisualRef } from "./primitives";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Property-level condition on a matched element. Mirrors
|
|
14
|
+
* `StateCondition` in ui-bridge-auto/src/types/state.ts:83.
|
|
15
|
+
*/
|
|
16
|
+
export interface IRStateCondition {
|
|
17
|
+
element: IRElementCriteria;
|
|
18
|
+
property:
|
|
19
|
+
| "visible"
|
|
20
|
+
| "enabled"
|
|
21
|
+
| "checked"
|
|
22
|
+
| "expanded"
|
|
23
|
+
| "selected"
|
|
24
|
+
| "text"
|
|
25
|
+
| "value";
|
|
26
|
+
expected: unknown;
|
|
27
|
+
comparator?: "equals" | "contains" | "matches" | "greaterThan" | "lessThan";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* IR state declaration.
|
|
32
|
+
*
|
|
33
|
+
* Anchored to ui-bridge-auto's `State` shape (ui-bridge-auto/src/types/state.ts:23)
|
|
34
|
+
* — extends it with IR-only fields. Runtime tracking fields (enteredAt,
|
|
35
|
+
* exitedAt, observationCount) are deliberately absent: those are managed by
|
|
36
|
+
* the state machine at execution time.
|
|
37
|
+
*/
|
|
38
|
+
export interface IRState {
|
|
39
|
+
// Identity --------------------------------------------------------------
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
|
|
44
|
+
// Predicates (canonical) -----------------------------------------------
|
|
45
|
+
/** Element criteria that must ALL be satisfied for this state to be active. */
|
|
46
|
+
requiredElements: IRElementCriteria[];
|
|
47
|
+
/** Element criteria where NONE may be satisfied (any match disqualifies). */
|
|
48
|
+
excludedElements?: IRElementCriteria[];
|
|
49
|
+
/** Additional property checks on matched elements. */
|
|
50
|
+
conditions?: IRStateCondition[];
|
|
51
|
+
|
|
52
|
+
// Lifecycle / pathfinding hints ----------------------------------------
|
|
53
|
+
/** Whether this is a valid initial/starting state. */
|
|
54
|
+
isInitial?: boolean;
|
|
55
|
+
/** Whether this is a terminal state (no outgoing transitions). */
|
|
56
|
+
isTerminal?: boolean;
|
|
57
|
+
/** Whether this state is modal/blocking (e.g., a dialog). */
|
|
58
|
+
blocking?: boolean;
|
|
59
|
+
/** Logical group this state belongs to. */
|
|
60
|
+
group?: string;
|
|
61
|
+
/** Navigation cost weight for pathfinding (default 1.0). */
|
|
62
|
+
pathCost?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Free-text precondition required for this state to be entered, mirroring
|
|
65
|
+
* legacy `assertion.precondition` strings (e.g., "A workflow is paused at a
|
|
66
|
+
* breakpoint"). Authoring-time documentation; not enforced at runtime.
|
|
67
|
+
*/
|
|
68
|
+
precondition?: string;
|
|
69
|
+
|
|
70
|
+
// IR-only fields (stripped by adapter) ---------------------------------
|
|
71
|
+
/**
|
|
72
|
+
* Optional companion list of element IDs that resolved at registration
|
|
73
|
+
* time. The runtime SDK fills this in when criteria resolve to specific
|
|
74
|
+
* registered elements. Authors do not set this directly.
|
|
75
|
+
*/
|
|
76
|
+
elementIds?: string[];
|
|
77
|
+
/**
|
|
78
|
+
* Derived/computed at IR-emission time — list of transitions that activate
|
|
79
|
+
* this state. Authoring-time hint for visualization; not authored directly.
|
|
80
|
+
*/
|
|
81
|
+
incomingTransitions?: string[];
|
|
82
|
+
/** Semantic metadata routed through useUIAnnotation store at runtime. */
|
|
83
|
+
metadata?: IRMetadata;
|
|
84
|
+
/** Where this declaration came from. */
|
|
85
|
+
provenance?: IRProvenance;
|
|
86
|
+
/** Cross-document references. */
|
|
87
|
+
crossRefs?: IRCrossRef[];
|
|
88
|
+
/** Optional visual reference (section 8). */
|
|
89
|
+
visualRefs?: IRVisualRef[];
|
|
90
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IR-level transition declaration.
|
|
3
|
+
*
|
|
4
|
+
* Anchored to ui-bridge-auto's `Transition` shape
|
|
5
|
+
* (ui-bridge-auto/src/types/transition.ts:103) and extended with IR-only
|
|
6
|
+
* fields (effect, provenance, crossRefs).
|
|
7
|
+
*
|
|
8
|
+
* `exitStates` is a HINT at the IR level — when omitted, the adapter populates
|
|
9
|
+
* `[]` so the runtime contract (which requires the field) is satisfied.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { IRElementCriteria } from "./element-criteria";
|
|
13
|
+
import type { IRCrossRef, IREffect, IRMetadata, IRProvenance } from "./primitives";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Wait specification for the runtime to settle after an action.
|
|
17
|
+
* Mirrors `WaitSpec` in ui-bridge-auto/src/types/transition.ts:56.
|
|
18
|
+
*/
|
|
19
|
+
export interface IRWaitSpec {
|
|
20
|
+
type: "idle" | "element" | "state" | "time" | "condition" | "vanish" | "change" | "stable";
|
|
21
|
+
query?: IRElementCriteria;
|
|
22
|
+
stateId?: string;
|
|
23
|
+
ms?: number;
|
|
24
|
+
timeout?: number;
|
|
25
|
+
property?: string;
|
|
26
|
+
quietPeriodMs?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A single action step within a transition. Mirrors `TransitionAction` in
|
|
31
|
+
* ui-bridge-auto/src/types/transition.ts:81 with the difference that `type`
|
|
32
|
+
* is a free-form string here — the IR doesn't bind authors to a specific
|
|
33
|
+
* action vocabulary; that constraint applies at the runtime adapter layer.
|
|
34
|
+
*/
|
|
35
|
+
export interface IRTransitionAction {
|
|
36
|
+
/** The action to perform (e.g., "click", "type", "submit"). */
|
|
37
|
+
type: string;
|
|
38
|
+
/** Criteria to find the target element. */
|
|
39
|
+
target: IRElementCriteria;
|
|
40
|
+
/** Action-specific parameters. */
|
|
41
|
+
params?: Record<string, unknown>;
|
|
42
|
+
/** Optional wait specification applied after this action completes. */
|
|
43
|
+
waitAfter?: IRWaitSpec;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* IR transition declaration.
|
|
48
|
+
*
|
|
49
|
+
* Authoring-time superset of ui-bridge-auto's `Transition`. Reliability
|
|
50
|
+
* tracking fields (successCount, failureCount, averageDurationMs,
|
|
51
|
+
* lastExecutedAt) are deliberately absent — the runtime owns them.
|
|
52
|
+
*/
|
|
53
|
+
export interface IRTransition {
|
|
54
|
+
// Identity --------------------------------------------------------------
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
|
|
59
|
+
// Pre/post conditions ---------------------------------------------------
|
|
60
|
+
/** Precondition: all of these states must be active. */
|
|
61
|
+
fromStates: string[];
|
|
62
|
+
/** States to enter after the transition completes. */
|
|
63
|
+
activateStates: string[];
|
|
64
|
+
/**
|
|
65
|
+
* States to leave after the transition completes.
|
|
66
|
+
*
|
|
67
|
+
* IR-level HINT: omit it and the adapter defaults to `[]`. The runtime
|
|
68
|
+
* type (`Transition.exitStates: string[]` in
|
|
69
|
+
* ui-bridge-auto/src/types/transition.ts:116) requires the field; the
|
|
70
|
+
* adapter normalizes.
|
|
71
|
+
*/
|
|
72
|
+
exitStates?: string[];
|
|
73
|
+
|
|
74
|
+
// Action sequence -------------------------------------------------------
|
|
75
|
+
actions: IRTransitionAction[];
|
|
76
|
+
|
|
77
|
+
// Pathfinding hints -----------------------------------------------------
|
|
78
|
+
/** Navigation cost for pathfinding (default 1.0). */
|
|
79
|
+
pathCost?: number;
|
|
80
|
+
/** Whether this transition can be reversed. */
|
|
81
|
+
bidirectional?: boolean;
|
|
82
|
+
|
|
83
|
+
// IR-only fields (stripped by adapter) ----------------------------------
|
|
84
|
+
/** Side-effect annotation. Drives counterfactual + auto-regression gating. */
|
|
85
|
+
effect?: IREffect;
|
|
86
|
+
/** Semantic metadata routed through useUIAnnotation store at runtime. */
|
|
87
|
+
metadata?: IRMetadata;
|
|
88
|
+
/** Where this declaration came from. */
|
|
89
|
+
provenance?: IRProvenance;
|
|
90
|
+
/** Cross-document references. */
|
|
91
|
+
crossRefs?: IRCrossRef[];
|
|
92
|
+
}
|
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflow Types
|
|
3
|
+
*
|
|
4
|
+
* Canonical type definitions for the unified Workflow Builder system.
|
|
5
|
+
* Shared across qontinui-runner and qontinui-web.
|
|
6
|
+
*
|
|
7
|
+
* All automation is organized into four phases: Setup, Verification, Agentic, Completion.
|
|
8
|
+
*
|
|
9
|
+
* Execution Order:
|
|
10
|
+
* Setup (once) -> [Verification <-> Agentic]* -> Completion (once)
|
|
11
|
+
*
|
|
12
|
+
* Step Types (4 core types):
|
|
13
|
+
* command - Shell commands, checks, check groups, tests
|
|
14
|
+
* ui_bridge - UI Bridge SDK interactions (navigate, execute, assert, snapshot)
|
|
15
|
+
* prompt - AI task instructions
|
|
16
|
+
* workflow - Run a saved workflow inline (composition)
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
// =============================================================================
|
|
20
|
+
// Generated frame types — source of truth is qontinui-schemas/rust/src/workflow.rs
|
|
21
|
+
// These are produced by the schemars -> JSON Schema -> json-schema-to-typescript
|
|
22
|
+
// pipeline. Do NOT redeclare them here; re-export from ../generated/*.
|
|
23
|
+
//
|
|
24
|
+
// Step arrays on UnifiedWorkflow / WorkflowStage are typed as `unknown[]` by
|
|
25
|
+
// the generator. Typed step arrays are part of the Wave 4 step migration and
|
|
26
|
+
// remain hand-authored below (BaseStep, CommandStep, PromptStep, UiBridgeStep,
|
|
27
|
+
// WorkflowStep, and the per-phase aliases).
|
|
28
|
+
// =============================================================================
|
|
29
|
+
|
|
30
|
+
export type { LogSourceSelection } from "../generated/LogSourceSelection";
|
|
31
|
+
export type { HealthCheckUrl } from "../generated/HealthCheckUrl";
|
|
32
|
+
export type { RoutingRule } from "../generated/RoutingRule";
|
|
33
|
+
export type { ModelOverrideConfig } from "../generated/ModelOverrideConfig";
|
|
34
|
+
export type { StageCondition } from "../generated/StageCondition";
|
|
35
|
+
export type { RetryPolicy } from "../generated/RetryPolicy";
|
|
36
|
+
export type { StageOutput } from "../generated/StageOutput";
|
|
37
|
+
export type { StageInput } from "../generated/StageInput";
|
|
38
|
+
export type { WorkflowStage } from "../generated/WorkflowStage";
|
|
39
|
+
export type { UnifiedWorkflow } from "../generated/UnifiedWorkflow";
|
|
40
|
+
export type { WorkflowArchitecture } from "../generated/WorkflowArchitecture";
|
|
41
|
+
|
|
42
|
+
export type { BaseStepFields } from "../generated/BaseStepFields";
|
|
43
|
+
export type { RetrySpec } from "../generated/RetrySpec";
|
|
44
|
+
|
|
45
|
+
// Step DTOs (generated from qontinui-types::workflow_step)
|
|
46
|
+
export type { CommandStep } from "../generated/CommandStep";
|
|
47
|
+
export type { PromptStep } from "../generated/PromptStep";
|
|
48
|
+
export type { UiBridgeStep } from "../generated/UiBridgeStep";
|
|
49
|
+
export type { WorkflowStep } from "../generated/WorkflowStep";
|
|
50
|
+
export type { UnifiedStep } from "../generated/UnifiedStep";
|
|
51
|
+
export type { CanonicalStep } from "../generated/CanonicalStep";
|
|
52
|
+
export type { HttpMethod } from "../generated/HttpMethod";
|
|
53
|
+
export type { ApiContentType } from "../generated/ApiContentType";
|
|
54
|
+
export type { ApiAssertion } from "../generated/ApiAssertion";
|
|
55
|
+
export type { ApiVariableExtraction } from "../generated/ApiVariableExtraction";
|
|
56
|
+
export type { TestType } from "../generated/TestType";
|
|
57
|
+
export type { PlaywrightExecutionMode } from "../generated/PlaywrightExecutionMode";
|
|
58
|
+
export type { CheckType } from "../generated/CheckType";
|
|
59
|
+
export type { CommandMode } from "../generated/CommandMode";
|
|
60
|
+
export type { UiBridgeAction } from "../generated/UiBridgeAction";
|
|
61
|
+
export type { VerificationCategoryKind } from "../generated/VerificationCategoryKind";
|
|
62
|
+
|
|
63
|
+
// ModelOverrides is a hand-authored convenience alias: the generated
|
|
64
|
+
// UnifiedWorkflow / WorkflowStage type `model_overrides` as an open
|
|
65
|
+
// `{ [k: string]: ModelOverrideConfig }`, but downstream code prefers a
|
|
66
|
+
// named type with known phase keys. Keep as a local alias over the generated
|
|
67
|
+
// per-phase config.
|
|
68
|
+
import type { ModelOverrideConfig as _ModelOverrideConfig } from "../generated/ModelOverrideConfig";
|
|
69
|
+
|
|
70
|
+
export type ModelOverrides = {
|
|
71
|
+
setup?: _ModelOverrideConfig;
|
|
72
|
+
agentic?: _ModelOverrideConfig;
|
|
73
|
+
completion?: _ModelOverrideConfig;
|
|
74
|
+
verification?: _ModelOverrideConfig;
|
|
75
|
+
investigation?: _ModelOverrideConfig;
|
|
76
|
+
summary?: _ModelOverrideConfig;
|
|
77
|
+
generation?: _ModelOverrideConfig;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// =============================================================================
|
|
81
|
+
// Phases
|
|
82
|
+
// =============================================================================
|
|
83
|
+
|
|
84
|
+
export type WorkflowPhase = "setup" | "verification" | "agentic" | "completion";
|
|
85
|
+
|
|
86
|
+
// =============================================================================
|
|
87
|
+
// Skill Types (re-exported from ./skill)
|
|
88
|
+
// =============================================================================
|
|
89
|
+
|
|
90
|
+
export type {
|
|
91
|
+
SkillCategory,
|
|
92
|
+
SkillAuthor,
|
|
93
|
+
SkillParameterOption,
|
|
94
|
+
SkillParameter,
|
|
95
|
+
SingleStepTemplate,
|
|
96
|
+
MultiStepTemplate,
|
|
97
|
+
CompositionTemplate,
|
|
98
|
+
SkillRef,
|
|
99
|
+
SkillTemplate,
|
|
100
|
+
SkillDefinition,
|
|
101
|
+
SkillOrigin,
|
|
102
|
+
SkillExportManifest,
|
|
103
|
+
SkillExport,
|
|
104
|
+
SkillImportResult,
|
|
105
|
+
} from "./skill";
|
|
106
|
+
|
|
107
|
+
export type {
|
|
108
|
+
PlannedActionType,
|
|
109
|
+
ElementTarget,
|
|
110
|
+
PlannedAction,
|
|
111
|
+
ActionPlan,
|
|
112
|
+
PlannedActionResult,
|
|
113
|
+
ActionPlanResult,
|
|
114
|
+
ActionPlanExecuteRequest,
|
|
115
|
+
} from "./action-plan";
|
|
116
|
+
|
|
117
|
+
// =============================================================================
|
|
118
|
+
// Step Types — generated from qontinui-types::workflow_step
|
|
119
|
+
//
|
|
120
|
+
// The four canonical step variants (CommandStep, PromptStep, UiBridgeStep,
|
|
121
|
+
// WorkflowStep) and their helper unions (HttpMethod, ApiContentType, …) are
|
|
122
|
+
// re-exported at the top of this file from ../generated/*. The remaining
|
|
123
|
+
// hand-authored types in this section are TS-only sugar: a `BaseStep` alias
|
|
124
|
+
// for consumers that still want a name for the shared-fields subset, a
|
|
125
|
+
// `StepTypeName` literal that includes non-canonical runner-side variants
|
|
126
|
+
// (e.g. native_accessibility) for UI listings, and the phase-alias types.
|
|
127
|
+
//
|
|
128
|
+
// Phase narrowing is TS-only sugar — not a wire concern. The generator emits
|
|
129
|
+
// a narrow `phase` field on each variant; these aliases just group the four
|
|
130
|
+
// variants by the phase that can carry them.
|
|
131
|
+
// =============================================================================
|
|
132
|
+
|
|
133
|
+
import type { CommandStep as _CommandStep } from "../generated/CommandStep";
|
|
134
|
+
import type { PromptStep as _PromptStep } from "../generated/PromptStep";
|
|
135
|
+
import type { UiBridgeStep as _UiBridgeStep } from "../generated/UiBridgeStep";
|
|
136
|
+
import type { WorkflowStep as _WorkflowStep } from "../generated/WorkflowStep";
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Shared-fields subset carried by every canonical step variant.
|
|
140
|
+
*
|
|
141
|
+
* Alias for the generated `BaseStepFields` so downstream code can still
|
|
142
|
+
* reference `BaseStep` by name. Source of truth:
|
|
143
|
+
* `qontinui-types::workflow_step::BaseStepFields`.
|
|
144
|
+
*/
|
|
145
|
+
import type { BaseStepFields as _BaseStepFields } from "../generated/BaseStepFields";
|
|
146
|
+
export type BaseStep = _BaseStepFields;
|
|
147
|
+
|
|
148
|
+
// =============================================================================
|
|
149
|
+
// Step Type Names
|
|
150
|
+
// =============================================================================
|
|
151
|
+
|
|
152
|
+
// Includes runner-side non-canonical variants (e.g. `native_accessibility`)
|
|
153
|
+
// that appear in the UI listing but are not part of the `UnifiedStep` DTO.
|
|
154
|
+
export type StepTypeName = "command" | "ui_bridge" | "prompt" | "workflow" | "native_accessibility";
|
|
155
|
+
|
|
156
|
+
// =============================================================================
|
|
157
|
+
// Phase-alias types (TS-only sugar over the generated UnifiedStep)
|
|
158
|
+
// =============================================================================
|
|
159
|
+
|
|
160
|
+
export type SetupStep = _CommandStep | _PromptStep | _UiBridgeStep | _WorkflowStep;
|
|
161
|
+
export type VerificationStep = _CommandStep | _PromptStep | _UiBridgeStep | _WorkflowStep;
|
|
162
|
+
export type AgenticStep = _PromptStep;
|
|
163
|
+
export type CompletionStep = _CommandStep | _PromptStep | _UiBridgeStep | _WorkflowStep;
|
|
164
|
+
|
|
165
|
+
// =============================================================================
|
|
166
|
+
// Verification Categories
|
|
167
|
+
// =============================================================================
|
|
168
|
+
|
|
169
|
+
// Alias for the generated `VerificationCategoryKind` union. Source of truth:
|
|
170
|
+
// `qontinui-types::workflow_step::VerificationCategoryKind`. `VerificationCategoryKind`
|
|
171
|
+
// itself is re-exported earlier in this file.
|
|
172
|
+
import type { VerificationCategoryKind as _VerificationCategoryKind } from "../generated/VerificationCategoryKind";
|
|
173
|
+
export type VerificationCategory = _VerificationCategoryKind;
|
|
174
|
+
|
|
175
|
+
// =============================================================================
|
|
176
|
+
// Dependency Graph
|
|
177
|
+
// =============================================================================
|
|
178
|
+
|
|
179
|
+
export interface DependencyNode {
|
|
180
|
+
id: string;
|
|
181
|
+
label: string;
|
|
182
|
+
type: string;
|
|
183
|
+
phase: WorkflowPhase;
|
|
184
|
+
is_referenced: boolean;
|
|
185
|
+
cost_category?: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface DependencyEdge {
|
|
189
|
+
source: string;
|
|
190
|
+
target: string;
|
|
191
|
+
label?: string;
|
|
192
|
+
edge_type: "explicit_depends_on" | "implicit_reference" | "setup_provides";
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface DependencyGraph {
|
|
196
|
+
nodes: DependencyNode[];
|
|
197
|
+
edges: DependencyEdge[];
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// =============================================================================
|
|
201
|
+
// Cost Annotations
|
|
202
|
+
// =============================================================================
|
|
203
|
+
|
|
204
|
+
export type CostCategory =
|
|
205
|
+
| "network"
|
|
206
|
+
| "ai_call"
|
|
207
|
+
| "setup"
|
|
208
|
+
| "ui_interaction";
|
|
209
|
+
|
|
210
|
+
export interface StepCost {
|
|
211
|
+
step_id: string;
|
|
212
|
+
name: string;
|
|
213
|
+
estimated_ms: number;
|
|
214
|
+
category: CostCategory;
|
|
215
|
+
has_side_effects: boolean;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface CostAnnotations {
|
|
219
|
+
steps: StepCost[];
|
|
220
|
+
total_estimated_ms: number;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// =============================================================================
|
|
224
|
+
// Quality Report
|
|
225
|
+
// =============================================================================
|
|
226
|
+
|
|
227
|
+
export type QualityFindingSeverity = "critical" | "warning" | "info";
|
|
228
|
+
|
|
229
|
+
export type QualityFindingCategory =
|
|
230
|
+
| "verification_gap"
|
|
231
|
+
| "missing_criterion"
|
|
232
|
+
| "unnecessary_step"
|
|
233
|
+
| "weak_retry"
|
|
234
|
+
| "required_flag_violation"
|
|
235
|
+
| "retry_inconsistency"
|
|
236
|
+
| "data_contract_violation"
|
|
237
|
+
| "false_positive_risk";
|
|
238
|
+
|
|
239
|
+
export interface QualityFinding {
|
|
240
|
+
finding_id: string;
|
|
241
|
+
step_id?: string;
|
|
242
|
+
severity: QualityFindingSeverity;
|
|
243
|
+
category: QualityFindingCategory;
|
|
244
|
+
description: string;
|
|
245
|
+
suggested_fix?: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface CoverageMatrix {
|
|
249
|
+
criteria_to_steps: Record<string, string[]>;
|
|
250
|
+
steps_to_criteria: Record<string, string[]>;
|
|
251
|
+
uncovered_criteria: string[];
|
|
252
|
+
unlinked_steps: string[];
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export interface QualityReport {
|
|
256
|
+
findings: QualityFinding[];
|
|
257
|
+
score: number;
|
|
258
|
+
pass: boolean;
|
|
259
|
+
coverage_matrix?: CoverageMatrix;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// =============================================================================
|
|
263
|
+
// Export/Import Types
|
|
264
|
+
// =============================================================================
|
|
265
|
+
|
|
266
|
+
import type { UnifiedWorkflow as _UnifiedWorkflow } from "../generated/UnifiedWorkflow";
|
|
267
|
+
|
|
268
|
+
export interface WorkflowExportManifest {
|
|
269
|
+
version: string;
|
|
270
|
+
exported_at: string;
|
|
271
|
+
app_version: string;
|
|
272
|
+
content_type: "unified_workflow";
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface WorkflowExport {
|
|
276
|
+
manifest: WorkflowExportManifest;
|
|
277
|
+
workflow: _UnifiedWorkflow;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export interface WorkflowImportResult {
|
|
281
|
+
workflow: _UnifiedWorkflow;
|
|
282
|
+
overwritten: boolean;
|
|
283
|
+
original_id: string | null;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
// =============================================================================
|
|
287
|
+
// Feature Detection
|
|
288
|
+
// =============================================================================
|
|
289
|
+
|
|
290
|
+
export interface WorkflowFeatures {
|
|
291
|
+
hasSetup: boolean;
|
|
292
|
+
hasVerification: boolean;
|
|
293
|
+
hasAgentic: boolean;
|
|
294
|
+
hasCompletion: boolean;
|
|
295
|
+
hasUiBridge: boolean;
|
|
296
|
+
showIterationSettings: boolean;
|
|
297
|
+
hasAiPrompts: boolean;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// =============================================================================
|
|
301
|
+
// Step Type Display Info
|
|
302
|
+
// =============================================================================
|
|
303
|
+
|
|
304
|
+
export interface StepTypeInfo {
|
|
305
|
+
type: string;
|
|
306
|
+
label: string;
|
|
307
|
+
description: string;
|
|
308
|
+
icon: string;
|
|
309
|
+
color: string;
|
|
310
|
+
phase: WorkflowPhase;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// =============================================================================
|
|
314
|
+
// Step Type Constants
|
|
315
|
+
// =============================================================================
|
|
316
|
+
|
|
317
|
+
export const STEP_TYPES: Record<WorkflowPhase, StepTypeInfo[]> = {
|
|
318
|
+
setup: [
|
|
319
|
+
{
|
|
320
|
+
type: "command",
|
|
321
|
+
label: "Command",
|
|
322
|
+
description: "Run shell commands, checks, or tests",
|
|
323
|
+
icon: "Terminal",
|
|
324
|
+
color: "gray",
|
|
325
|
+
phase: "setup",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
type: "ui_bridge",
|
|
329
|
+
label: "UI Bridge",
|
|
330
|
+
description: "Interact with UI via UI Bridge SDK",
|
|
331
|
+
icon: "Monitor",
|
|
332
|
+
color: "emerald",
|
|
333
|
+
phase: "setup",
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
type: "prompt",
|
|
337
|
+
label: "AI Task",
|
|
338
|
+
description: "AI-driven task",
|
|
339
|
+
icon: "Bot",
|
|
340
|
+
color: "violet",
|
|
341
|
+
phase: "setup",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
type: "workflow",
|
|
345
|
+
label: "Workflow",
|
|
346
|
+
description: "Run a saved workflow",
|
|
347
|
+
icon: "Workflow",
|
|
348
|
+
color: "blue",
|
|
349
|
+
phase: "setup",
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
verification: [
|
|
353
|
+
{
|
|
354
|
+
type: "command",
|
|
355
|
+
label: "Command",
|
|
356
|
+
description: "Run commands, checks, or tests for verification",
|
|
357
|
+
icon: "Terminal",
|
|
358
|
+
color: "gray",
|
|
359
|
+
phase: "verification",
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
type: "ui_bridge",
|
|
363
|
+
label: "UI Bridge",
|
|
364
|
+
description: "Verify UI state via UI Bridge",
|
|
365
|
+
icon: "Monitor",
|
|
366
|
+
color: "emerald",
|
|
367
|
+
phase: "verification",
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
type: "prompt",
|
|
371
|
+
label: "AI Verification",
|
|
372
|
+
description: "AI-evaluated criteria",
|
|
373
|
+
icon: "Bot",
|
|
374
|
+
color: "violet",
|
|
375
|
+
phase: "verification",
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
type: "workflow",
|
|
379
|
+
label: "Workflow",
|
|
380
|
+
description: "Run a saved workflow for verification",
|
|
381
|
+
icon: "Workflow",
|
|
382
|
+
color: "blue",
|
|
383
|
+
phase: "verification",
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
type: "native_accessibility",
|
|
387
|
+
label: "Native Accessibility",
|
|
388
|
+
description: "Run a native accessibility audit using OS-level APIs",
|
|
389
|
+
icon: "Accessibility",
|
|
390
|
+
color: "teal",
|
|
391
|
+
phase: "verification",
|
|
392
|
+
},
|
|
393
|
+
],
|
|
394
|
+
agentic: [
|
|
395
|
+
{
|
|
396
|
+
type: "prompt",
|
|
397
|
+
label: "Prompt",
|
|
398
|
+
description: "AI task instructions",
|
|
399
|
+
icon: "MessageSquare",
|
|
400
|
+
color: "amber",
|
|
401
|
+
phase: "agentic",
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
completion: [
|
|
405
|
+
{
|
|
406
|
+
type: "command",
|
|
407
|
+
label: "Command",
|
|
408
|
+
description: "Run cleanup commands or final tests",
|
|
409
|
+
icon: "Terminal",
|
|
410
|
+
color: "gray",
|
|
411
|
+
phase: "completion",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
type: "ui_bridge",
|
|
415
|
+
label: "UI Bridge",
|
|
416
|
+
description: "Final UI interactions",
|
|
417
|
+
icon: "Monitor",
|
|
418
|
+
color: "emerald",
|
|
419
|
+
phase: "completion",
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
type: "prompt",
|
|
423
|
+
label: "AI Completion",
|
|
424
|
+
description: "Final AI actions",
|
|
425
|
+
icon: "Bot",
|
|
426
|
+
color: "violet",
|
|
427
|
+
phase: "completion",
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
type: "workflow",
|
|
431
|
+
label: "Workflow",
|
|
432
|
+
description: "Run a saved workflow as a completion step",
|
|
433
|
+
icon: "Workflow",
|
|
434
|
+
color: "blue",
|
|
435
|
+
phase: "completion",
|
|
436
|
+
},
|
|
437
|
+
],
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
// =============================================================================
|
|
441
|
+
// Phase Display Info
|
|
442
|
+
// =============================================================================
|
|
443
|
+
|
|
444
|
+
export const PHASE_INFO: Record<
|
|
445
|
+
WorkflowPhase,
|
|
446
|
+
{ label: string; description: string; color: string }
|
|
447
|
+
> = {
|
|
448
|
+
setup: {
|
|
449
|
+
label: "Setup",
|
|
450
|
+
description: "Runs once at the beginning",
|
|
451
|
+
color: "blue",
|
|
452
|
+
},
|
|
453
|
+
verification: {
|
|
454
|
+
label: "Verification",
|
|
455
|
+
description: "Checks success criteria, loops with agentic",
|
|
456
|
+
color: "green",
|
|
457
|
+
},
|
|
458
|
+
agentic: {
|
|
459
|
+
label: "Agentic",
|
|
460
|
+
description: "AI work, iterates until verification passes",
|
|
461
|
+
color: "amber",
|
|
462
|
+
},
|
|
463
|
+
completion: {
|
|
464
|
+
label: "Completion",
|
|
465
|
+
description: "Runs once after the loop exits",
|
|
466
|
+
color: "purple",
|
|
467
|
+
},
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
// =============================================================================
|
|
471
|
+
// Summary Step Constants
|
|
472
|
+
// =============================================================================
|
|
473
|
+
|
|
474
|
+
export const DEFAULT_SUMMARY_PROMPT = `Write a one-paragraph summary of all the tasks completed in this workflow. Include what was accomplished, whether the stated goal was achieved, any issues encountered and how they were resolved, and remaining work if the goal was not fully achieved. Be concise but comprehensive.`;
|