nexus-agents 2.28.0 → 2.29.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.
Files changed (72) hide show
  1. package/README.md +11 -10
  2. package/dist/chunk-5VZLXMO7.js +838 -0
  3. package/dist/chunk-5VZLXMO7.js.map +1 -0
  4. package/dist/chunk-633WH2ML.js +127 -0
  5. package/dist/chunk-633WH2ML.js.map +1 -0
  6. package/dist/chunk-7F6HYUIY.js +327 -0
  7. package/dist/chunk-7F6HYUIY.js.map +1 -0
  8. package/dist/chunk-CLYZ7FWP.js +30 -0
  9. package/dist/chunk-CLYZ7FWP.js.map +1 -0
  10. package/dist/{chunk-QZEAD6AG.js → chunk-DAMRMAM2.js} +19526 -35943
  11. package/dist/chunk-DAMRMAM2.js.map +1 -0
  12. package/dist/{chunk-YSDUVCCZ.js → chunk-HH5LVGEE.js} +6 -6
  13. package/dist/{chunk-E7EX2KQJ.js → chunk-HWDBNDUX.js} +2 -2
  14. package/dist/chunk-I6YDS23R.js +354 -0
  15. package/dist/chunk-I6YDS23R.js.map +1 -0
  16. package/dist/{chunk-L2SHSW4T.js → chunk-IMWYKX4H.js} +4377 -4190
  17. package/dist/chunk-IMWYKX4H.js.map +1 -0
  18. package/dist/chunk-KGDG6PWZ.js +61 -0
  19. package/dist/chunk-KGDG6PWZ.js.map +1 -0
  20. package/dist/chunk-POBO4G2P.js +3700 -0
  21. package/dist/chunk-POBO4G2P.js.map +1 -0
  22. package/dist/chunk-S3BKWNST.js +13475 -0
  23. package/dist/chunk-S3BKWNST.js.map +1 -0
  24. package/dist/chunk-T7PU3NPQ.js +42 -0
  25. package/dist/chunk-T7PU3NPQ.js.map +1 -0
  26. package/dist/{chunk-UGNLR4NZ.js → chunk-WSK4VSXP.js} +2 -2
  27. package/dist/{chunk-LKSTILEE.js → chunk-ZBZJHXRT.js} +181 -1120
  28. package/dist/chunk-ZBZJHXRT.js.map +1 -0
  29. package/dist/cli.d.ts +2 -2
  30. package/dist/cli.js +1400 -649
  31. package/dist/cli.js.map +1 -1
  32. package/dist/composite-router-YPRWVTRB.js +17 -0
  33. package/dist/consensus-vote-DBE6RNZG.js +23 -0
  34. package/dist/{dist-H5XNXVAV.js → dist-7PQR2BQB.js} +1006 -954
  35. package/dist/dist-7PQR2BQB.js.map +1 -0
  36. package/dist/{doctor-deep-BDE2PHVX.js → doctor-deep-AWE7SRU6.js} +4 -3
  37. package/dist/expert-config-FHNBQRX2.js +22 -0
  38. package/dist/expert-config-FHNBQRX2.js.map +1 -0
  39. package/dist/factory-O5C7ZBZO.js +13 -0
  40. package/dist/factory-O5C7ZBZO.js.map +1 -0
  41. package/dist/factory-PCHGQ3ZG.js +16 -0
  42. package/dist/factory-PCHGQ3ZG.js.map +1 -0
  43. package/dist/index.d.ts +1253 -681
  44. package/dist/index.js +490 -313
  45. package/dist/index.js.map +1 -1
  46. package/dist/learning-persistence-WMWZJZ35.js +16 -0
  47. package/dist/learning-persistence-WMWZJZ35.js.map +1 -0
  48. package/dist/mcp-config-AUZQPUBY.js +12 -0
  49. package/dist/mcp-config-AUZQPUBY.js.map +1 -0
  50. package/dist/{model-capabilities-types-CSWO27YN.d.ts → model-capabilities-types-B57GZryc.d.ts} +1 -1
  51. package/dist/routing-memory-QY3XMU2R.js +13 -0
  52. package/dist/routing-memory-QY3XMU2R.js.map +1 -0
  53. package/dist/session-memory-3MBCE5KS.js +22 -0
  54. package/dist/session-memory-3MBCE5KS.js.map +1 -0
  55. package/dist/{setup-command-SS7LMN7Y.js → setup-command-IQ4MD3FT.js} +8 -5
  56. package/dist/setup-command-IQ4MD3FT.js.map +1 -0
  57. package/dist/setup-config-5YUPLDXF.js +10 -0
  58. package/dist/setup-config-5YUPLDXF.js.map +1 -0
  59. package/dist/weather-report-CC2C4KAX.js +15 -0
  60. package/dist/weather-report-CC2C4KAX.js.map +1 -0
  61. package/package.json +16 -18
  62. package/dist/chunk-L2SHSW4T.js.map +0 -1
  63. package/dist/chunk-LKSTILEE.js.map +0 -1
  64. package/dist/chunk-QZEAD6AG.js.map +0 -1
  65. package/dist/dist-H5XNXVAV.js.map +0 -1
  66. package/dist/setup-config-DSMOOLVW.js +0 -9
  67. /package/dist/{chunk-YSDUVCCZ.js.map → chunk-HH5LVGEE.js.map} +0 -0
  68. /package/dist/{chunk-E7EX2KQJ.js.map → chunk-HWDBNDUX.js.map} +0 -0
  69. /package/dist/{chunk-UGNLR4NZ.js.map → chunk-WSK4VSXP.js.map} +0 -0
  70. /package/dist/{doctor-deep-BDE2PHVX.js.map → composite-router-YPRWVTRB.js.map} +0 -0
  71. /package/dist/{setup-command-SS7LMN7Y.js.map → consensus-vote-DBE6RNZG.js.map} +0 -0
  72. /package/dist/{setup-config-DSMOOLVW.js.map → doctor-deep-AWE7SRU6.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
+ import {
2
+ createGitHubProvider,
3
+ createScmProvider
4
+ } from "./chunk-T7PU3NPQ.js";
1
5
  import {
2
6
  ALLOWED_COMMANDS,
3
7
  ARTIFACT_TYPES,
4
8
  ActivationStrategySchema,
5
- AdapterModelError,
6
9
  AgentActionSchema,
7
10
  AgentEventSchema,
8
- AgentFindingSchema,
9
11
  AgentMessageSchema,
10
- AgentPerformanceSchema,
11
12
  AgentRoleSchema,
12
13
  AgentRoleSchema2,
13
14
  AgentRoleSchema3,
14
15
  AgentRunnerError,
15
16
  AgentStateMachine,
16
- AgentStateSchema,
17
17
  AnalysisError,
18
18
  AppConfigSchema,
19
19
  ArchitectureExpert,
@@ -32,20 +32,14 @@ import {
32
32
  AuditTrail,
33
33
  AuthorizationMethodSchema,
34
34
  AvailabilityCache,
35
- BUILT_IN_EXPERTS,
36
35
  BUILT_IN_RULES,
37
36
  BUILT_IN_TEMPLATES,
38
- BaseAdapter,
39
37
  BaseAgent,
40
38
  BaseAgentOptionsSchema,
41
39
  BestSolutionSchema,
42
- BuiltInExpertTypeSchema,
43
40
  CHECKPOINT_SCHEMA_VERSION,
44
- CLAUDE_MODELS,
45
- CLAUDE_MODEL_ALIASES,
46
41
  COMPLEXITY_ORDER,
47
42
  CORE_PLUGINS,
48
- ClaudeAdapter,
49
43
  CliAgentExecutor,
50
44
  CliCircuitBreakerIntegration,
51
45
  CodeChangeSchema,
@@ -54,14 +48,7 @@ import {
54
48
  CollaborationPatternSchema,
55
49
  CollaborationSession,
56
50
  CompactDashboardRenderer,
57
- ConsensusAlgorithmSchema,
58
- ConsensusEngine,
59
- ConsensusEngineConfigSchema,
60
- ConsensusError,
61
- ConsensusMetricsSchema,
62
51
  ConsensusProtocol,
63
- ConsensusResultSchema,
64
- ConsensusVoteInputSchema,
65
52
  ContentPriority,
66
53
  ContextBudgetSchema,
67
54
  ContextFilterSchema,
@@ -70,9 +57,6 @@ import {
70
57
  ContextPruneStrategySchema,
71
58
  ContextPruner,
72
59
  ContextPrunerConfigSchema,
73
- CorrelationCoefficientSchema,
74
- CorrelationTracker,
75
- CorrelationTrackerStatsSchema,
76
60
  CostEstimateSchema,
77
61
  CoverageMetricsSchema,
78
62
  CreateExpertInputSchema,
@@ -83,7 +67,6 @@ import {
83
67
  DEFAULT_BUDGET,
84
68
  DEFAULT_CAPABILITIES as DEFAULT_CAPABILITIES2,
85
69
  DEFAULT_COMPOSER_CONFIG,
86
- DEFAULT_CONSENSUS_CONFIG,
87
70
  DEFAULT_DASHBOARD_CONFIG,
88
71
  DEFAULT_DASHBOARD_RENDER_OPTIONS,
89
72
  DEFAULT_EVALUATION_CONFIG,
@@ -92,7 +75,6 @@ import {
92
75
  DEFAULT_FEEDBACK_INTEGRATION_CONFIG,
93
76
  DEFAULT_FOREST_CONFIG,
94
77
  DEFAULT_HARNESS_EXECUTION_CONFIG,
95
- DEFAULT_HIGHER_ORDER_CONFIG,
96
78
  DEFAULT_MAX_RETRIES,
97
79
  DEFAULT_PATCH_OPTIONS,
98
80
  DEFAULT_PATH_SCORING_OPTIONS,
@@ -110,15 +92,12 @@ import {
110
92
  DEFAULT_TEST_RUNNER_CONFIG,
111
93
  DEFAULT_TIMEOUTS,
112
94
  DEFAULT_TRINITY_CONFIG,
113
- DEFAULT_VOTING_PROTOCOL_CONFIG,
114
95
  DEFAULT_WAVE_CONFIG,
115
- DEFAULT_WEIGHTED_VOTING_CONFIG,
116
96
  Dashboard,
117
97
  DashboardConfigSchema,
118
98
  DatasetLoadError,
119
99
  DelegateInputSchema,
120
100
  DelegateOutputSchema,
121
- DelegateRequestSchema,
122
101
  DependencyErrorCodeSchema,
123
102
  DependencyErrorSchema,
124
103
  DependencyGraph,
@@ -128,17 +107,14 @@ import {
128
107
  EXPERT_CAPABILITIES,
129
108
  EXPERT_DEFAULT_CAPABILITIES,
130
109
  EXPERT_DEFAULT_TEMPERATURES,
131
- EXPERT_TYPE_TO_ROLE,
132
110
  EvaluationHarness,
133
111
  EvaluationHarnessError,
134
- EventBus,
135
112
  ExecuteExpertInputSchema,
136
113
  ExecuteSpecInputSchema,
137
114
  Expert,
138
115
  ExpertAssignmentSchema,
139
116
  ExpertCollaborationPattern,
140
117
  ExpertConfigSchema,
141
- ExpertConfigSchema2,
142
118
  ExpertDefinitionSchema,
143
119
  ExpertDomainSchema,
144
120
  ExpertFactory,
@@ -148,16 +124,15 @@ import {
148
124
  ExpertOutputSchema,
149
125
  ExpertParticipationSchema,
150
126
  ExpertRegistry,
151
- ExpertRequestSchema,
152
127
  ExplorationEventSchema,
153
128
  ExplorationEventTypeSchema,
129
+ ExtractSymbolsInputSchema,
154
130
  FALLBACK_SCANNER_DATA,
155
131
  FactoryError,
156
132
  FailurePatternSchema,
157
133
  FeedbackCollectorConfigSchema,
158
134
  FeedbackIntegration,
159
135
  FileAuditStorage,
160
- FindingVoteSchema,
161
136
  ForestConfigSchema,
162
137
  ForestPruningStrategySchema,
163
138
  ForestResultSchema,
@@ -165,21 +140,16 @@ import {
165
140
  ForestStatisticsSchema,
166
141
  GeminiResponseParser,
167
142
  GeneratedTestSchema,
168
- GitHubProvider,
169
143
  GitHubReviewer,
170
144
  GitHubUserInfo,
171
145
  GitHubUserRoleSchema,
172
146
  GraphBuilder,
173
147
  HarnessExecutor,
174
148
  HarnessExecutorError,
175
- HigherOrderVotingConfigSchema,
176
- HigherOrderVotingResultSchema,
177
- HigherOrderVotingStrategy,
178
149
  ICTMConfigSchema,
179
150
  ICTMInferenceResultSchema,
180
151
  InMemoryAuditStorage,
181
152
  InMemoryCheckpointStore,
182
- IndependentSubsetSchema,
183
153
  InjectionFlagSchema,
184
154
  InputDefinitionSchema,
185
155
  InputDefinitionSchema2,
@@ -194,22 +164,17 @@ import {
194
164
  MAX_EXECUTION_TIME_MS,
195
165
  MIN_EXPERTS_FOR_PATTERN,
196
166
  MODEL_CAPABILITIES,
167
+ MemoryQueryInputSchema,
168
+ MemoryStatsInputSchema,
169
+ MemoryWriteInputSchema,
197
170
  ModelConfigSchema,
198
- ModelPreferenceSchema,
199
171
  ModelSelectionSchema,
200
172
  ModelTiersSchema,
201
- NOOP_NOTIFIER,
202
173
  NexusAgentExecutor,
203
- NoAdapterError,
204
174
  NodeStateSchema,
205
- OWVoting,
206
- ObserverTopics,
207
175
  OrchestrateInputSchema,
208
176
  OrchestrateOutputSchema,
209
- OrchestrateRequestSchema,
210
177
  OrchestrationError,
211
- OrchestrationObserver,
212
- OrchestrationObserverConfigSchema,
213
178
  OrchestrationUnavailableError,
214
179
  Orchestrator,
215
180
  OrchestratorFactory,
@@ -217,50 +182,45 @@ import {
217
182
  OutcomeFeedbackCollector,
218
183
  PLUGIN_TRUST_LEVELS,
219
184
  PROMPT_DEFINITIONS,
220
- PROVIDER_ENV_KEYS,
221
- PairwiseVotingHistorySchema,
222
185
  ParallelProtocol,
223
186
  PatchApplicator,
224
187
  PatchApplicatorError,
225
188
  PathScoreBreakdownSchema,
226
189
  PathScoreSchema,
227
- PersistentOutcomeStore,
228
190
  PipelineRunner,
229
191
  PlanContractSchema,
230
192
  PluginManifestSchema,
231
193
  PluginRegistry,
232
- PolicyConfigSchema,
233
194
  PolicyEngine,
234
- PolicyError,
235
- PolicyFirewall,
236
195
  PolicyGateSpecSchema,
237
196
  PredictionWriteError,
238
197
  PredictionWriter,
239
- ProofOfLearningStrategy,
240
- ProposalSchema,
241
- ProposalStatusSchema,
242
198
  ProtocolFactory,
243
199
  ProviderConfigSchema,
244
200
  PruningStrategy,
245
201
  QualitySignalsSchema,
246
- REJECTION_CATEGORIES,
202
+ QueryTraceInputSchema,
247
203
  REPO_COMPLEXITY,
248
204
  ROLE_DEFAULT_TRUST,
249
- RateLimiter,
250
205
  ReasoningDepthSchema,
251
206
  ReasoningNodeMetadataSchema,
252
207
  ReasoningNodeSchema,
253
208
  ReasoningStepTypeSchema,
254
209
  ReasoningTreeSchema,
255
210
  RegistryError,
256
- RejectionCategorySchema,
211
+ RegistryImportInputSchema,
257
212
  RepoAnalyzeInputSchema,
258
213
  RepoSecurityPlanInputSchema,
259
214
  ReportGenerationError,
260
215
  ReportGenerator,
261
216
  ReputationCache,
262
- RestApiConfigSchema,
263
- RestApiServer,
217
+ ResearchAddInputSchema,
218
+ ResearchAddSourceInputSchema,
219
+ ResearchAnalyzeInputSchema,
220
+ ResearchCatalogReviewInputSchema,
221
+ ResearchDiscoverInputSchema,
222
+ ResearchQueryInputSchema,
223
+ ResearchSynthesizeInputSchema,
264
224
  ResultAggregator,
265
225
  ReviewProtocol,
266
226
  ReviewResponseMessageSchema,
@@ -277,9 +237,8 @@ import {
277
237
  SWE_BENCH_SYSTEM_PROMPT,
278
238
  SanitizedInputSchema,
279
239
  SanitizerConfigSchema,
280
- ScmError,
281
240
  ScoreBreakdownSchema,
282
- SdkAdapter,
241
+ SearchCodebaseInputSchema,
283
242
  SecurityConfigSchema,
284
243
  SecurityErrorCodeSchema,
285
244
  SecurityExpert,
@@ -291,7 +250,6 @@ import {
291
250
  SharedConclusionSchema,
292
251
  SharedInsightSchema,
293
252
  SimpleAgent,
294
- SimpleMajorityStrategy,
295
253
  SkillAttestationSchema,
296
254
  SkillCapabilitiesSchema,
297
255
  SkillComposer,
@@ -310,19 +268,13 @@ import {
310
268
  StageResultSchema,
311
269
  StageSpecSchema,
312
270
  StepExecutor,
313
- StreamCancelledError,
314
- StreamController,
315
- StreamError,
316
271
  StrippedElementSchema,
317
272
  SubTaskSchema,
318
273
  SubtaskPrioritySchema,
319
274
  SubtaskStatusSchema,
320
- SupermajorityStrategy,
321
275
  SuspiciousSignalSchema,
322
276
  SwarmObserver,
323
- SwarmObserver2,
324
277
  SwarmObserverConfigSchema,
325
- SwarmObserverConfigSchema2,
326
278
  SynthesizedResultSchema,
327
279
  TASK_STATUSES,
328
280
  TASK_TYPE_EXPERTS,
@@ -358,33 +310,21 @@ import {
358
310
  TrinityRoleSchema,
359
311
  TrinityStopReasonSchema,
360
312
  TrustTierSchema,
361
- UnanimousStrategy,
362
- VOTING_THRESHOLDS,
363
313
  ValidationDashboard,
364
314
  VerifierVerdictSchema,
365
315
  ViolationSchema,
366
316
  VoteDecisionSchema,
367
317
  VoteMessageSchema,
368
- VoteSchema,
369
- VotingObservationSchema,
370
- VotingProtocol,
371
- VotingProtocolConfigSchema,
372
- VotingRoundPhaseSchema,
373
- VotingRoundStatusSchema,
374
- VotingStrategyFactory,
375
318
  VulnerabilitySchema,
376
319
  VulnerabilitySeveritySchema,
377
320
  WaveScheduler,
378
- WeightedVoting,
379
321
  WorkflowConfigSchema,
380
322
  WorkflowDefinitionSchema,
381
323
  WorkflowDefinitionSchema2,
382
324
  WorkflowInputsSchema,
383
325
  WorkflowOrchestratorAdapter,
384
- WorkflowRequestSchema,
385
326
  WorkflowStepSchema,
386
327
  WorkflowStepSchema2,
387
- actorFromContext,
388
328
  aggregateResults,
389
329
  analyzeFailures,
390
330
  analyzeGitHubRepo,
@@ -395,27 +335,19 @@ import {
395
335
  applyPatch,
396
336
  areStepsCompleted,
397
337
  assessReputation,
398
- bufferStream,
399
338
  buildDependencyGraph,
400
339
  buildDependencyGraph2,
401
340
  buildDockerArgs,
402
341
  buildEnrichedPrompt,
403
- buildFinalResult,
404
342
  buildHarnessArgs,
405
343
  buildHarnessCommand,
406
- buildPendingResult,
407
344
  buildPlanFromAnalysis,
408
- buildTimeoutResult,
409
345
  calculateDistributionStats,
410
346
  calculateEstimatedRemaining,
411
347
  calculateMetrics,
412
- calculateMetricsTotals,
413
348
  calculateMinSampleSize,
414
349
  calculateRegret,
415
350
  calculateRepositoryMetrics,
416
- calculateRoutingDistribution,
417
- calculateTokenCost,
418
- calculateVoteWeight,
419
351
  calculateWinLoss,
420
352
  canApplyPatch,
421
353
  canExecuteSkill,
@@ -424,20 +356,18 @@ import {
424
356
  cancelExecution,
425
357
  checkPermissionBoundary,
426
358
  checkPipelinePolicy,
359
+ checkpointToResult,
427
360
  chunkByDirectory,
428
361
  classifyTrust,
362
+ cleanupCheckpoint,
429
363
  clearRegistryCache,
430
364
  clearTemplateCache,
431
- collectRealVotes,
432
- collectStream,
433
365
  compareProportions,
434
366
  compilePlan,
435
367
  compileSpecToGraph,
436
368
  computeOutcomeReward,
437
- concatStreams,
438
369
  containsExpressions,
439
- countActiveSessions,
440
- createAgentPairKey,
370
+ createAgentStages,
441
371
  createArchitectureExpert,
442
372
  createAttestation,
443
373
  createAuditLogger,
@@ -445,21 +375,16 @@ import {
445
375
  createBenchmarkMemory,
446
376
  createCheckpoint,
447
377
  createCheckpointStore,
448
- createClaudeAdapter,
449
378
  createCliCircuitBreakerIntegration,
450
379
  createCliExecutor,
451
380
  createCodeExpert,
452
381
  createCollaborationSession,
453
- createConsensusEngine,
454
382
  createContextItem,
455
383
  createCorePluginRegistry,
456
- createCorrelationTracker,
457
384
  createDashboard,
458
385
  createDashboardRenderer,
459
386
  createDefaultDeps,
460
387
  createDefaultPolicyEngine,
461
- createDefaultPolicyFirewall,
462
- createDefaultRateLimiter,
463
388
  createDefaultRegistry,
464
389
  createDelegatePipeline,
465
390
  createDependencyError,
@@ -476,33 +401,24 @@ import {
476
401
  createFullGitHubProvider,
477
402
  createGraphAuditBridge,
478
403
  createHarnessExecutor,
479
- createHigherOrderVotingStrategy,
480
- createInitialCostMetrics,
481
404
  createInitialProgress,
482
- createInitialSessionMetrics,
483
- createInitialTokenUsage,
484
405
  createInitializedWorkflowEngine,
485
406
  createInstancePrompt,
486
407
  createInteractionGraph,
487
408
  createIsolatedRegistry,
488
409
  createMcpLogger,
489
- createMcpNotifier,
490
410
  createMockExecutor,
491
411
  createNexusExecutorFromEnv,
492
- createOWVoting,
493
- createOrchestrationObserver,
494
412
  createOrchestrator,
495
413
  createOrchestratorFactory,
496
414
  createOutcomeFeedbackCollector,
497
415
  createPatchApplicator,
498
- createPolicyContext,
499
416
  createPrediction,
500
417
  createProductionWorkflowEngine,
501
418
  createProgressAdapter,
502
419
  createProtocolFactory,
503
420
  createRealWorkflowEngine,
504
421
  createReportGenerator,
505
- createRestApiServer,
506
422
  createResultAggregator,
507
423
  createRetryPrompt,
508
424
  createRoutingDecision,
@@ -519,11 +435,8 @@ import {
519
435
  createStateGuard,
520
436
  createStateMachine,
521
437
  createStepExecutor,
522
- createStrategyFactory,
523
- createStream,
524
438
  createSummaryPrompt,
525
439
  createSwarmObserver,
526
- createSwarmObserver2,
527
440
  createTaskOutcome,
528
441
  createTaskQueue,
529
442
  createTemplateRegistry,
@@ -531,16 +444,12 @@ import {
531
444
  createTestingExpert,
532
445
  createTimer,
533
446
  createToolLogger,
534
- createTrackedAgent,
535
447
  createTrinityCoordinator,
536
448
  createValidatedExecutor,
537
449
  createValidatedHarness,
538
450
  createValidationDashboard,
539
- createValidator,
540
451
  createVariantRunner,
541
- createVotingProtocol,
542
452
  createWaveScheduler,
543
- createWeightedVoting,
544
453
  createWorkflowEngineDeps,
545
454
  createWorkflowEngineDepsAsync,
546
455
  createWorkflowRouter,
@@ -549,9 +458,7 @@ import {
549
458
  decomposeSpec,
550
459
  defaultConfig,
551
460
  delegateInputToTaskContract,
552
- denyMutationsWithoutModeRule,
553
461
  detectTestFramework,
554
- determineFinalStatus,
555
462
  emitCorroborationEvent,
556
463
  emitExecutionComplete,
557
464
  emitGraphExecutionEvent,
@@ -562,16 +469,14 @@ import {
562
469
  emitSanitizationEvent,
563
470
  emitStateUpdated,
564
471
  emitStepCompleted,
565
- emitThresholdUpdate,
566
- emitTrendDetected,
567
472
  emitTrustEvent,
568
473
  estimateDifficulty,
569
474
  estimateTokens,
570
- evaluatePolicy,
571
- evaluatePolicy2,
572
- evaluatePolicy3,
475
+ evaluatePolicy as evaluatePolicy2,
476
+ evaluatePolicy2 as evaluatePolicy3,
573
477
  evaluatePredictions,
574
478
  executeDelegatePipeline,
479
+ executeExpert,
575
480
  executeGraph,
576
481
  executeHarness,
577
482
  executeInDocker,
@@ -580,31 +485,22 @@ import {
580
485
  executeSpec,
581
486
  exportReport,
582
487
  extractApproach,
583
- extractBooleanField,
584
488
  extractExpressions,
585
489
  extractFilesFromResponse,
586
490
  extractHypothesis,
587
491
  extractModelName,
588
- extractNumberField,
589
492
  extractPastSuccessRates,
590
493
  extractPatch,
591
494
  extractRepoFromInstanceId,
592
495
  extractRepoName,
593
- extractSessionId,
594
- extractStringArrayField,
595
- extractStringField,
596
496
  filterAvailableModels,
597
497
  filterByRepo,
598
498
  filterByVersion,
599
- filterStream,
600
- findActiveSession,
601
499
  findMissingDependencies,
500
+ flushPipelineMemory,
602
501
  formatCompileError,
603
502
  formatContextForPrompt,
604
503
  formatValidationResult,
605
- fromArray,
606
- generateMcpConfig,
607
- generateProposalId,
608
504
  generateReport,
609
505
  generateSecurityPlan,
610
506
  getAvailabilityCache,
@@ -619,7 +515,6 @@ import {
619
515
  getCorroborationRules,
620
516
  getCpuCores,
621
517
  getDatasetInfo,
622
- getDefaultAllowedTools,
623
518
  getDockerVersion,
624
519
  getEventBusStats,
625
520
  getExecutionDuration,
@@ -645,12 +540,9 @@ import {
645
540
  getStepResult,
646
541
  getSwarmObserver,
647
542
  getSwebenchVersion,
648
- getTokenEnvVars,
649
543
  getTopologicalOrder,
650
544
  getVariable,
651
- hasToken,
652
545
  ictmToExpertConfig,
653
- identifySessionsToRemove,
654
546
  inferICTM,
655
547
  initializeAgentSkills,
656
548
  initializeBuiltInTemplates,
@@ -661,14 +553,12 @@ import {
661
553
  isReadOnlyAction,
662
554
  isStepCompleted,
663
555
  listInstances,
556
+ loadCheckpointState,
664
557
  loadDataset,
665
558
  loadTemplateFile,
666
559
  loadTemplatesFromDirectory,
667
560
  loadWorkflowFile,
668
- logPolicyAudit,
669
- logRateLimitAudit,
670
561
  logToolError,
671
- logToolInvocationAudit,
672
562
  logToolStart,
673
563
  logToolSuccess,
674
564
  mapAuthorAssociation,
@@ -676,11 +566,9 @@ import {
676
566
  mapStateToPhase,
677
567
  mapTestStatus,
678
568
  meanConfidenceInterval,
679
- mergeStreams,
680
569
  normalizeRepoId,
681
570
  orchestrateInputToTaskContract,
682
571
  overwrite,
683
- parseAgentPairKey,
684
572
  parseExpression,
685
573
  parseJsonResults,
686
574
  parseProgressLine,
@@ -696,28 +584,40 @@ import {
696
584
  readJsonResults,
697
585
  readPredictions,
698
586
  recordOutcome,
699
- reduceStream,
700
- registerConsensusVoteTool,
701
587
  registerCorePlugins,
702
588
  registerCreateExpertTool,
703
589
  registerDelegateToModelTool,
704
590
  registerExecuteExpertTool,
705
591
  registerExecuteSpecTool,
706
592
  registerExpertsResource,
593
+ registerExtractSymbolsTool,
707
594
  registerIssueTriageTool,
708
595
  registerListExpertsTool,
709
596
  registerListWorkflowsTool,
597
+ registerMemoryQueryTool,
598
+ registerMemoryStatsTool,
599
+ registerMemoryWriteTool,
710
600
  registerModelsResource,
711
601
  registerOrchestrateTool,
712
602
  registerPrompts,
603
+ registerQueryTraceTool,
604
+ registerRegistryImportTool,
713
605
  registerRepoAnalyzeTool,
714
606
  registerRepoSecurityPlanTool,
607
+ registerResearchAddSourceTool,
608
+ registerResearchAddTool,
609
+ registerResearchAnalyzeTool,
610
+ registerResearchCatalogReviewTool,
611
+ registerResearchDiscoverTool,
612
+ registerResearchQueryTool,
715
613
  registerResearchResource,
614
+ registerResearchSynthesizeTool,
716
615
  registerResources,
717
616
  registerRunGraphWorkflowTool,
718
617
  registerRunWorkflowTool,
618
+ registerSearchCodebaseTool,
719
619
  registerTools,
720
- requireApiKey,
620
+ registerWeatherReportTool,
721
621
  requiresCitation,
722
622
  requiresCorroboration,
723
623
  resetAvailabilityCache,
@@ -728,20 +628,18 @@ import {
728
628
  resolveInput,
729
629
  resolveScannerData,
730
630
  resolveStringExpressions,
731
- resolveToken,
732
631
  resolveV2Config,
733
632
  resolveWithFallbacks,
734
- resultToOutcome,
735
633
  runAgentOnInstance,
736
634
  runBenchmarkInstances,
737
635
  runBenchmarkParallel,
636
+ runDevPipeline,
738
637
  runPreconditions,
739
638
  runSingleInstance,
740
639
  runTests,
741
640
  runVerification,
742
- safePathsRule,
743
- safeValidateExpertConfig,
744
641
  sanitizeInput,
642
+ saveStageCheckpoint,
745
643
  scoreByHybrid,
746
644
  scoreByImportance,
747
645
  scoreByRecency,
@@ -749,24 +647,15 @@ import {
749
647
  selectModel,
750
648
  setSwarmObserver,
751
649
  setVariable,
752
- skip,
753
650
  snapshotContext,
754
651
  sortByPriority,
755
652
  storeStepResult,
756
- take,
757
- takeUntil,
758
- tapStream,
759
- toolError,
760
- toolSuccess,
761
- toolSuccessStructured,
762
653
  transformHarnessOutput,
763
654
  transformHarnessProgress,
764
655
  transformInstanceResult,
765
- transformStream,
766
656
  transformTestResult,
767
657
  updateContext,
768
658
  validateAgentAction,
769
- validateApiKeyPresence,
770
659
  validateCapabilities,
771
660
  validateCommand,
772
661
  validateCorroboration,
@@ -774,7 +663,6 @@ import {
774
663
  validateDiskSpace,
775
664
  validateDocker,
776
665
  validateEnvironment,
777
- validateExpertConfig,
778
666
  validateExpressions,
779
667
  validateICTM,
780
668
  validateNexusEnv,
@@ -789,13 +677,148 @@ import {
789
677
  validateSkillExecution,
790
678
  validateSkillProvenance,
791
679
  validateSwebench,
792
- validateToolInput,
793
680
  validateWorkflow,
794
681
  validateWorkflowDependencies,
795
682
  withLogging,
796
- withTimeout,
797
683
  writePredictions
798
- } from "./chunk-QZEAD6AG.js";
684
+ } from "./chunk-DAMRMAM2.js";
685
+ import {
686
+ VERSION,
687
+ closeServer,
688
+ connectTransport,
689
+ createServer,
690
+ startStdioServer
691
+ } from "./chunk-5VZLXMO7.js";
692
+ import {
693
+ AdapterModelError,
694
+ AgentFindingSchema,
695
+ AgentPerformanceSchema,
696
+ BaseAdapter,
697
+ CLAUDE_MODELS,
698
+ CLAUDE_MODEL_ALIASES,
699
+ ClaudeAdapter,
700
+ ConsensusAlgorithmSchema,
701
+ ConsensusEngine,
702
+ ConsensusEngineConfigSchema,
703
+ ConsensusError,
704
+ ConsensusMetricsSchema,
705
+ ConsensusResultSchema,
706
+ ConsensusVoteInputSchema,
707
+ CorrelationCoefficientSchema,
708
+ CorrelationTracker,
709
+ CorrelationTrackerStatsSchema,
710
+ DEFAULT_CONSENSUS_CONFIG,
711
+ DEFAULT_HIGHER_ORDER_CONFIG,
712
+ DEFAULT_VOTING_PROTOCOL_CONFIG,
713
+ DEFAULT_WEIGHTED_VOTING_CONFIG,
714
+ FindingVoteSchema,
715
+ HigherOrderVotingConfigSchema,
716
+ HigherOrderVotingResultSchema,
717
+ HigherOrderVotingStrategy,
718
+ IndependentSubsetSchema,
719
+ NOOP_NOTIFIER,
720
+ NoAdapterError,
721
+ OWVoting,
722
+ PROVIDER_ENV_KEYS,
723
+ PairwiseVotingHistorySchema,
724
+ PersistentOutcomeStore,
725
+ PolicyConfigSchema,
726
+ PolicyError,
727
+ PolicyFirewall,
728
+ ProofOfLearningStrategy,
729
+ ProposalSchema,
730
+ ProposalStatusSchema,
731
+ REJECTION_CATEGORIES,
732
+ RateLimiter,
733
+ RejectionCategorySchema,
734
+ SdkAdapter,
735
+ SimpleMajorityStrategy,
736
+ StreamCancelledError,
737
+ StreamController,
738
+ StreamError,
739
+ SupermajorityStrategy,
740
+ UnanimousStrategy,
741
+ VOTING_THRESHOLDS,
742
+ VoteSchema,
743
+ VotingObservationSchema,
744
+ VotingProtocol,
745
+ VotingProtocolConfigSchema,
746
+ VotingRoundPhaseSchema,
747
+ VotingRoundStatusSchema,
748
+ VotingStrategyFactory,
749
+ WeightedVoting,
750
+ actorFromContext,
751
+ bufferStream,
752
+ buildFinalResult,
753
+ buildPendingResult,
754
+ buildTimeoutResult,
755
+ calculateVoteWeight,
756
+ collectRealVotes,
757
+ collectStream,
758
+ concatStreams,
759
+ createAgentPairKey,
760
+ createClaudeAdapter,
761
+ createConsensusEngine,
762
+ createCorrelationTracker,
763
+ createDefaultPolicyFirewall,
764
+ createDefaultRateLimiter,
765
+ createHigherOrderVotingStrategy,
766
+ createMcpNotifier,
767
+ createOWVoting,
768
+ createPolicyContext,
769
+ createStrategyFactory,
770
+ createStream,
771
+ createValidator,
772
+ createVotingProtocol,
773
+ createWeightedVoting,
774
+ denyMutationsWithoutModeRule,
775
+ determineFinalStatus,
776
+ emitThresholdUpdate,
777
+ emitTrendDetected,
778
+ evaluatePolicy,
779
+ extractRequestSystemPrompt,
780
+ extractSystemPrompt,
781
+ filterStream,
782
+ fromArray,
783
+ generateCacheKey,
784
+ generateProposalId,
785
+ logPolicyAudit,
786
+ logRateLimitAudit,
787
+ logToolInvocationAudit,
788
+ mergeStreams,
789
+ messagesToAnthropicFormat,
790
+ parseAgentPairKey,
791
+ reduceStream,
792
+ registerConsensusVoteTool,
793
+ requireApiKey,
794
+ resultToOutcome,
795
+ safePathsRule,
796
+ skip,
797
+ take,
798
+ takeUntil,
799
+ tapStream,
800
+ toolError,
801
+ toolSuccess,
802
+ toolSuccessStructured,
803
+ transformStream,
804
+ validateApiKeyPresence,
805
+ validateToolInput,
806
+ withTimeout
807
+ } from "./chunk-S3BKWNST.js";
808
+ import "./chunk-633WH2ML.js";
809
+ import "./chunk-I6YDS23R.js";
810
+ import {
811
+ generateMcpConfig,
812
+ getDefaultAllowedTools
813
+ } from "./chunk-KGDG6PWZ.js";
814
+ import {
815
+ GitHubProvider,
816
+ ScmError,
817
+ getTokenEnvVars,
818
+ hasToken,
819
+ resolveToken
820
+ } from "./chunk-7F6HYUIY.js";
821
+ import "./chunk-X2M7OF27.js";
799
822
  import {
800
823
  BaseCliAdapter,
801
824
  CLI_TIMEOUT_PROFILES,
@@ -811,22 +834,20 @@ import {
811
834
  GeminiCliAdapter,
812
835
  OpenCodeCliAdapter,
813
836
  SubprocessCliAdapter,
814
- VERSION,
815
- closeServer,
816
- connectTransport,
837
+ calculateBackoffDelay,
838
+ categorizeError,
817
839
  createAllAdapters,
818
840
  createCliAdapter,
819
841
  createCliDetectionCache,
820
- createServer,
821
842
  estimateTaskComplexity,
843
+ executeCliRetryLoop,
822
844
  getAvailableClis,
823
845
  getTimeoutForTask,
824
846
  getTimeoutForTaskAuto,
825
847
  isCliAvailable,
826
- sleep,
827
- startStdioServer
828
- } from "./chunk-LKSTILEE.js";
829
- import "./chunk-X2M7OF27.js";
848
+ isRetryableError,
849
+ sleep
850
+ } from "./chunk-ZBZJHXRT.js";
830
851
  import {
831
852
  AgentCapability,
832
853
  AgentError,
@@ -842,6 +863,7 @@ import {
842
863
  DEFAULT_DISTILLER_CONFIG,
843
864
  DEFAULT_PREFERENCE_ROUTER_CONFIG,
844
865
  ErrorCode,
866
+ EventBus,
845
867
  InMemoryPreferenceStore,
846
868
  ModelCapability,
847
869
  ModelError,
@@ -854,7 +876,6 @@ import {
854
876
  PreferenceRouter,
855
877
  PreferenceRouterConfigSchema,
856
878
  QueryFeatureExtractor,
857
- RULES_FILE,
858
879
  RateLimitError,
859
880
  RoutingMemoryError,
860
881
  SecurityError,
@@ -862,6 +883,7 @@ import {
862
883
  TaskOutcomeSchema,
863
884
  TimeoutError,
864
885
  ValidationError,
886
+ WeatherReportInputSchema,
865
887
  WorkflowError,
866
888
  categorizeOutcomeError,
867
889
  categorizeOutcomeErrorMessage,
@@ -874,7 +896,6 @@ import {
874
896
  detectLatencyPatterns,
875
897
  detectSuccessPatterns,
876
898
  detectTrend,
877
- ensureLearningDir,
878
899
  err,
879
900
  extractNonErrorMessage,
880
901
  formatZodError,
@@ -897,7 +918,20 @@ import {
897
918
  toError,
898
919
  unwrap,
899
920
  unwrapOr
900
- } from "./chunk-L2SHSW4T.js";
921
+ } from "./chunk-IMWYKX4H.js";
922
+ import {
923
+ RULES_FILE,
924
+ ensureLearningDir
925
+ } from "./chunk-CLYZ7FWP.js";
926
+ import {
927
+ BUILT_IN_EXPERTS,
928
+ BuiltInExpertTypeSchema,
929
+ EXPERT_TYPE_TO_ROLE,
930
+ ExpertConfigSchema as ExpertConfigSchema2,
931
+ ModelPreferenceSchema,
932
+ safeValidateExpertConfig,
933
+ validateExpertConfig
934
+ } from "./chunk-POBO4G2P.js";
901
935
  import "./chunk-UP2VWCW5.js";
902
936
 
903
937
  // src/adapters/factory.ts
@@ -1430,7 +1464,7 @@ function getStatusCode(error) {
1430
1464
  }
1431
1465
  return void 0;
1432
1466
  }
1433
- function isRetryableError(error) {
1467
+ function isRetryableError2(error) {
1434
1468
  if (error === null || error === void 0) {
1435
1469
  return false;
1436
1470
  }
@@ -1472,7 +1506,7 @@ function mergeConfig(config) {
1472
1506
  }
1473
1507
  async function withRetry(operation, options = {}) {
1474
1508
  const config = mergeConfig(options.config ?? {});
1475
- const isRetryable = options.isRetryable ?? isRetryableError;
1509
+ const isRetryable = options.isRetryable ?? isRetryableError2;
1476
1510
  const onRetry = options.onRetry;
1477
1511
  const maxAttempts = config.maxRetries + 1;
1478
1512
  let lastError;
@@ -2179,14 +2213,6 @@ var OllamaAdapter = class extends BaseAdapter {
2179
2213
  controller.error(this.transformError(error));
2180
2214
  }
2181
2215
  }
2182
- extractSystemPrompt(request) {
2183
- if (request.systemPrompt !== void 0 && request.systemPrompt !== "")
2184
- return request.systemPrompt;
2185
- const sys = request.messages.find((m) => m.role === "system");
2186
- if (sys === void 0) return void 0;
2187
- if (typeof sys.content === "string") return sys.content;
2188
- return sys.content.filter((b) => b.type === "text").map((b) => b.text).join("\n");
2189
- }
2190
2216
  buildOptions(request) {
2191
2217
  const options = {
2192
2218
  num_predict: request.maxTokens ?? DEFAULT_MAX_TOKENS2
@@ -2204,7 +2230,7 @@ var OllamaAdapter = class extends BaseAdapter {
2204
2230
  }
2205
2231
  buildRequestParams(request) {
2206
2232
  const messages = request.messages.filter((m) => m.role !== "system").map(mapMessage2);
2207
- const systemPrompt = this.extractSystemPrompt(request);
2233
+ const systemPrompt = extractRequestSystemPrompt(request);
2208
2234
  if (systemPrompt !== void 0) messages.unshift({ role: "system", content: systemPrompt });
2209
2235
  const params = {
2210
2236
  model: this.modelId,
@@ -2484,29 +2510,13 @@ var GeminiAdapter = class extends BaseAdapter {
2484
2510
  controller.error(this.transformError(error));
2485
2511
  }
2486
2512
  }
2487
- /**
2488
- * Extracts system prompt from request.
2489
- */
2490
- extractSystemPrompt(request) {
2491
- if (request.systemPrompt !== void 0 && request.systemPrompt !== "") {
2492
- return request.systemPrompt;
2493
- }
2494
- const systemMessage = request.messages.find((m) => m.role === "system");
2495
- if (systemMessage === void 0) {
2496
- return void 0;
2497
- }
2498
- if (typeof systemMessage.content === "string") {
2499
- return systemMessage.content;
2500
- }
2501
- return systemMessage.content.filter((b) => b.type === "text").map((b) => b.text).join("\n");
2502
- }
2503
2513
  /**
2504
2514
  * Builds generation config from request parameters.
2505
2515
  */
2506
2516
  buildGenerationConfig(request) {
2507
2517
  const config = {};
2508
2518
  config.maxOutputTokens = request.maxTokens ?? DEFAULT_MAX_TOKENS3;
2509
- const systemPrompt = this.extractSystemPrompt(request);
2519
+ const systemPrompt = extractRequestSystemPrompt(request);
2510
2520
  if (systemPrompt !== void 0) config.systemInstruction = systemPrompt;
2511
2521
  if (request.temperature !== void 0) config.temperature = request.temperature;
2512
2522
  if (request.stop !== void 0 && request.stop.length > 0) config.stopSequences = request.stop;
@@ -2590,7 +2600,7 @@ function createGeminiAdapter(config) {
2590
2600
  }
2591
2601
 
2592
2602
  // src/context/token-counter.ts
2593
- import Anthropic2 from "@anthropic-ai/sdk";
2603
+ import Anthropic from "@anthropic-ai/sdk";
2594
2604
  import { GoogleGenAI as GoogleGenAI2 } from "@google/genai";
2595
2605
  import { encoding_for_model } from "tiktoken";
2596
2606
 
@@ -2630,56 +2640,6 @@ var TIKTOKEN_MODEL_MAP = {
2630
2640
  "o1-preview": "o1"
2631
2641
  };
2632
2642
 
2633
- // src/context/token-counter-helpers.ts
2634
- import "@anthropic-ai/sdk";
2635
- function generateCacheKey(content, provider, model) {
2636
- const contentStr = typeof content === "string" ? content : JSON.stringify(content);
2637
- return `${provider}:${model ?? "default"}:${contentStr}`;
2638
- }
2639
- function messagesToAnthropicFormat(messages) {
2640
- return messages.filter((m) => m.role !== "system").map((m) => {
2641
- const role = m.role === "user" ? "user" : "assistant";
2642
- if (typeof m.content === "string") {
2643
- return { role, content: m.content };
2644
- }
2645
- const content = m.content.map((block) => {
2646
- if (block.type === "text") {
2647
- return { type: "text", text: block.text };
2648
- }
2649
- if (block.type === "tool_use") {
2650
- return {
2651
- type: "tool_use",
2652
- id: block.id,
2653
- name: block.name,
2654
- input: block.input
2655
- };
2656
- }
2657
- if (block.type === "tool_result") {
2658
- return {
2659
- type: "tool_result",
2660
- tool_use_id: block.tool_use_id,
2661
- content: block.content
2662
- };
2663
- }
2664
- return {
2665
- type: "image",
2666
- source: block.source
2667
- };
2668
- });
2669
- return { role, content };
2670
- });
2671
- }
2672
- function extractSystemPrompt(messages) {
2673
- const systemMsg = messages.find((m) => m.role === "system");
2674
- if (systemMsg === void 0) {
2675
- return void 0;
2676
- }
2677
- if (typeof systemMsg.content === "string") {
2678
- return systemMsg.content;
2679
- }
2680
- return systemMsg.content.filter((b) => b.type === "text").map((b) => b.text).join("\n");
2681
- }
2682
-
2683
2643
  // src/context/token-counter.ts
2684
2644
  var TokenCounter = class {
2685
2645
  anthropicClient;
@@ -2699,7 +2659,7 @@ var TokenCounter = class {
2699
2659
  this.cacheTtlMs = config.cacheTtlMs ?? DEFAULT_CACHE_TTL_MS;
2700
2660
  this.cache = /* @__PURE__ */ new Map();
2701
2661
  if (config.anthropicApiKey !== void 0 && config.anthropicApiKey !== "") {
2702
- this.anthropicClient = new Anthropic2({ apiKey: config.anthropicApiKey });
2662
+ this.anthropicClient = new Anthropic({ apiKey: config.anthropicApiKey });
2703
2663
  }
2704
2664
  if (config.googleApiKey !== void 0 && config.googleApiKey !== "") {
2705
2665
  this.geminiClient = new GoogleGenAI2({ apiKey: config.googleApiKey });
@@ -3403,10 +3363,10 @@ var RulesSnapshotSchema = z4.object({
3403
3363
  var PersistentStrategyDistiller = class extends StrategyDistiller {
3404
3364
  filePath;
3405
3365
  persistLogger;
3406
- constructor(outcomeStore, persistConfig, logger5, distillerConfig) {
3407
- super(outcomeStore, logger5, distillerConfig);
3366
+ constructor(outcomeStore, persistConfig, logger8, distillerConfig) {
3367
+ super(outcomeStore, logger8, distillerConfig);
3408
3368
  this.filePath = persistConfig?.filePath ?? RULES_FILE;
3409
- this.persistLogger = logger5 ?? createLogger({ component: "PersistentStrategyDistiller" });
3369
+ this.persistLogger = logger8 ?? createLogger({ component: "PersistentStrategyDistiller" });
3410
3370
  const dataDir = persistConfig?.dataDir;
3411
3371
  ensureLearningDir(dataDir);
3412
3372
  this.hydrate();
@@ -3482,7 +3442,7 @@ var PersistentStrategyDistiller = class extends StrategyDistiller {
3482
3442
  }
3483
3443
  };
3484
3444
  registerPersistentDistillerFactory(
3485
- (outcomeStore, logger5) => new PersistentStrategyDistiller(outcomeStore, void 0, logger5)
3445
+ (outcomeStore, logger8) => new PersistentStrategyDistiller(outcomeStore, void 0, logger8)
3486
3446
  );
3487
3447
 
3488
3448
  // src/learning/ab-test-tracker.ts
@@ -5180,6 +5140,131 @@ var ConsensusPlanConfigSchema = z14.object({
5180
5140
  // src/orchestration/consensus-plan.ts
5181
5141
  var moduleLogger2 = createLogger({ component: "consensus-plan" });
5182
5142
 
5143
+ // src/agents/observability/orchestration-observer-types.ts
5144
+ import { z as z15 } from "zod";
5145
+ var AgentStateSchema = z15.enum(["idle", "thinking", "executing", "waiting", "error"]);
5146
+ var OrchestrationObserverConfigSchema = z15.object({
5147
+ /** Maximum routing decisions to retain in history */
5148
+ maxRoutingHistory: z15.number().positive().optional().default(100),
5149
+ /** Maximum session metrics to retain */
5150
+ maxSessionHistory: z15.number().positive().optional().default(50),
5151
+ /** Metrics update interval in ms */
5152
+ metricsUpdateIntervalMs: z15.number().positive().optional().default(5e3),
5153
+ /** Enable detailed event logging */
5154
+ verboseLogging: z15.boolean().optional().default(false),
5155
+ /** Token cost rates per model (USD per 1K tokens) */
5156
+ tokenCostRates: z15.record(z15.string(), z15.number().nonnegative()).optional().default({
5157
+ claude: 0.015,
5158
+ gemini: 1e-3,
5159
+ codex: 0.01
5160
+ })
5161
+ });
5162
+
5163
+ // src/agents/observability/orchestration-observer-helpers.ts
5164
+ function extractStringField(payload, field) {
5165
+ const value = payload[field];
5166
+ return typeof value === "string" ? value : "";
5167
+ }
5168
+ function extractNumberField(payload, field, defaultValue = 0) {
5169
+ const value = payload[field];
5170
+ return typeof value === "number" ? value : defaultValue;
5171
+ }
5172
+ function extractBooleanField(payload, field) {
5173
+ return payload[field] === true;
5174
+ }
5175
+ function extractStringArrayField(payload, field) {
5176
+ const value = payload[field];
5177
+ return Array.isArray(value) ? value : [];
5178
+ }
5179
+ function extractSessionId(event, payload) {
5180
+ if (event.sessionId !== void 0 && event.sessionId !== "") {
5181
+ return event.sessionId;
5182
+ }
5183
+ return extractStringField(payload, "sessionId");
5184
+ }
5185
+ function createInitialSessionMetrics(sessionId) {
5186
+ return {
5187
+ sessionId,
5188
+ startedAt: getTimeProvider().nowIso(),
5189
+ durationMs: 0,
5190
+ taskCount: 0,
5191
+ successCount: 0,
5192
+ failureCount: 0,
5193
+ tokenUsage: createInitialTokenUsage(),
5194
+ costMetrics: createInitialCostMetrics(),
5195
+ routingDecisions: 0,
5196
+ eventsProcessed: 0
5197
+ };
5198
+ }
5199
+ function createInitialTokenUsage() {
5200
+ return {
5201
+ inputTokens: 0,
5202
+ outputTokens: 0,
5203
+ totalTokens: 0
5204
+ };
5205
+ }
5206
+ function createInitialCostMetrics() {
5207
+ return {
5208
+ totalCostUsd: 0,
5209
+ costPerModel: /* @__PURE__ */ new Map()
5210
+ };
5211
+ }
5212
+ function createTrackedAgent(agentId, state, role = "unknown", currentTask) {
5213
+ return {
5214
+ id: agentId,
5215
+ role,
5216
+ state,
5217
+ currentTask,
5218
+ lastUpdated: getTimeProvider().nowIso(),
5219
+ taskCount: 0,
5220
+ errorCount: 0
5221
+ };
5222
+ }
5223
+ function calculateRoutingDistribution(routingHistory) {
5224
+ const distribution = { claude: 0, gemini: 0, codex: 0, opencode: 0 };
5225
+ for (const decision of routingHistory) {
5226
+ distribution[decision.selectedCli]++;
5227
+ }
5228
+ return distribution;
5229
+ }
5230
+ function calculateMetricsTotals(sessionMetrics) {
5231
+ let totalTokens = 0;
5232
+ let totalCost = 0;
5233
+ for (const metrics of sessionMetrics) {
5234
+ totalTokens += metrics.tokenUsage.totalTokens;
5235
+ totalCost += metrics.costMetrics.totalCostUsd;
5236
+ }
5237
+ return { totalTokens, totalCost };
5238
+ }
5239
+ function countActiveSessions(sessionMetrics) {
5240
+ let count = 0;
5241
+ for (const metrics of sessionMetrics) {
5242
+ if (metrics.completedAt === void 0) {
5243
+ count++;
5244
+ }
5245
+ }
5246
+ return count;
5247
+ }
5248
+ function findActiveSession(sessionMetrics) {
5249
+ for (const metrics of sessionMetrics) {
5250
+ if (metrics.completedAt === void 0) {
5251
+ return metrics;
5252
+ }
5253
+ }
5254
+ return void 0;
5255
+ }
5256
+ function identifySessionsToRemove(sessions, maxSessions) {
5257
+ if (sessions.length <= maxSessions) {
5258
+ return [];
5259
+ }
5260
+ const sorted = sessions.sort((a, b) => a[1].startedAt.localeCompare(b[1].startedAt));
5261
+ const toRemove = sorted.slice(0, sessions.length - maxSessions);
5262
+ return toRemove.map(([sessionId]) => sessionId);
5263
+ }
5264
+ function calculateTokenCost(tokens, ratePerThousand) {
5265
+ return tokens.totalTokens / 1e3 * ratePerThousand;
5266
+ }
5267
+
5183
5268
  // src/pipeline/v1-adapters.ts
5184
5269
  import { randomUUID } from "crypto";
5185
5270
  function analysisToTaskContract(description, analysis) {
@@ -5393,68 +5478,132 @@ function normalizeCli(cli) {
5393
5478
  }
5394
5479
 
5395
5480
  // src/pipeline/trace-schema.ts
5396
- import { z as z15 } from "zod";
5397
- var ExecutionTraceEntrySchema = z15.object({
5481
+ import { z as z16 } from "zod";
5482
+ var ExecutionTraceEntrySchema = z16.object({
5398
5483
  /** Unix timestamp (ms). */
5399
- timestamp: z15.number(),
5484
+ timestamp: z16.number(),
5400
5485
  /** Run identifier (typically TaskContract.id). */
5401
- runId: z15.string().min(1),
5486
+ runId: z16.string().min(1),
5402
5487
  /** Pipeline event type that produced this trace entry. */
5403
- eventType: z15.string().min(1),
5488
+ eventType: z16.string().min(1),
5404
5489
  /** Execution ID for pipeline correlation. */
5405
- executionId: z15.string().optional(),
5490
+ executionId: z16.string().optional(),
5406
5491
  /** Graph node or stage that produced this event. */
5407
- nodeId: z15.string().optional(),
5492
+ nodeId: z16.string().optional(),
5408
5493
  /** Agent that executed this step. */
5409
- agentId: z15.string().optional(),
5494
+ agentId: z16.string().optional(),
5410
5495
  /** Model used for this step. */
5411
- modelId: z15.string().optional(),
5496
+ modelId: z16.string().optional(),
5412
5497
  /** Agent role (e.g., code_expert, security_expert). */
5413
- role: z15.string().optional(),
5498
+ role: z16.string().optional(),
5414
5499
  /** Duration in milliseconds. */
5415
- durationMs: z15.number().optional(),
5500
+ durationMs: z16.number().optional(),
5416
5501
  /** Human-readable model selection reasoning. */
5417
- reasoning: z15.string().optional(),
5502
+ reasoning: z16.string().optional(),
5418
5503
  /** Routing decision path (stage:result pairs). */
5419
- decisionPath: z15.array(z15.string()).optional(),
5504
+ decisionPath: z16.array(z16.string()).optional(),
5420
5505
  /** Error classification. */
5421
- errorTaxonomy: z15.enum(["retriable", "fatal"]).optional(),
5506
+ errorTaxonomy: z16.enum(["retriable", "fatal"]).optional(),
5422
5507
  /** Error message if this is a failure event. */
5423
- error: z15.string().optional(),
5508
+ error: z16.string().optional(),
5424
5509
  /** Wave number (1-based) for wave dispatch events. */
5425
- waveNumber: z15.number().optional(),
5510
+ waveNumber: z16.number().optional(),
5426
5511
  /** Total waves in the dispatch plan. */
5427
- totalWaves: z15.number().optional(),
5512
+ totalWaves: z16.number().optional(),
5428
5513
  /** Number of workers in this wave. */
5429
- workerCount: z15.number().optional()
5514
+ workerCount: z16.number().optional()
5430
5515
  });
5431
5516
 
5432
- // src/scm/factory.ts
5433
- async function createScmProvider(config) {
5434
- const platform = config.platform ?? "github";
5435
- const explicitToken = config.token?.token;
5436
- const explicitEnvVar = config.token?.envVar;
5437
- const tokenResult = await resolveToken({
5438
- platform,
5439
- ...explicitToken !== void 0 ? { token: explicitToken } : {},
5440
- ...explicitEnvVar !== void 0 ? { envVar: explicitEnvVar } : {}
5441
- });
5442
- if (!tokenResult.ok) {
5443
- }
5444
- switch (platform) {
5445
- case "github":
5446
- return ok(new GitHubProvider(config.repo));
5447
- case "gitlab":
5448
- return err(new ScmError("GitLab provider not yet implemented", "gitlab"));
5449
- case "gitea":
5450
- return err(new ScmError("Gitea provider not yet implemented", "gitea"));
5451
- default:
5452
- return err(new ScmError(`Unsupported platform: ${String(platform)}`, platform));
5517
+ // src/security/quality-gate-types.ts
5518
+ import { z as z17 } from "zod";
5519
+ var PipelineStageSchema = z17.enum([
5520
+ "research",
5521
+ "plan",
5522
+ "vote",
5523
+ "implement",
5524
+ "scan",
5525
+ "qa",
5526
+ "ship"
5527
+ ]);
5528
+ var GateVerdictSchema = z17.enum(["pass", "fail", "skip"]);
5529
+ var GateCheckResultSchema = z17.object({
5530
+ /** Name of the check (e.g., 'tests_pass', 'lint_clean'). */
5531
+ name: z17.string().min(1),
5532
+ /** Pass/fail/skip verdict. */
5533
+ verdict: GateVerdictSchema,
5534
+ /** Human-readable details. */
5535
+ details: z17.string().max(500),
5536
+ /** Duration of the check in ms. */
5537
+ durationMs: z17.number().nonnegative().optional()
5538
+ });
5539
+
5540
+ // src/pipeline/quality-pipeline.ts
5541
+ var logger5 = createLogger({ component: "quality-pipeline" });
5542
+
5543
+ // src/pipeline/research-trigger.ts
5544
+ var logger6 = createLogger({ component: "research-trigger" });
5545
+ var DEFAULT_QUALITY_THRESHOLD = 7;
5546
+ var DEFAULT_MAX_TRIGGERS = 3;
5547
+ function parseDiscoveries(text) {
5548
+ const items = [];
5549
+ const lines = text.split("\n");
5550
+ for (const line of lines) {
5551
+ const match = /(?:quality|score)[:\s]*(\d+(?:\.\d+)?)/i.exec(line);
5552
+ if (match !== null) {
5553
+ const quality = parseFloat(match[1]);
5554
+ const title = line.replace(match[0], "").replace(/\(\s*\)/g, "").replace(/^[-*•\s]+/, "").trim();
5555
+ if (title.length > 5) {
5556
+ items.push({ title, quality, source: "research_discover" });
5557
+ }
5558
+ }
5453
5559
  }
5560
+ return items;
5454
5561
  }
5455
- function createGitHubProvider(repo) {
5456
- return new GitHubProvider(repo);
5562
+ function titleToId(title) {
5563
+ return `research-${title.toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 50)}`;
5564
+ }
5565
+ async function checkForResearchTriggers(config = {}) {
5566
+ const threshold = config.qualityThreshold ?? DEFAULT_QUALITY_THRESHOLD;
5567
+ const maxTriggers = config.maxTriggers ?? DEFAULT_MAX_TRIGGERS;
5568
+ const existing = config.existingTaskIds ?? /* @__PURE__ */ new Set();
5569
+ const topic = config.topic ?? "multi-agent orchestration";
5570
+ try {
5571
+ const result = await executeExpert(
5572
+ "research",
5573
+ `Use research_discover to find recent papers and repos about "${topic}". For each result, include: title, quality score (1-10), and source URL.`
5574
+ );
5575
+ if (!result.success) {
5576
+ logger6.debug("Research trigger: expert unavailable", { error: result.error });
5577
+ return [];
5578
+ }
5579
+ const discoveries = parseDiscoveries(result.text);
5580
+ const qualified = discoveries.filter((d) => d.quality >= threshold).filter((d) => !existing.has(titleToId(d.title)));
5581
+ const tasks = qualified.slice(0, maxTriggers).map((d) => ({
5582
+ id: titleToId(d.title),
5583
+ title: `Assess research: ${d.title}`,
5584
+ description: `Auto-triggered by research_discover (quality: ${String(d.quality)}/10).
5585
+ Source: ${d.source}
5586
+
5587
+ Assess this research for applicability to nexus-agents.`,
5588
+ assignedTo: "researcher",
5589
+ status: "pending"
5590
+ }));
5591
+ if (tasks.length > 0) {
5592
+ logger6.info("Research triggers created", {
5593
+ total: discoveries.length,
5594
+ qualified: qualified.length,
5595
+ triggered: tasks.length
5596
+ });
5597
+ }
5598
+ return tasks;
5599
+ } catch (error) {
5600
+ logger6.debug("Research trigger failed gracefully", { error: String(error) });
5601
+ return [];
5602
+ }
5457
5603
  }
5604
+
5605
+ // src/replay/replay-executor.ts
5606
+ var logger7 = createLogger({ component: "ReplayExecutor" });
5458
5607
  export {
5459
5608
  ALLOWED_COMMANDS,
5460
5609
  ARTIFACT_TYPES,
@@ -5474,7 +5623,6 @@ export {
5474
5623
  AgentRoleSchema3 as AgentRoleSchema,
5475
5624
  AgentRunnerError,
5476
5625
  AgentStateMachine,
5477
- AgentStateSchema,
5478
5626
  StepExecutor as AgentStepExecutor,
5479
5627
  AnalysisError,
5480
5628
  AppConfigSchema,
@@ -5643,6 +5791,7 @@ export {
5643
5791
  ExpertRegistry,
5644
5792
  ExplorationEventSchema,
5645
5793
  ExplorationEventTypeSchema,
5794
+ ExtractSymbolsInputSchema,
5646
5795
  FALLBACK_SCANNER_DATA,
5647
5796
  FactoryError,
5648
5797
  FailurePatternSchema,
@@ -5687,8 +5836,8 @@ export {
5687
5836
  InjectionFlagSchema,
5688
5837
  InputDefinitionSchema2 as InputDefinitionSchema,
5689
5838
  InputTypeSchema,
5690
- SwarmObserverConfigSchema2 as InteractionObserverConfigSchema,
5691
- SwarmObserver2 as InteractionSwarmObserver,
5839
+ SwarmObserverConfigSchema as InteractionObserverConfigSchema,
5840
+ SwarmObserver as InteractionSwarmObserver,
5692
5841
  IssueReferenceSchema,
5693
5842
  IssueTriageInputSchema,
5694
5843
  JsonDashboardRenderer,
@@ -5703,6 +5852,9 @@ export {
5703
5852
  MIN_EXPERTS_FOR_PATTERN,
5704
5853
  MODEL_CAPABILITIES,
5705
5854
  RateLimiter as McpRateLimiter,
5855
+ MemoryQueryInputSchema,
5856
+ MemoryStatsInputSchema,
5857
+ MemoryWriteInputSchema,
5706
5858
  ModelCapability,
5707
5859
  ModelConfigSchema,
5708
5860
  ModelError,
@@ -5718,15 +5870,12 @@ export {
5718
5870
  OPENAI_MODELS,
5719
5871
  OPENAI_MODEL_ALIASES,
5720
5872
  OWVoting,
5721
- ObserverTopics,
5722
5873
  OllamaAdapter,
5723
5874
  OpenAIAdapter,
5724
5875
  OpenCodeCliAdapter,
5725
5876
  OrchestrateInputSchema,
5726
5877
  OrchestrateOutputSchema,
5727
5878
  OrchestrationError,
5728
- OrchestrationObserver,
5729
- OrchestrationObserverConfigSchema,
5730
5879
  OrchestrationUnavailableError,
5731
5880
  Orchestrator,
5732
5881
  OrchestratorError,
@@ -5773,6 +5922,7 @@ export {
5773
5922
  PruningStrategy,
5774
5923
  QualitySignalsSchema,
5775
5924
  QueryFeatureExtractor,
5925
+ QueryTraceInputSchema,
5776
5926
  REJECTION_CATEGORIES,
5777
5927
  REPO_COMPLEXITY,
5778
5928
  RISK_AWARENESS_CATEGORY,
@@ -5785,18 +5935,20 @@ export {
5785
5935
  ReasoningStepTypeSchema,
5786
5936
  ReasoningTreeSchema,
5787
5937
  RegistryError,
5938
+ RegistryImportInputSchema,
5788
5939
  RejectionCategorySchema,
5789
5940
  RepoAnalyzeInputSchema,
5790
5941
  RepoSecurityPlanInputSchema,
5791
5942
  ReportGenerationError,
5792
5943
  ReportGenerator,
5793
5944
  ReputationCache,
5794
- RestApiConfigSchema,
5795
- RestApiServer,
5796
- DelegateRequestSchema as RestDelegateRequestSchema,
5797
- ExpertRequestSchema as RestExpertRequestSchema,
5798
- OrchestrateRequestSchema as RestOrchestrateRequestSchema,
5799
- WorkflowRequestSchema as RestWorkflowRequestSchema,
5945
+ ResearchAddInputSchema,
5946
+ ResearchAddSourceInputSchema,
5947
+ ResearchAnalyzeInputSchema,
5948
+ ResearchCatalogReviewInputSchema,
5949
+ ResearchDiscoverInputSchema,
5950
+ ResearchQueryInputSchema,
5951
+ ResearchSynthesizeInputSchema,
5800
5952
  ResultAggregator,
5801
5953
  RetryExhaustedError,
5802
5954
  ReviewProtocol,
@@ -5830,6 +5982,7 @@ export {
5830
5982
  ScmError,
5831
5983
  ScoreBreakdownSchema,
5832
5984
  SdkAdapter,
5985
+ SearchCodebaseInputSchema,
5833
5986
  SecurityConfigSchema,
5834
5987
  SecurityError,
5835
5988
  SecurityErrorCodeSchema,
@@ -5878,8 +6031,6 @@ export {
5878
6031
  SubtaskTypeSchema,
5879
6032
  SupermajorityStrategy,
5880
6033
  SuspiciousSignalSchema,
5881
- SwarmObserver,
5882
- SwarmObserverConfigSchema,
5883
6034
  SynthesizedResultSchema,
5884
6035
  TASK_STATUSES,
5885
6036
  TASK_TYPE_EXPERTS,
@@ -5939,6 +6090,7 @@ export {
5939
6090
  VulnerabilitySchema,
5940
6091
  VulnerabilitySeveritySchema,
5941
6092
  WaveScheduler,
6093
+ WeatherReportInputSchema,
5942
6094
  WeightedVoting,
5943
6095
  WorkflowConfigSchema,
5944
6096
  WorkflowDefinitionSchema2 as WorkflowDefinitionSchema,
@@ -5988,12 +6140,17 @@ export {
5988
6140
  cancelExecution,
5989
6141
  categorizeOutcomeError,
5990
6142
  categorizeOutcomeErrorMessage,
6143
+ checkForResearchTriggers,
5991
6144
  checkPermissionBoundary,
5992
6145
  checkPipelinePolicy,
6146
+ checkpointToResult,
5993
6147
  chunkByDirectory,
5994
6148
  classifyTrust,
6149
+ cleanupCheckpoint,
5995
6150
  clearRegistryCache,
5996
6151
  clearTemplateCache,
6152
+ calculateBackoffDelay as cliCalculateBackoffDelay,
6153
+ categorizeError as cliCategorizeError,
5997
6154
  closeServer,
5998
6155
  collectRealVotes,
5999
6156
  collectStream,
@@ -6008,6 +6165,7 @@ export {
6008
6165
  countActiveSessions,
6009
6166
  createAbTestTracker,
6010
6167
  createAgentPairKey,
6168
+ createAgentStages,
6011
6169
  createStepExecutor as createAgentStepExecutor,
6012
6170
  createAllAdapters,
6013
6171
  createArchitectureExpert,
@@ -6063,7 +6221,7 @@ export {
6063
6221
  createInitializedWorkflowEngine,
6064
6222
  createInstancePrompt,
6065
6223
  createInteractionGraph,
6066
- createSwarmObserver2 as createInteractionSwarmObserver,
6224
+ createSwarmObserver as createInteractionSwarmObserver,
6067
6225
  createIsolatedRegistry,
6068
6226
  createLogger,
6069
6227
  createMcpLogger,
@@ -6073,7 +6231,6 @@ export {
6073
6231
  createOWVoting,
6074
6232
  createOllamaAdapter,
6075
6233
  createOpenAIAdapter,
6076
- createOrchestrationObserver,
6077
6234
  createOrchestrator,
6078
6235
  createOrchestratorFactory,
6079
6236
  createOutcomeFeedbackCollector,
@@ -6088,7 +6245,6 @@ export {
6088
6245
  createRateLimiter,
6089
6246
  createRealWorkflowEngine,
6090
6247
  createReportGenerator,
6091
- createRestApiServer,
6092
6248
  createResultAggregator,
6093
6249
  createRetryPrompt,
6094
6250
  createRoutingDecision,
@@ -6110,7 +6266,6 @@ export {
6110
6266
  createStrategyFactory,
6111
6267
  createStream,
6112
6268
  createSummaryPrompt,
6113
- createSwarmObserver,
6114
6269
  createTaskOutcome,
6115
6270
  createTaskQueue,
6116
6271
  createTemplateRegistry,
@@ -6165,7 +6320,9 @@ export {
6165
6320
  evaluatePolicy,
6166
6321
  evaluatePredictions,
6167
6322
  evaluatePolicy3 as evaluateSecurityPolicy,
6323
+ executeCliRetryLoop,
6168
6324
  executeDelegatePipeline,
6325
+ executeExpert,
6169
6326
  executeGraph,
6170
6327
  executeHarness,
6171
6328
  executeInDocker,
@@ -6194,6 +6351,7 @@ export {
6194
6351
  filterStream,
6195
6352
  findActiveSession,
6196
6353
  findMissingDependencies,
6354
+ flushPipelineMemory,
6197
6355
  formatCompileError,
6198
6356
  formatContextForPrompt,
6199
6357
  formatValidationResult,
@@ -6264,15 +6422,17 @@ export {
6264
6422
  initializeEventBusBridge,
6265
6423
  isCancelled,
6266
6424
  isCliAvailable,
6425
+ isRetryableError as isCliRetryableError,
6267
6426
  isErr,
6268
6427
  isMutatingAction,
6269
6428
  isOk,
6270
6429
  isReadOnlyAction,
6271
- isRetryableError,
6430
+ isRetryableError2 as isRetryableError,
6272
6431
  isCliAvailable2 as isSWEBenchCliAvailable,
6273
6432
  isStepCompleted,
6274
6433
  isZodError,
6275
6434
  listInstances,
6435
+ loadCheckpointState,
6276
6436
  loadDataset,
6277
6437
  loadTemplateFile,
6278
6438
  loadTemplatesFromDirectory,
@@ -6321,19 +6481,34 @@ export {
6321
6481
  registerExecuteExpertTool,
6322
6482
  registerExecuteSpecTool,
6323
6483
  registerExpertsResource,
6484
+ registerExtractSymbolsTool,
6324
6485
  registerIssueTriageTool,
6325
6486
  registerListExpertsTool,
6326
6487
  registerListWorkflowsTool,
6488
+ registerMemoryQueryTool,
6489
+ registerMemoryStatsTool,
6490
+ registerMemoryWriteTool,
6327
6491
  registerModelsResource,
6328
6492
  registerOrchestrateTool,
6329
6493
  registerPrompts,
6494
+ registerQueryTraceTool,
6495
+ registerRegistryImportTool,
6330
6496
  registerRepoAnalyzeTool,
6331
6497
  registerRepoSecurityPlanTool,
6498
+ registerResearchAddSourceTool,
6499
+ registerResearchAddTool,
6500
+ registerResearchAnalyzeTool,
6501
+ registerResearchCatalogReviewTool,
6502
+ registerResearchDiscoverTool,
6503
+ registerResearchQueryTool,
6332
6504
  registerResearchResource,
6505
+ registerResearchSynthesizeTool,
6333
6506
  registerResources,
6334
6507
  registerRunGraphWorkflowTool,
6335
6508
  registerRunWorkflowTool,
6509
+ registerSearchCodebaseTool,
6336
6510
  registerTools,
6511
+ registerWeatherReportTool,
6337
6512
  requiresCitation,
6338
6513
  requiresCorroboration,
6339
6514
  resetAvailabilityCache,
@@ -6352,6 +6527,7 @@ export {
6352
6527
  runAgentOnInstance,
6353
6528
  runBenchmarkInstances,
6354
6529
  runBenchmarkParallel,
6530
+ runDevPipeline,
6355
6531
  runPreconditions,
6356
6532
  runSingleInstance,
6357
6533
  runTests,
@@ -6360,6 +6536,7 @@ export {
6360
6536
  safeValidateExpertConfig,
6361
6537
  sanitize,
6362
6538
  sanitizeInput,
6539
+ saveStageCheckpoint,
6363
6540
  scoreByHybrid,
6364
6541
  scoreByImportance,
6365
6542
  scoreByRecency,