@shapeshift-labs/frontier-swarm-codex 0.5.40 → 0.5.42
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 +1 -1
- package/dist/apply.d.ts +3 -0
- package/dist/apply.d.ts.map +1 -0
- package/dist/apply.js +127 -0
- package/dist/apply.js.map +1 -0
- package/dist/cli.js +7 -1
- package/dist/cli.js.map +1 -1
- package/dist/codex-events.d.ts +15 -0
- package/dist/codex-events.d.ts.map +1 -0
- package/dist/codex-events.js +108 -0
- package/dist/codex-events.js.map +1 -0
- package/dist/codex-evidence.d.ts +33 -0
- package/dist/codex-evidence.d.ts.map +1 -0
- package/dist/codex-evidence.js +143 -0
- package/dist/codex-evidence.js.map +1 -0
- package/dist/codex-executor.d.ts +5 -0
- package/dist/codex-executor.d.ts.map +1 -0
- package/dist/codex-executor.js +160 -0
- package/dist/codex-executor.js.map +1 -0
- package/dist/codex-prompt.d.ts +20 -0
- package/dist/codex-prompt.d.ts.map +1 -0
- package/dist/codex-prompt.js +238 -0
- package/dist/codex-prompt.js.map +1 -0
- package/dist/codex-run-scheduler.d.ts +9 -0
- package/dist/codex-run-scheduler.d.ts.map +1 -0
- package/dist/codex-run-scheduler.js +145 -0
- package/dist/codex-run-scheduler.js.map +1 -0
- package/dist/codex-run.d.ts +5 -0
- package/dist/codex-run.d.ts.map +1 -0
- package/dist/codex-run.js +278 -0
- package/dist/codex-run.js.map +1 -0
- package/dist/codex-workspace-changes.d.ts +28 -0
- package/dist/codex-workspace-changes.d.ts.map +1 -0
- package/dist/codex-workspace-changes.js +147 -0
- package/dist/codex-workspace-changes.js.map +1 -0
- package/dist/codex-workspace.d.ts +10 -0
- package/dist/codex-workspace.d.ts.map +1 -0
- package/dist/codex-workspace.js +210 -0
- package/dist/codex-workspace.js.map +1 -0
- package/dist/collect-bundles.d.ts +14 -0
- package/dist/collect-bundles.d.ts.map +1 -0
- package/dist/collect-bundles.js +173 -0
- package/dist/collect-bundles.js.map +1 -0
- package/dist/collect-evidence.d.ts +13 -0
- package/dist/collect-evidence.d.ts.map +1 -0
- package/dist/collect-evidence.js +131 -0
- package/dist/collect-evidence.js.map +1 -0
- package/dist/collect.d.ts +5 -0
- package/dist/collect.d.ts.map +1 -0
- package/dist/collect.js +189 -0
- package/dist/collect.js.map +1 -0
- package/dist/common.d.ts +37 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +191 -0
- package/dist/common.js.map +1 -0
- package/dist/constants.d.ts +25 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +26 -0
- package/dist/constants.js.map +1 -0
- package/dist/dashboard.d.ts +9 -0
- package/dist/dashboard.d.ts.map +1 -0
- package/dist/dashboard.js +80 -0
- package/dist/dashboard.js.map +1 -0
- package/dist/handoff-artifacts.d.ts +4 -0
- package/dist/handoff-artifacts.d.ts.map +1 -0
- package/dist/handoff-artifacts.js +67 -0
- package/dist/handoff-artifacts.js.map +1 -0
- package/dist/index.d.ts +14 -820
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -3612
- package/dist/index.js.map +1 -1
- package/dist/patch-score-semantic.d.ts +4 -0
- package/dist/patch-score-semantic.d.ts.map +1 -0
- package/dist/patch-score-semantic.js +154 -0
- package/dist/patch-score-semantic.js.map +1 -0
- package/dist/score.d.ts +3 -0
- package/dist/score.d.ts.map +1 -0
- package/dist/score.js +219 -0
- package/dist/score.js.map +1 -0
- package/dist/semantic-import-layers.d.ts +9 -0
- package/dist/semantic-import-layers.d.ts.map +1 -0
- package/dist/semantic-import-layers.js +143 -0
- package/dist/semantic-import-layers.js.map +1 -0
- package/dist/semantic-import-paradigm.d.ts +6 -0
- package/dist/semantic-import-paradigm.d.ts.map +1 -0
- package/dist/semantic-import-paradigm.js +159 -0
- package/dist/semantic-import-paradigm.js.map +1 -0
- package/dist/semantic-import-proof.d.ts +7 -0
- package/dist/semantic-import-proof.d.ts.map +1 -0
- package/dist/semantic-import-proof.js +142 -0
- package/dist/semantic-import-proof.js.map +1 -0
- package/dist/semantic-import-quality.d.ts +6 -0
- package/dist/semantic-import-quality.d.ts.map +1 -0
- package/dist/semantic-import-quality.js +108 -0
- package/dist/semantic-import-quality.js.map +1 -0
- package/dist/semantic-import-select.d.ts +36 -0
- package/dist/semantic-import-select.d.ts.map +1 -0
- package/dist/semantic-import-select.js +132 -0
- package/dist/semantic-import-select.js.map +1 -0
- package/dist/semantic-import-sidecar.d.ts +7 -0
- package/dist/semantic-import-sidecar.d.ts.map +1 -0
- package/dist/semantic-import-sidecar.js +169 -0
- package/dist/semantic-import-sidecar.js.map +1 -0
- package/dist/semantic-import.d.ts +13 -0
- package/dist/semantic-import.d.ts.map +1 -0
- package/dist/semantic-import.js +122 -0
- package/dist/semantic-import.js.map +1 -0
- package/dist/trace-summary.d.ts +6 -0
- package/dist/trace-summary.d.ts.map +1 -0
- package/dist/trace-summary.js +61 -0
- package/dist/trace-summary.js.map +1 -0
- package/dist/types-collection.d.ts +166 -0
- package/dist/types-collection.d.ts.map +1 -0
- package/dist/types-collection.js +2 -0
- package/dist/types-collection.js.map +1 -0
- package/dist/types-evidence.d.ts +158 -0
- package/dist/types-evidence.d.ts.map +1 -0
- package/dist/types-evidence.js +2 -0
- package/dist/types-evidence.js.map +1 -0
- package/dist/types-run.d.ts +161 -0
- package/dist/types-run.d.ts.map +1 -0
- package/dist/types-run.js +2 -0
- package/dist/types-run.js.map +1 -0
- package/dist/types-semantic.d.ts +192 -0
- package/dist/types-semantic.d.ts.map +1 -0
- package/dist/types-semantic.js +2 -0
- package/dist/types-semantic.js.map +1 -0
- package/dist/types-workspace.d.ts +122 -0
- package/dist/types-workspace.d.ts.map +1 -0
- package/dist/types-workspace.js +2 -0
- package/dist/types-workspace.js.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/workspace-link-repair.d.ts +3 -0
- package/dist/workspace-link-repair.d.ts.map +1 -0
- package/dist/workspace-link-repair.js +164 -0
- package/dist/workspace-link-repair.js.map +1 -0
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,824 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export declare const FRONTIER_SWARM_CODEX_PATCH_SCORE_KIND = "frontier.swarm-codex.patch-score";
|
|
15
|
-
export declare const FRONTIER_SWARM_CODEX_PATCH_SCORE_VERSION = 1;
|
|
16
|
-
export declare const FRONTIER_SWARM_CODEX_SEMANTIC_IMPORT_KIND = "frontier.swarm-codex.semantic-imports";
|
|
17
|
-
export declare const FRONTIER_SWARM_CODEX_SEMANTIC_IMPORT_VERSION = 1;
|
|
18
|
-
export declare const FRONTIER_SWARM_CODEX_JOB_EVIDENCE_KIND = "frontier.swarm-codex.job-evidence";
|
|
19
|
-
export declare const FRONTIER_SWARM_CODEX_JOB_EVIDENCE_VERSION = 1;
|
|
20
|
-
export declare const FRONTIER_SWARM_CODEX_PATCH_INTENT_KIND = "frontier.swarm-codex.patch-intent";
|
|
21
|
-
export declare const FRONTIER_SWARM_CODEX_PATCH_INTENT_VERSION = 1;
|
|
22
|
-
export declare const FRONTIER_SWARM_CODEX_COMPACT_DASHBOARD_KIND = "frontier.swarm-codex.compact-dashboard";
|
|
23
|
-
export declare const FRONTIER_SWARM_CODEX_COMPACT_DASHBOARD_VERSION = 1;
|
|
24
|
-
export declare const FRONTIER_SWARM_CODEX_LINK_REPAIR_KIND = "frontier.swarm-codex.link-repair";
|
|
25
|
-
export declare const FRONTIER_SWARM_CODEX_LINK_REPAIR_VERSION = 1;
|
|
26
|
-
export type FrontierCodexModelPolicy = 'config-default' | 'plan' | 'explicit';
|
|
27
|
-
export type FrontierCodexSwarmWorkspaceMode = 'current' | 'git-worktree' | 'snapshot' | 'copy';
|
|
28
|
-
export interface FrontierCodexSwarmWorkspaceInput {
|
|
29
|
-
mode?: FrontierCodexSwarmWorkspaceMode;
|
|
30
|
-
root?: string;
|
|
31
|
-
create?: boolean;
|
|
32
|
-
replace?: boolean;
|
|
33
|
-
includes?: readonly string[];
|
|
34
|
-
excludes?: readonly string[];
|
|
35
|
-
artifactIncludes?: readonly string[];
|
|
36
|
-
linkPaths?: readonly string[];
|
|
37
|
-
requiredIncludes?: readonly string[];
|
|
38
|
-
optionalIncludes?: readonly string[];
|
|
39
|
-
strategy?: 'fs-cp' | 'rsync' | 'git-archive' | string;
|
|
40
|
-
guardRoot?: string;
|
|
41
|
-
linkNodeModules?: boolean;
|
|
42
|
-
skipGitRepoCheck?: boolean;
|
|
43
|
-
}
|
|
44
|
-
export interface FrontierCodexSwarmRunOptions {
|
|
45
|
-
outDir: string;
|
|
46
|
-
cwd?: string;
|
|
47
|
-
codexPath?: string;
|
|
48
|
-
maxConcurrency?: number;
|
|
49
|
-
adaptiveConcurrency?: boolean | FrontierCodexAdaptiveConcurrencyOptions;
|
|
50
|
-
compactLogs?: boolean | FrontierCodexCompactLogOptions;
|
|
51
|
-
semanticImportExpected?: boolean;
|
|
52
|
-
workspace?: FrontierCodexSwarmWorkspaceInput;
|
|
53
|
-
sandbox?: string;
|
|
54
|
-
approval?: string | false;
|
|
55
|
-
model?: string | false;
|
|
56
|
-
modelPolicy?: FrontierCodexModelPolicy;
|
|
57
|
-
forwardPlanModel?: boolean;
|
|
58
|
-
forwardPlanReasoningEffort?: boolean;
|
|
59
|
-
reasoningEffort?: string | false;
|
|
60
|
-
profile?: string;
|
|
61
|
-
ephemeral?: boolean;
|
|
62
|
-
dryRun?: boolean;
|
|
63
|
-
runVerification?: boolean;
|
|
64
|
-
collectGitStatus?: boolean;
|
|
65
|
-
jobTimeoutMs?: number;
|
|
66
|
-
addDirs?: readonly string[];
|
|
67
|
-
executor?: FrontierCodexExecutor;
|
|
68
|
-
eventStream?: FrontierSwarmEventStream;
|
|
69
|
-
coordinatorSnapshotPath?: string;
|
|
70
|
-
pidManifestPath?: string;
|
|
71
|
-
prepareJobWorkspace?: FrontierCodexJobWorkspaceHook;
|
|
72
|
-
renderJobPrompt?: FrontierCodexJobPromptHook;
|
|
73
|
-
changedPathFilter?: FrontierCodexChangedPathFilter;
|
|
74
|
-
semanticImport?: boolean | FrontierCodexSemanticImportOptions;
|
|
75
|
-
onJobStarted?: FrontierCodexJobStartedHook;
|
|
76
|
-
onJobFinished?: FrontierCodexJobFinishedHook;
|
|
77
|
-
onSwarmFinished?: FrontierCodexSwarmFinishedHook;
|
|
78
|
-
}
|
|
79
|
-
export interface FrontierCodexAdaptiveConcurrencyOptions {
|
|
80
|
-
enabled?: boolean;
|
|
81
|
-
mode?: 'observe' | 'conservative' | 'balanced' | 'aggressive' | string;
|
|
82
|
-
minConcurrency?: number;
|
|
83
|
-
maxConcurrency?: number;
|
|
84
|
-
writePlan?: boolean;
|
|
85
|
-
}
|
|
86
|
-
export interface FrontierCodexCompactLogOptions {
|
|
87
|
-
enabled?: boolean;
|
|
88
|
-
maxEventBytes?: number;
|
|
89
|
-
maxStderrBytes?: number;
|
|
90
|
-
}
|
|
91
|
-
export interface FrontierCodexSemanticImportOptions {
|
|
92
|
-
enabled?: boolean;
|
|
93
|
-
maxFiles?: number;
|
|
94
|
-
maxBytes?: number;
|
|
95
|
-
include?: readonly string[];
|
|
96
|
-
exclude?: readonly string[];
|
|
97
|
-
languages?: Readonly<Record<string, string>>;
|
|
98
|
-
}
|
|
99
|
-
export interface FrontierCodexSemanticImportRecord {
|
|
100
|
-
path: string;
|
|
101
|
-
language?: string;
|
|
102
|
-
status: 'imported' | 'skipped' | 'error';
|
|
103
|
-
reason?: string;
|
|
104
|
-
bytes?: number;
|
|
105
|
-
importId?: string;
|
|
106
|
-
universalAstHash?: string;
|
|
107
|
-
nativeAstId?: string;
|
|
108
|
-
nativeSourceId?: string;
|
|
109
|
-
sourceMapCount?: number;
|
|
110
|
-
sourceMapMappingCount?: number;
|
|
111
|
-
evidenceCount?: number;
|
|
112
|
-
lossCount?: number;
|
|
113
|
-
losses?: unknown;
|
|
114
|
-
semanticIndex?: {
|
|
115
|
-
documents: number;
|
|
116
|
-
symbols: number;
|
|
117
|
-
occurrences: number;
|
|
118
|
-
relations: number;
|
|
119
|
-
facts: number;
|
|
120
|
-
};
|
|
121
|
-
semanticSidecar?: unknown;
|
|
122
|
-
universalAstLayers?: FrontierCodexUniversalAstLayerSummary;
|
|
123
|
-
proofSpec?: FrontierCodexProofSpecSummary;
|
|
124
|
-
paradigmSemantics?: FrontierCodexParadigmSemanticsSummary;
|
|
125
|
-
sourceProjection?: unknown;
|
|
126
|
-
nativeCompile?: unknown;
|
|
127
|
-
mergeCandidate?: unknown;
|
|
128
|
-
error?: string;
|
|
129
|
-
}
|
|
130
|
-
export interface FrontierCodexUniversalAstLayerSummary {
|
|
131
|
-
total: number;
|
|
132
|
-
names: string[];
|
|
133
|
-
ids: string[];
|
|
134
|
-
byName: Record<string, number>;
|
|
135
|
-
empty: boolean;
|
|
136
|
-
}
|
|
137
|
-
export interface FrontierCodexProofSpecSummary {
|
|
138
|
-
total: number;
|
|
139
|
-
ids: string[];
|
|
140
|
-
contracts: number;
|
|
141
|
-
refinements: number;
|
|
142
|
-
invariants: number;
|
|
143
|
-
termination: number;
|
|
144
|
-
temporal: number;
|
|
145
|
-
obligations: number;
|
|
146
|
-
artifacts: number;
|
|
147
|
-
assumptions: number;
|
|
148
|
-
evidence: number;
|
|
149
|
-
discharged: number;
|
|
150
|
-
failed: number;
|
|
151
|
-
open: number;
|
|
152
|
-
unknown: number;
|
|
153
|
-
stale: number;
|
|
154
|
-
assumed: number;
|
|
155
|
-
contractKinds: string[];
|
|
156
|
-
artifactKinds: string[];
|
|
157
|
-
byStatus: Record<string, number>;
|
|
158
|
-
byContractKind: Record<string, number>;
|
|
159
|
-
byArtifactKind: Record<string, number>;
|
|
160
|
-
empty: boolean;
|
|
161
|
-
}
|
|
162
|
-
export interface FrontierCodexParadigmSemanticsSummary {
|
|
163
|
-
total: number;
|
|
164
|
-
ids: string[];
|
|
165
|
-
groups: string[];
|
|
166
|
-
kinds: string[];
|
|
167
|
-
evidence: number;
|
|
168
|
-
bindingScopes: number;
|
|
169
|
-
bindings: number;
|
|
170
|
-
patterns: number;
|
|
171
|
-
typeConstraints: number;
|
|
172
|
-
evaluationModels: number;
|
|
173
|
-
memoryLocations: number;
|
|
174
|
-
effectRegions: number;
|
|
175
|
-
controlRegions: number;
|
|
176
|
-
logicPrograms: number;
|
|
177
|
-
actorSystems: number;
|
|
178
|
-
stackEffects: number;
|
|
179
|
-
arrayShapes: number;
|
|
180
|
-
numericKernels: number;
|
|
181
|
-
dataflowNetworks: number;
|
|
182
|
-
clockModels: number;
|
|
183
|
-
objectModels: number;
|
|
184
|
-
macroExpansions: number;
|
|
185
|
-
reflectionBoundaries: number;
|
|
186
|
-
loweringRecords: number;
|
|
187
|
-
byGroup: Record<string, number>;
|
|
188
|
-
byKind: Record<string, number>;
|
|
189
|
-
hasRuntimeSemantics: boolean;
|
|
190
|
-
hasLogicSemantics: boolean;
|
|
191
|
-
hasStackSemantics: boolean;
|
|
192
|
-
hasArraySemantics: boolean;
|
|
193
|
-
hasMacroOrReflection: boolean;
|
|
194
|
-
hasLowering: boolean;
|
|
195
|
-
empty: boolean;
|
|
196
|
-
}
|
|
197
|
-
export interface FrontierCodexSemanticImportSidecar {
|
|
198
|
-
kind: typeof FRONTIER_SWARM_CODEX_SEMANTIC_IMPORT_KIND;
|
|
199
|
-
version: typeof FRONTIER_SWARM_CODEX_SEMANTIC_IMPORT_VERSION;
|
|
200
|
-
generatedAt: number;
|
|
201
|
-
jobId: string;
|
|
202
|
-
taskId?: string;
|
|
203
|
-
records: FrontierCodexSemanticImportRecord[];
|
|
204
|
-
summary: {
|
|
205
|
-
total: number;
|
|
206
|
-
selected: number;
|
|
207
|
-
eligible: number;
|
|
208
|
-
omitted: number;
|
|
209
|
-
maxFiles: number;
|
|
210
|
-
imported: number;
|
|
211
|
-
skipped: number;
|
|
212
|
-
errors: number;
|
|
213
|
-
sourceMapCount: number;
|
|
214
|
-
sourceMapMappingCount: number;
|
|
215
|
-
lossCount: number;
|
|
216
|
-
lossesBySeverity: Record<string, number>;
|
|
217
|
-
semanticIndex: {
|
|
218
|
-
documents: number;
|
|
219
|
-
symbols: number;
|
|
220
|
-
occurrences: number;
|
|
221
|
-
relations: number;
|
|
222
|
-
facts: number;
|
|
223
|
-
};
|
|
224
|
-
semanticSidecars: {
|
|
225
|
-
total: number;
|
|
226
|
-
symbols: number;
|
|
227
|
-
ownershipRegions: number;
|
|
228
|
-
patchHints: number;
|
|
229
|
-
empty: number;
|
|
230
|
-
};
|
|
231
|
-
universalAstLayers: FrontierCodexUniversalAstLayerSummary;
|
|
232
|
-
proofSpec: FrontierCodexProofSpecSummary;
|
|
233
|
-
paradigmSemantics: FrontierCodexParadigmSemanticsSummary;
|
|
234
|
-
sourceProjections: {
|
|
235
|
-
total: number;
|
|
236
|
-
preserved: number;
|
|
237
|
-
stubs: number;
|
|
238
|
-
ready: number;
|
|
239
|
-
needsReview: number;
|
|
240
|
-
blocked: number;
|
|
241
|
-
};
|
|
242
|
-
nativeCompiles: {
|
|
243
|
-
total: number;
|
|
244
|
-
emitted: number;
|
|
245
|
-
preserved: number;
|
|
246
|
-
targetStubs: number;
|
|
247
|
-
ready: number;
|
|
248
|
-
needsReview: number;
|
|
249
|
-
blocked: number;
|
|
250
|
-
};
|
|
251
|
-
readiness: Record<string, number>;
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
export interface FrontierCodexPatchHunkSummary {
|
|
255
|
-
file?: string;
|
|
256
|
-
header: string;
|
|
257
|
-
oldStart?: number;
|
|
258
|
-
oldLines?: number;
|
|
259
|
-
newStart?: number;
|
|
260
|
-
newLines?: number;
|
|
261
|
-
}
|
|
262
|
-
export interface FrontierCodexJobEvidenceSummary {
|
|
263
|
-
kind: typeof FRONTIER_SWARM_CODEX_JOB_EVIDENCE_KIND;
|
|
264
|
-
version: typeof FRONTIER_SWARM_CODEX_JOB_EVIDENCE_VERSION;
|
|
265
|
-
generatedAt: number;
|
|
266
|
-
jobId: string;
|
|
267
|
-
taskId: string;
|
|
268
|
-
lane: string;
|
|
269
|
-
status: string;
|
|
270
|
-
mergeReadiness: string;
|
|
271
|
-
disposition: string;
|
|
272
|
-
riskLevel: string;
|
|
273
|
-
changedPaths: string[];
|
|
274
|
-
changedRegions: string[];
|
|
275
|
-
ownershipViolations: string[];
|
|
276
|
-
patchPath?: string;
|
|
277
|
-
mergeBundlePath: string;
|
|
278
|
-
patchIntentPath?: string;
|
|
279
|
-
semanticImportPath?: string;
|
|
280
|
-
evidencePaths: string[];
|
|
281
|
-
handoffArtifacts: FrontierCodexHandoffArtifact[];
|
|
282
|
-
commands: {
|
|
283
|
-
passed: Array<{
|
|
284
|
-
name: string;
|
|
285
|
-
command: string[];
|
|
286
|
-
status?: number;
|
|
287
|
-
}>;
|
|
288
|
-
failed: Array<{
|
|
289
|
-
name: string;
|
|
290
|
-
command: string[];
|
|
291
|
-
status?: number;
|
|
292
|
-
}>;
|
|
293
|
-
};
|
|
294
|
-
patchHunks: FrontierCodexPatchHunkSummary[];
|
|
295
|
-
readyToPortHunkCount: number;
|
|
296
|
-
semanticImport?: FrontierCodexSemanticImportSidecar['summary'];
|
|
297
|
-
sourceCitations: Array<{
|
|
298
|
-
path: string;
|
|
299
|
-
kind: string;
|
|
300
|
-
language?: string;
|
|
301
|
-
hash?: string;
|
|
302
|
-
}>;
|
|
303
|
-
metadata?: Record<string, unknown>;
|
|
304
|
-
}
|
|
305
|
-
export interface FrontierCodexPatchIntent {
|
|
306
|
-
kind: typeof FRONTIER_SWARM_CODEX_PATCH_INTENT_KIND;
|
|
307
|
-
version: typeof FRONTIER_SWARM_CODEX_PATCH_INTENT_VERSION;
|
|
308
|
-
generatedAt: number;
|
|
309
|
-
jobId: string;
|
|
310
|
-
taskId: string;
|
|
311
|
-
lane: string;
|
|
312
|
-
changedPaths: string[];
|
|
313
|
-
changedRegions: string[];
|
|
314
|
-
intent: string;
|
|
315
|
-
why: string;
|
|
316
|
-
riskLevel: string;
|
|
317
|
-
mergeReadiness: string;
|
|
318
|
-
disposition: string;
|
|
319
|
-
safeToPortManually: boolean;
|
|
320
|
-
verification: Array<{
|
|
321
|
-
name: string;
|
|
322
|
-
command: string[];
|
|
323
|
-
status?: number;
|
|
324
|
-
required: boolean;
|
|
325
|
-
}>;
|
|
326
|
-
evidencePaths: string[];
|
|
327
|
-
semanticImportQuality: FrontierCodexSemanticImportQuality;
|
|
328
|
-
patchHunks: FrontierCodexPatchHunkSummary[];
|
|
329
|
-
warnings: string[];
|
|
330
|
-
}
|
|
331
|
-
export interface FrontierCodexSemanticImportQuality {
|
|
332
|
-
expected: boolean;
|
|
333
|
-
present: boolean;
|
|
334
|
-
empty: boolean;
|
|
335
|
-
selected: number;
|
|
336
|
-
eligible: number;
|
|
337
|
-
imported: number;
|
|
338
|
-
symbols: number;
|
|
339
|
-
ownershipRegions: number;
|
|
340
|
-
patchHints: number;
|
|
341
|
-
sourceMapMappings: number;
|
|
342
|
-
universalAstLayers: number;
|
|
343
|
-
universalAstLayerNames: string[];
|
|
344
|
-
proofSpecObligations: number;
|
|
345
|
-
proofSpecFailedObligations: number;
|
|
346
|
-
paradigmSemanticsRecords: number;
|
|
347
|
-
paradigmSemanticsGroups: number;
|
|
348
|
-
paradigmSemanticsLoweringRecords: number;
|
|
349
|
-
warnings: string[];
|
|
350
|
-
}
|
|
351
|
-
export interface FrontierCodexLogSummary {
|
|
352
|
-
eventsPath: string;
|
|
353
|
-
stderrPath: string;
|
|
354
|
-
eventBytes: number;
|
|
355
|
-
stderrBytes: number;
|
|
356
|
-
eventBytesWritten: number;
|
|
357
|
-
stderrBytesWritten: number;
|
|
358
|
-
eventBytesTruncated: number;
|
|
359
|
-
stderrBytesTruncated: number;
|
|
360
|
-
}
|
|
361
|
-
export interface FrontierCodexCompactDashboard {
|
|
362
|
-
kind: typeof FRONTIER_SWARM_CODEX_COMPACT_DASHBOARD_KIND;
|
|
363
|
-
version: typeof FRONTIER_SWARM_CODEX_COMPACT_DASHBOARD_VERSION;
|
|
364
|
-
generatedAt: number;
|
|
365
|
-
runDir: string;
|
|
366
|
-
total: number;
|
|
367
|
-
activeJobs: number;
|
|
368
|
-
usefulPatchCount: number;
|
|
369
|
-
stalePatchCount: number;
|
|
370
|
-
duplicateDiscoveryCount: number;
|
|
371
|
-
semanticImport: {
|
|
372
|
-
expected: boolean;
|
|
373
|
-
presentCount: number;
|
|
374
|
-
emptyCount: number;
|
|
375
|
-
weakCount: number;
|
|
376
|
-
symbolCount: number;
|
|
377
|
-
ownershipRegionCount: number;
|
|
378
|
-
patchHintCount: number;
|
|
379
|
-
universalAstLayerCount: number;
|
|
380
|
-
universalAstLayerNames: string[];
|
|
381
|
-
proofSpecObligations: number;
|
|
382
|
-
proofSpecFailedObligations: number;
|
|
383
|
-
paradigmSemanticsRecords: number;
|
|
384
|
-
paradigmSemanticsGroups: number;
|
|
385
|
-
paradigmSemanticsLoweringRecords: number;
|
|
386
|
-
};
|
|
387
|
-
evidence: {
|
|
388
|
-
readyToApply: number;
|
|
389
|
-
needsHumanPort: number;
|
|
390
|
-
failedEvidence: number;
|
|
391
|
-
averageMergeScore: number;
|
|
392
|
-
};
|
|
393
|
-
topJobs: Array<{
|
|
394
|
-
jobId: string;
|
|
395
|
-
lane?: string;
|
|
396
|
-
disposition: string;
|
|
397
|
-
mergeScore: number;
|
|
398
|
-
changedPaths: string[];
|
|
399
|
-
semanticImportQuality?: FrontierCodexSemanticImportQuality;
|
|
400
|
-
staleAgainstHead: boolean;
|
|
401
|
-
duplicateGroupId?: string;
|
|
402
|
-
evidencePaths: string[];
|
|
403
|
-
}>;
|
|
404
|
-
}
|
|
405
|
-
export interface FrontierCodexWorkspacePlan {
|
|
406
|
-
mode: FrontierCodexSwarmWorkspaceMode;
|
|
407
|
-
root: string;
|
|
408
|
-
path: string;
|
|
409
|
-
includes: string[];
|
|
410
|
-
excludes: string[];
|
|
411
|
-
artifactIncludes: string[];
|
|
412
|
-
linkPaths: string[];
|
|
413
|
-
requiredIncludes: string[];
|
|
414
|
-
optionalIncludes: string[];
|
|
415
|
-
strategy: string;
|
|
416
|
-
guardRoot?: string;
|
|
417
|
-
linkNodeModules: boolean;
|
|
418
|
-
replace: boolean;
|
|
419
|
-
skipGitRepoCheck: boolean;
|
|
420
|
-
}
|
|
421
|
-
export interface FrontierCodexJobPaths {
|
|
422
|
-
jobDir: string;
|
|
423
|
-
promptPath: string;
|
|
424
|
-
eventsPath: string;
|
|
425
|
-
stderrPath: string;
|
|
426
|
-
lastMessagePath: string;
|
|
427
|
-
evidenceDir: string;
|
|
428
|
-
resourceAllocationPath: string;
|
|
429
|
-
workspaceProofPath: string;
|
|
430
|
-
patchPath: string;
|
|
431
|
-
mergeBundlePath: string;
|
|
432
|
-
patchIntentPath: string;
|
|
433
|
-
logSummaryPath: string;
|
|
434
|
-
pidManifestPath: string;
|
|
435
|
-
}
|
|
436
|
-
export interface FrontierCodexBrowserAllocation {
|
|
437
|
-
required: boolean;
|
|
438
|
-
portPool: string[];
|
|
439
|
-
port?: string;
|
|
440
|
-
profileDir?: string;
|
|
441
|
-
headless?: boolean;
|
|
442
|
-
}
|
|
443
|
-
export interface FrontierCodexResourceAllocation {
|
|
444
|
-
capabilities: string[];
|
|
445
|
-
resources: Record<string, number>;
|
|
446
|
-
env: Record<string, string>;
|
|
447
|
-
browser?: FrontierCodexBrowserAllocation;
|
|
448
|
-
}
|
|
449
|
-
export type FrontierCodexCollectBucket = 'ready-to-apply' | 'needs-human-port' | 'failed-evidence' | 'stale-against-head';
|
|
450
|
-
export interface FrontierCodexCollectInput {
|
|
451
|
-
run: string;
|
|
452
|
-
outDir?: string;
|
|
453
|
-
cwd?: string;
|
|
454
|
-
checkStale?: boolean;
|
|
455
|
-
semanticImportExpected?: boolean;
|
|
456
|
-
branchPrefix?: string;
|
|
457
|
-
}
|
|
458
|
-
export interface FrontierCodexCollectedBundle {
|
|
459
|
-
bucket: FrontierCodexCollectBucket;
|
|
460
|
-
jobId: string;
|
|
461
|
-
mergePath: string;
|
|
462
|
-
outputDir: string;
|
|
463
|
-
bundle: FrontierSwarmMergeBundle;
|
|
464
|
-
}
|
|
465
|
-
export interface FrontierCodexCollectResult {
|
|
466
|
-
kind: typeof FRONTIER_SWARM_CODEX_COLLECTION_KIND;
|
|
467
|
-
version: typeof FRONTIER_SWARM_CODEX_COLLECTION_VERSION;
|
|
468
|
-
ok: boolean;
|
|
469
|
-
runDir: string;
|
|
470
|
-
outDir: string;
|
|
471
|
-
generatedAt: number;
|
|
472
|
-
buckets: Record<FrontierCodexCollectBucket, FrontierCodexCollectedBundle[]>;
|
|
473
|
-
mergeIndex: FrontierSwarmMergeIndex;
|
|
474
|
-
queueOverlay: FrontierSwarmQueueOverlay;
|
|
475
|
-
evidenceIndex: FrontierSwarmEvidenceIndex;
|
|
476
|
-
admission: FrontierSwarmMergeAdmission;
|
|
477
|
-
dashboard: FrontierSwarmCoordinatorDashboard;
|
|
478
|
-
compactDashboard: FrontierCodexCompactDashboard;
|
|
479
|
-
summary: Record<FrontierCodexCollectBucket, number> & {
|
|
480
|
-
total: number;
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
export type FrontierCodexApplyStatus = 'checked' | 'applied' | 'committed' | 'skipped' | 'failed';
|
|
484
|
-
export interface FrontierCodexApplyInput {
|
|
485
|
-
collection?: string;
|
|
486
|
-
run?: string;
|
|
487
|
-
outDir?: string;
|
|
488
|
-
cwd?: string;
|
|
489
|
-
bucket?: FrontierCodexCollectBucket | 'all';
|
|
490
|
-
jobIds?: readonly string[];
|
|
491
|
-
dryRun?: boolean;
|
|
492
|
-
allowDirty?: boolean;
|
|
493
|
-
commit?: boolean;
|
|
494
|
-
branchPrefix?: string;
|
|
495
|
-
limit?: number;
|
|
496
|
-
}
|
|
497
|
-
export interface FrontierCodexApplyEntry {
|
|
498
|
-
jobId: string;
|
|
499
|
-
status: FrontierCodexApplyStatus;
|
|
500
|
-
bundlePath: string;
|
|
501
|
-
patchPath?: string;
|
|
502
|
-
branchName?: string;
|
|
503
|
-
commit?: string;
|
|
504
|
-
dryRun: boolean;
|
|
505
|
-
commands: Array<{
|
|
506
|
-
command: string[];
|
|
507
|
-
status: number;
|
|
508
|
-
stdoutTail: string[];
|
|
509
|
-
stderrTail: string[];
|
|
510
|
-
}>;
|
|
511
|
-
error?: string;
|
|
512
|
-
}
|
|
513
|
-
export interface FrontierCodexApplyResult {
|
|
514
|
-
kind: typeof FRONTIER_SWARM_CODEX_APPLY_LEDGER_KIND;
|
|
515
|
-
version: typeof FRONTIER_SWARM_CODEX_APPLY_LEDGER_VERSION;
|
|
516
|
-
ok: boolean;
|
|
517
|
-
cwd: string;
|
|
518
|
-
collectionDir: string;
|
|
519
|
-
outDir: string;
|
|
520
|
-
generatedAt: number;
|
|
521
|
-
dryRun: boolean;
|
|
522
|
-
entries: FrontierCodexApplyEntry[];
|
|
523
|
-
summary: {
|
|
524
|
-
total: number;
|
|
525
|
-
checked: number;
|
|
526
|
-
applied: number;
|
|
527
|
-
committed: number;
|
|
528
|
-
skipped: number;
|
|
529
|
-
failed: number;
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
export type FrontierCodexPatchScoreStatus = 'accepted-clean' | 'accepted-needs-port' | 'conflict' | 'test-fail' | 'stale' | 'evidence-only';
|
|
533
|
-
export interface FrontierCodexPatchScoreInput {
|
|
534
|
-
collection?: string;
|
|
535
|
-
run?: string;
|
|
536
|
-
outDir?: string;
|
|
537
|
-
cwd?: string;
|
|
538
|
-
bucket?: FrontierCodexCollectBucket | 'all';
|
|
539
|
-
jobIds?: readonly string[];
|
|
540
|
-
workspaceIncludes?: readonly string[];
|
|
541
|
-
workspaceExcludes?: readonly string[];
|
|
542
|
-
focusedCommands?: readonly (string | FrontierSwarmCommand)[];
|
|
543
|
-
globalCommands?: readonly (string | FrontierSwarmCommand)[];
|
|
544
|
-
globalGlobs?: readonly string[];
|
|
545
|
-
limit?: number;
|
|
546
|
-
keepWorkspaces?: boolean;
|
|
547
|
-
}
|
|
548
|
-
export interface FrontierCodexPatchScoreSemanticEvidence {
|
|
549
|
-
present: boolean;
|
|
550
|
-
total: number;
|
|
551
|
-
imported: number;
|
|
552
|
-
errors: number;
|
|
553
|
-
sourceMapMappings: number;
|
|
554
|
-
semanticSymbols: number;
|
|
555
|
-
ownershipRegions: number;
|
|
556
|
-
patchHints: number;
|
|
557
|
-
universalAstLayers: number;
|
|
558
|
-
universalAstLayerNames: string[];
|
|
559
|
-
proofSpecObligations: number;
|
|
560
|
-
proofSpecFailedObligations: number;
|
|
561
|
-
paradigmSemanticsRecords: number;
|
|
562
|
-
paradigmSemanticsGroups: number;
|
|
563
|
-
paradigmSemanticsLoweringRecords: number;
|
|
564
|
-
readiness: Record<string, number>;
|
|
565
|
-
lossesBySeverity: Record<string, number>;
|
|
566
|
-
scoreAdjustment: number;
|
|
567
|
-
cleanEligible: boolean;
|
|
568
|
-
reasons: string[];
|
|
569
|
-
}
|
|
570
|
-
export interface FrontierCodexPatchScoreEntry {
|
|
571
|
-
jobId: string;
|
|
572
|
-
status: FrontierCodexPatchScoreStatus;
|
|
573
|
-
score: number;
|
|
574
|
-
bundlePath: string;
|
|
575
|
-
patchPath?: string;
|
|
576
|
-
workspacePath?: string;
|
|
577
|
-
changedPaths: string[];
|
|
578
|
-
reasons: string[];
|
|
579
|
-
semanticEvidence: FrontierCodexPatchScoreSemanticEvidence;
|
|
580
|
-
commands: Array<{
|
|
581
|
-
command: string[];
|
|
582
|
-
status: number;
|
|
583
|
-
stdoutTail: string[];
|
|
584
|
-
stderrTail: string[];
|
|
585
|
-
}>;
|
|
586
|
-
}
|
|
587
|
-
export interface FrontierCodexPatchScoreResult {
|
|
588
|
-
kind: typeof FRONTIER_SWARM_CODEX_PATCH_SCORE_KIND;
|
|
589
|
-
version: typeof FRONTIER_SWARM_CODEX_PATCH_SCORE_VERSION;
|
|
590
|
-
ok: boolean;
|
|
591
|
-
cwd: string;
|
|
592
|
-
collectionDir: string;
|
|
593
|
-
outDir: string;
|
|
594
|
-
generatedAt: number;
|
|
595
|
-
entries: FrontierCodexPatchScoreEntry[];
|
|
596
|
-
summary: Record<FrontierCodexPatchScoreStatus, number> & {
|
|
597
|
-
total: number;
|
|
598
|
-
};
|
|
599
|
-
}
|
|
600
|
-
export type FrontierCodexHandoffArtifactKind = 'debug-handoff' | 'replay' | 'watchpoint' | 'trace' | 'diagnostic' | 'log' | 'last-message' | 'evidence' | string;
|
|
601
|
-
export interface FrontierCodexHandoffArtifact {
|
|
602
|
-
path: string;
|
|
603
|
-
kind: FrontierCodexHandoffArtifactKind;
|
|
604
|
-
bytes?: number;
|
|
605
|
-
}
|
|
606
|
-
export interface FrontierCodexHandoffDiscoveryInput {
|
|
607
|
-
root: string;
|
|
608
|
-
maxDepth?: number;
|
|
609
|
-
maxArtifacts?: number;
|
|
610
|
-
}
|
|
611
|
-
export interface FrontierCodexWorkspaceManifest {
|
|
612
|
-
kind: typeof FRONTIER_SWARM_CODEX_WORKSPACE_MANIFEST_KIND;
|
|
613
|
-
version: typeof FRONTIER_SWARM_CODEX_WORKSPACE_MANIFEST_VERSION;
|
|
614
|
-
id: string;
|
|
615
|
-
mode: FrontierCodexSwarmWorkspaceMode;
|
|
616
|
-
root: string;
|
|
617
|
-
path: string;
|
|
618
|
-
includes: string[];
|
|
619
|
-
excludes: string[];
|
|
620
|
-
artifactIncludes: string[];
|
|
621
|
-
linkPaths: string[];
|
|
622
|
-
requiredIncludes: string[];
|
|
623
|
-
optionalIncludes: string[];
|
|
624
|
-
strategy: string;
|
|
625
|
-
guardRoot?: string;
|
|
626
|
-
linkNodeModules: boolean;
|
|
627
|
-
skipGitRepoCheck: boolean;
|
|
628
|
-
}
|
|
629
|
-
export interface FrontierCodexWorkspaceProof {
|
|
630
|
-
kind: typeof FRONTIER_SWARM_CODEX_WORKSPACE_PROOF_KIND;
|
|
631
|
-
version: typeof FRONTIER_SWARM_CODEX_WORKSPACE_PROOF_VERSION;
|
|
632
|
-
id: string;
|
|
633
|
-
generatedAt: number;
|
|
634
|
-
manifest: FrontierCodexWorkspaceManifest;
|
|
635
|
-
copiedPaths: string[];
|
|
636
|
-
linkedPaths: string[];
|
|
637
|
-
missingRequired: string[];
|
|
638
|
-
missingOptional: string[];
|
|
639
|
-
ignoredChangedPaths: string[];
|
|
640
|
-
summary: {
|
|
641
|
-
copiedCount: number;
|
|
642
|
-
linkedCount: number;
|
|
643
|
-
missingRequiredCount: number;
|
|
644
|
-
missingOptionalCount: number;
|
|
645
|
-
ignoredChangedPathCount: number;
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
export type FrontierCodexWorkspacePackageLinkStatus = 'already-linked' | 'planned' | 'linked' | 'replaced' | 'excluded' | 'missing-local-package' | 'conflict';
|
|
649
|
-
export interface FrontierCodexWorkspacePackageLinkRepairInput {
|
|
650
|
-
root?: string;
|
|
651
|
-
packageRoots?: readonly string[];
|
|
652
|
-
scope?: string;
|
|
653
|
-
packages?: readonly string[];
|
|
654
|
-
excludePackages?: readonly string[];
|
|
655
|
-
write?: boolean;
|
|
656
|
-
replace?: boolean;
|
|
657
|
-
outFile?: string;
|
|
658
|
-
}
|
|
659
|
-
export interface FrontierCodexWorkspacePackageLinkEntry {
|
|
660
|
-
packageName: string;
|
|
661
|
-
dependencyRange?: string;
|
|
662
|
-
linkPath: string;
|
|
663
|
-
targetPath?: string;
|
|
664
|
-
status: FrontierCodexWorkspacePackageLinkStatus;
|
|
665
|
-
reason?: string;
|
|
666
|
-
}
|
|
667
|
-
export interface FrontierCodexWorkspacePackageLinkRepairResult {
|
|
668
|
-
kind: typeof FRONTIER_SWARM_CODEX_LINK_REPAIR_KIND;
|
|
669
|
-
version: typeof FRONTIER_SWARM_CODEX_LINK_REPAIR_VERSION;
|
|
670
|
-
generatedAt: number;
|
|
671
|
-
root: string;
|
|
672
|
-
scope: string;
|
|
673
|
-
packageRoots: string[];
|
|
674
|
-
write: boolean;
|
|
675
|
-
replace: boolean;
|
|
676
|
-
entries: FrontierCodexWorkspacePackageLinkEntry[];
|
|
677
|
-
summary: {
|
|
678
|
-
total: number;
|
|
679
|
-
planned: number;
|
|
680
|
-
linked: number;
|
|
681
|
-
replaced: number;
|
|
682
|
-
alreadyLinked: number;
|
|
683
|
-
excluded: number;
|
|
684
|
-
missingLocalPackage: number;
|
|
685
|
-
conflicts: number;
|
|
686
|
-
};
|
|
687
|
-
outFile?: string;
|
|
688
|
-
}
|
|
689
|
-
export interface FrontierCodexPidEntry {
|
|
690
|
-
pid: number;
|
|
691
|
-
role: 'parent' | 'codex' | string;
|
|
692
|
-
runId?: string;
|
|
693
|
-
jobId?: string;
|
|
694
|
-
startedAt: number;
|
|
695
|
-
command?: string[];
|
|
696
|
-
}
|
|
697
|
-
export interface FrontierCodexPidManifest {
|
|
698
|
-
kind: typeof FRONTIER_SWARM_CODEX_PID_MANIFEST_KIND;
|
|
699
|
-
version: typeof FRONTIER_SWARM_CODEX_PID_MANIFEST_VERSION;
|
|
700
|
-
runId?: string;
|
|
701
|
-
entries: FrontierCodexPidEntry[];
|
|
702
|
-
}
|
|
703
|
-
export interface FrontierCodexStopResult {
|
|
704
|
-
ok: boolean;
|
|
705
|
-
pidManifestPath: string;
|
|
706
|
-
signal: NodeJS.Signals;
|
|
707
|
-
stopped: number[];
|
|
708
|
-
missing: number[];
|
|
709
|
-
errors: Array<{
|
|
710
|
-
pid: number;
|
|
711
|
-
error: string;
|
|
712
|
-
}>;
|
|
713
|
-
}
|
|
714
|
-
export interface FrontierCodexExecutorInput {
|
|
715
|
-
job: FrontierSwarmJob;
|
|
716
|
-
prompt: string;
|
|
717
|
-
args: string[];
|
|
718
|
-
cwd: string;
|
|
719
|
-
workspacePath: string;
|
|
720
|
-
codexPath: string;
|
|
721
|
-
paths: FrontierCodexJobPaths;
|
|
722
|
-
resourceAllocation: FrontierCodexResourceAllocation;
|
|
723
|
-
env: Record<string, string>;
|
|
724
|
-
timeoutMs: number;
|
|
725
|
-
compactLogs?: FrontierCodexCompactLogOptions;
|
|
726
|
-
}
|
|
727
|
-
export interface FrontierCodexExecutorResult {
|
|
728
|
-
exitCode: number;
|
|
729
|
-
signal?: string;
|
|
730
|
-
changedPaths?: readonly string[];
|
|
731
|
-
lastMessage?: string;
|
|
732
|
-
logSummary?: FrontierCodexLogSummary;
|
|
733
|
-
error?: unknown;
|
|
734
|
-
}
|
|
735
|
-
export type FrontierCodexExecutor = (input: FrontierCodexExecutorInput) => Promise<FrontierCodexExecutorResult>;
|
|
736
|
-
export interface FrontierCodexJobHookInput {
|
|
737
|
-
job: FrontierSwarmJob;
|
|
738
|
-
cwd: string;
|
|
739
|
-
outDir: string;
|
|
740
|
-
workspacePath: string;
|
|
741
|
-
workspacePlan: FrontierCodexWorkspacePlan;
|
|
742
|
-
paths: FrontierCodexJobPaths;
|
|
743
|
-
resourceAllocation: FrontierCodexResourceAllocation;
|
|
744
|
-
}
|
|
745
|
-
export interface FrontierCodexJobPromptHookInput extends FrontierCodexJobHookInput {
|
|
746
|
-
prompt: string;
|
|
747
|
-
}
|
|
748
|
-
export interface FrontierCodexJobStartedHookInput extends FrontierCodexJobHookInput {
|
|
749
|
-
prompt: string;
|
|
750
|
-
args: string[];
|
|
751
|
-
}
|
|
752
|
-
export interface FrontierCodexJobFinishedHookInput {
|
|
753
|
-
job: FrontierSwarmJob;
|
|
754
|
-
result: FrontierSwarmJobResultInput;
|
|
755
|
-
}
|
|
756
|
-
export interface FrontierCodexSwarmFinishedHookInput {
|
|
757
|
-
result: FrontierCodexSwarmRunResult;
|
|
758
|
-
}
|
|
759
|
-
export type FrontierCodexJobWorkspaceHook = (input: FrontierCodexJobHookInput) => Promise<void> | void;
|
|
760
|
-
export type FrontierCodexJobPromptHook = (input: FrontierCodexJobPromptHookInput) => Promise<string> | string;
|
|
761
|
-
export type FrontierCodexChangedPathFilter = (paths: readonly string[], input: FrontierCodexJobHookInput) => readonly string[];
|
|
762
|
-
export type FrontierCodexJobStartedHook = (input: FrontierCodexJobStartedHookInput) => Promise<void> | void;
|
|
763
|
-
export type FrontierCodexJobFinishedHook = (input: FrontierCodexJobFinishedHookInput) => Promise<void> | void;
|
|
764
|
-
export type FrontierCodexSwarmFinishedHook = (input: FrontierCodexSwarmFinishedHookInput) => Promise<void> | void;
|
|
765
|
-
export interface FrontierCodexSwarmRunResult {
|
|
766
|
-
ok: boolean;
|
|
767
|
-
outDir: string;
|
|
768
|
-
plan: FrontierSwarmPlan;
|
|
769
|
-
run: FrontierSwarmRun;
|
|
770
|
-
proof: ReturnType<typeof createSwarmProof>;
|
|
771
|
-
}
|
|
772
|
-
export interface FrontierCodexSwarmCliInput {
|
|
773
|
-
manifest: unknown;
|
|
774
|
-
tasks: unknown;
|
|
775
|
-
plan?: FrontierSwarmPlanInput;
|
|
776
|
-
}
|
|
1
|
+
import { type FrontierSwarmManifestInput, type FrontierSwarmPlan, type FrontierSwarmTaskInput } from '@shapeshift-labs/frontier-swarm';
|
|
2
|
+
import type { FrontierCodexSwarmCliInput } from './types.js';
|
|
3
|
+
export { FRONTIER_SWARM_CODEX_APPLY_LEDGER_KIND, FRONTIER_SWARM_CODEX_APPLY_LEDGER_VERSION, FRONTIER_SWARM_CODEX_COLLECTION_KIND, FRONTIER_SWARM_CODEX_COLLECTION_VERSION, FRONTIER_SWARM_CODEX_COMPACT_DASHBOARD_KIND, FRONTIER_SWARM_CODEX_COMPACT_DASHBOARD_VERSION, FRONTIER_SWARM_CODEX_DEFAULT_MODEL, FRONTIER_SWARM_CODEX_DEFAULT_REASONING_EFFORT, FRONTIER_SWARM_CODEX_JOB_EVIDENCE_KIND, FRONTIER_SWARM_CODEX_JOB_EVIDENCE_VERSION, FRONTIER_SWARM_CODEX_LINK_REPAIR_KIND, FRONTIER_SWARM_CODEX_LINK_REPAIR_VERSION, FRONTIER_SWARM_CODEX_PATCH_INTENT_KIND, FRONTIER_SWARM_CODEX_PATCH_INTENT_VERSION, FRONTIER_SWARM_CODEX_PATCH_SCORE_KIND, FRONTIER_SWARM_CODEX_PATCH_SCORE_VERSION, FRONTIER_SWARM_CODEX_PID_MANIFEST_KIND, FRONTIER_SWARM_CODEX_PID_MANIFEST_VERSION, FRONTIER_SWARM_CODEX_SEMANTIC_IMPORT_KIND, FRONTIER_SWARM_CODEX_SEMANTIC_IMPORT_VERSION, FRONTIER_SWARM_CODEX_WORKSPACE_MANIFEST_KIND, FRONTIER_SWARM_CODEX_WORKSPACE_MANIFEST_VERSION, FRONTIER_SWARM_CODEX_WORKSPACE_PROOF_KIND, FRONTIER_SWARM_CODEX_WORKSPACE_PROOF_VERSION } from './constants.js';
|
|
4
|
+
export { collectCodexSwarmRun } from './collect.js';
|
|
5
|
+
export { applyCodexSwarmCollection } from './apply.js';
|
|
6
|
+
export { scoreCodexSwarmPatches } from './score.js';
|
|
7
|
+
export { runCodexSwarm, runCodexJob } from './codex-run.js';
|
|
8
|
+
export { appendCodexPidManifest, appendFileSwarmEvent, initFileSwarmEventStream, readCodexPidManifest, stopCodexSwarmRun, writeSwarmCoordinatorSnapshot } from './codex-events.js';
|
|
9
|
+
export { buildCodexArgs, createCodexResourceAllocation, normalizeCodexApprovalPolicy, normalizeCodexModelFlag, renderCodexPrompt } from './codex-prompt.js';
|
|
10
|
+
export { createCodexWorkspacePlan, createSwarmWorkspaceManifest, createSwarmWorkspaceProof, prepareCodexWorkspace } from './codex-workspace.js';
|
|
11
|
+
export { spawnCodexExecutor } from './codex-executor.js';
|
|
12
|
+
export { discoverCodexHandoffArtifacts } from './handoff-artifacts.js';
|
|
13
|
+
export type * from './types.js';
|
|
777
14
|
export declare function createCodexSwarmPlan(input: FrontierCodexSwarmCliInput): FrontierSwarmPlan;
|
|
778
15
|
export declare function coerceCodexSwarmManifestInput(value: unknown): FrontierSwarmManifestInput;
|
|
779
16
|
export declare function coerceCodexSwarmTasksInput(value: unknown): FrontierSwarmTaskInput[];
|
|
780
|
-
export
|
|
781
|
-
export declare function runCodexSwarm(plan: FrontierSwarmPlan, options: FrontierCodexSwarmRunOptions): Promise<FrontierCodexSwarmRunResult>;
|
|
782
|
-
export declare function runCodexJob(job: FrontierSwarmJob, options: FrontierCodexSwarmRunOptions, outDir: string, lease?: FrontierSwarmLease): Promise<FrontierSwarmJobResultInput>;
|
|
783
|
-
export declare function discoverCodexHandoffArtifacts(input: FrontierCodexHandoffDiscoveryInput): Promise<FrontierCodexHandoffArtifact[]>;
|
|
784
|
-
export declare function buildCodexArgs(job: FrontierSwarmJob, input: FrontierCodexSwarmRunOptions & {
|
|
785
|
-
workspacePath: string;
|
|
786
|
-
paths: FrontierCodexJobPaths;
|
|
787
|
-
}): string[];
|
|
788
|
-
export declare function normalizeCodexModelFlag(model: string | false | null | undefined): string | undefined;
|
|
789
|
-
export declare function normalizeCodexApprovalPolicy(approval: string | false | null | undefined): 'untrusted' | 'on-failure' | 'on-request' | 'never' | undefined;
|
|
790
|
-
export declare function createCodexResourceAllocation(job: FrontierSwarmJob, input: {
|
|
791
|
-
cwd?: string;
|
|
792
|
-
outDir: string;
|
|
793
|
-
workspacePath?: string;
|
|
794
|
-
lease?: FrontierSwarmLease;
|
|
795
|
-
}): FrontierCodexResourceAllocation;
|
|
796
|
-
export declare function renderCodexPrompt(job: FrontierSwarmJob, input: {
|
|
797
|
-
workspacePath: string;
|
|
798
|
-
paths: FrontierCodexJobPaths;
|
|
799
|
-
resourceAllocation?: FrontierCodexResourceAllocation;
|
|
800
|
-
}): string;
|
|
801
|
-
export declare function spawnCodexExecutor(input: FrontierCodexExecutorInput): Promise<FrontierCodexExecutorResult>;
|
|
802
|
-
export declare function prepareCodexWorkspace(job: FrontierSwarmJob, options: FrontierCodexSwarmRunOptions): Promise<string>;
|
|
803
|
-
export declare function createCodexWorkspacePlan(job: FrontierSwarmJob, options: FrontierCodexSwarmRunOptions): FrontierCodexWorkspacePlan;
|
|
804
|
-
export declare function createSwarmWorkspaceManifest(plan: FrontierCodexWorkspacePlan): FrontierCodexWorkspaceManifest;
|
|
805
|
-
export declare function createSwarmWorkspaceProof(plan: FrontierCodexWorkspacePlan, input?: {
|
|
806
|
-
ignoredChangedPaths?: readonly string[];
|
|
807
|
-
generatedAt?: number;
|
|
808
|
-
}): Promise<FrontierCodexWorkspaceProof>;
|
|
809
|
-
export declare function initFileSwarmEventStream(stream: FrontierSwarmEventStream | undefined): Promise<void>;
|
|
810
|
-
export declare function appendFileSwarmEvent(stream: FrontierSwarmEventStream | undefined, event: FrontierSwarmEventInput): Promise<void>;
|
|
811
|
-
export declare function writeSwarmCoordinatorSnapshot(file: string, input: FrontierCodexSwarmRunResult & {
|
|
812
|
-
eventStream?: FrontierSwarmEventStream;
|
|
813
|
-
pidManifestPath?: string;
|
|
814
|
-
}): Promise<void>;
|
|
815
|
-
export declare function appendCodexPidManifest(file: string, entry: FrontierCodexPidEntry, runId?: string): Promise<void>;
|
|
816
|
-
export declare function readCodexPidManifest(file: string): Promise<FrontierCodexPidManifest>;
|
|
817
|
-
export declare function stopCodexSwarmRun(input: {
|
|
818
|
-
run: string;
|
|
819
|
-
signal?: NodeJS.Signals;
|
|
820
|
-
}): Promise<FrontierCodexStopResult>;
|
|
821
|
-
export declare function collectCodexSwarmRun(input: FrontierCodexCollectInput): Promise<FrontierCodexCollectResult>;
|
|
822
|
-
export declare function applyCodexSwarmCollection(input: FrontierCodexApplyInput): Promise<FrontierCodexApplyResult>;
|
|
823
|
-
export declare function scoreCodexSwarmPatches(input: FrontierCodexPatchScoreInput): Promise<FrontierCodexPatchScoreResult>;
|
|
17
|
+
export { repairCodexWorkspacePackageLinks } from './workspace-link-repair.js';
|
|
824
18
|
//# sourceMappingURL=index.d.ts.map
|