@ancplua/qyl-api-schema 8.0.0 → 10.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.
- package/README.md +9 -12
- package/common/types.tsp +1 -3
- package/generated/json-schema/qyl-api-schema.json +77 -2494
- package/generated/openapi/qyl.openapi.json +6157 -10875
- package/generated/ts-runtime/api.d.ts +0 -581
- package/generated/ts-runtime/api.js +1 -149
- package/index.tsp +0 -5
- package/models/mcp-tools.tsp +0 -256
- package/package.json +3 -12
- package/api/workflow.tsp +0 -307
- package/generated/otel-keys.gen.tsp +0 -2227
- package/models/diagnostics.tsp +0 -204
- package/models/workflow.tsp +0 -629
|
@@ -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: {
|
|
@@ -431,173 +377,6 @@ export declare const WorkbenchTransportKindValues: {
|
|
|
431
377
|
readonly builtin: "builtin";
|
|
432
378
|
};
|
|
433
379
|
export type WorkbenchTransportKind = typeof WorkbenchTransportKindValues[keyof typeof WorkbenchTransportKindValues];
|
|
434
|
-
export declare const WorkflowRunStatusValues: {
|
|
435
|
-
readonly active: "active";
|
|
436
|
-
readonly completed: "completed";
|
|
437
|
-
readonly failed: "failed";
|
|
438
|
-
readonly interrupted: "interrupted";
|
|
439
|
-
};
|
|
440
|
-
export type WorkflowRunStatus = typeof WorkflowRunStatusValues[keyof typeof WorkflowRunStatusValues];
|
|
441
|
-
export declare const WorkflowContentEncodingValues: {
|
|
442
|
-
readonly utf8: "utf8";
|
|
443
|
-
readonly base64: "base64";
|
|
444
|
-
};
|
|
445
|
-
export type WorkflowContentEncoding = typeof WorkflowContentEncodingValues[keyof typeof WorkflowContentEncodingValues];
|
|
446
|
-
export declare const WorkflowJournalEventKindValues: {
|
|
447
|
-
readonly runCreated: "run_created";
|
|
448
|
-
readonly runCompleted: "run_completed";
|
|
449
|
-
readonly threadStarted: "thread_started";
|
|
450
|
-
readonly threadResumed: "thread_resumed";
|
|
451
|
-
readonly turnStarted: "turn_started";
|
|
452
|
-
readonly turnCompleted: "turn_completed";
|
|
453
|
-
readonly turnInterrupted: "turn_interrupted";
|
|
454
|
-
readonly attemptStarted: "attempt_started";
|
|
455
|
-
readonly attemptCompleted: "attempt_completed";
|
|
456
|
-
readonly agentSpawned: "agent_spawned";
|
|
457
|
-
readonly agentStarted: "agent_started";
|
|
458
|
-
readonly agentCompleted: "agent_completed";
|
|
459
|
-
readonly messageSent: "message_sent";
|
|
460
|
-
readonly messageReceived: "message_received";
|
|
461
|
-
readonly waitStarted: "wait_started";
|
|
462
|
-
readonly waitCompleted: "wait_completed";
|
|
463
|
-
readonly joined: "joined";
|
|
464
|
-
readonly itemStarted: "item_started";
|
|
465
|
-
readonly itemCompleted: "item_completed";
|
|
466
|
-
readonly toolStarted: "tool_started";
|
|
467
|
-
readonly toolCompleted: "tool_completed";
|
|
468
|
-
readonly approvalRequested: "approval_requested";
|
|
469
|
-
readonly approvalResolved: "approval_resolved";
|
|
470
|
-
readonly contentCaptured: "content_captured";
|
|
471
|
-
readonly fileWritten: "file_written";
|
|
472
|
-
readonly controlRequested: "control_requested";
|
|
473
|
-
readonly controlAccepted: "control_accepted";
|
|
474
|
-
readonly controlApplied: "control_applied";
|
|
475
|
-
readonly controlRejected: "control_rejected";
|
|
476
|
-
readonly controlFailed: "control_failed";
|
|
477
|
-
};
|
|
478
|
-
export type WorkflowJournalEventKind = typeof WorkflowJournalEventKindValues[keyof typeof WorkflowJournalEventKindValues];
|
|
479
|
-
export declare const WorkflowNodeKindValues: {
|
|
480
|
-
readonly run: "run";
|
|
481
|
-
readonly attempt: "attempt";
|
|
482
|
-
readonly turn: "turn";
|
|
483
|
-
readonly agent: "agent";
|
|
484
|
-
readonly toolCall: "tool_call";
|
|
485
|
-
readonly message: "message";
|
|
486
|
-
readonly wait: "wait";
|
|
487
|
-
readonly gate: "gate";
|
|
488
|
-
readonly resource: "resource";
|
|
489
|
-
};
|
|
490
|
-
export type WorkflowNodeKind = typeof WorkflowNodeKindValues[keyof typeof WorkflowNodeKindValues];
|
|
491
|
-
export declare const WorkflowEdgeKindValues: {
|
|
492
|
-
readonly data: "data";
|
|
493
|
-
readonly control: "control";
|
|
494
|
-
readonly conflict: "conflict";
|
|
495
|
-
readonly resource: "resource";
|
|
496
|
-
readonly gate: "gate";
|
|
497
|
-
readonly temporal: "temporal";
|
|
498
|
-
};
|
|
499
|
-
export type WorkflowEdgeKind = typeof WorkflowEdgeKindValues[keyof typeof WorkflowEdgeKindValues];
|
|
500
|
-
export declare const WorkflowControlActionValues: {
|
|
501
|
-
readonly steer: "steer";
|
|
502
|
-
readonly interrupt: "interrupt";
|
|
503
|
-
readonly resume: "resume";
|
|
504
|
-
};
|
|
505
|
-
export type WorkflowControlAction = typeof WorkflowControlActionValues[keyof typeof WorkflowControlActionValues];
|
|
506
|
-
export declare const WorkflowControlStatusValues: {
|
|
507
|
-
readonly requested: "requested";
|
|
508
|
-
readonly accepted: "accepted";
|
|
509
|
-
readonly applied: "applied";
|
|
510
|
-
readonly rejected: "rejected";
|
|
511
|
-
readonly failed: "failed";
|
|
512
|
-
};
|
|
513
|
-
export type WorkflowControlStatus = typeof WorkflowControlStatusValues[keyof typeof WorkflowControlStatusValues];
|
|
514
|
-
export declare const WorkflowCursorKindValues: {
|
|
515
|
-
readonly node: "node";
|
|
516
|
-
readonly edge: "edge";
|
|
517
|
-
};
|
|
518
|
-
export type WorkflowCursorKind = typeof WorkflowCursorKindValues[keyof typeof WorkflowCursorKindValues];
|
|
519
|
-
export declare const WorkflowCursorFailureReasonValues: {
|
|
520
|
-
readonly invalid: "invalid";
|
|
521
|
-
readonly wrongRun: "wrong_run";
|
|
522
|
-
readonly wrongGeneration: "wrong_generation";
|
|
523
|
-
readonly stale: "stale";
|
|
524
|
-
};
|
|
525
|
-
export type WorkflowCursorFailureReason = typeof WorkflowCursorFailureReasonValues[keyof typeof WorkflowCursorFailureReasonValues];
|
|
526
|
-
export declare const WorkflowAttemptStatusValues: {
|
|
527
|
-
readonly pending: "pending";
|
|
528
|
-
readonly running: "running";
|
|
529
|
-
readonly succeeded: "succeeded";
|
|
530
|
-
readonly failed: "failed";
|
|
531
|
-
readonly interrupted: "interrupted";
|
|
532
|
-
};
|
|
533
|
-
export type WorkflowAttemptStatus = typeof WorkflowAttemptStatusValues[keyof typeof WorkflowAttemptStatusValues];
|
|
534
|
-
export declare const WorkflowAgentStatusValues: {
|
|
535
|
-
readonly pending: "pending";
|
|
536
|
-
readonly running: "running";
|
|
537
|
-
readonly waiting: "waiting";
|
|
538
|
-
readonly succeeded: "succeeded";
|
|
539
|
-
readonly failed: "failed";
|
|
540
|
-
readonly interrupted: "interrupted";
|
|
541
|
-
};
|
|
542
|
-
export type WorkflowAgentStatus = typeof WorkflowAgentStatusValues[keyof typeof WorkflowAgentStatusValues];
|
|
543
|
-
export declare const WorkflowToolCallStatusValues: {
|
|
544
|
-
readonly requested: "requested";
|
|
545
|
-
readonly running: "running";
|
|
546
|
-
readonly succeeded: "succeeded";
|
|
547
|
-
readonly failed: "failed";
|
|
548
|
-
readonly rejected: "rejected";
|
|
549
|
-
};
|
|
550
|
-
export type WorkflowToolCallStatus = typeof WorkflowToolCallStatusValues[keyof typeof WorkflowToolCallStatusValues];
|
|
551
|
-
export declare const AgentDiagnosticValueTypeValues: {
|
|
552
|
-
readonly null: "null";
|
|
553
|
-
readonly boolean: "boolean";
|
|
554
|
-
readonly integer: "integer";
|
|
555
|
-
readonly number: "number";
|
|
556
|
-
readonly string: "string";
|
|
557
|
-
readonly json: "json";
|
|
558
|
-
};
|
|
559
|
-
export type AgentDiagnosticValueType = typeof AgentDiagnosticValueTypeValues[keyof typeof AgentDiagnosticValueTypeValues];
|
|
560
|
-
export declare const AgentDiagnosticClassificationValues: {
|
|
561
|
-
readonly public: "public";
|
|
562
|
-
readonly internal: "internal";
|
|
563
|
-
readonly sensitive: "sensitive";
|
|
564
|
-
readonly secret: "secret";
|
|
565
|
-
};
|
|
566
|
-
export type AgentDiagnosticClassification = typeof AgentDiagnosticClassificationValues[keyof typeof AgentDiagnosticClassificationValues];
|
|
567
|
-
export declare const AgentDiagnosticOperatorValues: {
|
|
568
|
-
readonly equal: "equal";
|
|
569
|
-
readonly notEqual: "not_equal";
|
|
570
|
-
readonly exists: "exists";
|
|
571
|
-
readonly typeIs: "type_is";
|
|
572
|
-
readonly contains: "contains";
|
|
573
|
-
readonly lessThan: "less_than";
|
|
574
|
-
readonly greaterThan: "greater_than";
|
|
575
|
-
};
|
|
576
|
-
export type AgentDiagnosticOperator = typeof AgentDiagnosticOperatorValues[keyof typeof AgentDiagnosticOperatorValues];
|
|
577
|
-
export declare const AgentDiagnosticCheckOutcomeValues: {
|
|
578
|
-
readonly pass: "pass";
|
|
579
|
-
readonly fail: "fail";
|
|
580
|
-
readonly unknownResult: "unknown";
|
|
581
|
-
};
|
|
582
|
-
export type AgentDiagnosticCheckOutcome = typeof AgentDiagnosticCheckOutcomeValues[keyof typeof AgentDiagnosticCheckOutcomeValues];
|
|
583
|
-
export declare const AgentDiagnosticExtensionIdValues: {
|
|
584
|
-
readonly snapshot: "qyl.agent.diagnostic.snapshot";
|
|
585
|
-
};
|
|
586
|
-
export type AgentDiagnosticExtensionId = typeof AgentDiagnosticExtensionIdValues[keyof typeof AgentDiagnosticExtensionIdValues];
|
|
587
|
-
export declare const AgentDiagnosticPhaseValues: {
|
|
588
|
-
readonly input: "input";
|
|
589
|
-
readonly output: "output";
|
|
590
|
-
readonly error: "error";
|
|
591
|
-
readonly checkpoint: "checkpoint";
|
|
592
|
-
};
|
|
593
|
-
export type AgentDiagnosticPhase = typeof AgentDiagnosticPhaseValues[keyof typeof AgentDiagnosticPhaseValues];
|
|
594
|
-
export declare const AgentDiagnosticOutcomeValues: {
|
|
595
|
-
readonly pass: "pass";
|
|
596
|
-
readonly fail: "fail";
|
|
597
|
-
readonly unknownResult: "unknown";
|
|
598
|
-
readonly notEvaluated: "not_evaluated";
|
|
599
|
-
};
|
|
600
|
-
export type AgentDiagnosticOutcome = typeof AgentDiagnosticOutcomeValues[keyof typeof AgentDiagnosticOutcomeValues];
|
|
601
380
|
export declare const McpDataModeValues: {
|
|
602
381
|
readonly live: "live";
|
|
603
382
|
readonly demo: "demo";
|
|
@@ -627,10 +406,6 @@ export type WorkbenchTestAssertion = WorkbenchStatusAssertion | WorkbenchExactAs
|
|
|
627
406
|
export type WorkbenchEvaluationExportPayload = WorkbenchEvaluationJsonExportPayload | WorkbenchEvaluationReportExportPayload;
|
|
628
407
|
export type WorkbenchProtocolEvents = WorkbenchProtocolEvent;
|
|
629
408
|
export type WorkbenchExecutionUpdateEvents = WorkbenchExecutionRecord;
|
|
630
|
-
export type WorkflowEdgeProvenance = RecordedWorkflowEdgeProvenance | DerivedWorkflowEdgeProvenance;
|
|
631
|
-
export type WorkflowProjectionStatus = CommittedWorkflowProjectionStatus | RebuildingWorkflowProjectionStatus | UnavailableWorkflowProjectionStatus | CorruptWorkflowProjectionStatus;
|
|
632
|
-
export type WorkflowStreamEvents = WorkflowJournalEvent | WorkflowHeartbeatEvent | WorkflowCursorGapEvent;
|
|
633
|
-
export type AgentDiagnosticVariable = CapturedAgentDiagnosticVariable | RedactedAgentDiagnosticVariable | OmittedAgentDiagnosticVariable;
|
|
634
409
|
export type LogEvents = LogStreamEvent | HeartbeatEvent;
|
|
635
410
|
export interface AttributeBytesValue {
|
|
636
411
|
"type": "bytes";
|
|
@@ -1515,256 +1290,6 @@ export interface WorkbenchEvaluationExportArtifact {
|
|
|
1515
1290
|
export interface WorkbenchEvaluationExportAccepted {
|
|
1516
1291
|
"export": WorkbenchEvaluationExport;
|
|
1517
1292
|
}
|
|
1518
|
-
export interface CommittedWorkflowProjectionStatus {
|
|
1519
|
-
"state": "committed";
|
|
1520
|
-
"generation": WorkflowGeneration;
|
|
1521
|
-
"journal_position": WorkflowJournalPosition;
|
|
1522
|
-
}
|
|
1523
|
-
export interface RebuildingWorkflowProjectionStatus {
|
|
1524
|
-
"state": "rebuilding";
|
|
1525
|
-
"generation": WorkflowGeneration;
|
|
1526
|
-
"target_journal_position": WorkflowJournalPosition;
|
|
1527
|
-
"retry_after_ms": number;
|
|
1528
|
-
}
|
|
1529
|
-
export interface UnavailableWorkflowProjectionStatus {
|
|
1530
|
-
"state": "unavailable";
|
|
1531
|
-
"generation"?: WorkflowGeneration;
|
|
1532
|
-
"retry_after_ms": number;
|
|
1533
|
-
}
|
|
1534
|
-
export interface CorruptWorkflowProjectionStatus {
|
|
1535
|
-
"state": "corrupt";
|
|
1536
|
-
"generation"?: WorkflowGeneration;
|
|
1537
|
-
"reason": "corrupt_derived_state" | "incompatible_derived_state";
|
|
1538
|
-
}
|
|
1539
|
-
export interface WorkflowRun {
|
|
1540
|
-
"run_id": WorkflowRunId;
|
|
1541
|
-
"generation": WorkflowGeneration;
|
|
1542
|
-
"thread_id"?: string;
|
|
1543
|
-
"title"?: string;
|
|
1544
|
-
"status": WorkflowRunStatus;
|
|
1545
|
-
"started_at": string;
|
|
1546
|
-
"ended_at"?: string;
|
|
1547
|
-
"latest_journal_sequence": WorkflowJournalPosition;
|
|
1548
|
-
"active_attempt_id"?: WorkflowAttemptId;
|
|
1549
|
-
"metadata"?: Record<string, unknown>;
|
|
1550
|
-
}
|
|
1551
|
-
export interface WorkflowRunCreateRequest {
|
|
1552
|
-
"run_id": WorkflowRunId;
|
|
1553
|
-
"thread_id"?: string;
|
|
1554
|
-
"title"?: string;
|
|
1555
|
-
"started_at": string;
|
|
1556
|
-
"metadata"?: Record<string, unknown>;
|
|
1557
|
-
}
|
|
1558
|
-
export interface WorkflowRunPage {
|
|
1559
|
-
"items": WorkflowRun[];
|
|
1560
|
-
"next_cursor"?: WorkflowRunCursor;
|
|
1561
|
-
"has_more": boolean;
|
|
1562
|
-
}
|
|
1563
|
-
export interface WorkflowContentChunk {
|
|
1564
|
-
"content_ref": WorkflowContentRef;
|
|
1565
|
-
"content_type": string;
|
|
1566
|
-
"encoding": WorkflowContentEncoding;
|
|
1567
|
-
"content": string;
|
|
1568
|
-
}
|
|
1569
|
-
export interface WorkflowEventAppend {
|
|
1570
|
-
"event_id": WorkflowEventId;
|
|
1571
|
-
"source_sequence": string;
|
|
1572
|
-
"timestamp": string;
|
|
1573
|
-
"kind": WorkflowJournalEventKind;
|
|
1574
|
-
"thread_id"?: string;
|
|
1575
|
-
"turn_id"?: string;
|
|
1576
|
-
"attempt_id"?: WorkflowAttemptId;
|
|
1577
|
-
"agent_id"?: WorkflowAgentId;
|
|
1578
|
-
"parent_agent_id"?: WorkflowAgentId;
|
|
1579
|
-
"receiver_agent_id"?: WorkflowAgentId;
|
|
1580
|
-
"tool_call_id"?: WorkflowToolCallId;
|
|
1581
|
-
"content_refs"?: WorkflowContentRef[];
|
|
1582
|
-
"data"?: Record<string, unknown>;
|
|
1583
|
-
}
|
|
1584
|
-
export interface WorkflowEventBatchAppendRequest {
|
|
1585
|
-
"client_id": string;
|
|
1586
|
-
"events": WorkflowEventAppend[];
|
|
1587
|
-
"content"?: WorkflowContentChunk[];
|
|
1588
|
-
}
|
|
1589
|
-
export interface WorkflowEventBatchAppendResponse {
|
|
1590
|
-
"accepted_count": number;
|
|
1591
|
-
"duplicate_count": number;
|
|
1592
|
-
"acknowledged_source_sequence": string;
|
|
1593
|
-
"first_journal_sequence"?: WorkflowJournalPosition;
|
|
1594
|
-
"last_journal_sequence"?: WorkflowJournalPosition;
|
|
1595
|
-
}
|
|
1596
|
-
export interface WorkflowJournalEvent extends WorkflowEventAppend {
|
|
1597
|
-
"run_id": WorkflowRunId;
|
|
1598
|
-
"client_id": string;
|
|
1599
|
-
"journal_sequence": WorkflowJournalPosition;
|
|
1600
|
-
}
|
|
1601
|
-
export interface WorkflowEventPage {
|
|
1602
|
-
"events": WorkflowJournalEvent[];
|
|
1603
|
-
"next_sequence": WorkflowJournalPosition;
|
|
1604
|
-
"high_water_mark": WorkflowJournalPosition;
|
|
1605
|
-
"cursor_gap": boolean;
|
|
1606
|
-
}
|
|
1607
|
-
export interface RecordedWorkflowEdgeProvenance {
|
|
1608
|
-
"type": "recorded";
|
|
1609
|
-
"event_ids": WorkflowEventId[];
|
|
1610
|
-
}
|
|
1611
|
-
export interface DerivedWorkflowEdgeProvenance {
|
|
1612
|
-
"type": "derived";
|
|
1613
|
-
"event_ids": WorkflowEventId[];
|
|
1614
|
-
"evidence": string;
|
|
1615
|
-
"confidence": number;
|
|
1616
|
-
}
|
|
1617
|
-
export interface WorkflowGraphNode {
|
|
1618
|
-
"node_id": WorkflowNodeId;
|
|
1619
|
-
"kind": WorkflowNodeKind;
|
|
1620
|
-
"label": string;
|
|
1621
|
-
"status": string;
|
|
1622
|
-
"attempt_id"?: WorkflowAttemptId;
|
|
1623
|
-
"agent_id"?: WorkflowAgentId;
|
|
1624
|
-
"started_at"?: string;
|
|
1625
|
-
"ended_at"?: string;
|
|
1626
|
-
"duration_ms"?: number;
|
|
1627
|
-
"content_refs"?: WorkflowContentRef[];
|
|
1628
|
-
"attributes"?: Record<string, unknown>;
|
|
1629
|
-
}
|
|
1630
|
-
export interface WorkflowGraphEdge {
|
|
1631
|
-
"edge_id": WorkflowEdgeId;
|
|
1632
|
-
"source_node_id": WorkflowNodeId;
|
|
1633
|
-
"target_node_id": WorkflowNodeId;
|
|
1634
|
-
"kind": WorkflowEdgeKind;
|
|
1635
|
-
"provenance": WorkflowEdgeProvenance;
|
|
1636
|
-
}
|
|
1637
|
-
export interface WorkflowGraphStatistics {
|
|
1638
|
-
"t1_ms": number;
|
|
1639
|
-
"t_infinity_ms": number;
|
|
1640
|
-
"wall_time_ms": number;
|
|
1641
|
-
"peak_concurrency": number;
|
|
1642
|
-
"worker_count": number;
|
|
1643
|
-
"parallel_lower_bound_ms": number;
|
|
1644
|
-
"critical_path_node_ids": WorkflowNodeId[];
|
|
1645
|
-
}
|
|
1646
|
-
export interface WorkflowGraphSnapshot {
|
|
1647
|
-
"run": WorkflowRun;
|
|
1648
|
-
"projection_status": WorkflowProjectionStatus;
|
|
1649
|
-
"nodes": WorkflowGraphNode[];
|
|
1650
|
-
"edges": WorkflowGraphEdge[];
|
|
1651
|
-
"statistics": WorkflowGraphStatistics;
|
|
1652
|
-
"journal_sequence": WorkflowJournalPosition;
|
|
1653
|
-
"next_node_cursor"?: WorkflowNodeCursor;
|
|
1654
|
-
"next_edge_cursor"?: WorkflowEdgeCursor;
|
|
1655
|
-
"has_more_nodes": boolean;
|
|
1656
|
-
"has_more_edges": boolean;
|
|
1657
|
-
"total_node_count": number;
|
|
1658
|
-
"total_edge_count": number;
|
|
1659
|
-
}
|
|
1660
|
-
export interface WorkflowContent {
|
|
1661
|
-
"content_ref": WorkflowContentRef;
|
|
1662
|
-
"content_type": string;
|
|
1663
|
-
"encoding": WorkflowContentEncoding;
|
|
1664
|
-
"content": string;
|
|
1665
|
-
"size_bytes": number;
|
|
1666
|
-
}
|
|
1667
|
-
export interface WorkflowControlRequest {
|
|
1668
|
-
"action": WorkflowControlAction;
|
|
1669
|
-
"idempotency_key": string;
|
|
1670
|
-
"input"?: string;
|
|
1671
|
-
}
|
|
1672
|
-
export interface WorkflowControlCommand {
|
|
1673
|
-
"command_id": WorkflowCommandId;
|
|
1674
|
-
"run_id": WorkflowRunId;
|
|
1675
|
-
"action": WorkflowControlAction;
|
|
1676
|
-
"status": WorkflowControlStatus;
|
|
1677
|
-
"idempotency_key": string;
|
|
1678
|
-
"input"?: string;
|
|
1679
|
-
"requested_at": string;
|
|
1680
|
-
"updated_at": string;
|
|
1681
|
-
"command_sequence": string;
|
|
1682
|
-
"error"?: string;
|
|
1683
|
-
}
|
|
1684
|
-
export interface WorkflowControlCommandPage {
|
|
1685
|
-
"commands": WorkflowControlCommand[];
|
|
1686
|
-
"next_sequence": string;
|
|
1687
|
-
}
|
|
1688
|
-
export interface WorkflowControlStatusUpdateRequest {
|
|
1689
|
-
"status": WorkflowControlStatus;
|
|
1690
|
-
"error"?: string;
|
|
1691
|
-
"occurred_at"?: string;
|
|
1692
|
-
}
|
|
1693
|
-
export interface WorkflowHeartbeatEvent {
|
|
1694
|
-
"type": "heartbeat";
|
|
1695
|
-
"high_water_mark": WorkflowJournalPosition;
|
|
1696
|
-
"timestamp": string;
|
|
1697
|
-
}
|
|
1698
|
-
export interface WorkflowCursorGapEvent {
|
|
1699
|
-
"type": "cursor_gap";
|
|
1700
|
-
"oldest_available_sequence": WorkflowJournalPosition;
|
|
1701
|
-
"high_water_mark": WorkflowJournalPosition;
|
|
1702
|
-
"timestamp": string;
|
|
1703
|
-
}
|
|
1704
|
-
export interface WorkflowCursorError extends ProblemDetails {
|
|
1705
|
-
"title": "Invalid Workflow Cursor";
|
|
1706
|
-
"cursor_kind": WorkflowCursorKind;
|
|
1707
|
-
"reason": WorkflowCursorFailureReason;
|
|
1708
|
-
"current_generation"?: WorkflowGeneration;
|
|
1709
|
-
}
|
|
1710
|
-
export interface WorkflowRunDeletedError extends ProblemDetails {
|
|
1711
|
-
"title": "Workflow Run Deleted";
|
|
1712
|
-
"run_id": WorkflowRunId;
|
|
1713
|
-
}
|
|
1714
|
-
export interface WorkflowProjectionUnavailableError extends ProblemDetails {
|
|
1715
|
-
"title": "Workflow Projection Unavailable";
|
|
1716
|
-
"projection_status": WorkflowProjectionStatus;
|
|
1717
|
-
}
|
|
1718
|
-
export interface WorkflowProjectionCorruptError extends ProblemDetails {
|
|
1719
|
-
"title": "Workflow Projection Corrupt";
|
|
1720
|
-
"projection_status": WorkflowProjectionStatus;
|
|
1721
|
-
}
|
|
1722
|
-
export interface AgentDiagnosticVariableBase {
|
|
1723
|
-
"name": AgentDiagnosticVariableName;
|
|
1724
|
-
"type": AgentDiagnosticValueType;
|
|
1725
|
-
"classification": AgentDiagnosticClassification;
|
|
1726
|
-
}
|
|
1727
|
-
export interface CapturedAgentDiagnosticVariable extends AgentDiagnosticVariableBase {
|
|
1728
|
-
"capture": "value";
|
|
1729
|
-
"value": unknown | null;
|
|
1730
|
-
}
|
|
1731
|
-
export interface RedactedAgentDiagnosticVariable extends AgentDiagnosticVariableBase {
|
|
1732
|
-
"capture": "redacted";
|
|
1733
|
-
}
|
|
1734
|
-
export interface OmittedAgentDiagnosticVariable extends AgentDiagnosticVariableBase {
|
|
1735
|
-
"capture": "omitted";
|
|
1736
|
-
}
|
|
1737
|
-
export interface AgentDiagnosticCheckResult {
|
|
1738
|
-
"check_id": AgentDiagnosticCheckId;
|
|
1739
|
-
"operator": AgentDiagnosticOperator;
|
|
1740
|
-
"actual": AgentDiagnosticVariableName;
|
|
1741
|
-
"expected"?: AgentDiagnosticVariableName;
|
|
1742
|
-
"expected_type"?: AgentDiagnosticValueType;
|
|
1743
|
-
"outcome": AgentDiagnosticCheckOutcome;
|
|
1744
|
-
}
|
|
1745
|
-
export interface AgentDiagnosticSnapshot {
|
|
1746
|
-
"extension_id": AgentDiagnosticExtensionId;
|
|
1747
|
-
"format_version": number;
|
|
1748
|
-
"snapshot_id": AgentDiagnosticSnapshotId;
|
|
1749
|
-
"capture_nonce": string;
|
|
1750
|
-
"probe_id": AgentDiagnosticProbeId;
|
|
1751
|
-
"phase": AgentDiagnosticPhase;
|
|
1752
|
-
"variables": AgentDiagnosticVariable[];
|
|
1753
|
-
"checks": AgentDiagnosticCheckResult[];
|
|
1754
|
-
"outcome": AgentDiagnosticOutcome;
|
|
1755
|
-
}
|
|
1756
|
-
export interface AgentDiagnosticSnapshotSummary {
|
|
1757
|
-
"extension_id": AgentDiagnosticExtensionId;
|
|
1758
|
-
"format_version": number;
|
|
1759
|
-
"snapshot_id": AgentDiagnosticSnapshotId;
|
|
1760
|
-
"probe_id": AgentDiagnosticProbeId;
|
|
1761
|
-
"phase": AgentDiagnosticPhase;
|
|
1762
|
-
"outcome": AgentDiagnosticOutcome;
|
|
1763
|
-
"variable_count": number;
|
|
1764
|
-
"check_count": number;
|
|
1765
|
-
"failed_check_count": number;
|
|
1766
|
-
"content_ref": WorkflowContentRef;
|
|
1767
|
-
}
|
|
1768
1293
|
export interface DisplayTracesInput {
|
|
1769
1294
|
"trace_id"?: TraceId;
|
|
1770
1295
|
"session_id"?: SessionId;
|
|
@@ -1894,112 +1419,6 @@ export interface FetchTelemetryOutput {
|
|
|
1894
1419
|
"stats"?: McpDashboardStats;
|
|
1895
1420
|
"mode": McpDataMode;
|
|
1896
1421
|
}
|
|
1897
|
-
export interface GetActiveWorkflowRunInput {
|
|
1898
|
-
}
|
|
1899
|
-
export interface GetActiveWorkflowRunOutput {
|
|
1900
|
-
"active": boolean;
|
|
1901
|
-
"live_controls_available": boolean;
|
|
1902
|
-
"run_id"?: WorkflowRunId;
|
|
1903
|
-
"thread_id"?: string;
|
|
1904
|
-
"started_at"?: string;
|
|
1905
|
-
}
|
|
1906
|
-
export interface RecordDiagnosticSnapshotVariableInput {
|
|
1907
|
-
"name": AgentDiagnosticVariableName;
|
|
1908
|
-
"classification": AgentDiagnosticClassification;
|
|
1909
|
-
"value": unknown | null;
|
|
1910
|
-
}
|
|
1911
|
-
export interface RecordDiagnosticSnapshotCheckInput {
|
|
1912
|
-
"check_id": AgentDiagnosticCheckId;
|
|
1913
|
-
"operator": AgentDiagnosticOperator;
|
|
1914
|
-
"actual": AgentDiagnosticVariableName;
|
|
1915
|
-
"expected"?: AgentDiagnosticVariableName;
|
|
1916
|
-
"expected_type"?: AgentDiagnosticValueType;
|
|
1917
|
-
}
|
|
1918
|
-
export interface RecordDiagnosticSnapshotInput {
|
|
1919
|
-
"snapshot_id": AgentDiagnosticSnapshotId;
|
|
1920
|
-
"probe_id": AgentDiagnosticProbeId;
|
|
1921
|
-
"phase": AgentDiagnosticPhase;
|
|
1922
|
-
"variables": RecordDiagnosticSnapshotVariableInput[];
|
|
1923
|
-
"checks"?: RecordDiagnosticSnapshotCheckInput[];
|
|
1924
|
-
}
|
|
1925
|
-
export interface RecordDiagnosticSnapshotOutput {
|
|
1926
|
-
"recorded": boolean;
|
|
1927
|
-
"code": string;
|
|
1928
|
-
"snapshot_id": AgentDiagnosticSnapshotId;
|
|
1929
|
-
"event_id"?: WorkflowEventId;
|
|
1930
|
-
"field"?: string;
|
|
1931
|
-
}
|
|
1932
|
-
export interface ListWorkflowRunsInput {
|
|
1933
|
-
"status"?: WorkflowRunStatus;
|
|
1934
|
-
"cursor"?: WorkflowRunCursor;
|
|
1935
|
-
"limit"?: number;
|
|
1936
|
-
}
|
|
1937
|
-
export interface ListWorkflowRunsOutput {
|
|
1938
|
-
"runs": WorkflowRun[];
|
|
1939
|
-
"next_cursor"?: WorkflowRunCursor;
|
|
1940
|
-
"has_more": boolean;
|
|
1941
|
-
"mode": McpDataMode;
|
|
1942
|
-
}
|
|
1943
|
-
export interface GetWorkflowGraphInput {
|
|
1944
|
-
"run_id": WorkflowRunId;
|
|
1945
|
-
"node_cursor"?: WorkflowNodeCursor;
|
|
1946
|
-
"node_limit"?: number;
|
|
1947
|
-
"edge_cursor"?: WorkflowEdgeCursor;
|
|
1948
|
-
"edge_limit"?: number;
|
|
1949
|
-
}
|
|
1950
|
-
export interface GetWorkflowGraphOutput {
|
|
1951
|
-
"graph": WorkflowGraphSnapshot;
|
|
1952
|
-
"mode": McpDataMode;
|
|
1953
|
-
}
|
|
1954
|
-
export interface DisplayWorkflowGraphInput {
|
|
1955
|
-
"run_id"?: WorkflowRunId;
|
|
1956
|
-
"node_cursor"?: WorkflowNodeCursor;
|
|
1957
|
-
"node_limit"?: number;
|
|
1958
|
-
"edge_cursor"?: WorkflowEdgeCursor;
|
|
1959
|
-
"edge_limit"?: number;
|
|
1960
|
-
}
|
|
1961
|
-
export interface DisplayWorkflowGraphOutput {
|
|
1962
|
-
"graph": WorkflowGraphSnapshot;
|
|
1963
|
-
"live_controls_available": boolean;
|
|
1964
|
-
"mode": McpDataMode;
|
|
1965
|
-
}
|
|
1966
|
-
export interface FetchWorkflowGraphUpdatesInput {
|
|
1967
|
-
"run_id": WorkflowRunId;
|
|
1968
|
-
"after_sequence": WorkflowJournalPosition;
|
|
1969
|
-
"limit"?: number;
|
|
1970
|
-
"wait_ms"?: number;
|
|
1971
|
-
"node_cursor"?: WorkflowNodeCursor;
|
|
1972
|
-
"node_limit"?: number;
|
|
1973
|
-
"edge_cursor"?: WorkflowEdgeCursor;
|
|
1974
|
-
"edge_limit"?: number;
|
|
1975
|
-
"content_ref"?: WorkflowContentRef;
|
|
1976
|
-
}
|
|
1977
|
-
export interface FetchWorkflowGraphUpdatesOutput {
|
|
1978
|
-
"page": WorkflowEventPage;
|
|
1979
|
-
"graph"?: WorkflowGraphSnapshot;
|
|
1980
|
-
"content"?: WorkflowContent;
|
|
1981
|
-
"mode": McpDataMode;
|
|
1982
|
-
}
|
|
1983
|
-
export interface InspectWorkflowEventsInput {
|
|
1984
|
-
"run_id": WorkflowRunId;
|
|
1985
|
-
"after_sequence": WorkflowJournalPosition;
|
|
1986
|
-
"limit"?: number;
|
|
1987
|
-
"content_ref"?: WorkflowContentRef;
|
|
1988
|
-
}
|
|
1989
|
-
export interface InspectWorkflowEventsOutput {
|
|
1990
|
-
"page": WorkflowEventPage;
|
|
1991
|
-
"content"?: WorkflowContent;
|
|
1992
|
-
"mode": McpDataMode;
|
|
1993
|
-
}
|
|
1994
|
-
export interface ControlWorkflowRunInput {
|
|
1995
|
-
"run_id": WorkflowRunId;
|
|
1996
|
-
"action": WorkflowControlAction;
|
|
1997
|
-
"idempotency_key": string;
|
|
1998
|
-
"input"?: string;
|
|
1999
|
-
}
|
|
2000
|
-
export interface ControlWorkflowRunOutput {
|
|
2001
|
-
"command": WorkflowControlCommand;
|
|
2002
|
-
}
|
|
2003
1422
|
export interface LogStreamEvent {
|
|
2004
1423
|
"type": "log";
|
|
2005
1424
|
"data": LogRecord;
|