@qontinui/shared-types 0.2.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +128 -128
- package/dist/{Region.d-BbpFAWF4.d.cts → Region.d-DtT3UphX.d.cts} +81 -81
- package/dist/{Region.d-BbpFAWF4.d.ts → Region.d-DtT3UphX.d.ts} +81 -81
- package/dist/{TaskRunFindingActionType.d-B4VmmbB6.d.cts → TaskRunFindingActionType.d-CNIWogcU.d.cts} +53 -53
- package/dist/{TaskRunFindingActionType.d-B4VmmbB6.d.ts → TaskRunFindingActionType.d-CNIWogcU.d.ts} +53 -53
- package/dist/accessibility.cjs.map +1 -1
- package/dist/accessibility.d.cts +379 -379
- package/dist/accessibility.d.ts +379 -379
- package/dist/chat.cjs.map +1 -1
- package/dist/{chunk-ZK5MJEGT.js → chunk-CTBDIP7K.js} +1 -1
- package/dist/chunk-CTBDIP7K.js.map +1 -0
- package/dist/{chunk-YXD4WCYQ.js → chunk-ZUZ3OLOH.js} +1 -1
- package/dist/chunk-ZUZ3OLOH.js.map +1 -0
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +105 -105
- package/dist/config.d.ts +105 -105
- package/dist/constraints.cjs.map +1 -1
- package/dist/constraints.d.cts +372 -372
- package/dist/constraints.d.ts +372 -372
- package/dist/execution.cjs.map +1 -1
- package/dist/execution.d.cts +869 -869
- package/dist/execution.d.ts +869 -869
- package/dist/execution.js +1 -1
- package/dist/geometry.cjs.map +1 -1
- package/dist/geometry.d.cts +81 -81
- package/dist/geometry.d.ts +81 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +632 -590
- package/dist/index.d.ts +632 -590
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/library.cjs.map +1 -1
- package/dist/rag.cjs.map +1 -1
- package/dist/rag.d.cts +579 -579
- package/dist/rag.d.ts +579 -579
- package/dist/runner.cjs.map +1 -1
- package/dist/runner.d.cts +147 -147
- package/dist/runner.d.ts +147 -147
- package/dist/scheduler.cjs.map +1 -1
- package/dist/scheduler.d.cts +692 -692
- package/dist/scheduler.d.ts +692 -692
- package/dist/state-machine.cjs.map +1 -1
- package/dist/state-machine.d.cts +1128 -1128
- package/dist/state-machine.d.ts +1128 -1128
- package/dist/targets.cjs.map +1 -1
- package/dist/targets.d.cts +270 -270
- package/dist/targets.d.ts +270 -270
- package/dist/task-run.cjs.map +1 -1
- package/dist/task-run.d.cts +1431 -1431
- package/dist/task-run.d.ts +1431 -1431
- package/dist/tauri-events.cjs.map +1 -1
- package/dist/tauri-events.d.cts +310 -310
- package/dist/tauri-events.d.ts +310 -310
- package/dist/tree-events.cjs.map +1 -1
- package/dist/tree-events.d.cts +483 -483
- package/dist/tree-events.d.ts +483 -483
- package/dist/ui-bridge-ir.cjs +30 -33
- package/dist/ui-bridge-ir.cjs.map +1 -1
- package/dist/ui-bridge-ir.d.cts +98 -84
- package/dist/ui-bridge-ir.d.ts +98 -84
- package/dist/ui-bridge-ir.js +30 -33
- package/dist/ui-bridge-ir.js.map +1 -1
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.d.cts +1634 -1634
- package/dist/workflow.d.ts +1634 -1634
- package/dist/workflow.js +1 -1
- package/package.json +141 -141
- package/src/accessibility/_api.ts +17 -17
- package/src/accessibility/index.ts +1 -1
- package/src/canvas/index.ts +319 -319
- package/src/chat/_api.ts +23 -23
- package/src/chat/index.ts +1 -1
- package/src/config/_api.ts +13 -13
- package/src/config/index.ts +1 -1
- package/src/constraints/_api.ts +17 -17
- package/src/constraints/index.ts +1 -1
- package/src/discovery.ts +188 -188
- package/src/execution/_api.ts +483 -483
- package/src/execution/index.ts +1 -1
- package/src/generated/A11yAction.d.ts +11 -11
- package/src/generated/AccessibilityBackend.d.ts +12 -12
- package/src/generated/AccessibilityBounds.d.ts +17 -17
- package/src/generated/AccessibilityNode.d.ts +73 -73
- package/src/generated/AccessibilityRole.d.ts +93 -93
- package/src/generated/AccessibilityRoleCriterion.d.ts +13 -13
- package/src/generated/AccessibilitySelector.d.ts +76 -76
- package/src/generated/AccessibilitySnapshot.d.ts +43 -43
- package/src/generated/AccessibilityState.d.ts +67 -67
- package/src/generated/ActionExecutionBatch.d.ts +23 -23
- package/src/generated/ActionExecutionBatchResponse.d.ts +24 -24
- package/src/generated/ActionExecutionCreate.d.ts +124 -124
- package/src/generated/ActionExecutionListResponse.d.ts +20 -20
- package/src/generated/ActionExecutionResponse.d.ts +24 -24
- package/src/generated/ActionReliabilityStats.d.ts +54 -54
- package/src/generated/ActionResponse.d.ts +45 -45
- package/src/generated/ActionStatus.d.ts +11 -11
- package/src/generated/ActionType.d.ts +41 -41
- package/src/generated/ActiveStatesResult.d.ts +32 -32
- package/src/generated/AgenticPhaseOutput.d.ts +50 -50
- package/src/generated/AgenticStatus.d.ts +11 -11
- package/src/generated/AiWorkflow.d.ts +76 -76
- package/src/generated/ApiAssertion.d.ts +35 -35
- package/src/generated/ApiAssertionOperator.d.ts +11 -11
- package/src/generated/ApiAssertionType.d.ts +11 -11
- package/src/generated/ApiContentType.d.ts +11 -11
- package/src/generated/ApiVariableExtraction.d.ts +24 -24
- package/src/generated/AssertionMiss.d.ts +22 -0
- package/src/generated/AssertionOutcome.d.ts +30 -0
- package/src/generated/AssertionResult.d.ts +38 -0
- package/src/generated/AssertionScope.d.ts +37 -0
- package/src/generated/AssertionSeverityCounts.d.ts +28 -0
- package/src/generated/AvailableTransitionsResult.d.ts +34 -34
- package/src/generated/BaseStepFields.d.ts +72 -72
- package/src/generated/BatchComputeEmbeddingRequest.d.ts +27 -27
- package/src/generated/BatchComputeEmbeddingResponse.d.ts +23 -23
- package/src/generated/BatchEmbeddingResult.d.ts +23 -23
- package/src/generated/BetweenIterations.d.ts +35 -35
- package/src/generated/BoundingBox.d.ts +18 -18
- package/src/generated/BridgeFingerprint.d.ts +40 -0
- package/src/generated/BuildPhaseConfig.d.ts +24 -24
- package/src/generated/BuiltinOverrideProposal.d.ts +27 -27
- package/src/generated/CandidateMiss.d.ts +39 -0
- package/src/generated/CanonicalStep.d.ts +60 -60
- package/src/generated/CatchUpPolicy.d.ts +12 -12
- package/src/generated/Category.d.ts +24 -24
- package/src/generated/CheckIssueDetail.d.ts +40 -40
- package/src/generated/CheckType.d.ts +21 -21
- package/src/generated/CodeExecutionStep.d.ts +88 -88
- package/src/generated/CommandMode.d.ts +11 -11
- package/src/generated/CommandStep.d.ts +183 -183
- package/src/generated/CommandStepPhase.d.ts +11 -11
- package/src/generated/ComponentActionInfo.d.ts +24 -24
- package/src/generated/ComponentActionRequest.d.ts +22 -22
- package/src/generated/ComputeEmbeddingRequest.d.ts +24 -24
- package/src/generated/ComputeEmbeddingResponse.d.ts +38 -38
- package/src/generated/ComputeTextEmbeddingRequest.d.ts +20 -20
- package/src/generated/ComputeTextEmbeddingResponse.d.ts +32 -32
- package/src/generated/ConditionScheduleConfig.d.ts +17 -17
- package/src/generated/ConditionStatus.d.ts +29 -29
- package/src/generated/Confidence.d.ts +11 -11
- package/src/generated/ConfidenceLevel.d.ts +11 -11
- package/src/generated/ConjunctEvaluation.d.ts +24 -0
- package/src/generated/ConjunctRule.d.ts +55 -0
- package/src/generated/Constraint.d.ts +33 -33
- package/src/generated/ConstraintCheck.d.ts +64 -64
- package/src/generated/ConstraintProposal.d.ts +37 -37
- package/src/generated/ConstraintResult.d.ts +32 -32
- package/src/generated/ConstraintSeverity.d.ts +16 -16
- package/src/generated/ConstraintViolation.d.ts +24 -24
- package/src/generated/Context.d.ts +50 -50
- package/src/generated/ContextAutoInclude.d.ts +34 -34
- package/src/generated/CoordinateSystem.d.ts +12 -12
- package/src/generated/Coordinates.d.ts +33 -33
- package/src/generated/CostTrendDataPoint.d.ts +36 -36
- package/src/generated/CostTrendResponse.d.ts +41 -41
- package/src/generated/CoverageData.d.ts +52 -52
- package/src/generated/CreateMcpCallInput.d.ts +59 -59
- package/src/generated/CreateMcpServerInput.d.ts +48 -48
- package/src/generated/CreateOlConfigRequest.d.ts +27 -27
- package/src/generated/CreateScheduledTaskRequest.d.ts +63 -63
- package/src/generated/CreateTaskRunRequest.d.ts +51 -51
- package/src/generated/CriterionOverride.d.ts +39 -39
- package/src/generated/CriterionType.d.ts +11 -11
- package/src/generated/DagApprovalStep.d.ts +80 -80
- package/src/generated/DagCancelStep.d.ts +76 -76
- package/src/generated/DagLoopStep.d.ts +80 -80
- package/src/generated/DecomposerConfig.d.ts +31 -31
- package/src/generated/DiagnosePhaseConfig.d.ts +34 -34
- package/src/generated/DiagnosticResult.d.ts +40 -40
- package/src/generated/DiscoveredElement.d.ts +48 -48
- package/src/generated/DiscoveredState.d.ts +49 -49
- package/src/generated/DiscoveredStateImage.d.ts +56 -56
- package/src/generated/DiscoveredTransition.d.ts +44 -44
- package/src/generated/DiscoveryBoundingBox.d.ts +32 -32
- package/src/generated/DiscoveryRequest.d.ts +40 -40
- package/src/generated/DiscoveryResponse.d.ts +32 -32
- package/src/generated/DiscoverySourceType.d.ts +14 -14
- package/src/generated/DiscoveryStrategy.d.ts +13 -13
- package/src/generated/DiscoveryTransitionTrigger.d.ts +38 -38
- package/src/generated/DisplayNode.d.ts +45 -45
- package/src/generated/DomainAssignment.d.ts +50 -50
- package/src/generated/DomainKnowledge.d.ts +29 -29
- package/src/generated/DomainVerificationResult.d.ts +36 -36
- package/src/generated/ElementActionRequest.d.ts +28 -28
- package/src/generated/ElementBbox.d.ts +36 -36
- package/src/generated/ElementIdentifier.d.ts +40 -40
- package/src/generated/ElementRect.d.ts +48 -48
- package/src/generated/ElementState.d.ts +47 -47
- package/src/generated/ElementType.d.ts +45 -45
- package/src/generated/EmbeddedElement.d.ts +36 -36
- package/src/generated/EmbeddingItem.d.ts +49 -49
- package/src/generated/EmbeddingListResponse.d.ts +22 -22
- package/src/generated/EmbeddingResultItem.d.ts +29 -29
- package/src/generated/EmbeddingResultsRequest.d.ts +19 -19
- package/src/generated/EmbeddingResultsResponse.d.ts +17 -17
- package/src/generated/ErrorType.d.ts +18 -18
- package/src/generated/ExecutePlaybookStep.d.ts +84 -84
- package/src/generated/ExecutionActionType.d.ts +40 -40
- package/src/generated/ExecutionIssueBatch.d.ts +19 -19
- package/src/generated/ExecutionIssueBatchResponse.d.ts +24 -24
- package/src/generated/ExecutionIssueCreate.d.ts +57 -57
- package/src/generated/ExecutionIssueDetail.d.ts +89 -89
- package/src/generated/ExecutionIssueListResponse.d.ts +26 -26
- package/src/generated/ExecutionIssueResponse.d.ts +24 -24
- package/src/generated/ExecutionIssueUpdate.d.ts +31 -31
- package/src/generated/ExecutionMatchLocation.d.ts +31 -31
- package/src/generated/ExecutionRunComplete.d.ts +34 -34
- package/src/generated/ExecutionRunCompleteResponse.d.ts +38 -38
- package/src/generated/ExecutionRunCreate.d.ts +40 -40
- package/src/generated/ExecutionRunDetail.d.ts +76 -76
- package/src/generated/ExecutionRunListResponse.d.ts +22 -22
- package/src/generated/ExecutionRunResponse.d.ts +41 -41
- package/src/generated/ExecutionScreenshotCreate.d.ts +59 -59
- package/src/generated/ExecutionScreenshotResponse.d.ts +36 -36
- package/src/generated/ExecutionStats.d.ts +56 -56
- package/src/generated/ExecutionStep.d.ts +78 -78
- package/src/generated/ExecutionTreeResponse.d.ts +42 -42
- package/src/generated/ExecutionTrendDataPoint.d.ts +36 -36
- package/src/generated/ExecutionTrendResponse.d.ts +46 -46
- package/src/generated/ExitCheckResult.d.ts +20 -20
- package/src/generated/ExitStrategy.d.ts +27 -27
- package/src/generated/ExportResult.d.ts +30 -30
- package/src/generated/ExtendIterationsRequest.d.ts +20 -20
- package/src/generated/FieldDiff.d.ts +33 -0
- package/src/generated/FileChange.d.ts +20 -20
- package/src/generated/Finding.d.ts +40 -40
- package/src/generated/FindingActionType.d.ts +13 -13
- package/src/generated/FindingBatchCreate.d.ts +27 -27
- package/src/generated/FindingCategory.d.ts +25 -25
- package/src/generated/FindingCodeContext.d.ts +31 -31
- package/src/generated/FindingCreate.d.ts +52 -52
- package/src/generated/FindingDetail.d.ts +78 -78
- package/src/generated/FindingListResponse.d.ts +40 -40
- package/src/generated/FindingOutput.d.ts +36 -36
- package/src/generated/FindingSeverity.d.ts +14 -14
- package/src/generated/FindingStatus.d.ts +15 -15
- package/src/generated/FindingSummary.d.ts +53 -53
- package/src/generated/FindingUpdate.d.ts +33 -33
- package/src/generated/FindingUserInput.d.ts +27 -27
- package/src/generated/FindingsSummary.d.ts +47 -47
- package/src/generated/FullRunnerStep.d.ts +144 -144
- package/src/generated/GUIElementChunk.d.ts +151 -151
- package/src/generated/GateEvaluationResult.d.ts +36 -36
- package/src/generated/HealthCheckUrl.d.ts +35 -35
- package/src/generated/HistoricalActionQuery.d.ts +42 -42
- package/src/generated/HistoricalActionResult.d.ts +57 -57
- package/src/generated/HttpConfig.d.ts +27 -27
- package/src/generated/HttpMethod.d.ts +13 -13
- package/src/generated/IdleCondition.d.ts +17 -17
- package/src/generated/ImplementFixesConfig.d.ts +25 -25
- package/src/generated/IndividualCheckResult.d.ts +50 -50
- package/src/generated/InitialStateRef.d.ts +23 -23
- package/src/generated/InitialStatesSource.d.ts +18 -18
- package/src/generated/IrAssertion.d.ts +26 -0
- package/src/generated/IrAssertionTarget.d.ts +28 -0
- package/src/generated/IrCrossRef.d.ts +16 -0
- package/src/generated/IrElementCriteria.d.ts +29 -0
- package/src/generated/IrGroup.d.ts +33 -0
- package/src/generated/IrMetadata.d.ts +15 -0
- package/src/generated/IrPageSpec.d.ts +51 -0
- package/src/generated/IrProvenance.d.ts +28 -0
- package/src/generated/IrState.d.ts +36 -0
- package/src/generated/IrStateCondition.d.ts +19 -0
- package/src/generated/IrTransition.d.ts +34 -0
- package/src/generated/IrTransitionAction.d.ts +17 -0
- package/src/generated/IrWaitSpec.d.ts +22 -0
- package/src/generated/IssueSeverity.d.ts +11 -11
- package/src/generated/IssueSource.d.ts +11 -11
- package/src/generated/IssueStatus.d.ts +11 -11
- package/src/generated/IssueType.d.ts +21 -21
- package/src/generated/IterationResult.d.ts +65 -65
- package/src/generated/IterationVerificationResults.d.ts +53 -53
- package/src/generated/JobItem.d.ts +31 -31
- package/src/generated/JobListResponse.d.ts +20 -20
- package/src/generated/JobStatus.d.ts +11 -11
- package/src/generated/JobSummary.d.ts +30 -30
- package/src/generated/LLMCostSummary.d.ts +38 -38
- package/src/generated/LLMMetrics.d.ts +42 -42
- package/src/generated/LegacyAssertion.d.ts +22 -0
- package/src/generated/LegacyAssertionTarget.d.ts +23 -0
- package/src/generated/LegacyGroup.d.ts +19 -0
- package/src/generated/LegacyProcessStep.d.ts +16 -0
- package/src/generated/LegacySpec.d.ts +30 -0
- package/src/generated/LegacyStateMachine.d.ts +17 -0
- package/src/generated/LegacyStateMachineState.d.ts +21 -0
- package/src/generated/LegacyTransition.d.ts +20 -0
- package/src/generated/LogSourceSelection.d.ts +25 -25
- package/src/generated/LoopInstanceStatus.d.ts +28 -28
- package/src/generated/LoopPhase.d.ts +26 -26
- package/src/generated/MatchAdjustment.d.ts +23 -23
- package/src/generated/MatchLocation.d.ts +22 -22
- package/src/generated/MatchMethod.d.ts +11 -11
- package/src/generated/MatchOutcome.d.ts +11 -0
- package/src/generated/MatchedElement.d.ts +28 -0
- package/src/generated/McpCallRecord.d.ts +35 -35
- package/src/generated/McpCallsResult.d.ts +44 -44
- package/src/generated/McpConnectionRef.d.ts +25 -25
- package/src/generated/McpServerConfig.d.ts +77 -77
- package/src/generated/McpServerStatus.d.ts +42 -42
- package/src/generated/McpToolCallResult.d.ts +38 -38
- package/src/generated/McpToolInfo.d.ts +23 -23
- package/src/generated/McpToolInputSchema.d.ts +34 -34
- package/src/generated/McpTransport.d.ts +15 -15
- package/src/generated/MissReason.d.ts +20 -0
- package/src/generated/ModelCostBreakdown.d.ts +36 -36
- package/src/generated/ModelOverrideConfig.d.ts +47 -47
- package/src/generated/Monitor.d.ts +48 -48
- package/src/generated/MonitorPosition.d.ts +13 -13
- package/src/generated/MouseButton.d.ts +13 -13
- package/src/generated/MultiLoopConfig.d.ts +32 -32
- package/src/generated/MultiLoopEntry.d.ts +32 -32
- package/src/generated/MultiLoopStatus.d.ts +37 -37
- package/src/generated/NativeAccessibilityStep.d.ts +121 -121
- package/src/generated/NavigationResult.d.ts +40 -40
- package/src/generated/NewConstraintProposal.d.ts +20 -20
- package/src/generated/NextTaskInfo.d.ts +24 -24
- package/src/generated/NodeMetadata.d.ts +47 -47
- package/src/generated/NodeStatus.d.ts +11 -11
- package/src/generated/NodeType.d.ts +11 -11
- package/src/generated/OcrEngine.d.ts +11 -11
- package/src/generated/OlConfig.d.ts +48 -48
- package/src/generated/OrchestrationLoopConfig.d.ts +87 -87
- package/src/generated/OrchestrationLoopStatus.d.ts +59 -59
- package/src/generated/Outcome.d.ts +15 -15
- package/src/generated/OutputLine.d.ts +23 -23
- package/src/generated/OutputStream.d.ts +11 -11
- package/src/generated/OverrideCollection.d.ts +18 -18
- package/src/generated/Pagination.d.ts +28 -28
- package/src/generated/ParserType.d.ts +17 -17
- package/src/generated/PathElement.d.ts +17 -17
- package/src/generated/PathfindingRequest.d.ts +24 -24
- package/src/generated/PathfindingResult.d.ts +30 -30
- package/src/generated/PathfindingStep.d.ts +36 -36
- package/src/generated/PatternOptions.d.ts +32 -32
- package/src/generated/PipelineConfig.d.ts +31 -31
- package/src/generated/PlaybackFrameRequest.d.ts +21 -21
- package/src/generated/PlaywrightExecutionMode.d.ts +11 -11
- package/src/generated/Point.d.ts +20 -20
- package/src/generated/PolicyConjunct.d.ts +22 -0
- package/src/generated/PolicyEvaluation.d.ts +22 -0
- package/src/generated/PolicyStatus.d.ts +11 -0
- package/src/generated/PollingConfig.d.ts +14 -14
- package/src/generated/ProcessConfig.d.ts +96 -96
- package/src/generated/ProcessState.d.ts +15 -15
- package/src/generated/ProcessStatus.d.ts +41 -41
- package/src/generated/PromptStep.d.ts +92 -92
- package/src/generated/PromptStepPhase.d.ts +13 -13
- package/src/generated/ProposalStatus.d.ts +13 -0
- package/src/generated/RAGDashboardStats.d.ts +26 -26
- package/src/generated/RagCompletionEvent.d.ts +25 -25
- package/src/generated/RagProcessingStatus.d.ts +11 -11
- package/src/generated/RagProgressEvent.d.ts +27 -27
- package/src/generated/ReadConfigResponse.d.ts +20 -20
- package/src/generated/RecommendedState.d.ts +23 -0
- package/src/generated/ReflectionFixOutput.d.ts +20 -20
- package/src/generated/Region.d.ts +39 -39
- package/src/generated/RepositoryInactiveCondition.d.ts +24 -24
- package/src/generated/RepositoryWatch.d.ts +20 -20
- package/src/generated/ResolvedInitialStates.d.ts +29 -29
- package/src/generated/ResolvedInitialStatesResult.d.ts +40 -40
- package/src/generated/ResourceLimits.d.ts +33 -33
- package/src/generated/RestartProcessStep.d.ts +88 -88
- package/src/generated/RetryPolicy.d.ts +24 -24
- package/src/generated/RetrySpec.d.ts +24 -24
- package/src/generated/RoleCriterion.d.ts +14 -14
- package/src/generated/RootCauseCategory.d.ts +18 -18
- package/src/generated/RoutingRule.d.ts +38 -38
- package/src/generated/RunPromptRequest.d.ts +56 -56
- package/src/generated/RunPromptResponse.d.ts +50 -50
- package/src/generated/RunPromptResponseData.d.ts +20 -20
- package/src/generated/RunStatus.d.ts +11 -11
- package/src/generated/RunType.d.ts +11 -11
- package/src/generated/Runner.d.ts +81 -81
- package/src/generated/RunnerCrash.d.ts +32 -32
- package/src/generated/RunnerFinding.d.ts +48 -48
- package/src/generated/RunnerFindingCodeContext.d.ts +20 -20
- package/src/generated/RunnerFindingUserInput.d.ts +19 -19
- package/src/generated/RunnerMetadata.d.ts +42 -42
- package/src/generated/RunnerStatus.d.ts +12 -12
- package/src/generated/RunnerUiError.d.ts +28 -28
- package/src/generated/RuntimeData.d.ts +40 -40
- package/src/generated/SaveWorkflowArtifactStep.d.ts +80 -80
- package/src/generated/ScheduleConditions.d.ts +29 -29
- package/src/generated/ScheduleExpression.d.ts +39 -39
- package/src/generated/ScheduledTask.d.ts +104 -104
- package/src/generated/ScheduledTaskStatus.d.ts +19 -19
- package/src/generated/ScheduledTaskType.d.ts +126 -126
- package/src/generated/SchedulerSettings.d.ts +28 -28
- package/src/generated/SchedulerStatus.d.ts +31 -31
- package/src/generated/ScreenshotAnnotation.d.ts +39 -39
- package/src/generated/ScreenshotAnnotationShape.d.ts +11 -11
- package/src/generated/ScreenshotType.d.ts +11 -11
- package/src/generated/ScrollDirection.d.ts +13 -13
- package/src/generated/SearchOptions.d.ts +33 -33
- package/src/generated/SearchResultItem.d.ts +19 -19
- package/src/generated/SearchStrategy.d.ts +14 -14
- package/src/generated/SemanticSearchRequest.d.ts +26 -26
- package/src/generated/SemanticSearchResponse.d.ts +21 -21
- package/src/generated/SpecCheckConfidence.d.ts +15 -0
- package/src/generated/SpecCheckPolicy.d.ts +23 -0
- package/src/generated/SpecCheckResult.d.ts +66 -0
- package/src/generated/SpecCheckStepConfig.d.ts +38 -0
- package/src/generated/SpecCheckSummary.d.ts +28 -0
- package/src/generated/SpecValidation.d.ts +27 -0
- package/src/generated/StageCondition.d.ts +37 -37
- package/src/generated/StageInput.d.ts +27 -27
- package/src/generated/StageOutput.d.ts +20 -20
- package/src/generated/StageTransition.d.ts +30 -30
- package/src/generated/StallDetectorConfig.d.ts +31 -31
- package/src/generated/StandardActionType.d.ts +40 -40
- package/src/generated/StateContext.d.ts +17 -17
- package/src/generated/StateDiscoveryResult.d.ts +104 -104
- package/src/generated/StateDiscoveryResultCreate.d.ts +65 -65
- package/src/generated/StateDiscoveryResultListResponse.d.ts +23 -23
- package/src/generated/StateDiscoveryResultSummary.d.ts +57 -57
- package/src/generated/StateDiscoveryResultUpdate.d.ts +47 -47
- package/src/generated/StateFilterItem.d.ts +18 -18
- package/src/generated/StateMachineConfig.d.ts +45 -45
- package/src/generated/StateMachineConfigCreate.d.ts +20 -20
- package/src/generated/StateMachineConfigFull.d.ts +67 -67
- package/src/generated/StateMachineConfigUpdate.d.ts +20 -20
- package/src/generated/StateMachineExport.d.ts +64 -64
- package/src/generated/StateMachineExportFormat.d.ts +39 -39
- package/src/generated/StateMachineImport.d.ts +25 -25
- package/src/generated/StateMachineState.d.ts +71 -71
- package/src/generated/StateMachineStateCreate.d.ts +52 -52
- package/src/generated/StateMachineStateUpdate.d.ts +48 -48
- package/src/generated/StateMachineTransition.d.ts +75 -75
- package/src/generated/StateMachineTransitionCreate.d.ts +53 -53
- package/src/generated/StateMachineTransitionUpdate.d.ts +53 -53
- package/src/generated/StateMatchResult.d.ts +36 -0
- package/src/generated/StateNodeData.d.ts +71 -71
- package/src/generated/StatesResponse.d.ts +19 -19
- package/src/generated/StdioConfig.d.ts +34 -34
- package/src/generated/StepExecutionConfig.d.ts +37 -37
- package/src/generated/StructuredFinding.d.ts +32 -32
- package/src/generated/StructuredOverride.d.ts +24 -24
- package/src/generated/StructuredSignal.d.ts +20 -20
- package/src/generated/SuccessCriterion.d.ts +57 -57
- package/src/generated/SummarizationConfig.d.ts +35 -35
- package/src/generated/TargetConfig.d.ts +108 -108
- package/src/generated/TaskCompletionResult.d.ts +90 -90
- package/src/generated/TaskExecutionRecord.d.ts +61 -61
- package/src/generated/TaskRun.d.ts +88 -88
- package/src/generated/TaskRunBackend.d.ts +86 -86
- package/src/generated/TaskRunBackendDetail.d.ts +99 -99
- package/src/generated/TaskRunCreate.d.ts +62 -62
- package/src/generated/TaskRunFilters.d.ts +38 -38
- package/src/generated/TaskRunFinding.d.ts +100 -100
- package/src/generated/TaskRunFindingActionType.d.ts +11 -11
- package/src/generated/TaskRunFindingCategory.d.ts +24 -24
- package/src/generated/TaskRunFindingCreate.d.ts +79 -79
- package/src/generated/TaskRunFindingFilters.d.ts +28 -28
- package/src/generated/TaskRunFindingSeverity.d.ts +11 -11
- package/src/generated/TaskRunFindingStatus.d.ts +11 -11
- package/src/generated/TaskRunFindingSummary.d.ts +34 -34
- package/src/generated/TaskRunFindingUpdate.d.ts +34 -34
- package/src/generated/TaskRunFindingsListResponse.d.ts +24 -24
- package/src/generated/TaskRunListResponse.d.ts +21 -21
- package/src/generated/TaskRunSession.d.ts +40 -40
- package/src/generated/TaskRunStatus.d.ts +11 -11
- package/src/generated/TaskRunUpdate.d.ts +47 -47
- package/src/generated/TaskType.d.ts +11 -11
- package/src/generated/TerminalExitEvent.d.ts +26 -26
- package/src/generated/TerminalInfo.d.ts +69 -69
- package/src/generated/TerminalOutputEvent.d.ts +29 -29
- package/src/generated/TestType.d.ts +11 -11
- package/src/generated/TextMatchType.d.ts +11 -11
- package/src/generated/TextSearchOptions.d.ts +30 -30
- package/src/generated/Ticket.d.ts +53 -53
- package/src/generated/TicketComment.d.ts +28 -28
- package/src/generated/TicketProviderConfig.d.ts +55 -55
- package/src/generated/TicketSource.d.ts +17 -17
- package/src/generated/TicketState.d.ts +15 -15
- package/src/generated/TimingInfo.d.ts +23 -23
- package/src/generated/TopMatch.d.ts +17 -17
- package/src/generated/TransitionAction.d.ts +93 -93
- package/src/generated/TransitionActionValue.d.ts +14 -14
- package/src/generated/TransitionEdgeData.d.ts +46 -46
- package/src/generated/TransitionExecutionResult.d.ts +30 -30
- package/src/generated/TransitionInfo.d.ts +29 -29
- package/src/generated/TransitionTriggerType.d.ts +13 -13
- package/src/generated/TreeEvent.d.ts +47 -47
- package/src/generated/TreeEventCreate.d.ts +30 -30
- package/src/generated/TreeEventListResponse.d.ts +30 -30
- package/src/generated/TreeEventResponse.d.ts +47 -47
- package/src/generated/TreeEventType.d.ts +20 -20
- package/src/generated/TreeNode.d.ts +54 -54
- package/src/generated/UIBridgeCapturedToast.d.ts +22 -22
- package/src/generated/UIBridgeComponent.d.ts +45 -45
- package/src/generated/UIBridgeElement.d.ts +90 -62
- package/src/generated/UIBridgeModalInfo.d.ts +40 -40
- package/src/generated/UIBridgeModalStack.d.ts +19 -19
- package/src/generated/UIBridgeSnapshot.d.ts +67 -67
- package/src/generated/UIBridgeToastContext.d.ts +17 -17
- package/src/generated/UIBridgeUndoContext.d.ts +19 -19
- package/src/generated/UiBridgeAction.d.ts +18 -18
- package/src/generated/UiBridgeAssertType.d.ts +11 -11
- package/src/generated/UiBridgeComparisonMode.d.ts +11 -11
- package/src/generated/UiBridgeDesignAuditStep.d.ts +76 -76
- package/src/generated/UiBridgeRequestEnvelope.d.ts +45 -45
- package/src/generated/UiBridgeResponseEnvelope.d.ts +66 -66
- package/src/generated/UiBridgeSeverity.d.ts +11 -11
- package/src/generated/UiBridgeStep.d.ts +127 -127
- package/src/generated/UiBridgeStepPhase.d.ts +14 -14
- package/src/generated/UiBridgeVisualAssertionStep.d.ts +97 -97
- package/src/generated/UnifiedStep.d.ts +57 -57
- package/src/generated/UnifiedWorkflow.d.ts +411 -411
- package/src/generated/UpdateMcpServerInput.d.ts +28 -28
- package/src/generated/UpdateOlConfigRequest.d.ts +32 -32
- package/src/generated/UpdateScheduledTaskRequest.d.ts +71 -71
- package/src/generated/ValidateConfigRequest.d.ts +16 -16
- package/src/generated/ValidateConfigResponse.d.ts +28 -28
- package/src/generated/VectorSearchResult.d.ts +48 -48
- package/src/generated/VerificationAgentContext.d.ts +25 -25
- package/src/generated/VerificationCategoryKind.d.ts +19 -19
- package/src/generated/VerificationMethod.d.ts +20 -20
- package/src/generated/VerificationPhaseResult.d.ts +63 -63
- package/src/generated/VerificationPlan.d.ts +43 -43
- package/src/generated/VerificationResult.d.ts +44 -44
- package/src/generated/VerificationResultResponse.d.ts +65 -65
- package/src/generated/VerificationResultsListResponse.d.ts +41 -41
- package/src/generated/VerificationStepDetails.d.ts +55 -55
- package/src/generated/VerificationStepResult.d.ts +68 -68
- package/src/generated/VgaAction.d.ts +61 -61
- package/src/generated/VgaActionKind.d.ts +14 -14
- package/src/generated/VgaAutomateStep.d.ts +110 -110
- package/src/generated/VirtualDesktop.d.ts +23 -23
- package/src/generated/VisualAssertionType.d.ts +11 -11
- package/src/generated/VisualComparisonResult.d.ts +40 -40
- package/src/generated/WaitOptions.d.ts +35 -35
- package/src/generated/WorkerCoordinationMessage.d.ts +93 -93
- package/src/generated/WorkerDomain.d.ts +29 -29
- package/src/generated/WorkerInstance.d.ts +62 -62
- package/src/generated/WorkerOutput.d.ts +53 -53
- package/src/generated/WorkerSignal.d.ts +48 -48
- package/src/generated/WorkerStatus.d.ts +11 -11
- package/src/generated/WorkflowArchitecture.d.ts +16 -16
- package/src/generated/WorkflowFixupMode.d.ts +11 -11
- package/src/generated/WorkflowFixupStep.d.ts +85 -85
- package/src/generated/WorkflowInfo.d.ts +28 -28
- package/src/generated/WorkflowMetadata.d.ts +44 -44
- package/src/generated/WorkflowRefStep.d.ts +94 -94
- package/src/generated/WorkflowStage.d.ts +126 -126
- package/src/generated/WorkflowStep.d.ts +80 -80
- package/src/generated/WorkflowStepPhase.d.ts +11 -11
- package/src/generated/WriteConfigRequest.d.ts +20 -20
- package/src/generated/WriteConfigResponse.d.ts +24 -24
- package/src/generated/index.ts +478 -432
- package/src/geometry/_api.ts +16 -16
- package/src/geometry/index.ts +1 -1
- package/src/index.ts +78 -73
- package/src/known-issues/index.ts +179 -179
- package/src/library/_api.ts +326 -326
- package/src/library/index.ts +1 -1
- package/src/rag/_api.ts +47 -47
- package/src/rag/index.ts +1 -1
- package/src/render-log.ts +371 -371
- package/src/runner/_api.ts +14 -14
- package/src/runner/index.ts +1 -1
- package/src/scheduler/_api.ts +21 -21
- package/src/scheduler/index.ts +1 -1
- package/src/state-machine/_api.ts +145 -145
- package/src/state-machine/index.ts +1 -1
- package/src/targets/_api.ts +47 -47
- package/src/targets/index.ts +1 -1
- package/src/task-run/_api.ts +108 -108
- package/src/task-run/index.ts +1 -1
- package/src/tauri-events/_api.ts +90 -90
- package/src/tauri-events/index.ts +1 -1
- package/src/tree-events/_api.ts +42 -42
- package/src/tree-events/index.ts +1 -1
- package/src/ui-bridge-ir/__tests__/projection.test.ts +1121 -1029
- package/src/ui-bridge-ir/adapter.ts +226 -220
- package/src/ui-bridge-ir/document.ts +114 -114
- package/src/ui-bridge-ir/element-criteria.ts +48 -48
- package/src/ui-bridge-ir/group.ts +84 -84
- package/src/ui-bridge-ir/index.ts +24 -24
- package/src/ui-bridge-ir/ir.schema.json +297 -293
- package/src/ui-bridge-ir/primitives.ts +110 -102
- package/src/ui-bridge-ir/projection.ts +898 -921
- package/src/ui-bridge-ir/state.ts +97 -90
- package/src/ui-bridge-ir/transition.ts +92 -92
- package/src/workflow/_api.ts +474 -474
- package/src/workflow/action-plan.ts +208 -208
- package/src/workflow/index.ts +1 -1
- package/src/workflow/skill.ts +152 -152
- package/dist/chunk-YXD4WCYQ.js.map +0 -1
- package/dist/chunk-ZK5MJEGT.js.map +0 -1
package/src/execution/_api.ts
CHANGED
|
@@ -1,483 +1,483 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Execution Types
|
|
3
|
-
*
|
|
4
|
-
* Type definitions for the unified execution reporting API that supports
|
|
5
|
-
* multiple run types: QA testing, integration testing, live automation,
|
|
6
|
-
* recording sessions, and debug runs.
|
|
7
|
-
*
|
|
8
|
-
* Tier 1 (enums) and Tier 2 (request/response DTOs) are generated from Rust
|
|
9
|
-
* (source of truth: qontinui-schemas/rust/src/execution.rs). Do not edit
|
|
10
|
-
* those sections by hand — regenerate via `just generate-types` (or
|
|
11
|
-
* `qontinui-runner/src-tauri/scripts/generate_types.sh`).
|
|
12
|
-
*
|
|
13
|
-
* Tier 3 (UI display / live-status-stream types) remains hand-authored below.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
// ============================================================================
|
|
17
|
-
// Enums (Tier 1, generated)
|
|
18
|
-
// ============================================================================
|
|
19
|
-
//
|
|
20
|
-
// For enums that had named-constant call-site syntax in the old hand-authored
|
|
21
|
-
// TS (e.g. `RunType.QA_TEST`), we import the generated literal union under an
|
|
22
|
-
// alias, re-export it as the type name, and declare a companion `const` object
|
|
23
|
-
// with the same name so `RunType.QA_TEST` still resolves as a value. TS merges
|
|
24
|
-
// the type alias and const value into one declaration usable in both
|
|
25
|
-
// positions.
|
|
26
|
-
|
|
27
|
-
import type { RunType as _RunType } from "../generated/RunType";
|
|
28
|
-
export type RunType = _RunType;
|
|
29
|
-
export const RunType = {
|
|
30
|
-
QA_TEST: "qa_test",
|
|
31
|
-
INTEGRATION_TEST: "integration_test",
|
|
32
|
-
LIVE_AUTOMATION: "live_automation",
|
|
33
|
-
RECORDING: "recording",
|
|
34
|
-
DEBUG: "debug",
|
|
35
|
-
} as const;
|
|
36
|
-
|
|
37
|
-
import type { RunStatus as _RunStatus } from "../generated/RunStatus";
|
|
38
|
-
export type RunStatus = _RunStatus;
|
|
39
|
-
export const RunStatus = {
|
|
40
|
-
PENDING: "pending",
|
|
41
|
-
RUNNING: "running",
|
|
42
|
-
COMPLETED: "completed",
|
|
43
|
-
FAILED: "failed",
|
|
44
|
-
TIMEOUT: "timeout",
|
|
45
|
-
CANCELLED: "cancelled",
|
|
46
|
-
PAUSED: "paused",
|
|
47
|
-
} as const;
|
|
48
|
-
|
|
49
|
-
import type { ActionStatus as _ActionStatus } from "../generated/ActionStatus";
|
|
50
|
-
export type ActionStatus = _ActionStatus;
|
|
51
|
-
export const ActionStatus = {
|
|
52
|
-
SUCCESS: "success",
|
|
53
|
-
FAILED: "failed",
|
|
54
|
-
TIMEOUT: "timeout",
|
|
55
|
-
SKIPPED: "skipped",
|
|
56
|
-
ERROR: "error",
|
|
57
|
-
PENDING: "pending",
|
|
58
|
-
} as const;
|
|
59
|
-
|
|
60
|
-
// `ActionType` collides with `tree_events::ActionType` on the Rust side, so
|
|
61
|
-
// the generated symbol is `ExecutionActionType`. We preserve the local name
|
|
62
|
-
// `ActionType` for backward compatibility.
|
|
63
|
-
import type { ExecutionActionType as _ActionType } from "../generated/ExecutionActionType";
|
|
64
|
-
export type ActionType = _ActionType;
|
|
65
|
-
export const ActionType = {
|
|
66
|
-
// Vision actions
|
|
67
|
-
FIND: "find",
|
|
68
|
-
FIND_ALL: "find_all",
|
|
69
|
-
WAIT_FOR: "wait_for",
|
|
70
|
-
WAIT_UNTIL_GONE: "wait_until_gone",
|
|
71
|
-
|
|
72
|
-
// Input actions
|
|
73
|
-
CLICK: "click",
|
|
74
|
-
DOUBLE_CLICK: "double_click",
|
|
75
|
-
RIGHT_CLICK: "right_click",
|
|
76
|
-
TYPE: "type",
|
|
77
|
-
PRESS_KEY: "press_key",
|
|
78
|
-
HOTKEY: "hotkey",
|
|
79
|
-
SCROLL: "scroll",
|
|
80
|
-
DRAG: "drag",
|
|
81
|
-
|
|
82
|
-
// State machine actions
|
|
83
|
-
GO_TO_STATE: "go_to_state",
|
|
84
|
-
TRANSITION: "transition",
|
|
85
|
-
VERIFY_STATE: "verify_state",
|
|
86
|
-
|
|
87
|
-
// Control flow
|
|
88
|
-
CONDITIONAL: "conditional",
|
|
89
|
-
LOOP: "loop",
|
|
90
|
-
PARALLEL: "parallel",
|
|
91
|
-
SEQUENCE: "sequence",
|
|
92
|
-
|
|
93
|
-
// Utility
|
|
94
|
-
WAIT: "wait",
|
|
95
|
-
SCREENSHOT: "screenshot",
|
|
96
|
-
LOG: "log",
|
|
97
|
-
ASSERT: "assert",
|
|
98
|
-
|
|
99
|
-
// AI actions
|
|
100
|
-
AI_PROMPT: "ai_prompt",
|
|
101
|
-
RUN_PROMPT_SEQUENCE: "run_prompt_sequence",
|
|
102
|
-
|
|
103
|
-
// Custom/plugin
|
|
104
|
-
CUSTOM: "custom",
|
|
105
|
-
} as const;
|
|
106
|
-
|
|
107
|
-
import type { ErrorType as _ErrorType } from "../generated/ErrorType";
|
|
108
|
-
export type ErrorType = _ErrorType;
|
|
109
|
-
export const ErrorType = {
|
|
110
|
-
ELEMENT_NOT_FOUND: "element_not_found",
|
|
111
|
-
TIMEOUT: "timeout",
|
|
112
|
-
ASSERTION_FAILED: "assertion_failed",
|
|
113
|
-
CRASH: "crash",
|
|
114
|
-
NETWORK_ERROR: "network_error",
|
|
115
|
-
VALIDATION_ERROR: "validation_error",
|
|
116
|
-
OTHER: "other",
|
|
117
|
-
} as const;
|
|
118
|
-
|
|
119
|
-
import type { IssueSeverity as _IssueSeverity } from "../generated/IssueSeverity";
|
|
120
|
-
export type IssueSeverity = _IssueSeverity;
|
|
121
|
-
export const IssueSeverity = {
|
|
122
|
-
CRITICAL: "critical",
|
|
123
|
-
HIGH: "high",
|
|
124
|
-
MEDIUM: "medium",
|
|
125
|
-
LOW: "low",
|
|
126
|
-
INFORMATIONAL: "informational",
|
|
127
|
-
} as const;
|
|
128
|
-
|
|
129
|
-
import type { ScreenshotType as _ScreenshotType } from "../generated/ScreenshotType";
|
|
130
|
-
export type ScreenshotType = _ScreenshotType;
|
|
131
|
-
export const ScreenshotType = {
|
|
132
|
-
ERROR: "error",
|
|
133
|
-
SUCCESS: "success",
|
|
134
|
-
MANUAL: "manual",
|
|
135
|
-
PERIODIC: "periodic",
|
|
136
|
-
ACTION_RESULT: "action_result",
|
|
137
|
-
STATE_VERIFICATION: "state_verification",
|
|
138
|
-
} as const;
|
|
139
|
-
|
|
140
|
-
// Shape of annotation overlay on a screenshot. Was inline on
|
|
141
|
-
// `ExecutionScreenshotCreate.annotations[].type` previously. No call sites
|
|
142
|
-
// used a named-constant syntax, so a plain re-export suffices.
|
|
143
|
-
export type { ScreenshotAnnotationShape } from "../generated/ScreenshotAnnotationShape";
|
|
144
|
-
|
|
145
|
-
// ============================================================================
|
|
146
|
-
// Metadata & DTO Types (Tier 2, generated)
|
|
147
|
-
// ============================================================================
|
|
148
|
-
|
|
149
|
-
export type { RunnerMetadata } from "../generated/RunnerMetadata";
|
|
150
|
-
export type { WorkflowMetadata } from "../generated/WorkflowMetadata";
|
|
151
|
-
export type { ExecutionStats } from "../generated/ExecutionStats";
|
|
152
|
-
export type { CoverageData } from "../generated/CoverageData";
|
|
153
|
-
export type { LLMMetrics } from "../generated/LLMMetrics";
|
|
154
|
-
|
|
155
|
-
// ============================================================================
|
|
156
|
-
// Request/Create + Response Types (Tier 2, generated)
|
|
157
|
-
// ============================================================================
|
|
158
|
-
|
|
159
|
-
export type { ExecutionRunCreate } from "../generated/ExecutionRunCreate";
|
|
160
|
-
export type { ExecutionRunResponse } from "../generated/ExecutionRunResponse";
|
|
161
|
-
|
|
162
|
-
// `MatchLocation` collides with `tree_events::MatchLocation` on the Rust
|
|
163
|
-
// side, so the generated symbol is `ExecutionMatchLocation`. Preserve the
|
|
164
|
-
// local name via a re-export alias.
|
|
165
|
-
export type { ExecutionMatchLocation as MatchLocation } from "../generated/ExecutionMatchLocation";
|
|
166
|
-
|
|
167
|
-
export type { ActionExecutionCreate } from "../generated/ActionExecutionCreate";
|
|
168
|
-
export type { ActionExecutionResponse } from "../generated/ActionExecutionResponse";
|
|
169
|
-
|
|
170
|
-
export type { ScreenshotAnnotation } from "../generated/ScreenshotAnnotation";
|
|
171
|
-
export type { ExecutionScreenshotCreate } from "../generated/ExecutionScreenshotCreate";
|
|
172
|
-
export type { ExecutionScreenshotResponse } from "../generated/ExecutionScreenshotResponse";
|
|
173
|
-
|
|
174
|
-
export type { ExecutionIssueCreate } from "../generated/ExecutionIssueCreate";
|
|
175
|
-
export type { ExecutionIssueResponse } from "../generated/ExecutionIssueResponse";
|
|
176
|
-
|
|
177
|
-
export type { ExecutionRunComplete } from "../generated/ExecutionRunComplete";
|
|
178
|
-
export type { ExecutionRunCompleteResponse } from "../generated/ExecutionRunCompleteResponse";
|
|
179
|
-
|
|
180
|
-
// ============================================================================
|
|
181
|
-
// Execution Status Types (real-time display) — Tier 3, hand-authored
|
|
182
|
-
// ============================================================================
|
|
183
|
-
|
|
184
|
-
export type TaskComplexity = "simple" | "medium" | "complex";
|
|
185
|
-
|
|
186
|
-
export interface RoutingFactor {
|
|
187
|
-
description: string;
|
|
188
|
-
complexity: TaskComplexity;
|
|
189
|
-
weight: number;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface RoutingDecision {
|
|
193
|
-
complexity: TaskComplexity;
|
|
194
|
-
confidence: number;
|
|
195
|
-
factors: string[];
|
|
196
|
-
selectedModel: string;
|
|
197
|
-
timestamp: number;
|
|
198
|
-
promptPreview?: string;
|
|
199
|
-
fileCount?: number;
|
|
200
|
-
criteriaCount?: number;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export interface RoutingStatus {
|
|
204
|
-
enabled: boolean;
|
|
205
|
-
decision: RoutingDecision | null;
|
|
206
|
-
config: {
|
|
207
|
-
simpleModel: string;
|
|
208
|
-
mediumModel: string;
|
|
209
|
-
complexModel: string;
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export interface RetryAttempt {
|
|
214
|
-
attemptNumber: number;
|
|
215
|
-
error: string;
|
|
216
|
-
timestamp: string;
|
|
217
|
-
delayMs: number;
|
|
218
|
-
feedbackInjected: boolean;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export interface RetryState {
|
|
222
|
-
attempt: number;
|
|
223
|
-
lastError: string | null;
|
|
224
|
-
lastAttemptAt: string | null;
|
|
225
|
-
totalDelayMs: number;
|
|
226
|
-
errorHistory: RetryAttempt[];
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export interface RetryStatus {
|
|
230
|
-
enabled: boolean;
|
|
231
|
-
maxRetries: number;
|
|
232
|
-
feedbackInjection: boolean;
|
|
233
|
-
state: RetryState;
|
|
234
|
-
nextRetryDelayMs: number | null;
|
|
235
|
-
exhausted: boolean;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export interface TokenCount {
|
|
239
|
-
total: number;
|
|
240
|
-
findings: number;
|
|
241
|
-
observations: number;
|
|
242
|
-
feedback: number;
|
|
243
|
-
solutions: number;
|
|
244
|
-
other: number;
|
|
245
|
-
entryCount: number;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export interface CompressionResult {
|
|
249
|
-
originalTokens: number;
|
|
250
|
-
compressedTokens: number;
|
|
251
|
-
itemsSummarized: number;
|
|
252
|
-
summaryEntriesCreated: number;
|
|
253
|
-
compressedCategories: string[];
|
|
254
|
-
timestamp: string;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export interface CompressionStatus {
|
|
258
|
-
enabled: boolean;
|
|
259
|
-
thresholdTokens: number;
|
|
260
|
-
targetTokens: number;
|
|
261
|
-
currentTokenCount: TokenCount | null;
|
|
262
|
-
lastCompression: CompressionResult | null;
|
|
263
|
-
thresholdPercentage: number;
|
|
264
|
-
compressionImminent: boolean;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export type HookTrigger =
|
|
268
|
-
| "pre_execution"
|
|
269
|
-
| "post_execution"
|
|
270
|
-
| "on_error"
|
|
271
|
-
| "on_verification_fail"
|
|
272
|
-
| "on_complete"
|
|
273
|
-
| "pre_iteration"
|
|
274
|
-
| "post_iteration";
|
|
275
|
-
|
|
276
|
-
export interface HookExecutionResult {
|
|
277
|
-
hookId: string;
|
|
278
|
-
hookName: string;
|
|
279
|
-
trigger: HookTrigger;
|
|
280
|
-
success: boolean;
|
|
281
|
-
output: string | null;
|
|
282
|
-
error: string | null;
|
|
283
|
-
durationMs: number;
|
|
284
|
-
timestamp: string;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export interface HookDefinition {
|
|
288
|
-
id: string;
|
|
289
|
-
name: string;
|
|
290
|
-
trigger: HookTrigger;
|
|
291
|
-
enabled: boolean;
|
|
292
|
-
actionType: string;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
export interface HookStatus {
|
|
296
|
-
hooks: HookDefinition[];
|
|
297
|
-
executionHistory: HookExecutionResult[];
|
|
298
|
-
currentlyExecuting: string | null;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export type SubStepStatus =
|
|
302
|
-
| "pending"
|
|
303
|
-
| "running"
|
|
304
|
-
| "completed"
|
|
305
|
-
| "failed"
|
|
306
|
-
| "skipped";
|
|
307
|
-
|
|
308
|
-
export interface SubStepInfo {
|
|
309
|
-
id: string;
|
|
310
|
-
parentId: string;
|
|
311
|
-
name: string;
|
|
312
|
-
status: SubStepStatus;
|
|
313
|
-
index: number;
|
|
314
|
-
totalCount: number;
|
|
315
|
-
startedAt: number | null;
|
|
316
|
-
completedAt: number | null;
|
|
317
|
-
durationMs: number | null;
|
|
318
|
-
phase?: string;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export interface SubStepStatusDisplay {
|
|
322
|
-
current: SubStepInfo | null;
|
|
323
|
-
steps: SubStepInfo[];
|
|
324
|
-
progressPercent: number;
|
|
325
|
-
completedCount: number;
|
|
326
|
-
totalCount: number;
|
|
327
|
-
isActive: boolean;
|
|
328
|
-
currentPhase: string | null;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export interface ExecutionStatus {
|
|
332
|
-
taskRunId: string | null;
|
|
333
|
-
taskName: string | null;
|
|
334
|
-
iteration: number;
|
|
335
|
-
status: "idle" | "running" | "completed" | "failed" | "paused";
|
|
336
|
-
routing: RoutingStatus;
|
|
337
|
-
retry: RetryStatus;
|
|
338
|
-
compression: CompressionStatus;
|
|
339
|
-
hooks: HookStatus;
|
|
340
|
-
subSteps: SubStepStatusDisplay;
|
|
341
|
-
lastUpdated: number;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
// ============================================================================
|
|
345
|
-
// Raw Event Types (snake_case from backend) — Tier 3, hand-authored
|
|
346
|
-
// ============================================================================
|
|
347
|
-
|
|
348
|
-
export interface RawExecutionStatusEventBase {
|
|
349
|
-
type: string;
|
|
350
|
-
task_run_id: string;
|
|
351
|
-
timestamp: number;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
export interface RawRoutingDecisionPayload {
|
|
355
|
-
complexity: string;
|
|
356
|
-
confidence: number;
|
|
357
|
-
factors: string[];
|
|
358
|
-
selected_model: string;
|
|
359
|
-
prompt_preview?: string;
|
|
360
|
-
file_count?: number;
|
|
361
|
-
criteria_count?: number;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
export interface RawRetryAttemptPayload {
|
|
365
|
-
attempt_number: number;
|
|
366
|
-
error: string;
|
|
367
|
-
attempt_timestamp: string;
|
|
368
|
-
delay_ms: number;
|
|
369
|
-
feedback_injected: boolean;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export interface RawRetryStatePayload {
|
|
373
|
-
attempt: number;
|
|
374
|
-
last_error: string | null;
|
|
375
|
-
last_attempt_at: string | null;
|
|
376
|
-
total_delay_ms: number;
|
|
377
|
-
error_history: RawRetryAttemptPayload[];
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
export interface RawTokenCountPayload {
|
|
381
|
-
total: number;
|
|
382
|
-
findings: number;
|
|
383
|
-
observations: number;
|
|
384
|
-
feedback: number;
|
|
385
|
-
solutions: number;
|
|
386
|
-
other: number;
|
|
387
|
-
entry_count: number;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export interface RawCompressionResultPayload {
|
|
391
|
-
original_tokens: number;
|
|
392
|
-
compressed_tokens: number;
|
|
393
|
-
items_summarized: number;
|
|
394
|
-
summary_entries_created: number;
|
|
395
|
-
compressed_categories: string[];
|
|
396
|
-
timestamp: string;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
export interface RawHookExecutionPayload {
|
|
400
|
-
hook_id: string;
|
|
401
|
-
hook_name: string;
|
|
402
|
-
trigger: string;
|
|
403
|
-
success: boolean;
|
|
404
|
-
output: string | null;
|
|
405
|
-
error: string | null;
|
|
406
|
-
duration_ms: number;
|
|
407
|
-
timestamp: string;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
export interface RawRoutingDecisionEvent extends RawExecutionStatusEventBase {
|
|
411
|
-
type: "routing_decision";
|
|
412
|
-
decision: RawRoutingDecisionPayload;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
export interface RawRetryAttemptEvent extends RawExecutionStatusEventBase {
|
|
416
|
-
type: "retry_attempt";
|
|
417
|
-
attempt: RawRetryAttemptPayload;
|
|
418
|
-
state: RawRetryStatePayload;
|
|
419
|
-
exhausted: boolean;
|
|
420
|
-
next_retry_delay_ms: number | null;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
export interface RawCompressionEvent extends RawExecutionStatusEventBase {
|
|
424
|
-
type: "compression";
|
|
425
|
-
result: RawCompressionResultPayload;
|
|
426
|
-
current_token_count: RawTokenCountPayload;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
export interface RawTokenCountUpdateEvent extends RawExecutionStatusEventBase {
|
|
430
|
-
type: "token_count_update";
|
|
431
|
-
token_count: RawTokenCountPayload;
|
|
432
|
-
threshold_percentage: number;
|
|
433
|
-
compression_imminent: boolean;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
export interface RawHookExecutionEvent extends RawExecutionStatusEventBase {
|
|
437
|
-
type: "hook_execution";
|
|
438
|
-
result: RawHookExecutionPayload;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
export interface RawHookStartedEvent extends RawExecutionStatusEventBase {
|
|
442
|
-
type: "hook_started";
|
|
443
|
-
hook_id: string;
|
|
444
|
-
hook_name: string;
|
|
445
|
-
trigger: string;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
export interface RawStatusChangeEvent extends RawExecutionStatusEventBase {
|
|
449
|
-
type: "status_change";
|
|
450
|
-
status: string;
|
|
451
|
-
iteration: number;
|
|
452
|
-
task_name: string | null;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
export interface RawSubStepCompleteEvent {
|
|
456
|
-
type: "sub_step_complete";
|
|
457
|
-
checkpoint_id: string;
|
|
458
|
-
task_run_id: string;
|
|
459
|
-
sub_step_id: string;
|
|
460
|
-
description: string | null;
|
|
461
|
-
timestamp: number;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
export interface RawSubStepStartedEvent {
|
|
465
|
-
type: "sub_step_started";
|
|
466
|
-
checkpoint_id: string;
|
|
467
|
-
task_run_id: string;
|
|
468
|
-
sub_step_id: string;
|
|
469
|
-
sub_step_index: number;
|
|
470
|
-
total_sub_steps: number;
|
|
471
|
-
description: string | null;
|
|
472
|
-
phase: string | null;
|
|
473
|
-
timestamp: number;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
export type RawExecutionStatusEvent =
|
|
477
|
-
| RawRoutingDecisionEvent
|
|
478
|
-
| RawRetryAttemptEvent
|
|
479
|
-
| RawCompressionEvent
|
|
480
|
-
| RawTokenCountUpdateEvent
|
|
481
|
-
| RawHookExecutionEvent
|
|
482
|
-
| RawHookStartedEvent
|
|
483
|
-
| RawStatusChangeEvent;
|
|
1
|
+
/**
|
|
2
|
+
* Execution Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the unified execution reporting API that supports
|
|
5
|
+
* multiple run types: QA testing, integration testing, live automation,
|
|
6
|
+
* recording sessions, and debug runs.
|
|
7
|
+
*
|
|
8
|
+
* Tier 1 (enums) and Tier 2 (request/response DTOs) are generated from Rust
|
|
9
|
+
* (source of truth: qontinui-schemas/rust/src/execution.rs). Do not edit
|
|
10
|
+
* those sections by hand — regenerate via `just generate-types` (or
|
|
11
|
+
* `qontinui-runner/src-tauri/scripts/generate_types.sh`).
|
|
12
|
+
*
|
|
13
|
+
* Tier 3 (UI display / live-status-stream types) remains hand-authored below.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
// ============================================================================
|
|
17
|
+
// Enums (Tier 1, generated)
|
|
18
|
+
// ============================================================================
|
|
19
|
+
//
|
|
20
|
+
// For enums that had named-constant call-site syntax in the old hand-authored
|
|
21
|
+
// TS (e.g. `RunType.QA_TEST`), we import the generated literal union under an
|
|
22
|
+
// alias, re-export it as the type name, and declare a companion `const` object
|
|
23
|
+
// with the same name so `RunType.QA_TEST` still resolves as a value. TS merges
|
|
24
|
+
// the type alias and const value into one declaration usable in both
|
|
25
|
+
// positions.
|
|
26
|
+
|
|
27
|
+
import type { RunType as _RunType } from "../generated/RunType";
|
|
28
|
+
export type RunType = _RunType;
|
|
29
|
+
export const RunType = {
|
|
30
|
+
QA_TEST: "qa_test",
|
|
31
|
+
INTEGRATION_TEST: "integration_test",
|
|
32
|
+
LIVE_AUTOMATION: "live_automation",
|
|
33
|
+
RECORDING: "recording",
|
|
34
|
+
DEBUG: "debug",
|
|
35
|
+
} as const;
|
|
36
|
+
|
|
37
|
+
import type { RunStatus as _RunStatus } from "../generated/RunStatus";
|
|
38
|
+
export type RunStatus = _RunStatus;
|
|
39
|
+
export const RunStatus = {
|
|
40
|
+
PENDING: "pending",
|
|
41
|
+
RUNNING: "running",
|
|
42
|
+
COMPLETED: "completed",
|
|
43
|
+
FAILED: "failed",
|
|
44
|
+
TIMEOUT: "timeout",
|
|
45
|
+
CANCELLED: "cancelled",
|
|
46
|
+
PAUSED: "paused",
|
|
47
|
+
} as const;
|
|
48
|
+
|
|
49
|
+
import type { ActionStatus as _ActionStatus } from "../generated/ActionStatus";
|
|
50
|
+
export type ActionStatus = _ActionStatus;
|
|
51
|
+
export const ActionStatus = {
|
|
52
|
+
SUCCESS: "success",
|
|
53
|
+
FAILED: "failed",
|
|
54
|
+
TIMEOUT: "timeout",
|
|
55
|
+
SKIPPED: "skipped",
|
|
56
|
+
ERROR: "error",
|
|
57
|
+
PENDING: "pending",
|
|
58
|
+
} as const;
|
|
59
|
+
|
|
60
|
+
// `ActionType` collides with `tree_events::ActionType` on the Rust side, so
|
|
61
|
+
// the generated symbol is `ExecutionActionType`. We preserve the local name
|
|
62
|
+
// `ActionType` for backward compatibility.
|
|
63
|
+
import type { ExecutionActionType as _ActionType } from "../generated/ExecutionActionType";
|
|
64
|
+
export type ActionType = _ActionType;
|
|
65
|
+
export const ActionType = {
|
|
66
|
+
// Vision actions
|
|
67
|
+
FIND: "find",
|
|
68
|
+
FIND_ALL: "find_all",
|
|
69
|
+
WAIT_FOR: "wait_for",
|
|
70
|
+
WAIT_UNTIL_GONE: "wait_until_gone",
|
|
71
|
+
|
|
72
|
+
// Input actions
|
|
73
|
+
CLICK: "click",
|
|
74
|
+
DOUBLE_CLICK: "double_click",
|
|
75
|
+
RIGHT_CLICK: "right_click",
|
|
76
|
+
TYPE: "type",
|
|
77
|
+
PRESS_KEY: "press_key",
|
|
78
|
+
HOTKEY: "hotkey",
|
|
79
|
+
SCROLL: "scroll",
|
|
80
|
+
DRAG: "drag",
|
|
81
|
+
|
|
82
|
+
// State machine actions
|
|
83
|
+
GO_TO_STATE: "go_to_state",
|
|
84
|
+
TRANSITION: "transition",
|
|
85
|
+
VERIFY_STATE: "verify_state",
|
|
86
|
+
|
|
87
|
+
// Control flow
|
|
88
|
+
CONDITIONAL: "conditional",
|
|
89
|
+
LOOP: "loop",
|
|
90
|
+
PARALLEL: "parallel",
|
|
91
|
+
SEQUENCE: "sequence",
|
|
92
|
+
|
|
93
|
+
// Utility
|
|
94
|
+
WAIT: "wait",
|
|
95
|
+
SCREENSHOT: "screenshot",
|
|
96
|
+
LOG: "log",
|
|
97
|
+
ASSERT: "assert",
|
|
98
|
+
|
|
99
|
+
// AI actions
|
|
100
|
+
AI_PROMPT: "ai_prompt",
|
|
101
|
+
RUN_PROMPT_SEQUENCE: "run_prompt_sequence",
|
|
102
|
+
|
|
103
|
+
// Custom/plugin
|
|
104
|
+
CUSTOM: "custom",
|
|
105
|
+
} as const;
|
|
106
|
+
|
|
107
|
+
import type { ErrorType as _ErrorType } from "../generated/ErrorType";
|
|
108
|
+
export type ErrorType = _ErrorType;
|
|
109
|
+
export const ErrorType = {
|
|
110
|
+
ELEMENT_NOT_FOUND: "element_not_found",
|
|
111
|
+
TIMEOUT: "timeout",
|
|
112
|
+
ASSERTION_FAILED: "assertion_failed",
|
|
113
|
+
CRASH: "crash",
|
|
114
|
+
NETWORK_ERROR: "network_error",
|
|
115
|
+
VALIDATION_ERROR: "validation_error",
|
|
116
|
+
OTHER: "other",
|
|
117
|
+
} as const;
|
|
118
|
+
|
|
119
|
+
import type { IssueSeverity as _IssueSeverity } from "../generated/IssueSeverity";
|
|
120
|
+
export type IssueSeverity = _IssueSeverity;
|
|
121
|
+
export const IssueSeverity = {
|
|
122
|
+
CRITICAL: "critical",
|
|
123
|
+
HIGH: "high",
|
|
124
|
+
MEDIUM: "medium",
|
|
125
|
+
LOW: "low",
|
|
126
|
+
INFORMATIONAL: "informational",
|
|
127
|
+
} as const;
|
|
128
|
+
|
|
129
|
+
import type { ScreenshotType as _ScreenshotType } from "../generated/ScreenshotType";
|
|
130
|
+
export type ScreenshotType = _ScreenshotType;
|
|
131
|
+
export const ScreenshotType = {
|
|
132
|
+
ERROR: "error",
|
|
133
|
+
SUCCESS: "success",
|
|
134
|
+
MANUAL: "manual",
|
|
135
|
+
PERIODIC: "periodic",
|
|
136
|
+
ACTION_RESULT: "action_result",
|
|
137
|
+
STATE_VERIFICATION: "state_verification",
|
|
138
|
+
} as const;
|
|
139
|
+
|
|
140
|
+
// Shape of annotation overlay on a screenshot. Was inline on
|
|
141
|
+
// `ExecutionScreenshotCreate.annotations[].type` previously. No call sites
|
|
142
|
+
// used a named-constant syntax, so a plain re-export suffices.
|
|
143
|
+
export type { ScreenshotAnnotationShape } from "../generated/ScreenshotAnnotationShape";
|
|
144
|
+
|
|
145
|
+
// ============================================================================
|
|
146
|
+
// Metadata & DTO Types (Tier 2, generated)
|
|
147
|
+
// ============================================================================
|
|
148
|
+
|
|
149
|
+
export type { RunnerMetadata } from "../generated/RunnerMetadata";
|
|
150
|
+
export type { WorkflowMetadata } from "../generated/WorkflowMetadata";
|
|
151
|
+
export type { ExecutionStats } from "../generated/ExecutionStats";
|
|
152
|
+
export type { CoverageData } from "../generated/CoverageData";
|
|
153
|
+
export type { LLMMetrics } from "../generated/LLMMetrics";
|
|
154
|
+
|
|
155
|
+
// ============================================================================
|
|
156
|
+
// Request/Create + Response Types (Tier 2, generated)
|
|
157
|
+
// ============================================================================
|
|
158
|
+
|
|
159
|
+
export type { ExecutionRunCreate } from "../generated/ExecutionRunCreate";
|
|
160
|
+
export type { ExecutionRunResponse } from "../generated/ExecutionRunResponse";
|
|
161
|
+
|
|
162
|
+
// `MatchLocation` collides with `tree_events::MatchLocation` on the Rust
|
|
163
|
+
// side, so the generated symbol is `ExecutionMatchLocation`. Preserve the
|
|
164
|
+
// local name via a re-export alias.
|
|
165
|
+
export type { ExecutionMatchLocation as MatchLocation } from "../generated/ExecutionMatchLocation";
|
|
166
|
+
|
|
167
|
+
export type { ActionExecutionCreate } from "../generated/ActionExecutionCreate";
|
|
168
|
+
export type { ActionExecutionResponse } from "../generated/ActionExecutionResponse";
|
|
169
|
+
|
|
170
|
+
export type { ScreenshotAnnotation } from "../generated/ScreenshotAnnotation";
|
|
171
|
+
export type { ExecutionScreenshotCreate } from "../generated/ExecutionScreenshotCreate";
|
|
172
|
+
export type { ExecutionScreenshotResponse } from "../generated/ExecutionScreenshotResponse";
|
|
173
|
+
|
|
174
|
+
export type { ExecutionIssueCreate } from "../generated/ExecutionIssueCreate";
|
|
175
|
+
export type { ExecutionIssueResponse } from "../generated/ExecutionIssueResponse";
|
|
176
|
+
|
|
177
|
+
export type { ExecutionRunComplete } from "../generated/ExecutionRunComplete";
|
|
178
|
+
export type { ExecutionRunCompleteResponse } from "../generated/ExecutionRunCompleteResponse";
|
|
179
|
+
|
|
180
|
+
// ============================================================================
|
|
181
|
+
// Execution Status Types (real-time display) — Tier 3, hand-authored
|
|
182
|
+
// ============================================================================
|
|
183
|
+
|
|
184
|
+
export type TaskComplexity = "simple" | "medium" | "complex";
|
|
185
|
+
|
|
186
|
+
export interface RoutingFactor {
|
|
187
|
+
description: string;
|
|
188
|
+
complexity: TaskComplexity;
|
|
189
|
+
weight: number;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface RoutingDecision {
|
|
193
|
+
complexity: TaskComplexity;
|
|
194
|
+
confidence: number;
|
|
195
|
+
factors: string[];
|
|
196
|
+
selectedModel: string;
|
|
197
|
+
timestamp: number;
|
|
198
|
+
promptPreview?: string;
|
|
199
|
+
fileCount?: number;
|
|
200
|
+
criteriaCount?: number;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface RoutingStatus {
|
|
204
|
+
enabled: boolean;
|
|
205
|
+
decision: RoutingDecision | null;
|
|
206
|
+
config: {
|
|
207
|
+
simpleModel: string;
|
|
208
|
+
mediumModel: string;
|
|
209
|
+
complexModel: string;
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface RetryAttempt {
|
|
214
|
+
attemptNumber: number;
|
|
215
|
+
error: string;
|
|
216
|
+
timestamp: string;
|
|
217
|
+
delayMs: number;
|
|
218
|
+
feedbackInjected: boolean;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface RetryState {
|
|
222
|
+
attempt: number;
|
|
223
|
+
lastError: string | null;
|
|
224
|
+
lastAttemptAt: string | null;
|
|
225
|
+
totalDelayMs: number;
|
|
226
|
+
errorHistory: RetryAttempt[];
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export interface RetryStatus {
|
|
230
|
+
enabled: boolean;
|
|
231
|
+
maxRetries: number;
|
|
232
|
+
feedbackInjection: boolean;
|
|
233
|
+
state: RetryState;
|
|
234
|
+
nextRetryDelayMs: number | null;
|
|
235
|
+
exhausted: boolean;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface TokenCount {
|
|
239
|
+
total: number;
|
|
240
|
+
findings: number;
|
|
241
|
+
observations: number;
|
|
242
|
+
feedback: number;
|
|
243
|
+
solutions: number;
|
|
244
|
+
other: number;
|
|
245
|
+
entryCount: number;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface CompressionResult {
|
|
249
|
+
originalTokens: number;
|
|
250
|
+
compressedTokens: number;
|
|
251
|
+
itemsSummarized: number;
|
|
252
|
+
summaryEntriesCreated: number;
|
|
253
|
+
compressedCategories: string[];
|
|
254
|
+
timestamp: string;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface CompressionStatus {
|
|
258
|
+
enabled: boolean;
|
|
259
|
+
thresholdTokens: number;
|
|
260
|
+
targetTokens: number;
|
|
261
|
+
currentTokenCount: TokenCount | null;
|
|
262
|
+
lastCompression: CompressionResult | null;
|
|
263
|
+
thresholdPercentage: number;
|
|
264
|
+
compressionImminent: boolean;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export type HookTrigger =
|
|
268
|
+
| "pre_execution"
|
|
269
|
+
| "post_execution"
|
|
270
|
+
| "on_error"
|
|
271
|
+
| "on_verification_fail"
|
|
272
|
+
| "on_complete"
|
|
273
|
+
| "pre_iteration"
|
|
274
|
+
| "post_iteration";
|
|
275
|
+
|
|
276
|
+
export interface HookExecutionResult {
|
|
277
|
+
hookId: string;
|
|
278
|
+
hookName: string;
|
|
279
|
+
trigger: HookTrigger;
|
|
280
|
+
success: boolean;
|
|
281
|
+
output: string | null;
|
|
282
|
+
error: string | null;
|
|
283
|
+
durationMs: number;
|
|
284
|
+
timestamp: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface HookDefinition {
|
|
288
|
+
id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
trigger: HookTrigger;
|
|
291
|
+
enabled: boolean;
|
|
292
|
+
actionType: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface HookStatus {
|
|
296
|
+
hooks: HookDefinition[];
|
|
297
|
+
executionHistory: HookExecutionResult[];
|
|
298
|
+
currentlyExecuting: string | null;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export type SubStepStatus =
|
|
302
|
+
| "pending"
|
|
303
|
+
| "running"
|
|
304
|
+
| "completed"
|
|
305
|
+
| "failed"
|
|
306
|
+
| "skipped";
|
|
307
|
+
|
|
308
|
+
export interface SubStepInfo {
|
|
309
|
+
id: string;
|
|
310
|
+
parentId: string;
|
|
311
|
+
name: string;
|
|
312
|
+
status: SubStepStatus;
|
|
313
|
+
index: number;
|
|
314
|
+
totalCount: number;
|
|
315
|
+
startedAt: number | null;
|
|
316
|
+
completedAt: number | null;
|
|
317
|
+
durationMs: number | null;
|
|
318
|
+
phase?: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface SubStepStatusDisplay {
|
|
322
|
+
current: SubStepInfo | null;
|
|
323
|
+
steps: SubStepInfo[];
|
|
324
|
+
progressPercent: number;
|
|
325
|
+
completedCount: number;
|
|
326
|
+
totalCount: number;
|
|
327
|
+
isActive: boolean;
|
|
328
|
+
currentPhase: string | null;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export interface ExecutionStatus {
|
|
332
|
+
taskRunId: string | null;
|
|
333
|
+
taskName: string | null;
|
|
334
|
+
iteration: number;
|
|
335
|
+
status: "idle" | "running" | "completed" | "failed" | "paused";
|
|
336
|
+
routing: RoutingStatus;
|
|
337
|
+
retry: RetryStatus;
|
|
338
|
+
compression: CompressionStatus;
|
|
339
|
+
hooks: HookStatus;
|
|
340
|
+
subSteps: SubStepStatusDisplay;
|
|
341
|
+
lastUpdated: number;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// ============================================================================
|
|
345
|
+
// Raw Event Types (snake_case from backend) — Tier 3, hand-authored
|
|
346
|
+
// ============================================================================
|
|
347
|
+
|
|
348
|
+
export interface RawExecutionStatusEventBase {
|
|
349
|
+
type: string;
|
|
350
|
+
task_run_id: string;
|
|
351
|
+
timestamp: number;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export interface RawRoutingDecisionPayload {
|
|
355
|
+
complexity: string;
|
|
356
|
+
confidence: number;
|
|
357
|
+
factors: string[];
|
|
358
|
+
selected_model: string;
|
|
359
|
+
prompt_preview?: string;
|
|
360
|
+
file_count?: number;
|
|
361
|
+
criteria_count?: number;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export interface RawRetryAttemptPayload {
|
|
365
|
+
attempt_number: number;
|
|
366
|
+
error: string;
|
|
367
|
+
attempt_timestamp: string;
|
|
368
|
+
delay_ms: number;
|
|
369
|
+
feedback_injected: boolean;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export interface RawRetryStatePayload {
|
|
373
|
+
attempt: number;
|
|
374
|
+
last_error: string | null;
|
|
375
|
+
last_attempt_at: string | null;
|
|
376
|
+
total_delay_ms: number;
|
|
377
|
+
error_history: RawRetryAttemptPayload[];
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export interface RawTokenCountPayload {
|
|
381
|
+
total: number;
|
|
382
|
+
findings: number;
|
|
383
|
+
observations: number;
|
|
384
|
+
feedback: number;
|
|
385
|
+
solutions: number;
|
|
386
|
+
other: number;
|
|
387
|
+
entry_count: number;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export interface RawCompressionResultPayload {
|
|
391
|
+
original_tokens: number;
|
|
392
|
+
compressed_tokens: number;
|
|
393
|
+
items_summarized: number;
|
|
394
|
+
summary_entries_created: number;
|
|
395
|
+
compressed_categories: string[];
|
|
396
|
+
timestamp: string;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export interface RawHookExecutionPayload {
|
|
400
|
+
hook_id: string;
|
|
401
|
+
hook_name: string;
|
|
402
|
+
trigger: string;
|
|
403
|
+
success: boolean;
|
|
404
|
+
output: string | null;
|
|
405
|
+
error: string | null;
|
|
406
|
+
duration_ms: number;
|
|
407
|
+
timestamp: string;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export interface RawRoutingDecisionEvent extends RawExecutionStatusEventBase {
|
|
411
|
+
type: "routing_decision";
|
|
412
|
+
decision: RawRoutingDecisionPayload;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export interface RawRetryAttemptEvent extends RawExecutionStatusEventBase {
|
|
416
|
+
type: "retry_attempt";
|
|
417
|
+
attempt: RawRetryAttemptPayload;
|
|
418
|
+
state: RawRetryStatePayload;
|
|
419
|
+
exhausted: boolean;
|
|
420
|
+
next_retry_delay_ms: number | null;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
export interface RawCompressionEvent extends RawExecutionStatusEventBase {
|
|
424
|
+
type: "compression";
|
|
425
|
+
result: RawCompressionResultPayload;
|
|
426
|
+
current_token_count: RawTokenCountPayload;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export interface RawTokenCountUpdateEvent extends RawExecutionStatusEventBase {
|
|
430
|
+
type: "token_count_update";
|
|
431
|
+
token_count: RawTokenCountPayload;
|
|
432
|
+
threshold_percentage: number;
|
|
433
|
+
compression_imminent: boolean;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export interface RawHookExecutionEvent extends RawExecutionStatusEventBase {
|
|
437
|
+
type: "hook_execution";
|
|
438
|
+
result: RawHookExecutionPayload;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export interface RawHookStartedEvent extends RawExecutionStatusEventBase {
|
|
442
|
+
type: "hook_started";
|
|
443
|
+
hook_id: string;
|
|
444
|
+
hook_name: string;
|
|
445
|
+
trigger: string;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export interface RawStatusChangeEvent extends RawExecutionStatusEventBase {
|
|
449
|
+
type: "status_change";
|
|
450
|
+
status: string;
|
|
451
|
+
iteration: number;
|
|
452
|
+
task_name: string | null;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
export interface RawSubStepCompleteEvent {
|
|
456
|
+
type: "sub_step_complete";
|
|
457
|
+
checkpoint_id: string;
|
|
458
|
+
task_run_id: string;
|
|
459
|
+
sub_step_id: string;
|
|
460
|
+
description: string | null;
|
|
461
|
+
timestamp: number;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export interface RawSubStepStartedEvent {
|
|
465
|
+
type: "sub_step_started";
|
|
466
|
+
checkpoint_id: string;
|
|
467
|
+
task_run_id: string;
|
|
468
|
+
sub_step_id: string;
|
|
469
|
+
sub_step_index: number;
|
|
470
|
+
total_sub_steps: number;
|
|
471
|
+
description: string | null;
|
|
472
|
+
phase: string | null;
|
|
473
|
+
timestamp: number;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export type RawExecutionStatusEvent =
|
|
477
|
+
| RawRoutingDecisionEvent
|
|
478
|
+
| RawRetryAttemptEvent
|
|
479
|
+
| RawCompressionEvent
|
|
480
|
+
| RawTokenCountUpdateEvent
|
|
481
|
+
| RawHookExecutionEvent
|
|
482
|
+
| RawHookStartedEvent
|
|
483
|
+
| RawStatusChangeEvent;
|