@shapeshift-labs/frontier-swarm 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -4
- package/benchmarks/package-bench.mjs +103 -1
- package/dist/index.d.ts +801 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1302 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,18 +9,48 @@ export declare const FRONTIER_SWARM_RUN_KIND = "frontier.swarm.run";
|
|
|
9
9
|
export declare const FRONTIER_SWARM_RUN_VERSION = 1;
|
|
10
10
|
export declare const FRONTIER_SWARM_EVENT_KIND = "frontier.swarm.event";
|
|
11
11
|
export declare const FRONTIER_SWARM_EVENT_VERSION = 1;
|
|
12
|
+
export declare const FRONTIER_SWARM_EVENT_STREAM_KIND = "frontier.swarm.event-stream";
|
|
13
|
+
export declare const FRONTIER_SWARM_EVENT_STREAM_VERSION = 1;
|
|
14
|
+
export declare const FRONTIER_SWARM_MAILBOX_KIND = "frontier.swarm.mailbox";
|
|
15
|
+
export declare const FRONTIER_SWARM_MAILBOX_VERSION = 1;
|
|
12
16
|
export declare const FRONTIER_SWARM_PROOF_KIND = "frontier.swarm.proof";
|
|
13
17
|
export declare const FRONTIER_SWARM_PROOF_VERSION = 1;
|
|
14
18
|
export declare const FRONTIER_SWARM_SCHEDULE_KIND = "frontier.swarm.schedule";
|
|
15
19
|
export declare const FRONTIER_SWARM_SCHEDULE_VERSION = 1;
|
|
16
20
|
export declare const FRONTIER_SWARM_LEASE_KIND = "frontier.swarm.lease";
|
|
17
21
|
export declare const FRONTIER_SWARM_LEASE_VERSION = 1;
|
|
22
|
+
export declare const FRONTIER_SWARM_QUEUE_SNAPSHOT_KIND = "frontier.swarm.queue-snapshot";
|
|
23
|
+
export declare const FRONTIER_SWARM_QUEUE_SNAPSHOT_VERSION = 1;
|
|
24
|
+
export declare const FRONTIER_SWARM_RUN_CHECKPOINT_KIND = "frontier.swarm.run-checkpoint";
|
|
25
|
+
export declare const FRONTIER_SWARM_RUN_CHECKPOINT_VERSION = 1;
|
|
18
26
|
export declare const FRONTIER_SWARM_ARTIFACT_INDEX_KIND = "frontier.swarm.artifact-index";
|
|
19
27
|
export declare const FRONTIER_SWARM_ARTIFACT_INDEX_VERSION = 1;
|
|
20
28
|
export declare const FRONTIER_SWARM_REVIEW_PLAN_KIND = "frontier.swarm.review-plan";
|
|
21
29
|
export declare const FRONTIER_SWARM_REVIEW_PLAN_VERSION = 1;
|
|
22
30
|
export declare const FRONTIER_SWARM_MERGE_PLAN_KIND = "frontier.swarm.merge-plan";
|
|
23
31
|
export declare const FRONTIER_SWARM_MERGE_PLAN_VERSION = 1;
|
|
32
|
+
export declare const FRONTIER_SWARM_MERGE_BUNDLE_KIND = "frontier.swarm.merge-bundle";
|
|
33
|
+
export declare const FRONTIER_SWARM_MERGE_BUNDLE_VERSION = 1;
|
|
34
|
+
export declare const FRONTIER_SWARM_QUEUE_OVERLAY_KIND = "frontier.swarm.queue-overlay";
|
|
35
|
+
export declare const FRONTIER_SWARM_QUEUE_OVERLAY_VERSION = 1;
|
|
36
|
+
export declare const FRONTIER_SWARM_MERGE_INDEX_KIND = "frontier.swarm.merge-index";
|
|
37
|
+
export declare const FRONTIER_SWARM_MERGE_INDEX_VERSION = 1;
|
|
38
|
+
export declare const FRONTIER_SWARM_HOTSPOT_REPORT_KIND = "frontier.swarm.hotspot-report";
|
|
39
|
+
export declare const FRONTIER_SWARM_HOTSPOT_REPORT_VERSION = 1;
|
|
40
|
+
export declare const FRONTIER_SWARM_REVIEWER_LANE_PLAN_KIND = "frontier.swarm.reviewer-lane-plan";
|
|
41
|
+
export declare const FRONTIER_SWARM_REVIEWER_LANE_PLAN_VERSION = 1;
|
|
42
|
+
export declare const FRONTIER_SWARM_RUN_STORE_SHARDS_KIND = "frontier.swarm.run-store-shards";
|
|
43
|
+
export declare const FRONTIER_SWARM_RUN_STORE_SHARDS_VERSION = 1;
|
|
44
|
+
export declare const FRONTIER_SWARM_MERGE_ADMISSION_KIND = "frontier.swarm.merge-admission";
|
|
45
|
+
export declare const FRONTIER_SWARM_MERGE_ADMISSION_VERSION = 1;
|
|
46
|
+
export declare const FRONTIER_SWARM_CONTEXT_PACK_KIND = "frontier.swarm.context-pack";
|
|
47
|
+
export declare const FRONTIER_SWARM_CONTEXT_PACK_VERSION = 1;
|
|
48
|
+
export declare const FRONTIER_SWARM_ORACLE_CORPUS_KIND = "frontier.swarm.oracle-corpus";
|
|
49
|
+
export declare const FRONTIER_SWARM_ORACLE_CORPUS_VERSION = 1;
|
|
50
|
+
export declare const FRONTIER_SWARM_LANE_PLAYBOOK_KIND = "frontier.swarm.lane-playbook";
|
|
51
|
+
export declare const FRONTIER_SWARM_LANE_PLAYBOOK_VERSION = 1;
|
|
52
|
+
export declare const FRONTIER_SWARM_PATCH_STACK_PLAN_KIND = "frontier.swarm.patch-stack-plan";
|
|
53
|
+
export declare const FRONTIER_SWARM_PATCH_STACK_PLAN_VERSION = 1;
|
|
24
54
|
export declare const FRONTIER_SWARM_DEFAULT_CODEX_COMPUTE_ID = "codex.gpt-5.5.xhigh";
|
|
25
55
|
export declare const FRONTIER_SWARM_DEFAULT_MODEL = "gpt-5.5";
|
|
26
56
|
export declare const FRONTIER_SWARM_DEFAULT_REASONING_EFFORT = "xhigh";
|
|
@@ -29,6 +59,11 @@ export type FrontierSwarmReasoningEffort = 'minimal' | 'low' | 'medium' | 'high'
|
|
|
29
59
|
export type FrontierSwarmPolicyMode = 'advisory' | 'hard-file-ownership' | string;
|
|
30
60
|
export type FrontierSwarmTaskStatus = 'open' | 'planned' | 'running' | 'blocked' | 'failed' | 'completed' | 'verified' | string;
|
|
31
61
|
export type FrontierSwarmJobStatus = 'planned' | 'scheduled' | 'running' | 'blocked' | 'failed' | 'completed' | 'verified' | string;
|
|
62
|
+
export type FrontierSwarmMergeReadiness = 'discovery-only' | 'patch-candidate' | 'verified-patch' | 'rejected' | 'blocked' | string;
|
|
63
|
+
export type FrontierSwarmMergeDisposition = 'auto-mergeable' | 'needs-port' | 'discovery-only' | 'rejected' | 'blocked' | 'stale-against-head' | string;
|
|
64
|
+
export type FrontierSwarmRiskLevel = 'low' | 'medium' | 'high' | 'unknown' | string;
|
|
65
|
+
export type FrontierSwarmPatchStatus = 'unknown' | 'applies' | 'missing' | 'stale' | 'failed-check' | string;
|
|
66
|
+
export type FrontierSwarmQueueOverlayStatus = 'satisfied' | 'ready-to-apply' | 'needs-human-port' | 'failed-evidence' | 'stale-against-head' | 'discovery-only' | 'blocked' | 'rejected' | 'unknown' | string;
|
|
32
67
|
export interface FrontierSwarmComputeInput {
|
|
33
68
|
id: string;
|
|
34
69
|
kind?: FrontierSwarmComputeKind;
|
|
@@ -79,6 +114,25 @@ export interface FrontierSwarmLayer {
|
|
|
79
114
|
tags: string[];
|
|
80
115
|
metadata?: JsonObject;
|
|
81
116
|
}
|
|
117
|
+
export interface FrontierSwarmOwnershipRegionInput {
|
|
118
|
+
id: string;
|
|
119
|
+
title?: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
globs?: readonly string[];
|
|
122
|
+
paths?: readonly string[];
|
|
123
|
+
selectors?: readonly string[];
|
|
124
|
+
owner?: string;
|
|
125
|
+
metadata?: unknown;
|
|
126
|
+
}
|
|
127
|
+
export interface FrontierSwarmOwnershipRegion {
|
|
128
|
+
id: string;
|
|
129
|
+
title: string;
|
|
130
|
+
description?: string;
|
|
131
|
+
globs: string[];
|
|
132
|
+
selectors: string[];
|
|
133
|
+
owner?: string;
|
|
134
|
+
metadata?: JsonObject;
|
|
135
|
+
}
|
|
82
136
|
export interface FrontierSwarmLaneInput {
|
|
83
137
|
id: string;
|
|
84
138
|
title?: string;
|
|
@@ -89,6 +143,9 @@ export interface FrontierSwarmLaneInput {
|
|
|
89
143
|
allowedGlobs?: readonly string[];
|
|
90
144
|
sharedReadOnly?: readonly string[];
|
|
91
145
|
neverEdit?: readonly string[];
|
|
146
|
+
ownershipRegions?: readonly FrontierSwarmOwnershipRegionInput[];
|
|
147
|
+
capabilities?: readonly string[];
|
|
148
|
+
resourceRequirements?: FrontierSwarmResourceRequirementsInput;
|
|
92
149
|
worktreePath?: string;
|
|
93
150
|
evidencePrefix?: string;
|
|
94
151
|
evidenceOutDirPrefix?: string;
|
|
@@ -107,6 +164,9 @@ export interface FrontierSwarmLane {
|
|
|
107
164
|
allowedWrites: string[];
|
|
108
165
|
sharedReadOnly: string[];
|
|
109
166
|
neverEdit: string[];
|
|
167
|
+
ownershipRegions: FrontierSwarmOwnershipRegion[];
|
|
168
|
+
capabilities: string[];
|
|
169
|
+
resourceRequirements?: FrontierSwarmResourceRequirements;
|
|
110
170
|
worktreePath?: string;
|
|
111
171
|
evidencePrefix?: string;
|
|
112
172
|
concurrencyKey: string;
|
|
@@ -131,6 +191,36 @@ export interface FrontierSwarmCommand {
|
|
|
131
191
|
cwd?: string;
|
|
132
192
|
metadata?: JsonObject;
|
|
133
193
|
}
|
|
194
|
+
export interface FrontierSwarmBrowserResourceInput {
|
|
195
|
+
required?: boolean;
|
|
196
|
+
portPool?: readonly (string | number)[];
|
|
197
|
+
profileDir?: string;
|
|
198
|
+
profileDirPrefix?: string;
|
|
199
|
+
maxConcurrency?: number;
|
|
200
|
+
headless?: boolean;
|
|
201
|
+
metadata?: unknown;
|
|
202
|
+
}
|
|
203
|
+
export interface FrontierSwarmBrowserResource {
|
|
204
|
+
required: boolean;
|
|
205
|
+
portPool: string[];
|
|
206
|
+
profileDir?: string;
|
|
207
|
+
profileDirPrefix?: string;
|
|
208
|
+
maxConcurrency?: number;
|
|
209
|
+
headless?: boolean;
|
|
210
|
+
metadata?: JsonObject;
|
|
211
|
+
}
|
|
212
|
+
export interface FrontierSwarmResourceRequirementsInput {
|
|
213
|
+
capabilities?: readonly string[];
|
|
214
|
+
resources?: Record<string, number>;
|
|
215
|
+
browser?: FrontierSwarmBrowserResourceInput;
|
|
216
|
+
metadata?: unknown;
|
|
217
|
+
}
|
|
218
|
+
export interface FrontierSwarmResourceRequirements {
|
|
219
|
+
capabilities: string[];
|
|
220
|
+
resources: Record<string, number>;
|
|
221
|
+
browser?: FrontierSwarmBrowserResource;
|
|
222
|
+
metadata?: JsonObject;
|
|
223
|
+
}
|
|
134
224
|
export interface FrontierSwarmPolicyInput {
|
|
135
225
|
mode?: FrontierSwarmPolicyMode;
|
|
136
226
|
defaultConcurrency?: number;
|
|
@@ -217,6 +307,11 @@ export interface FrontierSwarmTaskInput {
|
|
|
217
307
|
targetRefs?: readonly string[];
|
|
218
308
|
ownedFiles?: readonly string[];
|
|
219
309
|
allowedWrites?: readonly string[];
|
|
310
|
+
ownershipRegions?: readonly FrontierSwarmOwnershipRegionInput[];
|
|
311
|
+
ownedRegions?: readonly string[];
|
|
312
|
+
changedRegions?: readonly string[];
|
|
313
|
+
capabilities?: readonly string[];
|
|
314
|
+
resourceRequirements?: FrontierSwarmResourceRequirementsInput;
|
|
220
315
|
acceptance?: readonly string[];
|
|
221
316
|
acceptanceChecks?: readonly ({
|
|
222
317
|
id?: string;
|
|
@@ -249,6 +344,11 @@ export interface FrontierSwarmTask {
|
|
|
249
344
|
sourceRefs: string[];
|
|
250
345
|
targetRefs: string[];
|
|
251
346
|
allowedWrites: string[];
|
|
347
|
+
ownershipRegions: FrontierSwarmOwnershipRegion[];
|
|
348
|
+
ownedRegions: string[];
|
|
349
|
+
changedRegions: string[];
|
|
350
|
+
capabilities: string[];
|
|
351
|
+
resourceRequirements?: FrontierSwarmResourceRequirements;
|
|
252
352
|
acceptance: string[];
|
|
253
353
|
verification: FrontierSwarmCommand[];
|
|
254
354
|
evidenceCommand?: string;
|
|
@@ -286,6 +386,38 @@ export interface FrontierSwarmPlanFilter {
|
|
|
286
386
|
limit?: number;
|
|
287
387
|
compute?: string;
|
|
288
388
|
}
|
|
389
|
+
export interface FrontierSwarmSelectionPriorityInput {
|
|
390
|
+
statuses?: Record<string, number>;
|
|
391
|
+
workKinds?: Record<string, number>;
|
|
392
|
+
defaultStatusRank?: number;
|
|
393
|
+
defaultWorkKindRank?: number;
|
|
394
|
+
statusWeight?: number;
|
|
395
|
+
workKindWeight?: number;
|
|
396
|
+
}
|
|
397
|
+
export interface FrontierSwarmTaskSelectionInput extends FrontierSwarmPlanFilter {
|
|
398
|
+
workKinds?: readonly string[];
|
|
399
|
+
spreadLanes?: boolean;
|
|
400
|
+
includeOwnershipWarnings?: boolean;
|
|
401
|
+
assignSelectionPriority?: boolean;
|
|
402
|
+
priority?: FrontierSwarmSelectionPriorityInput;
|
|
403
|
+
}
|
|
404
|
+
export interface FrontierSwarmTaskSelectionEntry {
|
|
405
|
+
task: FrontierSwarmTask;
|
|
406
|
+
lane?: FrontierSwarmLane;
|
|
407
|
+
ownershipWarnings: string[];
|
|
408
|
+
selectionPriority: number;
|
|
409
|
+
}
|
|
410
|
+
export interface FrontierSwarmTaskSelectionSummary {
|
|
411
|
+
total: number;
|
|
412
|
+
byLane: Record<string, number>;
|
|
413
|
+
byWorkKind: Record<string, number>;
|
|
414
|
+
ownershipWarningCount: number;
|
|
415
|
+
}
|
|
416
|
+
export interface FrontierSwarmTaskSelection {
|
|
417
|
+
tasks: FrontierSwarmTask[];
|
|
418
|
+
entries: FrontierSwarmTaskSelectionEntry[];
|
|
419
|
+
summary: FrontierSwarmTaskSelectionSummary;
|
|
420
|
+
}
|
|
289
421
|
export interface FrontierSwarmPlanInput extends FrontierSwarmPlanFilter {
|
|
290
422
|
id?: string;
|
|
291
423
|
runId?: string;
|
|
@@ -330,6 +462,11 @@ export interface FrontierSwarmJob {
|
|
|
330
462
|
allowedWrites: string[];
|
|
331
463
|
sharedReadOnly: string[];
|
|
332
464
|
neverEdit: string[];
|
|
465
|
+
ownershipRegions: FrontierSwarmOwnershipRegion[];
|
|
466
|
+
ownedRegions: string[];
|
|
467
|
+
changedRegions: string[];
|
|
468
|
+
capabilities: string[];
|
|
469
|
+
resourceRequirements?: FrontierSwarmResourceRequirements;
|
|
333
470
|
worktreePath?: string;
|
|
334
471
|
evidencePrefix?: string;
|
|
335
472
|
concurrencyKey: string;
|
|
@@ -454,6 +591,8 @@ export interface FrontierSwarmScheduledJob {
|
|
|
454
591
|
concurrencyKey: string;
|
|
455
592
|
priority: number;
|
|
456
593
|
dependsOn: string[];
|
|
594
|
+
capabilities: string[];
|
|
595
|
+
resourceRequirements?: FrontierSwarmResourceRequirements;
|
|
457
596
|
}
|
|
458
597
|
export interface FrontierSwarmBlockedJob extends FrontierSwarmScheduledJob {
|
|
459
598
|
reasons: string[];
|
|
@@ -464,6 +603,8 @@ export interface FrontierSwarmRunningJob {
|
|
|
464
603
|
lane: string;
|
|
465
604
|
compute: string;
|
|
466
605
|
concurrencyKey: string;
|
|
606
|
+
capabilities: string[];
|
|
607
|
+
resourceRequirements?: FrontierSwarmResourceRequirements;
|
|
467
608
|
}
|
|
468
609
|
export interface FrontierSwarmScheduleSummary {
|
|
469
610
|
jobCount: number;
|
|
@@ -493,6 +634,110 @@ export interface FrontierSwarmLease {
|
|
|
493
634
|
fencingToken: number;
|
|
494
635
|
status: 'active' | 'expired' | 'released';
|
|
495
636
|
}
|
|
637
|
+
export type FrontierSwarmQueueJobStatus = 'ready' | 'leased' | 'running' | 'completed' | 'failed' | 'blocked' | 'retrying' | 'dead-letter' | string;
|
|
638
|
+
export interface FrontierSwarmQueueJobInput {
|
|
639
|
+
jobId: string;
|
|
640
|
+
taskId?: string;
|
|
641
|
+
runId?: string;
|
|
642
|
+
status?: FrontierSwarmQueueJobStatus;
|
|
643
|
+
lane?: string;
|
|
644
|
+
compute?: string;
|
|
645
|
+
concurrencyKey?: string;
|
|
646
|
+
priority?: number;
|
|
647
|
+
attempts?: number;
|
|
648
|
+
maxAttempts?: number;
|
|
649
|
+
availableAt?: number;
|
|
650
|
+
lease?: FrontierSwarmLease;
|
|
651
|
+
lastError?: string;
|
|
652
|
+
metadata?: unknown;
|
|
653
|
+
}
|
|
654
|
+
export interface FrontierSwarmQueueJob {
|
|
655
|
+
jobId: string;
|
|
656
|
+
taskId?: string;
|
|
657
|
+
runId?: string;
|
|
658
|
+
status: FrontierSwarmQueueJobStatus;
|
|
659
|
+
lane?: string;
|
|
660
|
+
compute?: string;
|
|
661
|
+
concurrencyKey?: string;
|
|
662
|
+
priority: number;
|
|
663
|
+
attempts: number;
|
|
664
|
+
maxAttempts: number;
|
|
665
|
+
availableAt?: number;
|
|
666
|
+
lease?: FrontierSwarmLease;
|
|
667
|
+
lastError?: string;
|
|
668
|
+
metadata?: JsonObject;
|
|
669
|
+
}
|
|
670
|
+
export interface FrontierSwarmQueueSnapshotInput {
|
|
671
|
+
id?: string;
|
|
672
|
+
plan: FrontierSwarmPlan;
|
|
673
|
+
run?: FrontierSwarmRun;
|
|
674
|
+
jobs?: readonly FrontierSwarmQueueJobInput[];
|
|
675
|
+
leases?: readonly FrontierSwarmLease[];
|
|
676
|
+
generatedAt?: number;
|
|
677
|
+
metadata?: unknown;
|
|
678
|
+
}
|
|
679
|
+
export interface FrontierSwarmQueueSnapshot {
|
|
680
|
+
kind: typeof FRONTIER_SWARM_QUEUE_SNAPSHOT_KIND;
|
|
681
|
+
version: typeof FRONTIER_SWARM_QUEUE_SNAPSHOT_VERSION;
|
|
682
|
+
id: string;
|
|
683
|
+
planId: string;
|
|
684
|
+
runId: string;
|
|
685
|
+
generatedAt: number;
|
|
686
|
+
jobs: FrontierSwarmQueueJob[];
|
|
687
|
+
byStatus: Record<string, string[]>;
|
|
688
|
+
byLane: Record<string, string[]>;
|
|
689
|
+
leases: FrontierSwarmLease[];
|
|
690
|
+
metadata?: JsonObject;
|
|
691
|
+
summary: {
|
|
692
|
+
jobCount: number;
|
|
693
|
+
leaseCount: number;
|
|
694
|
+
readyCount: number;
|
|
695
|
+
leasedCount: number;
|
|
696
|
+
completedCount: number;
|
|
697
|
+
failedCount: number;
|
|
698
|
+
deadLetterCount: number;
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
export interface FrontierSwarmLeaseRenewalInput {
|
|
702
|
+
lease: FrontierSwarmLease;
|
|
703
|
+
now?: number;
|
|
704
|
+
leaseMs?: number;
|
|
705
|
+
status?: FrontierSwarmLease['status'];
|
|
706
|
+
}
|
|
707
|
+
export interface FrontierSwarmQueueAdapter {
|
|
708
|
+
snapshot(): FrontierSwarmQueueSnapshot | Promise<FrontierSwarmQueueSnapshot>;
|
|
709
|
+
enqueue?(snapshot: FrontierSwarmQueueSnapshot): FrontierSwarmQueueSnapshot | Promise<FrontierSwarmQueueSnapshot>;
|
|
710
|
+
lease?(input: FrontierSwarmLeaseInput): readonly FrontierSwarmLease[] | Promise<readonly FrontierSwarmLease[]>;
|
|
711
|
+
renew?(input: FrontierSwarmLeaseRenewalInput): FrontierSwarmLease | Promise<FrontierSwarmLease>;
|
|
712
|
+
complete?(result: FrontierSwarmJobResultInput): FrontierSwarmQueueSnapshot | Promise<FrontierSwarmQueueSnapshot>;
|
|
713
|
+
}
|
|
714
|
+
export interface FrontierSwarmRunCheckpointInput {
|
|
715
|
+
run: FrontierSwarmRun;
|
|
716
|
+
sequence?: number;
|
|
717
|
+
savedAt?: number;
|
|
718
|
+
metadata?: unknown;
|
|
719
|
+
}
|
|
720
|
+
export interface FrontierSwarmRunCheckpoint {
|
|
721
|
+
kind: typeof FRONTIER_SWARM_RUN_CHECKPOINT_KIND;
|
|
722
|
+
version: typeof FRONTIER_SWARM_RUN_CHECKPOINT_VERSION;
|
|
723
|
+
id: string;
|
|
724
|
+
runId: string;
|
|
725
|
+
planId: string;
|
|
726
|
+
sequence: number;
|
|
727
|
+
savedAt: number;
|
|
728
|
+
status: FrontierSwarmJobStatus;
|
|
729
|
+
eventCount: number;
|
|
730
|
+
resultCount: number;
|
|
731
|
+
hash: string;
|
|
732
|
+
metadata?: JsonObject;
|
|
733
|
+
}
|
|
734
|
+
export interface FrontierSwarmRunStoreAdapter {
|
|
735
|
+
loadRun(runId: string): FrontierSwarmRun | undefined | Promise<FrontierSwarmRun | undefined>;
|
|
736
|
+
saveRun(run: FrontierSwarmRun, checkpoint?: FrontierSwarmRunCheckpoint): void | Promise<void>;
|
|
737
|
+
appendEvents?(runId: string, events: readonly FrontierSwarmEventInput[]): void | Promise<void>;
|
|
738
|
+
appendResults?(runId: string, results: readonly FrontierSwarmJobResultInput[]): void | Promise<void>;
|
|
739
|
+
checkpoint?(run: FrontierSwarmRun): FrontierSwarmRunCheckpoint | Promise<FrontierSwarmRunCheckpoint>;
|
|
740
|
+
}
|
|
496
741
|
export interface FrontierSwarmArtifactInput {
|
|
497
742
|
jobId: string;
|
|
498
743
|
path: string;
|
|
@@ -634,16 +879,73 @@ export interface FrontierSwarmEvent {
|
|
|
634
879
|
data?: JsonValue;
|
|
635
880
|
metadata?: JsonObject;
|
|
636
881
|
}
|
|
882
|
+
export type FrontierSwarmMailboxScope = 'global' | 'lane' | 'job' | string;
|
|
883
|
+
export interface FrontierSwarmMailboxInput {
|
|
884
|
+
id?: string;
|
|
885
|
+
runId?: string;
|
|
886
|
+
scope?: FrontierSwarmMailboxScope;
|
|
887
|
+
lane?: string;
|
|
888
|
+
jobId?: string;
|
|
889
|
+
path?: string;
|
|
890
|
+
eventTypes?: readonly string[];
|
|
891
|
+
appendOnly?: boolean;
|
|
892
|
+
metadata?: unknown;
|
|
893
|
+
}
|
|
894
|
+
export interface FrontierSwarmMailbox {
|
|
895
|
+
kind: typeof FRONTIER_SWARM_MAILBOX_KIND;
|
|
896
|
+
version: typeof FRONTIER_SWARM_MAILBOX_VERSION;
|
|
897
|
+
id: string;
|
|
898
|
+
runId?: string;
|
|
899
|
+
scope: FrontierSwarmMailboxScope;
|
|
900
|
+
lane?: string;
|
|
901
|
+
jobId?: string;
|
|
902
|
+
path?: string;
|
|
903
|
+
eventTypes: string[];
|
|
904
|
+
appendOnly: boolean;
|
|
905
|
+
metadata?: JsonObject;
|
|
906
|
+
}
|
|
907
|
+
export interface FrontierSwarmEventStreamInput {
|
|
908
|
+
id?: string;
|
|
909
|
+
runId?: string;
|
|
910
|
+
root?: string;
|
|
911
|
+
lanes?: readonly (string | FrontierSwarmLaneInput | FrontierSwarmLane)[];
|
|
912
|
+
eventTypes?: readonly string[];
|
|
913
|
+
appendOnly?: boolean;
|
|
914
|
+
metadata?: unknown;
|
|
915
|
+
}
|
|
916
|
+
export interface FrontierSwarmEventStream {
|
|
917
|
+
kind: typeof FRONTIER_SWARM_EVENT_STREAM_KIND;
|
|
918
|
+
version: typeof FRONTIER_SWARM_EVENT_STREAM_VERSION;
|
|
919
|
+
id: string;
|
|
920
|
+
runId?: string;
|
|
921
|
+
root?: string;
|
|
922
|
+
appendOnly: boolean;
|
|
923
|
+
global: FrontierSwarmMailbox;
|
|
924
|
+
lanes: Record<string, FrontierSwarmMailbox>;
|
|
925
|
+
eventTypes: string[];
|
|
926
|
+
metadata?: JsonObject;
|
|
927
|
+
summary: {
|
|
928
|
+
mailboxCount: number;
|
|
929
|
+
laneCount: number;
|
|
930
|
+
eventTypeCount: number;
|
|
931
|
+
};
|
|
932
|
+
}
|
|
637
933
|
export interface FrontierSwarmJobResultInput {
|
|
638
934
|
jobId: string;
|
|
639
935
|
status?: FrontierSwarmJobStatus;
|
|
936
|
+
mergeReadiness?: FrontierSwarmMergeReadiness;
|
|
640
937
|
startedAt?: number;
|
|
641
938
|
finishedAt?: number;
|
|
642
939
|
exitCode?: number;
|
|
643
940
|
signal?: string;
|
|
644
941
|
changedPaths?: readonly string[];
|
|
942
|
+
changedRegions?: readonly string[];
|
|
645
943
|
ownershipViolations?: readonly string[];
|
|
646
944
|
evidencePaths?: readonly string[];
|
|
945
|
+
patchPath?: string;
|
|
946
|
+
queueItemIds?: readonly string[];
|
|
947
|
+
riskLevel?: FrontierSwarmRiskLevel;
|
|
948
|
+
mergeDisposition?: FrontierSwarmMergeDisposition;
|
|
647
949
|
verification?: readonly FrontierSwarmVerificationResultInput[];
|
|
648
950
|
lastMessage?: string;
|
|
649
951
|
error?: unknown;
|
|
@@ -672,14 +974,20 @@ export interface FrontierSwarmVerificationResult {
|
|
|
672
974
|
export interface FrontierSwarmJobResult {
|
|
673
975
|
jobId: string;
|
|
674
976
|
status: FrontierSwarmJobStatus;
|
|
977
|
+
mergeReadiness: FrontierSwarmMergeReadiness;
|
|
675
978
|
startedAt?: number;
|
|
676
979
|
finishedAt?: number;
|
|
677
980
|
durationMs?: number;
|
|
678
981
|
exitCode?: number;
|
|
679
982
|
signal?: string;
|
|
680
983
|
changedPaths: string[];
|
|
984
|
+
changedRegions: string[];
|
|
681
985
|
ownershipViolations: string[];
|
|
682
986
|
evidencePaths: string[];
|
|
987
|
+
patchPath?: string;
|
|
988
|
+
queueItemIds: string[];
|
|
989
|
+
riskLevel: FrontierSwarmRiskLevel;
|
|
990
|
+
mergeDisposition: FrontierSwarmMergeDisposition;
|
|
683
991
|
verification: FrontierSwarmVerificationResult[];
|
|
684
992
|
lastMessage?: string;
|
|
685
993
|
error?: string;
|
|
@@ -691,6 +999,474 @@ export interface FrontierSwarmOwnershipReport {
|
|
|
691
999
|
allowedWrites: string[];
|
|
692
1000
|
violations: string[];
|
|
693
1001
|
}
|
|
1002
|
+
export interface FrontierSwarmMergeBundleInput {
|
|
1003
|
+
id?: string;
|
|
1004
|
+
runId?: string;
|
|
1005
|
+
planId?: string;
|
|
1006
|
+
job?: FrontierSwarmJob;
|
|
1007
|
+
result: FrontierSwarmJobResult | FrontierSwarmJobResultInput;
|
|
1008
|
+
patchPath?: string;
|
|
1009
|
+
patchHash?: string;
|
|
1010
|
+
evidencePaths?: readonly string[];
|
|
1011
|
+
queueItemIds?: readonly string[];
|
|
1012
|
+
riskLevel?: FrontierSwarmRiskLevel;
|
|
1013
|
+
disposition?: FrontierSwarmMergeDisposition;
|
|
1014
|
+
staleAgainstHead?: boolean;
|
|
1015
|
+
branchName?: string;
|
|
1016
|
+
commit?: string;
|
|
1017
|
+
metadata?: unknown;
|
|
1018
|
+
generatedAt?: number;
|
|
1019
|
+
}
|
|
1020
|
+
export interface FrontierSwarmMergeBundle {
|
|
1021
|
+
kind: typeof FRONTIER_SWARM_MERGE_BUNDLE_KIND;
|
|
1022
|
+
version: typeof FRONTIER_SWARM_MERGE_BUNDLE_VERSION;
|
|
1023
|
+
id: string;
|
|
1024
|
+
runId?: string;
|
|
1025
|
+
planId?: string;
|
|
1026
|
+
jobId: string;
|
|
1027
|
+
taskId?: string;
|
|
1028
|
+
lane?: string;
|
|
1029
|
+
title?: string;
|
|
1030
|
+
generatedAt: number;
|
|
1031
|
+
status: FrontierSwarmJobStatus;
|
|
1032
|
+
mergeReadiness: FrontierSwarmMergeReadiness;
|
|
1033
|
+
disposition: FrontierSwarmMergeDisposition;
|
|
1034
|
+
riskLevel: FrontierSwarmRiskLevel;
|
|
1035
|
+
autoMergeable: boolean;
|
|
1036
|
+
changedPaths: string[];
|
|
1037
|
+
changedRegions: string[];
|
|
1038
|
+
ownedFilesTouched: string[];
|
|
1039
|
+
allowedWrites: string[];
|
|
1040
|
+
ownershipViolations: string[];
|
|
1041
|
+
patchPath?: string;
|
|
1042
|
+
patchHash?: string;
|
|
1043
|
+
evidencePaths: string[];
|
|
1044
|
+
commandsPassed: FrontierSwarmVerificationResult[];
|
|
1045
|
+
commandsFailed: FrontierSwarmVerificationResult[];
|
|
1046
|
+
queueItemIds: string[];
|
|
1047
|
+
branchName?: string;
|
|
1048
|
+
commit?: string;
|
|
1049
|
+
staleAgainstHead: boolean;
|
|
1050
|
+
reasons: string[];
|
|
1051
|
+
metadata?: JsonObject;
|
|
1052
|
+
}
|
|
1053
|
+
export interface FrontierSwarmQueueOverlayInput {
|
|
1054
|
+
id?: string;
|
|
1055
|
+
runId?: string;
|
|
1056
|
+
bundles?: readonly FrontierSwarmMergeBundle[];
|
|
1057
|
+
results?: readonly (FrontierSwarmJobResult | FrontierSwarmJobResultInput)[];
|
|
1058
|
+
generatedAt?: number;
|
|
1059
|
+
metadata?: unknown;
|
|
1060
|
+
}
|
|
1061
|
+
export interface FrontierSwarmQueueOverlay {
|
|
1062
|
+
kind: typeof FRONTIER_SWARM_QUEUE_OVERLAY_KIND;
|
|
1063
|
+
version: typeof FRONTIER_SWARM_QUEUE_OVERLAY_VERSION;
|
|
1064
|
+
id: string;
|
|
1065
|
+
runId?: string;
|
|
1066
|
+
generatedAt: number;
|
|
1067
|
+
entries: FrontierSwarmQueueOverlayEntry[];
|
|
1068
|
+
byQueueItemId: Record<string, FrontierSwarmQueueOverlayEntry[]>;
|
|
1069
|
+
summary: {
|
|
1070
|
+
entryCount: number;
|
|
1071
|
+
queueItemCount: number;
|
|
1072
|
+
readyToApplyCount: number;
|
|
1073
|
+
needsHumanPortCount: number;
|
|
1074
|
+
failedEvidenceCount: number;
|
|
1075
|
+
staleAgainstHeadCount: number;
|
|
1076
|
+
discoveryOnlyCount: number;
|
|
1077
|
+
};
|
|
1078
|
+
metadata?: JsonObject;
|
|
1079
|
+
}
|
|
1080
|
+
export interface FrontierSwarmQueueOverlayEntry {
|
|
1081
|
+
queueItemId: string;
|
|
1082
|
+
jobId: string;
|
|
1083
|
+
status: FrontierSwarmQueueOverlayStatus;
|
|
1084
|
+
mergeReadiness: FrontierSwarmMergeReadiness;
|
|
1085
|
+
disposition: FrontierSwarmMergeDisposition;
|
|
1086
|
+
riskLevel: FrontierSwarmRiskLevel;
|
|
1087
|
+
patchPath?: string;
|
|
1088
|
+
evidencePaths: string[];
|
|
1089
|
+
changedPaths: string[];
|
|
1090
|
+
changedRegions: string[];
|
|
1091
|
+
reasons: string[];
|
|
1092
|
+
generatedAt: number;
|
|
1093
|
+
}
|
|
1094
|
+
export interface FrontierSwarmDerivedQueueStatusInput {
|
|
1095
|
+
snapshot: FrontierSwarmQueueSnapshot;
|
|
1096
|
+
overlays?: readonly FrontierSwarmQueueOverlay[];
|
|
1097
|
+
generatedAt?: number;
|
|
1098
|
+
}
|
|
1099
|
+
export interface FrontierSwarmDerivedQueueStatus {
|
|
1100
|
+
generatedAt: number;
|
|
1101
|
+
jobs: FrontierSwarmQueueJob[];
|
|
1102
|
+
byStatus: Record<string, string[]>;
|
|
1103
|
+
summary: FrontierSwarmQueueSnapshot['summary'];
|
|
1104
|
+
}
|
|
1105
|
+
export interface FrontierSwarmMergeIndexInput {
|
|
1106
|
+
id?: string;
|
|
1107
|
+
runId?: string;
|
|
1108
|
+
planId?: string;
|
|
1109
|
+
bundles: readonly FrontierSwarmMergeBundle[];
|
|
1110
|
+
patchStatuses?: Record<string, FrontierSwarmPatchStatus>;
|
|
1111
|
+
generatedAt?: number;
|
|
1112
|
+
metadata?: unknown;
|
|
1113
|
+
}
|
|
1114
|
+
export interface FrontierSwarmMergeIndex {
|
|
1115
|
+
kind: typeof FRONTIER_SWARM_MERGE_INDEX_KIND;
|
|
1116
|
+
version: typeof FRONTIER_SWARM_MERGE_INDEX_VERSION;
|
|
1117
|
+
id: string;
|
|
1118
|
+
runId?: string;
|
|
1119
|
+
planId?: string;
|
|
1120
|
+
generatedAt: number;
|
|
1121
|
+
entries: FrontierSwarmMergeIndexEntry[];
|
|
1122
|
+
conflicts: FrontierSwarmMergeConflict[];
|
|
1123
|
+
byDisposition: Record<string, string[]>;
|
|
1124
|
+
byPath: Record<string, string[]>;
|
|
1125
|
+
byRegion: Record<string, string[]>;
|
|
1126
|
+
summary: {
|
|
1127
|
+
entryCount: number;
|
|
1128
|
+
readyToApplyCount: number;
|
|
1129
|
+
needsHumanPortCount: number;
|
|
1130
|
+
failedEvidenceCount: number;
|
|
1131
|
+
staleAgainstHeadCount: number;
|
|
1132
|
+
discoveryOnlyCount: number;
|
|
1133
|
+
conflictCount: number;
|
|
1134
|
+
conflictedJobCount: number;
|
|
1135
|
+
};
|
|
1136
|
+
metadata?: JsonObject;
|
|
1137
|
+
}
|
|
1138
|
+
export interface FrontierSwarmMergeIndexEntry {
|
|
1139
|
+
jobId: string;
|
|
1140
|
+
taskId?: string;
|
|
1141
|
+
lane?: string;
|
|
1142
|
+
title?: string;
|
|
1143
|
+
status: FrontierSwarmJobStatus;
|
|
1144
|
+
mergeReadiness: FrontierSwarmMergeReadiness;
|
|
1145
|
+
disposition: FrontierSwarmMergeDisposition;
|
|
1146
|
+
riskLevel: FrontierSwarmRiskLevel;
|
|
1147
|
+
patchStatus: FrontierSwarmPatchStatus;
|
|
1148
|
+
staleAgainstHead: boolean;
|
|
1149
|
+
autoMergeable: boolean;
|
|
1150
|
+
changedPaths: string[];
|
|
1151
|
+
changedRegions: string[];
|
|
1152
|
+
conflictKeys: string[];
|
|
1153
|
+
conflictingJobIds: string[];
|
|
1154
|
+
ownedFilesTouched: string[];
|
|
1155
|
+
ownershipViolations: string[];
|
|
1156
|
+
patchPath?: string;
|
|
1157
|
+
patchHash?: string;
|
|
1158
|
+
evidencePaths: string[];
|
|
1159
|
+
queueItemIds: string[];
|
|
1160
|
+
reasons: string[];
|
|
1161
|
+
generatedAt: number;
|
|
1162
|
+
}
|
|
1163
|
+
export interface FrontierSwarmMergeConflict {
|
|
1164
|
+
jobIds: string[];
|
|
1165
|
+
key: string;
|
|
1166
|
+
kind: 'path' | 'region';
|
|
1167
|
+
path?: string;
|
|
1168
|
+
region?: string;
|
|
1169
|
+
}
|
|
1170
|
+
export interface FrontierSwarmRegionOwnershipInput {
|
|
1171
|
+
changedPaths?: readonly string[];
|
|
1172
|
+
changedRegions?: readonly string[];
|
|
1173
|
+
}
|
|
1174
|
+
export interface FrontierSwarmRegionOwnershipReport {
|
|
1175
|
+
ok: boolean;
|
|
1176
|
+
jobId: string;
|
|
1177
|
+
changedPaths: string[];
|
|
1178
|
+
changedRegions: string[];
|
|
1179
|
+
ownedRegions: string[];
|
|
1180
|
+
regionViolations: string[];
|
|
1181
|
+
unclassifiedChangedPaths: string[];
|
|
1182
|
+
}
|
|
1183
|
+
export interface FrontierSwarmHotspotReportInput {
|
|
1184
|
+
id?: string;
|
|
1185
|
+
bundles?: readonly FrontierSwarmMergeBundle[];
|
|
1186
|
+
results?: readonly (FrontierSwarmJobResult | FrontierSwarmJobResultInput)[];
|
|
1187
|
+
threshold?: number;
|
|
1188
|
+
generatedAt?: number;
|
|
1189
|
+
metadata?: unknown;
|
|
1190
|
+
}
|
|
1191
|
+
export interface FrontierSwarmHotspotReport {
|
|
1192
|
+
kind: typeof FRONTIER_SWARM_HOTSPOT_REPORT_KIND;
|
|
1193
|
+
version: typeof FRONTIER_SWARM_HOTSPOT_REPORT_VERSION;
|
|
1194
|
+
id: string;
|
|
1195
|
+
generatedAt: number;
|
|
1196
|
+
threshold: number;
|
|
1197
|
+
entries: FrontierSwarmHotspotEntry[];
|
|
1198
|
+
recommendations: FrontierSwarmHotspotRecommendation[];
|
|
1199
|
+
summary: {
|
|
1200
|
+
pathCount: number;
|
|
1201
|
+
hotspotCount: number;
|
|
1202
|
+
recommendationCount: number;
|
|
1203
|
+
};
|
|
1204
|
+
metadata?: JsonObject;
|
|
1205
|
+
}
|
|
1206
|
+
export interface FrontierSwarmHotspotEntry {
|
|
1207
|
+
path: string;
|
|
1208
|
+
touchCount: number;
|
|
1209
|
+
jobIds: string[];
|
|
1210
|
+
regions: string[];
|
|
1211
|
+
dispositions: string[];
|
|
1212
|
+
riskLevels: string[];
|
|
1213
|
+
}
|
|
1214
|
+
export interface FrontierSwarmHotspotRecommendation {
|
|
1215
|
+
path: string;
|
|
1216
|
+
reason: 'repeated-conflicts' | 'hot-file' | 'region-overlap';
|
|
1217
|
+
suggestedModuleId: string;
|
|
1218
|
+
suggestedOwnershipRegions: string[];
|
|
1219
|
+
jobIds: string[];
|
|
1220
|
+
}
|
|
1221
|
+
export interface FrontierSwarmReviewerLanePlanInput {
|
|
1222
|
+
id?: string;
|
|
1223
|
+
index: FrontierSwarmMergeIndex;
|
|
1224
|
+
admission?: FrontierSwarmMergeAdmission;
|
|
1225
|
+
reviewerLane?: string;
|
|
1226
|
+
reviewers?: readonly string[];
|
|
1227
|
+
includeAutoMergeable?: boolean;
|
|
1228
|
+
generatedAt?: number;
|
|
1229
|
+
metadata?: unknown;
|
|
1230
|
+
}
|
|
1231
|
+
export interface FrontierSwarmReviewerLanePlan {
|
|
1232
|
+
kind: typeof FRONTIER_SWARM_REVIEWER_LANE_PLAN_KIND;
|
|
1233
|
+
version: typeof FRONTIER_SWARM_REVIEWER_LANE_PLAN_VERSION;
|
|
1234
|
+
id: string;
|
|
1235
|
+
mergeIndexId: string;
|
|
1236
|
+
generatedAt: number;
|
|
1237
|
+
reviewerLane: string;
|
|
1238
|
+
assignments: FrontierSwarmReviewerLaneAssignment[];
|
|
1239
|
+
tasks: FrontierSwarmTaskInput[];
|
|
1240
|
+
summary: {
|
|
1241
|
+
assignmentCount: number;
|
|
1242
|
+
taskCount: number;
|
|
1243
|
+
};
|
|
1244
|
+
metadata?: JsonObject;
|
|
1245
|
+
}
|
|
1246
|
+
export interface FrontierSwarmReviewerLaneAssignment {
|
|
1247
|
+
jobId: string;
|
|
1248
|
+
reviewers: string[];
|
|
1249
|
+
required: boolean;
|
|
1250
|
+
reasons: string[];
|
|
1251
|
+
}
|
|
1252
|
+
export interface FrontierSwarmRunStoreShardsInput {
|
|
1253
|
+
id?: string;
|
|
1254
|
+
run?: FrontierSwarmRun;
|
|
1255
|
+
plan?: FrontierSwarmPlan;
|
|
1256
|
+
root?: string;
|
|
1257
|
+
shardSize?: number;
|
|
1258
|
+
groupBy?: 'lane' | 'hash' | 'none';
|
|
1259
|
+
generatedAt?: number;
|
|
1260
|
+
metadata?: unknown;
|
|
1261
|
+
}
|
|
1262
|
+
export interface FrontierSwarmRunStoreShards {
|
|
1263
|
+
kind: typeof FRONTIER_SWARM_RUN_STORE_SHARDS_KIND;
|
|
1264
|
+
version: typeof FRONTIER_SWARM_RUN_STORE_SHARDS_VERSION;
|
|
1265
|
+
id: string;
|
|
1266
|
+
runId?: string;
|
|
1267
|
+
planId?: string;
|
|
1268
|
+
root: string;
|
|
1269
|
+
generatedAt: number;
|
|
1270
|
+
groupBy: 'lane' | 'hash' | 'none';
|
|
1271
|
+
shardSize: number;
|
|
1272
|
+
shards: FrontierSwarmRunStoreShard[];
|
|
1273
|
+
summary: {
|
|
1274
|
+
shardCount: number;
|
|
1275
|
+
jobCount: number;
|
|
1276
|
+
};
|
|
1277
|
+
metadata?: JsonObject;
|
|
1278
|
+
}
|
|
1279
|
+
export interface FrontierSwarmRunStoreShard {
|
|
1280
|
+
id: string;
|
|
1281
|
+
lane?: string;
|
|
1282
|
+
path: string;
|
|
1283
|
+
eventPath: string;
|
|
1284
|
+
resultPath: string;
|
|
1285
|
+
checkpointPath: string;
|
|
1286
|
+
jobIds: string[];
|
|
1287
|
+
}
|
|
1288
|
+
export interface FrontierSwarmMergeAdmissionInput {
|
|
1289
|
+
id?: string;
|
|
1290
|
+
index: FrontierSwarmMergeIndex;
|
|
1291
|
+
maxReady?: number;
|
|
1292
|
+
maxChangedPaths?: number;
|
|
1293
|
+
maxChangedRegions?: number;
|
|
1294
|
+
maxHighRisk?: number;
|
|
1295
|
+
allowRisks?: readonly FrontierSwarmRiskLevel[];
|
|
1296
|
+
generatedAt?: number;
|
|
1297
|
+
metadata?: unknown;
|
|
1298
|
+
}
|
|
1299
|
+
export interface FrontierSwarmMergeAdmission {
|
|
1300
|
+
kind: typeof FRONTIER_SWARM_MERGE_ADMISSION_KIND;
|
|
1301
|
+
version: typeof FRONTIER_SWARM_MERGE_ADMISSION_VERSION;
|
|
1302
|
+
id: string;
|
|
1303
|
+
mergeIndexId: string;
|
|
1304
|
+
generatedAt: number;
|
|
1305
|
+
admitted: string[];
|
|
1306
|
+
deferred: FrontierSwarmMergeAdmissionDeferral[];
|
|
1307
|
+
budget: {
|
|
1308
|
+
maxReady: number;
|
|
1309
|
+
maxChangedPaths?: number;
|
|
1310
|
+
maxChangedRegions?: number;
|
|
1311
|
+
maxHighRisk?: number;
|
|
1312
|
+
allowRisks: string[];
|
|
1313
|
+
};
|
|
1314
|
+
summary: {
|
|
1315
|
+
admittedCount: number;
|
|
1316
|
+
deferredCount: number;
|
|
1317
|
+
changedPathCount: number;
|
|
1318
|
+
changedRegionCount: number;
|
|
1319
|
+
highRiskCount: number;
|
|
1320
|
+
};
|
|
1321
|
+
metadata?: JsonObject;
|
|
1322
|
+
}
|
|
1323
|
+
export interface FrontierSwarmMergeAdmissionDeferral {
|
|
1324
|
+
jobId: string;
|
|
1325
|
+
reasons: string[];
|
|
1326
|
+
}
|
|
1327
|
+
export interface FrontierSwarmContextPackInput {
|
|
1328
|
+
id?: string;
|
|
1329
|
+
job?: FrontierSwarmJob;
|
|
1330
|
+
task?: FrontierSwarmTask | FrontierSwarmTaskInput;
|
|
1331
|
+
title?: string;
|
|
1332
|
+
files?: readonly string[];
|
|
1333
|
+
apiMap?: Record<string, readonly string[]>;
|
|
1334
|
+
knownFailures?: readonly string[];
|
|
1335
|
+
commands?: readonly (string | FrontierSwarmCommandInput)[];
|
|
1336
|
+
oracleCommands?: readonly (string | FrontierSwarmCommandInput)[];
|
|
1337
|
+
evidenceSchema?: unknown;
|
|
1338
|
+
expectedEvidence?: readonly string[];
|
|
1339
|
+
exclusions?: readonly string[];
|
|
1340
|
+
avoidInvestigating?: readonly string[];
|
|
1341
|
+
playbookIds?: readonly string[];
|
|
1342
|
+
generatedAt?: number;
|
|
1343
|
+
metadata?: unknown;
|
|
1344
|
+
}
|
|
1345
|
+
export interface FrontierSwarmContextPack {
|
|
1346
|
+
kind: typeof FRONTIER_SWARM_CONTEXT_PACK_KIND;
|
|
1347
|
+
version: typeof FRONTIER_SWARM_CONTEXT_PACK_VERSION;
|
|
1348
|
+
id: string;
|
|
1349
|
+
jobId?: string;
|
|
1350
|
+
taskId?: string;
|
|
1351
|
+
lane?: string;
|
|
1352
|
+
title: string;
|
|
1353
|
+
generatedAt: number;
|
|
1354
|
+
files: string[];
|
|
1355
|
+
apiMap: Record<string, string[]>;
|
|
1356
|
+
knownFailures: string[];
|
|
1357
|
+
commands: FrontierSwarmCommand[];
|
|
1358
|
+
oracleCommands: FrontierSwarmCommand[];
|
|
1359
|
+
evidenceSchema?: JsonValue;
|
|
1360
|
+
expectedEvidence: string[];
|
|
1361
|
+
exclusions: string[];
|
|
1362
|
+
avoidInvestigating: string[];
|
|
1363
|
+
playbookIds: string[];
|
|
1364
|
+
metadata?: JsonObject;
|
|
1365
|
+
}
|
|
1366
|
+
export interface FrontierSwarmOracleArtifactInput {
|
|
1367
|
+
id: string;
|
|
1368
|
+
path: string;
|
|
1369
|
+
kind?: string;
|
|
1370
|
+
command?: string | FrontierSwarmCommandInput;
|
|
1371
|
+
hash?: string;
|
|
1372
|
+
sourceRef?: string;
|
|
1373
|
+
tags?: readonly string[];
|
|
1374
|
+
metadata?: unknown;
|
|
1375
|
+
}
|
|
1376
|
+
export interface FrontierSwarmOracleArtifact {
|
|
1377
|
+
id: string;
|
|
1378
|
+
path: string;
|
|
1379
|
+
kind: string;
|
|
1380
|
+
command?: FrontierSwarmCommand;
|
|
1381
|
+
hash?: string;
|
|
1382
|
+
sourceRef?: string;
|
|
1383
|
+
tags: string[];
|
|
1384
|
+
metadata?: JsonObject;
|
|
1385
|
+
}
|
|
1386
|
+
export interface FrontierSwarmOracleCorpusInput {
|
|
1387
|
+
id?: string;
|
|
1388
|
+
title?: string;
|
|
1389
|
+
artifacts?: readonly FrontierSwarmOracleArtifactInput[];
|
|
1390
|
+
generatedAt?: number;
|
|
1391
|
+
metadata?: unknown;
|
|
1392
|
+
}
|
|
1393
|
+
export interface FrontierSwarmOracleCorpus {
|
|
1394
|
+
kind: typeof FRONTIER_SWARM_ORACLE_CORPUS_KIND;
|
|
1395
|
+
version: typeof FRONTIER_SWARM_ORACLE_CORPUS_VERSION;
|
|
1396
|
+
id: string;
|
|
1397
|
+
title: string;
|
|
1398
|
+
generatedAt: number;
|
|
1399
|
+
artifacts: FrontierSwarmOracleArtifact[];
|
|
1400
|
+
byKind: Record<string, string[]>;
|
|
1401
|
+
byTag: Record<string, string[]>;
|
|
1402
|
+
summary: {
|
|
1403
|
+
artifactCount: number;
|
|
1404
|
+
kindCount: number;
|
|
1405
|
+
tagCount: number;
|
|
1406
|
+
};
|
|
1407
|
+
metadata?: JsonObject;
|
|
1408
|
+
}
|
|
1409
|
+
export interface FrontierSwarmLanePlaybookInput {
|
|
1410
|
+
id?: string;
|
|
1411
|
+
lane: string;
|
|
1412
|
+
title?: string;
|
|
1413
|
+
successfulBundles?: readonly FrontierSwarmMergeBundle[];
|
|
1414
|
+
notes?: readonly string[];
|
|
1415
|
+
commands?: readonly (string | FrontierSwarmCommandInput)[];
|
|
1416
|
+
avoidInvestigating?: readonly string[];
|
|
1417
|
+
evidencePatterns?: readonly string[];
|
|
1418
|
+
generatedAt?: number;
|
|
1419
|
+
metadata?: unknown;
|
|
1420
|
+
}
|
|
1421
|
+
export interface FrontierSwarmLanePlaybook {
|
|
1422
|
+
kind: typeof FRONTIER_SWARM_LANE_PLAYBOOK_KIND;
|
|
1423
|
+
version: typeof FRONTIER_SWARM_LANE_PLAYBOOK_VERSION;
|
|
1424
|
+
id: string;
|
|
1425
|
+
lane: string;
|
|
1426
|
+
title: string;
|
|
1427
|
+
generatedAt: number;
|
|
1428
|
+
notes: string[];
|
|
1429
|
+
commands: FrontierSwarmCommand[];
|
|
1430
|
+
avoidInvestigating: string[];
|
|
1431
|
+
evidencePatterns: string[];
|
|
1432
|
+
successfulJobIds: string[];
|
|
1433
|
+
hotPaths: string[];
|
|
1434
|
+
changedRegions: string[];
|
|
1435
|
+
metadata?: JsonObject;
|
|
1436
|
+
}
|
|
1437
|
+
export interface FrontierSwarmPatchStackPlanInput {
|
|
1438
|
+
id?: string;
|
|
1439
|
+
index: FrontierSwarmMergeIndex;
|
|
1440
|
+
maxStackSize?: number;
|
|
1441
|
+
generatedAt?: number;
|
|
1442
|
+
metadata?: unknown;
|
|
1443
|
+
}
|
|
1444
|
+
export interface FrontierSwarmPatchStackPlan {
|
|
1445
|
+
kind: typeof FRONTIER_SWARM_PATCH_STACK_PLAN_KIND;
|
|
1446
|
+
version: typeof FRONTIER_SWARM_PATCH_STACK_PLAN_VERSION;
|
|
1447
|
+
id: string;
|
|
1448
|
+
mergeIndexId: string;
|
|
1449
|
+
generatedAt: number;
|
|
1450
|
+
stacks: FrontierSwarmPatchStack[];
|
|
1451
|
+
summary: {
|
|
1452
|
+
stackCount: number;
|
|
1453
|
+
jobCount: number;
|
|
1454
|
+
conflictedStackCount: number;
|
|
1455
|
+
};
|
|
1456
|
+
metadata?: JsonObject;
|
|
1457
|
+
}
|
|
1458
|
+
export interface FrontierSwarmPatchStack {
|
|
1459
|
+
id: string;
|
|
1460
|
+
title: string;
|
|
1461
|
+
lane?: string;
|
|
1462
|
+
jobIds: string[];
|
|
1463
|
+
changedPaths: string[];
|
|
1464
|
+
changedRegions: string[];
|
|
1465
|
+
riskLevels: string[];
|
|
1466
|
+
dispositions: string[];
|
|
1467
|
+
conflicts: FrontierSwarmMergeConflict[];
|
|
1468
|
+
gateHints: string[];
|
|
1469
|
+
}
|
|
694
1470
|
export interface FrontierSwarmProof {
|
|
695
1471
|
kind: typeof FRONTIER_SWARM_PROOF_KIND;
|
|
696
1472
|
version: typeof FRONTIER_SWARM_PROOF_VERSION;
|
|
@@ -708,10 +1484,32 @@ export declare function defineSwarmTasks(input?: readonly FrontierSwarmTaskInput
|
|
|
708
1484
|
export declare function compileSwarm(input: FrontierSwarmManifest | FrontierSwarmManifestInput): FrontierSwarmCompiled;
|
|
709
1485
|
export declare function validateSwarmManifest(input: FrontierSwarmManifest | FrontierSwarmManifestInput): FrontierSwarmValidation;
|
|
710
1486
|
export declare function createSwarmPlan(manifestInput: FrontierSwarmManifest | FrontierSwarmManifestInput, taskInput: readonly FrontierSwarmTaskInput[] | FrontierSwarmTaskSetInput | readonly FrontierSwarmTask[], options?: FrontierSwarmPlanInput): FrontierSwarmPlan;
|
|
1487
|
+
export declare function createSwarmTaskSelection(manifestInput: FrontierSwarmManifest | FrontierSwarmManifestInput, taskInput: readonly FrontierSwarmTaskInput[] | FrontierSwarmTaskSetInput | readonly FrontierSwarmTask[], options?: FrontierSwarmTaskSelectionInput): FrontierSwarmTaskSelection;
|
|
711
1488
|
export declare function createSwarmRun(input: FrontierSwarmRunInput): FrontierSwarmRun;
|
|
712
1489
|
export declare function recordSwarmEvent(runInput: FrontierSwarmRun, eventInput: FrontierSwarmEventInput): FrontierSwarmRun;
|
|
1490
|
+
export declare function createSwarmMailbox(input?: FrontierSwarmMailboxInput): FrontierSwarmMailbox;
|
|
1491
|
+
export declare function createSwarmEventStream(input?: FrontierSwarmEventStreamInput): FrontierSwarmEventStream;
|
|
1492
|
+
export declare function routeSwarmEventToMailboxes(stream: FrontierSwarmEventStream, eventInput: FrontierSwarmEvent | FrontierSwarmEventInput): FrontierSwarmMailbox[];
|
|
713
1493
|
export declare function completeSwarmJob(runInput: FrontierSwarmRun, resultInput: FrontierSwarmJobResultInput): FrontierSwarmRun;
|
|
714
1494
|
export declare function checkSwarmOwnership(job: FrontierSwarmJob, changedPaths: readonly string[]): FrontierSwarmOwnershipReport;
|
|
1495
|
+
export declare function resolveSwarmChangedRegions(job: FrontierSwarmJob, changedPaths: readonly string[]): string[];
|
|
1496
|
+
export declare function classifySwarmMergeReadiness(result: FrontierSwarmJobResultInput | FrontierSwarmJobResult): FrontierSwarmMergeReadiness;
|
|
1497
|
+
export declare function classifySwarmMergeDisposition(result: FrontierSwarmJobResultInput | FrontierSwarmJobResult, input?: {
|
|
1498
|
+
staleAgainstHead?: boolean;
|
|
1499
|
+
}): FrontierSwarmMergeDisposition;
|
|
1500
|
+
export declare function createSwarmMergeBundle(input: FrontierSwarmMergeBundleInput): FrontierSwarmMergeBundle;
|
|
1501
|
+
export declare function createSwarmQueueOverlay(input?: FrontierSwarmQueueOverlayInput): FrontierSwarmQueueOverlay;
|
|
1502
|
+
export declare function deriveSwarmQueueStatus(input: FrontierSwarmDerivedQueueStatusInput): FrontierSwarmDerivedQueueStatus;
|
|
1503
|
+
export declare function createSwarmMergeIndex(input: FrontierSwarmMergeIndexInput): FrontierSwarmMergeIndex;
|
|
1504
|
+
export declare function checkSwarmRegionOwnership(job: FrontierSwarmJob, input?: FrontierSwarmRegionOwnershipInput): FrontierSwarmRegionOwnershipReport;
|
|
1505
|
+
export declare function createSwarmHotspotReport(input?: FrontierSwarmHotspotReportInput): FrontierSwarmHotspotReport;
|
|
1506
|
+
export declare function createSwarmReviewerLanePlan(input: FrontierSwarmReviewerLanePlanInput): FrontierSwarmReviewerLanePlan;
|
|
1507
|
+
export declare function createSwarmRunStoreShards(input?: FrontierSwarmRunStoreShardsInput): FrontierSwarmRunStoreShards;
|
|
1508
|
+
export declare function createSwarmMergeAdmission(input: FrontierSwarmMergeAdmissionInput): FrontierSwarmMergeAdmission;
|
|
1509
|
+
export declare function createSwarmContextPack(input?: FrontierSwarmContextPackInput): FrontierSwarmContextPack;
|
|
1510
|
+
export declare function createSwarmOracleCorpus(input?: FrontierSwarmOracleCorpusInput): FrontierSwarmOracleCorpus;
|
|
1511
|
+
export declare function createSwarmLanePlaybook(input: FrontierSwarmLanePlaybookInput): FrontierSwarmLanePlaybook;
|
|
1512
|
+
export declare function createSwarmPatchStackPlan(input: FrontierSwarmPatchStackPlanInput): FrontierSwarmPatchStackPlan;
|
|
715
1513
|
export declare function resolveSwarmCompute(manifestInput: FrontierSwarmManifest | FrontierSwarmManifestInput, taskInput: FrontierSwarmTask | FrontierSwarmTaskInput): FrontierSwarmCompute;
|
|
716
1514
|
export declare function createSwarmProof(input: FrontierSwarmManifest | FrontierSwarmPlan | FrontierSwarmRun, options?: {
|
|
717
1515
|
generatedAt?: number;
|
|
@@ -720,6 +1518,9 @@ export declare function createSwarmProof(input: FrontierSwarmManifest | Frontier
|
|
|
720
1518
|
}): FrontierSwarmProof;
|
|
721
1519
|
export declare function createSwarmSchedule(input: FrontierSwarmPlan | FrontierSwarmScheduleInput): FrontierSwarmSchedule;
|
|
722
1520
|
export declare function createSwarmLeases(input: FrontierSwarmLeaseInput): FrontierSwarmLease[];
|
|
1521
|
+
export declare function renewSwarmLease(input: FrontierSwarmLeaseRenewalInput): FrontierSwarmLease;
|
|
1522
|
+
export declare function createSwarmQueueSnapshot(input: FrontierSwarmQueueSnapshotInput): FrontierSwarmQueueSnapshot;
|
|
1523
|
+
export declare function createSwarmRunCheckpoint(input: FrontierSwarmRun | FrontierSwarmRunCheckpointInput): FrontierSwarmRunCheckpoint;
|
|
723
1524
|
export declare function checkSwarmBudget(job: FrontierSwarmJob, usageInput: FrontierSwarmUsageInput): FrontierSwarmBudgetDecision;
|
|
724
1525
|
export declare function createSwarmArtifactIndex(input: FrontierSwarmRun | {
|
|
725
1526
|
run?: FrontierSwarmRun;
|