@qontinui/shared-types 0.11.0 → 0.12.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/dist/accessibility.d.cts +9 -0
- package/dist/accessibility.d.ts +9 -0
- package/dist/constraints.d.cts +15 -0
- package/dist/constraints.d.ts +15 -0
- package/dist/execution.d.cts +39 -0
- package/dist/execution.d.ts +39 -0
- package/dist/geometry.d.cts +3 -0
- package/dist/geometry.d.ts +3 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/runner.d.cts +4 -0
- package/dist/runner.d.ts +4 -0
- package/dist/scheduler.d.cts +15 -0
- package/dist/scheduler.d.ts +15 -0
- package/dist/state-machine.d.cts +9 -0
- package/dist/state-machine.d.ts +9 -0
- package/dist/task-run.d.cts +45 -0
- package/dist/task-run.d.ts +45 -0
- package/dist/tree-events.d.cts +12 -0
- package/dist/tree-events.d.ts +12 -0
- package/dist/workflow.d.cts +26 -0
- package/dist/workflow.d.ts +26 -0
- package/package.json +3 -3
- package/src/generated/AccessibilityNode.d.ts +3 -0
- package/src/generated/AccessibilitySnapshot.d.ts +6 -0
- package/src/generated/ActionExecutionCreate.d.ts +6 -0
- package/src/generated/ActionExecutionListResponse.d.ts +3 -0
- package/src/generated/ActionReliabilityStats.d.ts +3 -0
- package/src/generated/AgentCommand.d.ts +81 -0
- package/src/generated/AgentCommandError.d.ts +23 -0
- package/src/generated/AgentCommandVersion.d.ts +67 -0
- package/src/generated/AgenticPhaseOutput.d.ts +3 -0
- package/src/generated/ApiAssertion.d.ts +3 -0
- package/src/generated/AssertionMiss.d.ts +3 -0
- package/src/generated/AssertionOutcome.d.ts +6 -0
- package/src/generated/AssertionResult.d.ts +3 -0
- package/src/generated/BackendProfile.d.ts +3 -0
- package/src/generated/CommandStep.d.ts +3 -0
- package/src/generated/CompletenessVerdict.d.ts +3 -0
- package/src/generated/ComponentActionInfo.d.ts +33 -0
- package/src/generated/ConjunctEvaluation.d.ts +3 -0
- package/src/generated/ConjunctRule.d.ts +3 -0
- package/src/generated/Constraint.d.ts +6 -0
- package/src/generated/ConstraintProposal.d.ts +3 -0
- package/src/generated/ConstraintResult.d.ts +3 -0
- package/src/generated/CoverageGap.d.ts +9 -0
- package/src/generated/CreateMcpServerInput.d.ts +3 -0
- package/src/generated/CreateScheduledTaskRequest.d.ts +6 -0
- package/src/generated/DiscoveredElement.d.ts +3 -0
- package/src/generated/DiscoveredStateImage.d.ts +3 -0
- package/src/generated/ElementState.d.ts +3 -0
- package/src/generated/EmbeddedElement.d.ts +3 -0
- package/src/generated/Entity.d.ts +3 -0
- package/src/generated/ExecutionIssueCreate.d.ts +3 -0
- package/src/generated/ExecutionIssueDetail.d.ts +12 -0
- package/src/generated/ExecutionIssueListResponse.d.ts +3 -0
- package/src/generated/ExecutionRunComplete.d.ts +6 -0
- package/src/generated/ExecutionRunCompleteResponse.d.ts +6 -0
- package/src/generated/ExecutionRunCreate.d.ts +6 -0
- package/src/generated/ExecutionRunDetail.d.ts +12 -0
- package/src/generated/ExecutionRunListResponse.d.ts +3 -0
- package/src/generated/ExecutionRunResponse.d.ts +6 -0
- package/src/generated/ExecutionScreenshotCreate.d.ts +3 -0
- package/src/generated/Finding.d.ts +3 -0
- package/src/generated/FindingCreate.d.ts +9 -0
- package/src/generated/FindingDetail.d.ts +12 -0
- package/src/generated/FunctionalSpec.d.ts +3 -0
- package/src/generated/HelperAnswer.d.ts +3 -0
- package/src/generated/HelperTask.d.ts +16 -0
- package/src/generated/HistoricalActionResult.d.ts +6 -0
- package/src/generated/IrPageSpec.d.ts +62 -0
- package/src/generated/IterationResult.d.ts +3 -0
- package/src/generated/LoopInstanceStatus.d.ts +3 -0
- package/src/generated/McpServerConfig.d.ts +3 -0
- package/src/generated/McpToolInfo.d.ts +3 -0
- package/src/generated/Monitor.d.ts +3 -0
- package/src/generated/MultiLoopEntry.d.ts +3 -0
- package/src/generated/NewConstraintProposal.d.ts +3 -0
- package/src/generated/OrchestrationLoopStatus.d.ts +3 -0
- package/src/generated/OutputLine.d.ts +3 -0
- package/src/generated/PolicyConjunct.d.ts +7 -0
- package/src/generated/PolicyEvaluation.d.ts +5 -1
- package/src/generated/ProcessStatusLite.d.ts +3 -0
- package/src/generated/Profile.d.ts +6 -0
- package/src/generated/ProjectSnapshot.d.ts +3 -0
- package/src/generated/PromptStep.d.ts +3 -0
- package/src/generated/RecommendedState.d.ts +3 -0
- package/src/generated/ResolvedInitialStates.d.ts +3 -0
- package/src/generated/ResolvedInitialStatesResult.d.ts +3 -0
- package/src/generated/Runner.d.ts +4 -0
- package/src/generated/ScheduledTask.d.ts +6 -0
- package/src/generated/ScreenshotAnnotation.d.ts +3 -0
- package/src/generated/SessionLite.d.ts +3 -0
- package/src/generated/SpecApiEvent.d.ts +26 -0
- package/src/generated/SpecCheckResult.d.ts +22 -0
- package/src/generated/SpecCheckStepConfig.d.ts +3 -0
- package/src/generated/SpecCheckSummary.d.ts +6 -0
- package/src/generated/StateDiscoveryResult.d.ts +3 -0
- package/src/generated/StateDiscoveryResultCreate.d.ts +3 -0
- package/src/generated/StateDiscoveryResultSummary.d.ts +3 -0
- package/src/generated/StateMachineImport.d.ts +3 -0
- package/src/generated/SuccessCriterion.d.ts +3 -0
- package/src/generated/TaskCompletionResult.d.ts +5 -2
- package/src/generated/TaskExecutionRecord.d.ts +3 -0
- package/src/generated/TaskRun.d.ts +6 -0
- package/src/generated/TaskRunBackend.d.ts +3 -0
- package/src/generated/TaskRunBackendDetail.d.ts +6 -0
- package/src/generated/TaskRunFinding.d.ts +12 -0
- package/src/generated/TaskRunFindingCreate.d.ts +6 -0
- package/src/generated/TaskRunFindingsListResponse.d.ts +3 -0
- package/src/generated/TaskRunListResponse.d.ts +3 -0
- package/src/generated/Ticket.d.ts +6 -0
- package/src/generated/TicketProviderConfig.d.ts +3 -0
- package/src/generated/TransitionAction.d.ts +3 -0
- package/src/generated/TreeEvent.d.ts +6 -0
- package/src/generated/TreeNode.d.ts +6 -0
- package/src/generated/UIBridgeComponent.d.ts +10 -0
- package/src/generated/UIBridgeElement.d.ts +6 -0
- package/src/generated/UiBridgeHttpHealthEnvelope.d.ts +3 -0
- package/src/generated/UiBridgeStep.d.ts +6 -0
- package/src/generated/UnifiedWorkflow.d.ts +8 -0
- package/src/generated/VectorSearchResult.d.ts +3 -0
- package/src/generated/VerificationResult.d.ts +3 -0
- package/src/generated/VerificationResultResponse.d.ts +3 -0
- package/src/generated/VerificationStepResult.d.ts +3 -0
- package/src/generated/WorkerCoordinationMessage.d.ts +3 -0
- package/src/generated/WorkerInstance.d.ts +3 -0
- package/src/generated/WorkflowStep.d.ts +3 -0
- package/src/generated/index.ts +3 -0
|
@@ -20,6 +20,9 @@ import type { HelperVerdict } from "./HelperVerdict";
|
|
|
20
20
|
* verdict and routes it back through [`source`](HelperTask::source).
|
|
21
21
|
*/
|
|
22
22
|
export interface HelperTask {
|
|
23
|
+
/**
|
|
24
|
+
* The set of allowed answers and preset reason codes offered to the helper.
|
|
25
|
+
*/
|
|
23
26
|
answerSchema: HelperAnswerSchema;
|
|
24
27
|
/**
|
|
25
28
|
* Application the task pertains to.
|
|
@@ -38,7 +41,13 @@ export interface HelperTask {
|
|
|
38
41
|
* Task ID (UUID v4 string).
|
|
39
42
|
*/
|
|
40
43
|
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Which kind of judgment is being asked for.
|
|
46
|
+
*/
|
|
41
47
|
kind: HelperTaskKind;
|
|
48
|
+
/**
|
|
49
|
+
* Kind-specific content (screenshot URL, compare URLs, steps, …).
|
|
50
|
+
*/
|
|
42
51
|
payload: HelperTaskPayload;
|
|
43
52
|
/**
|
|
44
53
|
* Human-readable question shown to the helper (e.g. "Does this login
|
|
@@ -49,7 +58,14 @@ export interface HelperTask {
|
|
|
49
58
|
* Number of helper answers required before the task is `Answered`.
|
|
50
59
|
*/
|
|
51
60
|
requiredVotes: number;
|
|
61
|
+
/**
|
|
62
|
+
* Provenance linking the task back to its originating finding / page /
|
|
63
|
+
* spec-check.
|
|
64
|
+
*/
|
|
52
65
|
source: HelperTaskSource;
|
|
66
|
+
/**
|
|
67
|
+
* Current lifecycle status.
|
|
68
|
+
*/
|
|
53
69
|
status: HelperTaskStatus;
|
|
54
70
|
/**
|
|
55
71
|
* Tenant that owns the task (coord tenant id).
|
|
@@ -16,6 +16,9 @@ export interface HistoricalActionResult {
|
|
|
16
16
|
* Human-readable action name.
|
|
17
17
|
*/
|
|
18
18
|
actionName: string;
|
|
19
|
+
/**
|
|
20
|
+
* Kind of action.
|
|
21
|
+
*/
|
|
19
22
|
actionType: ExecutionActionType;
|
|
20
23
|
/**
|
|
21
24
|
* Duration in milliseconds.
|
|
@@ -49,6 +52,9 @@ export interface HistoricalActionResult {
|
|
|
49
52
|
* URL to an associated screenshot, if any.
|
|
50
53
|
*/
|
|
51
54
|
screenshotUrl?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Outcome.
|
|
57
|
+
*/
|
|
52
58
|
status: ActionStatus;
|
|
53
59
|
/**
|
|
54
60
|
* Target state.
|
|
@@ -19,6 +19,48 @@ import type { IrTransitionAction } from "./IrTransitionAction";
|
|
|
19
19
|
import type { IrWaitSpec } from "./IrWaitSpec";
|
|
20
20
|
import type { ProposalStatus } from "./ProposalStatus";
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* API assertion: either a value-level assertion (status_code, json_path, etc.)
|
|
24
|
+
* or a schema-conformance assertion (conforms_to — Phase 2 placeholder).
|
|
25
|
+
*/
|
|
26
|
+
export type IrApiAssertion =
|
|
27
|
+
| {
|
|
28
|
+
expected: unknown;
|
|
29
|
+
operator?: string | null;
|
|
30
|
+
type: "status_code";
|
|
31
|
+
[k: string]: unknown;
|
|
32
|
+
}
|
|
33
|
+
| {
|
|
34
|
+
expected: unknown;
|
|
35
|
+
json_path: string;
|
|
36
|
+
operator?: string | null;
|
|
37
|
+
type: "json_path";
|
|
38
|
+
[k: string]: unknown;
|
|
39
|
+
}
|
|
40
|
+
| {
|
|
41
|
+
expected: unknown;
|
|
42
|
+
header_name: string;
|
|
43
|
+
operator?: string | null;
|
|
44
|
+
type: "header";
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
| {
|
|
48
|
+
expected: unknown;
|
|
49
|
+
type: "body_contains";
|
|
50
|
+
[k: string]: unknown;
|
|
51
|
+
}
|
|
52
|
+
| {
|
|
53
|
+
expected: unknown;
|
|
54
|
+
operator?: string | null;
|
|
55
|
+
type: "response_time";
|
|
56
|
+
[k: string]: unknown;
|
|
57
|
+
}
|
|
58
|
+
| {
|
|
59
|
+
schema: string;
|
|
60
|
+
type: "conforms_to";
|
|
61
|
+
[k: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
|
|
22
64
|
/**
|
|
23
65
|
* Top-level IR page specification (formerly `IrDocument`).
|
|
24
66
|
*
|
|
@@ -55,3 +97,23 @@ export interface IrPageSpec {
|
|
|
55
97
|
version: string;
|
|
56
98
|
[k: string]: unknown;
|
|
57
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* A single API-contract check: issue a request, validate the response.
|
|
102
|
+
*/
|
|
103
|
+
export interface IrApiCheck {
|
|
104
|
+
assertions: IrApiAssertion[];
|
|
105
|
+
description?: string | null;
|
|
106
|
+
effect: string;
|
|
107
|
+
id: string;
|
|
108
|
+
request: IrApiRequest;
|
|
109
|
+
[k: string]: unknown;
|
|
110
|
+
}
|
|
111
|
+
export interface IrApiRequest {
|
|
112
|
+
body?: unknown;
|
|
113
|
+
headers?: {
|
|
114
|
+
[k: string]: string;
|
|
115
|
+
} | null;
|
|
116
|
+
method: string;
|
|
117
|
+
path: string;
|
|
118
|
+
[k: string]: unknown;
|
|
119
|
+
}
|
|
@@ -25,6 +25,9 @@ export interface IterationResult {
|
|
|
25
25
|
* Diagnostic-phase result (if the diagnose phase is configured).
|
|
26
26
|
*/
|
|
27
27
|
diagnosticResult?: DiagnosticResult | null;
|
|
28
|
+
/**
|
|
29
|
+
* Exit-check outcome for this iteration.
|
|
30
|
+
*/
|
|
28
31
|
exitCheck: ExitCheckResult;
|
|
29
32
|
/**
|
|
30
33
|
* Number of fixes proposed during reflection.
|
|
@@ -69,6 +69,9 @@ export interface McpServerConfig {
|
|
|
69
69
|
* ISO 8601 timestamp of when `cached_tools` was populated.
|
|
70
70
|
*/
|
|
71
71
|
toolsCachedAt?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Which transport this server uses.
|
|
74
|
+
*/
|
|
72
75
|
transport: McpTransport;
|
|
73
76
|
/**
|
|
74
77
|
* ISO 8601 last-update timestamp.
|
|
@@ -15,6 +15,9 @@ export interface McpToolInfo {
|
|
|
15
15
|
* Tool description shown to users.
|
|
16
16
|
*/
|
|
17
17
|
description?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Input-argument schema. Wire field is `"inputSchema"` per MCP spec.
|
|
20
|
+
*/
|
|
18
21
|
inputSchema: McpToolInputSchema;
|
|
19
22
|
/**
|
|
20
23
|
* Tool name (the argument passed back on `tools/call`).
|
|
@@ -28,6 +28,9 @@ export interface Monitor {
|
|
|
28
28
|
* Display name (e.g., "DELL U2720Q").
|
|
29
29
|
*/
|
|
30
30
|
name?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Spatial position based on X coordinate (for UI display).
|
|
33
|
+
*/
|
|
31
34
|
position: MonitorPosition;
|
|
32
35
|
/**
|
|
33
36
|
* DPI scale factor (1.0 = 100%, 1.5 = 150%, 2.0 = 200%).
|
|
@@ -20,6 +20,9 @@ import type { SummarizationConfig } from "./SummarizationConfig";
|
|
|
20
20
|
* A single entry in a multi-loop configuration.
|
|
21
21
|
*/
|
|
22
22
|
export interface MultiLoopEntry {
|
|
23
|
+
/**
|
|
24
|
+
* The loop configuration.
|
|
25
|
+
*/
|
|
23
26
|
config: OrchestrationLoopConfig;
|
|
24
27
|
/**
|
|
25
28
|
* Human label (e.g., `"Pages 1–10"` or an app section name).
|
|
@@ -35,6 +35,9 @@ export interface OrchestrationLoopStatus {
|
|
|
35
35
|
* Iteration cap for this run. `None` renders as `"∞"`/unlimited in the UI.
|
|
36
36
|
*/
|
|
37
37
|
maxIterations?: number | null;
|
|
38
|
+
/**
|
|
39
|
+
* Current phase.
|
|
40
|
+
*/
|
|
38
41
|
phase: LoopPhase;
|
|
39
42
|
/**
|
|
40
43
|
* Whether the loop is currently running.
|
|
@@ -17,6 +17,13 @@ export interface PolicyConjunct {
|
|
|
17
17
|
* Human-readable name used in `ConjunctEvaluation.name`.
|
|
18
18
|
*/
|
|
19
19
|
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The conjunct rule.
|
|
22
|
+
*/
|
|
20
23
|
rule: ConjunctRule;
|
|
24
|
+
/**
|
|
25
|
+
* Filter narrowing which assertions / states this conjunct applies
|
|
26
|
+
* to.
|
|
27
|
+
*/
|
|
21
28
|
scope: AssertionScope;
|
|
22
29
|
}
|
|
@@ -18,5 +18,9 @@ export interface PolicyEvaluation {
|
|
|
18
18
|
* order.
|
|
19
19
|
*/
|
|
20
20
|
conjunctResults: ConjunctEvaluation[];
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Aggregate of all conjunct statuses — fails if any conjunct fails;
|
|
23
|
+
* indeterminate if any conjunct is indeterminate and none failed.
|
|
24
|
+
*/
|
|
25
|
+
overallStatus: PolicyStatus;
|
|
22
26
|
}
|
|
@@ -14,7 +14,13 @@ import type { EnforcementProfile } from "./EnforcementProfile";
|
|
|
14
14
|
* The top-level Priorities Profile.
|
|
15
15
|
*/
|
|
16
16
|
export interface Profile {
|
|
17
|
+
/**
|
|
18
|
+
* Architectural shape + testing bar.
|
|
19
|
+
*/
|
|
17
20
|
architecture: ArchitectureProfile;
|
|
21
|
+
/**
|
|
22
|
+
* Target backend stack.
|
|
23
|
+
*/
|
|
18
24
|
backend: BackendProfile;
|
|
19
25
|
/**
|
|
20
26
|
* Naming / mapping conventions, as free-form `key -> value` pairs (e.g.
|
|
@@ -44,6 +44,9 @@ export interface ProjectSnapshot {
|
|
|
44
44
|
* Managed processes whose `cwd` is under the project root.
|
|
45
45
|
*/
|
|
46
46
|
processes: ProcessStatusLite[];
|
|
47
|
+
/**
|
|
48
|
+
* The registry entry this snapshot describes.
|
|
49
|
+
*/
|
|
47
50
|
project: SavedProject;
|
|
48
51
|
/**
|
|
49
52
|
* Questions waiting on the user, from `deferred_questions`.
|
|
@@ -11,6 +11,9 @@ import type { SpecCheckConfidence } from "./SpecCheckConfidence";
|
|
|
11
11
|
* The single state the matcher recommends the caller treat as "current".
|
|
12
12
|
*/
|
|
13
13
|
export interface RecommendedState {
|
|
14
|
+
/**
|
|
15
|
+
* Matcher confidence in the recommendation.
|
|
16
|
+
*/
|
|
14
17
|
confidence: SpecCheckConfidence;
|
|
15
18
|
/**
|
|
16
19
|
* Free-form explanation (e.g. "highest match rate among all states").
|
|
@@ -13,6 +13,9 @@ import type { InitialStatesSource } from "./InitialStatesSource";
|
|
|
13
13
|
* resolution came from.
|
|
14
14
|
*/
|
|
15
15
|
export interface ResolvedInitialStates {
|
|
16
|
+
/**
|
|
17
|
+
* Where the resolution came from.
|
|
18
|
+
*/
|
|
16
19
|
source: InitialStatesSource;
|
|
17
20
|
/**
|
|
18
21
|
* Resolved initial state IDs.
|
|
@@ -28,6 +28,10 @@ export interface Runner {
|
|
|
28
28
|
* ISO 8601 timestamp when the runner was first registered.
|
|
29
29
|
*/
|
|
30
30
|
createdAt: string;
|
|
31
|
+
/**
|
|
32
|
+
* Computed health state derived from `ws_connected` and
|
|
33
|
+
* `last_heartbeat`. Authoritative for UI display.
|
|
34
|
+
*/
|
|
31
35
|
derivedStatus: RunnerStatus;
|
|
32
36
|
/**
|
|
33
37
|
* Reported hostname of the machine the runner is running on.
|
|
@@ -91,6 +91,9 @@ export interface ScheduledTask {
|
|
|
91
91
|
* Next scheduled run time (ISO 8601), computed by the runner.
|
|
92
92
|
*/
|
|
93
93
|
nextRun?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Schedule configuration.
|
|
96
|
+
*/
|
|
94
97
|
schedule: ScheduleExpression;
|
|
95
98
|
/**
|
|
96
99
|
* Skip future runs once the task has succeeded at least once.
|
|
@@ -100,5 +103,8 @@ export interface ScheduledTask {
|
|
|
100
103
|
* Free-form description of success criteria, for human reference.
|
|
101
104
|
*/
|
|
102
105
|
successCriteria?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* Task type and its per-type configuration.
|
|
108
|
+
*/
|
|
103
109
|
task: ScheduledTaskType;
|
|
104
110
|
}
|
|
@@ -31,6 +31,9 @@ export interface SessionLite {
|
|
|
31
31
|
* Session name — `task_runs.task_name` or the terminal's title.
|
|
32
32
|
*/
|
|
33
33
|
name?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Where this row came from.
|
|
36
|
+
*/
|
|
34
37
|
source: SessionSource;
|
|
35
38
|
/**
|
|
36
39
|
* `task_runs.status` ("running", "completed", …) for AI sessions;
|
|
@@ -88,3 +88,29 @@ export type SpecApiEvent =
|
|
|
88
88
|
type: "flywheel-proposal-demoted";
|
|
89
89
|
[k: string]: unknown;
|
|
90
90
|
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Existing `POST /spec/author` change-broadcast payload. Pre-dates the
|
|
94
|
+
* Plan 06 `SpecApiEvent` sum-type but keeps the same shape so external
|
|
95
|
+
* SSE subscribers (the runner's `use-discovered-specs.ts`) keep working.
|
|
96
|
+
*/
|
|
97
|
+
export interface SpecChanged {
|
|
98
|
+
/**
|
|
99
|
+
* Owning app id (multi-tenant Spec API). Subscribers filter on this
|
|
100
|
+
* to receive only their app's events. `#[serde(default)]` allows
|
|
101
|
+
* legacy emitters (pre-multi-app) to omit the field; downstream
|
|
102
|
+
* per-app routing treats empty as `qontinui-runner` for back-compat.
|
|
103
|
+
*/
|
|
104
|
+
appId: string;
|
|
105
|
+
/**
|
|
106
|
+
* Epoch milliseconds the event was emitted at.
|
|
107
|
+
*/
|
|
108
|
+
atMs: number;
|
|
109
|
+
/**
|
|
110
|
+
* "ir-and-projection" today; future kinds may include
|
|
111
|
+
* "projection-only" if a regen runs without an IR write.
|
|
112
|
+
*/
|
|
113
|
+
kind: string;
|
|
114
|
+
pageId: string;
|
|
115
|
+
[k: string]: unknown;
|
|
116
|
+
}
|
|
@@ -29,6 +29,9 @@ import type { StateMatchResult } from "./StateMatchResult";
|
|
|
29
29
|
* deserialize as `0`.
|
|
30
30
|
*/
|
|
31
31
|
export interface SpecCheckResult {
|
|
32
|
+
/**
|
|
33
|
+
* App / route / bridge-version fingerprint at snapshot time. §5.8 G3.
|
|
34
|
+
*/
|
|
32
35
|
bridgeFingerprint: BridgeFingerprint;
|
|
33
36
|
/**
|
|
34
37
|
* Red/Yellow/Green classification of the overall match rate.
|
|
@@ -77,6 +80,9 @@ export interface SpecCheckResult {
|
|
|
77
80
|
* One result per `IrState` in the spec.
|
|
78
81
|
*/
|
|
79
82
|
stateResults: StateMatchResult[];
|
|
83
|
+
/**
|
|
84
|
+
* Aggregate summary across all evaluated states.
|
|
85
|
+
*/
|
|
80
86
|
summary: SpecCheckSummary;
|
|
81
87
|
thresholdsUsed: ThresholdConfig;
|
|
82
88
|
/**
|
|
@@ -84,3 +90,19 @@ export interface SpecCheckResult {
|
|
|
84
90
|
*/
|
|
85
91
|
warnings?: string[];
|
|
86
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* The threshold configuration that was active at evaluation time.
|
|
95
|
+
* Immutable snapshot for audit purposes — allows historical results
|
|
96
|
+
* to be cross-checked against their contemporaneous thresholds.
|
|
97
|
+
*/
|
|
98
|
+
export interface ThresholdConfig {
|
|
99
|
+
/**
|
|
100
|
+
* Red threshold (0.0–1.0). Match rate < this → Red.
|
|
101
|
+
*/
|
|
102
|
+
redThreshold: number;
|
|
103
|
+
/**
|
|
104
|
+
* Yellow threshold (0.0–1.0). Match rate >= this → Green.
|
|
105
|
+
* Must be > `red_threshold`.
|
|
106
|
+
*/
|
|
107
|
+
yellowThreshold: number;
|
|
108
|
+
}
|
|
@@ -14,6 +14,9 @@ import type { SpecCheckConfidence } from "./SpecCheckConfidence";
|
|
|
14
14
|
* Aggregate summary across all evaluated states.
|
|
15
15
|
*/
|
|
16
16
|
export interface SpecCheckSummary {
|
|
17
|
+
/**
|
|
18
|
+
* Top-level pass / partial / no-match verdict.
|
|
19
|
+
*/
|
|
17
20
|
matchOutcome: MatchOutcome;
|
|
18
21
|
/**
|
|
19
22
|
* Mean of per-state match rates, weighted equally.
|
|
@@ -33,5 +36,8 @@ export interface SpecCheckSummary {
|
|
|
33
36
|
* as "current". `None` when the matcher has no preference.
|
|
34
37
|
*/
|
|
35
38
|
recommendedState?: RecommendedState | null;
|
|
39
|
+
/**
|
|
40
|
+
* Counts of assertion failures bucketed by severity.
|
|
41
|
+
*/
|
|
36
42
|
severityCounts: AssertionSeverityCounts;
|
|
37
43
|
}
|
|
@@ -76,6 +76,9 @@ export interface StateDiscoveryResult {
|
|
|
76
76
|
* ID of the source session (extraction, recording, …).
|
|
77
77
|
*/
|
|
78
78
|
sourceSessionId?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* How this state machine was discovered.
|
|
81
|
+
*/
|
|
79
82
|
sourceType: DiscoverySourceType;
|
|
80
83
|
/**
|
|
81
84
|
* Number of states (statistic).
|
|
@@ -38,6 +38,9 @@ export interface SuccessCriterion {
|
|
|
38
38
|
* Whether this criterion must pass for task completion.
|
|
39
39
|
*/
|
|
40
40
|
required: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Type of verification required. Serialized as `"type"` on the wire.
|
|
43
|
+
*/
|
|
41
44
|
type: CriterionType;
|
|
42
45
|
/**
|
|
43
46
|
* Configuration blob for the verification method (command args, log
|
|
@@ -29,6 +29,9 @@ export type TaskCompletionResult =
|
|
|
29
29
|
*/
|
|
30
30
|
iterations: number;
|
|
31
31
|
status: "success";
|
|
32
|
+
/**
|
|
33
|
+
* Final verification results.
|
|
34
|
+
*/
|
|
32
35
|
verification_results: IterationVerificationResults;
|
|
33
36
|
[k: string]: unknown;
|
|
34
37
|
}
|
|
@@ -44,7 +47,7 @@ export type TaskCompletionResult =
|
|
|
44
47
|
/**
|
|
45
48
|
* Last verification results (if any).
|
|
46
49
|
*/
|
|
47
|
-
last_results?:
|
|
50
|
+
last_results?: IterationVerificationResults | null;
|
|
48
51
|
/**
|
|
49
52
|
* Human-readable reason for the failure.
|
|
50
53
|
*/
|
|
@@ -80,7 +83,7 @@ export type TaskCompletionResult =
|
|
|
80
83
|
/**
|
|
81
84
|
* Last verification results (if any).
|
|
82
85
|
*/
|
|
83
|
-
last_results?:
|
|
86
|
+
last_results?: IterationVerificationResults | null;
|
|
84
87
|
/**
|
|
85
88
|
* The max-iteration limit that triggered the pause.
|
|
86
89
|
*/
|
|
@@ -49,6 +49,9 @@ export interface TaskExecutionRecord {
|
|
|
49
49
|
* ISO 8601 timestamp when execution started.
|
|
50
50
|
*/
|
|
51
51
|
startedAt: string;
|
|
52
|
+
/**
|
|
53
|
+
* Current status of this execution.
|
|
54
|
+
*/
|
|
52
55
|
status: ScheduledTaskStatus;
|
|
53
56
|
/**
|
|
54
57
|
* Whether the task succeeded, read from the session checkpoint.
|
|
@@ -63,6 +63,9 @@ export interface TaskRun {
|
|
|
63
63
|
* Number of AI sessions that have been run.
|
|
64
64
|
*/
|
|
65
65
|
sessionsCount: number;
|
|
66
|
+
/**
|
|
67
|
+
* Current lifecycle status.
|
|
68
|
+
*/
|
|
66
69
|
status: TaskRunStatus;
|
|
67
70
|
/**
|
|
68
71
|
* AI-generated summary of the task run.
|
|
@@ -76,6 +79,9 @@ export interface TaskRun {
|
|
|
76
79
|
* Display name of the task.
|
|
77
80
|
*/
|
|
78
81
|
taskName: string;
|
|
82
|
+
/**
|
|
83
|
+
* Kind of task (one-off, automation, or scheduled).
|
|
84
|
+
*/
|
|
79
85
|
taskType: TaskType;
|
|
80
86
|
/**
|
|
81
87
|
* ISO 8601 timestamp when the task record was last updated.
|
|
@@ -45,6 +45,9 @@ export interface TaskRunBackendDetail {
|
|
|
45
45
|
* Error message if the task failed.
|
|
46
46
|
*/
|
|
47
47
|
errorMessage: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Aggregated counts of findings.
|
|
50
|
+
*/
|
|
48
51
|
findingSummary: TaskRunFindingSummary;
|
|
49
52
|
/**
|
|
50
53
|
* Findings surfaced during this task run.
|
|
@@ -86,6 +89,9 @@ export interface TaskRunBackendDetail {
|
|
|
86
89
|
* Number of AI sessions that have been run.
|
|
87
90
|
*/
|
|
88
91
|
sessionsCount: number;
|
|
92
|
+
/**
|
|
93
|
+
* Current lifecycle status.
|
|
94
|
+
*/
|
|
89
95
|
status: TaskRunStatus;
|
|
90
96
|
/**
|
|
91
97
|
* Display name.
|
|
@@ -17,7 +17,13 @@ import type { TaskRunFindingStatus } from "./TaskRunFindingStatus";
|
|
|
17
17
|
* possibly `null`), so they use `serde(default)` without `skip_serializing_if`.
|
|
18
18
|
*/
|
|
19
19
|
export interface TaskRunFinding {
|
|
20
|
+
/**
|
|
21
|
+
* How the finding should be acted upon.
|
|
22
|
+
*/
|
|
20
23
|
actionType: TaskRunFindingActionType;
|
|
24
|
+
/**
|
|
25
|
+
* Category (bug, security, performance, etc.).
|
|
26
|
+
*/
|
|
21
27
|
category: TaskRunFindingCategory;
|
|
22
28
|
/**
|
|
23
29
|
* Snippet of code illustrating the issue.
|
|
@@ -75,11 +81,17 @@ export interface TaskRunFinding {
|
|
|
75
81
|
* Session number in which the finding was resolved.
|
|
76
82
|
*/
|
|
77
83
|
resolvedInSession: number | null;
|
|
84
|
+
/**
|
|
85
|
+
* Severity of the finding.
|
|
86
|
+
*/
|
|
78
87
|
severity: TaskRunFindingSeverity;
|
|
79
88
|
/**
|
|
80
89
|
* Hash used to deduplicate findings across runs.
|
|
81
90
|
*/
|
|
82
91
|
signatureHash: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Current lifecycle status.
|
|
94
|
+
*/
|
|
83
95
|
status: TaskRunFindingStatus;
|
|
84
96
|
/**
|
|
85
97
|
* Parent task run ID.
|