@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,220 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IR -> WorkflowConfig adapter.
|
|
3
|
+
*
|
|
4
|
+
* Single point of translation between authoring-time IR (with provenance,
|
|
5
|
+
* metadata, effect, crossRefs, visualRefs) and the runtime/storage shape
|
|
6
|
+
* that ui-bridge-auto consumes. See ADR-001 (decision #6 / #7) for the
|
|
7
|
+
* boundary rationale.
|
|
8
|
+
*
|
|
9
|
+
* The output is intentionally typed structurally — this module has no
|
|
10
|
+
* runtime dependency on ui-bridge-auto. ui-bridge-auto's own tests verify
|
|
11
|
+
* end-to-end compatibility with `engine.defineStates(...)` /
|
|
12
|
+
* `engine.defineTransitions(...)` (see
|
|
13
|
+
* `ui-bridge-auto/src/__tests__/spike-ir-contract.test.ts`).
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import type { IRElementCriteria } from "./element-criteria";
|
|
17
|
+
import type { IRDocument } from "./document";
|
|
18
|
+
import type { IRState, IRStateCondition } from "./state";
|
|
19
|
+
import type { IRTransition, IRTransitionAction, IRWaitSpec } from "./transition";
|
|
20
|
+
|
|
21
|
+
// ---------------------------------------------------------------------------
|
|
22
|
+
// Output shapes — structural mirrors of ui-bridge-auto's WorkflowConfig.
|
|
23
|
+
// Kept in sync via ui-bridge-auto's regression test, NOT compile-time
|
|
24
|
+
// imports (qontinui-schemas has no runtime deps by design).
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
/** Mirrors `StateConfig` from ui-bridge-auto/src/config/workflow.ts:47. */
|
|
28
|
+
export interface AdaptedState {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
requiredElements: IRElementCriteria[];
|
|
33
|
+
excludedElements?: IRElementCriteria[];
|
|
34
|
+
conditions?: IRStateCondition[];
|
|
35
|
+
isInitial?: boolean;
|
|
36
|
+
isTerminal?: boolean;
|
|
37
|
+
blocking?: boolean;
|
|
38
|
+
group?: string;
|
|
39
|
+
pathCost?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Mirrors the runtime `TransitionDefinition` shape from
|
|
44
|
+
* ui-bridge-auto/src/state/state-machine.ts:40.
|
|
45
|
+
*
|
|
46
|
+
* Note: ui-bridge-auto has two related Transition shapes — the storage shape
|
|
47
|
+
* (`TransitionConfig` in config/workflow.ts:54, with action field named
|
|
48
|
+
* `type`) and the runtime engine shape (`TransitionDefinition` in
|
|
49
|
+
* state-machine.ts:40, with action field named `action`). The runtime engine
|
|
50
|
+
* is what consumers actually pass adapter output into via
|
|
51
|
+
* `engine.defineTransitions(...)`, so the adapter targets the runtime shape.
|
|
52
|
+
*/
|
|
53
|
+
export interface AdaptedTransition {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
fromStates: string[];
|
|
58
|
+
activateStates: string[];
|
|
59
|
+
/** Adapter normalizes IR's optional `exitStates` to a required array. */
|
|
60
|
+
exitStates: string[];
|
|
61
|
+
actions: AdaptedTransitionAction[];
|
|
62
|
+
pathCost?: number;
|
|
63
|
+
bidirectional?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Mirrors the runtime `TransitionAction` from
|
|
68
|
+
* ui-bridge-auto/src/state/state-machine.ts:55.
|
|
69
|
+
*
|
|
70
|
+
* The IR uses `type` for the action verb (matching the storage-shape
|
|
71
|
+
* convention); the adapter renames it to `action` for the runtime engine.
|
|
72
|
+
*
|
|
73
|
+
* `waitAfter` is narrower than `IRWaitSpec` — the runtime engine accepts
|
|
74
|
+
* only a subset of wait types and a subset of fields. The adapter drops
|
|
75
|
+
* IR-only wait variants (e.g., `state`, `condition`) and IR-only fields
|
|
76
|
+
* (e.g., `property`, `quietPeriodMs`). Authors can still express richer
|
|
77
|
+
* waits in the IR; they just don't survive the runtime contract.
|
|
78
|
+
*/
|
|
79
|
+
export interface AdaptedWaitAfter {
|
|
80
|
+
type: "idle" | "element" | "time" | "vanish" | "change" | "stable";
|
|
81
|
+
query?: IRElementCriteria;
|
|
82
|
+
ms?: number;
|
|
83
|
+
timeout?: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface AdaptedTransitionAction {
|
|
87
|
+
/** Action verb — renamed from IR's `type` to match the runtime contract. */
|
|
88
|
+
action: string;
|
|
89
|
+
target: IRElementCriteria;
|
|
90
|
+
params?: Record<string, unknown>;
|
|
91
|
+
waitAfter?: AdaptedWaitAfter;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** Mirrors `WorkflowConfig` from ui-bridge-auto/src/config/workflow.ts:67. */
|
|
95
|
+
export interface AdaptedWorkflowConfig {
|
|
96
|
+
id: string;
|
|
97
|
+
name: string;
|
|
98
|
+
description?: string;
|
|
99
|
+
version?: string;
|
|
100
|
+
states: AdaptedState[];
|
|
101
|
+
transitions: AdaptedTransition[];
|
|
102
|
+
initialState?: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// ---------------------------------------------------------------------------
|
|
106
|
+
// Adapter implementation
|
|
107
|
+
// ---------------------------------------------------------------------------
|
|
108
|
+
|
|
109
|
+
const SUPPORTED_IR_VERSIONS = new Set<string>(["1.0"]);
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Convert an IR state declaration into the runtime/storage state shape.
|
|
113
|
+
* Strips IR-only fields (metadata, provenance, elementIds,
|
|
114
|
+
* incomingTransitions, crossRefs, visualRefs).
|
|
115
|
+
*/
|
|
116
|
+
export function adaptIRState(state: IRState): AdaptedState {
|
|
117
|
+
const out: AdaptedState = {
|
|
118
|
+
id: state.id,
|
|
119
|
+
name: state.name,
|
|
120
|
+
requiredElements: state.requiredElements,
|
|
121
|
+
};
|
|
122
|
+
if (state.description !== undefined) out.description = state.description;
|
|
123
|
+
if (state.excludedElements !== undefined) out.excludedElements = state.excludedElements;
|
|
124
|
+
if (state.conditions !== undefined) out.conditions = state.conditions;
|
|
125
|
+
if (state.isInitial !== undefined) out.isInitial = state.isInitial;
|
|
126
|
+
if (state.isTerminal !== undefined) out.isTerminal = state.isTerminal;
|
|
127
|
+
if (state.blocking !== undefined) out.blocking = state.blocking;
|
|
128
|
+
if (state.group !== undefined) out.group = state.group;
|
|
129
|
+
if (state.pathCost !== undefined) out.pathCost = state.pathCost;
|
|
130
|
+
return out;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Wait types the runtime engine accepts. IR-authored waits with other types
|
|
135
|
+
* (e.g., `state`, `condition`) are dropped from the adapter output.
|
|
136
|
+
*/
|
|
137
|
+
const RUNTIME_WAIT_TYPES = new Set<AdaptedWaitAfter["type"]>([
|
|
138
|
+
"idle",
|
|
139
|
+
"element",
|
|
140
|
+
"time",
|
|
141
|
+
"vanish",
|
|
142
|
+
"change",
|
|
143
|
+
"stable",
|
|
144
|
+
]);
|
|
145
|
+
|
|
146
|
+
function adaptIRWaitAfter(wait: IRWaitSpec): AdaptedWaitAfter | undefined {
|
|
147
|
+
if (!RUNTIME_WAIT_TYPES.has(wait.type as AdaptedWaitAfter["type"])) {
|
|
148
|
+
// IR-authored wait is richer than runtime supports — drop it.
|
|
149
|
+
// Runtime defaults (default idle behaviour) take over.
|
|
150
|
+
return undefined;
|
|
151
|
+
}
|
|
152
|
+
const out: AdaptedWaitAfter = { type: wait.type as AdaptedWaitAfter["type"] };
|
|
153
|
+
if (wait.query !== undefined) out.query = wait.query;
|
|
154
|
+
if (wait.ms !== undefined) out.ms = wait.ms;
|
|
155
|
+
if (wait.timeout !== undefined) out.timeout = wait.timeout;
|
|
156
|
+
return out;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Convert an IR transition action into the runtime action shape.
|
|
161
|
+
* Renames IR's `type` to runtime's `action`; narrows `waitAfter` to the
|
|
162
|
+
* runtime-accepted subset.
|
|
163
|
+
*/
|
|
164
|
+
export function adaptIRTransitionAction(action: IRTransitionAction): AdaptedTransitionAction {
|
|
165
|
+
const out: AdaptedTransitionAction = {
|
|
166
|
+
action: action.type,
|
|
167
|
+
target: action.target,
|
|
168
|
+
};
|
|
169
|
+
if (action.params !== undefined) out.params = action.params;
|
|
170
|
+
if (action.waitAfter !== undefined) {
|
|
171
|
+
const adaptedWait = adaptIRWaitAfter(action.waitAfter);
|
|
172
|
+
if (adaptedWait !== undefined) out.waitAfter = adaptedWait;
|
|
173
|
+
}
|
|
174
|
+
return out;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Convert an IR transition declaration into the runtime/storage transition
|
|
179
|
+
* shape. Strips IR-only fields (effect, metadata, provenance, crossRefs)
|
|
180
|
+
* and defaults `exitStates` to `[]` when omitted.
|
|
181
|
+
*/
|
|
182
|
+
export function adaptIRTransition(transition: IRTransition): AdaptedTransition {
|
|
183
|
+
const out: AdaptedTransition = {
|
|
184
|
+
id: transition.id,
|
|
185
|
+
name: transition.name,
|
|
186
|
+
fromStates: transition.fromStates,
|
|
187
|
+
activateStates: transition.activateStates,
|
|
188
|
+
exitStates: transition.exitStates ?? [],
|
|
189
|
+
actions: transition.actions.map(adaptIRTransitionAction),
|
|
190
|
+
};
|
|
191
|
+
if (transition.description !== undefined) out.description = transition.description;
|
|
192
|
+
if (transition.pathCost !== undefined) out.pathCost = transition.pathCost;
|
|
193
|
+
if (transition.bidirectional !== undefined) out.bidirectional = transition.bidirectional;
|
|
194
|
+
return out;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Convert a top-level IR document into the runtime `WorkflowConfig` shape.
|
|
199
|
+
*
|
|
200
|
+
* Throws on unknown IR versions to fail loudly rather than silently emit
|
|
201
|
+
* stale shapes.
|
|
202
|
+
*/
|
|
203
|
+
export function adaptIRDocumentToWorkflowConfig(doc: IRDocument): AdaptedWorkflowConfig {
|
|
204
|
+
if (!SUPPORTED_IR_VERSIONS.has(doc.version)) {
|
|
205
|
+
throw new Error(
|
|
206
|
+
`adaptIRDocumentToWorkflowConfig: unsupported IR version "${doc.version}". ` +
|
|
207
|
+
`Supported: ${Array.from(SUPPORTED_IR_VERSIONS).join(", ")}`,
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const out: AdaptedWorkflowConfig = {
|
|
212
|
+
id: doc.id,
|
|
213
|
+
name: doc.name,
|
|
214
|
+
states: doc.states.map(adaptIRState),
|
|
215
|
+
transitions: doc.transitions.map(adaptIRTransition),
|
|
216
|
+
};
|
|
217
|
+
if (doc.description !== undefined) out.description = doc.description;
|
|
218
|
+
if (doc.initialState !== undefined) out.initialState = doc.initialState;
|
|
219
|
+
return out;
|
|
220
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Top-level IR document.
|
|
3
|
+
*
|
|
4
|
+
* Versioned (`'1.0'`) container for the states + transitions that describe
|
|
5
|
+
* a page or scope of an application. Build plugins emit this shape; the
|
|
6
|
+
* adapter folds it into ui-bridge-auto's `WorkflowConfig`.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { IRMetadata, IRProvenance } from "./primitives";
|
|
10
|
+
import type { IRState } from "./state";
|
|
11
|
+
import type { IRTransition } from "./transition";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* IR schema version. Bump when the shape changes in a backwards-incompatible
|
|
15
|
+
* way. The adapter rejects documents whose version it does not understand.
|
|
16
|
+
*/
|
|
17
|
+
export type IRVersion = "1.0";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Top-level IR document.
|
|
21
|
+
*/
|
|
22
|
+
export interface IRDocument {
|
|
23
|
+
/** Schema version. */
|
|
24
|
+
version: IRVersion;
|
|
25
|
+
/** Stable document identifier (typically the page or scope name). */
|
|
26
|
+
id: string;
|
|
27
|
+
/** Human-readable document name. */
|
|
28
|
+
name: string;
|
|
29
|
+
/** Optional description of what this document covers. */
|
|
30
|
+
description?: string;
|
|
31
|
+
/** Document-level semantic metadata. */
|
|
32
|
+
metadata?: IRMetadata;
|
|
33
|
+
/** Where this document came from. */
|
|
34
|
+
provenance?: IRProvenance;
|
|
35
|
+
|
|
36
|
+
/** State declarations within this document. */
|
|
37
|
+
states: IRState[];
|
|
38
|
+
/** Transition declarations within this document. */
|
|
39
|
+
transitions: IRTransition[];
|
|
40
|
+
|
|
41
|
+
/** ID of the initial/starting state, if applicable. */
|
|
42
|
+
initialState?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IR's canonical element-matching shape.
|
|
3
|
+
*
|
|
4
|
+
* Per decision #7 (SESSION_PROMPTS.md): IR adopts ui-bridge-auto's
|
|
5
|
+
* `ElementCriteria` as the canonical authoring shape — criteria survive ID
|
|
6
|
+
* drift and are descriptive rather than identity-based. The shape mirrors
|
|
7
|
+
* ui-bridge-auto/src/types/match.ts:20 exactly so the IR -> WorkflowConfig
|
|
8
|
+
* adapter is structurally identity (no rewriting at the criteria level).
|
|
9
|
+
*
|
|
10
|
+
* `elementIds: string[]` is an OPTIONAL companion the runtime SDK fills in at
|
|
11
|
+
* registration time when criteria resolve to specific registered elements.
|
|
12
|
+
* Authors write criteria; the runtime caches resolutions.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Minimal criteria to identify a DOM element.
|
|
17
|
+
*
|
|
18
|
+
* Mirrors `ElementCriteria` from `ui-bridge-auto/src/types/match.ts:20`.
|
|
19
|
+
* Kept as a separate copy here (not re-exported) so the IR module has no
|
|
20
|
+
* runtime dependency on ui-bridge-auto. The adapter is the single point of
|
|
21
|
+
* type-level reconciliation.
|
|
22
|
+
*/
|
|
23
|
+
export interface IRElementCriteria {
|
|
24
|
+
/** ARIA role or inferred role. */
|
|
25
|
+
role?: string;
|
|
26
|
+
/** HTML tag name (e.g. "div", "button"). Heavily used in legacy specs. */
|
|
27
|
+
tagName?: string;
|
|
28
|
+
/** Exact text content (trimmed). */
|
|
29
|
+
text?: string;
|
|
30
|
+
/** Substring match on text content (case-insensitive). */
|
|
31
|
+
textContains?: string;
|
|
32
|
+
/**
|
|
33
|
+
* ARIA label (case-insensitive substring match). Synonym of `accessibleName`
|
|
34
|
+
* for the runtime SDK; the projection prefers `accessibleName` when both are
|
|
35
|
+
* present.
|
|
36
|
+
*/
|
|
37
|
+
ariaLabel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Computed accessible name (the same concept legacy specs serialize as
|
|
40
|
+
* `accessibleName`). Added section 3 so the inverse projection can
|
|
41
|
+
* round-trip without rewriting to `ariaLabel`.
|
|
42
|
+
*/
|
|
43
|
+
accessibleName?: string;
|
|
44
|
+
/** Element ID (exact string or pattern-source string). */
|
|
45
|
+
id?: string;
|
|
46
|
+
/** HTML attributes to check (exact string match). */
|
|
47
|
+
attributes?: Record<string, string>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @qontinui/shared-types/ui-bridge-ir
|
|
3
|
+
*
|
|
4
|
+
* Authoring-time intermediate representation for the UI Bridge redesign.
|
|
5
|
+
* Build plugins (Vite, Next.js, Metro) emit `IRDocument` instances; the
|
|
6
|
+
* adapter (`adaptIRToWorkflowConfig`) folds them into ui-bridge-auto's
|
|
7
|
+
* runtime shape.
|
|
8
|
+
*
|
|
9
|
+
* Boundary with `@qontinui/shared-types/state-machine` (per ADR-001 /
|
|
10
|
+
* decision #6): `state-machine` houses snake_case Rust-generated wire types
|
|
11
|
+
* for the runtime/db. `ui-bridge-ir` is camelCase, authoring-time, and
|
|
12
|
+
* carries IR-only fields (provenance, metadata, effect, crossRefs,
|
|
13
|
+
* visualRefs). The adapter is the single point of translation between the
|
|
14
|
+
* two namespaces.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export * from "./primitives";
|
|
18
|
+
export * from "./element-criteria";
|
|
19
|
+
export * from "./state";
|
|
20
|
+
export * from "./transition";
|
|
21
|
+
export * from "./document";
|
|
22
|
+
export * from "./adapter";
|
|
23
|
+
export * from "./projection";
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://qontinui.io/schemas/ui-bridge-ir/1.0/ir.schema.json",
|
|
4
|
+
"title": "UI Bridge IR Document",
|
|
5
|
+
"description": "Authoring-time intermediate representation for the UI Bridge redesign. Build plugins emit instances of this shape; the IR -> WorkflowConfig adapter folds them into ui-bridge-auto's runtime shape.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["version", "id", "name", "states", "transitions"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"version": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"enum": ["1.0"]
|
|
12
|
+
},
|
|
13
|
+
"id": { "type": "string" },
|
|
14
|
+
"name": { "type": "string" },
|
|
15
|
+
"description": { "type": "string" },
|
|
16
|
+
"metadata": { "$ref": "#/$defs/IRMetadata" },
|
|
17
|
+
"provenance": { "$ref": "#/$defs/IRProvenance" },
|
|
18
|
+
"initialState": { "type": "string" },
|
|
19
|
+
"states": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": { "$ref": "#/$defs/IRState" }
|
|
22
|
+
},
|
|
23
|
+
"transitions": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": { "$ref": "#/$defs/IRTransition" }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"$defs": {
|
|
29
|
+
"IRElementCriteria": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"properties": {
|
|
33
|
+
"role": { "type": "string" },
|
|
34
|
+
"tagName": { "type": "string" },
|
|
35
|
+
"text": { "type": "string" },
|
|
36
|
+
"textContains": { "type": "string" },
|
|
37
|
+
"ariaLabel": { "type": "string" },
|
|
38
|
+
"accessibleName": { "type": "string" },
|
|
39
|
+
"id": { "type": "string" },
|
|
40
|
+
"attributes": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": { "type": "string" }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"IRMetadata": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"properties": {
|
|
50
|
+
"description": { "type": "string" },
|
|
51
|
+
"purpose": { "type": "string" },
|
|
52
|
+
"tags": { "type": "array", "items": { "type": "string" } },
|
|
53
|
+
"relatedElements": { "type": "array", "items": { "type": "string" } },
|
|
54
|
+
"notes": { "type": "string" }
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"IRProvenance": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": ["source"],
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"properties": {
|
|
62
|
+
"source": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"enum": ["hand-authored", "build-plugin", "ai-generated", "migrated"]
|
|
65
|
+
},
|
|
66
|
+
"file": { "type": "string" },
|
|
67
|
+
"line": { "type": "integer", "minimum": 1 },
|
|
68
|
+
"column": { "type": "integer", "minimum": 1 },
|
|
69
|
+
"pluginVersion": { "type": "string" }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"IRCrossRef": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"required": ["doc", "ref"],
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"properties": {
|
|
77
|
+
"doc": { "type": "string" },
|
|
78
|
+
"ref": { "type": "string" }
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"IRVisualRef": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"required": ["asset"],
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"properties": {
|
|
86
|
+
"asset": { "type": "string" },
|
|
87
|
+
"region": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"required": ["x", "y", "width", "height"],
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"properties": {
|
|
92
|
+
"x": { "type": "number" },
|
|
93
|
+
"y": { "type": "number" },
|
|
94
|
+
"width": { "type": "number" },
|
|
95
|
+
"height": { "type": "number" }
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"capturedAt": { "type": "integer" }
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"IRStateCondition": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": ["element", "property", "expected"],
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"properties": {
|
|
106
|
+
"element": { "$ref": "#/$defs/IRElementCriteria" },
|
|
107
|
+
"property": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"enum": ["visible", "enabled", "checked", "expanded", "selected", "text", "value"]
|
|
110
|
+
},
|
|
111
|
+
"expected": {},
|
|
112
|
+
"comparator": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"enum": ["equals", "contains", "matches", "greaterThan", "lessThan"]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"IRState": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"required": ["id", "name", "requiredElements"],
|
|
121
|
+
"additionalProperties": false,
|
|
122
|
+
"properties": {
|
|
123
|
+
"id": { "type": "string" },
|
|
124
|
+
"name": { "type": "string" },
|
|
125
|
+
"description": { "type": "string" },
|
|
126
|
+
"requiredElements": {
|
|
127
|
+
"type": "array",
|
|
128
|
+
"items": { "$ref": "#/$defs/IRElementCriteria" }
|
|
129
|
+
},
|
|
130
|
+
"excludedElements": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"items": { "$ref": "#/$defs/IRElementCriteria" }
|
|
133
|
+
},
|
|
134
|
+
"conditions": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": { "$ref": "#/$defs/IRStateCondition" }
|
|
137
|
+
},
|
|
138
|
+
"isInitial": { "type": "boolean" },
|
|
139
|
+
"isTerminal": { "type": "boolean" },
|
|
140
|
+
"blocking": { "type": "boolean" },
|
|
141
|
+
"group": { "type": "string" },
|
|
142
|
+
"pathCost": { "type": "number" },
|
|
143
|
+
"precondition": { "type": "string" },
|
|
144
|
+
"elementIds": { "type": "array", "items": { "type": "string" } },
|
|
145
|
+
"incomingTransitions": { "type": "array", "items": { "type": "string" } },
|
|
146
|
+
"metadata": { "$ref": "#/$defs/IRMetadata" },
|
|
147
|
+
"provenance": { "$ref": "#/$defs/IRProvenance" },
|
|
148
|
+
"crossRefs": { "type": "array", "items": { "$ref": "#/$defs/IRCrossRef" } },
|
|
149
|
+
"visualRefs": { "type": "array", "items": { "$ref": "#/$defs/IRVisualRef" } }
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"IRWaitSpec": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"required": ["type"],
|
|
155
|
+
"additionalProperties": false,
|
|
156
|
+
"properties": {
|
|
157
|
+
"type": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"enum": ["idle", "element", "state", "time", "condition", "vanish", "change", "stable"]
|
|
160
|
+
},
|
|
161
|
+
"query": { "$ref": "#/$defs/IRElementCriteria" },
|
|
162
|
+
"stateId": { "type": "string" },
|
|
163
|
+
"ms": { "type": "number" },
|
|
164
|
+
"timeout": { "type": "number" },
|
|
165
|
+
"property": { "type": "string" },
|
|
166
|
+
"quietPeriodMs": { "type": "number" }
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"IRTransitionAction": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"required": ["type", "target"],
|
|
172
|
+
"additionalProperties": false,
|
|
173
|
+
"properties": {
|
|
174
|
+
"type": { "type": "string" },
|
|
175
|
+
"target": { "$ref": "#/$defs/IRElementCriteria" },
|
|
176
|
+
"params": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"additionalProperties": true
|
|
179
|
+
},
|
|
180
|
+
"waitAfter": { "$ref": "#/$defs/IRWaitSpec" }
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"IRTransition": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"required": ["id", "name", "fromStates", "activateStates", "actions"],
|
|
186
|
+
"additionalProperties": false,
|
|
187
|
+
"properties": {
|
|
188
|
+
"id": { "type": "string" },
|
|
189
|
+
"name": { "type": "string" },
|
|
190
|
+
"description": { "type": "string" },
|
|
191
|
+
"fromStates": { "type": "array", "items": { "type": "string" } },
|
|
192
|
+
"activateStates": { "type": "array", "items": { "type": "string" } },
|
|
193
|
+
"exitStates": { "type": "array", "items": { "type": "string" } },
|
|
194
|
+
"actions": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"items": { "$ref": "#/$defs/IRTransitionAction" }
|
|
197
|
+
},
|
|
198
|
+
"pathCost": { "type": "number" },
|
|
199
|
+
"bidirectional": { "type": "boolean" },
|
|
200
|
+
"effect": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"enum": ["read", "write", "destructive"]
|
|
203
|
+
},
|
|
204
|
+
"metadata": { "$ref": "#/$defs/IRMetadata" },
|
|
205
|
+
"provenance": { "$ref": "#/$defs/IRProvenance" },
|
|
206
|
+
"crossRefs": { "type": "array", "items": { "$ref": "#/$defs/IRCrossRef" } }
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Primitive IR shapes shared by states, transitions, and adapters.
|
|
3
|
+
*
|
|
4
|
+
* IR-only fields (provenance, metadata, effect) live here so that the runtime
|
|
5
|
+
* adapter can identify and strip them in one place.
|
|
6
|
+
*
|
|
7
|
+
* See ADR-001 (qontinui-dev-notes/ui-bridge-redesign/section-1-foundations/)
|
|
8
|
+
* for the rationale on each field.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// ---------------------------------------------------------------------------
|
|
12
|
+
// Provenance — where an IR declaration came from
|
|
13
|
+
// ---------------------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Origin of an IR node. Set by the build plugin when extracting JSX wrappers,
|
|
17
|
+
* by hand when authoring a JSON IR file directly, or by a generation pipeline.
|
|
18
|
+
*/
|
|
19
|
+
export interface IRProvenance {
|
|
20
|
+
/** How this declaration was authored. */
|
|
21
|
+
source: "hand-authored" | "build-plugin" | "ai-generated" | "migrated";
|
|
22
|
+
/** Source file (relative to the build root). */
|
|
23
|
+
file?: string;
|
|
24
|
+
/** Line number in the source file (1-based). */
|
|
25
|
+
line?: number;
|
|
26
|
+
/** Column in the source file (1-based). */
|
|
27
|
+
column?: number;
|
|
28
|
+
/** Build-plugin version that produced this node, if applicable. */
|
|
29
|
+
pluginVersion?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// ---------------------------------------------------------------------------
|
|
33
|
+
// Metadata — semantic context routed through the useUIAnnotation store at runtime
|
|
34
|
+
// ---------------------------------------------------------------------------
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Human-authored semantic context for an IR node. Aligns with the existing
|
|
38
|
+
* ElementAnnotation shape (ui-bridge/packages/ui-bridge/src/annotations/types.ts)
|
|
39
|
+
* so the runtime SDK can write straight into the global annotation store
|
|
40
|
+
* without parallel infrastructure.
|
|
41
|
+
*/
|
|
42
|
+
export interface IRMetadata {
|
|
43
|
+
/** Short human-readable description of what this state/transition represents. */
|
|
44
|
+
description?: string;
|
|
45
|
+
/** What this state/transition is for, intent-wise. */
|
|
46
|
+
purpose?: string;
|
|
47
|
+
/** Tags for grouping, filtering, and search. */
|
|
48
|
+
tags?: string[];
|
|
49
|
+
/** IDs of related elements/states/transitions. */
|
|
50
|
+
relatedElements?: string[];
|
|
51
|
+
/** Free-form notes for nuance that doesn't fit description/purpose. */
|
|
52
|
+
notes?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// ---------------------------------------------------------------------------
|
|
56
|
+
// Effect — side-effect annotation on transitions
|
|
57
|
+
// ---------------------------------------------------------------------------
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Whether a transition is read-only, mutating, or destructive.
|
|
61
|
+
*
|
|
62
|
+
* - "read" — query/navigate; no persistent state change.
|
|
63
|
+
* - "write" — modifies persistent state but is reversible (or has an undo).
|
|
64
|
+
* - "destructive" — irreversible state change (delete, send, charge, deploy).
|
|
65
|
+
*
|
|
66
|
+
* Drives counterfactual analysis (section 6) and gates auto-regression
|
|
67
|
+
* generation (section 9) — destructive transitions are excluded from
|
|
68
|
+
* automatic walks.
|
|
69
|
+
*/
|
|
70
|
+
export type IREffect = "read" | "write" | "destructive";
|
|
71
|
+
|
|
72
|
+
// ---------------------------------------------------------------------------
|
|
73
|
+
// Cross-references between IR documents
|
|
74
|
+
// ---------------------------------------------------------------------------
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Pointer from one IR document to a state/transition declared elsewhere.
|
|
78
|
+
* Used when a transition activates a state owned by another page's IR doc.
|
|
79
|
+
*/
|
|
80
|
+
export interface IRCrossRef {
|
|
81
|
+
/** Document ID containing the referenced node. */
|
|
82
|
+
doc: string;
|
|
83
|
+
/** ID of the referenced state or transition within that document. */
|
|
84
|
+
ref: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ---------------------------------------------------------------------------
|
|
88
|
+
// Visual references (placeholder for section 8)
|
|
89
|
+
// ---------------------------------------------------------------------------
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Pointer to a captured visual reference (screenshot region, design token).
|
|
93
|
+
* Optional companion data — populated by section 8's visual-fusion work.
|
|
94
|
+
*/
|
|
95
|
+
export interface IRVisualRef {
|
|
96
|
+
/** Path or content-addressable ID of the captured asset. */
|
|
97
|
+
asset: string;
|
|
98
|
+
/** Capture region in viewport coordinates, if applicable. */
|
|
99
|
+
region?: { x: number; y: number; width: number; height: number };
|
|
100
|
+
/** Capture timestamp (epoch ms). */
|
|
101
|
+
capturedAt?: number;
|
|
102
|
+
}
|