@shapeshift-labs/frontier-swarm 0.5.21 → 0.5.23
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 +778 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2482 -24
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
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';
|
|
3
|
+
import { validateSemanticLeaseFence, type FrontierSemanticLeaseMutation, type FrontierSemanticLeaseRecord, type FrontierSemanticLeaseScope, type FrontierSemanticLeaseState } from '@shapeshift-labs/frontier-lease';
|
|
2
4
|
export declare const FRONTIER_SWARM_MANIFEST_KIND = "frontier.swarm.manifest";
|
|
3
5
|
export declare const FRONTIER_SWARM_MANIFEST_VERSION = 1;
|
|
4
6
|
export declare const FRONTIER_SWARM_TASK_KIND = "frontier.swarm.task";
|
|
@@ -11,6 +13,22 @@ export declare const FRONTIER_SWARM_EVENT_KIND = "frontier.swarm.event";
|
|
|
11
13
|
export declare const FRONTIER_SWARM_EVENT_VERSION = 1;
|
|
12
14
|
export declare const FRONTIER_SWARM_EVENT_STREAM_KIND = "frontier.swarm.event-stream";
|
|
13
15
|
export declare const FRONTIER_SWARM_EVENT_STREAM_VERSION = 1;
|
|
16
|
+
export declare const FRONTIER_SWARM_RUN_GRAPH_KIND = "frontier.swarm.run-graph";
|
|
17
|
+
export declare const FRONTIER_SWARM_RUN_GRAPH_VERSION = 1;
|
|
18
|
+
export declare const FRONTIER_SWARM_GRAPH_SNAPSHOT_KIND = "frontier.swarm.graph-snapshot";
|
|
19
|
+
export declare const FRONTIER_SWARM_GRAPH_SNAPSHOT_VERSION = 1;
|
|
20
|
+
export declare const FRONTIER_SWARM_RUN_GRAPH_CHUNK_KIND = "frontier.swarm.run-graph-chunk";
|
|
21
|
+
export declare const FRONTIER_SWARM_RUN_GRAPH_CHUNK_VERSION = 1;
|
|
22
|
+
export declare const FRONTIER_SWARM_GATE_RECORD_KIND = "frontier.swarm.gate-record";
|
|
23
|
+
export declare const FRONTIER_SWARM_GATE_RECORD_VERSION = 1;
|
|
24
|
+
export declare const FRONTIER_SWARM_EVIDENCE_RECORD_KIND = "frontier.swarm.evidence-record";
|
|
25
|
+
export declare const FRONTIER_SWARM_EVIDENCE_RECORD_VERSION = 1;
|
|
26
|
+
export declare const FRONTIER_SWARM_PATCH_EVENT_KIND = "frontier.swarm.patch-event";
|
|
27
|
+
export declare const FRONTIER_SWARM_PATCH_EVENT_VERSION = 1;
|
|
28
|
+
export declare const FRONTIER_SWARM_REPLAY_RECORD_KIND = "frontier.swarm.replay-record";
|
|
29
|
+
export declare const FRONTIER_SWARM_REPLAY_RECORD_VERSION = 1;
|
|
30
|
+
export declare const FRONTIER_SWARM_IMPROVEMENT_LOOP_KIND = "frontier.swarm.improvement-loop";
|
|
31
|
+
export declare const FRONTIER_SWARM_IMPROVEMENT_LOOP_VERSION = 1;
|
|
14
32
|
export declare const FRONTIER_SWARM_MAILBOX_KIND = "frontier.swarm.mailbox";
|
|
15
33
|
export declare const FRONTIER_SWARM_MAILBOX_VERSION = 1;
|
|
16
34
|
export declare const FRONTIER_SWARM_PROOF_KIND = "frontier.swarm.proof";
|
|
@@ -31,6 +49,10 @@ export declare const FRONTIER_SWARM_MERGE_PLAN_KIND = "frontier.swarm.merge-plan
|
|
|
31
49
|
export declare const FRONTIER_SWARM_MERGE_PLAN_VERSION = 1;
|
|
32
50
|
export declare const FRONTIER_SWARM_MERGE_BUNDLE_KIND = "frontier.swarm.merge-bundle";
|
|
33
51
|
export declare const FRONTIER_SWARM_MERGE_BUNDLE_VERSION = 1;
|
|
52
|
+
export declare const FRONTIER_SWARM_SEMANTIC_CHANGE_KIND = "frontier.swarm.semantic-change";
|
|
53
|
+
export declare const FRONTIER_SWARM_SEMANTIC_CHANGE_VERSION = 1;
|
|
54
|
+
export declare const FRONTIER_SWARM_MERGE_CANDIDATE_KIND = "frontier.swarm.merge-candidate";
|
|
55
|
+
export declare const FRONTIER_SWARM_MERGE_CANDIDATE_VERSION = 1;
|
|
34
56
|
export declare const FRONTIER_SWARM_QUEUE_OVERLAY_KIND = "frontier.swarm.queue-overlay";
|
|
35
57
|
export declare const FRONTIER_SWARM_QUEUE_OVERLAY_VERSION = 1;
|
|
36
58
|
export declare const FRONTIER_SWARM_MERGE_INDEX_KIND = "frontier.swarm.merge-index";
|
|
@@ -97,6 +119,8 @@ export declare const FRONTIER_SWARM_QUEUE_OUTCOME_MODEL_KIND = "frontier.swarm.q
|
|
|
97
119
|
export declare const FRONTIER_SWARM_QUEUE_OUTCOME_MODEL_VERSION = 1;
|
|
98
120
|
export declare const FRONTIER_SWARM_TERMINAL_STATE_RECONCILIATION_KIND = "frontier.swarm.terminal-state-reconciliation";
|
|
99
121
|
export declare const FRONTIER_SWARM_TERMINAL_STATE_RECONCILIATION_VERSION = 1;
|
|
122
|
+
export declare const FRONTIER_SWARM_TERMINAL_OUTCOME_RECORD_KIND = "frontier.swarm.terminal-outcome-record";
|
|
123
|
+
export declare const FRONTIER_SWARM_TERMINAL_OUTCOME_RECORD_VERSION = 1;
|
|
100
124
|
export declare const FRONTIER_SWARM_PRIORITY_POLICY_KIND = "frontier.swarm.priority-policy";
|
|
101
125
|
export declare const FRONTIER_SWARM_PRIORITY_POLICY_VERSION = 1;
|
|
102
126
|
export declare const FRONTIER_SWARM_MODEL_ROUTE_KIND = "frontier.swarm.model-route";
|
|
@@ -111,6 +135,10 @@ export declare const FRONTIER_SWARM_DEFAULT_CODEX_COMPUTE_ID = "codex.gpt-5.5.xh
|
|
|
111
135
|
export declare const FRONTIER_SWARM_DEFAULT_MODEL = "gpt-5.5";
|
|
112
136
|
export declare const FRONTIER_SWARM_DEFAULT_REASONING_EFFORT = "xhigh";
|
|
113
137
|
export declare const FRONTIER_SWARM_VERIFICATION_CATEGORY_HINTS: readonly ["build", "typecheck", "smoke", "unit", "fuzz", "browser", "oracle"];
|
|
138
|
+
export declare const FRONTIER_SWARM_GRAPH_NODE_KINDS: readonly ["intent", "task", "worker", "candidate", "evidence", "gate", "decision", "merge", "replay", "rsi"];
|
|
139
|
+
export declare const FRONTIER_SWARM_GRAPH_EDGE_KINDS: readonly ["dependsOn", "blocks", "produces", "verifies", "conflictsWith", "supersedes", "mergesInto"];
|
|
140
|
+
export declare const FRONTIER_SWARM_MERGE_CANDIDATE_ADMISSION_STATUSES: readonly ["safe", "safe-with-losses", "review-required", "blocked"];
|
|
141
|
+
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
142
|
export type FrontierSwarmComputeKind = 'codex' | 'shell' | 'human' | 'external' | string;
|
|
115
143
|
export type FrontierSwarmReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | string;
|
|
116
144
|
export type FrontierSwarmPolicyMode = 'advisory' | 'hard-file-ownership' | string;
|
|
@@ -905,6 +933,517 @@ export interface FrontierSwarmJobGraphEdge {
|
|
|
905
933
|
to: string;
|
|
906
934
|
type: 'depends-on' | 'parent-task';
|
|
907
935
|
}
|
|
936
|
+
export type FrontierSwarmGraphNodeKind = (typeof FRONTIER_SWARM_GRAPH_NODE_KINDS)[number] | string;
|
|
937
|
+
export type FrontierSwarmGraphEdgeKind = (typeof FRONTIER_SWARM_GRAPH_EDGE_KINDS)[number] | string;
|
|
938
|
+
export type FrontierSwarmGraphStatus = 'pending' | 'running' | 'passed' | 'failed' | 'accepted' | 'rejected' | 'blocked' | 'superseded' | 'unknown' | string;
|
|
939
|
+
export interface FrontierSwarmGraphNodeInput {
|
|
940
|
+
id?: string;
|
|
941
|
+
kind: FrontierSwarmGraphNodeKind;
|
|
942
|
+
title?: string;
|
|
943
|
+
status?: FrontierSwarmGraphStatus;
|
|
944
|
+
jobId?: string;
|
|
945
|
+
taskId?: string;
|
|
946
|
+
path?: string;
|
|
947
|
+
generatedAt?: number;
|
|
948
|
+
metadata?: unknown;
|
|
949
|
+
}
|
|
950
|
+
export interface FrontierSwarmGraphNode {
|
|
951
|
+
id: string;
|
|
952
|
+
kind: FrontierSwarmGraphNodeKind;
|
|
953
|
+
title?: string;
|
|
954
|
+
status?: FrontierSwarmGraphStatus;
|
|
955
|
+
jobId?: string;
|
|
956
|
+
taskId?: string;
|
|
957
|
+
path?: string;
|
|
958
|
+
generatedAt?: number;
|
|
959
|
+
metadata?: JsonObject;
|
|
960
|
+
}
|
|
961
|
+
export interface FrontierSwarmGraphEdgeInput {
|
|
962
|
+
id?: string;
|
|
963
|
+
from: string;
|
|
964
|
+
to: string;
|
|
965
|
+
kind: FrontierSwarmGraphEdgeKind;
|
|
966
|
+
label?: string;
|
|
967
|
+
generatedAt?: number;
|
|
968
|
+
metadata?: unknown;
|
|
969
|
+
}
|
|
970
|
+
export interface FrontierSwarmGraphEdge {
|
|
971
|
+
id: string;
|
|
972
|
+
from: string;
|
|
973
|
+
to: string;
|
|
974
|
+
kind: FrontierSwarmGraphEdgeKind;
|
|
975
|
+
label?: string;
|
|
976
|
+
generatedAt?: number;
|
|
977
|
+
metadata?: JsonObject;
|
|
978
|
+
}
|
|
979
|
+
export type FrontierSwarmMergeCandidateAdmissionStatus = (typeof FRONTIER_SWARM_MERGE_CANDIDATE_ADMISSION_STATUSES)[number] | string;
|
|
980
|
+
export type FrontierSwarmMergeCandidateReasonCode = (typeof FRONTIER_SWARM_MERGE_CANDIDATE_REASON_CODES)[number] | string;
|
|
981
|
+
export type FrontierSwarmSemanticChangeOperation = 'add' | 'modify' | 'delete' | 'move' | 'rename' | 'replace' | 'unknown' | string;
|
|
982
|
+
export type FrontierSwarmSemanticChangeConfidence = FrontierSwarmConfidence | number;
|
|
983
|
+
export interface FrontierSwarmSourceSpanInput {
|
|
984
|
+
path?: string;
|
|
985
|
+
startLine?: number;
|
|
986
|
+
startColumn?: number;
|
|
987
|
+
endLine?: number;
|
|
988
|
+
endColumn?: number;
|
|
989
|
+
startOffset?: number;
|
|
990
|
+
endOffset?: number;
|
|
991
|
+
sourceHash?: string;
|
|
992
|
+
expectedSourceHash?: string;
|
|
993
|
+
metadata?: unknown;
|
|
994
|
+
}
|
|
995
|
+
export interface FrontierSwarmSourceSpan {
|
|
996
|
+
path?: string;
|
|
997
|
+
startLine?: number;
|
|
998
|
+
startColumn?: number;
|
|
999
|
+
endLine?: number;
|
|
1000
|
+
endColumn?: number;
|
|
1001
|
+
startOffset?: number;
|
|
1002
|
+
endOffset?: number;
|
|
1003
|
+
sourceHash?: string;
|
|
1004
|
+
expectedSourceHash?: string;
|
|
1005
|
+
metadata?: JsonObject;
|
|
1006
|
+
}
|
|
1007
|
+
export interface FrontierSwarmSemanticChangeInput {
|
|
1008
|
+
id?: string;
|
|
1009
|
+
symbolId: string;
|
|
1010
|
+
declarationKind: string;
|
|
1011
|
+
sourceSpan?: FrontierSwarmSourceSpanInput;
|
|
1012
|
+
sourcePath?: string;
|
|
1013
|
+
sourceHash?: string;
|
|
1014
|
+
expectedSourceHash?: string;
|
|
1015
|
+
operation: FrontierSwarmSemanticChangeOperation;
|
|
1016
|
+
confidence?: FrontierSwarmSemanticChangeConfidence;
|
|
1017
|
+
conflictReason?: FrontierSwarmMergeCandidateReasonCode;
|
|
1018
|
+
status?: FrontierSwarmMergeCandidateAdmissionStatus;
|
|
1019
|
+
reasonCodes?: readonly FrontierSwarmMergeCandidateReasonCode[];
|
|
1020
|
+
generatedAt?: number;
|
|
1021
|
+
metadata?: unknown;
|
|
1022
|
+
}
|
|
1023
|
+
export interface FrontierSwarmSemanticChange {
|
|
1024
|
+
kind: typeof FRONTIER_SWARM_SEMANTIC_CHANGE_KIND;
|
|
1025
|
+
version: typeof FRONTIER_SWARM_SEMANTIC_CHANGE_VERSION;
|
|
1026
|
+
id: string;
|
|
1027
|
+
symbolId: string;
|
|
1028
|
+
declarationKind: string;
|
|
1029
|
+
sourceSpan: FrontierSwarmSourceSpan;
|
|
1030
|
+
operation: FrontierSwarmSemanticChangeOperation;
|
|
1031
|
+
confidence: FrontierSwarmSemanticChangeConfidence;
|
|
1032
|
+
conflictReason?: FrontierSwarmMergeCandidateReasonCode;
|
|
1033
|
+
status: FrontierSwarmMergeCandidateAdmissionStatus;
|
|
1034
|
+
reasonCodes: FrontierSwarmMergeCandidateReasonCode[];
|
|
1035
|
+
generatedAt: number;
|
|
1036
|
+
metadata?: JsonObject;
|
|
1037
|
+
}
|
|
1038
|
+
export interface FrontierSwarmMergeCandidateInput {
|
|
1039
|
+
id?: string;
|
|
1040
|
+
jobId?: string;
|
|
1041
|
+
taskId?: string;
|
|
1042
|
+
lane?: string;
|
|
1043
|
+
title?: string;
|
|
1044
|
+
sidecarPath?: string;
|
|
1045
|
+
sidecarRequired?: boolean;
|
|
1046
|
+
sidecarEmpty?: boolean;
|
|
1047
|
+
symbolId?: string;
|
|
1048
|
+
declarationKind?: string;
|
|
1049
|
+
sourceSpan?: FrontierSwarmSourceSpanInput;
|
|
1050
|
+
sourcePath?: string;
|
|
1051
|
+
sourceHash?: string;
|
|
1052
|
+
expectedSourceHash?: string;
|
|
1053
|
+
operation?: FrontierSwarmSemanticChangeOperation;
|
|
1054
|
+
confidence?: FrontierSwarmSemanticChangeConfidence;
|
|
1055
|
+
conflictReason?: FrontierSwarmMergeCandidateReasonCode;
|
|
1056
|
+
status?: FrontierSwarmMergeCandidateAdmissionStatus;
|
|
1057
|
+
reasonCodes?: readonly FrontierSwarmMergeCandidateReasonCode[];
|
|
1058
|
+
semanticChanges?: readonly (FrontierSwarmSemanticChangeInput | FrontierSwarmSemanticChange)[];
|
|
1059
|
+
changes?: readonly (FrontierSwarmSemanticChangeInput | FrontierSwarmSemanticChange)[];
|
|
1060
|
+
hasLosses?: boolean;
|
|
1061
|
+
testsRequired?: boolean;
|
|
1062
|
+
testsPassed?: boolean;
|
|
1063
|
+
evidencePaths?: readonly string[];
|
|
1064
|
+
generatedAt?: number;
|
|
1065
|
+
metadata?: unknown;
|
|
1066
|
+
}
|
|
1067
|
+
export interface FrontierSwarmMergeCandidate {
|
|
1068
|
+
kind: typeof FRONTIER_SWARM_MERGE_CANDIDATE_KIND;
|
|
1069
|
+
version: typeof FRONTIER_SWARM_MERGE_CANDIDATE_VERSION;
|
|
1070
|
+
id: string;
|
|
1071
|
+
jobId?: string;
|
|
1072
|
+
taskId?: string;
|
|
1073
|
+
lane?: string;
|
|
1074
|
+
title?: string;
|
|
1075
|
+
sidecarPath?: string;
|
|
1076
|
+
symbolId: string;
|
|
1077
|
+
symbolIds: string[];
|
|
1078
|
+
declarationKind: string;
|
|
1079
|
+
declarationKinds: string[];
|
|
1080
|
+
sourceSpan: FrontierSwarmSourceSpan;
|
|
1081
|
+
operation: FrontierSwarmSemanticChangeOperation;
|
|
1082
|
+
confidence: FrontierSwarmSemanticChangeConfidence;
|
|
1083
|
+
conflictReason?: FrontierSwarmMergeCandidateReasonCode;
|
|
1084
|
+
status: FrontierSwarmMergeCandidateAdmissionStatus;
|
|
1085
|
+
reasonCodes: FrontierSwarmMergeCandidateReasonCode[];
|
|
1086
|
+
semanticChanges: FrontierSwarmSemanticChange[];
|
|
1087
|
+
changedPaths: string[];
|
|
1088
|
+
evidencePaths: string[];
|
|
1089
|
+
generatedAt: number;
|
|
1090
|
+
summary: {
|
|
1091
|
+
changeCount: number;
|
|
1092
|
+
symbolCount: number;
|
|
1093
|
+
reasonCount: number;
|
|
1094
|
+
};
|
|
1095
|
+
metadata?: JsonObject;
|
|
1096
|
+
}
|
|
1097
|
+
export interface FrontierSwarmMergeCandidateGraphInput {
|
|
1098
|
+
id?: string;
|
|
1099
|
+
runId?: string;
|
|
1100
|
+
title?: string;
|
|
1101
|
+
candidates: readonly (FrontierSwarmMergeCandidateInput | FrontierSwarmMergeCandidate)[];
|
|
1102
|
+
includeChangeNodes?: boolean;
|
|
1103
|
+
generatedAt?: number;
|
|
1104
|
+
metadata?: unknown;
|
|
1105
|
+
}
|
|
1106
|
+
export interface FrontierSwarmMergeCandidateGraphProjection {
|
|
1107
|
+
candidates: FrontierSwarmMergeCandidate[];
|
|
1108
|
+
nodes: FrontierSwarmGraphNodeInput[];
|
|
1109
|
+
edges: FrontierSwarmGraphEdgeInput[];
|
|
1110
|
+
}
|
|
1111
|
+
export interface FrontierSwarmGraphEventInput {
|
|
1112
|
+
id?: string;
|
|
1113
|
+
type: string;
|
|
1114
|
+
nodeId?: string;
|
|
1115
|
+
edgeId?: string;
|
|
1116
|
+
timestamp?: number;
|
|
1117
|
+
metadata?: unknown;
|
|
1118
|
+
}
|
|
1119
|
+
export interface FrontierSwarmGraphEvent {
|
|
1120
|
+
id: string;
|
|
1121
|
+
type: string;
|
|
1122
|
+
nodeId?: string;
|
|
1123
|
+
edgeId?: string;
|
|
1124
|
+
timestamp: number;
|
|
1125
|
+
metadata?: JsonObject;
|
|
1126
|
+
}
|
|
1127
|
+
export interface FrontierSwarmRunGraphSummary {
|
|
1128
|
+
nodeCount: number;
|
|
1129
|
+
edgeCount: number;
|
|
1130
|
+
eventCount: number;
|
|
1131
|
+
nodeKinds: Record<string, number>;
|
|
1132
|
+
edgeKinds: Record<string, number>;
|
|
1133
|
+
openBlockerCount: number;
|
|
1134
|
+
humanQuestionCount: number;
|
|
1135
|
+
}
|
|
1136
|
+
export interface FrontierSwarmRunGraphInput {
|
|
1137
|
+
id?: string;
|
|
1138
|
+
runId?: string;
|
|
1139
|
+
title?: string;
|
|
1140
|
+
generatedAt?: number;
|
|
1141
|
+
nodes?: readonly FrontierSwarmGraphNodeInput[];
|
|
1142
|
+
edges?: readonly FrontierSwarmGraphEdgeInput[];
|
|
1143
|
+
events?: readonly FrontierSwarmGraphEventInput[];
|
|
1144
|
+
metadata?: unknown;
|
|
1145
|
+
}
|
|
1146
|
+
export interface FrontierSwarmRunGraph {
|
|
1147
|
+
kind: typeof FRONTIER_SWARM_RUN_GRAPH_KIND;
|
|
1148
|
+
version: typeof FRONTIER_SWARM_RUN_GRAPH_VERSION;
|
|
1149
|
+
id: string;
|
|
1150
|
+
runId?: string;
|
|
1151
|
+
title?: string;
|
|
1152
|
+
generatedAt: number;
|
|
1153
|
+
nodes: FrontierSwarmGraphNode[];
|
|
1154
|
+
edges: FrontierSwarmGraphEdge[];
|
|
1155
|
+
events: FrontierSwarmGraphEvent[];
|
|
1156
|
+
summary: FrontierSwarmRunGraphSummary;
|
|
1157
|
+
metadata?: JsonObject;
|
|
1158
|
+
}
|
|
1159
|
+
export interface FrontierSwarmGraphSnapshotInput {
|
|
1160
|
+
id?: string;
|
|
1161
|
+
graph: FrontierSwarmRunGraphInput | FrontierSwarmRunGraph;
|
|
1162
|
+
generatedAt?: number;
|
|
1163
|
+
metadata?: unknown;
|
|
1164
|
+
}
|
|
1165
|
+
export interface FrontierSwarmGraphSnapshot {
|
|
1166
|
+
kind: typeof FRONTIER_SWARM_GRAPH_SNAPSHOT_KIND;
|
|
1167
|
+
version: typeof FRONTIER_SWARM_GRAPH_SNAPSHOT_VERSION;
|
|
1168
|
+
id: string;
|
|
1169
|
+
graphId: string;
|
|
1170
|
+
generatedAt: number;
|
|
1171
|
+
summary: FrontierSwarmRunGraphSummary;
|
|
1172
|
+
graph: FrontierSwarmRunGraph;
|
|
1173
|
+
metadata?: JsonObject;
|
|
1174
|
+
}
|
|
1175
|
+
export type FrontierSwarmGateRecordType = FrontierSwarmVerificationCategory | 'command' | 'browser' | 'fuzz' | 'oracle' | 'benchmark' | 'semantic-sidecar' | 'replay' | string;
|
|
1176
|
+
export type FrontierSwarmGateRecordStatus = 'passed' | 'failed' | 'unknown' | 'skipped' | 'blocked' | string;
|
|
1177
|
+
export type FrontierSwarmEvidenceRecordType = 'command-output' | 'browser' | 'fuzz' | 'oracle' | 'benchmark' | 'semantic-sidecar' | 'replay' | 'artifact' | string;
|
|
1178
|
+
export type FrontierSwarmPatchEventOperation = 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test' | string;
|
|
1179
|
+
export type FrontierSwarmReplayRecordStatus = 'pending' | 'running' | 'passed' | 'failed' | 'blocked' | 'skipped' | 'unknown' | string;
|
|
1180
|
+
export type FrontierSwarmImprovementLoopStatus = 'observed' | 'planned' | 'running' | 'applied' | 'verified' | 'failed' | 'blocked' | 'unknown' | string;
|
|
1181
|
+
export interface FrontierSwarmGateRecordInput {
|
|
1182
|
+
id?: string;
|
|
1183
|
+
type: FrontierSwarmGateRecordType;
|
|
1184
|
+
status?: FrontierSwarmGateRecordStatus;
|
|
1185
|
+
required?: boolean;
|
|
1186
|
+
command?: string;
|
|
1187
|
+
path?: string;
|
|
1188
|
+
jobId?: string;
|
|
1189
|
+
taskId?: string;
|
|
1190
|
+
startedAt?: number;
|
|
1191
|
+
finishedAt?: number;
|
|
1192
|
+
failureReason?: string;
|
|
1193
|
+
confidence?: FrontierSwarmConfidence;
|
|
1194
|
+
metrics?: unknown;
|
|
1195
|
+
metadata?: unknown;
|
|
1196
|
+
}
|
|
1197
|
+
export interface FrontierSwarmGateRecord {
|
|
1198
|
+
kind: typeof FRONTIER_SWARM_GATE_RECORD_KIND;
|
|
1199
|
+
version: typeof FRONTIER_SWARM_GATE_RECORD_VERSION;
|
|
1200
|
+
id: string;
|
|
1201
|
+
type: FrontierSwarmGateRecordType;
|
|
1202
|
+
status: FrontierSwarmGateRecordStatus;
|
|
1203
|
+
required: boolean;
|
|
1204
|
+
command?: string;
|
|
1205
|
+
path?: string;
|
|
1206
|
+
jobId?: string;
|
|
1207
|
+
taskId?: string;
|
|
1208
|
+
startedAt?: number;
|
|
1209
|
+
finishedAt?: number;
|
|
1210
|
+
failureReason?: string;
|
|
1211
|
+
confidence?: FrontierSwarmConfidence;
|
|
1212
|
+
metrics?: JsonObject;
|
|
1213
|
+
metadata?: JsonObject;
|
|
1214
|
+
}
|
|
1215
|
+
export interface FrontierSwarmEvidenceRecordInput {
|
|
1216
|
+
id?: string;
|
|
1217
|
+
type: FrontierSwarmEvidenceRecordType;
|
|
1218
|
+
path?: string;
|
|
1219
|
+
ref?: string;
|
|
1220
|
+
jobId?: string;
|
|
1221
|
+
taskId?: string;
|
|
1222
|
+
gateId?: string;
|
|
1223
|
+
producedAt?: number;
|
|
1224
|
+
confidence?: FrontierSwarmConfidence;
|
|
1225
|
+
metrics?: unknown;
|
|
1226
|
+
metadata?: unknown;
|
|
1227
|
+
}
|
|
1228
|
+
export interface FrontierSwarmEvidenceRecord {
|
|
1229
|
+
kind: typeof FRONTIER_SWARM_EVIDENCE_RECORD_KIND;
|
|
1230
|
+
version: typeof FRONTIER_SWARM_EVIDENCE_RECORD_VERSION;
|
|
1231
|
+
id: string;
|
|
1232
|
+
type: FrontierSwarmEvidenceRecordType;
|
|
1233
|
+
path?: string;
|
|
1234
|
+
ref?: string;
|
|
1235
|
+
jobId?: string;
|
|
1236
|
+
taskId?: string;
|
|
1237
|
+
gateId?: string;
|
|
1238
|
+
producedAt: number;
|
|
1239
|
+
confidence?: FrontierSwarmConfidence;
|
|
1240
|
+
metrics?: JsonObject;
|
|
1241
|
+
metadata?: JsonObject;
|
|
1242
|
+
}
|
|
1243
|
+
export interface FrontierSwarmGraphRefInput {
|
|
1244
|
+
id?: string;
|
|
1245
|
+
kind?: string;
|
|
1246
|
+
graphId?: string;
|
|
1247
|
+
nodeId?: string;
|
|
1248
|
+
edgeId?: string;
|
|
1249
|
+
role?: string;
|
|
1250
|
+
metadata?: unknown;
|
|
1251
|
+
}
|
|
1252
|
+
export interface FrontierSwarmGraphRef {
|
|
1253
|
+
id: string;
|
|
1254
|
+
kind: string;
|
|
1255
|
+
graphId?: string;
|
|
1256
|
+
nodeId?: string;
|
|
1257
|
+
edgeId?: string;
|
|
1258
|
+
role?: string;
|
|
1259
|
+
metadata?: JsonObject;
|
|
1260
|
+
}
|
|
1261
|
+
export interface FrontierSwarmPatchEventInput {
|
|
1262
|
+
id?: string;
|
|
1263
|
+
operation: FrontierSwarmPatchEventOperation;
|
|
1264
|
+
path: string;
|
|
1265
|
+
from?: string;
|
|
1266
|
+
hash?: string;
|
|
1267
|
+
sequence?: number;
|
|
1268
|
+
value?: unknown;
|
|
1269
|
+
before?: unknown;
|
|
1270
|
+
after?: unknown;
|
|
1271
|
+
jobId?: string;
|
|
1272
|
+
taskId?: string;
|
|
1273
|
+
replayRecordId?: string;
|
|
1274
|
+
graphRefs?: readonly FrontierSwarmGraphRefInput[];
|
|
1275
|
+
generatedAt?: number;
|
|
1276
|
+
metadata?: unknown;
|
|
1277
|
+
}
|
|
1278
|
+
export interface FrontierSwarmPatchEvent {
|
|
1279
|
+
kind: typeof FRONTIER_SWARM_PATCH_EVENT_KIND;
|
|
1280
|
+
version: typeof FRONTIER_SWARM_PATCH_EVENT_VERSION;
|
|
1281
|
+
id: string;
|
|
1282
|
+
operation: FrontierSwarmPatchEventOperation;
|
|
1283
|
+
path: string;
|
|
1284
|
+
from?: string;
|
|
1285
|
+
hash?: string;
|
|
1286
|
+
sequence?: number;
|
|
1287
|
+
value?: JsonValue;
|
|
1288
|
+
before?: JsonValue;
|
|
1289
|
+
after?: JsonValue;
|
|
1290
|
+
jobId?: string;
|
|
1291
|
+
taskId?: string;
|
|
1292
|
+
replayRecordId?: string;
|
|
1293
|
+
graphRefs: FrontierSwarmGraphRef[];
|
|
1294
|
+
generatedAt: number;
|
|
1295
|
+
metadata?: JsonObject;
|
|
1296
|
+
}
|
|
1297
|
+
export interface FrontierSwarmReplayRecordInput {
|
|
1298
|
+
id?: string;
|
|
1299
|
+
title?: string;
|
|
1300
|
+
status?: FrontierSwarmReplayRecordStatus;
|
|
1301
|
+
subject?: string;
|
|
1302
|
+
replayBundleId?: string;
|
|
1303
|
+
patchEvents?: readonly (FrontierSwarmPatchEventInput | FrontierSwarmPatchEvent)[];
|
|
1304
|
+
evidenceRefs?: readonly (string | FrontierSwarmNamedRefInput)[];
|
|
1305
|
+
graphRefs?: readonly FrontierSwarmGraphRefInput[];
|
|
1306
|
+
jobId?: string;
|
|
1307
|
+
taskId?: string;
|
|
1308
|
+
startedAt?: number;
|
|
1309
|
+
finishedAt?: number;
|
|
1310
|
+
generatedAt?: number;
|
|
1311
|
+
metadata?: unknown;
|
|
1312
|
+
}
|
|
1313
|
+
export interface FrontierSwarmReplayRecord {
|
|
1314
|
+
kind: typeof FRONTIER_SWARM_REPLAY_RECORD_KIND;
|
|
1315
|
+
version: typeof FRONTIER_SWARM_REPLAY_RECORD_VERSION;
|
|
1316
|
+
id: string;
|
|
1317
|
+
title: string;
|
|
1318
|
+
status: FrontierSwarmReplayRecordStatus;
|
|
1319
|
+
subject?: string;
|
|
1320
|
+
replayBundleId?: string;
|
|
1321
|
+
patchEvents: FrontierSwarmPatchEvent[];
|
|
1322
|
+
evidenceRefs: FrontierSwarmNamedRef[];
|
|
1323
|
+
graphRefs: FrontierSwarmGraphRef[];
|
|
1324
|
+
jobId?: string;
|
|
1325
|
+
taskId?: string;
|
|
1326
|
+
startedAt?: number;
|
|
1327
|
+
finishedAt?: number;
|
|
1328
|
+
generatedAt: number;
|
|
1329
|
+
summary: {
|
|
1330
|
+
patchEventCount: number;
|
|
1331
|
+
evidenceRefCount: number;
|
|
1332
|
+
graphRefCount: number;
|
|
1333
|
+
};
|
|
1334
|
+
metadata?: JsonObject;
|
|
1335
|
+
}
|
|
1336
|
+
export interface FrontierSwarmImprovementLoopInput {
|
|
1337
|
+
id?: string;
|
|
1338
|
+
title?: string;
|
|
1339
|
+
status?: FrontierSwarmImprovementLoopStatus;
|
|
1340
|
+
subject?: string;
|
|
1341
|
+
observation?: unknown;
|
|
1342
|
+
action?: unknown;
|
|
1343
|
+
result?: unknown;
|
|
1344
|
+
replayRecordIds?: readonly string[];
|
|
1345
|
+
patchEventIds?: readonly string[];
|
|
1346
|
+
evidenceRefs?: readonly (string | FrontierSwarmNamedRefInput)[];
|
|
1347
|
+
graphRefs?: readonly FrontierSwarmGraphRefInput[];
|
|
1348
|
+
jobId?: string;
|
|
1349
|
+
taskId?: string;
|
|
1350
|
+
generatedAt?: number;
|
|
1351
|
+
metadata?: unknown;
|
|
1352
|
+
}
|
|
1353
|
+
export interface FrontierSwarmImprovementLoop {
|
|
1354
|
+
kind: typeof FRONTIER_SWARM_IMPROVEMENT_LOOP_KIND;
|
|
1355
|
+
version: typeof FRONTIER_SWARM_IMPROVEMENT_LOOP_VERSION;
|
|
1356
|
+
id: string;
|
|
1357
|
+
title: string;
|
|
1358
|
+
status: FrontierSwarmImprovementLoopStatus;
|
|
1359
|
+
subject?: string;
|
|
1360
|
+
observation?: JsonValue;
|
|
1361
|
+
action?: JsonValue;
|
|
1362
|
+
result?: JsonValue;
|
|
1363
|
+
replayRecordIds: string[];
|
|
1364
|
+
patchEventIds: string[];
|
|
1365
|
+
evidenceRefs: FrontierSwarmNamedRef[];
|
|
1366
|
+
graphRefs: FrontierSwarmGraphRef[];
|
|
1367
|
+
jobId?: string;
|
|
1368
|
+
taskId?: string;
|
|
1369
|
+
generatedAt: number;
|
|
1370
|
+
summary: {
|
|
1371
|
+
replayRecordCount: number;
|
|
1372
|
+
patchEventCount: number;
|
|
1373
|
+
evidenceRefCount: number;
|
|
1374
|
+
graphRefCount: number;
|
|
1375
|
+
};
|
|
1376
|
+
metadata?: JsonObject;
|
|
1377
|
+
}
|
|
1378
|
+
export interface FrontierSwarmRunGraphChunkInput {
|
|
1379
|
+
id?: string;
|
|
1380
|
+
nodes?: readonly FrontierSwarmGraphNodeInput[];
|
|
1381
|
+
edges?: readonly FrontierSwarmGraphEdgeInput[];
|
|
1382
|
+
entryNodeIds?: readonly string[];
|
|
1383
|
+
exitNodeIds?: readonly string[];
|
|
1384
|
+
metadata?: unknown;
|
|
1385
|
+
}
|
|
1386
|
+
export interface FrontierSwarmRunGraphChunk {
|
|
1387
|
+
kind: typeof FRONTIER_SWARM_RUN_GRAPH_CHUNK_KIND;
|
|
1388
|
+
version: typeof FRONTIER_SWARM_RUN_GRAPH_CHUNK_VERSION;
|
|
1389
|
+
id: string;
|
|
1390
|
+
nodes: FrontierSwarmGraphNode[];
|
|
1391
|
+
edges: FrontierSwarmGraphEdge[];
|
|
1392
|
+
entryNodeIds: string[];
|
|
1393
|
+
exitNodeIds: string[];
|
|
1394
|
+
summary: {
|
|
1395
|
+
nodeCount: number;
|
|
1396
|
+
edgeCount: number;
|
|
1397
|
+
entryCount: number;
|
|
1398
|
+
exitCount: number;
|
|
1399
|
+
};
|
|
1400
|
+
metadata?: JsonObject;
|
|
1401
|
+
}
|
|
1402
|
+
export interface FrontierSwarmRunGraphSynthesisChunkInput {
|
|
1403
|
+
id?: string;
|
|
1404
|
+
source?: FrontierSwarmGraphNodeInput;
|
|
1405
|
+
panel?: FrontierSwarmGraphNodeInput;
|
|
1406
|
+
candidates?: readonly FrontierSwarmGraphNodeInput[];
|
|
1407
|
+
selectedCandidateId?: string;
|
|
1408
|
+
rejectedCandidateIds?: readonly string[];
|
|
1409
|
+
decision?: FrontierSwarmGraphNodeInput;
|
|
1410
|
+
output?: FrontierSwarmGraphNodeInput;
|
|
1411
|
+
metadata?: unknown;
|
|
1412
|
+
}
|
|
1413
|
+
export interface FrontierSwarmRunGraphVerificationGateChunkInput {
|
|
1414
|
+
id?: string;
|
|
1415
|
+
subject: FrontierSwarmGraphNodeInput;
|
|
1416
|
+
gate: FrontierSwarmGraphNodeInput;
|
|
1417
|
+
evidence?: readonly FrontierSwarmGraphNodeInput[];
|
|
1418
|
+
pass?: FrontierSwarmGraphNodeInput;
|
|
1419
|
+
block?: FrontierSwarmGraphNodeInput;
|
|
1420
|
+
metadata?: unknown;
|
|
1421
|
+
}
|
|
1422
|
+
export interface FrontierSwarmRunGraphMergeGateChunkInput {
|
|
1423
|
+
id?: string;
|
|
1424
|
+
candidate: FrontierSwarmGraphNodeInput;
|
|
1425
|
+
gate?: FrontierSwarmGraphNodeInput;
|
|
1426
|
+
decision?: FrontierSwarmGraphNodeInput;
|
|
1427
|
+
target: FrontierSwarmGraphNodeInput;
|
|
1428
|
+
blockers?: readonly FrontierSwarmGraphNodeInput[];
|
|
1429
|
+
superseded?: readonly FrontierSwarmGraphNodeInput[];
|
|
1430
|
+
status?: FrontierSwarmGraphStatus;
|
|
1431
|
+
metadata?: unknown;
|
|
1432
|
+
}
|
|
1433
|
+
export interface FrontierSwarmRunGraphBarrierInput {
|
|
1434
|
+
id?: string;
|
|
1435
|
+
prerequisites: readonly FrontierSwarmGraphNodeInput[];
|
|
1436
|
+
barrier?: FrontierSwarmGraphNodeInput;
|
|
1437
|
+
metadata?: unknown;
|
|
1438
|
+
}
|
|
1439
|
+
export interface FrontierSwarmRunGraphRaceSelectInput {
|
|
1440
|
+
id?: string;
|
|
1441
|
+
branches: readonly FrontierSwarmGraphNodeInput[];
|
|
1442
|
+
selector?: FrontierSwarmGraphNodeInput;
|
|
1443
|
+
selectedBranchId?: string;
|
|
1444
|
+
rejectedBranchIds?: readonly string[];
|
|
1445
|
+
metadata?: unknown;
|
|
1446
|
+
}
|
|
908
1447
|
export interface FrontierSwarmScheduleInput {
|
|
909
1448
|
plan: FrontierSwarmPlan;
|
|
910
1449
|
run?: FrontierSwarmRun;
|
|
@@ -1212,6 +1751,20 @@ export interface FrontierSwarmRun {
|
|
|
1212
1751
|
summary: FrontierSwarmSummary;
|
|
1213
1752
|
metadata?: JsonObject;
|
|
1214
1753
|
}
|
|
1754
|
+
export interface FrontierSwarmRunEventAdapterOptions {
|
|
1755
|
+
runId?: string;
|
|
1756
|
+
actorId?: FrontierRunActorId;
|
|
1757
|
+
startActorSeq?: number;
|
|
1758
|
+
parents?: readonly FrontierRunEventId[];
|
|
1759
|
+
time?: string;
|
|
1760
|
+
now?: number;
|
|
1761
|
+
metadata?: unknown;
|
|
1762
|
+
}
|
|
1763
|
+
export interface FrontierSwarmRunProjectionOptions {
|
|
1764
|
+
runId?: string;
|
|
1765
|
+
goal?: string;
|
|
1766
|
+
metadata?: unknown;
|
|
1767
|
+
}
|
|
1215
1768
|
export interface FrontierSwarmEventInput {
|
|
1216
1769
|
id?: string;
|
|
1217
1770
|
type: string;
|
|
@@ -1365,6 +1918,8 @@ export interface FrontierSwarmSemanticImportSummary {
|
|
|
1365
1918
|
patchHints?: number;
|
|
1366
1919
|
[key: string]: unknown;
|
|
1367
1920
|
};
|
|
1921
|
+
semanticChanges?: readonly FrontierSwarmSemanticChange[];
|
|
1922
|
+
mergeCandidates?: readonly FrontierSwarmMergeCandidate[];
|
|
1368
1923
|
dependencies?: unknown;
|
|
1369
1924
|
semanticEditScripts?: unknown;
|
|
1370
1925
|
semanticEditProjection?: unknown;
|
|
@@ -1570,10 +2125,11 @@ export interface FrontierSwarmMergeIndexEntry {
|
|
|
1570
2125
|
export interface FrontierSwarmMergeConflict {
|
|
1571
2126
|
jobIds: string[];
|
|
1572
2127
|
key: string;
|
|
1573
|
-
kind: 'path' | 'region' | 'symbol';
|
|
2128
|
+
kind: 'path' | 'region' | 'symbol' | 'public-contract';
|
|
1574
2129
|
path?: string;
|
|
1575
2130
|
region?: string;
|
|
1576
2131
|
symbol?: string;
|
|
2132
|
+
publicContract?: string;
|
|
1577
2133
|
}
|
|
1578
2134
|
export interface FrontierSwarmRegionOwnershipInput {
|
|
1579
2135
|
changedPaths?: readonly string[];
|
|
@@ -2753,6 +3309,7 @@ export interface FrontierSwarmMergeQueueScope {
|
|
|
2753
3309
|
changedRegions: string[];
|
|
2754
3310
|
leaseKey: string;
|
|
2755
3311
|
jobIds: string[];
|
|
3312
|
+
semanticLeaseScope?: FrontierSemanticLeaseScope;
|
|
2756
3313
|
metadata?: JsonObject;
|
|
2757
3314
|
}
|
|
2758
3315
|
export interface FrontierSwarmMergeQueueRetrySlice {
|
|
@@ -2763,6 +3320,8 @@ export interface FrontierSwarmMergeQueueRetrySlice {
|
|
|
2763
3320
|
leaseKey: string;
|
|
2764
3321
|
requiredLeaseScopeIds?: string[];
|
|
2765
3322
|
requiredLeaseKeys?: string[];
|
|
3323
|
+
semanticLeaseScope?: FrontierSemanticLeaseScope;
|
|
3324
|
+
requiredSemanticLeaseScopes?: FrontierSemanticLeaseScope[];
|
|
2766
3325
|
lane?: string;
|
|
2767
3326
|
changedPaths: string[];
|
|
2768
3327
|
changedRegions: string[];
|
|
@@ -2820,6 +3379,7 @@ export interface FrontierSwarmHierarchicalQueueLeaseRecord {
|
|
|
2820
3379
|
lane?: string;
|
|
2821
3380
|
title: string;
|
|
2822
3381
|
leaseKey: string;
|
|
3382
|
+
semanticLeaseScope?: FrontierSemanticLeaseScope;
|
|
2823
3383
|
localLeader?: FrontierSwarmHierarchicalQueueLocalLeader;
|
|
2824
3384
|
promotion: FrontierSwarmHierarchicalQueuePromotionState;
|
|
2825
3385
|
conflictReasons: string[];
|
|
@@ -2871,6 +3431,7 @@ export interface FrontierSwarmHierarchicalMergeQueue {
|
|
|
2871
3431
|
byScope: Record<string, string[]>;
|
|
2872
3432
|
byLeaseKey: Record<string, string[]>;
|
|
2873
3433
|
byAction: Record<string, string[]>;
|
|
3434
|
+
semanticLeaseScopes: FrontierSemanticLeaseScope[];
|
|
2874
3435
|
summary: {
|
|
2875
3436
|
scopeCount: number;
|
|
2876
3437
|
assignmentCount: number;
|
|
@@ -2905,6 +3466,7 @@ export interface FrontierSwarmMergeQueueAssignment {
|
|
|
2905
3466
|
leaseKey: string;
|
|
2906
3467
|
requiredLeaseScopeIds?: string[];
|
|
2907
3468
|
requiredLeaseKeys?: string[];
|
|
3469
|
+
requiredSemanticLeaseScopes?: FrontierSemanticLeaseScope[];
|
|
2908
3470
|
promoteToScopeId?: string;
|
|
2909
3471
|
terminalDecisionId?: string;
|
|
2910
3472
|
terminalDecisionQueueItemIds?: string[];
|
|
@@ -2924,16 +3486,20 @@ export interface FrontierSwarmMergeQueuePromotion {
|
|
|
2924
3486
|
export type FrontierSwarmCoordinatorAgentDrainDecision = 'applied' | 'queued' | 'escalated' | 'rerun' | 'rejected' | 'recorded' | 'blocked' | string;
|
|
2925
3487
|
export type FrontierSwarmCoordinatorAgentDrainClassification = 'terminal' | 'non-terminal' | string;
|
|
2926
3488
|
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;
|
|
3489
|
+
export type FrontierSwarmQueueTerminalOutcome = 'applied' | 'committed' | 'checked' | 'superseded' | 'no-change' | 'research-complete' | 'rejected' | 'rerun' | 'conflict-blocked' | 'human-question' | 'recorded' | 'closed' | string;
|
|
2928
3490
|
export type FrontierSwarmQueueContinuationOutcome = 'queued' | 'continued' | 'ready' | 'running' | 'leased' | string;
|
|
2929
3491
|
export type FrontierSwarmQueueCoordinatorReviewOutcome = 'coordinator-review' | 'escalated' | 'needs-port' | string;
|
|
2930
3492
|
export type FrontierSwarmQueueHumanBlockedOutcome = 'human-blocked' | 'human-question' | 'blocked' | string;
|
|
2931
3493
|
export type FrontierSwarmQueueStaleRerunOutcome = 'stale-rerun' | 'rerun' | string;
|
|
2932
3494
|
export type FrontierSwarmQueueConflictOutcome = 'conflict' | 'merge-conflict' | 'conflict-blocked' | string;
|
|
2933
3495
|
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"];
|
|
3496
|
+
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
3497
|
export type FrontierSwarmTerminalOutcomeLabel = typeof FRONTIER_SWARM_TERMINAL_OUTCOME_LABELS[number] | string;
|
|
2936
3498
|
export type FrontierSwarmTerminalOutcomeCategory = 'success' | 'incomplete' | 'rerun' | 'rejected' | 'blocked' | 'review' | 'unknown' | string;
|
|
3499
|
+
export declare const FRONTIER_SWARM_TERMINAL_OUTCOME_STATUSES: readonly ["applied", "rejected", "superseded", "no-change", "conflict", "human-needed", "research-complete", "rerun"];
|
|
3500
|
+
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"];
|
|
3501
|
+
export type FrontierSwarmTerminalOutcomeStatus = typeof FRONTIER_SWARM_TERMINAL_OUTCOME_STATUSES[number] | string;
|
|
3502
|
+
export type FrontierSwarmTerminalOutcomeReasonCode = typeof FRONTIER_SWARM_TERMINAL_OUTCOME_REASON_CODES[number] | string;
|
|
2937
3503
|
export interface FrontierSwarmTerminalOutcomeInput {
|
|
2938
3504
|
label?: FrontierSwarmTerminalOutcomeLabel | string;
|
|
2939
3505
|
outcome?: FrontierSwarmTerminalOutcomeLabel | string;
|
|
@@ -2963,6 +3529,65 @@ export interface FrontierSwarmTerminalOutcome {
|
|
|
2963
3529
|
reasons: string[];
|
|
2964
3530
|
metadata?: JsonObject;
|
|
2965
3531
|
}
|
|
3532
|
+
export interface FrontierSwarmTerminalOutcomeRecordInput {
|
|
3533
|
+
id?: string;
|
|
3534
|
+
subjectId?: string;
|
|
3535
|
+
subjectAliases?: readonly string[];
|
|
3536
|
+
jobId?: string;
|
|
3537
|
+
taskId?: string;
|
|
3538
|
+
queueId?: string;
|
|
3539
|
+
queueItemId?: string;
|
|
3540
|
+
queueItemIds?: readonly string[];
|
|
3541
|
+
lane?: string;
|
|
3542
|
+
source?: string;
|
|
3543
|
+
status?: FrontierSwarmTerminalOutcomeStatus | string;
|
|
3544
|
+
outcome?: FrontierSwarmTerminalOutcomeInput | FrontierSwarmTerminalOutcomeLabel | string;
|
|
3545
|
+
label?: FrontierSwarmTerminalOutcomeLabel | string;
|
|
3546
|
+
decision?: string;
|
|
3547
|
+
admitted?: boolean;
|
|
3548
|
+
reasonCodes?: readonly FrontierSwarmTerminalOutcomeReasonCode[];
|
|
3549
|
+
reasons?: readonly string[];
|
|
3550
|
+
conflictingJobIds?: readonly string[];
|
|
3551
|
+
supersedes?: readonly string[];
|
|
3552
|
+
supersededBy?: string;
|
|
3553
|
+
rerunOf?: string;
|
|
3554
|
+
evidenceRefs?: readonly (string | FrontierSwarmNamedRefInput)[];
|
|
3555
|
+
generatedAt?: number;
|
|
3556
|
+
metadata?: unknown;
|
|
3557
|
+
}
|
|
3558
|
+
export interface FrontierSwarmTerminalOutcomeRecord {
|
|
3559
|
+
kind: typeof FRONTIER_SWARM_TERMINAL_OUTCOME_RECORD_KIND;
|
|
3560
|
+
version: typeof FRONTIER_SWARM_TERMINAL_OUTCOME_RECORD_VERSION;
|
|
3561
|
+
id: string;
|
|
3562
|
+
generatedAt: number;
|
|
3563
|
+
subjectId: string;
|
|
3564
|
+
subjectAliases: string[];
|
|
3565
|
+
jobId?: string;
|
|
3566
|
+
taskId?: string;
|
|
3567
|
+
queueId?: string;
|
|
3568
|
+
queueItemIds: string[];
|
|
3569
|
+
lane?: string;
|
|
3570
|
+
source?: string;
|
|
3571
|
+
status: FrontierSwarmTerminalOutcomeStatus;
|
|
3572
|
+
outcome: FrontierSwarmTerminalOutcome;
|
|
3573
|
+
terminal: true;
|
|
3574
|
+
admitted: boolean;
|
|
3575
|
+
success: boolean;
|
|
3576
|
+
rejected: boolean;
|
|
3577
|
+
conflict: boolean;
|
|
3578
|
+
humanNeeded: boolean;
|
|
3579
|
+
rerun: boolean;
|
|
3580
|
+
noChange: boolean;
|
|
3581
|
+
researchComplete: boolean;
|
|
3582
|
+
reasonCodes: FrontierSwarmTerminalOutcomeReasonCode[];
|
|
3583
|
+
reasons: string[];
|
|
3584
|
+
conflictingJobIds: string[];
|
|
3585
|
+
supersedes: string[];
|
|
3586
|
+
supersededBy?: string;
|
|
3587
|
+
rerunOf?: string;
|
|
3588
|
+
evidenceRefs: FrontierSwarmNamedRef[];
|
|
3589
|
+
metadata?: JsonObject;
|
|
3590
|
+
}
|
|
2966
3591
|
export interface FrontierSwarmQueueOutcomeClassification {
|
|
2967
3592
|
category: FrontierSwarmQueueOutcomeCategory;
|
|
2968
3593
|
outcome: FrontierSwarmQueueOutcome;
|
|
@@ -3261,6 +3886,7 @@ export interface FrontierSwarmCoordinatorAgentDrainLease {
|
|
|
3261
3886
|
title: string;
|
|
3262
3887
|
leaseScope: string;
|
|
3263
3888
|
leaseKey: string;
|
|
3889
|
+
semanticLeaseScope?: FrontierSemanticLeaseScope;
|
|
3264
3890
|
parentQueueId?: string;
|
|
3265
3891
|
lane?: string;
|
|
3266
3892
|
changedPaths: string[];
|
|
@@ -3303,6 +3929,7 @@ export interface FrontierSwarmCoordinatorAgentDrainAssignment {
|
|
|
3303
3929
|
semanticSliceLeaseKeys?: string[];
|
|
3304
3930
|
requiredLeaseScopeIds?: string[];
|
|
3305
3931
|
requiredLeaseKeys?: string[];
|
|
3932
|
+
requiredSemanticLeaseScopes?: FrontierSemanticLeaseScope[];
|
|
3306
3933
|
parentDecisionRegions?: string[];
|
|
3307
3934
|
unknownRegions?: string[];
|
|
3308
3935
|
metadata?: JsonObject;
|
|
@@ -3324,10 +3951,49 @@ export interface FrontierSwarmCoordinatorAgentDrainTerminalDecision {
|
|
|
3324
3951
|
semanticSliceLeaseKeys?: string[];
|
|
3325
3952
|
requiredLeaseScopeIds?: string[];
|
|
3326
3953
|
requiredLeaseKeys?: string[];
|
|
3954
|
+
requiredSemanticLeaseScopes?: FrontierSemanticLeaseScope[];
|
|
3327
3955
|
parentDecisionRegions?: string[];
|
|
3328
3956
|
unknownRegions?: string[];
|
|
3329
3957
|
metadata?: JsonObject;
|
|
3330
3958
|
}
|
|
3959
|
+
export interface FrontierSwarmSemanticLeaseScopeOptions {
|
|
3960
|
+
repository?: string;
|
|
3961
|
+
packageId?: string;
|
|
3962
|
+
rootScopeId?: string;
|
|
3963
|
+
metadata?: unknown;
|
|
3964
|
+
}
|
|
3965
|
+
export interface FrontierSwarmCoordinatorSemanticLeaseAcquireInput {
|
|
3966
|
+
queue: FrontierSwarmHierarchicalMergeQueue;
|
|
3967
|
+
assignment: FrontierSwarmMergeQueueAssignment | FrontierSwarmCoordinatorAgentDrainAssignment;
|
|
3968
|
+
state?: FrontierSemanticLeaseState;
|
|
3969
|
+
ownerId: string;
|
|
3970
|
+
holderId?: string;
|
|
3971
|
+
now?: number;
|
|
3972
|
+
ttlMs?: number;
|
|
3973
|
+
purpose?: string;
|
|
3974
|
+
reason?: string;
|
|
3975
|
+
repository?: string;
|
|
3976
|
+
packageId?: string;
|
|
3977
|
+
metadata?: unknown;
|
|
3978
|
+
}
|
|
3979
|
+
export interface FrontierSwarmCoordinatorSemanticLeaseAcquireResult {
|
|
3980
|
+
state: FrontierSemanticLeaseState;
|
|
3981
|
+
mutation: FrontierSemanticLeaseMutation;
|
|
3982
|
+
scopes: FrontierSemanticLeaseScope[];
|
|
3983
|
+
requiredLeaseScopeIds: string[];
|
|
3984
|
+
requiredLeaseKeys: string[];
|
|
3985
|
+
lease?: FrontierSemanticLeaseRecord;
|
|
3986
|
+
}
|
|
3987
|
+
export interface FrontierSwarmCoordinatorSemanticLeaseFenceInput {
|
|
3988
|
+
assignment: FrontierSwarmMergeQueueAssignment | FrontierSwarmCoordinatorAgentDrainAssignment;
|
|
3989
|
+
state: FrontierSemanticLeaseState;
|
|
3990
|
+
lease?: FrontierSemanticLeaseRecord;
|
|
3991
|
+
leaseId?: string;
|
|
3992
|
+
token: string;
|
|
3993
|
+
fencingToken: number;
|
|
3994
|
+
now?: number;
|
|
3995
|
+
requiredSemanticLeaseScopes?: readonly FrontierSemanticLeaseScope[];
|
|
3996
|
+
}
|
|
3331
3997
|
export interface FrontierSwarmCoordinatorAgentPromotedWork {
|
|
3332
3998
|
id: string;
|
|
3333
3999
|
jobId: string;
|
|
@@ -3345,6 +4011,7 @@ export interface FrontierSwarmCoordinatorAgentPromotedWork {
|
|
|
3345
4011
|
reasons: string[];
|
|
3346
4012
|
requiredLeaseScopeIds?: string[];
|
|
3347
4013
|
requiredLeaseKeys?: string[];
|
|
4014
|
+
requiredSemanticLeaseScopes?: FrontierSemanticLeaseScope[];
|
|
3348
4015
|
metadata?: JsonObject;
|
|
3349
4016
|
}
|
|
3350
4017
|
export interface FrontierSwarmContinuousPoolWorkItemInput {
|
|
@@ -3475,12 +4142,107 @@ export declare function compileSwarm(input: FrontierSwarmManifest | FrontierSwar
|
|
|
3475
4142
|
export declare function validateSwarmManifest(input: FrontierSwarmManifest | FrontierSwarmManifestInput): FrontierSwarmValidation;
|
|
3476
4143
|
export declare function createSwarmPlan(manifestInput: FrontierSwarmManifest | FrontierSwarmManifestInput, taskInput: readonly FrontierSwarmTaskInput[] | FrontierSwarmTaskSetInput | readonly FrontierSwarmTask[], options?: FrontierSwarmPlanInput): FrontierSwarmPlan;
|
|
3477
4144
|
export declare function createSwarmTaskSelection(manifestInput: FrontierSwarmManifest | FrontierSwarmManifestInput, taskInput: readonly FrontierSwarmTaskInput[] | FrontierSwarmTaskSetInput | readonly FrontierSwarmTask[], options?: FrontierSwarmTaskSelectionInput): FrontierSwarmTaskSelection;
|
|
4145
|
+
export declare function createSwarmRunGraph(input?: FrontierSwarmRunGraphInput): FrontierSwarmRunGraph;
|
|
4146
|
+
export declare function normalizeSwarmRunGraph(input: FrontierSwarmRunGraphInput | FrontierSwarmRunGraph): FrontierSwarmRunGraph;
|
|
4147
|
+
export declare function createSwarmGraphSnapshot(input: FrontierSwarmGraphSnapshotInput): FrontierSwarmGraphSnapshot;
|
|
4148
|
+
export declare function createSwarmGateRecord(input: FrontierSwarmGateRecordInput): FrontierSwarmGateRecord;
|
|
4149
|
+
export declare function createSwarmEvidenceRecord(input: FrontierSwarmEvidenceRecordInput): FrontierSwarmEvidenceRecord;
|
|
4150
|
+
export declare function createSwarmPatchEvent(input: FrontierSwarmPatchEventInput): FrontierSwarmPatchEvent;
|
|
4151
|
+
export declare function createSwarmReplayRecord(input?: FrontierSwarmReplayRecordInput): FrontierSwarmReplayRecord;
|
|
4152
|
+
export declare function createSwarmImprovementLoop(input?: FrontierSwarmImprovementLoopInput): FrontierSwarmImprovementLoop;
|
|
4153
|
+
export declare function mapSwarmGateEvidenceToGraph(input: {
|
|
4154
|
+
runId?: string;
|
|
4155
|
+
gates?: readonly (FrontierSwarmGateRecordInput | FrontierSwarmGateRecord)[];
|
|
4156
|
+
evidence?: readonly (FrontierSwarmEvidenceRecordInput | FrontierSwarmEvidenceRecord)[];
|
|
4157
|
+
generatedAt?: number;
|
|
4158
|
+
}): FrontierSwarmRunGraph;
|
|
4159
|
+
export declare function createSwarmGateEvidenceGraph(input: Parameters<typeof mapSwarmGateEvidenceToGraph>[0]): FrontierSwarmRunGraph;
|
|
4160
|
+
export declare function classifySwarmMergeCandidateAdmission(input?: {
|
|
4161
|
+
status?: FrontierSwarmMergeCandidateAdmissionStatus;
|
|
4162
|
+
reasonCodes?: readonly FrontierSwarmMergeCandidateReasonCode[];
|
|
4163
|
+
} | readonly FrontierSwarmMergeCandidateReasonCode[]): FrontierSwarmMergeCandidateAdmissionStatus;
|
|
4164
|
+
export declare function createSwarmSemanticChange(input: FrontierSwarmSemanticChangeInput | FrontierSwarmSemanticChange): FrontierSwarmSemanticChange;
|
|
4165
|
+
export declare function createSwarmMergeCandidate(input: FrontierSwarmMergeCandidateInput | FrontierSwarmMergeCandidate): FrontierSwarmMergeCandidate;
|
|
4166
|
+
export declare function mapSwarmMergeCandidatesToGraph(input: FrontierSwarmMergeCandidateGraphInput): FrontierSwarmMergeCandidateGraphProjection;
|
|
4167
|
+
export declare function createSwarmMergeCandidateGraph(input: FrontierSwarmMergeCandidateGraphInput): FrontierSwarmRunGraph;
|
|
4168
|
+
export declare function mapSwarmReplayRecordsToGraph(input: {
|
|
4169
|
+
runId?: string;
|
|
4170
|
+
replayRecords?: readonly (FrontierSwarmReplayRecordInput | FrontierSwarmReplayRecord)[];
|
|
4171
|
+
generatedAt?: number;
|
|
4172
|
+
}): FrontierSwarmRunGraph;
|
|
4173
|
+
export declare function createSwarmReplayRecordGraph(input: Parameters<typeof mapSwarmReplayRecordsToGraph>[0]): FrontierSwarmRunGraph;
|
|
4174
|
+
export declare function mapSwarmImprovementLoopsToGraph(input: {
|
|
4175
|
+
runId?: string;
|
|
4176
|
+
improvementLoops?: readonly (FrontierSwarmImprovementLoopInput | FrontierSwarmImprovementLoop)[];
|
|
4177
|
+
generatedAt?: number;
|
|
4178
|
+
}): FrontierSwarmRunGraph;
|
|
4179
|
+
export declare function createSwarmImprovementLoopGraph(input: Parameters<typeof mapSwarmImprovementLoopsToGraph>[0]): FrontierSwarmRunGraph;
|
|
4180
|
+
export declare function createSwarmRunGraphChunk(input?: FrontierSwarmRunGraphChunkInput): FrontierSwarmRunGraphChunk;
|
|
4181
|
+
export declare function createSwarmRunGraphChain(input: {
|
|
4182
|
+
id?: string;
|
|
4183
|
+
nodes: readonly FrontierSwarmGraphNodeInput[];
|
|
4184
|
+
edgeKind?: FrontierSwarmGraphEdgeKind;
|
|
4185
|
+
metadata?: unknown;
|
|
4186
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4187
|
+
export declare function createSwarmRunGraphFork(input: {
|
|
4188
|
+
id?: string;
|
|
4189
|
+
source: FrontierSwarmGraphNodeInput;
|
|
4190
|
+
branches: readonly FrontierSwarmGraphNodeInput[];
|
|
4191
|
+
metadata?: unknown;
|
|
4192
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4193
|
+
export declare function createSwarmRunGraphJoin(input: {
|
|
4194
|
+
id?: string;
|
|
4195
|
+
branches: readonly FrontierSwarmGraphNodeInput[];
|
|
4196
|
+
join: FrontierSwarmGraphNodeInput;
|
|
4197
|
+
metadata?: unknown;
|
|
4198
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4199
|
+
export declare function createSwarmRunGraphBarrier(input: FrontierSwarmRunGraphBarrierInput): FrontierSwarmRunGraphChunk;
|
|
4200
|
+
export declare function createSwarmRunGraphRaceSelect(input: FrontierSwarmRunGraphRaceSelectInput): FrontierSwarmRunGraphChunk;
|
|
4201
|
+
export declare function createSwarmRunGraphTournament(input: {
|
|
4202
|
+
id?: string;
|
|
4203
|
+
candidates: readonly FrontierSwarmGraphNodeInput[];
|
|
4204
|
+
winner?: string;
|
|
4205
|
+
rejectedCandidates?: readonly string[];
|
|
4206
|
+
metadata?: unknown;
|
|
4207
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4208
|
+
export declare function createSwarmRunGraphRetryLoop(input: {
|
|
4209
|
+
id?: string;
|
|
4210
|
+
action: FrontierSwarmGraphNodeInput;
|
|
4211
|
+
gate: FrontierSwarmGraphNodeInput;
|
|
4212
|
+
retry: FrontierSwarmGraphNodeInput;
|
|
4213
|
+
success?: FrontierSwarmGraphNodeInput;
|
|
4214
|
+
failure?: FrontierSwarmGraphNodeInput;
|
|
4215
|
+
metadata?: unknown;
|
|
4216
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4217
|
+
export declare function createSwarmRunGraphRsiLoop(input: {
|
|
4218
|
+
id?: string;
|
|
4219
|
+
observe: FrontierSwarmGraphNodeInput;
|
|
4220
|
+
improve: FrontierSwarmGraphNodeInput;
|
|
4221
|
+
apply?: FrontierSwarmGraphNodeInput;
|
|
4222
|
+
metadata?: unknown;
|
|
4223
|
+
}): FrontierSwarmRunGraphChunk;
|
|
4224
|
+
export declare function createSwarmRunGraphSynthesisChunk(input?: FrontierSwarmRunGraphSynthesisChunkInput): FrontierSwarmRunGraphChunk;
|
|
4225
|
+
export declare function createSwarmRunGraphVerificationGateChunk(input: FrontierSwarmRunGraphVerificationGateChunkInput): FrontierSwarmRunGraphChunk;
|
|
4226
|
+
export declare function createSwarmRunGraphMergeGateChunk(input: FrontierSwarmRunGraphMergeGateChunkInput): FrontierSwarmRunGraphChunk;
|
|
3478
4227
|
export declare const FRONTIER_SWARM_TASK_MODEL_PROFILES: readonly FrontierSwarmTaskModelProfile[];
|
|
3479
4228
|
export declare function resolveSwarmTaskModelProfile(task: FrontierSwarmTask, profiles?: readonly FrontierSwarmTaskModelProfile[]): FrontierSwarmTaskModelProfile;
|
|
3480
4229
|
export declare function createSwarmModelRoute(input: FrontierSwarmModelRouterInput): FrontierSwarmModelRoute;
|
|
3481
4230
|
export declare function createSwarmPanelEvaluation(input?: FrontierSwarmPanelEvaluationInput): FrontierSwarmPanelEvaluation;
|
|
3482
4231
|
export declare function createSwarmOptimizationSummary(input?: FrontierSwarmOptimizationSummaryInput): FrontierSwarmOptimizationSummary;
|
|
3483
4232
|
export declare function createSwarmRun(input: FrontierSwarmRunInput): FrontierSwarmRun;
|
|
4233
|
+
export declare function createRunEventsFromSwarmPlan(plan: FrontierSwarmPlan, options?: FrontierSwarmRunEventAdapterOptions): FrontierRunEvent[];
|
|
4234
|
+
export declare function createRunEventsFromSwarmLease(lease: FrontierSwarmLease, options?: FrontierSwarmRunEventAdapterOptions & {
|
|
4235
|
+
job?: FrontierSwarmJob;
|
|
4236
|
+
eventType?: 'lease.requested' | 'lease.granted' | 'lease.released';
|
|
4237
|
+
}): FrontierRunEvent[];
|
|
4238
|
+
export declare function createRunEventsFromSwarmResult(resultInput: FrontierSwarmJobResult | FrontierSwarmJobResultInput, options?: FrontierSwarmRunEventAdapterOptions & {
|
|
4239
|
+
job?: FrontierSwarmJob;
|
|
4240
|
+
}): FrontierRunEvent[];
|
|
4241
|
+
export declare function createRunEventsFromMergeBundle(bundle: FrontierSwarmMergeBundle, options?: FrontierSwarmRunEventAdapterOptions): FrontierRunEvent[];
|
|
4242
|
+
export declare function createRunEventsFromCoordinatorDecision(decision: FrontierSwarmQueueOutcomeDecision | FrontierSwarmQueueOutcomeDecisionInput, options?: FrontierSwarmRunEventAdapterOptions): FrontierRunEvent[];
|
|
4243
|
+
export declare function createRunProjectionFromSwarmRunEvents(events: readonly FrontierRunEvent[], options?: FrontierSwarmRunProjectionOptions): FrontierRunProjection;
|
|
4244
|
+
export declare function createRunDashboardFromSwarmRun(input: FrontierSwarmRun | readonly FrontierRunEvent[], options?: FrontierSwarmRunProjectionOptions): FrontierRunDashboardSnapshot;
|
|
4245
|
+
export declare function createRunEventsFromSwarmRun(run: FrontierSwarmRun, options?: FrontierSwarmRunEventAdapterOptions): FrontierRunEvent[];
|
|
3484
4246
|
export declare function recordSwarmEvent(runInput: FrontierSwarmRun, eventInput: FrontierSwarmEventInput): FrontierSwarmRun;
|
|
3485
4247
|
export declare function createSwarmMailbox(input?: FrontierSwarmMailboxInput): FrontierSwarmMailbox;
|
|
3486
4248
|
export declare function createSwarmEventStream(input?: FrontierSwarmEventStreamInput): FrontierSwarmEventStream;
|
|
@@ -3537,6 +4299,18 @@ export declare function createSwarmLanePlaybook(input: FrontierSwarmLanePlaybook
|
|
|
3537
4299
|
export declare function createSwarmPatchStackPlan(input: FrontierSwarmPatchStackPlanInput): FrontierSwarmPatchStackPlan;
|
|
3538
4300
|
export declare function createSwarmHierarchicalMergeQueue(input: FrontierSwarmHierarchicalMergeQueueInput): FrontierSwarmHierarchicalMergeQueue;
|
|
3539
4301
|
export declare function createSwarmCoordinatorAgentDrainWork(input: FrontierSwarmCoordinatorAgentDrainWorkInput): FrontierSwarmCoordinatorAgentDrainWork;
|
|
4302
|
+
export declare function createSwarmSemanticLeaseScopeForMergeQueueScope(scope: FrontierSwarmMergeQueueScope, input?: FrontierSwarmSemanticLeaseScopeOptions & {
|
|
4303
|
+
scopes?: readonly FrontierSwarmMergeQueueScope[];
|
|
4304
|
+
}): FrontierSemanticLeaseScope;
|
|
4305
|
+
export declare function createSwarmSemanticLeaseScopesForMergeQueue(queue: FrontierSwarmHierarchicalMergeQueue, input?: FrontierSwarmSemanticLeaseScopeOptions): FrontierSemanticLeaseScope[];
|
|
4306
|
+
export declare function createSwarmSemanticLeaseStateForMergeQueue(queue: FrontierSwarmHierarchicalMergeQueue, input?: FrontierSwarmSemanticLeaseScopeOptions & {
|
|
4307
|
+
id?: string;
|
|
4308
|
+
defaultTtlMs?: number;
|
|
4309
|
+
now?: number;
|
|
4310
|
+
metadata?: unknown;
|
|
4311
|
+
}): FrontierSemanticLeaseState;
|
|
4312
|
+
export declare function acquireSwarmCoordinatorSemanticLease(input: FrontierSwarmCoordinatorSemanticLeaseAcquireInput): FrontierSwarmCoordinatorSemanticLeaseAcquireResult;
|
|
4313
|
+
export declare function validateSwarmCoordinatorSemanticLeaseFence(input: FrontierSwarmCoordinatorSemanticLeaseFenceInput): ReturnType<typeof validateSemanticLeaseFence>;
|
|
3540
4314
|
export declare function summarizeSwarmCoordinatorAgentDrainWork(work: Pick<FrontierSwarmCoordinatorAgentDrainWork, 'leases' | 'assignments' | 'terminalDecisions' | 'promotedWork'>): FrontierSwarmCoordinatorAgentDrainWorkConsumerSummary;
|
|
3541
4315
|
export declare function createSwarmContinuousPoolState(input?: FrontierSwarmContinuousPoolStateInput): FrontierSwarmContinuousPoolState;
|
|
3542
4316
|
export declare function classifySwarmQueueOutcome(input: FrontierSwarmQueueOutcomeDecisionInput): FrontierSwarmQueueOutcomeClassification;
|
|
@@ -3544,6 +4318,7 @@ export declare function createSwarmQueueOutcomeDecision(input: FrontierSwarmQueu
|
|
|
3544
4318
|
export declare function createSwarmQueueOutcomeModel(input?: FrontierSwarmQueueOutcomeModelInput): FrontierSwarmQueueOutcomeModel;
|
|
3545
4319
|
export declare function collapseSwarmQueueOutcomeDecisions(input: FrontierSwarmQueueOutcomeModelInput | readonly (FrontierSwarmQueueOutcomeDecisionInput | FrontierSwarmQueueOutcomeDecision)[]): FrontierSwarmQueueOutcomeModel;
|
|
3546
4320
|
export declare function normalizeSwarmTerminalOutcome(input?: FrontierSwarmTerminalOutcomeInput | FrontierSwarmTerminalOutcomeLabel | string): FrontierSwarmTerminalOutcome;
|
|
4321
|
+
export declare function createSwarmTerminalOutcomeRecord(input?: FrontierSwarmTerminalOutcomeRecordInput): FrontierSwarmTerminalOutcomeRecord;
|
|
3547
4322
|
export declare function reconcileSwarmTerminalState(input?: FrontierSwarmTerminalStateReconciliationInput): FrontierSwarmTerminalStateReconciliation;
|
|
3548
4323
|
export declare function resolveSwarmCompute(manifestInput: FrontierSwarmManifest | FrontierSwarmManifestInput, taskInput: FrontierSwarmTask | FrontierSwarmTaskInput): FrontierSwarmCompute;
|
|
3549
4324
|
export declare function createSwarmProof(input: FrontierSwarmManifest | FrontierSwarmPlan | FrontierSwarmRun, options?: {
|