@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
package/dist/index.js
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_SUMMARY_PROMPT,
|
|
3
|
+
PHASE_INFO,
|
|
4
|
+
STEP_TYPES
|
|
5
|
+
} from "./chunk-ZK5MJEGT.js";
|
|
6
|
+
import {
|
|
7
|
+
ActionStatus,
|
|
8
|
+
ActionType,
|
|
9
|
+
ErrorType,
|
|
10
|
+
IssueSeverity,
|
|
11
|
+
RunStatus,
|
|
12
|
+
RunType,
|
|
13
|
+
ScreenshotType
|
|
14
|
+
} from "./chunk-YXD4WCYQ.js";
|
|
15
|
+
|
|
16
|
+
// src/render-log.ts
|
|
17
|
+
function isComponentRenderLog(entry) {
|
|
18
|
+
return entry.type === "component";
|
|
19
|
+
}
|
|
20
|
+
function isDomSnapshotRenderLog(entry) {
|
|
21
|
+
return entry.type === "dom_snapshot";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// src/discovery.ts
|
|
25
|
+
var SOURCE_TYPE_LABELS = {
|
|
26
|
+
playwright: "Web Extraction",
|
|
27
|
+
ui_bridge: "UI Bridge",
|
|
28
|
+
recording: "Recording",
|
|
29
|
+
vision: "Vision",
|
|
30
|
+
manual: "Manual"
|
|
31
|
+
};
|
|
32
|
+
var SOURCE_TYPE_COLORS = {
|
|
33
|
+
playwright: "bg-blue-500/20 text-blue-400 border-blue-500/30",
|
|
34
|
+
ui_bridge: "bg-purple-500/20 text-purple-400 border-purple-500/30",
|
|
35
|
+
recording: "bg-green-500/20 text-green-400 border-green-500/30",
|
|
36
|
+
vision: "bg-orange-500/20 text-orange-400 border-orange-500/30",
|
|
37
|
+
manual: "bg-gray-500/20 text-gray-400 border-gray-500/30"
|
|
38
|
+
};
|
|
39
|
+
function toStateDiscoveryResult(data) {
|
|
40
|
+
return {
|
|
41
|
+
id: data.id,
|
|
42
|
+
projectId: data.projectId ?? data.project_id,
|
|
43
|
+
name: data.name,
|
|
44
|
+
description: data.description,
|
|
45
|
+
sourceType: data.sourceType ?? data.source_type,
|
|
46
|
+
sourceSessionId: data.sourceSessionId ?? data.source_session_id,
|
|
47
|
+
discoveryStrategy: data.discoveryStrategy ?? data.discovery_strategy,
|
|
48
|
+
images: (data.images || []).map(toDiscoveredStateImage),
|
|
49
|
+
states: (data.states || []).map(toDiscoveredState),
|
|
50
|
+
transitions: (data.transitions || []).map(
|
|
51
|
+
toDiscoveredTransition
|
|
52
|
+
),
|
|
53
|
+
elementToRenders: (data.elementToRenders ?? data.element_to_renders) || {},
|
|
54
|
+
imageCount: data.imageCount ?? data.image_count,
|
|
55
|
+
stateCount: data.stateCount ?? data.state_count,
|
|
56
|
+
transitionCount: data.transitionCount ?? data.transition_count,
|
|
57
|
+
renderCount: data.renderCount ?? data.render_count,
|
|
58
|
+
uniqueElementCount: data.uniqueElementCount ?? data.unique_element_count,
|
|
59
|
+
confidence: data.confidence,
|
|
60
|
+
discoveryMetadata: (data.discoveryMetadata ?? data.discovery_metadata) || {},
|
|
61
|
+
createdAt: data.createdAt ?? data.created_at,
|
|
62
|
+
updatedAt: data.updatedAt ?? data.updated_at
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function toDiscoveredStateImage(data) {
|
|
66
|
+
const d = data;
|
|
67
|
+
return {
|
|
68
|
+
id: d.id,
|
|
69
|
+
screenshotId: d.screenshotId ?? d.screenshot_id,
|
|
70
|
+
screenshotUrl: d.screenshotUrl ?? d.screenshot_url,
|
|
71
|
+
bbox: d.bbox,
|
|
72
|
+
pixelHash: d.pixelHash ?? d.pixel_hash,
|
|
73
|
+
stateId: d.stateId ?? d.state_id,
|
|
74
|
+
elementType: d.elementType ?? d.element_type,
|
|
75
|
+
label: d.label,
|
|
76
|
+
confidence: d.confidence ?? 1,
|
|
77
|
+
metadata: d.metadata
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function toDiscoveredState(data) {
|
|
81
|
+
const d = data;
|
|
82
|
+
return {
|
|
83
|
+
id: d.id,
|
|
84
|
+
name: d.name,
|
|
85
|
+
imageIds: (d.imageIds ?? d.image_ids) || [],
|
|
86
|
+
renderIds: (d.renderIds ?? d.render_ids) || [],
|
|
87
|
+
elementIds: (d.elementIds ?? d.element_ids) || [],
|
|
88
|
+
confidence: d.confidence ?? 1,
|
|
89
|
+
description: d.description,
|
|
90
|
+
metadata: d.metadata
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function toDiscoveredTransition(data) {
|
|
94
|
+
const d = data;
|
|
95
|
+
const trigger = d.trigger;
|
|
96
|
+
return {
|
|
97
|
+
id: d.id,
|
|
98
|
+
fromStateId: d.fromStateId ?? d.from_state_id,
|
|
99
|
+
toStateId: d.toStateId ?? d.to_state_id,
|
|
100
|
+
trigger: trigger ? {
|
|
101
|
+
type: trigger.type ?? "click",
|
|
102
|
+
imageId: trigger.imageId ?? trigger.image_id,
|
|
103
|
+
elementId: trigger.elementId ?? trigger.element_id,
|
|
104
|
+
selector: trigger.selector,
|
|
105
|
+
value: trigger.value
|
|
106
|
+
} : void 0,
|
|
107
|
+
confidence: d.confidence ?? 1,
|
|
108
|
+
metadata: d.metadata
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function toStateDiscoveryResultSummary(data) {
|
|
112
|
+
return {
|
|
113
|
+
id: data.id,
|
|
114
|
+
projectId: data.projectId ?? data.project_id,
|
|
115
|
+
name: data.name,
|
|
116
|
+
description: data.description,
|
|
117
|
+
sourceType: data.sourceType ?? data.source_type,
|
|
118
|
+
discoveryStrategy: data.discoveryStrategy ?? data.discovery_strategy,
|
|
119
|
+
imageCount: data.imageCount ?? data.image_count,
|
|
120
|
+
stateCount: data.stateCount ?? data.state_count,
|
|
121
|
+
transitionCount: data.transitionCount ?? data.transition_count,
|
|
122
|
+
confidence: data.confidence,
|
|
123
|
+
createdAt: data.createdAt ?? data.created_at
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// src/known-issues/index.ts
|
|
128
|
+
var ISSUE_CATEGORIES = [
|
|
129
|
+
{ value: "duplication", label: "Duplication" },
|
|
130
|
+
{ value: "rendering", label: "Rendering" },
|
|
131
|
+
{ value: "data_integrity", label: "Data Integrity" },
|
|
132
|
+
{ value: "timing", label: "Timing" },
|
|
133
|
+
{ value: "layout", label: "Layout" },
|
|
134
|
+
{ value: "state", label: "State" },
|
|
135
|
+
{ value: "performance", label: "Performance" },
|
|
136
|
+
{ value: "encoding", label: "Encoding" },
|
|
137
|
+
{ value: "navigation", label: "Navigation" },
|
|
138
|
+
{ value: "authentication", label: "Authentication" },
|
|
139
|
+
{ value: "other", label: "Other" }
|
|
140
|
+
];
|
|
141
|
+
var ISSUE_SEVERITIES = [
|
|
142
|
+
{ value: "critical", label: "Critical" },
|
|
143
|
+
{ value: "high", label: "High" },
|
|
144
|
+
{ value: "medium", label: "Medium" },
|
|
145
|
+
{ value: "low", label: "Low" }
|
|
146
|
+
];
|
|
147
|
+
var DETECTION_METHODS = [
|
|
148
|
+
{ value: "algorithmic", label: "Algorithmic (automatic)" },
|
|
149
|
+
{ value: "ai_judgment", label: "AI Judgment" },
|
|
150
|
+
{ value: "visual", label: "Visual (screenshot)" },
|
|
151
|
+
{ value: "command", label: "Shell Command" },
|
|
152
|
+
{ value: "ui_bridge", label: "UI Bridge" }
|
|
153
|
+
];
|
|
154
|
+
export {
|
|
155
|
+
ActionStatus,
|
|
156
|
+
ActionType,
|
|
157
|
+
DEFAULT_SUMMARY_PROMPT,
|
|
158
|
+
DETECTION_METHODS,
|
|
159
|
+
ErrorType,
|
|
160
|
+
ISSUE_CATEGORIES,
|
|
161
|
+
ISSUE_SEVERITIES,
|
|
162
|
+
IssueSeverity,
|
|
163
|
+
PHASE_INFO,
|
|
164
|
+
RunStatus,
|
|
165
|
+
RunType,
|
|
166
|
+
SOURCE_TYPE_COLORS,
|
|
167
|
+
SOURCE_TYPE_LABELS,
|
|
168
|
+
STEP_TYPES,
|
|
169
|
+
ScreenshotType,
|
|
170
|
+
isComponentRenderLog,
|
|
171
|
+
isDomSnapshotRenderLog,
|
|
172
|
+
toDiscoveredState,
|
|
173
|
+
toDiscoveredStateImage,
|
|
174
|
+
toDiscoveredTransition,
|
|
175
|
+
toStateDiscoveryResult,
|
|
176
|
+
toStateDiscoveryResultSummary
|
|
177
|
+
};
|
|
178
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/render-log.ts","../src/discovery.ts","../src/known-issues/index.ts"],"sourcesContent":["/**\r\n * Shared Render Log Types\r\n *\r\n * These types define the render logging schema used across:\r\n * - qontinui-runner (Tauri desktop app) - Component-level logging\r\n * - qontinui-web (Next.js web app) - Full DOM snapshot logging\r\n *\r\n * The runner reads both its own logs and web's logs for verification\r\n * in AI feedback loops.\r\n *\r\n * NOTE: Field names use snake_case to match Rust/Python JSON serialization.\r\n * This ensures compatibility across all services.\r\n */\r\n\r\n// =============================================================================\r\n// Common Types\r\n// =============================================================================\r\n\r\n/**\r\n * Trigger types for render log capture.\r\n * What caused the render log to be captured.\r\n */\r\nexport type RenderLogTrigger =\r\n | \"mount\" // Component/page mounted\r\n | \"navigation\" // Page navigation occurred\r\n | \"mutation\" // DOM mutation detected (web only)\r\n | \"data_update\" // Data changed (runner components)\r\n | \"prop_change\" // Props changed (runner components)\r\n | \"manual\" // Explicitly triggered capture\r\n | \"interval\"; // Periodic capture\r\n\r\n/**\r\n * DOM mutation types (for web's MutationObserver).\r\n */\r\nexport type DomMutationType = \"childList\" | \"attributes\" | \"characterData\";\r\n\r\n// =============================================================================\r\n// Base Render Log Entry\r\n// =============================================================================\r\n\r\n/**\r\n * Base render log entry with common fields.\r\n * Extended by component logs and DOM snapshot logs.\r\n */\r\nexport interface RenderLogEntryBase {\r\n /** Unique identifier for this log entry */\r\n id: string;\r\n\r\n /** Unix timestamp in milliseconds when the capture occurred */\r\n timestamp: number;\r\n\r\n /** What triggered this capture */\r\n trigger: RenderLogTrigger;\r\n\r\n /** Session ID for grouping related captures */\r\n session_id?: string;\r\n}\r\n\r\n// =============================================================================\r\n// Runner Component Render Log (Lightweight)\r\n// =============================================================================\r\n\r\n/**\r\n * Component-level render log entry.\r\n * Used by qontinui-runner to log what data components render.\r\n *\r\n * Components explicitly call logRender() with their rendered data.\r\n * This is lightweight and focused on verifying data display.\r\n */\r\nexport interface ComponentRenderLogEntry extends RenderLogEntryBase {\r\n /** Type discriminator */\r\n type: \"component\";\r\n\r\n /** Component name (e.g., \"RunRecapTab\", \"StatusBanner\") */\r\n component: string;\r\n\r\n /** The data that was rendered (component-specific structure) */\r\n data: Record<string, unknown>;\r\n\r\n /** Sections that are visible/expanded in the component */\r\n visible_sections?: string[];\r\n\r\n /** Associated task run ID if applicable */\r\n task_run_id?: number;\r\n}\r\n\r\n// =============================================================================\r\n// Web DOM Snapshot Render Log (Comprehensive)\r\n// =============================================================================\r\n\r\n/**\r\n * Bounding rectangle for an element.\r\n */\r\nexport interface ElementRect {\r\n x: number;\r\n y: number;\r\n width: number;\r\n height: number;\r\n}\r\n\r\n/**\r\n * Single DOM element in a snapshot.\r\n * Recursive structure representing the DOM tree.\r\n */\r\nexport interface DomElementSnapshot {\r\n /** HTML tag name (lowercase) */\r\n tag: string;\r\n\r\n /** Element ID if present */\r\n id?: string;\r\n\r\n /** CSS class list */\r\n class_list: string[];\r\n\r\n /** Direct text content (not from children) */\r\n text_content?: string;\r\n\r\n /** Length of innerHTML (for size estimation) */\r\n inner_html_length?: number;\r\n\r\n /** Bounding rectangle relative to viewport */\r\n rect?: ElementRect;\r\n\r\n /** Whether the element is visible */\r\n is_visible: boolean;\r\n\r\n /** Computed opacity */\r\n opacity?: number;\r\n\r\n /** Computed display value */\r\n display?: string;\r\n\r\n /** Key HTML attributes */\r\n attributes: Record<string, string>;\r\n\r\n /** Selected computed styles */\r\n computed_styles?: Record<string, string>;\r\n\r\n /** Child elements (recursive) */\r\n children: DomElementSnapshot[];\r\n}\r\n\r\n/**\r\n * Form data extracted from the page.\r\n */\r\nexport interface FormSnapshot {\r\n id?: string;\r\n action?: string;\r\n method?: string;\r\n inputs: Array<{\r\n type: string;\r\n name: string;\r\n value: string;\r\n }>;\r\n}\r\n\r\n/**\r\n * Link data extracted from the page.\r\n */\r\nexport interface LinkSnapshot {\r\n href: string;\r\n text: string;\r\n}\r\n\r\n/**\r\n * Image data extracted from the page.\r\n */\r\nexport interface ImageSnapshot {\r\n src: string;\r\n alt?: string;\r\n width?: number;\r\n height?: number;\r\n}\r\n\r\n/**\r\n * Full DOM snapshot data.\r\n * Contains the entire page state for debugging.\r\n *\r\n * NOTE: The snapshot is stored as JSONB in the database, so field names\r\n * in the nested structure (root, forms, links, images) may vary by\r\n * implementation. The web frontend uses camelCase internally but that's\r\n * stored as-is in the JSONB field.\r\n */\r\nexport interface DomSnapshot {\r\n /** Root element tree (document.body) */\r\n root: DomElementSnapshot | null;\r\n\r\n /** Total number of elements in the tree */\r\n total_elements: number;\r\n\r\n /** Concatenated visible text (truncated) */\r\n visible_text?: string;\r\n\r\n /** Forms on the page */\r\n forms: FormSnapshot[];\r\n\r\n /** Links on the page */\r\n links: LinkSnapshot[];\r\n\r\n /** Images on the page */\r\n images: ImageSnapshot[];\r\n\r\n /** JavaScript console errors captured */\r\n errors: string[];\r\n\r\n /** JavaScript console warnings captured */\r\n warnings: string[];\r\n}\r\n\r\n/**\r\n * Full DOM snapshot render log entry.\r\n * Used by qontinui-web to capture entire page state.\r\n *\r\n * Automatically captured via MutationObserver on DOM changes.\r\n * Provides comprehensive debugging data.\r\n */\r\nexport interface DomSnapshotRenderLogEntry extends RenderLogEntryBase {\r\n /** Type discriminator */\r\n type: \"dom_snapshot\";\r\n\r\n /** Current page URL */\r\n page_url: string;\r\n\r\n /** Page title */\r\n page_title?: string;\r\n\r\n /** Type of DOM mutation that triggered capture (if mutation trigger) */\r\n mutation_type?: DomMutationType;\r\n\r\n /** CSS selector of the element that was mutated */\r\n target_selector?: string;\r\n\r\n /** The full DOM snapshot */\r\n snapshot: DomSnapshot;\r\n\r\n /** Viewport dimensions */\r\n viewport_width?: number;\r\n viewport_height?: number;\r\n\r\n /** Scroll position */\r\n scroll_x?: number;\r\n scroll_y?: number;\r\n\r\n /** Time taken to capture the snapshot in milliseconds */\r\n capture_duration_ms?: number;\r\n\r\n /** Number of elements captured */\r\n element_count?: number;\r\n\r\n /** User ID if authenticated (web only) */\r\n user_id?: string;\r\n}\r\n\r\n// =============================================================================\r\n// Union Type\r\n// =============================================================================\r\n\r\n/**\r\n * Any render log entry.\r\n * Use the `type` field to discriminate.\r\n */\r\nexport type RenderLogEntry =\r\n | ComponentRenderLogEntry\r\n | DomSnapshotRenderLogEntry;\r\n\r\n// =============================================================================\r\n// API Types (for REST endpoints)\r\n// =============================================================================\r\n\r\n/**\r\n * Request to create a render log entry (web API).\r\n */\r\nexport interface CreateRenderLogRequest {\r\n session_id: string;\r\n page_url: string;\r\n page_title?: string;\r\n trigger: RenderLogTrigger;\r\n mutation_type?: DomMutationType;\r\n target_selector?: string;\r\n snapshot: DomSnapshot;\r\n viewport_width?: number;\r\n viewport_height?: number;\r\n scroll_x?: number;\r\n scroll_y?: number;\r\n capture_duration_ms?: number;\r\n element_count?: number;\r\n}\r\n\r\n/**\r\n * Render log response from web API.\r\n * Includes database-generated fields.\r\n */\r\nexport interface RenderLogResponse {\r\n id: number;\r\n session_id: string;\r\n timestamp: string; // ISO 8601 datetime\r\n page_url: string;\r\n page_title?: string;\r\n trigger: RenderLogTrigger;\r\n mutation_type?: DomMutationType;\r\n target_selector?: string;\r\n snapshot: DomSnapshot;\r\n viewport_width?: number;\r\n viewport_height?: number;\r\n scroll_x?: number;\r\n scroll_y?: number;\r\n capture_duration_ms?: number;\r\n element_count?: number;\r\n user_id?: string;\r\n}\r\n\r\n/**\r\n * Summary of a render log (without full snapshot).\r\n */\r\nexport interface RenderLogSummary {\r\n id: number;\r\n session_id: string;\r\n timestamp: string;\r\n page_url: string;\r\n page_title?: string;\r\n trigger: RenderLogTrigger;\r\n mutation_type?: DomMutationType;\r\n element_count?: number;\r\n capture_duration_ms?: number;\r\n}\r\n\r\n/**\r\n * Paginated list of render logs.\r\n */\r\nexport interface RenderLogList {\r\n items: RenderLogSummary[];\r\n total: number;\r\n page: number;\r\n page_size: number;\r\n has_more: boolean;\r\n}\r\n\r\n/**\r\n * Render logging statistics.\r\n */\r\nexport interface RenderLogStats {\r\n enabled: boolean;\r\n total_snapshots: number;\r\n total_sessions: number;\r\n oldest_snapshot?: string;\r\n newest_snapshot?: string;\r\n storage_used_bytes: number;\r\n image_count: number;\r\n}\r\n\r\n// =============================================================================\r\n// Type Guards\r\n// =============================================================================\r\n\r\n/**\r\n * Check if a render log entry is a component log.\r\n */\r\nexport function isComponentRenderLog(\r\n entry: RenderLogEntry,\r\n): entry is ComponentRenderLogEntry {\r\n return entry.type === \"component\";\r\n}\r\n\r\n/**\r\n * Check if a render log entry is a DOM snapshot log.\r\n */\r\nexport function isDomSnapshotRenderLog(\r\n entry: RenderLogEntry,\r\n): entry is DomSnapshotRenderLogEntry {\r\n return entry.type === \"dom_snapshot\";\r\n}\r\n","/**\r\n * Unified State Discovery Result types.\r\n *\r\n * These types represent the output of state discovery from any source:\r\n * - Playwright (web extraction)\r\n * - UI Bridge (render log analysis)\r\n * - Recording (user session recording)\r\n * - Vision (screenshot analysis)\r\n * - Manual (user-defined)\r\n *\r\n * All types use camelCase field names to match the generated types from Rust\r\n * schemas. Converter functions are provided to transform snake_case API\r\n * responses into these typed objects.\r\n */\r\n\r\n// =============================================================================\r\n// Re-exports from generated types\r\n// =============================================================================\r\n\r\nexport type { DiscoverySourceType } from \"./generated/DiscoverySourceType\";\r\nexport type { TransitionTriggerType } from \"./generated/TransitionTriggerType\";\r\nexport type { DiscoveryBoundingBox } from \"./generated/DiscoveryBoundingBox\";\r\nexport type { DiscoveryTransitionTrigger } from \"./generated/DiscoveryTransitionTrigger\";\r\nexport type { DiscoveredStateImage } from \"./generated/DiscoveredStateImage\";\r\nexport type { DiscoveredState } from \"./generated/DiscoveredState\";\r\nexport type { DiscoveredTransition } from \"./generated/DiscoveredTransition\";\r\nexport type { StateDiscoveryResult } from \"./generated/StateDiscoveryResult\";\r\nexport type { StateDiscoveryResultSummary } from \"./generated/StateDiscoveryResultSummary\";\r\nexport type { StateDiscoveryResultListResponse } from \"./generated/StateDiscoveryResultListResponse\";\r\nexport type { StateDiscoveryResultCreate } from \"./generated/StateDiscoveryResultCreate\";\r\nexport type { StateDiscoveryResultUpdate } from \"./generated/StateDiscoveryResultUpdate\";\r\n\r\n// =============================================================================\r\n// Export/Import\r\n// =============================================================================\r\n\r\nexport type { StateMachineExport } from \"./generated/StateMachineExport\";\r\nexport type { StateMachineImport } from \"./generated/StateMachineImport\";\r\n\r\nimport type { DiscoverySourceType } from \"./generated/DiscoverySourceType\";\r\nimport type { DiscoveredStateImage } from \"./generated/DiscoveredStateImage\";\r\nimport type { DiscoveredState } from \"./generated/DiscoveredState\";\r\nimport type { DiscoveredTransition } from \"./generated/DiscoveredTransition\";\r\n\r\n// =============================================================================\r\n// Display Helpers\r\n// =============================================================================\r\n\r\nexport const SOURCE_TYPE_LABELS: Record<DiscoverySourceType, string> = {\r\n playwright: \"Web Extraction\",\r\n ui_bridge: \"UI Bridge\",\r\n recording: \"Recording\",\r\n vision: \"Vision\",\r\n manual: \"Manual\",\r\n};\r\n\r\nexport const SOURCE_TYPE_COLORS: Record<DiscoverySourceType, string> = {\r\n playwright: \"bg-blue-500/20 text-blue-400 border-blue-500/30\",\r\n ui_bridge: \"bg-purple-500/20 text-purple-400 border-purple-500/30\",\r\n recording: \"bg-green-500/20 text-green-400 border-green-500/30\",\r\n vision: \"bg-orange-500/20 text-orange-400 border-orange-500/30\",\r\n manual: \"bg-gray-500/20 text-gray-400 border-gray-500/30\",\r\n};\r\n\r\n// =============================================================================\r\n// Converter Functions (snake_case API responses -> camelCase typed objects)\r\n// =============================================================================\r\n\r\nimport type { StateDiscoveryResult } from \"./generated/StateDiscoveryResult\";\r\nimport type { StateDiscoveryResultSummary } from \"./generated/StateDiscoveryResultSummary\";\r\nimport type { DiscoveryBoundingBox } from \"./generated/DiscoveryBoundingBox\";\r\nimport type { DiscoveryTransitionTrigger } from \"./generated/DiscoveryTransitionTrigger\";\r\nimport type { TransitionTriggerType } from \"./generated/TransitionTriggerType\";\r\n\r\nexport function toStateDiscoveryResult(\r\n data: Record<string, unknown>,\r\n): StateDiscoveryResult {\r\n return {\r\n id: data.id as string,\r\n projectId: (data.projectId ?? data.project_id) as string,\r\n name: data.name as string,\r\n description: data.description as string | undefined,\r\n sourceType: (data.sourceType ?? data.source_type) as DiscoverySourceType,\r\n sourceSessionId: (data.sourceSessionId ?? data.source_session_id) as\r\n | string\r\n | undefined,\r\n discoveryStrategy: (data.discoveryStrategy ?? data.discovery_strategy) as\r\n | string\r\n | undefined,\r\n images: ((data.images as unknown[]) || []).map(toDiscoveredStateImage),\r\n states: ((data.states as unknown[]) || []).map(toDiscoveredState),\r\n transitions: ((data.transitions as unknown[]) || []).map(\r\n toDiscoveredTransition,\r\n ),\r\n elementToRenders:\r\n ((data.elementToRenders ?? data.element_to_renders) as Record<\r\n string,\r\n string[]\r\n >) || {},\r\n imageCount: (data.imageCount ?? data.image_count) as number,\r\n stateCount: (data.stateCount ?? data.state_count) as number,\r\n transitionCount: (data.transitionCount ?? data.transition_count) as number,\r\n renderCount: (data.renderCount ?? data.render_count) as number,\r\n uniqueElementCount: (data.uniqueElementCount ??\r\n data.unique_element_count) as number,\r\n confidence: data.confidence as number,\r\n discoveryMetadata:\r\n ((data.discoveryMetadata ?? data.discovery_metadata) as Record<\r\n string,\r\n unknown\r\n >) || {},\r\n createdAt: (data.createdAt ?? data.created_at) as string,\r\n updatedAt: (data.updatedAt ?? data.updated_at) as string,\r\n };\r\n}\r\n\r\nexport function toDiscoveredStateImage(data: unknown): DiscoveredStateImage {\r\n const d = data as Record<string, unknown>;\r\n return {\r\n id: d.id as string,\r\n screenshotId: (d.screenshotId ?? d.screenshot_id) as string | undefined,\r\n screenshotUrl: (d.screenshotUrl ?? d.screenshot_url) as string | undefined,\r\n bbox: d.bbox as DiscoveryBoundingBox,\r\n pixelHash: (d.pixelHash ?? d.pixel_hash) as string | undefined,\r\n stateId: (d.stateId ?? d.state_id) as string | undefined,\r\n elementType: (d.elementType ?? d.element_type) as string | undefined,\r\n label: d.label as string | undefined,\r\n confidence: (d.confidence as number) ?? 1.0,\r\n metadata: d.metadata as Record<string, unknown> | undefined,\r\n };\r\n}\r\n\r\nexport function toDiscoveredState(data: unknown): DiscoveredState {\r\n const d = data as Record<string, unknown>;\r\n return {\r\n id: d.id as string,\r\n name: d.name as string,\r\n imageIds: ((d.imageIds ?? d.image_ids) as string[]) || [],\r\n renderIds: ((d.renderIds ?? d.render_ids) as string[]) || [],\r\n elementIds: ((d.elementIds ?? d.element_ids) as string[]) || [],\r\n confidence: (d.confidence as number) ?? 1.0,\r\n description: d.description as string | undefined,\r\n metadata: d.metadata as Record<string, unknown> | undefined,\r\n };\r\n}\r\n\r\nexport function toDiscoveredTransition(data: unknown): DiscoveredTransition {\r\n const d = data as Record<string, unknown>;\r\n const trigger = d.trigger as Record<string, unknown> | undefined;\r\n return {\r\n id: d.id as string,\r\n fromStateId: (d.fromStateId ?? d.from_state_id) as string,\r\n toStateId: (d.toStateId ?? d.to_state_id) as string,\r\n trigger: trigger\r\n ? {\r\n type: (trigger.type as TransitionTriggerType) ?? \"click\",\r\n imageId: (trigger.imageId ?? trigger.image_id) as string | undefined,\r\n elementId: (trigger.elementId ?? trigger.element_id) as\r\n | string\r\n | undefined,\r\n selector: trigger.selector as string | undefined,\r\n value: trigger.value as string | undefined,\r\n }\r\n : undefined,\r\n confidence: (d.confidence as number) ?? 1.0,\r\n metadata: d.metadata as Record<string, unknown> | undefined,\r\n };\r\n}\r\n\r\nexport function toStateDiscoveryResultSummary(\r\n data: Record<string, unknown>,\r\n): StateDiscoveryResultSummary {\r\n return {\r\n id: data.id as string,\r\n projectId: (data.projectId ?? data.project_id) as string,\r\n name: data.name as string,\r\n description: data.description as string | undefined,\r\n sourceType: (data.sourceType ?? data.source_type) as DiscoverySourceType,\r\n discoveryStrategy: (data.discoveryStrategy ?? data.discovery_strategy) as\r\n | string\r\n | undefined,\r\n imageCount: (data.imageCount ?? data.image_count) as number,\r\n stateCount: (data.stateCount ?? data.state_count) as number,\r\n transitionCount: (data.transitionCount ?? data.transition_count) as number,\r\n confidence: data.confidence as number,\r\n createdAt: (data.createdAt ?? data.created_at) as string,\r\n };\r\n}\r\n","/**\r\n * Known Issues Registry Types\r\n *\r\n * Persistent known issue tracking that survives across workflow runs.\r\n * Issues are scoped to specs, URLs, components, or global.\r\n */\r\n\r\nexport type IssueCategory =\r\n | \"duplication\"\r\n | \"rendering\"\r\n | \"data_integrity\"\r\n | \"timing\"\r\n | \"layout\"\r\n | \"state\"\r\n | \"performance\"\r\n | \"encoding\"\r\n | \"navigation\"\r\n | \"authentication\"\r\n | \"other\";\r\n\r\nexport type ScopeType = \"global\" | \"spec\" | \"url\" | \"component\" | \"feature\";\r\n\r\nexport type DetectionMethod =\r\n | \"algorithmic\"\r\n | \"ai_judgment\"\r\n | \"visual\"\r\n | \"command\"\r\n | \"ui_bridge\";\r\n\r\nexport type KnownIssueSeverity = \"critical\" | \"high\" | \"medium\" | \"low\";\r\n\r\nexport type IssueStatus = \"active\" | \"resolved\" | \"monitoring\" | \"wont_fix\";\r\n\r\nexport type IssueProvenance =\r\n | \"manual\"\r\n | \"auto_detected\"\r\n | \"reflection\"\r\n | \"imported\";\r\n\r\nexport interface KnownIssue {\r\n id: string;\r\n title: string;\r\n description: string;\r\n category: IssueCategory;\r\n scope_type: ScopeType;\r\n scope_value: string | null;\r\n scope_tags: string[];\r\n detection_method: DetectionMethod;\r\n detection_config: Record<string, unknown>;\r\n pattern_template_id: string | null;\r\n reproduction_context: string | null;\r\n trigger_conditions: string[];\r\n severity: KnownIssueSeverity;\r\n status: IssueStatus;\r\n confidence: number;\r\n provenance: IssueProvenance;\r\n source_finding_ids: string[];\r\n source_task_run_id: string | null;\r\n verification_hint: string | null;\r\n verification_step_template: Record<string, unknown> | null;\r\n times_detected: number;\r\n times_checked: number;\r\n last_detected_at: string | null;\r\n last_checked_at: string | null;\r\n resolved_at: string | null;\r\n created_at: string;\r\n updated_at: string;\r\n}\r\n\r\nexport interface CreateKnownIssueRequest {\r\n title: string;\r\n description: string;\r\n category: IssueCategory;\r\n scope_type: ScopeType;\r\n scope_value?: string | null;\r\n scope_tags?: string[];\r\n detection_method: DetectionMethod;\r\n detection_config?: Record<string, unknown>;\r\n pattern_template_id?: string | null;\r\n reproduction_context?: string | null;\r\n trigger_conditions?: string[];\r\n severity: KnownIssueSeverity;\r\n provenance?: IssueProvenance;\r\n source_finding_ids?: string[];\r\n source_task_run_id?: string | null;\r\n verification_hint?: string | null;\r\n verification_step_template?: Record<string, unknown> | null;\r\n}\r\n\r\nexport interface UpdateKnownIssueRequest {\r\n title?: string;\r\n description?: string;\r\n category?: IssueCategory;\r\n scope_type?: ScopeType;\r\n scope_value?: string | null;\r\n scope_tags?: string[];\r\n detection_method?: DetectionMethod;\r\n detection_config?: Record<string, unknown>;\r\n pattern_template_id?: string | null;\r\n reproduction_context?: string | null;\r\n trigger_conditions?: string[];\r\n severity?: KnownIssueSeverity;\r\n status?: IssueStatus;\r\n confidence?: number;\r\n verification_hint?: string | null;\r\n verification_step_template?: Record<string, unknown> | null;\r\n}\r\n\r\nexport interface ListKnownIssuesQuery {\r\n scope_type?: string;\r\n scope_value?: string;\r\n category?: string;\r\n severity?: string;\r\n status?: string;\r\n spec_id?: string;\r\n}\r\n\r\nexport interface CreatePatternTemplateRequest {\r\n name: string;\r\n description: string;\r\n category: string;\r\n detection_type: string;\r\n ai_prompt_template?: string | null;\r\n parameters?: string | null;\r\n}\r\n\r\nexport interface TemplateParameter {\r\n name: string;\r\n type: string;\r\n description: string;\r\n default?: unknown;\r\n}\r\n\r\nexport interface IssuePatternTemplate {\r\n id: string;\r\n name: string;\r\n description: string;\r\n category: string;\r\n detection_type: string;\r\n step_template: Record<string, unknown> | null;\r\n ai_prompt_template: string | null;\r\n parameters: TemplateParameter[];\r\n built_in: boolean;\r\n status: string;\r\n created_at: string;\r\n updated_at: string;\r\n}\r\n\r\n/** All issue categories with display labels */\r\nexport const ISSUE_CATEGORIES: { value: IssueCategory; label: string }[] = [\r\n { value: \"duplication\", label: \"Duplication\" },\r\n { value: \"rendering\", label: \"Rendering\" },\r\n { value: \"data_integrity\", label: \"Data Integrity\" },\r\n { value: \"timing\", label: \"Timing\" },\r\n { value: \"layout\", label: \"Layout\" },\r\n { value: \"state\", label: \"State\" },\r\n { value: \"performance\", label: \"Performance\" },\r\n { value: \"encoding\", label: \"Encoding\" },\r\n { value: \"navigation\", label: \"Navigation\" },\r\n { value: \"authentication\", label: \"Authentication\" },\r\n { value: \"other\", label: \"Other\" },\r\n];\r\n\r\n/** All severity levels with display labels */\r\nexport const ISSUE_SEVERITIES: { value: KnownIssueSeverity; label: string }[] = [\r\n { value: \"critical\", label: \"Critical\" },\r\n { value: \"high\", label: \"High\" },\r\n { value: \"medium\", label: \"Medium\" },\r\n { value: \"low\", label: \"Low\" },\r\n];\r\n\r\n/** All detection methods with display labels */\r\nexport const DETECTION_METHODS: { value: DetectionMethod; label: string }[] = [\r\n { value: \"algorithmic\", label: \"Algorithmic (automatic)\" },\r\n { value: \"ai_judgment\", label: \"AI Judgment\" },\r\n { value: \"visual\", label: \"Visual (screenshot)\" },\r\n { value: \"command\", label: \"Shell Command\" },\r\n { value: \"ui_bridge\", label: \"UI Bridge\" },\r\n];\r\n"],"mappings":";;;;;;;;;;;;;;;;AAqWO,SAAS,qBACd,OACkC;AAClC,SAAO,MAAM,SAAS;AACxB;AAKO,SAAS,uBACd,OACoC;AACpC,SAAO,MAAM,SAAS;AACxB;;;AClUO,IAAM,qBAA0D;AAAA,EACrE,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,QAAQ;AACV;AAEO,IAAM,qBAA0D;AAAA,EACrE,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,QAAQ;AACV;AAYO,SAAS,uBACd,MACsB;AACtB,SAAO;AAAA,IACL,IAAI,KAAK;AAAA,IACT,WAAY,KAAK,aAAa,KAAK;AAAA,IACnC,MAAM,KAAK;AAAA,IACX,aAAa,KAAK;AAAA,IAClB,YAAa,KAAK,cAAc,KAAK;AAAA,IACrC,iBAAkB,KAAK,mBAAmB,KAAK;AAAA,IAG/C,mBAAoB,KAAK,qBAAqB,KAAK;AAAA,IAGnD,SAAU,KAAK,UAAwB,CAAC,GAAG,IAAI,sBAAsB;AAAA,IACrE,SAAU,KAAK,UAAwB,CAAC,GAAG,IAAI,iBAAiB;AAAA,IAChE,cAAe,KAAK,eAA6B,CAAC,GAAG;AAAA,MACnD;AAAA,IACF;AAAA,IACA,mBACI,KAAK,oBAAoB,KAAK,uBAG1B,CAAC;AAAA,IACT,YAAa,KAAK,cAAc,KAAK;AAAA,IACrC,YAAa,KAAK,cAAc,KAAK;AAAA,IACrC,iBAAkB,KAAK,mBAAmB,KAAK;AAAA,IAC/C,aAAc,KAAK,eAAe,KAAK;AAAA,IACvC,oBAAqB,KAAK,sBACxB,KAAK;AAAA,IACP,YAAY,KAAK;AAAA,IACjB,oBACI,KAAK,qBAAqB,KAAK,uBAG3B,CAAC;AAAA,IACT,WAAY,KAAK,aAAa,KAAK;AAAA,IACnC,WAAY,KAAK,aAAa,KAAK;AAAA,EACrC;AACF;AAEO,SAAS,uBAAuB,MAAqC;AAC1E,QAAM,IAAI;AACV,SAAO;AAAA,IACL,IAAI,EAAE;AAAA,IACN,cAAe,EAAE,gBAAgB,EAAE;AAAA,IACnC,eAAgB,EAAE,iBAAiB,EAAE;AAAA,IACrC,MAAM,EAAE;AAAA,IACR,WAAY,EAAE,aAAa,EAAE;AAAA,IAC7B,SAAU,EAAE,WAAW,EAAE;AAAA,IACzB,aAAc,EAAE,eAAe,EAAE;AAAA,IACjC,OAAO,EAAE;AAAA,IACT,YAAa,EAAE,cAAyB;AAAA,IACxC,UAAU,EAAE;AAAA,EACd;AACF;AAEO,SAAS,kBAAkB,MAAgC;AAChE,QAAM,IAAI;AACV,SAAO;AAAA,IACL,IAAI,EAAE;AAAA,IACN,MAAM,EAAE;AAAA,IACR,WAAY,EAAE,YAAY,EAAE,cAA2B,CAAC;AAAA,IACxD,YAAa,EAAE,aAAa,EAAE,eAA4B,CAAC;AAAA,IAC3D,aAAc,EAAE,cAAc,EAAE,gBAA6B,CAAC;AAAA,IAC9D,YAAa,EAAE,cAAyB;AAAA,IACxC,aAAa,EAAE;AAAA,IACf,UAAU,EAAE;AAAA,EACd;AACF;AAEO,SAAS,uBAAuB,MAAqC;AAC1E,QAAM,IAAI;AACV,QAAM,UAAU,EAAE;AAClB,SAAO;AAAA,IACL,IAAI,EAAE;AAAA,IACN,aAAc,EAAE,eAAe,EAAE;AAAA,IACjC,WAAY,EAAE,aAAa,EAAE;AAAA,IAC7B,SAAS,UACL;AAAA,MACE,MAAO,QAAQ,QAAkC;AAAA,MACjD,SAAU,QAAQ,WAAW,QAAQ;AAAA,MACrC,WAAY,QAAQ,aAAa,QAAQ;AAAA,MAGzC,UAAU,QAAQ;AAAA,MAClB,OAAO,QAAQ;AAAA,IACjB,IACA;AAAA,IACJ,YAAa,EAAE,cAAyB;AAAA,IACxC,UAAU,EAAE;AAAA,EACd;AACF;AAEO,SAAS,8BACd,MAC6B;AAC7B,SAAO;AAAA,IACL,IAAI,KAAK;AAAA,IACT,WAAY,KAAK,aAAa,KAAK;AAAA,IACnC,MAAM,KAAK;AAAA,IACX,aAAa,KAAK;AAAA,IAClB,YAAa,KAAK,cAAc,KAAK;AAAA,IACrC,mBAAoB,KAAK,qBAAqB,KAAK;AAAA,IAGnD,YAAa,KAAK,cAAc,KAAK;AAAA,IACrC,YAAa,KAAK,cAAc,KAAK;AAAA,IACrC,iBAAkB,KAAK,mBAAmB,KAAK;AAAA,IAC/C,YAAY,KAAK;AAAA,IACjB,WAAY,KAAK,aAAa,KAAK;AAAA,EACrC;AACF;;;ACtCO,IAAM,mBAA8D;AAAA,EACzE,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC7C,EAAE,OAAO,aAAa,OAAO,YAAY;AAAA,EACzC,EAAE,OAAO,kBAAkB,OAAO,iBAAiB;AAAA,EACnD,EAAE,OAAO,UAAU,OAAO,SAAS;AAAA,EACnC,EAAE,OAAO,UAAU,OAAO,SAAS;AAAA,EACnC,EAAE,OAAO,SAAS,OAAO,QAAQ;AAAA,EACjC,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC7C,EAAE,OAAO,YAAY,OAAO,WAAW;AAAA,EACvC,EAAE,OAAO,cAAc,OAAO,aAAa;AAAA,EAC3C,EAAE,OAAO,kBAAkB,OAAO,iBAAiB;AAAA,EACnD,EAAE,OAAO,SAAS,OAAO,QAAQ;AACnC;AAGO,IAAM,mBAAmE;AAAA,EAC9E,EAAE,OAAO,YAAY,OAAO,WAAW;AAAA,EACvC,EAAE,OAAO,QAAQ,OAAO,OAAO;AAAA,EAC/B,EAAE,OAAO,UAAU,OAAO,SAAS;AAAA,EACnC,EAAE,OAAO,OAAO,OAAO,MAAM;AAC/B;AAGO,IAAM,oBAAiE;AAAA,EAC5E,EAAE,OAAO,eAAe,OAAO,0BAA0B;AAAA,EACzD,EAAE,OAAO,eAAe,OAAO,cAAc;AAAA,EAC7C,EAAE,OAAO,UAAU,OAAO,sBAAsB;AAAA,EAChD,EAAE,OAAO,WAAW,OAAO,gBAAgB;AAAA,EAC3C,EAAE,OAAO,aAAa,OAAO,YAAY;AAC3C;","names":[]}
|
package/dist/library.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/library/index.ts
|
|
17
|
+
var library_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(library_exports);
|
|
19
|
+
//# sourceMappingURL=library.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/library/index.ts"],"sourcesContent":["export * from \"./_api\";\r\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Library Types
|
|
3
|
+
*
|
|
4
|
+
* Normalized types for library items that both apps agree on.
|
|
5
|
+
* These represent the various reusable building blocks available
|
|
6
|
+
* in the workflow builder's library pickers.
|
|
7
|
+
*/
|
|
8
|
+
interface LibraryItem {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
}
|
|
13
|
+
interface CheckItem extends LibraryItem {
|
|
14
|
+
check_type: string;
|
|
15
|
+
tool?: string;
|
|
16
|
+
command?: string;
|
|
17
|
+
working_directory?: string;
|
|
18
|
+
config_path?: string;
|
|
19
|
+
auto_fix?: boolean;
|
|
20
|
+
fail_on_warning?: boolean;
|
|
21
|
+
timeout_seconds?: number;
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface CheckGroup extends LibraryItem {
|
|
25
|
+
checks: string[];
|
|
26
|
+
parallel?: boolean;
|
|
27
|
+
stop_on_first_failure?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface ShellCommand extends LibraryItem {
|
|
30
|
+
command: string;
|
|
31
|
+
working_directory?: string;
|
|
32
|
+
timeout_seconds?: number;
|
|
33
|
+
platform?: string;
|
|
34
|
+
}
|
|
35
|
+
interface SavedPrompt extends LibraryItem {
|
|
36
|
+
content: string;
|
|
37
|
+
provider?: string;
|
|
38
|
+
model?: string;
|
|
39
|
+
category?: string;
|
|
40
|
+
language?: string;
|
|
41
|
+
}
|
|
42
|
+
interface SavedApiRequest extends LibraryItem {
|
|
43
|
+
method: string;
|
|
44
|
+
url: string;
|
|
45
|
+
headers?: Record<string, string>;
|
|
46
|
+
body?: string;
|
|
47
|
+
content_type?: string;
|
|
48
|
+
auth_type?: string;
|
|
49
|
+
variables?: Record<string, string>;
|
|
50
|
+
}
|
|
51
|
+
interface Context extends LibraryItem {
|
|
52
|
+
content: string;
|
|
53
|
+
auto_include?: boolean;
|
|
54
|
+
priority?: number;
|
|
55
|
+
}
|
|
56
|
+
interface Macro extends LibraryItem {
|
|
57
|
+
actions: MacroAction[];
|
|
58
|
+
timeout_seconds?: number;
|
|
59
|
+
}
|
|
60
|
+
interface MacroAction {
|
|
61
|
+
type: string;
|
|
62
|
+
config: Record<string, unknown>;
|
|
63
|
+
delay_ms?: number;
|
|
64
|
+
}
|
|
65
|
+
type BuiltInCategoryId = "code_bug" | "todo" | "config_issue" | "already_fixed" | "expected_behavior" | "data_migration" | "runtime_issue" | "test_issue" | "enhancement" | "warning" | "documentation" | "security" | "performance";
|
|
66
|
+
type FindingActionType = "auto_fix" | "needs_user_input" | "manual" | "informational";
|
|
67
|
+
type FindingStatus = "detected" | "in_progress" | "needs_input" | "resolved" | "wont_fix" | "deferred";
|
|
68
|
+
type FindingSeverity = "critical" | "high" | "medium" | "low" | "info";
|
|
69
|
+
type UserInputType = "text" | "choice" | "boolean" | "code";
|
|
70
|
+
interface FindingCategory {
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
description: string;
|
|
74
|
+
icon: string;
|
|
75
|
+
color: string;
|
|
76
|
+
isBuiltIn: boolean;
|
|
77
|
+
defaultActionType: FindingActionType;
|
|
78
|
+
sortOrder: number;
|
|
79
|
+
}
|
|
80
|
+
interface UserInputOption {
|
|
81
|
+
value: string;
|
|
82
|
+
label: string;
|
|
83
|
+
description?: string;
|
|
84
|
+
}
|
|
85
|
+
interface UserInputRequest {
|
|
86
|
+
id: string;
|
|
87
|
+
findingId: string;
|
|
88
|
+
question: string;
|
|
89
|
+
context?: string;
|
|
90
|
+
inputType: UserInputType;
|
|
91
|
+
options?: UserInputOption[];
|
|
92
|
+
required: boolean;
|
|
93
|
+
defaultValue?: string;
|
|
94
|
+
}
|
|
95
|
+
interface CodeContext {
|
|
96
|
+
file?: string;
|
|
97
|
+
line?: number;
|
|
98
|
+
endLine?: number;
|
|
99
|
+
snippet?: string;
|
|
100
|
+
}
|
|
101
|
+
interface Finding {
|
|
102
|
+
id: string;
|
|
103
|
+
categoryId: string;
|
|
104
|
+
severity: FindingSeverity;
|
|
105
|
+
status: FindingStatus;
|
|
106
|
+
title: string;
|
|
107
|
+
description: string;
|
|
108
|
+
sourceSessionId?: string;
|
|
109
|
+
sourcePromptName?: string;
|
|
110
|
+
detectedAt: number;
|
|
111
|
+
actionType: FindingActionType;
|
|
112
|
+
actionable: boolean;
|
|
113
|
+
pendingQuestion?: UserInputRequest;
|
|
114
|
+
userResponse?: string;
|
|
115
|
+
resolvedAt?: number;
|
|
116
|
+
resolution?: string;
|
|
117
|
+
codeContext?: CodeContext;
|
|
118
|
+
metadata?: Record<string, unknown>;
|
|
119
|
+
}
|
|
120
|
+
interface CategorySummary {
|
|
121
|
+
count: number;
|
|
122
|
+
actionable: number;
|
|
123
|
+
resolved: number;
|
|
124
|
+
}
|
|
125
|
+
interface ReportSummary {
|
|
126
|
+
totalFindings: number;
|
|
127
|
+
byCategory: Record<string, CategorySummary>;
|
|
128
|
+
bySeverity: Record<FindingSeverity, number>;
|
|
129
|
+
byStatus: Record<FindingStatus, number>;
|
|
130
|
+
actionable: number;
|
|
131
|
+
needsUserInput: number;
|
|
132
|
+
autoFixed: number;
|
|
133
|
+
informational: number;
|
|
134
|
+
}
|
|
135
|
+
type ReportStatus = "running" | "completed" | "paused_for_input" | "failed" | "cancelled";
|
|
136
|
+
interface PhaseInfo {
|
|
137
|
+
phase: number;
|
|
138
|
+
startedAt: number;
|
|
139
|
+
completedAt?: number;
|
|
140
|
+
findingsDetected: number;
|
|
141
|
+
findingsResolved: number;
|
|
142
|
+
}
|
|
143
|
+
interface ExecutionReport {
|
|
144
|
+
id: string;
|
|
145
|
+
sessionId: string;
|
|
146
|
+
promptName: string;
|
|
147
|
+
promptId?: string;
|
|
148
|
+
startedAt: number;
|
|
149
|
+
completedAt?: number;
|
|
150
|
+
duration?: number;
|
|
151
|
+
status: ReportStatus;
|
|
152
|
+
findings: Finding[];
|
|
153
|
+
summary: ReportSummary;
|
|
154
|
+
pendingInputs: UserInputRequest[];
|
|
155
|
+
phases: PhaseInfo[];
|
|
156
|
+
}
|
|
157
|
+
interface ParsedFinding {
|
|
158
|
+
categoryId: string;
|
|
159
|
+
severity: FindingSeverity;
|
|
160
|
+
title: string;
|
|
161
|
+
description: string;
|
|
162
|
+
needsInput: boolean;
|
|
163
|
+
question?: string;
|
|
164
|
+
options?: string[];
|
|
165
|
+
file?: string;
|
|
166
|
+
line?: number;
|
|
167
|
+
resolution?: string;
|
|
168
|
+
}
|
|
169
|
+
interface CategoryStore {
|
|
170
|
+
customCategories: FindingCategory[];
|
|
171
|
+
categoryOrder: string[];
|
|
172
|
+
hiddenCategories: string[];
|
|
173
|
+
}
|
|
174
|
+
/** @deprecated Use FindingSeverity instead */
|
|
175
|
+
type SeverityLevel = FindingSeverity;
|
|
176
|
+
interface SeverityColorClasses {
|
|
177
|
+
bg: string;
|
|
178
|
+
text: string;
|
|
179
|
+
border: string;
|
|
180
|
+
dot: string;
|
|
181
|
+
}
|
|
182
|
+
type StatusColorType = "idle" | "running" | "success" | "error" | "warning" | "pending" | "paused" | "cancelled";
|
|
183
|
+
interface StatusColorClasses {
|
|
184
|
+
bg: string;
|
|
185
|
+
text: string;
|
|
186
|
+
border: string;
|
|
187
|
+
icon: string;
|
|
188
|
+
pulse?: string;
|
|
189
|
+
}
|
|
190
|
+
type ActionColorType = "auto_fix" | "needs_user_input" | "manual" | "informational" | "skip" | "defer";
|
|
191
|
+
interface ActionColorClasses {
|
|
192
|
+
bg: string;
|
|
193
|
+
text: string;
|
|
194
|
+
border: string;
|
|
195
|
+
badge: string;
|
|
196
|
+
}
|
|
197
|
+
type AccentColor = "red" | "orange" | "amber" | "yellow" | "green" | "emerald" | "blue" | "cyan" | "purple" | "rose" | "slate";
|
|
198
|
+
interface AccentColorClasses {
|
|
199
|
+
bg: string;
|
|
200
|
+
bgSolid: string;
|
|
201
|
+
text: string;
|
|
202
|
+
border: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type { AccentColor, AccentColorClasses, ActionColorClasses, ActionColorType, BuiltInCategoryId, CategoryStore, CategorySummary, CheckGroup, CheckItem, CodeContext, Context, ExecutionReport, Finding, FindingActionType, FindingCategory, FindingSeverity, FindingStatus, LibraryItem, Macro, MacroAction, ParsedFinding, PhaseInfo, ReportStatus, ReportSummary, SavedApiRequest, SavedPrompt, SeverityColorClasses, SeverityLevel, ShellCommand, StatusColorClasses, StatusColorType, UserInputOption, UserInputRequest, UserInputType };
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Library Types
|
|
3
|
+
*
|
|
4
|
+
* Normalized types for library items that both apps agree on.
|
|
5
|
+
* These represent the various reusable building blocks available
|
|
6
|
+
* in the workflow builder's library pickers.
|
|
7
|
+
*/
|
|
8
|
+
interface LibraryItem {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
}
|
|
13
|
+
interface CheckItem extends LibraryItem {
|
|
14
|
+
check_type: string;
|
|
15
|
+
tool?: string;
|
|
16
|
+
command?: string;
|
|
17
|
+
working_directory?: string;
|
|
18
|
+
config_path?: string;
|
|
19
|
+
auto_fix?: boolean;
|
|
20
|
+
fail_on_warning?: boolean;
|
|
21
|
+
timeout_seconds?: number;
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface CheckGroup extends LibraryItem {
|
|
25
|
+
checks: string[];
|
|
26
|
+
parallel?: boolean;
|
|
27
|
+
stop_on_first_failure?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface ShellCommand extends LibraryItem {
|
|
30
|
+
command: string;
|
|
31
|
+
working_directory?: string;
|
|
32
|
+
timeout_seconds?: number;
|
|
33
|
+
platform?: string;
|
|
34
|
+
}
|
|
35
|
+
interface SavedPrompt extends LibraryItem {
|
|
36
|
+
content: string;
|
|
37
|
+
provider?: string;
|
|
38
|
+
model?: string;
|
|
39
|
+
category?: string;
|
|
40
|
+
language?: string;
|
|
41
|
+
}
|
|
42
|
+
interface SavedApiRequest extends LibraryItem {
|
|
43
|
+
method: string;
|
|
44
|
+
url: string;
|
|
45
|
+
headers?: Record<string, string>;
|
|
46
|
+
body?: string;
|
|
47
|
+
content_type?: string;
|
|
48
|
+
auth_type?: string;
|
|
49
|
+
variables?: Record<string, string>;
|
|
50
|
+
}
|
|
51
|
+
interface Context extends LibraryItem {
|
|
52
|
+
content: string;
|
|
53
|
+
auto_include?: boolean;
|
|
54
|
+
priority?: number;
|
|
55
|
+
}
|
|
56
|
+
interface Macro extends LibraryItem {
|
|
57
|
+
actions: MacroAction[];
|
|
58
|
+
timeout_seconds?: number;
|
|
59
|
+
}
|
|
60
|
+
interface MacroAction {
|
|
61
|
+
type: string;
|
|
62
|
+
config: Record<string, unknown>;
|
|
63
|
+
delay_ms?: number;
|
|
64
|
+
}
|
|
65
|
+
type BuiltInCategoryId = "code_bug" | "todo" | "config_issue" | "already_fixed" | "expected_behavior" | "data_migration" | "runtime_issue" | "test_issue" | "enhancement" | "warning" | "documentation" | "security" | "performance";
|
|
66
|
+
type FindingActionType = "auto_fix" | "needs_user_input" | "manual" | "informational";
|
|
67
|
+
type FindingStatus = "detected" | "in_progress" | "needs_input" | "resolved" | "wont_fix" | "deferred";
|
|
68
|
+
type FindingSeverity = "critical" | "high" | "medium" | "low" | "info";
|
|
69
|
+
type UserInputType = "text" | "choice" | "boolean" | "code";
|
|
70
|
+
interface FindingCategory {
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
description: string;
|
|
74
|
+
icon: string;
|
|
75
|
+
color: string;
|
|
76
|
+
isBuiltIn: boolean;
|
|
77
|
+
defaultActionType: FindingActionType;
|
|
78
|
+
sortOrder: number;
|
|
79
|
+
}
|
|
80
|
+
interface UserInputOption {
|
|
81
|
+
value: string;
|
|
82
|
+
label: string;
|
|
83
|
+
description?: string;
|
|
84
|
+
}
|
|
85
|
+
interface UserInputRequest {
|
|
86
|
+
id: string;
|
|
87
|
+
findingId: string;
|
|
88
|
+
question: string;
|
|
89
|
+
context?: string;
|
|
90
|
+
inputType: UserInputType;
|
|
91
|
+
options?: UserInputOption[];
|
|
92
|
+
required: boolean;
|
|
93
|
+
defaultValue?: string;
|
|
94
|
+
}
|
|
95
|
+
interface CodeContext {
|
|
96
|
+
file?: string;
|
|
97
|
+
line?: number;
|
|
98
|
+
endLine?: number;
|
|
99
|
+
snippet?: string;
|
|
100
|
+
}
|
|
101
|
+
interface Finding {
|
|
102
|
+
id: string;
|
|
103
|
+
categoryId: string;
|
|
104
|
+
severity: FindingSeverity;
|
|
105
|
+
status: FindingStatus;
|
|
106
|
+
title: string;
|
|
107
|
+
description: string;
|
|
108
|
+
sourceSessionId?: string;
|
|
109
|
+
sourcePromptName?: string;
|
|
110
|
+
detectedAt: number;
|
|
111
|
+
actionType: FindingActionType;
|
|
112
|
+
actionable: boolean;
|
|
113
|
+
pendingQuestion?: UserInputRequest;
|
|
114
|
+
userResponse?: string;
|
|
115
|
+
resolvedAt?: number;
|
|
116
|
+
resolution?: string;
|
|
117
|
+
codeContext?: CodeContext;
|
|
118
|
+
metadata?: Record<string, unknown>;
|
|
119
|
+
}
|
|
120
|
+
interface CategorySummary {
|
|
121
|
+
count: number;
|
|
122
|
+
actionable: number;
|
|
123
|
+
resolved: number;
|
|
124
|
+
}
|
|
125
|
+
interface ReportSummary {
|
|
126
|
+
totalFindings: number;
|
|
127
|
+
byCategory: Record<string, CategorySummary>;
|
|
128
|
+
bySeverity: Record<FindingSeverity, number>;
|
|
129
|
+
byStatus: Record<FindingStatus, number>;
|
|
130
|
+
actionable: number;
|
|
131
|
+
needsUserInput: number;
|
|
132
|
+
autoFixed: number;
|
|
133
|
+
informational: number;
|
|
134
|
+
}
|
|
135
|
+
type ReportStatus = "running" | "completed" | "paused_for_input" | "failed" | "cancelled";
|
|
136
|
+
interface PhaseInfo {
|
|
137
|
+
phase: number;
|
|
138
|
+
startedAt: number;
|
|
139
|
+
completedAt?: number;
|
|
140
|
+
findingsDetected: number;
|
|
141
|
+
findingsResolved: number;
|
|
142
|
+
}
|
|
143
|
+
interface ExecutionReport {
|
|
144
|
+
id: string;
|
|
145
|
+
sessionId: string;
|
|
146
|
+
promptName: string;
|
|
147
|
+
promptId?: string;
|
|
148
|
+
startedAt: number;
|
|
149
|
+
completedAt?: number;
|
|
150
|
+
duration?: number;
|
|
151
|
+
status: ReportStatus;
|
|
152
|
+
findings: Finding[];
|
|
153
|
+
summary: ReportSummary;
|
|
154
|
+
pendingInputs: UserInputRequest[];
|
|
155
|
+
phases: PhaseInfo[];
|
|
156
|
+
}
|
|
157
|
+
interface ParsedFinding {
|
|
158
|
+
categoryId: string;
|
|
159
|
+
severity: FindingSeverity;
|
|
160
|
+
title: string;
|
|
161
|
+
description: string;
|
|
162
|
+
needsInput: boolean;
|
|
163
|
+
question?: string;
|
|
164
|
+
options?: string[];
|
|
165
|
+
file?: string;
|
|
166
|
+
line?: number;
|
|
167
|
+
resolution?: string;
|
|
168
|
+
}
|
|
169
|
+
interface CategoryStore {
|
|
170
|
+
customCategories: FindingCategory[];
|
|
171
|
+
categoryOrder: string[];
|
|
172
|
+
hiddenCategories: string[];
|
|
173
|
+
}
|
|
174
|
+
/** @deprecated Use FindingSeverity instead */
|
|
175
|
+
type SeverityLevel = FindingSeverity;
|
|
176
|
+
interface SeverityColorClasses {
|
|
177
|
+
bg: string;
|
|
178
|
+
text: string;
|
|
179
|
+
border: string;
|
|
180
|
+
dot: string;
|
|
181
|
+
}
|
|
182
|
+
type StatusColorType = "idle" | "running" | "success" | "error" | "warning" | "pending" | "paused" | "cancelled";
|
|
183
|
+
interface StatusColorClasses {
|
|
184
|
+
bg: string;
|
|
185
|
+
text: string;
|
|
186
|
+
border: string;
|
|
187
|
+
icon: string;
|
|
188
|
+
pulse?: string;
|
|
189
|
+
}
|
|
190
|
+
type ActionColorType = "auto_fix" | "needs_user_input" | "manual" | "informational" | "skip" | "defer";
|
|
191
|
+
interface ActionColorClasses {
|
|
192
|
+
bg: string;
|
|
193
|
+
text: string;
|
|
194
|
+
border: string;
|
|
195
|
+
badge: string;
|
|
196
|
+
}
|
|
197
|
+
type AccentColor = "red" | "orange" | "amber" | "yellow" | "green" | "emerald" | "blue" | "cyan" | "purple" | "rose" | "slate";
|
|
198
|
+
interface AccentColorClasses {
|
|
199
|
+
bg: string;
|
|
200
|
+
bgSolid: string;
|
|
201
|
+
text: string;
|
|
202
|
+
border: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type { AccentColor, AccentColorClasses, ActionColorClasses, ActionColorType, BuiltInCategoryId, CategoryStore, CategorySummary, CheckGroup, CheckItem, CodeContext, Context, ExecutionReport, Finding, FindingActionType, FindingCategory, FindingSeverity, FindingStatus, LibraryItem, Macro, MacroAction, ParsedFinding, PhaseInfo, ReportStatus, ReportSummary, SavedApiRequest, SavedPrompt, SeverityColorClasses, SeverityLevel, ShellCommand, StatusColorClasses, StatusColorType, UserInputOption, UserInputRequest, UserInputType };
|
package/dist/library.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=library.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|