@shapeshift-labs/frontier-swarm 0.5.21 → 0.5.22
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 +5 -1
- package/dist/index.d.ts +717 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2198 -19
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { JsonObject, JsonValue } from '@shapeshift-labs/frontier';
|
|
2
|
+
import { type FrontierRunActorId, type FrontierRunDashboardSnapshot, type FrontierRunEvent, type FrontierRunEventId, type FrontierRunProjection } from '@shapeshift-labs/frontier-run';
|
|
2
3
|
export declare const FRONTIER_SWARM_MANIFEST_KIND = "frontier.swarm.manifest";
|
|
3
4
|
export declare const FRONTIER_SWARM_MANIFEST_VERSION = 1;
|
|
4
5
|
export declare const FRONTIER_SWARM_TASK_KIND = "frontier.swarm.task";
|
|
@@ -11,6 +12,22 @@ export declare const FRONTIER_SWARM_EVENT_KIND = "frontier.swarm.event";
|
|
|
11
12
|
export declare const FRONTIER_SWARM_EVENT_VERSION = 1;
|
|
12
13
|
export declare const FRONTIER_SWARM_EVENT_STREAM_KIND = "frontier.swarm.event-stream";
|
|
13
14
|
export declare const FRONTIER_SWARM_EVENT_STREAM_VERSION = 1;
|
|
15
|
+
export declare const FRONTIER_SWARM_RUN_GRAPH_KIND = "frontier.swarm.run-graph";
|
|
16
|
+
export declare const FRONTIER_SWARM_RUN_GRAPH_VERSION = 1;
|
|
17
|
+
export declare const FRONTIER_SWARM_GRAPH_SNAPSHOT_KIND = "frontier.swarm.graph-snapshot";
|
|
18
|
+
export declare const FRONTIER_SWARM_GRAPH_SNAPSHOT_VERSION = 1;
|
|
19
|
+
export declare const FRONTIER_SWARM_RUN_GRAPH_CHUNK_KIND = "frontier.swarm.run-graph-chunk";
|
|
20
|
+
export declare const FRONTIER_SWARM_RUN_GRAPH_CHUNK_VERSION = 1;
|
|
21
|
+
export declare const FRONTIER_SWARM_GATE_RECORD_KIND = "frontier.swarm.gate-record";
|
|
22
|
+
export declare const FRONTIER_SWARM_GATE_RECORD_VERSION = 1;
|
|
23
|
+
export declare const FRONTIER_SWARM_EVIDENCE_RECORD_KIND = "frontier.swarm.evidence-record";
|
|
24
|
+
export declare const FRONTIER_SWARM_EVIDENCE_RECORD_VERSION = 1;
|
|
25
|
+
export declare const FRONTIER_SWARM_PATCH_EVENT_KIND = "frontier.swarm.patch-event";
|
|
26
|
+
export declare const FRONTIER_SWARM_PATCH_EVENT_VERSION = 1;
|
|
27
|
+
export declare const FRONTIER_SWARM_REPLAY_RECORD_KIND = "frontier.swarm.replay-record";
|
|
28
|
+
export declare const FRONTIER_SWARM_REPLAY_RECORD_VERSION = 1;
|
|
29
|
+
export declare const FRONTIER_SWARM_IMPROVEMENT_LOOP_KIND = "frontier.swarm.improvement-loop";
|
|
30
|
+
export declare const FRONTIER_SWARM_IMPROVEMENT_LOOP_VERSION = 1;
|
|
14
31
|
export declare const FRONTIER_SWARM_MAILBOX_KIND = "frontier.swarm.mailbox";
|
|
15
32
|
export declare const FRONTIER_SWARM_MAILBOX_VERSION = 1;
|
|
16
33
|
export declare const FRONTIER_SWARM_PROOF_KIND = "frontier.swarm.proof";
|
|
@@ -31,6 +48,10 @@ export declare const FRONTIER_SWARM_MERGE_PLAN_KIND = "frontier.swarm.merge-plan
|
|
|
31
48
|
export declare const FRONTIER_SWARM_MERGE_PLAN_VERSION = 1;
|
|
32
49
|
export declare const FRONTIER_SWARM_MERGE_BUNDLE_KIND = "frontier.swarm.merge-bundle";
|
|
33
50
|
export declare const FRONTIER_SWARM_MERGE_BUNDLE_VERSION = 1;
|
|
51
|
+
export declare const FRONTIER_SWARM_SEMANTIC_CHANGE_KIND = "frontier.swarm.semantic-change";
|
|
52
|
+
export declare const FRONTIER_SWARM_SEMANTIC_CHANGE_VERSION = 1;
|
|
53
|
+
export declare const FRONTIER_SWARM_MERGE_CANDIDATE_KIND = "frontier.swarm.merge-candidate";
|
|
54
|
+
export declare const FRONTIER_SWARM_MERGE_CANDIDATE_VERSION = 1;
|
|
34
55
|
export declare const FRONTIER_SWARM_QUEUE_OVERLAY_KIND = "frontier.swarm.queue-overlay";
|
|
35
56
|
export declare const FRONTIER_SWARM_QUEUE_OVERLAY_VERSION = 1;
|
|
36
57
|
export declare const FRONTIER_SWARM_MERGE_INDEX_KIND = "frontier.swarm.merge-index";
|
|
@@ -97,6 +118,8 @@ export declare const FRONTIER_SWARM_QUEUE_OUTCOME_MODEL_KIND = "frontier.swarm.q
|
|
|
97
118
|
export declare const FRONTIER_SWARM_QUEUE_OUTCOME_MODEL_VERSION = 1;
|
|
98
119
|
export declare const FRONTIER_SWARM_TERMINAL_STATE_RECONCILIATION_KIND = "frontier.swarm.terminal-state-reconciliation";
|
|
99
120
|
export declare const FRONTIER_SWARM_TERMINAL_STATE_RECONCILIATION_VERSION = 1;
|
|
121
|
+
export declare const FRONTIER_SWARM_TERMINAL_OUTCOME_RECORD_KIND = "frontier.swarm.terminal-outcome-record";
|
|
122
|
+
export declare const FRONTIER_SWARM_TERMINAL_OUTCOME_RECORD_VERSION = 1;
|
|
100
123
|
export declare const FRONTIER_SWARM_PRIORITY_POLICY_KIND = "frontier.swarm.priority-policy";
|
|
101
124
|
export declare const FRONTIER_SWARM_PRIORITY_POLICY_VERSION = 1;
|
|
102
125
|
export declare const FRONTIER_SWARM_MODEL_ROUTE_KIND = "frontier.swarm.model-route";
|
|
@@ -111,6 +134,10 @@ export declare const FRONTIER_SWARM_DEFAULT_CODEX_COMPUTE_ID = "codex.gpt-5.5.xh
|
|
|
111
134
|
export declare const FRONTIER_SWARM_DEFAULT_MODEL = "gpt-5.5";
|
|
112
135
|
export declare const FRONTIER_SWARM_DEFAULT_REASONING_EFFORT = "xhigh";
|
|
113
136
|
export declare const FRONTIER_SWARM_VERIFICATION_CATEGORY_HINTS: readonly ["build", "typecheck", "smoke", "unit", "fuzz", "browser", "oracle"];
|
|
137
|
+
export declare const FRONTIER_SWARM_GRAPH_NODE_KINDS: readonly ["intent", "task", "worker", "candidate", "evidence", "gate", "decision", "merge", "replay", "rsi"];
|
|
138
|
+
export declare const FRONTIER_SWARM_GRAPH_EDGE_KINDS: readonly ["dependsOn", "blocks", "produces", "verifies", "conflictsWith", "supersedes", "mergesInto"];
|
|
139
|
+
export declare const FRONTIER_SWARM_MERGE_CANDIDATE_ADMISSION_STATUSES: readonly ["safe", "safe-with-losses", "review-required", "blocked"];
|
|
140
|
+
export declare const FRONTIER_SWARM_MERGE_CANDIDATE_REASON_CODES: readonly ["missing-sidecar", "empty-sidecar", "stale-source-hash", "symbol-conflict", "effect-conflict", "lossy-import", "tests-missing"];
|
|
114
141
|
export type FrontierSwarmComputeKind = 'codex' | 'shell' | 'human' | 'external' | string;
|
|
115
142
|
export type FrontierSwarmReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | string;
|
|
116
143
|
export type FrontierSwarmPolicyMode = 'advisory' | 'hard-file-ownership' | string;
|
|
@@ -905,6 +932,517 @@ export interface FrontierSwarmJobGraphEdge {
|
|
|
905
932
|
to: string;
|
|
906
933
|
type: 'depends-on' | 'parent-task';
|
|
907
934
|
}
|
|
935
|
+
export type FrontierSwarmGraphNodeKind = (typeof FRONTIER_SWARM_GRAPH_NODE_KINDS)[number] | string;
|
|
936
|
+
export type FrontierSwarmGraphEdgeKind = (typeof FRONTIER_SWARM_GRAPH_EDGE_KINDS)[number] | string;
|
|
937
|
+
export type FrontierSwarmGraphStatus = 'pending' | 'running' | 'passed' | 'failed' | 'accepted' | 'rejected' | 'blocked' | 'superseded' | 'unknown' | string;
|
|
938
|
+
export interface FrontierSwarmGraphNodeInput {
|
|
939
|
+
id?: string;
|
|
940
|
+
kind: FrontierSwarmGraphNodeKind;
|
|
941
|
+
title?: string;
|
|
942
|
+
status?: FrontierSwarmGraphStatus;
|
|
943
|
+
jobId?: string;
|
|
944
|
+
taskId?: string;
|
|
945
|
+
path?: string;
|
|
946
|
+
generatedAt?: number;
|
|
947
|
+
metadata?: unknown;
|
|
948
|
+
}
|
|
949
|
+
export interface FrontierSwarmGraphNode {
|
|
950
|
+
id: string;
|
|
951
|
+
kind: FrontierSwarmGraphNodeKind;
|
|
952
|
+
title?: string;
|
|
953
|
+
status?: FrontierSwarmGraphStatus;
|
|
954
|
+
jobId?: string;
|
|
955
|
+
taskId?: string;
|
|
956
|
+
path?: string;
|
|
957
|
+
generatedAt?: number;
|
|
958
|
+
metadata?: JsonObject;
|
|
959
|
+
}
|
|
960
|
+
export interface FrontierSwarmGraphEdgeInput {
|
|
961
|
+
id?: string;
|
|
962
|
+
from: string;
|
|
963
|
+
to: string;
|
|
964
|
+
kind: FrontierSwarmGraphEdgeKind;
|
|
965
|
+
label?: string;
|
|
966
|
+
generatedAt?: number;
|
|
967
|
+
metadata?: unknown;
|
|
968
|
+
}
|
|
969
|
+
export interface FrontierSwarmGraphEdge {
|
|
970
|
+
id: string;
|
|
971
|
+
from: string;
|
|
972
|
+
to: string;
|
|
973
|
+
kind: FrontierSwarmGraphEdgeKind;
|
|
974
|
+
label?: string;
|
|
975
|
+
generatedAt?: number;
|
|
976
|
+
metadata?: JsonObject;
|
|
977
|
+
}
|
|
978
|
+
export type FrontierSwarmMergeCandidateAdmissionStatus = (typeof FRONTIER_SWARM_MERGE_CANDIDATE_ADMISSION_STATUSES)[number] | string;
|
|
979
|
+
export type FrontierSwarmMergeCandidateReasonCode = (typeof FRONTIER_SWARM_MERGE_CANDIDATE_REASON_CODES)[number] | string;
|
|
980
|
+
export type FrontierSwarmSemanticChangeOperation = 'add' | 'modify' | 'delete' | 'move' | 'rename' | 'replace' | 'unknown' | string;
|
|
981
|
+
export type FrontierSwarmSemanticChangeConfidence = FrontierSwarmConfidence | number;
|
|
982
|
+
export interface FrontierSwarmSourceSpanInput {
|
|
983
|
+
path?: string;
|
|
984
|
+
startLine?: number;
|
|
985
|
+
startColumn?: number;
|
|
986
|
+
endLine?: number;
|
|
987
|
+
endColumn?: number;
|
|
988
|
+
startOffset?: number;
|
|
989
|
+
endOffset?: number;
|
|
990
|
+
sourceHash?: string;
|
|
991
|
+
expectedSourceHash?: string;
|
|
992
|
+
metadata?: unknown;
|
|
993
|
+
}
|
|
994
|
+
export interface FrontierSwarmSourceSpan {
|
|
995
|
+
path?: string;
|
|
996
|
+
startLine?: number;
|
|
997
|
+
startColumn?: number;
|
|
998
|
+
endLine?: number;
|
|
999
|
+
endColumn?: number;
|
|
1000
|
+
startOffset?: number;
|
|
1001
|
+
endOffset?: number;
|
|
1002
|
+
sourceHash?: string;
|
|
1003
|
+
expectedSourceHash?: string;
|
|
1004
|
+
metadata?: JsonObject;
|
|
1005
|
+
}
|
|
1006
|
+
export interface FrontierSwarmSemanticChangeInput {
|
|
1007
|
+
id?: string;
|
|
1008
|
+
symbolId: string;
|
|
1009
|
+
declarationKind: string;
|
|
1010
|
+
sourceSpan?: FrontierSwarmSourceSpanInput;
|
|
1011
|
+
sourcePath?: string;
|
|
1012
|
+
sourceHash?: string;
|
|
1013
|
+
expectedSourceHash?: string;
|
|
1014
|
+
operation: FrontierSwarmSemanticChangeOperation;
|
|
1015
|
+
confidence?: FrontierSwarmSemanticChangeConfidence;
|
|
1016
|
+
conflictReason?: FrontierSwarmMergeCandidateReasonCode;
|
|
1017
|
+
status?: FrontierSwarmMergeCandidateAdmissionStatus;
|
|
1018
|
+
reasonCodes?: readonly FrontierSwarmMergeCandidateReasonCode[];
|
|
1019
|
+
generatedAt?: number;
|
|
1020
|
+
metadata?: unknown;
|
|
1021
|
+
}
|
|
1022
|
+
export interface FrontierSwarmSemanticChange {
|
|
1023
|
+
kind: typeof FRONTIER_SWARM_SEMANTIC_CHANGE_KIND;
|
|
1024
|
+
version: typeof FRONTIER_SWARM_SEMANTIC_CHANGE_VERSION;
|
|
1025
|
+
id: string;
|
|
1026
|
+
symbolId: string;
|
|
1027
|
+
declarationKind: string;
|
|
1028
|
+
sourceSpan: FrontierSwarmSourceSpan;
|
|
1029
|
+
operation: FrontierSwarmSemanticChangeOperation;
|
|
1030
|
+
confidence: FrontierSwarmSemanticChangeConfidence;
|
|
1031
|
+
conflictReason?: FrontierSwarmMergeCandidateReasonCode;
|
|
1032
|
+
status: FrontierSwarmMergeCandidateAdmissionStatus;
|
|
1033
|
+
reasonCodes: FrontierSwarmMergeCandidateReasonCode[];
|
|
1034
|
+
generatedAt: number;
|
|
1035
|
+
metadata?: JsonObject;
|
|
1036
|
+
}
|
|
1037
|
+
export interface FrontierSwarmMergeCandidateInput {
|
|
1038
|
+
id?: string;
|
|
1039
|
+
jobId?: string;
|
|
1040
|
+
taskId?: string;
|
|
1041
|
+
lane?: string;
|
|
1042
|
+
title?: string;
|
|
1043
|
+
sidecarPath?: string;
|
|
1044
|
+
sidecarRequired?: boolean;
|
|
1045
|
+
sidecarEmpty?: boolean;
|
|
1046
|
+
symbolId?: string;
|
|
1047
|
+
declarationKind?: string;
|
|
1048
|
+
sourceSpan?: FrontierSwarmSourceSpanInput;
|
|
1049
|
+
sourcePath?: string;
|
|
1050
|
+
sourceHash?: string;
|
|
1051
|
+
expectedSourceHash?: string;
|
|
1052
|
+
operation?: FrontierSwarmSemanticChangeOperation;
|
|
1053
|
+
confidence?: FrontierSwarmSemanticChangeConfidence;
|
|
1054
|
+
conflictReason?: FrontierSwarmMergeCandidateReasonCode;
|
|
1055
|
+
status?: FrontierSwarmMergeCandidateAdmissionStatus;
|
|
1056
|
+
reasonCodes?: readonly FrontierSwarmMergeCandidateReasonCode[];
|
|
1057
|
+
semanticChanges?: readonly (FrontierSwarmSemanticChangeInput | FrontierSwarmSemanticChange)[];
|
|
1058
|
+
changes?: readonly (FrontierSwarmSemanticChangeInput | FrontierSwarmSemanticChange)[];
|
|
1059
|
+
hasLosses?: boolean;
|
|
1060
|
+
testsRequired?: boolean;
|
|
1061
|
+
testsPassed?: boolean;
|
|
1062
|
+
evidencePaths?: readonly string[];
|
|
1063
|
+
generatedAt?: number;
|
|
1064
|
+
metadata?: unknown;
|
|
1065
|
+
}
|
|
1066
|
+
export interface FrontierSwarmMergeCandidate {
|
|
1067
|
+
kind: typeof FRONTIER_SWARM_MERGE_CANDIDATE_KIND;
|
|
1068
|
+
version: typeof FRONTIER_SWARM_MERGE_CANDIDATE_VERSION;
|
|
1069
|
+
id: string;
|
|
1070
|
+
jobId?: string;
|
|
1071
|
+
taskId?: string;
|
|
1072
|
+
lane?: string;
|
|
1073
|
+
title?: string;
|
|
1074
|
+
sidecarPath?: string;
|
|
1075
|
+
symbolId: string;
|
|
1076
|
+
symbolIds: string[];
|
|
1077
|
+
declarationKind: string;
|
|
1078
|
+
declarationKinds: string[];
|
|
1079
|
+
sourceSpan: FrontierSwarmSourceSpan;
|
|
1080
|
+
operation: FrontierSwarmSemanticChangeOperation;
|
|
1081
|
+
confidence: FrontierSwarmSemanticChangeConfidence;
|
|
1082
|
+
conflictReason?: FrontierSwarmMergeCandidateReasonCode;
|
|
1083
|
+
status: FrontierSwarmMergeCandidateAdmissionStatus;
|
|
1084
|
+
reasonCodes: FrontierSwarmMergeCandidateReasonCode[];
|
|
1085
|
+
semanticChanges: FrontierSwarmSemanticChange[];
|
|
1086
|
+
changedPaths: string[];
|
|
1087
|
+
evidencePaths: string[];
|
|
1088
|
+
generatedAt: number;
|
|
1089
|
+
summary: {
|
|
1090
|
+
changeCount: number;
|
|
1091
|
+
symbolCount: number;
|
|
1092
|
+
reasonCount: number;
|
|
1093
|
+
};
|
|
1094
|
+
metadata?: JsonObject;
|
|
1095
|
+
}
|
|
1096
|
+
export interface FrontierSwarmMergeCandidateGraphInput {
|
|
1097
|
+
id?: string;
|
|
1098
|
+
runId?: string;
|
|
1099
|
+
title?: string;
|
|
1100
|
+
candidates: readonly (FrontierSwarmMergeCandidateInput | FrontierSwarmMergeCandidate)[];
|
|
1101
|
+
includeChangeNodes?: boolean;
|
|
1102
|
+
generatedAt?: number;
|
|
1103
|
+
metadata?: unknown;
|
|
1104
|
+
}
|
|
1105
|
+
export interface FrontierSwarmMergeCandidateGraphProjection {
|
|
1106
|
+
candidates: FrontierSwarmMergeCandidate[];
|
|
1107
|
+
nodes: FrontierSwarmGraphNodeInput[];
|
|
1108
|
+
edges: FrontierSwarmGraphEdgeInput[];
|
|
1109
|
+
}
|
|
1110
|
+
export interface FrontierSwarmGraphEventInput {
|
|
1111
|
+
id?: string;
|
|
1112
|
+
type: string;
|
|
1113
|
+
nodeId?: string;
|
|
1114
|
+
edgeId?: string;
|
|
1115
|
+
timestamp?: number;
|
|
1116
|
+
metadata?: unknown;
|
|
1117
|
+
}
|
|
1118
|
+
export interface FrontierSwarmGraphEvent {
|
|
1119
|
+
id: string;
|
|
1120
|
+
type: string;
|
|
1121
|
+
nodeId?: string;
|
|
1122
|
+
edgeId?: string;
|
|
1123
|
+
timestamp: number;
|
|
1124
|
+
metadata?: JsonObject;
|
|
1125
|
+
}
|
|
1126
|
+
export interface FrontierSwarmRunGraphSummary {
|
|
1127
|
+
nodeCount: number;
|
|
1128
|
+
edgeCount: number;
|
|
1129
|
+
eventCount: number;
|
|
1130
|
+
nodeKinds: Record<string, number>;
|
|
1131
|
+
edgeKinds: Record<string, number>;
|
|
1132
|
+
openBlockerCount: number;
|
|
1133
|
+
humanQuestionCount: number;
|
|
1134
|
+
}
|
|
1135
|
+
export interface FrontierSwarmRunGraphInput {
|
|
1136
|
+
id?: string;
|
|
1137
|
+
runId?: string;
|
|
1138
|
+
title?: string;
|
|
1139
|
+
generatedAt?: number;
|
|
1140
|
+
nodes?: readonly FrontierSwarmGraphNodeInput[];
|
|
1141
|
+
edges?: readonly FrontierSwarmGraphEdgeInput[];
|
|
1142
|
+
events?: readonly FrontierSwarmGraphEventInput[];
|
|
1143
|
+
metadata?: unknown;
|
|
1144
|
+
}
|
|
1145
|
+
export interface FrontierSwarmRunGraph {
|
|
1146
|
+
kind: typeof FRONTIER_SWARM_RUN_GRAPH_KIND;
|
|
1147
|
+
version: typeof FRONTIER_SWARM_RUN_GRAPH_VERSION;
|
|
1148
|
+
id: string;
|
|
1149
|
+
runId?: string;
|
|
1150
|
+
title?: string;
|
|
1151
|
+
generatedAt: number;
|
|
1152
|
+
nodes: FrontierSwarmGraphNode[];
|
|
1153
|
+
edges: FrontierSwarmGraphEdge[];
|
|
1154
|
+
events: FrontierSwarmGraphEvent[];
|
|
1155
|
+
summary: FrontierSwarmRunGraphSummary;
|
|
1156
|
+
metadata?: JsonObject;
|
|
1157
|
+
}
|
|
1158
|
+
export interface FrontierSwarmGraphSnapshotInput {
|
|
1159
|
+
id?: string;
|
|
1160
|
+
graph: FrontierSwarmRunGraphInput | FrontierSwarmRunGraph;
|
|
1161
|
+
generatedAt?: number;
|
|
1162
|
+
metadata?: unknown;
|
|
1163
|
+
}
|
|
1164
|
+
export interface FrontierSwarmGraphSnapshot {
|
|
1165
|
+
kind: typeof FRONTIER_SWARM_GRAPH_SNAPSHOT_KIND;
|
|
1166
|
+
version: typeof FRONTIER_SWARM_GRAPH_SNAPSHOT_VERSION;
|
|
1167
|
+
id: string;
|
|
1168
|
+
graphId: string;
|
|
1169
|
+
generatedAt: number;
|
|
1170
|
+
summary: FrontierSwarmRunGraphSummary;
|
|
1171
|
+
graph: FrontierSwarmRunGraph;
|
|
1172
|
+
metadata?: JsonObject;
|
|
1173
|
+
}
|
|
1174
|
+
export type FrontierSwarmGateRecordType = FrontierSwarmVerificationCategory | 'command' | 'browser' | 'fuzz' | 'oracle' | 'benchmark' | 'semantic-sidecar' | 'replay' | string;
|
|
1175
|
+
export type FrontierSwarmGateRecordStatus = 'passed' | 'failed' | 'unknown' | 'skipped' | 'blocked' | string;
|
|
1176
|
+
export type FrontierSwarmEvidenceRecordType = 'command-output' | 'browser' | 'fuzz' | 'oracle' | 'benchmark' | 'semantic-sidecar' | 'replay' | 'artifact' | string;
|
|
1177
|
+
export type FrontierSwarmPatchEventOperation = 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test' | string;
|
|
1178
|
+
export type FrontierSwarmReplayRecordStatus = 'pending' | 'running' | 'passed' | 'failed' | 'blocked' | 'skipped' | 'unknown' | string;
|
|
1179
|
+
export type FrontierSwarmImprovementLoopStatus = 'observed' | 'planned' | 'running' | 'applied' | 'verified' | 'failed' | 'blocked' | 'unknown' | string;
|
|
1180
|
+
export interface FrontierSwarmGateRecordInput {
|
|
1181
|
+
id?: string;
|
|
1182
|
+
type: FrontierSwarmGateRecordType;
|
|
1183
|
+
status?: FrontierSwarmGateRecordStatus;
|
|
1184
|
+
required?: boolean;
|
|
1185
|
+
command?: string;
|
|
1186
|
+
path?: string;
|
|
1187
|
+
jobId?: string;
|
|
1188
|
+
taskId?: string;
|
|
1189
|
+
startedAt?: number;
|
|
1190
|
+
finishedAt?: number;
|
|
1191
|
+
failureReason?: string;
|
|
1192
|
+
confidence?: FrontierSwarmConfidence;
|
|
1193
|
+
metrics?: unknown;
|
|
1194
|
+
metadata?: unknown;
|
|
1195
|
+
}
|
|
1196
|
+
export interface FrontierSwarmGateRecord {
|
|
1197
|
+
kind: typeof FRONTIER_SWARM_GATE_RECORD_KIND;
|
|
1198
|
+
version: typeof FRONTIER_SWARM_GATE_RECORD_VERSION;
|
|
1199
|
+
id: string;
|
|
1200
|
+
type: FrontierSwarmGateRecordType;
|
|
1201
|
+
status: FrontierSwarmGateRecordStatus;
|
|
1202
|
+
required: boolean;
|
|
1203
|
+
command?: string;
|
|
1204
|
+
path?: string;
|
|
1205
|
+
jobId?: string;
|
|
1206
|
+
taskId?: string;
|
|
1207
|
+
startedAt?: number;
|
|
1208
|
+
finishedAt?: number;
|
|
1209
|
+
failureReason?: string;
|
|
1210
|
+
confidence?: FrontierSwarmConfidence;
|
|
1211
|
+
metrics?: JsonObject;
|
|
1212
|
+
metadata?: JsonObject;
|
|
1213
|
+
}
|
|
1214
|
+
export interface FrontierSwarmEvidenceRecordInput {
|
|
1215
|
+
id?: string;
|
|
1216
|
+
type: FrontierSwarmEvidenceRecordType;
|
|
1217
|
+
path?: string;
|
|
1218
|
+
ref?: string;
|
|
1219
|
+
jobId?: string;
|
|
1220
|
+
taskId?: string;
|
|
1221
|
+
gateId?: string;
|
|
1222
|
+
producedAt?: number;
|
|
1223
|
+
confidence?: FrontierSwarmConfidence;
|
|
1224
|
+
metrics?: unknown;
|
|
1225
|
+
metadata?: unknown;
|
|
1226
|
+
}
|
|
1227
|
+
export interface FrontierSwarmEvidenceRecord {
|
|
1228
|
+
kind: typeof FRONTIER_SWARM_EVIDENCE_RECORD_KIND;
|
|
1229
|
+
version: typeof FRONTIER_SWARM_EVIDENCE_RECORD_VERSION;
|
|
1230
|
+
id: string;
|
|
1231
|
+
type: FrontierSwarmEvidenceRecordType;
|
|
1232
|
+
path?: string;
|
|
1233
|
+
ref?: string;
|
|
1234
|
+
jobId?: string;
|
|
1235
|
+
taskId?: string;
|
|
1236
|
+
gateId?: string;
|
|
1237
|
+
producedAt: number;
|
|
1238
|
+
confidence?: FrontierSwarmConfidence;
|
|
1239
|
+
metrics?: JsonObject;
|
|
1240
|
+
metadata?: JsonObject;
|
|
1241
|
+
}
|
|
1242
|
+
export interface FrontierSwarmGraphRefInput {
|
|
1243
|
+
id?: string;
|
|
1244
|
+
kind?: string;
|
|
1245
|
+
graphId?: string;
|
|
1246
|
+
nodeId?: string;
|
|
1247
|
+
edgeId?: string;
|
|
1248
|
+
role?: string;
|
|
1249
|
+
metadata?: unknown;
|
|
1250
|
+
}
|
|
1251
|
+
export interface FrontierSwarmGraphRef {
|
|
1252
|
+
id: string;
|
|
1253
|
+
kind: string;
|
|
1254
|
+
graphId?: string;
|
|
1255
|
+
nodeId?: string;
|
|
1256
|
+
edgeId?: string;
|
|
1257
|
+
role?: string;
|
|
1258
|
+
metadata?: JsonObject;
|
|
1259
|
+
}
|
|
1260
|
+
export interface FrontierSwarmPatchEventInput {
|
|
1261
|
+
id?: string;
|
|
1262
|
+
operation: FrontierSwarmPatchEventOperation;
|
|
1263
|
+
path: string;
|
|
1264
|
+
from?: string;
|
|
1265
|
+
hash?: string;
|
|
1266
|
+
sequence?: number;
|
|
1267
|
+
value?: unknown;
|
|
1268
|
+
before?: unknown;
|
|
1269
|
+
after?: unknown;
|
|
1270
|
+
jobId?: string;
|
|
1271
|
+
taskId?: string;
|
|
1272
|
+
replayRecordId?: string;
|
|
1273
|
+
graphRefs?: readonly FrontierSwarmGraphRefInput[];
|
|
1274
|
+
generatedAt?: number;
|
|
1275
|
+
metadata?: unknown;
|
|
1276
|
+
}
|
|
1277
|
+
export interface FrontierSwarmPatchEvent {
|
|
1278
|
+
kind: typeof FRONTIER_SWARM_PATCH_EVENT_KIND;
|
|
1279
|
+
version: typeof FRONTIER_SWARM_PATCH_EVENT_VERSION;
|
|
1280
|
+
id: string;
|
|
1281
|
+
operation: FrontierSwarmPatchEventOperation;
|
|
1282
|
+
path: string;
|
|
1283
|
+
from?: string;
|
|
1284
|
+
hash?: string;
|
|
1285
|
+
sequence?: number;
|
|
1286
|
+
value?: JsonValue;
|
|
1287
|
+
before?: JsonValue;
|
|
1288
|
+
after?: JsonValue;
|
|
1289
|
+
jobId?: string;
|
|
1290
|
+
taskId?: string;
|
|
1291
|
+
replayRecordId?: string;
|
|
1292
|
+
graphRefs: FrontierSwarmGraphRef[];
|
|
1293
|
+
generatedAt: number;
|
|
1294
|
+
metadata?: JsonObject;
|
|
1295
|
+
}
|
|
1296
|
+
export interface FrontierSwarmReplayRecordInput {
|
|
1297
|
+
id?: string;
|
|
1298
|
+
title?: string;
|
|
1299
|
+
status?: FrontierSwarmReplayRecordStatus;
|
|
1300
|
+
subject?: string;
|
|
1301
|
+
replayBundleId?: string;
|
|
1302
|
+
patchEvents?: readonly (FrontierSwarmPatchEventInput | FrontierSwarmPatchEvent)[];
|
|
1303
|
+
evidenceRefs?: readonly (string | FrontierSwarmNamedRefInput)[];
|
|
1304
|
+
graphRefs?: readonly FrontierSwarmGraphRefInput[];
|
|
1305
|
+
jobId?: string;
|
|
1306
|
+
taskId?: string;
|
|
1307
|
+
startedAt?: number;
|
|
1308
|
+
finishedAt?: number;
|
|
1309
|
+
generatedAt?: number;
|
|
1310
|
+
metadata?: unknown;
|
|
1311
|
+
}
|
|
1312
|
+
export interface FrontierSwarmReplayRecord {
|
|
1313
|
+
kind: typeof FRONTIER_SWARM_REPLAY_RECORD_KIND;
|
|
1314
|
+
version: typeof FRONTIER_SWARM_REPLAY_RECORD_VERSION;
|
|
1315
|
+
id: string;
|
|
1316
|
+
title: string;
|
|
1317
|
+
status: FrontierSwarmReplayRecordStatus;
|
|
1318
|
+
subject?: string;
|
|
1319
|
+
replayBundleId?: string;
|
|
1320
|
+
patchEvents: FrontierSwarmPatchEvent[];
|
|
1321
|
+
evidenceRefs: FrontierSwarmNamedRef[];
|
|
1322
|
+
graphRefs: FrontierSwarmGraphRef[];
|
|
1323
|
+
jobId?: string;
|
|
1324
|
+
taskId?: string;
|
|
1325
|
+
startedAt?: number;
|
|
1326
|
+
finishedAt?: number;
|
|
1327
|
+
generatedAt: number;
|
|
1328
|
+
summary: {
|
|
1329
|
+
patchEventCount: number;
|
|
1330
|
+
evidenceRefCount: number;
|
|
1331
|
+
graphRefCount: number;
|
|
1332
|
+
};
|
|
1333
|
+
metadata?: JsonObject;
|
|
1334
|
+
}
|
|
1335
|
+
export interface FrontierSwarmImprovementLoopInput {
|
|
1336
|
+
id?: string;
|
|
1337
|
+
title?: string;
|
|
1338
|
+
status?: FrontierSwarmImprovementLoopStatus;
|
|
1339
|
+
subject?: string;
|
|
1340
|
+
observation?: unknown;
|
|
1341
|
+
action?: unknown;
|
|
1342
|
+
result?: unknown;
|
|
1343
|
+
replayRecordIds?: readonly string[];
|
|
1344
|
+
patchEventIds?: readonly string[];
|
|
1345
|
+
evidenceRefs?: readonly (string | FrontierSwarmNamedRefInput)[];
|
|
1346
|
+
graphRefs?: readonly FrontierSwarmGraphRefInput[];
|
|
1347
|
+
jobId?: string;
|
|
1348
|
+
taskId?: string;
|
|
1349
|
+
generatedAt?: number;
|
|
1350
|
+
metadata?: unknown;
|
|
1351
|
+
}
|
|
1352
|
+
export interface FrontierSwarmImprovementLoop {
|
|
1353
|
+
kind: typeof FRONTIER_SWARM_IMPROVEMENT_LOOP_KIND;
|
|
1354
|
+
version: typeof FRONTIER_SWARM_IMPROVEMENT_LOOP_VERSION;
|
|
1355
|
+
id: string;
|
|
1356
|
+
title: string;
|
|
1357
|
+
status: FrontierSwarmImprovementLoopStatus;
|
|
1358
|
+
subject?: string;
|
|
1359
|
+
observation?: JsonValue;
|
|
1360
|
+
action?: JsonValue;
|
|
1361
|
+
result?: JsonValue;
|
|
1362
|
+
replayRecordIds: string[];
|
|
1363
|
+
patchEventIds: string[];
|
|
1364
|
+
evidenceRefs: FrontierSwarmNamedRef[];
|
|
1365
|
+
graphRefs: FrontierSwarmGraphRef[];
|
|
1366
|
+
jobId?: string;
|
|
1367
|
+
taskId?: string;
|
|
1368
|
+
generatedAt: number;
|
|
1369
|
+
summary: {
|
|
1370
|
+
replayRecordCount: number;
|
|
1371
|
+
patchEventCount: number;
|
|
1372
|
+
evidenceRefCount: number;
|
|
1373
|
+
graphRefCount: number;
|
|
1374
|
+
};
|
|
1375
|
+
metadata?: JsonObject;
|
|
1376
|
+
}
|
|
1377
|
+
export interface FrontierSwarmRunGraphChunkInput {
|
|
1378
|
+
id?: string;
|
|
1379
|
+
nodes?: readonly FrontierSwarmGraphNodeInput[];
|
|
1380
|
+
edges?: readonly FrontierSwarmGraphEdgeInput[];
|
|
1381
|
+
entryNodeIds?: readonly string[];
|
|
1382
|
+
exitNodeIds?: readonly string[];
|
|
1383
|
+
metadata?: unknown;
|
|
1384
|
+
}
|
|
1385
|
+
export interface FrontierSwarmRunGraphChunk {
|
|
1386
|
+
kind: typeof FRONTIER_SWARM_RUN_GRAPH_CHUNK_KIND;
|
|
1387
|
+
version: typeof FRONTIER_SWARM_RUN_GRAPH_CHUNK_VERSION;
|
|
1388
|
+
id: string;
|
|
1389
|
+
nodes: FrontierSwarmGraphNode[];
|
|
1390
|
+
edges: FrontierSwarmGraphEdge[];
|
|
1391
|
+
entryNodeIds: string[];
|
|
1392
|
+
exitNodeIds: string[];
|
|
1393
|
+
summary: {
|
|
1394
|
+
nodeCount: number;
|
|
1395
|
+
edgeCount: number;
|
|
1396
|
+
entryCount: number;
|
|
1397
|
+
exitCount: number;
|
|
1398
|
+
};
|
|
1399
|
+
metadata?: JsonObject;
|
|
1400
|
+
}
|
|
1401
|
+
export interface FrontierSwarmRunGraphSynthesisChunkInput {
|
|
1402
|
+
id?: string;
|
|
1403
|
+
source?: FrontierSwarmGraphNodeInput;
|
|
1404
|
+
panel?: FrontierSwarmGraphNodeInput;
|
|
1405
|
+
candidates?: readonly FrontierSwarmGraphNodeInput[];
|
|
1406
|
+
selectedCandidateId?: string;
|
|
1407
|
+
rejectedCandidateIds?: readonly string[];
|
|
1408
|
+
decision?: FrontierSwarmGraphNodeInput;
|
|
1409
|
+
output?: FrontierSwarmGraphNodeInput;
|
|
1410
|
+
metadata?: unknown;
|
|
1411
|
+
}
|
|
1412
|
+
export interface FrontierSwarmRunGraphVerificationGateChunkInput {
|
|
1413
|
+
id?: string;
|
|
1414
|
+
subject: FrontierSwarmGraphNodeInput;
|
|
1415
|
+
gate: FrontierSwarmGraphNodeInput;
|
|
1416
|
+
evidence?: readonly FrontierSwarmGraphNodeInput[];
|
|
1417
|
+
pass?: FrontierSwarmGraphNodeInput;
|
|
1418
|
+
block?: FrontierSwarmGraphNodeInput;
|
|
1419
|
+
metadata?: unknown;
|
|
1420
|
+
}
|
|
1421
|
+
export interface FrontierSwarmRunGraphMergeGateChunkInput {
|
|
1422
|
+
id?: string;
|
|
1423
|
+
candidate: FrontierSwarmGraphNodeInput;
|
|
1424
|
+
gate?: FrontierSwarmGraphNodeInput;
|
|
1425
|
+
decision?: FrontierSwarmGraphNodeInput;
|
|
1426
|
+
target: FrontierSwarmGraphNodeInput;
|
|
1427
|
+
blockers?: readonly FrontierSwarmGraphNodeInput[];
|
|
1428
|
+
superseded?: readonly FrontierSwarmGraphNodeInput[];
|
|
1429
|
+
status?: FrontierSwarmGraphStatus;
|
|
1430
|
+
metadata?: unknown;
|
|
1431
|
+
}
|
|
1432
|
+
export interface FrontierSwarmRunGraphBarrierInput {
|
|
1433
|
+
id?: string;
|
|
1434
|
+
prerequisites: readonly FrontierSwarmGraphNodeInput[];
|
|
1435
|
+
barrier?: FrontierSwarmGraphNodeInput;
|
|
1436
|
+
metadata?: unknown;
|
|
1437
|
+
}
|
|
1438
|
+
export interface FrontierSwarmRunGraphRaceSelectInput {
|
|
1439
|
+
id?: string;
|
|
1440
|
+
branches: readonly FrontierSwarmGraphNodeInput[];
|
|
1441
|
+
selector?: FrontierSwarmGraphNodeInput;
|
|
1442
|
+
selectedBranchId?: string;
|
|
1443
|
+
rejectedBranchIds?: readonly string[];
|
|
1444
|
+
metadata?: unknown;
|
|
1445
|
+
}
|
|
908
1446
|
export interface FrontierSwarmScheduleInput {
|
|
909
1447
|
plan: FrontierSwarmPlan;
|
|
910
1448
|
run?: FrontierSwarmRun;
|
|
@@ -1212,6 +1750,20 @@ export interface FrontierSwarmRun {
|
|
|
1212
1750
|
summary: FrontierSwarmSummary;
|
|
1213
1751
|
metadata?: JsonObject;
|
|
1214
1752
|
}
|
|
1753
|
+
export interface FrontierSwarmRunEventAdapterOptions {
|
|
1754
|
+
runId?: string;
|
|
1755
|
+
actorId?: FrontierRunActorId;
|
|
1756
|
+
startActorSeq?: number;
|
|
1757
|
+
parents?: readonly FrontierRunEventId[];
|
|
1758
|
+
time?: string;
|
|
1759
|
+
now?: number;
|
|
1760
|
+
metadata?: unknown;
|
|
1761
|
+
}
|
|
1762
|
+
export interface FrontierSwarmRunProjectionOptions {
|
|
1763
|
+
runId?: string;
|
|
1764
|
+
goal?: string;
|
|
1765
|
+
metadata?: unknown;
|
|
1766
|
+
}
|
|
1215
1767
|
export interface FrontierSwarmEventInput {
|
|
1216
1768
|
id?: string;
|
|
1217
1769
|
type: string;
|
|
@@ -1365,6 +1917,8 @@ export interface FrontierSwarmSemanticImportSummary {
|
|
|
1365
1917
|
patchHints?: number;
|
|
1366
1918
|
[key: string]: unknown;
|
|
1367
1919
|
};
|
|
1920
|
+
semanticChanges?: readonly FrontierSwarmSemanticChange[];
|
|
1921
|
+
mergeCandidates?: readonly FrontierSwarmMergeCandidate[];
|
|
1368
1922
|
dependencies?: unknown;
|
|
1369
1923
|
semanticEditScripts?: unknown;
|
|
1370
1924
|
semanticEditProjection?: unknown;
|
|
@@ -1570,10 +2124,11 @@ export interface FrontierSwarmMergeIndexEntry {
|
|
|
1570
2124
|
export interface FrontierSwarmMergeConflict {
|
|
1571
2125
|
jobIds: string[];
|
|
1572
2126
|
key: string;
|
|
1573
|
-
kind: 'path' | 'region' | 'symbol';
|
|
2127
|
+
kind: 'path' | 'region' | 'symbol' | 'public-contract';
|
|
1574
2128
|
path?: string;
|
|
1575
2129
|
region?: string;
|
|
1576
2130
|
symbol?: string;
|
|
2131
|
+
publicContract?: string;
|
|
1577
2132
|
}
|
|
1578
2133
|
export interface FrontierSwarmRegionOwnershipInput {
|
|
1579
2134
|
changedPaths?: readonly string[];
|
|
@@ -2924,16 +3479,20 @@ export interface FrontierSwarmMergeQueuePromotion {
|
|
|
2924
3479
|
export type FrontierSwarmCoordinatorAgentDrainDecision = 'applied' | 'queued' | 'escalated' | 'rerun' | 'rejected' | 'recorded' | 'blocked' | string;
|
|
2925
3480
|
export type FrontierSwarmCoordinatorAgentDrainClassification = 'terminal' | 'non-terminal' | string;
|
|
2926
3481
|
export type FrontierSwarmQueueOutcomeCategory = 'terminal' | 'continuation' | 'coordinator-review' | 'human-blocked' | 'stale-rerun' | 'conflict' | string;
|
|
2927
|
-
export type FrontierSwarmQueueTerminalOutcome = 'applied' | 'committed' | 'checked' | 'superseded' | 'no-change' | 'rejected' | 'rerun' | 'conflict-blocked' | 'human-question' | 'recorded' | 'closed' | string;
|
|
3482
|
+
export type FrontierSwarmQueueTerminalOutcome = 'applied' | 'committed' | 'checked' | 'superseded' | 'no-change' | 'research-complete' | 'rejected' | 'rerun' | 'conflict-blocked' | 'human-question' | 'recorded' | 'closed' | string;
|
|
2928
3483
|
export type FrontierSwarmQueueContinuationOutcome = 'queued' | 'continued' | 'ready' | 'running' | 'leased' | string;
|
|
2929
3484
|
export type FrontierSwarmQueueCoordinatorReviewOutcome = 'coordinator-review' | 'escalated' | 'needs-port' | string;
|
|
2930
3485
|
export type FrontierSwarmQueueHumanBlockedOutcome = 'human-blocked' | 'human-question' | 'blocked' | string;
|
|
2931
3486
|
export type FrontierSwarmQueueStaleRerunOutcome = 'stale-rerun' | 'rerun' | string;
|
|
2932
3487
|
export type FrontierSwarmQueueConflictOutcome = 'conflict' | 'merge-conflict' | 'conflict-blocked' | string;
|
|
2933
3488
|
export type FrontierSwarmQueueOutcome = FrontierSwarmQueueTerminalOutcome | FrontierSwarmQueueContinuationOutcome | FrontierSwarmQueueCoordinatorReviewOutcome | FrontierSwarmQueueHumanBlockedOutcome | FrontierSwarmQueueStaleRerunOutcome | FrontierSwarmQueueConflictOutcome;
|
|
2934
|
-
export declare const FRONTIER_SWARM_TERMINAL_OUTCOME_LABELS: readonly ["applied", "committed", "checked", "superseded", "evidence-only", "no-change", "generated-by-collector", "patch-missing", "bundle-missing", "rerun", "rejected", "conflict-blocked", "human-question", "human-blocked", "coordinator-review"];
|
|
3489
|
+
export declare const FRONTIER_SWARM_TERMINAL_OUTCOME_LABELS: readonly ["applied", "committed", "checked", "superseded", "evidence-only", "no-change", "research-complete", "generated-by-collector", "patch-missing", "bundle-missing", "rerun", "rejected", "conflict-blocked", "human-question", "human-blocked", "coordinator-review"];
|
|
2935
3490
|
export type FrontierSwarmTerminalOutcomeLabel = typeof FRONTIER_SWARM_TERMINAL_OUTCOME_LABELS[number] | string;
|
|
2936
3491
|
export type FrontierSwarmTerminalOutcomeCategory = 'success' | 'incomplete' | 'rerun' | 'rejected' | 'blocked' | 'review' | 'unknown' | string;
|
|
3492
|
+
export declare const FRONTIER_SWARM_TERMINAL_OUTCOME_STATUSES: readonly ["applied", "rejected", "superseded", "no-change", "conflict", "human-needed", "research-complete", "rerun"];
|
|
3493
|
+
export declare const FRONTIER_SWARM_TERMINAL_OUTCOME_REASON_CODES: readonly ["accepted-by-admission", "failed-verification", "superseded-by-newer-output", "no-effective-change", "conflict-detected", "human-decision-required", "research-complete", "stale-rerun-required"];
|
|
3494
|
+
export type FrontierSwarmTerminalOutcomeStatus = typeof FRONTIER_SWARM_TERMINAL_OUTCOME_STATUSES[number] | string;
|
|
3495
|
+
export type FrontierSwarmTerminalOutcomeReasonCode = typeof FRONTIER_SWARM_TERMINAL_OUTCOME_REASON_CODES[number] | string;
|
|
2937
3496
|
export interface FrontierSwarmTerminalOutcomeInput {
|
|
2938
3497
|
label?: FrontierSwarmTerminalOutcomeLabel | string;
|
|
2939
3498
|
outcome?: FrontierSwarmTerminalOutcomeLabel | string;
|
|
@@ -2963,6 +3522,65 @@ export interface FrontierSwarmTerminalOutcome {
|
|
|
2963
3522
|
reasons: string[];
|
|
2964
3523
|
metadata?: JsonObject;
|
|
2965
3524
|
}
|
|
3525
|
+
export interface FrontierSwarmTerminalOutcomeRecordInput {
|
|
3526
|
+
id?: string;
|
|
3527
|
+
subjectId?: string;
|
|
3528
|
+
subjectAliases?: readonly string[];
|
|
3529
|
+
jobId?: string;
|
|
3530
|
+
taskId?: string;
|
|
3531
|
+
queueId?: string;
|
|
3532
|
+
queueItemId?: string;
|
|
3533
|
+
queueItemIds?: readonly string[];
|
|
3534
|
+
lane?: string;
|
|
3535
|
+
source?: string;
|
|
3536
|
+
status?: FrontierSwarmTerminalOutcomeStatus | string;
|
|
3537
|
+
outcome?: FrontierSwarmTerminalOutcomeInput | FrontierSwarmTerminalOutcomeLabel | string;
|
|
3538
|
+
label?: FrontierSwarmTerminalOutcomeLabel | string;
|
|
3539
|
+
decision?: string;
|
|
3540
|
+
admitted?: boolean;
|
|
3541
|
+
reasonCodes?: readonly FrontierSwarmTerminalOutcomeReasonCode[];
|
|
3542
|
+
reasons?: readonly string[];
|
|
3543
|
+
conflictingJobIds?: readonly string[];
|
|
3544
|
+
supersedes?: readonly string[];
|
|
3545
|
+
supersededBy?: string;
|
|
3546
|
+
rerunOf?: string;
|
|
3547
|
+
evidenceRefs?: readonly (string | FrontierSwarmNamedRefInput)[];
|
|
3548
|
+
generatedAt?: number;
|
|
3549
|
+
metadata?: unknown;
|
|
3550
|
+
}
|
|
3551
|
+
export interface FrontierSwarmTerminalOutcomeRecord {
|
|
3552
|
+
kind: typeof FRONTIER_SWARM_TERMINAL_OUTCOME_RECORD_KIND;
|
|
3553
|
+
version: typeof FRONTIER_SWARM_TERMINAL_OUTCOME_RECORD_VERSION;
|
|
3554
|
+
id: string;
|
|
3555
|
+
generatedAt: number;
|
|
3556
|
+
subjectId: string;
|
|
3557
|
+
subjectAliases: string[];
|
|
3558
|
+
jobId?: string;
|
|
3559
|
+
taskId?: string;
|
|
3560
|
+
queueId?: string;
|
|
3561
|
+
queueItemIds: string[];
|
|
3562
|
+
lane?: string;
|
|
3563
|
+
source?: string;
|
|
3564
|
+
status: FrontierSwarmTerminalOutcomeStatus;
|
|
3565
|
+
outcome: FrontierSwarmTerminalOutcome;
|
|
3566
|
+
terminal: true;
|
|
3567
|
+
admitted: boolean;
|
|
3568
|
+
success: boolean;
|
|
3569
|
+
rejected: boolean;
|
|
3570
|
+
conflict: boolean;
|
|
3571
|
+
humanNeeded: boolean;
|
|
3572
|
+
rerun: boolean;
|
|
3573
|
+
noChange: boolean;
|
|
3574
|
+
researchComplete: boolean;
|
|
3575
|
+
reasonCodes: FrontierSwarmTerminalOutcomeReasonCode[];
|
|
3576
|
+
reasons: string[];
|
|
3577
|
+
conflictingJobIds: string[];
|
|
3578
|
+
supersedes: string[];
|
|
3579
|
+
supersededBy?: string;
|
|
3580
|
+
rerunOf?: string;
|
|
3581
|
+
evidenceRefs: FrontierSwarmNamedRef[];
|
|
3582
|
+
metadata?: JsonObject;
|
|
3583
|
+
}
|
|
2966
3584
|
export interface FrontierSwarmQueueOutcomeClassification {
|
|
2967
3585
|
category: FrontierSwarmQueueOutcomeCategory;
|
|
2968
3586
|
outcome: FrontierSwarmQueueOutcome;
|
|
@@ -3475,12 +4093,107 @@ export declare function compileSwarm(input: FrontierSwarmManifest | FrontierSwar
|
|
|
3475
4093
|
export declare function validateSwarmManifest(input: FrontierSwarmManifest | FrontierSwarmManifestInput): FrontierSwarmValidation;
|
|
3476
4094
|
export declare function createSwarmPlan(manifestInput: FrontierSwarmManifest | FrontierSwarmManifestInput, taskInput: readonly FrontierSwarmTaskInput[] | FrontierSwarmTaskSetInput | readonly FrontierSwarmTask[], options?: FrontierSwarmPlanInput): FrontierSwarmPlan;
|
|
3477
4095
|
export declare function createSwarmTaskSelection(manifestInput: FrontierSwarmManifest | FrontierSwarmManifestInput, taskInput: readonly FrontierSwarmTaskInput[] | FrontierSwarmTaskSetInput | readonly FrontierSwarmTask[], options?: FrontierSwarmTaskSelectionInput): FrontierSwarmTaskSelection;
|
|
4096
|
+
export declare function createSwarmRunGraph(input?: FrontierSwarmRunGraphInput): FrontierSwarmRunGraph;
|
|
4097
|
+
export declare function normalizeSwarmRunGraph(input: FrontierSwarmRunGraphInput | FrontierSwarmRunGraph): FrontierSwarmRunGraph;
|
|
4098
|
+
export declare function createSwarmGraphSnapshot(input: FrontierSwarmGraphSnapshotInput): FrontierSwarmGraphSnapshot;
|
|
4099
|
+
export declare function createSwarmGateRecord(input: FrontierSwarmGateRecordInput): FrontierSwarmGateRecord;
|
|
4100
|
+
export declare function createSwarmEvidenceRecord(input: FrontierSwarmEvidenceRecordInput): FrontierSwarmEvidenceRecord;
|
|
4101
|
+
export declare function createSwarmPatchEvent(input: FrontierSwarmPatchEventInput): FrontierSwarmPatchEvent;
|
|
4102
|
+
export declare function createSwarmReplayRecord(input?: FrontierSwarmReplayRecordInput): FrontierSwarmReplayRecord;
|
|
4103
|
+
export declare function createSwarmImprovementLoop(input?: FrontierSwarmImprovementLoopInput): FrontierSwarmImprovementLoop;
|
|
4104
|
+
export declare function mapSwarmGateEvidenceToGraph(input: {
|
|
4105
|
+
runId?: string;
|
|
4106
|
+
gates?: readonly (FrontierSwarmGateRecordInput | FrontierSwarmGateRecord)[];
|
|
4107
|
+
evidence?: readonly (FrontierSwarmEvidenceRecordInput | FrontierSwarmEvidenceRecord)[];
|
|
4108
|
+
generatedAt?: number;
|
|
4109
|
+
}): FrontierSwarmRunGraph;
|
|
4110
|
+
export declare function createSwarmGateEvidenceGraph(input: Parameters<typeof mapSwarmGateEvidenceToGraph>[0]): FrontierSwarmRunGraph;
|
|
4111
|
+
export declare function classifySwarmMergeCandidateAdmission(input?: {
|
|
4112
|
+
status?: FrontierSwarmMergeCandidateAdmissionStatus;
|
|
4113
|
+
reasonCodes?: readonly FrontierSwarmMergeCandidateReasonCode[];
|
|
4114
|
+
} | readonly FrontierSwarmMergeCandidateReasonCode[]): FrontierSwarmMergeCandidateAdmissionStatus;
|
|
4115
|
+
export declare function createSwarmSemanticChange(input: FrontierSwarmSemanticChangeInput | FrontierSwarmSemanticChange): FrontierSwarmSemanticChange;
|
|
4116
|
+
export declare function createSwarmMergeCandidate(input: FrontierSwarmMergeCandidateInput | FrontierSwarmMergeCandidate): FrontierSwarmMergeCandidate;
|
|
4117
|
+
export declare function mapSwarmMergeCandidatesToGraph(input: FrontierSwarmMergeCandidateGraphInput): FrontierSwarmMergeCandidateGraphProjection;
|
|
4118
|
+
export declare function createSwarmMergeCandidateGraph(input: FrontierSwarmMergeCandidateGraphInput): FrontierSwarmRunGraph;
|
|
4119
|
+
export declare function mapSwarmReplayRecordsToGraph(input: {
|
|
4120
|
+
runId?: string;
|
|
4121
|
+
replayRecords?: readonly (FrontierSwarmReplayRecordInput | FrontierSwarmReplayRecord)[];
|
|
4122
|
+
generatedAt?: number;
|
|
4123
|
+
}): FrontierSwarmRunGraph;
|
|
4124
|
+
export declare function createSwarmReplayRecordGraph(input: Parameters<typeof mapSwarmReplayRecordsToGraph>[0]): FrontierSwarmRunGraph;
|
|
4125
|
+
export declare function mapSwarmImprovementLoopsToGraph(input: {
|
|
4126
|
+
runId?: string;
|
|
4127
|
+
improvementLoops?: readonly (FrontierSwarmImprovementLoopInput | FrontierSwarmImprovementLoop)[];
|
|
4128
|
+
generatedAt?: number;
|
|
4129
|
+
}): FrontierSwarmRunGraph;
|
|
4130
|
+
export declare function createSwarmImprovementLoopGraph(input: Parameters<typeof mapSwarmImprovementLoopsToGraph>[0]): FrontierSwarmRunGraph;
|
|
4131
|
+
export declare function createSwarmRunGraphChunk(input?: FrontierSwarmRunGraphChunkInput): FrontierSwarmRunGraphChunk;
|
|
4132
|
+
export declare function createSwarmRunGraphChain(input: {
|
|
4133
|
+
id?: string;
|
|
4134
|
+
nodes: readonly FrontierSwarmGraphNodeInput[];
|
|
4135
|
+
edgeKind?: FrontierSwarmGraphEdgeKind;
|
|
4136
|
+
metadata?: unknown;
|
|
4137
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4138
|
+
export declare function createSwarmRunGraphFork(input: {
|
|
4139
|
+
id?: string;
|
|
4140
|
+
source: FrontierSwarmGraphNodeInput;
|
|
4141
|
+
branches: readonly FrontierSwarmGraphNodeInput[];
|
|
4142
|
+
metadata?: unknown;
|
|
4143
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4144
|
+
export declare function createSwarmRunGraphJoin(input: {
|
|
4145
|
+
id?: string;
|
|
4146
|
+
branches: readonly FrontierSwarmGraphNodeInput[];
|
|
4147
|
+
join: FrontierSwarmGraphNodeInput;
|
|
4148
|
+
metadata?: unknown;
|
|
4149
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4150
|
+
export declare function createSwarmRunGraphBarrier(input: FrontierSwarmRunGraphBarrierInput): FrontierSwarmRunGraphChunk;
|
|
4151
|
+
export declare function createSwarmRunGraphRaceSelect(input: FrontierSwarmRunGraphRaceSelectInput): FrontierSwarmRunGraphChunk;
|
|
4152
|
+
export declare function createSwarmRunGraphTournament(input: {
|
|
4153
|
+
id?: string;
|
|
4154
|
+
candidates: readonly FrontierSwarmGraphNodeInput[];
|
|
4155
|
+
winner?: string;
|
|
4156
|
+
rejectedCandidates?: readonly string[];
|
|
4157
|
+
metadata?: unknown;
|
|
4158
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4159
|
+
export declare function createSwarmRunGraphRetryLoop(input: {
|
|
4160
|
+
id?: string;
|
|
4161
|
+
action: FrontierSwarmGraphNodeInput;
|
|
4162
|
+
gate: FrontierSwarmGraphNodeInput;
|
|
4163
|
+
retry: FrontierSwarmGraphNodeInput;
|
|
4164
|
+
success?: FrontierSwarmGraphNodeInput;
|
|
4165
|
+
failure?: FrontierSwarmGraphNodeInput;
|
|
4166
|
+
metadata?: unknown;
|
|
4167
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4168
|
+
export declare function createSwarmRunGraphRsiLoop(input: {
|
|
4169
|
+
id?: string;
|
|
4170
|
+
observe: FrontierSwarmGraphNodeInput;
|
|
4171
|
+
improve: FrontierSwarmGraphNodeInput;
|
|
4172
|
+
apply?: FrontierSwarmGraphNodeInput;
|
|
4173
|
+
metadata?: unknown;
|
|
4174
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4175
|
+
export declare function createSwarmRunGraphSynthesisChunk(input?: FrontierSwarmRunGraphSynthesisChunkInput): FrontierSwarmRunGraphChunk;
|
|
4176
|
+
export declare function createSwarmRunGraphVerificationGateChunk(input: FrontierSwarmRunGraphVerificationGateChunkInput): FrontierSwarmRunGraphChunk;
|
|
4177
|
+
export declare function createSwarmRunGraphMergeGateChunk(input: FrontierSwarmRunGraphMergeGateChunkInput): FrontierSwarmRunGraphChunk;
|
|
3478
4178
|
export declare const FRONTIER_SWARM_TASK_MODEL_PROFILES: readonly FrontierSwarmTaskModelProfile[];
|
|
3479
4179
|
export declare function resolveSwarmTaskModelProfile(task: FrontierSwarmTask, profiles?: readonly FrontierSwarmTaskModelProfile[]): FrontierSwarmTaskModelProfile;
|
|
3480
4180
|
export declare function createSwarmModelRoute(input: FrontierSwarmModelRouterInput): FrontierSwarmModelRoute;
|
|
3481
4181
|
export declare function createSwarmPanelEvaluation(input?: FrontierSwarmPanelEvaluationInput): FrontierSwarmPanelEvaluation;
|
|
3482
4182
|
export declare function createSwarmOptimizationSummary(input?: FrontierSwarmOptimizationSummaryInput): FrontierSwarmOptimizationSummary;
|
|
3483
4183
|
export declare function createSwarmRun(input: FrontierSwarmRunInput): FrontierSwarmRun;
|
|
4184
|
+
export declare function createRunEventsFromSwarmPlan(plan: FrontierSwarmPlan, options?: FrontierSwarmRunEventAdapterOptions): FrontierRunEvent[];
|
|
4185
|
+
export declare function createRunEventsFromSwarmLease(lease: FrontierSwarmLease, options?: FrontierSwarmRunEventAdapterOptions & {
|
|
4186
|
+
job?: FrontierSwarmJob;
|
|
4187
|
+
eventType?: 'lease.requested' | 'lease.granted' | 'lease.released';
|
|
4188
|
+
}): FrontierRunEvent[];
|
|
4189
|
+
export declare function createRunEventsFromSwarmResult(resultInput: FrontierSwarmJobResult | FrontierSwarmJobResultInput, options?: FrontierSwarmRunEventAdapterOptions & {
|
|
4190
|
+
job?: FrontierSwarmJob;
|
|
4191
|
+
}): FrontierRunEvent[];
|
|
4192
|
+
export declare function createRunEventsFromMergeBundle(bundle: FrontierSwarmMergeBundle, options?: FrontierSwarmRunEventAdapterOptions): FrontierRunEvent[];
|
|
4193
|
+
export declare function createRunEventsFromCoordinatorDecision(decision: FrontierSwarmQueueOutcomeDecision | FrontierSwarmQueueOutcomeDecisionInput, options?: FrontierSwarmRunEventAdapterOptions): FrontierRunEvent[];
|
|
4194
|
+
export declare function createRunProjectionFromSwarmRunEvents(events: readonly FrontierRunEvent[], options?: FrontierSwarmRunProjectionOptions): FrontierRunProjection;
|
|
4195
|
+
export declare function createRunDashboardFromSwarmRun(input: FrontierSwarmRun | readonly FrontierRunEvent[], options?: FrontierSwarmRunProjectionOptions): FrontierRunDashboardSnapshot;
|
|
4196
|
+
export declare function createRunEventsFromSwarmRun(run: FrontierSwarmRun, options?: FrontierSwarmRunEventAdapterOptions): FrontierRunEvent[];
|
|
3484
4197
|
export declare function recordSwarmEvent(runInput: FrontierSwarmRun, eventInput: FrontierSwarmEventInput): FrontierSwarmRun;
|
|
3485
4198
|
export declare function createSwarmMailbox(input?: FrontierSwarmMailboxInput): FrontierSwarmMailbox;
|
|
3486
4199
|
export declare function createSwarmEventStream(input?: FrontierSwarmEventStreamInput): FrontierSwarmEventStream;
|
|
@@ -3544,6 +4257,7 @@ export declare function createSwarmQueueOutcomeDecision(input: FrontierSwarmQueu
|
|
|
3544
4257
|
export declare function createSwarmQueueOutcomeModel(input?: FrontierSwarmQueueOutcomeModelInput): FrontierSwarmQueueOutcomeModel;
|
|
3545
4258
|
export declare function collapseSwarmQueueOutcomeDecisions(input: FrontierSwarmQueueOutcomeModelInput | readonly (FrontierSwarmQueueOutcomeDecisionInput | FrontierSwarmQueueOutcomeDecision)[]): FrontierSwarmQueueOutcomeModel;
|
|
3546
4259
|
export declare function normalizeSwarmTerminalOutcome(input?: FrontierSwarmTerminalOutcomeInput | FrontierSwarmTerminalOutcomeLabel | string): FrontierSwarmTerminalOutcome;
|
|
4260
|
+
export declare function createSwarmTerminalOutcomeRecord(input?: FrontierSwarmTerminalOutcomeRecordInput): FrontierSwarmTerminalOutcomeRecord;
|
|
3547
4261
|
export declare function reconcileSwarmTerminalState(input?: FrontierSwarmTerminalStateReconciliationInput): FrontierSwarmTerminalStateReconciliation;
|
|
3548
4262
|
export declare function resolveSwarmCompute(manifestInput: FrontierSwarmManifest | FrontierSwarmManifestInput, taskInput: FrontierSwarmTask | FrontierSwarmTaskInput): FrontierSwarmCompute;
|
|
3549
4263
|
export declare function createSwarmProof(input: FrontierSwarmManifest | FrontierSwarmPlan | FrontierSwarmRun, options?: {
|