@ancplua/qyl-api-schema 7.4.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,60 +34,6 @@ export type WorkbenchSuiteId = string & {
34
34
  export type WorkbenchEvaluationExportId = string & {
35
35
  readonly __brand: "WorkbenchEvaluationExportId";
36
36
  };
37
- export type WorkflowGeneration = string & {
38
- readonly __brand: "WorkflowGeneration";
39
- };
40
- export type WorkflowJournalPosition = string & {
41
- readonly __brand: "WorkflowJournalPosition";
42
- };
43
- export type WorkflowRunId = string & {
44
- readonly __brand: "WorkflowRunId";
45
- };
46
- export type WorkflowAttemptId = string & {
47
- readonly __brand: "WorkflowAttemptId";
48
- };
49
- export type WorkflowRunCursor = string & {
50
- readonly __brand: "WorkflowRunCursor";
51
- };
52
- export type WorkflowContentRef = string & {
53
- readonly __brand: "WorkflowContentRef";
54
- };
55
- export type WorkflowEventId = string & {
56
- readonly __brand: "WorkflowEventId";
57
- };
58
- export type WorkflowAgentId = string & {
59
- readonly __brand: "WorkflowAgentId";
60
- };
61
- export type WorkflowToolCallId = string & {
62
- readonly __brand: "WorkflowToolCallId";
63
- };
64
- export type WorkflowNodeId = string & {
65
- readonly __brand: "WorkflowNodeId";
66
- };
67
- export type WorkflowEdgeId = string & {
68
- readonly __brand: "WorkflowEdgeId";
69
- };
70
- export type WorkflowNodeCursor = string & {
71
- readonly __brand: "WorkflowNodeCursor";
72
- };
73
- export type WorkflowEdgeCursor = string & {
74
- readonly __brand: "WorkflowEdgeCursor";
75
- };
76
- export type WorkflowCommandId = string & {
77
- readonly __brand: "WorkflowCommandId";
78
- };
79
- export type AgentDiagnosticVariableName = string & {
80
- readonly __brand: "AgentDiagnosticVariableName";
81
- };
82
- export type AgentDiagnosticCheckId = string & {
83
- readonly __brand: "AgentDiagnosticCheckId";
84
- };
85
- export type AgentDiagnosticSnapshotId = string & {
86
- readonly __brand: "AgentDiagnosticSnapshotId";
87
- };
88
- export type AgentDiagnosticProbeId = string & {
89
- readonly __brand: "AgentDiagnosticProbeId";
90
- };
91
37
  export declare const ProblemDetailsMediaType: "application/problem+json";
92
38
  export type ProblemDetailsMediaType = typeof ProblemDetailsMediaType;
93
39
  export declare const SortOrderValues: {
@@ -237,6 +183,32 @@ export declare const OsTypeValues: {
237
183
  readonly zOs: "z_os";
238
184
  };
239
185
  export type OsType = typeof OsTypeValues[keyof typeof OsTypeValues];
186
+ export declare const MetricKindValues: {
187
+ readonly gauge: "gauge";
188
+ readonly sum: "sum";
189
+ readonly histogram: "histogram";
190
+ readonly exponential_histogram: "exponential_histogram";
191
+ };
192
+ export type MetricKind = typeof MetricKindValues[keyof typeof MetricKindValues];
193
+ export declare const MetricTemporalityValues: {
194
+ readonly unspecified: "unspecified";
195
+ readonly delta: "delta";
196
+ readonly cumulative: "cumulative";
197
+ };
198
+ export type MetricTemporality = typeof MetricTemporalityValues[keyof typeof MetricTemporalityValues];
199
+ export declare const MetricAggregationValues: {
200
+ readonly avg: "avg";
201
+ readonly min: "min";
202
+ readonly max: "max";
203
+ readonly sum: "sum";
204
+ readonly count: "count";
205
+ readonly last: "last";
206
+ readonly p50: "p50";
207
+ readonly p90: "p90";
208
+ readonly p95: "p95";
209
+ readonly p99: "p99";
210
+ };
211
+ export type MetricAggregation = typeof MetricAggregationValues[keyof typeof MetricAggregationValues];
240
212
  export declare const SessionEventNameValues: {
241
213
  readonly sessionStart: "session.start";
242
214
  readonly sessionEnd: "session.end";
@@ -405,173 +377,6 @@ export declare const WorkbenchTransportKindValues: {
405
377
  readonly builtin: "builtin";
406
378
  };
407
379
  export type WorkbenchTransportKind = typeof WorkbenchTransportKindValues[keyof typeof WorkbenchTransportKindValues];
408
- export declare const WorkflowRunStatusValues: {
409
- readonly active: "active";
410
- readonly completed: "completed";
411
- readonly failed: "failed";
412
- readonly interrupted: "interrupted";
413
- };
414
- export type WorkflowRunStatus = typeof WorkflowRunStatusValues[keyof typeof WorkflowRunStatusValues];
415
- export declare const WorkflowContentEncodingValues: {
416
- readonly utf8: "utf8";
417
- readonly base64: "base64";
418
- };
419
- export type WorkflowContentEncoding = typeof WorkflowContentEncodingValues[keyof typeof WorkflowContentEncodingValues];
420
- export declare const WorkflowJournalEventKindValues: {
421
- readonly runCreated: "run_created";
422
- readonly runCompleted: "run_completed";
423
- readonly threadStarted: "thread_started";
424
- readonly threadResumed: "thread_resumed";
425
- readonly turnStarted: "turn_started";
426
- readonly turnCompleted: "turn_completed";
427
- readonly turnInterrupted: "turn_interrupted";
428
- readonly attemptStarted: "attempt_started";
429
- readonly attemptCompleted: "attempt_completed";
430
- readonly agentSpawned: "agent_spawned";
431
- readonly agentStarted: "agent_started";
432
- readonly agentCompleted: "agent_completed";
433
- readonly messageSent: "message_sent";
434
- readonly messageReceived: "message_received";
435
- readonly waitStarted: "wait_started";
436
- readonly waitCompleted: "wait_completed";
437
- readonly joined: "joined";
438
- readonly itemStarted: "item_started";
439
- readonly itemCompleted: "item_completed";
440
- readonly toolStarted: "tool_started";
441
- readonly toolCompleted: "tool_completed";
442
- readonly approvalRequested: "approval_requested";
443
- readonly approvalResolved: "approval_resolved";
444
- readonly contentCaptured: "content_captured";
445
- readonly fileWritten: "file_written";
446
- readonly controlRequested: "control_requested";
447
- readonly controlAccepted: "control_accepted";
448
- readonly controlApplied: "control_applied";
449
- readonly controlRejected: "control_rejected";
450
- readonly controlFailed: "control_failed";
451
- };
452
- export type WorkflowJournalEventKind = typeof WorkflowJournalEventKindValues[keyof typeof WorkflowJournalEventKindValues];
453
- export declare const WorkflowNodeKindValues: {
454
- readonly run: "run";
455
- readonly attempt: "attempt";
456
- readonly turn: "turn";
457
- readonly agent: "agent";
458
- readonly toolCall: "tool_call";
459
- readonly message: "message";
460
- readonly wait: "wait";
461
- readonly gate: "gate";
462
- readonly resource: "resource";
463
- };
464
- export type WorkflowNodeKind = typeof WorkflowNodeKindValues[keyof typeof WorkflowNodeKindValues];
465
- export declare const WorkflowEdgeKindValues: {
466
- readonly data: "data";
467
- readonly control: "control";
468
- readonly conflict: "conflict";
469
- readonly resource: "resource";
470
- readonly gate: "gate";
471
- readonly temporal: "temporal";
472
- };
473
- export type WorkflowEdgeKind = typeof WorkflowEdgeKindValues[keyof typeof WorkflowEdgeKindValues];
474
- export declare const WorkflowControlActionValues: {
475
- readonly steer: "steer";
476
- readonly interrupt: "interrupt";
477
- readonly resume: "resume";
478
- };
479
- export type WorkflowControlAction = typeof WorkflowControlActionValues[keyof typeof WorkflowControlActionValues];
480
- export declare const WorkflowControlStatusValues: {
481
- readonly requested: "requested";
482
- readonly accepted: "accepted";
483
- readonly applied: "applied";
484
- readonly rejected: "rejected";
485
- readonly failed: "failed";
486
- };
487
- export type WorkflowControlStatus = typeof WorkflowControlStatusValues[keyof typeof WorkflowControlStatusValues];
488
- export declare const WorkflowCursorKindValues: {
489
- readonly node: "node";
490
- readonly edge: "edge";
491
- };
492
- export type WorkflowCursorKind = typeof WorkflowCursorKindValues[keyof typeof WorkflowCursorKindValues];
493
- export declare const WorkflowCursorFailureReasonValues: {
494
- readonly invalid: "invalid";
495
- readonly wrongRun: "wrong_run";
496
- readonly wrongGeneration: "wrong_generation";
497
- readonly stale: "stale";
498
- };
499
- export type WorkflowCursorFailureReason = typeof WorkflowCursorFailureReasonValues[keyof typeof WorkflowCursorFailureReasonValues];
500
- export declare const WorkflowAttemptStatusValues: {
501
- readonly pending: "pending";
502
- readonly running: "running";
503
- readonly succeeded: "succeeded";
504
- readonly failed: "failed";
505
- readonly interrupted: "interrupted";
506
- };
507
- export type WorkflowAttemptStatus = typeof WorkflowAttemptStatusValues[keyof typeof WorkflowAttemptStatusValues];
508
- export declare const WorkflowAgentStatusValues: {
509
- readonly pending: "pending";
510
- readonly running: "running";
511
- readonly waiting: "waiting";
512
- readonly succeeded: "succeeded";
513
- readonly failed: "failed";
514
- readonly interrupted: "interrupted";
515
- };
516
- export type WorkflowAgentStatus = typeof WorkflowAgentStatusValues[keyof typeof WorkflowAgentStatusValues];
517
- export declare const WorkflowToolCallStatusValues: {
518
- readonly requested: "requested";
519
- readonly running: "running";
520
- readonly succeeded: "succeeded";
521
- readonly failed: "failed";
522
- readonly rejected: "rejected";
523
- };
524
- export type WorkflowToolCallStatus = typeof WorkflowToolCallStatusValues[keyof typeof WorkflowToolCallStatusValues];
525
- export declare const AgentDiagnosticValueTypeValues: {
526
- readonly null: "null";
527
- readonly boolean: "boolean";
528
- readonly integer: "integer";
529
- readonly number: "number";
530
- readonly string: "string";
531
- readonly json: "json";
532
- };
533
- export type AgentDiagnosticValueType = typeof AgentDiagnosticValueTypeValues[keyof typeof AgentDiagnosticValueTypeValues];
534
- export declare const AgentDiagnosticClassificationValues: {
535
- readonly public: "public";
536
- readonly internal: "internal";
537
- readonly sensitive: "sensitive";
538
- readonly secret: "secret";
539
- };
540
- export type AgentDiagnosticClassification = typeof AgentDiagnosticClassificationValues[keyof typeof AgentDiagnosticClassificationValues];
541
- export declare const AgentDiagnosticOperatorValues: {
542
- readonly equal: "equal";
543
- readonly notEqual: "not_equal";
544
- readonly exists: "exists";
545
- readonly typeIs: "type_is";
546
- readonly contains: "contains";
547
- readonly lessThan: "less_than";
548
- readonly greaterThan: "greater_than";
549
- };
550
- export type AgentDiagnosticOperator = typeof AgentDiagnosticOperatorValues[keyof typeof AgentDiagnosticOperatorValues];
551
- export declare const AgentDiagnosticCheckOutcomeValues: {
552
- readonly pass: "pass";
553
- readonly fail: "fail";
554
- readonly unknownResult: "unknown";
555
- };
556
- export type AgentDiagnosticCheckOutcome = typeof AgentDiagnosticCheckOutcomeValues[keyof typeof AgentDiagnosticCheckOutcomeValues];
557
- export declare const AgentDiagnosticExtensionIdValues: {
558
- readonly snapshot: "qyl.agent.diagnostic.snapshot";
559
- };
560
- export type AgentDiagnosticExtensionId = typeof AgentDiagnosticExtensionIdValues[keyof typeof AgentDiagnosticExtensionIdValues];
561
- export declare const AgentDiagnosticPhaseValues: {
562
- readonly input: "input";
563
- readonly output: "output";
564
- readonly error: "error";
565
- readonly checkpoint: "checkpoint";
566
- };
567
- export type AgentDiagnosticPhase = typeof AgentDiagnosticPhaseValues[keyof typeof AgentDiagnosticPhaseValues];
568
- export declare const AgentDiagnosticOutcomeValues: {
569
- readonly pass: "pass";
570
- readonly fail: "fail";
571
- readonly unknownResult: "unknown";
572
- readonly notEvaluated: "not_evaluated";
573
- };
574
- export type AgentDiagnosticOutcome = typeof AgentDiagnosticOutcomeValues[keyof typeof AgentDiagnosticOutcomeValues];
575
380
  export declare const McpDataModeValues: {
576
381
  readonly live: "live";
577
382
  readonly demo: "demo";
@@ -601,10 +406,6 @@ export type WorkbenchTestAssertion = WorkbenchStatusAssertion | WorkbenchExactAs
601
406
  export type WorkbenchEvaluationExportPayload = WorkbenchEvaluationJsonExportPayload | WorkbenchEvaluationReportExportPayload;
602
407
  export type WorkbenchProtocolEvents = WorkbenchProtocolEvent;
603
408
  export type WorkbenchExecutionUpdateEvents = WorkbenchExecutionRecord;
604
- export type WorkflowEdgeProvenance = RecordedWorkflowEdgeProvenance | DerivedWorkflowEdgeProvenance;
605
- export type WorkflowProjectionStatus = CommittedWorkflowProjectionStatus | RebuildingWorkflowProjectionStatus | UnavailableWorkflowProjectionStatus | CorruptWorkflowProjectionStatus;
606
- export type WorkflowStreamEvents = WorkflowJournalEvent | WorkflowHeartbeatEvent | WorkflowCursorGapEvent;
607
- export type AgentDiagnosticVariable = CapturedAgentDiagnosticVariable | RedactedAgentDiagnosticVariable | OmittedAgentDiagnosticVariable;
608
409
  export type LogEvents = LogStreamEvent | HeartbeatEvent;
609
410
  export interface AttributeBytesValue {
610
411
  "type": "bytes";
@@ -869,6 +670,46 @@ export interface LogTemplate {
869
670
  "parameters": Attribute[];
870
671
  "rendered_message"?: string;
871
672
  }
673
+ export interface MetricDescriptor {
674
+ "name": string;
675
+ "kind": MetricKind;
676
+ "temporality": MetricTemporality;
677
+ "monotonic": boolean;
678
+ "unit"?: string;
679
+ "description"?: string;
680
+ "series_count": number;
681
+ "last_seen": string;
682
+ }
683
+ export interface MetricSeries {
684
+ "series_id": string;
685
+ "name": string;
686
+ "kind": MetricKind;
687
+ "attributes": Attribute[];
688
+ "service_name"?: string;
689
+ "unit"?: string;
690
+ "first_seen": string;
691
+ "last_seen": string;
692
+ }
693
+ export interface MetricBucket {
694
+ "bucket_start": string;
695
+ "value": number | null;
696
+ "point_count": number;
697
+ }
698
+ export interface MetricSeriesResult {
699
+ "attributes": Attribute[];
700
+ "buckets": MetricBucket[];
701
+ }
702
+ export interface MetricQueryResult {
703
+ "name": string;
704
+ "kind": MetricKind;
705
+ "unit"?: string;
706
+ "aggregation": MetricAggregation;
707
+ "step_ms": number;
708
+ "start_time": string;
709
+ "end_time": string;
710
+ "series": MetricSeriesResult[];
711
+ "truncated": boolean;
712
+ }
872
713
  export interface SessionAttributes {
873
714
  "session_id": SessionId;
874
715
  "previous_session_id"?: SessionId;
@@ -1449,256 +1290,6 @@ export interface WorkbenchEvaluationExportArtifact {
1449
1290
  export interface WorkbenchEvaluationExportAccepted {
1450
1291
  "export": WorkbenchEvaluationExport;
1451
1292
  }
1452
- export interface CommittedWorkflowProjectionStatus {
1453
- "state": "committed";
1454
- "generation": WorkflowGeneration;
1455
- "journal_position": WorkflowJournalPosition;
1456
- }
1457
- export interface RebuildingWorkflowProjectionStatus {
1458
- "state": "rebuilding";
1459
- "generation": WorkflowGeneration;
1460
- "target_journal_position": WorkflowJournalPosition;
1461
- "retry_after_ms": number;
1462
- }
1463
- export interface UnavailableWorkflowProjectionStatus {
1464
- "state": "unavailable";
1465
- "generation"?: WorkflowGeneration;
1466
- "retry_after_ms": number;
1467
- }
1468
- export interface CorruptWorkflowProjectionStatus {
1469
- "state": "corrupt";
1470
- "generation"?: WorkflowGeneration;
1471
- "reason": "corrupt_derived_state" | "incompatible_derived_state";
1472
- }
1473
- export interface WorkflowRun {
1474
- "run_id": WorkflowRunId;
1475
- "generation": WorkflowGeneration;
1476
- "thread_id"?: string;
1477
- "title"?: string;
1478
- "status": WorkflowRunStatus;
1479
- "started_at": string;
1480
- "ended_at"?: string;
1481
- "latest_journal_sequence": WorkflowJournalPosition;
1482
- "active_attempt_id"?: WorkflowAttemptId;
1483
- "metadata"?: Record<string, unknown>;
1484
- }
1485
- export interface WorkflowRunCreateRequest {
1486
- "run_id": WorkflowRunId;
1487
- "thread_id"?: string;
1488
- "title"?: string;
1489
- "started_at": string;
1490
- "metadata"?: Record<string, unknown>;
1491
- }
1492
- export interface WorkflowRunPage {
1493
- "items": WorkflowRun[];
1494
- "next_cursor"?: WorkflowRunCursor;
1495
- "has_more": boolean;
1496
- }
1497
- export interface WorkflowContentChunk {
1498
- "content_ref": WorkflowContentRef;
1499
- "content_type": string;
1500
- "encoding": WorkflowContentEncoding;
1501
- "content": string;
1502
- }
1503
- export interface WorkflowEventAppend {
1504
- "event_id": WorkflowEventId;
1505
- "source_sequence": string;
1506
- "timestamp": string;
1507
- "kind": WorkflowJournalEventKind;
1508
- "thread_id"?: string;
1509
- "turn_id"?: string;
1510
- "attempt_id"?: WorkflowAttemptId;
1511
- "agent_id"?: WorkflowAgentId;
1512
- "parent_agent_id"?: WorkflowAgentId;
1513
- "receiver_agent_id"?: WorkflowAgentId;
1514
- "tool_call_id"?: WorkflowToolCallId;
1515
- "content_refs"?: WorkflowContentRef[];
1516
- "data"?: Record<string, unknown>;
1517
- }
1518
- export interface WorkflowEventBatchAppendRequest {
1519
- "client_id": string;
1520
- "events": WorkflowEventAppend[];
1521
- "content"?: WorkflowContentChunk[];
1522
- }
1523
- export interface WorkflowEventBatchAppendResponse {
1524
- "accepted_count": number;
1525
- "duplicate_count": number;
1526
- "acknowledged_source_sequence": string;
1527
- "first_journal_sequence"?: WorkflowJournalPosition;
1528
- "last_journal_sequence"?: WorkflowJournalPosition;
1529
- }
1530
- export interface WorkflowJournalEvent extends WorkflowEventAppend {
1531
- "run_id": WorkflowRunId;
1532
- "client_id": string;
1533
- "journal_sequence": WorkflowJournalPosition;
1534
- }
1535
- export interface WorkflowEventPage {
1536
- "events": WorkflowJournalEvent[];
1537
- "next_sequence": WorkflowJournalPosition;
1538
- "high_water_mark": WorkflowJournalPosition;
1539
- "cursor_gap": boolean;
1540
- }
1541
- export interface RecordedWorkflowEdgeProvenance {
1542
- "type": "recorded";
1543
- "event_ids": WorkflowEventId[];
1544
- }
1545
- export interface DerivedWorkflowEdgeProvenance {
1546
- "type": "derived";
1547
- "event_ids": WorkflowEventId[];
1548
- "evidence": string;
1549
- "confidence": number;
1550
- }
1551
- export interface WorkflowGraphNode {
1552
- "node_id": WorkflowNodeId;
1553
- "kind": WorkflowNodeKind;
1554
- "label": string;
1555
- "status": string;
1556
- "attempt_id"?: WorkflowAttemptId;
1557
- "agent_id"?: WorkflowAgentId;
1558
- "started_at"?: string;
1559
- "ended_at"?: string;
1560
- "duration_ms"?: number;
1561
- "content_refs"?: WorkflowContentRef[];
1562
- "attributes"?: Record<string, unknown>;
1563
- }
1564
- export interface WorkflowGraphEdge {
1565
- "edge_id": WorkflowEdgeId;
1566
- "source_node_id": WorkflowNodeId;
1567
- "target_node_id": WorkflowNodeId;
1568
- "kind": WorkflowEdgeKind;
1569
- "provenance": WorkflowEdgeProvenance;
1570
- }
1571
- export interface WorkflowGraphStatistics {
1572
- "t1_ms": number;
1573
- "t_infinity_ms": number;
1574
- "wall_time_ms": number;
1575
- "peak_concurrency": number;
1576
- "worker_count": number;
1577
- "parallel_lower_bound_ms": number;
1578
- "critical_path_node_ids": WorkflowNodeId[];
1579
- }
1580
- export interface WorkflowGraphSnapshot {
1581
- "run": WorkflowRun;
1582
- "projection_status": WorkflowProjectionStatus;
1583
- "nodes": WorkflowGraphNode[];
1584
- "edges": WorkflowGraphEdge[];
1585
- "statistics": WorkflowGraphStatistics;
1586
- "journal_sequence": WorkflowJournalPosition;
1587
- "next_node_cursor"?: WorkflowNodeCursor;
1588
- "next_edge_cursor"?: WorkflowEdgeCursor;
1589
- "has_more_nodes": boolean;
1590
- "has_more_edges": boolean;
1591
- "total_node_count": number;
1592
- "total_edge_count": number;
1593
- }
1594
- export interface WorkflowContent {
1595
- "content_ref": WorkflowContentRef;
1596
- "content_type": string;
1597
- "encoding": WorkflowContentEncoding;
1598
- "content": string;
1599
- "size_bytes": number;
1600
- }
1601
- export interface WorkflowControlRequest {
1602
- "action": WorkflowControlAction;
1603
- "idempotency_key": string;
1604
- "input"?: string;
1605
- }
1606
- export interface WorkflowControlCommand {
1607
- "command_id": WorkflowCommandId;
1608
- "run_id": WorkflowRunId;
1609
- "action": WorkflowControlAction;
1610
- "status": WorkflowControlStatus;
1611
- "idempotency_key": string;
1612
- "input"?: string;
1613
- "requested_at": string;
1614
- "updated_at": string;
1615
- "command_sequence": string;
1616
- "error"?: string;
1617
- }
1618
- export interface WorkflowControlCommandPage {
1619
- "commands": WorkflowControlCommand[];
1620
- "next_sequence": string;
1621
- }
1622
- export interface WorkflowControlStatusUpdateRequest {
1623
- "status": WorkflowControlStatus;
1624
- "error"?: string;
1625
- "occurred_at"?: string;
1626
- }
1627
- export interface WorkflowHeartbeatEvent {
1628
- "type": "heartbeat";
1629
- "high_water_mark": WorkflowJournalPosition;
1630
- "timestamp": string;
1631
- }
1632
- export interface WorkflowCursorGapEvent {
1633
- "type": "cursor_gap";
1634
- "oldest_available_sequence": WorkflowJournalPosition;
1635
- "high_water_mark": WorkflowJournalPosition;
1636
- "timestamp": string;
1637
- }
1638
- export interface WorkflowCursorError extends ProblemDetails {
1639
- "title": "Invalid Workflow Cursor";
1640
- "cursor_kind": WorkflowCursorKind;
1641
- "reason": WorkflowCursorFailureReason;
1642
- "current_generation"?: WorkflowGeneration;
1643
- }
1644
- export interface WorkflowRunDeletedError extends ProblemDetails {
1645
- "title": "Workflow Run Deleted";
1646
- "run_id": WorkflowRunId;
1647
- }
1648
- export interface WorkflowProjectionUnavailableError extends ProblemDetails {
1649
- "title": "Workflow Projection Unavailable";
1650
- "projection_status": WorkflowProjectionStatus;
1651
- }
1652
- export interface WorkflowProjectionCorruptError extends ProblemDetails {
1653
- "title": "Workflow Projection Corrupt";
1654
- "projection_status": WorkflowProjectionStatus;
1655
- }
1656
- export interface AgentDiagnosticVariableBase {
1657
- "name": AgentDiagnosticVariableName;
1658
- "type": AgentDiagnosticValueType;
1659
- "classification": AgentDiagnosticClassification;
1660
- }
1661
- export interface CapturedAgentDiagnosticVariable extends AgentDiagnosticVariableBase {
1662
- "capture": "value";
1663
- "value": unknown | null;
1664
- }
1665
- export interface RedactedAgentDiagnosticVariable extends AgentDiagnosticVariableBase {
1666
- "capture": "redacted";
1667
- }
1668
- export interface OmittedAgentDiagnosticVariable extends AgentDiagnosticVariableBase {
1669
- "capture": "omitted";
1670
- }
1671
- export interface AgentDiagnosticCheckResult {
1672
- "check_id": AgentDiagnosticCheckId;
1673
- "operator": AgentDiagnosticOperator;
1674
- "actual": AgentDiagnosticVariableName;
1675
- "expected"?: AgentDiagnosticVariableName;
1676
- "expected_type"?: AgentDiagnosticValueType;
1677
- "outcome": AgentDiagnosticCheckOutcome;
1678
- }
1679
- export interface AgentDiagnosticSnapshot {
1680
- "extension_id": AgentDiagnosticExtensionId;
1681
- "format_version": number;
1682
- "snapshot_id": AgentDiagnosticSnapshotId;
1683
- "capture_nonce": string;
1684
- "probe_id": AgentDiagnosticProbeId;
1685
- "phase": AgentDiagnosticPhase;
1686
- "variables": AgentDiagnosticVariable[];
1687
- "checks": AgentDiagnosticCheckResult[];
1688
- "outcome": AgentDiagnosticOutcome;
1689
- }
1690
- export interface AgentDiagnosticSnapshotSummary {
1691
- "extension_id": AgentDiagnosticExtensionId;
1692
- "format_version": number;
1693
- "snapshot_id": AgentDiagnosticSnapshotId;
1694
- "probe_id": AgentDiagnosticProbeId;
1695
- "phase": AgentDiagnosticPhase;
1696
- "outcome": AgentDiagnosticOutcome;
1697
- "variable_count": number;
1698
- "check_count": number;
1699
- "failed_check_count": number;
1700
- "content_ref": WorkflowContentRef;
1701
- }
1702
1293
  export interface DisplayTracesInput {
1703
1294
  "trace_id"?: TraceId;
1704
1295
  "session_id"?: SessionId;
@@ -1828,112 +1419,6 @@ export interface FetchTelemetryOutput {
1828
1419
  "stats"?: McpDashboardStats;
1829
1420
  "mode": McpDataMode;
1830
1421
  }
1831
- export interface GetActiveWorkflowRunInput {
1832
- }
1833
- export interface GetActiveWorkflowRunOutput {
1834
- "active": boolean;
1835
- "live_controls_available": boolean;
1836
- "run_id"?: WorkflowRunId;
1837
- "thread_id"?: string;
1838
- "started_at"?: string;
1839
- }
1840
- export interface RecordDiagnosticSnapshotVariableInput {
1841
- "name": AgentDiagnosticVariableName;
1842
- "classification": AgentDiagnosticClassification;
1843
- "value": unknown | null;
1844
- }
1845
- export interface RecordDiagnosticSnapshotCheckInput {
1846
- "check_id": AgentDiagnosticCheckId;
1847
- "operator": AgentDiagnosticOperator;
1848
- "actual": AgentDiagnosticVariableName;
1849
- "expected"?: AgentDiagnosticVariableName;
1850
- "expected_type"?: AgentDiagnosticValueType;
1851
- }
1852
- export interface RecordDiagnosticSnapshotInput {
1853
- "snapshot_id": AgentDiagnosticSnapshotId;
1854
- "probe_id": AgentDiagnosticProbeId;
1855
- "phase": AgentDiagnosticPhase;
1856
- "variables": RecordDiagnosticSnapshotVariableInput[];
1857
- "checks"?: RecordDiagnosticSnapshotCheckInput[];
1858
- }
1859
- export interface RecordDiagnosticSnapshotOutput {
1860
- "recorded": boolean;
1861
- "code": string;
1862
- "snapshot_id": AgentDiagnosticSnapshotId;
1863
- "event_id"?: WorkflowEventId;
1864
- "field"?: string;
1865
- }
1866
- export interface ListWorkflowRunsInput {
1867
- "status"?: WorkflowRunStatus;
1868
- "cursor"?: WorkflowRunCursor;
1869
- "limit"?: number;
1870
- }
1871
- export interface ListWorkflowRunsOutput {
1872
- "runs": WorkflowRun[];
1873
- "next_cursor"?: WorkflowRunCursor;
1874
- "has_more": boolean;
1875
- "mode": McpDataMode;
1876
- }
1877
- export interface GetWorkflowGraphInput {
1878
- "run_id": WorkflowRunId;
1879
- "node_cursor"?: WorkflowNodeCursor;
1880
- "node_limit"?: number;
1881
- "edge_cursor"?: WorkflowEdgeCursor;
1882
- "edge_limit"?: number;
1883
- }
1884
- export interface GetWorkflowGraphOutput {
1885
- "graph": WorkflowGraphSnapshot;
1886
- "mode": McpDataMode;
1887
- }
1888
- export interface DisplayWorkflowGraphInput {
1889
- "run_id"?: WorkflowRunId;
1890
- "node_cursor"?: WorkflowNodeCursor;
1891
- "node_limit"?: number;
1892
- "edge_cursor"?: WorkflowEdgeCursor;
1893
- "edge_limit"?: number;
1894
- }
1895
- export interface DisplayWorkflowGraphOutput {
1896
- "graph": WorkflowGraphSnapshot;
1897
- "live_controls_available": boolean;
1898
- "mode": McpDataMode;
1899
- }
1900
- export interface FetchWorkflowGraphUpdatesInput {
1901
- "run_id": WorkflowRunId;
1902
- "after_sequence": WorkflowJournalPosition;
1903
- "limit"?: number;
1904
- "wait_ms"?: number;
1905
- "node_cursor"?: WorkflowNodeCursor;
1906
- "node_limit"?: number;
1907
- "edge_cursor"?: WorkflowEdgeCursor;
1908
- "edge_limit"?: number;
1909
- "content_ref"?: WorkflowContentRef;
1910
- }
1911
- export interface FetchWorkflowGraphUpdatesOutput {
1912
- "page": WorkflowEventPage;
1913
- "graph"?: WorkflowGraphSnapshot;
1914
- "content"?: WorkflowContent;
1915
- "mode": McpDataMode;
1916
- }
1917
- export interface InspectWorkflowEventsInput {
1918
- "run_id": WorkflowRunId;
1919
- "after_sequence": WorkflowJournalPosition;
1920
- "limit"?: number;
1921
- "content_ref"?: WorkflowContentRef;
1922
- }
1923
- export interface InspectWorkflowEventsOutput {
1924
- "page": WorkflowEventPage;
1925
- "content"?: WorkflowContent;
1926
- "mode": McpDataMode;
1927
- }
1928
- export interface ControlWorkflowRunInput {
1929
- "run_id": WorkflowRunId;
1930
- "action": WorkflowControlAction;
1931
- "idempotency_key": string;
1932
- "input"?: string;
1933
- }
1934
- export interface ControlWorkflowRunOutput {
1935
- "command": WorkflowControlCommand;
1936
- }
1937
1422
  export interface LogStreamEvent {
1938
1423
  "type": "log";
1939
1424
  "data": LogRecord;
@@ -1961,6 +1446,18 @@ export interface CursorPageLogRecord {
1961
1446
  "prev_cursor"?: string;
1962
1447
  "has_more": boolean;
1963
1448
  }
1449
+ export interface CursorPageMetricDescriptor {
1450
+ "items": MetricDescriptor[];
1451
+ "next_cursor"?: string;
1452
+ "prev_cursor"?: string;
1453
+ "has_more": boolean;
1454
+ }
1455
+ export interface CursorPageMetricSeries {
1456
+ "items": MetricSeries[];
1457
+ "next_cursor"?: string;
1458
+ "prev_cursor"?: string;
1459
+ "has_more": boolean;
1460
+ }
1964
1461
  export interface CursorPageSessionEntity {
1965
1462
  "items": SessionEntity[];
1966
1463
  "next_cursor"?: string;