nexus-agents 2.72.0 → 2.72.1
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/dist/{chunk-2JMUX5UA.js → chunk-C3JGKBL2.js} +2 -2
- package/dist/{chunk-3HR6UJ2E.js → chunk-J4VR2WNI.js} +731 -2
- package/dist/chunk-J4VR2WNI.js.map +1 -0
- package/dist/{chunk-XHVDKY3X.js → chunk-YOREAPF6.js} +3 -3
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +530 -51
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/{setup-command-DVEBFKR2.js → setup-command-BWUFMZ7U.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-3HR6UJ2E.js.map +0 -1
- /package/dist/{chunk-2JMUX5UA.js.map → chunk-C3JGKBL2.js.map} +0 -0
- /package/dist/{chunk-XHVDKY3X.js.map → chunk-YOREAPF6.js.map} +0 -0
- /package/dist/{setup-command-DVEBFKR2.js.map → setup-command-BWUFMZ7U.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -222,7 +222,7 @@ declare class ModelError extends NexusError {
|
|
|
222
222
|
/**
|
|
223
223
|
* Agent error for agent execution failures.
|
|
224
224
|
*/
|
|
225
|
-
declare class AgentError extends NexusError {
|
|
225
|
+
declare class AgentError$1 extends NexusError {
|
|
226
226
|
constructor(message: string, options?: Partial<Omit<NexusErrorOptions, 'code'>>);
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
@@ -524,19 +524,19 @@ interface IAgent {
|
|
|
524
524
|
* @param task - Task to execute
|
|
525
525
|
* @returns Result with TaskResult or AgentError
|
|
526
526
|
*/
|
|
527
|
-
execute(task: Task$1): Promise<Result<TaskResult, AgentError>>;
|
|
527
|
+
execute(task: Task$1): Promise<Result<TaskResult, AgentError$1>>;
|
|
528
528
|
/**
|
|
529
529
|
* Handle an inter-agent message.
|
|
530
530
|
* @param msg - Message to handle
|
|
531
531
|
* @returns Result with AgentResponse or AgentError
|
|
532
532
|
*/
|
|
533
|
-
handleMessage(msg: AgentMessage): Promise<Result<AgentResponse, AgentError>>;
|
|
533
|
+
handleMessage(msg: AgentMessage): Promise<Result<AgentResponse, AgentError$1>>;
|
|
534
534
|
/**
|
|
535
535
|
* Initialize the agent with context.
|
|
536
536
|
* @param ctx - Agent context
|
|
537
537
|
* @returns Result with void or AgentError
|
|
538
538
|
*/
|
|
539
|
-
initialize(ctx: AgentContext): Promise<Result<void, AgentError>>;
|
|
539
|
+
initialize(ctx: AgentContext): Promise<Result<void, AgentError$1>>;
|
|
540
540
|
/**
|
|
541
541
|
* Cleanup agent resources.
|
|
542
542
|
*/
|
|
@@ -7299,7 +7299,7 @@ type StateChangeCallback = (transition: StateTransition) => void;
|
|
|
7299
7299
|
/**
|
|
7300
7300
|
* Error callback for invalid transitions.
|
|
7301
7301
|
*/
|
|
7302
|
-
type TransitionErrorCallback = (currentState: AgentState$2, attemptedEvent: StateTransitionEvent, error: AgentError) => void;
|
|
7302
|
+
type TransitionErrorCallback = (currentState: AgentState$2, attemptedEvent: StateTransitionEvent, error: AgentError$1) => void;
|
|
7303
7303
|
/**
|
|
7304
7304
|
* State machine options.
|
|
7305
7305
|
*/
|
|
@@ -7376,7 +7376,7 @@ declare class AgentStateMachine {
|
|
|
7376
7376
|
* @param context - Optional context data for the transition
|
|
7377
7377
|
* @returns Result with the new state or an AgentError
|
|
7378
7378
|
*/
|
|
7379
|
-
transition(event: StateTransitionEvent, context?: Record<string, unknown>): Result<AgentState$2, AgentError>;
|
|
7379
|
+
transition(event: StateTransitionEvent, context?: Record<string, unknown>): Result<AgentState$2, AgentError$1>;
|
|
7380
7380
|
/**
|
|
7381
7381
|
* Forces a transition to the error state.
|
|
7382
7382
|
* Use for unrecoverable errors that should bypass normal transition rules.
|
|
@@ -7390,7 +7390,7 @@ declare class AgentStateMachine {
|
|
|
7390
7390
|
* @param context - Optional context data about the recovery
|
|
7391
7391
|
* @returns Result with the new state or an AgentError if recovery failed
|
|
7392
7392
|
*/
|
|
7393
|
-
recover(context?: Record<string, unknown>): Result<AgentState$2, AgentError>;
|
|
7393
|
+
recover(context?: Record<string, unknown>): Result<AgentState$2, AgentError$1>;
|
|
7394
7394
|
/**
|
|
7395
7395
|
* Resets the error count. Call after successful task completion.
|
|
7396
7396
|
*/
|
|
@@ -7944,7 +7944,7 @@ interface AggregationMetadata {
|
|
|
7944
7944
|
*/
|
|
7945
7945
|
interface ICollaborationProtocol {
|
|
7946
7946
|
readonly pattern: CollaborationConfig['pattern'];
|
|
7947
|
-
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError>>;
|
|
7947
|
+
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError$1>>;
|
|
7948
7948
|
cancel(reason: string): void;
|
|
7949
7949
|
}
|
|
7950
7950
|
/**
|
|
@@ -8619,15 +8619,15 @@ declare abstract class BaseAgent implements IAgent {
|
|
|
8619
8619
|
get state(): AgentState$2;
|
|
8620
8620
|
/** Builds the context state object for helper functions. */
|
|
8621
8621
|
private get contextState();
|
|
8622
|
-
initialize(ctx: AgentContext): Promise<Result<void, AgentError>>;
|
|
8623
|
-
execute(task: Task$1): Promise<Result<TaskResult, AgentError>>;
|
|
8624
|
-
handleMessage(msg: AgentMessage): Promise<Result<AgentResponse, AgentError>>;
|
|
8622
|
+
initialize(ctx: AgentContext): Promise<Result<void, AgentError$1>>;
|
|
8623
|
+
execute(task: Task$1): Promise<Result<TaskResult, AgentError$1>>;
|
|
8624
|
+
handleMessage(msg: AgentMessage): Promise<Result<AgentResponse, AgentError$1>>;
|
|
8625
8625
|
cleanup(): Promise<void>;
|
|
8626
8626
|
hasCapability(capability: AgentCapability): boolean;
|
|
8627
|
-
protected abstract executeTask(task: Task$1): Promise<Result<TaskResult, AgentError>>;
|
|
8627
|
+
protected abstract executeTask(task: Task$1): Promise<Result<TaskResult, AgentError$1>>;
|
|
8628
8628
|
protected abstract buildPrompt(task: Task$1): Message[];
|
|
8629
|
-
protected transformError(error: unknown, taskId: string): AgentError;
|
|
8630
|
-
protected complete(request: CompletionRequest): Promise<Result<CompletionResponse, AgentError>>;
|
|
8629
|
+
protected transformError(error: unknown, taskId: string): AgentError$1;
|
|
8630
|
+
protected complete(request: CompletionRequest): Promise<Result<CompletionResponse, AgentError$1>>;
|
|
8631
8631
|
protected addToHistory(message: Message): void;
|
|
8632
8632
|
protected getHistory(): Message[];
|
|
8633
8633
|
protected clearHistory(): void;
|
|
@@ -8663,7 +8663,7 @@ declare class SimpleAgent extends BaseAgent {
|
|
|
8663
8663
|
/**
|
|
8664
8664
|
* Execute a task by sending it to the model.
|
|
8665
8665
|
*/
|
|
8666
|
-
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError>>;
|
|
8666
|
+
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError$1>>;
|
|
8667
8667
|
/** Retry once on empty response — returns success if retry has content, error otherwise. */
|
|
8668
8668
|
private retryOnEmpty;
|
|
8669
8669
|
/**
|
|
@@ -9358,23 +9358,23 @@ declare class CollaborationSession {
|
|
|
9358
9358
|
private readonly eventListeners;
|
|
9359
9359
|
constructor(options?: CollaborationSessionOptions);
|
|
9360
9360
|
/** Starts a new collaboration session. */
|
|
9361
|
-
start(config: CollaborationConfig): Result<string, AgentError>;
|
|
9361
|
+
start(config: CollaborationConfig): Result<string, AgentError$1>;
|
|
9362
9362
|
/** Submits a result from an expert. */
|
|
9363
|
-
submitResult(expertId: string, result: TaskResult): Result<void, AgentError>;
|
|
9363
|
+
submitResult(expertId: string, result: TaskResult): Result<void, AgentError$1>;
|
|
9364
9364
|
/** Requests a review from one expert to another. */
|
|
9365
|
-
requestReview(fromExpert: string, toExpert: string, artifact: unknown): Result<void, AgentError>;
|
|
9365
|
+
requestReview(fromExpert: string, toExpert: string, artifact: unknown): Result<void, AgentError$1>;
|
|
9366
9366
|
/** Submits a review response. */
|
|
9367
|
-
submitReview(reviewerId: string, requesterId: string, approved: boolean, feedback: string): Result<void, AgentError>;
|
|
9367
|
+
submitReview(reviewerId: string, requesterId: string, approved: boolean, feedback: string): Result<void, AgentError$1>;
|
|
9368
9368
|
/** Submits a vote for consensus protocol. */
|
|
9369
|
-
vote(expertId: string, decision: 'approve' | 'reject' | 'abstain', reasoning: string): Result<void, AgentError>;
|
|
9369
|
+
vote(expertId: string, decision: 'approve' | 'reject' | 'abstain', reasoning: string): Result<void, AgentError$1>;
|
|
9370
9370
|
getStatus(): SessionState | null;
|
|
9371
9371
|
getSessionId(): string | null;
|
|
9372
9372
|
/** Marks an expert as failed. */
|
|
9373
|
-
markExpertFailed(expertId: string, _error: string): Result<void, AgentError>;
|
|
9373
|
+
markExpertFailed(expertId: string, _error: string): Result<void, AgentError$1>;
|
|
9374
9374
|
/** Gets task assignments for experts based on pattern. */
|
|
9375
9375
|
getTaskAssignments(): TaskAssignmentMessage[];
|
|
9376
9376
|
/** Finalizes the session and returns aggregated result. */
|
|
9377
|
-
finalize(): Result<CollaborationResult, AgentError>;
|
|
9377
|
+
finalize(): Result<CollaborationResult, AgentError$1>;
|
|
9378
9378
|
cancel(reason: string): void;
|
|
9379
9379
|
addEventListener(listener: (event: SessionEvent) => void): void;
|
|
9380
9380
|
removeEventListener(listener: (event: SessionEvent) => void): void;
|
|
@@ -9407,7 +9407,7 @@ declare class ReviewProtocol implements ICollaborationProtocol {
|
|
|
9407
9407
|
protected readonly options: ProtocolOptions;
|
|
9408
9408
|
constructor(options?: ProtocolOptions);
|
|
9409
9409
|
cancel(reason: string): void;
|
|
9410
|
-
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError>>;
|
|
9410
|
+
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError$1>>;
|
|
9411
9411
|
private initReviewSession;
|
|
9412
9412
|
private validateAgents;
|
|
9413
9413
|
private executeAgentTask;
|
|
@@ -9433,7 +9433,7 @@ declare class ConsensusProtocol implements ICollaborationProtocol {
|
|
|
9433
9433
|
protected readonly options: ProtocolOptions;
|
|
9434
9434
|
constructor(options?: ProtocolOptions);
|
|
9435
9435
|
cancel(reason: string): void;
|
|
9436
|
-
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError>>;
|
|
9436
|
+
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError$1>>;
|
|
9437
9437
|
private validateAgents;
|
|
9438
9438
|
private executeAgentTask;
|
|
9439
9439
|
}
|
|
@@ -9458,18 +9458,18 @@ declare abstract class BaseProtocol implements ICollaborationProtocol {
|
|
|
9458
9458
|
protected session: CollaborationSession | null;
|
|
9459
9459
|
protected cancelled: boolean;
|
|
9460
9460
|
constructor(options?: ProtocolOptions);
|
|
9461
|
-
abstract execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError>>;
|
|
9461
|
+
abstract execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError$1>>;
|
|
9462
9462
|
cancel(reason: string): void;
|
|
9463
9463
|
protected createSession(): CollaborationSession;
|
|
9464
|
-
protected executeAgentTask(agent: IAgent, task: Task$1, previousResults?: TaskResult[]): Promise<Result<TaskResult, AgentError>>;
|
|
9465
|
-
protected validateAgents(config: CollaborationConfig, agents: Map<string, IAgent>): Result<void, AgentError>;
|
|
9464
|
+
protected executeAgentTask(agent: IAgent, task: Task$1, previousResults?: TaskResult[]): Promise<Result<TaskResult, AgentError$1>>;
|
|
9465
|
+
protected validateAgents(config: CollaborationConfig, agents: Map<string, IAgent>): Result<void, AgentError$1>;
|
|
9466
9466
|
}
|
|
9467
9467
|
/**
|
|
9468
9468
|
* Sequential collaboration protocol.
|
|
9469
9469
|
*/
|
|
9470
9470
|
declare class SequentialProtocol extends BaseProtocol {
|
|
9471
9471
|
readonly pattern: "sequential";
|
|
9472
|
-
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError>>;
|
|
9472
|
+
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError$1>>;
|
|
9473
9473
|
private initSession;
|
|
9474
9474
|
private checkCancelled;
|
|
9475
9475
|
private executeSequentialStep;
|
|
@@ -9479,7 +9479,7 @@ declare class SequentialProtocol extends BaseProtocol {
|
|
|
9479
9479
|
*/
|
|
9480
9480
|
declare class ParallelProtocol extends BaseProtocol {
|
|
9481
9481
|
readonly pattern: "parallel";
|
|
9482
|
-
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError>>;
|
|
9482
|
+
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError$1>>;
|
|
9483
9483
|
}
|
|
9484
9484
|
/**
|
|
9485
9485
|
* Factory for creating collaboration protocols.
|
|
@@ -9488,7 +9488,7 @@ declare class ProtocolFactory {
|
|
|
9488
9488
|
private readonly options;
|
|
9489
9489
|
constructor(options?: ProtocolOptions);
|
|
9490
9490
|
create(pattern: CollaborationConfig['pattern']): ICollaborationProtocol;
|
|
9491
|
-
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError>>;
|
|
9491
|
+
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError$1>>;
|
|
9492
9492
|
}
|
|
9493
9493
|
/**
|
|
9494
9494
|
* Creates a protocol factory.
|
|
@@ -9573,7 +9573,7 @@ declare class AdaptiveProtocolSelector {
|
|
|
9573
9573
|
* @param agents - Available agents
|
|
9574
9574
|
* @returns Collaboration result
|
|
9575
9575
|
*/
|
|
9576
|
-
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError>>;
|
|
9576
|
+
execute(config: CollaborationConfig, agents: Map<string, IAgent>): Promise<Result<CollaborationResult, AgentError$1>>;
|
|
9577
9577
|
/**
|
|
9578
9578
|
* Get recommended protocol for a task without executing.
|
|
9579
9579
|
*
|
|
@@ -9639,7 +9639,7 @@ declare class OrchestratorCollaborationHelper {
|
|
|
9639
9639
|
* @param agents - Map of available agents for collaboration
|
|
9640
9640
|
* @param originalTask - The original task being synthesized
|
|
9641
9641
|
*/
|
|
9642
|
-
collaborativeSynthesis(results: TaskResult[], agents: Map<string, IAgent>, originalTask: Task$1): Promise<Result<SynthesizedResult, AgentError>>;
|
|
9642
|
+
collaborativeSynthesis(results: TaskResult[], agents: Map<string, IAgent>, originalTask: Task$1): Promise<Result<SynthesizedResult, AgentError$1>>;
|
|
9643
9643
|
/** Build collaboration configuration for synthesis. */
|
|
9644
9644
|
private buildCollabConfig;
|
|
9645
9645
|
/** Execute collaboration protocol. */
|
|
@@ -9722,13 +9722,13 @@ declare class Orchestrator extends BaseAgent {
|
|
|
9722
9722
|
*/
|
|
9723
9723
|
setExpertAgents(agents: Map<string, IAgent>): void;
|
|
9724
9724
|
/** Execute a task by analyzing, decomposing (if needed), and coordinating. */
|
|
9725
|
-
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError>>;
|
|
9725
|
+
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError$1>>;
|
|
9726
9726
|
/** Build prompt messages for task execution. */
|
|
9727
9727
|
protected buildPrompt(task: Task$1): Message[];
|
|
9728
9728
|
/** Analyze a task to understand its complexity and requirements. */
|
|
9729
|
-
analyzeTask(task: Task$1): Promise<Result<TaskAnalysis, AgentError>>;
|
|
9729
|
+
analyzeTask(task: Task$1): Promise<Result<TaskAnalysis, AgentError$1>>;
|
|
9730
9730
|
/** Decompose a task into subtasks. */
|
|
9731
|
-
decomposeTask(task: Task$1, analysis: TaskAnalysis): Promise<Result<SubTask[], AgentError>>;
|
|
9731
|
+
decomposeTask(task: Task$1, analysis: TaskAnalysis): Promise<Result<SubTask[], AgentError$1>>;
|
|
9732
9732
|
/** Select appropriate expert agents for each subtask. */
|
|
9733
9733
|
selectExperts(subtasks: SubTask[]): ExpertAssignment[];
|
|
9734
9734
|
/**
|
|
@@ -9740,7 +9740,7 @@ declare class Orchestrator extends BaseAgent {
|
|
|
9740
9740
|
* @param results - Results to synthesize
|
|
9741
9741
|
* @param originalTask - Optional original task for context in collaborative synthesis
|
|
9742
9742
|
*/
|
|
9743
|
-
synthesizeResults(results: TaskResult[], originalTask?: Task$1): Promise<Result<SynthesizedResult, AgentError>>;
|
|
9743
|
+
synthesizeResults(results: TaskResult[], originalTask?: Task$1): Promise<Result<SynthesizedResult, AgentError$1>>;
|
|
9744
9744
|
/** Handle empty and single result edge cases. */
|
|
9745
9745
|
private handleSynthesisEdgeCases;
|
|
9746
9746
|
/** Try collaborative synthesis if conditions are met. */
|
|
@@ -10426,7 +10426,7 @@ declare class CodeExpert extends BaseAgent {
|
|
|
10426
10426
|
/**
|
|
10427
10427
|
* Execute a code-related task.
|
|
10428
10428
|
*/
|
|
10429
|
-
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError>>;
|
|
10429
|
+
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError$1>>;
|
|
10430
10430
|
/**
|
|
10431
10431
|
* Build prompt messages for the task.
|
|
10432
10432
|
*/
|
|
@@ -10495,7 +10495,7 @@ declare class SecurityExpert extends BaseAgent {
|
|
|
10495
10495
|
constructor(options?: Partial<BaseAgentOptions> & {
|
|
10496
10496
|
expertOptions?: SecurityExpertOptions;
|
|
10497
10497
|
});
|
|
10498
|
-
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError>>;
|
|
10498
|
+
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError$1>>;
|
|
10499
10499
|
protected buildPrompt(task: Task$1): Message[];
|
|
10500
10500
|
getExpertOptions(): Readonly<SecurityExpertOptions>;
|
|
10501
10501
|
private executeHeuristic;
|
|
@@ -10543,7 +10543,7 @@ declare class ArchitectureExpert extends BaseAgent {
|
|
|
10543
10543
|
constructor(options?: Partial<BaseAgentOptions> & {
|
|
10544
10544
|
expertOptions?: ArchitectureExpertOptions;
|
|
10545
10545
|
});
|
|
10546
|
-
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError>>;
|
|
10546
|
+
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError$1>>;
|
|
10547
10547
|
protected buildPrompt(task: Task$1): Message[];
|
|
10548
10548
|
getExpertOptions(): Readonly<ArchitectureExpertOptions>;
|
|
10549
10549
|
private executeHeuristic;
|
|
@@ -10585,7 +10585,7 @@ declare class TestingExpert extends BaseAgent {
|
|
|
10585
10585
|
constructor(options?: Partial<BaseAgentOptions> & {
|
|
10586
10586
|
expertOptions?: TestingExpertOptions;
|
|
10587
10587
|
});
|
|
10588
|
-
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError>>;
|
|
10588
|
+
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError$1>>;
|
|
10589
10589
|
protected buildPrompt(task: Task$1): Message[];
|
|
10590
10590
|
getExpertOptions(): Readonly<TestingExpertOptions>;
|
|
10591
10591
|
private executeHeuristic;
|
|
@@ -10628,7 +10628,7 @@ declare class DocumentationExpert extends BaseAgent {
|
|
|
10628
10628
|
constructor(options?: Partial<BaseAgentOptions> & {
|
|
10629
10629
|
expertOptions?: DocumentationExpertOptions;
|
|
10630
10630
|
});
|
|
10631
|
-
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError>>;
|
|
10631
|
+
protected executeTask(task: Task$1): Promise<Result<TaskResult, AgentError$1>>;
|
|
10632
10632
|
protected buildPrompt(task: Task$1): Message[];
|
|
10633
10633
|
getExpertOptions(): Readonly<DocumentationExpertOptions>;
|
|
10634
10634
|
private executeHeuristic;
|
|
@@ -10809,7 +10809,7 @@ declare function safeValidateExpertConfig(config: unknown): {
|
|
|
10809
10809
|
/**
|
|
10810
10810
|
* Error specific to factory operations.
|
|
10811
10811
|
*/
|
|
10812
|
-
declare class FactoryError extends AgentError {
|
|
10812
|
+
declare class FactoryError extends AgentError$1 {
|
|
10813
10813
|
constructor(message: string, options?: {
|
|
10814
10814
|
cause?: Error;
|
|
10815
10815
|
context?: Record<string, unknown>;
|
|
@@ -10958,7 +10958,7 @@ declare const ExpertFactory: {
|
|
|
10958
10958
|
/**
|
|
10959
10959
|
* Error specific to registry operations.
|
|
10960
10960
|
*/
|
|
10961
|
-
declare class RegistryError extends AgentError {
|
|
10961
|
+
declare class RegistryError extends AgentError$1 {
|
|
10962
10962
|
constructor(message: string, options?: {
|
|
10963
10963
|
cause?: Error;
|
|
10964
10964
|
context?: Record<string, unknown>;
|
|
@@ -11400,7 +11400,7 @@ declare class ResultAggregator {
|
|
|
11400
11400
|
/**
|
|
11401
11401
|
* Aggregates expert results into a final result.
|
|
11402
11402
|
*/
|
|
11403
|
-
aggregate(input: AggregatorInput): Result<AggregatedResult, AgentError>;
|
|
11403
|
+
aggregate(input: AggregatorInput): Result<AggregatedResult, AgentError$1>;
|
|
11404
11404
|
private applyStrategy;
|
|
11405
11405
|
private checkQuality;
|
|
11406
11406
|
private buildResult;
|
|
@@ -11416,7 +11416,7 @@ declare function createResultAggregator(options?: AggregatorOptions): ResultAggr
|
|
|
11416
11416
|
/**
|
|
11417
11417
|
* Convenience function to aggregate results.
|
|
11418
11418
|
*/
|
|
11419
|
-
declare function aggregateResults(input: AggregatorInput, options?: AggregatorOptions): Result<AggregatedResult, AgentError>;
|
|
11419
|
+
declare function aggregateResults(input: AggregatorInput, options?: AggregatorOptions): Result<AggregatedResult, AgentError$1>;
|
|
11420
11420
|
|
|
11421
11421
|
/**
|
|
11422
11422
|
* TRINITY Coordinator Types
|
|
@@ -11608,7 +11608,7 @@ declare class TrinityCoordinator {
|
|
|
11608
11608
|
/** Normalizes constructor options for backward compatibility. */
|
|
11609
11609
|
private normalizeOptions;
|
|
11610
11610
|
cancel(reason: string): void;
|
|
11611
|
-
execute(options: TrinityExecuteOptions): Promise<Result<TrinityResult, AgentError>>;
|
|
11611
|
+
execute(options: TrinityExecuteOptions): Promise<Result<TrinityResult, AgentError$1>>;
|
|
11612
11612
|
private runCoordination;
|
|
11613
11613
|
private runIterationLoop;
|
|
11614
11614
|
/** Emits an iteration event with given status. */
|
|
@@ -13048,6 +13048,485 @@ declare class SkillLoader implements ISkillLoader {
|
|
|
13048
13048
|
*/
|
|
13049
13049
|
declare function createSkillLoader(library: SkillLibrary, config?: Partial<SkillLoaderConfig>, logger?: ILogger): ISkillLoader;
|
|
13050
13050
|
|
|
13051
|
+
/**
|
|
13052
|
+
* Dynamic model-identity resolver (#2529).
|
|
13053
|
+
*
|
|
13054
|
+
* Real-world `modelId` strings are messy:
|
|
13055
|
+
* - clean upstream: `claude-sonnet-4-6`, `gpt-4o`, `gemini-2.0-flash`
|
|
13056
|
+
* - vendor-prefixed: `anthropic/claude-sonnet-4-6`, `meta-llama/llama-3.3-70b`
|
|
13057
|
+
* - dated: `claude-3-5-sonnet-20241022`, `gpt-4o-2024-08-06`
|
|
13058
|
+
* - operator-renamed: `2025-claude-opus-4_0_high`, `workspace-claude-prod`
|
|
13059
|
+
* - opaque: `internal-fast-model`
|
|
13060
|
+
*
|
|
13061
|
+
* This module turns any of those into a `ResolvedModelIdentity` —
|
|
13062
|
+
* vendor + family + version + capability hints — so the
|
|
13063
|
+
* agentic-adapter layer can pick a behaviour profile based on the
|
|
13064
|
+
* actual served model, NOT on `IModelAdapter.providerId` (which for a
|
|
13065
|
+
* custom OpenAI gateway is always `openai` regardless of what model
|
|
13066
|
+
* the gateway is fronting).
|
|
13067
|
+
*
|
|
13068
|
+
* Resolution priority (highest first):
|
|
13069
|
+
* 1. operator `modelHints` — explicit override at construction
|
|
13070
|
+
* 2. probe of `IModelAdapter.listModels()` — `owned_by` field
|
|
13071
|
+
* 3. modelId-string parse — fuzzy regex table on the normalised id
|
|
13072
|
+
* 4. `unknown` defaults
|
|
13073
|
+
*
|
|
13074
|
+
* Each layer fills only the fields its higher-priority neighbour left
|
|
13075
|
+
* blank, so an operator can hint `{ vendor: 'anthropic' }` and still
|
|
13076
|
+
* let `family` come from the probe / parse.
|
|
13077
|
+
*
|
|
13078
|
+
* @module config/model-identity
|
|
13079
|
+
*/
|
|
13080
|
+
|
|
13081
|
+
/** Coarse vendor bucket — drives behaviour-profile lookup downstream. */
|
|
13082
|
+
type ModelVendor = 'anthropic' | 'openai' | 'google' | 'meta' | 'qwen' | 'nvidia' | 'mistral' | 'cohere' | 'deepseek' | 'unknown';
|
|
13083
|
+
/**
|
|
13084
|
+
* Family inside a vendor — `claude-opus`, `claude-sonnet`, `gpt-4o`,
|
|
13085
|
+
* `gemini-flash`, `llama-3`, etc. `unknown` when we recognised the
|
|
13086
|
+
* vendor but not the specific family (e.g., gateway-renamed model).
|
|
13087
|
+
*/
|
|
13088
|
+
type ModelFamily = string;
|
|
13089
|
+
/** Where each piece of the resolved identity came from — useful for audit logs. */
|
|
13090
|
+
type IdentitySource = 'modelHints' | 'probe' | 'modelIdParse' | 'default';
|
|
13091
|
+
/**
|
|
13092
|
+
* Resolved identity for a served model. Returned by `resolveModelIdentity`.
|
|
13093
|
+
*
|
|
13094
|
+
* The `quirks` array carries free-form capability hints lifted from
|
|
13095
|
+
* the modelId string — `'embedding'` to flag non-chat models,
|
|
13096
|
+
* `'thinking'` for reasoning variants, `'vision'`, `'mini'`, `'high'`,
|
|
13097
|
+
* etc. Behaviour profiles consult this to override their defaults.
|
|
13098
|
+
*/
|
|
13099
|
+
interface ResolvedModelIdentity {
|
|
13100
|
+
readonly vendor: ModelVendor;
|
|
13101
|
+
readonly family: ModelFamily;
|
|
13102
|
+
readonly version?: string;
|
|
13103
|
+
readonly quirks: readonly string[];
|
|
13104
|
+
readonly source: IdentitySource;
|
|
13105
|
+
readonly rawModelId: string;
|
|
13106
|
+
}
|
|
13107
|
+
/** Operator-supplied identity overrides. Any field forces; others fall through. */
|
|
13108
|
+
interface ModelHints {
|
|
13109
|
+
readonly vendor?: ModelVendor;
|
|
13110
|
+
readonly family?: ModelFamily;
|
|
13111
|
+
readonly version?: string;
|
|
13112
|
+
readonly quirks?: readonly string[];
|
|
13113
|
+
}
|
|
13114
|
+
|
|
13115
|
+
/**
|
|
13116
|
+
* Per-model behaviour profiles (#2529).
|
|
13117
|
+
*
|
|
13118
|
+
* Once `resolveModelIdentity` has classified a served model, this
|
|
13119
|
+
* module looks up the behaviour profile that drives the
|
|
13120
|
+
* `AgenticAdapter` loop — parallel-vs-sequential tool execution,
|
|
13121
|
+
* prompt-caching opt-in, tool-format translation, JSON-strictness on
|
|
13122
|
+
* response parsing, recommended turn budget.
|
|
13123
|
+
*
|
|
13124
|
+
* Profiles are pattern-inherited:
|
|
13125
|
+
*
|
|
13126
|
+
* `claude-opus` ← `claude-*` ← `anthropic-*` ← `default`
|
|
13127
|
+
*
|
|
13128
|
+
* Adding a new model variant doesn't need a new profile — pattern
|
|
13129
|
+
* matching at `vendor + family` level covers any future
|
|
13130
|
+
* `claude-opus-5`, `gpt-5o`, etc.
|
|
13131
|
+
*
|
|
13132
|
+
* The active profile = layered overlay:
|
|
13133
|
+
*
|
|
13134
|
+
* `modelHints` overrides → outcome-driven adjustments (future) →
|
|
13135
|
+
* manifest overrides (future) → in-tree pattern-matched defaults
|
|
13136
|
+
*
|
|
13137
|
+
* For v1 only the in-tree defaults + modelHints are wired; the
|
|
13138
|
+
* other two layers land in PR C of the #2529 plan.
|
|
13139
|
+
*
|
|
13140
|
+
* @module config/model-behavior-profile
|
|
13141
|
+
*/
|
|
13142
|
+
|
|
13143
|
+
/**
|
|
13144
|
+
* Tool-definition format the model expects in `CompletionRequest.tools`.
|
|
13145
|
+
* Each `IModelAdapter` already translates from the canonical
|
|
13146
|
+
* `ToolDefinition` shape into the provider's native form, so this
|
|
13147
|
+
* field is informational for now — but lets us record cross-provider
|
|
13148
|
+
* differences explicitly.
|
|
13149
|
+
*/
|
|
13150
|
+
type ToolDefinitionFormat = 'openai' | 'anthropic' | 'gemini';
|
|
13151
|
+
/**
|
|
13152
|
+
* How aggressively the agentic adapter should opt into prompt
|
|
13153
|
+
* caching. `'none'` = never set caching markers. `'ephemeral'` =
|
|
13154
|
+
* mark tool definitions as `cache_control: ephemeral` (Anthropic
|
|
13155
|
+
* only; harmless on other providers because the canonical request
|
|
13156
|
+
* shape strips unsupported fields). `'aggressive'` = also cache the
|
|
13157
|
+
* system prompt + recent assistant turns. Reserved.
|
|
13158
|
+
*/
|
|
13159
|
+
type PromptCachingMode = 'none' | 'ephemeral' | 'aggressive';
|
|
13160
|
+
/**
|
|
13161
|
+
* Profile that parameterises the agent loop's behaviour.
|
|
13162
|
+
*
|
|
13163
|
+
* Every field has a sensible default in the `DEFAULT_PROFILE` constant
|
|
13164
|
+
* below; per-vendor and per-family profiles override only the fields
|
|
13165
|
+
* they care about (lookup merges with inheritance).
|
|
13166
|
+
*/
|
|
13167
|
+
interface ModelBehaviorProfile {
|
|
13168
|
+
/**
|
|
13169
|
+
* Run multiple `tool_use` blocks from one assistant turn in parallel
|
|
13170
|
+
* (`Promise.all`) when true, sequentially when false. OpenAI tool
|
|
13171
|
+
* use is parallel-friendly; Anthropic batches but expects sequential
|
|
13172
|
+
* tool execution semantics. Defaults to `false` (safer everywhere).
|
|
13173
|
+
*/
|
|
13174
|
+
readonly parallelToolCalls: boolean;
|
|
13175
|
+
/**
|
|
13176
|
+
* Prompt-caching opt-in level. `'none'` is safe everywhere;
|
|
13177
|
+
* `'ephemeral'` adds Anthropic-style markers that other providers
|
|
13178
|
+
* ignore.
|
|
13179
|
+
*/
|
|
13180
|
+
readonly promptCaching: PromptCachingMode;
|
|
13181
|
+
/**
|
|
13182
|
+
* Provider-native tool-definition format. Informational at v1 (each
|
|
13183
|
+
* IModelAdapter already translates), but recorded so behaviour
|
|
13184
|
+
* differences are auditable in eval logs.
|
|
13185
|
+
*/
|
|
13186
|
+
readonly toolDefinitionFormat: ToolDefinitionFormat;
|
|
13187
|
+
/** Soft recommendation; harnesses can override. */
|
|
13188
|
+
readonly maxRecommendedTurnBudget: number;
|
|
13189
|
+
/**
|
|
13190
|
+
* Strict JSON parsing on tool-call arguments. Some smaller models
|
|
13191
|
+
* emit single-quoted JSON or trailing commas; setting this to
|
|
13192
|
+
* `false` would enable a lenient parser. v1 always uses strict
|
|
13193
|
+
* JSON; the field exists so PR C's outcome-driven adjustment can
|
|
13194
|
+
* flip it without an API change.
|
|
13195
|
+
*/
|
|
13196
|
+
readonly strictJson: boolean;
|
|
13197
|
+
/**
|
|
13198
|
+
* Free-form quirk hints applied to this profile — `'reasoning'`,
|
|
13199
|
+
* `'embedding'`, `'gateway-renamed'`, etc. Mostly informational at
|
|
13200
|
+
* v1 except `'embedding'` which the adapter uses to refuse to
|
|
13201
|
+
* construct (agent loop is meaningless on an embedding model).
|
|
13202
|
+
*/
|
|
13203
|
+
readonly quirks: readonly string[];
|
|
13204
|
+
/** Profile id, useful for logs and observability. */
|
|
13205
|
+
readonly profileId: string;
|
|
13206
|
+
}
|
|
13207
|
+
|
|
13208
|
+
/**
|
|
13209
|
+
* Public type contracts for the agentic-adapter primitive (#2529).
|
|
13210
|
+
*
|
|
13211
|
+
* `IAgenticAdapter` is the multi-turn tool-use counterpart to
|
|
13212
|
+
* `IModelAdapter`'s single-shot `complete()`. Eval harnesses (and any
|
|
13213
|
+
* other consumer that needs an agent loop) drive their own toolset
|
|
13214
|
+
* and tool execution; the adapter handles model orchestration.
|
|
13215
|
+
*
|
|
13216
|
+
* @module agents/agentic/types
|
|
13217
|
+
*/
|
|
13218
|
+
|
|
13219
|
+
/**
|
|
13220
|
+
* Tool call emitted by the model.
|
|
13221
|
+
*
|
|
13222
|
+
* Mirrors the Anthropic Messages API `tool_use` ContentBlock shape;
|
|
13223
|
+
* the wrapper translates whatever the underlying provider produces
|
|
13224
|
+
* into this canonical form so harnesses don't care which provider
|
|
13225
|
+
* they're talking to.
|
|
13226
|
+
*/
|
|
13227
|
+
interface ToolCall {
|
|
13228
|
+
/** Unique id for this tool call, threaded back through `tool_use_id`. */
|
|
13229
|
+
readonly id: string;
|
|
13230
|
+
/** Tool name (must match a `ToolDefinition.name` from the input). */
|
|
13231
|
+
readonly name: string;
|
|
13232
|
+
/** Arguments — already JSON-parsed; provider-side is responsible for parsing. */
|
|
13233
|
+
readonly arguments: Record<string, unknown>;
|
|
13234
|
+
}
|
|
13235
|
+
/**
|
|
13236
|
+
* Result of a tool call, returned by the harness's `onToolCall`.
|
|
13237
|
+
*
|
|
13238
|
+
* `content` is whatever string representation of the result the model
|
|
13239
|
+
* should see next turn. Convention: stringify objects, prefer one-line
|
|
13240
|
+
* for primitives. `isError` tells the model the call failed (Anthropic
|
|
13241
|
+
* surfaces this as `is_error: true` in the next turn's `tool_result`
|
|
13242
|
+
* block; other providers handle similarly).
|
|
13243
|
+
*/
|
|
13244
|
+
interface ToolResult$1 {
|
|
13245
|
+
readonly content: string;
|
|
13246
|
+
readonly isError?: boolean;
|
|
13247
|
+
}
|
|
13248
|
+
/**
|
|
13249
|
+
* One turn of the agent loop — model emits a tool call, harness
|
|
13250
|
+
* resolves it, harness records the trace.
|
|
13251
|
+
*/
|
|
13252
|
+
interface AgentTurn {
|
|
13253
|
+
readonly turnIndex: number;
|
|
13254
|
+
readonly toolCall: ToolCall;
|
|
13255
|
+
readonly toolResult: ToolResult$1;
|
|
13256
|
+
/** Wall-clock time spent in the model API call that produced the tool call. */
|
|
13257
|
+
readonly modelLatencyMs: number;
|
|
13258
|
+
/** Wall-clock time spent waiting for `onToolCall` to resolve. */
|
|
13259
|
+
readonly toolLatencyMs: number;
|
|
13260
|
+
/** Provider-reported input tokens for this turn's API call (when available). */
|
|
13261
|
+
readonly inputTokens?: number;
|
|
13262
|
+
/** Provider-reported output tokens for this turn's API call (when available). */
|
|
13263
|
+
readonly outputTokens?: number;
|
|
13264
|
+
}
|
|
13265
|
+
/**
|
|
13266
|
+
* Why the agent loop stopped.
|
|
13267
|
+
*
|
|
13268
|
+
* - `agent-stopped`: model emitted no further tool calls — natural end
|
|
13269
|
+
* - `turn-budget`: hit `turnBudget` before the model finished
|
|
13270
|
+
* - `tool-error`: `onToolCall` threw; harness's responsibility to grade
|
|
13271
|
+
* - `cancelled`: external `AbortSignal` fired
|
|
13272
|
+
*/
|
|
13273
|
+
type AgentStopReason = 'agent-stopped' | 'turn-budget' | 'tool-error' | 'cancelled';
|
|
13274
|
+
/**
|
|
13275
|
+
* Final result of a successful `runAgent` call.
|
|
13276
|
+
*
|
|
13277
|
+
* `stopReason: 'agent-stopped' | 'turn-budget' | 'tool-error' | 'cancelled'`
|
|
13278
|
+
* is reported via the result, NOT via `Result.err` — partial-progress
|
|
13279
|
+
* runs are gradable, and the harness inspects `turns` to decide.
|
|
13280
|
+
*/
|
|
13281
|
+
interface AgentRunResult {
|
|
13282
|
+
readonly turnsUsed: number;
|
|
13283
|
+
readonly stopReason: AgentStopReason;
|
|
13284
|
+
readonly turns: readonly AgentTurn[];
|
|
13285
|
+
/** Aggregated token usage across all turns (sum of per-turn inputs/outputs). */
|
|
13286
|
+
readonly totalInputTokens?: number;
|
|
13287
|
+
readonly totalOutputTokens?: number;
|
|
13288
|
+
/**
|
|
13289
|
+
* Provider-id stamp from the underlying `IModelAdapter` — operators
|
|
13290
|
+
* read this when comparing eval results across providers, since
|
|
13291
|
+
* tool-use fidelity is provider-dependent.
|
|
13292
|
+
*/
|
|
13293
|
+
readonly providerId: string;
|
|
13294
|
+
/** Model-id stamp from the underlying `IModelAdapter`. */
|
|
13295
|
+
readonly modelId: string;
|
|
13296
|
+
/**
|
|
13297
|
+
* Strategy used to drive the loop. `native:<providerId>` when the
|
|
13298
|
+
* underlying adapter is a known provider whose tool-use API is being
|
|
13299
|
+
* threaded through; `wrapper` for unknown providers / custom adapters
|
|
13300
|
+
* where the loop relies only on the IModelAdapter contract surface.
|
|
13301
|
+
*
|
|
13302
|
+
* Eval harnesses record this so cross-provider runs are auditable.
|
|
13303
|
+
*/
|
|
13304
|
+
readonly adapterStrategy: string;
|
|
13305
|
+
/**
|
|
13306
|
+
* The model's final assistant content (the response after the last
|
|
13307
|
+
* tool result, when the model emits no further tool call). Empty
|
|
13308
|
+
* string when the loop ended on `turn-budget` or `cancelled`.
|
|
13309
|
+
*/
|
|
13310
|
+
readonly finalContent: string;
|
|
13311
|
+
}
|
|
13312
|
+
/**
|
|
13313
|
+
* Adapter-level errors that can't be recovered into a partial-progress
|
|
13314
|
+
* run. Tool errors and turn-budget are NOT here — they go to
|
|
13315
|
+
* `AgentRunResult.stopReason`.
|
|
13316
|
+
*/
|
|
13317
|
+
declare class AgentError extends Error {
|
|
13318
|
+
readonly causeData?: unknown;
|
|
13319
|
+
constructor(message: string, cause?: unknown);
|
|
13320
|
+
}
|
|
13321
|
+
/**
|
|
13322
|
+
* Arguments to `runAgent`.
|
|
13323
|
+
*
|
|
13324
|
+
* `onToolCall` is the harness's tool-router; the adapter awaits its
|
|
13325
|
+
* `Promise<ToolResult>` so synchronous and async harness execution
|
|
13326
|
+
* both work. Per-tool timeouts are the harness's responsibility (the
|
|
13327
|
+
* adapter doesn't impose one — see #2529 design notes).
|
|
13328
|
+
*
|
|
13329
|
+
* `onTurn` (optional) fires once after each turn completes, giving
|
|
13330
|
+
* operators incremental progress visibility.
|
|
13331
|
+
*
|
|
13332
|
+
* `signal` (optional) propagates external cancellation as
|
|
13333
|
+
* `stopReason: 'cancelled'`.
|
|
13334
|
+
*/
|
|
13335
|
+
interface RunAgentArgs {
|
|
13336
|
+
readonly systemPrompt: string;
|
|
13337
|
+
readonly userPrompt: string;
|
|
13338
|
+
readonly tools: readonly ToolDefinition[];
|
|
13339
|
+
/**
|
|
13340
|
+
* Maximum agent turns. When omitted, the adapter uses the resolved
|
|
13341
|
+
* model's `profile.maxRecommendedTurnBudget` (claude-opus = 20,
|
|
13342
|
+
* o-reasoning = 25, claude-haiku / gemini-flash = 8, defaults to 10).
|
|
13343
|
+
*/
|
|
13344
|
+
readonly turnBudget?: number;
|
|
13345
|
+
readonly onToolCall: (call: ToolCall) => Promise<ToolResult$1>;
|
|
13346
|
+
readonly onTurn?: (turn: AgentTurn) => void;
|
|
13347
|
+
readonly signal?: AbortSignal;
|
|
13348
|
+
/** Sampling temperature passed through to `IModelAdapter.complete`. */
|
|
13349
|
+
readonly temperature?: number;
|
|
13350
|
+
/** Per-turn maxTokens passed through to `IModelAdapter.complete`. */
|
|
13351
|
+
readonly maxTokens?: number;
|
|
13352
|
+
}
|
|
13353
|
+
/**
|
|
13354
|
+
* The agentic-adapter contract. Single method; all the variability
|
|
13355
|
+
* lives in `RunAgentArgs`.
|
|
13356
|
+
*/
|
|
13357
|
+
interface IAgenticAdapter {
|
|
13358
|
+
readonly providerId: string;
|
|
13359
|
+
readonly modelId: string;
|
|
13360
|
+
readonly adapterStrategy: string;
|
|
13361
|
+
runAgent(args: RunAgentArgs): Promise<Result<AgentRunResult, AgentError>>;
|
|
13362
|
+
}
|
|
13363
|
+
|
|
13364
|
+
/**
|
|
13365
|
+
* `AgenticAdapter` — multi-turn tool-use loop over any `IModelAdapter`.
|
|
13366
|
+
*
|
|
13367
|
+
* Rides on the existing `IModelAdapter.complete` contract:
|
|
13368
|
+
* - request includes `tools: ToolDefinition[]`
|
|
13369
|
+
* - response includes `content: ContentBlock[]` with `tool_use` blocks
|
|
13370
|
+
* - `stopReason: 'tool_use'` signals "the model wants to call tools"
|
|
13371
|
+
*
|
|
13372
|
+
* Each concrete `IModelAdapter` (claude / openai / gemini / opencode /
|
|
13373
|
+
* openrouter / ...) is responsible for translating these into the
|
|
13374
|
+
* provider-native tool-use API. This adapter is provider-agnostic —
|
|
13375
|
+
* one implementation drives all of them.
|
|
13376
|
+
*
|
|
13377
|
+
* Provider-specialised adapters can land later if real fidelity gaps
|
|
13378
|
+
* surface (PR 2 in the #2529 plan); for v1 the wrapper-only path
|
|
13379
|
+
* exercises the contract end-to-end.
|
|
13380
|
+
*
|
|
13381
|
+
* Concurrency: a single `AgenticAdapter` instance is safe for
|
|
13382
|
+
* concurrent `runAgent()` calls. An optional `maxConcurrent` cap
|
|
13383
|
+
* gates the model API call (not the full loop — released during
|
|
13384
|
+
* tool execution), so harnesses running 100s of instances with a
|
|
13385
|
+
* rate-limited provider can throttle without serialising.
|
|
13386
|
+
*
|
|
13387
|
+
* @module agents/agentic/agentic-adapter
|
|
13388
|
+
*/
|
|
13389
|
+
|
|
13390
|
+
interface AgenticAdapterOptions {
|
|
13391
|
+
/**
|
|
13392
|
+
* Maximum number of concurrent model API calls across all in-flight
|
|
13393
|
+
* `runAgent()` calls. Default unlimited. Set this when the upstream
|
|
13394
|
+
* provider rate-limits aggressively.
|
|
13395
|
+
*/
|
|
13396
|
+
readonly maxConcurrent?: number;
|
|
13397
|
+
/**
|
|
13398
|
+
* Per-model identity overrides — gateway-renamed models, custom
|
|
13399
|
+
* deployments, or anything the modelId-string parser can't classify.
|
|
13400
|
+
* Each field is optional; provided fields force, others fall through
|
|
13401
|
+
* to probe / parse.
|
|
13402
|
+
*/
|
|
13403
|
+
readonly modelHints?: ModelHints;
|
|
13404
|
+
/**
|
|
13405
|
+
* Skip the `IModelAdapter.listModels()` probe at first `runAgent`.
|
|
13406
|
+
* Useful when the gateway doesn't expose `/v1/models` or when
|
|
13407
|
+
* deterministic startup matters more than identity fidelity.
|
|
13408
|
+
*/
|
|
13409
|
+
readonly skipProbe?: boolean;
|
|
13410
|
+
/**
|
|
13411
|
+
* Force a specific behaviour profile, bypassing identity-driven
|
|
13412
|
+
* lookup entirely. Reserved for tests + diagnostic runs; in
|
|
13413
|
+
* production prefer `modelHints` so identity stays auditable.
|
|
13414
|
+
*/
|
|
13415
|
+
readonly forceProfile?: ModelBehaviorProfile;
|
|
13416
|
+
}
|
|
13417
|
+
declare class AgenticAdapter implements IAgenticAdapter {
|
|
13418
|
+
readonly providerId: string;
|
|
13419
|
+
readonly modelId: string;
|
|
13420
|
+
/**
|
|
13421
|
+
* Adapter strategy stamp — composed from the resolved model
|
|
13422
|
+
* identity, NOT the IModelAdapter's providerId. For a custom OpenAI
|
|
13423
|
+
* gateway fronting Claude, this reads `native:anthropic` even though
|
|
13424
|
+
* `IModelAdapter.providerId === 'openai'`.
|
|
13425
|
+
*
|
|
13426
|
+
* Initialised eagerly from the modelId parse (sync); upgraded after
|
|
13427
|
+
* the first `runAgent` if the probe contributes a higher-confidence
|
|
13428
|
+
* vendor signal.
|
|
13429
|
+
*/
|
|
13430
|
+
adapterStrategy: string;
|
|
13431
|
+
private readonly model;
|
|
13432
|
+
private readonly options;
|
|
13433
|
+
private readonly semaphore;
|
|
13434
|
+
private resolvedIdentity;
|
|
13435
|
+
private profile;
|
|
13436
|
+
private profileResolutionPromise;
|
|
13437
|
+
constructor(modelAdapter: IModelAdapter, options?: AgenticAdapterOptions);
|
|
13438
|
+
/**
|
|
13439
|
+
* Read-only accessor for the resolved profile. Mostly used in tests
|
|
13440
|
+
* + observability surfaces; production callers shouldn't need this.
|
|
13441
|
+
*/
|
|
13442
|
+
getProfile(): ModelBehaviorProfile;
|
|
13443
|
+
/**
|
|
13444
|
+
* Read-only accessor for the resolved identity. After the first
|
|
13445
|
+
* `runAgent` call (if a probe ran), this may differ from what the
|
|
13446
|
+
* sync constructor stored — useful for audit logs.
|
|
13447
|
+
*/
|
|
13448
|
+
getResolvedIdentity(): ResolvedModelIdentity;
|
|
13449
|
+
/**
|
|
13450
|
+
* Lazily resolve identity via the async probe + refresh the profile.
|
|
13451
|
+
* Idempotent + concurrent-call-safe (multiple `runAgent`s share the
|
|
13452
|
+
* same in-flight resolution).
|
|
13453
|
+
*/
|
|
13454
|
+
private ensureIdentityResolved;
|
|
13455
|
+
/**
|
|
13456
|
+
* If the resolved profile asks for `'ephemeral'` prompt caching,
|
|
13457
|
+
* mark the LAST tool definition with `cache_control: { type:
|
|
13458
|
+
* 'ephemeral' }`. Anthropic interprets this as "cache everything up
|
|
13459
|
+
* to and including the tool definitions"; other providers strip the
|
|
13460
|
+
* unknown field at the canonical-request mapper.
|
|
13461
|
+
*
|
|
13462
|
+
* Last-tool placement is the Anthropic convention: cache key is the
|
|
13463
|
+
* prefix, so caching the final tool block caches the entire tools
|
|
13464
|
+
* section. Per-turn the system prompt + user prompt + tools are
|
|
13465
|
+
* stable, so cache-hit rate on multi-turn agent runs is high.
|
|
13466
|
+
*/
|
|
13467
|
+
private applyCacheControlIfRequested;
|
|
13468
|
+
private doResolveIdentity;
|
|
13469
|
+
runAgent(args: RunAgentArgs): Promise<Result<AgentRunResult, AgentError>>;
|
|
13470
|
+
/**
|
|
13471
|
+
* Run one model-call cycle: call → check for tool_use → execute tool
|
|
13472
|
+
* calls → append results. Returns one of three outcomes describing
|
|
13473
|
+
* whether the loop continues, stops naturally, or hit a model error.
|
|
13474
|
+
*/
|
|
13475
|
+
private runOneTurn;
|
|
13476
|
+
private processToolCalls;
|
|
13477
|
+
private processToolCallsSequential;
|
|
13478
|
+
/**
|
|
13479
|
+
* Profile-driven parallel tool execution. Used when
|
|
13480
|
+
* `profile.parallelToolCalls === true` AND the model emitted >1
|
|
13481
|
+
* tool_use block in a single turn.
|
|
13482
|
+
*
|
|
13483
|
+
* Each tool call still produces its own `AgentTurn`; turn-budget
|
|
13484
|
+
* applies to the post-completion count (we don't pre-cap the
|
|
13485
|
+
* Promise.all because the model already issued all calls — better
|
|
13486
|
+
* to record everything and let the next turn be the budget breaker).
|
|
13487
|
+
*/
|
|
13488
|
+
private processToolCallsParallel;
|
|
13489
|
+
/**
|
|
13490
|
+
* Per-call wrapper used by parallel execution. Returns a captured
|
|
13491
|
+
* outcome (turn + result-block, OR turn + tool-error flag) without
|
|
13492
|
+
* touching shared state — `processToolCallsParallel` reduces the
|
|
13493
|
+
* outcomes deterministically afterwards.
|
|
13494
|
+
*/
|
|
13495
|
+
private invokeToolForParallel;
|
|
13496
|
+
private invokeToolAndRecord;
|
|
13497
|
+
private buildFromState;
|
|
13498
|
+
/**
|
|
13499
|
+
* Wrap `model.complete` in an optional concurrency gate. The
|
|
13500
|
+
* semaphore is held only across the model API call — released
|
|
13501
|
+
* before tool execution so harnesses doing slow tool calls don't
|
|
13502
|
+
* starve other concurrent `runAgent` calls.
|
|
13503
|
+
*/
|
|
13504
|
+
private callModelGated;
|
|
13505
|
+
private buildResult;
|
|
13506
|
+
}
|
|
13507
|
+
|
|
13508
|
+
/**
|
|
13509
|
+
* Factory for `IAgenticAdapter`.
|
|
13510
|
+
*
|
|
13511
|
+
* v1 returns a single concrete `AgenticAdapter` for any
|
|
13512
|
+
* `IModelAdapter` — the underlying model adapter handles
|
|
13513
|
+
* provider-specific tool-use translation already. Provider-specialised
|
|
13514
|
+
* concretes (`AnthropicAgenticAdapter`, etc.) can register here later
|
|
13515
|
+
* if real fidelity gaps surface; consumers call this factory and
|
|
13516
|
+
* never know the difference.
|
|
13517
|
+
*
|
|
13518
|
+
* @module agents/agentic/factory
|
|
13519
|
+
*/
|
|
13520
|
+
|
|
13521
|
+
/**
|
|
13522
|
+
* Build an `IAgenticAdapter` for the supplied model adapter.
|
|
13523
|
+
*
|
|
13524
|
+
* Stamps `adapterStrategy` based on the model's `providerId` so
|
|
13525
|
+
* downstream eval results record which path they exercised. Future
|
|
13526
|
+
* provider-specialised concretes will set their own strategy.
|
|
13527
|
+
*/
|
|
13528
|
+
declare function createAgenticAdapter(modelAdapter: IModelAdapter, options?: AgenticAdapterOptions): IAgenticAdapter;
|
|
13529
|
+
|
|
13051
13530
|
/**
|
|
13052
13531
|
* nexus-agents/agents - Forest-of-Thought Node Types
|
|
13053
13532
|
*
|
|
@@ -15054,7 +15533,7 @@ declare function getBuiltInTemplatesWithMetadata(): Promise<ParsedTemplate[]>;
|
|
|
15054
15533
|
/**
|
|
15055
15534
|
* Error specific to template registry operations.
|
|
15056
15535
|
*/
|
|
15057
|
-
declare class TemplateRegistryError extends AgentError {
|
|
15536
|
+
declare class TemplateRegistryError extends AgentError$1 {
|
|
15058
15537
|
constructor(message: string, options?: {
|
|
15059
15538
|
cause?: Error;
|
|
15060
15539
|
context?: Record<string, unknown>;
|
|
@@ -18960,14 +19439,14 @@ interface OrchestrateDeps extends BaseMcpToolDeps {
|
|
|
18960
19439
|
/** MCP notifier for client-visible logging (Issue #974) */
|
|
18961
19440
|
notifier?: IMcpNotifier | undefined;
|
|
18962
19441
|
}
|
|
18963
|
-
declare class OrchestrationError extends AgentError {
|
|
19442
|
+
declare class OrchestrationError extends AgentError$1 {
|
|
18964
19443
|
constructor(message: string, options?: {
|
|
18965
19444
|
cause?: Error;
|
|
18966
19445
|
context?: Record<string, unknown>;
|
|
18967
19446
|
});
|
|
18968
19447
|
}
|
|
18969
19448
|
/** Error when orchestration is unavailable (no model adapter). Issue #554. */
|
|
18970
|
-
declare class OrchestrationUnavailableError extends AgentError {
|
|
19449
|
+
declare class OrchestrationUnavailableError extends AgentError$1 {
|
|
18971
19450
|
constructor(message: string, options?: {
|
|
18972
19451
|
cause?: Error;
|
|
18973
19452
|
context?: Record<string, unknown>;
|
|
@@ -28172,7 +28651,7 @@ declare function generateProposalId(): ProposalId;
|
|
|
28172
28651
|
/**
|
|
28173
28652
|
* Error class for consensus-related failures.
|
|
28174
28653
|
*/
|
|
28175
|
-
declare class ConsensusError extends AgentError {
|
|
28654
|
+
declare class ConsensusError extends AgentError$1 {
|
|
28176
28655
|
constructor(message: string, context?: Record<string, unknown>);
|
|
28177
28656
|
}
|
|
28178
28657
|
/**
|
|
@@ -31211,4 +31690,4 @@ declare function createScmProvider(config: CreateScmProviderConfig): Promise<Res
|
|
|
31211
31690
|
*/
|
|
31212
31691
|
declare function createGitHubProvider(repo: string): IScmProvider;
|
|
31213
31692
|
|
|
31214
|
-
export { ALLOWED_COMMANDS, ARTIFACT_TYPES, AUDIT_PIPELINE_TEMPLATE, AbTestTracker, type ActionContext, type ActionRecord, type ActionValidationResult, type ActivationOptions, type ActivationStrategy, ActivationStrategySchema, type ActivityItem, type AdapterConfig, AdapterConfigSchema, type AdapterCreator, AdapterFactory, type AdapterLatencyConfig, type AdapterLatencyResult, AdapterModelError, RateLimiter$1 as AdapterRateLimiter, type RateLimiterConfig$1 as AdapterRateLimiterConfig, type RegisterOptions$1 as AdapterRegisterOptions, type AdapterScenarioResult, type AdaptiveOrchestratorOptions, type AdaptiveOrchestratorResult, type AdaptiveThresholdResult, type AgentAction, AgentActionSchema, type AgentActionType, AgentCapability, type AgentCluster, AgentError, type AgentEvent, AgentEventSchema, type AgentExecutorConfig, type AgentFinding, AgentFindingSchema, type AgentId, type AgentMessage, AgentMessageSchema, type AgentMessageType, type AgentPairKey, type AgentPerformance, AgentPerformanceSchema, type AgentResponse, type AgentRole, AgentRoleSchema, type AgentRoleType, type AgentState$2 as AgentState, AgentStateMachine, type AgentStatus, StepExecutor as AgentStepExecutor, type AgentVoteResult, type AgentVoteSummary, type AggregatedResult, type AggregationMetadata, type AggregationStrategy, type AggregatorInput, type AggregatorOptions, type ApiDocumentation, type ApiEndpoint, type ApiType, type AppConfig, AppConfigSchema, type ArchitectureAnalysisResult, type ArchitectureDecision, ArchitectureExpert, type ArchitectureExpertOptions, type ArchitecturePattern, type ArchitectureStyle, type Artifact, type ArtifactFilter, type ArtifactRef, ArtifactRefSchema, ArtifactStore, type ArtifactStoreOptions, type ArtifactType, type AuditActor, AuditActorSchema, type AuditCategory, AuditCategorySchema, AuditError, type AuditEvent$1 as AuditEvent, type AuditEventInput, AuditEventInputSchema, AuditEventSchema, type AuditHandlerConfig, type AuditLogConfig, AuditLogConfigSchema, AuditLogger, type AuditOutcome, AuditOutcomeSchema, type AuditQueryCriteria, AuditQueryCriteriaSchema, type AuditResource, AuditResourceSchema, type AuditSeverity, AuditSeveritySchema, AuditTrail, type AuthorizationMethod, AuthorizationMethodSchema, AvailabilityCache, type AvailabilityCacheConfig, BIAS_CATEGORY, BUILT_IN_EXPERTS, BUILT_IN_RULES, BUILT_IN_TEMPLATES, BaseAdapter, type BaseAdapterConfig, type BaseAdapterOptions, BaseAgent, type BaseAgentOptions, BaseAgentOptionsSchema, BaseCliAdapter, type BaseMcpToolDeps, type BenchmarkAdapter, type BenchmarkComparison, type BenchmarkConfig, type BenchmarkEnvironment, type BenchmarkOperation, type BenchmarkOrchestratorOptions, type BenchmarkReport, type BenchmarkRunContext, type BenchmarkRunSummary, type BenchmarkSuiteResult, type BenchmarkSummary, type BenchmarkThresholds, type BestSolution, BestSolutionSchema, type BottleneckInfo, type BuiltInExpertType, BuiltInExpertTypeSchema, CHECKPOINT_SCHEMA_VERSION, CLAUDE_MODELS, CLAUDE_MODEL_ALIASES, DEFAULT_CACHE_CONFIG as CLI_DEFAULT_CACHE_CONFIG, DEFAULT_CAPABILITIES$1 as CLI_DEFAULT_CAPABILITIES, DEFAULT_COMPOSITE_CONFIG as CLI_DEFAULT_COMPOSITE_CONFIG, CLI_TIMEOUT_PROFILES, CLI_VERSION_REQUIREMENTS, COMPLEXITY_ORDER, CORE_PLUGINS, type CapabilityProfile, type CapacityStatus, type Checkpoint, type PipelineStage as CheckpointPipelineStage, type CheckpointSummary, type FailureCategory as CircuitBreakerFailureCategory, type CircuitProtectedResult, type CircuitState, type ClaimValidation, type ClassifyInput, type ClassifyResult, ClaudeAdapter, type ClaudeAdapterConfig, ClaudeCliAdapter, type ClaudeCliResponse, ClaudeResponseParser, type CliAdapterConfig, type CacheStats as CliCacheStats, type CapabilityProfile$1 as CliCapabilityProfile, type CliCircuitBreakerConfig, CliCircuitBreakerIntegration, type CliCircuitHealthStatus, CliDetectionCache, type CliDetectionCacheConfig, CliDetectionCacheConfigSchema, type CliError, type CliErrorCode, type ExecutionOptions$1 as CliExecutionOptions, type CliHealthResult, type ModelInfo as CliModelInfo, type CliName, type CliResponse, type CliRetryLoopConfig, type CliRetryResult, type CliTask, type TaskComplexity as CliTaskComplexity, type TokenUsage$2 as CliTokenUsage, type CliTransport, type CodeAnalysisResult, type CodeChange, CodeChangeSchema, CodeExpert, type CodeExpertOptions, CodexCliAdapter, type CodexCliResponse, CodexMcpAdapter, CodexResponseParser, type CollaborationConfig, CollaborationConfigSchema, type CollaborationMessage, type CollaborationPattern, CollaborationPatternSchema, type CollaborationResult, CollaborationSession, type CollaborationSessionOptions, type CollectRealVotesOptions, CompactDashboardRenderer, type ComparisonResult, type CompileOptions, type CompileResult$2 as CompileResult, type CompiledGraph, type CompiledPipeline, type CompletionRequest, type CompletionResponse, type ComplexityLevel, ComplexityLevelSchema, type ComplianceStatus, CompositeRouter, type CompositeRouterConfig, CompositeRouterConfigSchema, type CompositeRouterStats, type CompositeRoutingDecision, CompositeRoutingError, type CompositionStep, type CompositionValidation, type ComputedReward, type ConfidenceInterval, ConfigError, type ExpertConfig$1 as ConfigExpertConfig, ExpertConfigSchema$1 as ConfigExpertConfigSchema, type ExpertDefinition$1 as ConfigExpertDefinition, ExpertDefinitionSchema as ConfigExpertDefinitionSchema, type Conflict, type ConflictResolver, type ConflictWarning, type ConsensusAlgorithm, ConsensusAlgorithmSchema, ConsensusEngine, type ConsensusEngineConfig, ConsensusEngineConfigSchema, ConsensusError, type ConsensusMetrics, ConsensusMetricsSchema, ConsensusProtocol, type ConsensusResult, ConsensusResultSchema, type ConsensusStats, type ConsensusVoteDeps, type ConsensusVoteInput, ConsensusVoteInputSchema, type ConsensusVoteResponse, type ConsolidatedFinding, type ConsolidationBenchmarkResult, type ConsolidationOperation, type ContentBlock, ContentPriority, type ContextBudget, ContextBudgetSchema, type ContextFilter, ContextFilterSchema, type ContextItem, ContextManager, type ContextManagerConfig, ContextManagerConfigSchema, type ContextPruneStrategy, ContextPruneStrategySchema, ContextPruner, type ContextPrunerConfig, ContextPrunerConfigSchema, type ContextStats, type ContributionScore, type CorePluginRegistrationResult, type CorrelationCoefficient, CorrelationCoefficientSchema, type CorrelationMatrix, CorrelationTracker, type CorrelationTrackerStats, CorrelationTrackerStatsSchema, type CorroborationEvent, type CorroborationResult, type CorroborationRule, type CostEstimate, CostEstimateSchema, type CoverageAnalysis, type CoverageMetrics, CoverageMetricsSchema, type CreateExecutionContextOptions, type CreateExpertDeps, type CreateExpertInput, CreateExpertInputSchema, type CreateExpertOptions, type CreateExpertResponse, type CreateForestInput, type CreateNodeInput, type CreatePROptions, type CreateScmProviderConfig, type CreateSkillOptions, type CreateStreamOptions, type CreateTreeInput, type CriterionFailure, type CriterionResult, CriterionResultSchema, CriterionType, CriterionTypeSchema, type CriterionTypeType, type CrossTreeInfo, CrossTreeInfoSchema, type CrossTreeStrategy, CrossTreeStrategySchema, type CuratedContextItem, type CurationResult, DECEPTION_CATEGORY, DEFAULT_ACTIVATION_OPTIONS, DEFAULT_ADAPTER_LATENCY_CONFIG, DEFAULT_BENCHMARK_CONFIG, DEFAULT_BUDGET, DEFAULT_COLLECT_STREAM_MAX_CHUNKS, DEFAULT_COMPOSER_CONFIG, DEFAULT_CONSENSUS_CONFIG, DEFAULT_DASHBOARD_CONFIG, DEFAULT_DASHBOARD_RENDER_OPTIONS, DEFAULT_DISTILLER_CONFIG, DEFAULT_EXECUTION_TIME_MS, DEFAULT_FEEDBACK_COLLECTOR_CONFIG, DEFAULT_FEEDBACK_INTEGRATION_CONFIG, DEFAULT_FOREST_CONFIG, DEFAULT_HIGHER_ORDER_CONFIG, DEFAULT_MAX_RETRIES, DEFAULT_MEMORY_BENCHMARK_CONFIG, DEFAULT_OUTCOME_STORAGE_CONFIG, DEFAULT_PATH_SCORING_OPTIONS, DEFAULT_PERMISSIONS, DEFAULT_POLICIES, DEFAULT_PREFERENCE_ROUTER_CONFIG, DEFAULT_RBAC, DEFAULT_RESOURCE_LIMITS, DEFAULT_RETRY_CONFIG, DEFAULT_ROLE_MAPPINGS, DEFAULT_SCENARIOS, DEFAULT_SKILL_LIBRARY_CONFIG, DEFAULT_SKILL_LOADER_CONFIG, DEFAULT_STATISTICAL_OPTIONS, DEFAULT_SWARM_OBSERVER_CONFIG, DEFAULT_TIMEOUTS, DEFAULT_TIMEOUT_PROFILE, DEFAULT_TRINITY_CONFIG, DEFAULT_VOTING_PROTOCOL_CONFIG, DEFAULT_WAVE_CONFIG, DEFAULT_WEIGHTED_VOTING_CONFIG, DEV_PIPELINE_TEMPLATE, type DagEdge, DagEdgeSchema, Dashboard, type DashboardConfig, DashboardConfigSchema, type DashboardFilter, type DashboardFormat, type DashboardHealthIndicators, type DashboardOutcome, type DashboardRenderOptions, type DashboardSnapshot, type DashboardSummary, type DashboardUpdateOptions, type DecomposeError, type DelegateDeps, type DelegateInput, type DelegateInputLike, DelegateInputSchema, type DelegateOutput, DelegateOutputSchema, type DependencyError, type DependencyErrorCode, DependencyErrorCodeSchema, DependencyErrorSchema, DependencyGraph, type DependencyStructure, type DevPipelineOptions, type DevPipelineResult, type DevPipelineStages, DirectedInteractionGraph, type DistilledRule, type DistillerConfig, type DistillerStats, type DistributionStats, DocumentationExpert, type DocumentationExpertOptions, type DocumentationResult, type DocumentationSection, type DryRunResult, type DynamicExpert, DynamicExpertManager, type DynamicExpertSpec, END, EXPERT_CAPABILITIES, EXPERT_DEFAULT_CAPABILITIES, EXPERT_DEFAULT_TEMPERATURES, EXPERT_TYPE_TO_ROLE, type EnvValidationResult, ErrorCode, type ErrorPayload, type EvaluationCriterion, EvaluationCriterionSchema, EventBus, type EventBusBridgeOptions, type EventBusBridgeResult, type EventBusOptions, type EventFilter, type EventHandler, type EventPayload, type EventType, type ExecuteExpertDeps, type ExecuteExpertInput, ExecuteExpertInputSchema, type ExecuteExpertResponse, type ExecuteSpecDeps, type ExecuteSpecInput, ExecuteSpecInputSchema, type ExecutionContext$1 as ExecutionContext, type ExecutionMode, type ExecutionPhase$1 as ExecutionPhase, type ExecutionPlan$2 as ExecutionPlan, type ExecutionStage, ExpectedOutcome, ExpectedOutcomeSchema, type ExpectedOutcomeType, type ExperienceRecord, type ExperienceStep, type ExperimentDefinition, type ExperimentExport, type ExperimentOutcome, type ExperimentResult, type ExperimentStatus, type ExperimentSummary, type ExperimentVariant, Expert, type ExpertAssignment, ExpertAssignmentSchema, type ExpertBridgeResult, ExpertCollaborationPattern, type ExpertCollaborationPatternType, type ExpertConfig, ExpertConfigSchema, type ExpertDefinition, type ExpertDomain, ExpertDomainSchema, ExpertFactory, ExpertFactoryAdapter, type ExpertInfo, type ExpertMatch, ExpertMatchSchema, type ExpertOptions, ExpertOptionsSchema, type ExpertOutput, ExpertOutputSchema, type ExpertParticipation, ExpertParticipationSchema, type RegisterOptions as ExpertRegisterOptions, ExpertRegistry$1 as ExpertRegistry, type ExpertResult, type ExpertResultSummary, type ExplorationEvent, ExplorationEventSchema, type ExplorationEventType, ExplorationEventTypeSchema, type ExpressionType, type ExtractSymbolsDeps, ExtractSymbolsInputSchema, FALLBACK_SCANNER_DATA, FactoryError, type FailureAnalysis, type AnalysisError as FailureAnalysisError, type FailurePattern, FailurePatternSchema, type FailureType, type FallbackBehavior, type FallbackEntry, type FeedbackCollectorConfig, FeedbackCollectorConfigSchema, FeedbackIntegration, type FeedbackIntegrationConfig, type FeedbackLoopStats, type FeedbackMessage, type RoutingDecision as FeedbackRoutingDecision, RoutingDecisionSchema as FeedbackRoutingDecisionSchema, FileAuditStorage, type FileReference, FileReferenceSchema, type FindingVote, FindingVoteSchema, type Artifact$1 as FirewallArtifact, type PolicyContext$1 as FirewallPolicyContext, type PolicyDecision$2 as FirewallPolicyDecision, type PolicyRule$1 as FirewallPolicyRule, type FirewallResult, type Forest, type ForestConfig, ForestConfigSchema, type ForestId, type ForestPruningStrategy, ForestPruningStrategySchema, type ForestResult, ForestResultSchema, type ForestState, ForestStateSchema, type ForestStatistics, ForestStatisticsSchema, type FullCapableProvider, GEMINI_MODELS, GEMINI_MODEL_ALIASES, GENERAL_PIPELINE_TEMPLATE, GeminiAdapter, type GeminiAdapterConfig, GeminiCliAdapter, type GeminiCliResponse, GeminiResponseParser, type GeneratedTest, GeneratedTestSchema, type GitHubInput, GitHubProvider, GitHubReviewer, GitHubUserInfo, type GitHubUserMetadata, type GitHubUserRole, GitHubUserRoleSchema, GraphBuilder, type GraphCompileError, type GraphEdge, type GraphEdgeDisplay, type GraphEvent, type GraphExecuteOptions, type GraphExecutionAuditEvent, type GraphExecutionResult, type GraphNode, type GraphPipelineOptions, type GraphPipelineResult, type GraphState, type GraphStats, type GraphSummary, type GraphWorkflowInfo, HARM_EMOTIONAL_CATEGORY, HARM_FINANCIAL_CATEGORY, HARM_PHYSICAL_CATEGORY, type HealthStatus, type HigherOrderVotingConfig, HigherOrderVotingConfigSchema, type HigherOrderVotingResult, HigherOrderVotingResultSchema, HigherOrderVotingStrategy, type HookError, HostileInputFirewall, type IAbTestTracker, type IAgent, type IArtifactStore, type IAuditLogger, type IAuditStorage, type ICTMConfig, ICTMConfigSchema, type ICTMInferenceResult, ICTMInferenceResultSchema, type ICheckpointStore, type ICircuitBreaker, type ICliAdapter, type ICliCircuitBreakerIntegration, type ICliDetectionCache, type ICliResponseParser, type ICollaborationProtocol, type ICompositeRouter, type IConsensusEngine, type ICorrelationTracker, type IDashboard, type IDashboardRenderer, type IEventBus, type IFeedbackIntegration, type IHigherOrderVoting, type ISwarmObserver as IInteractionObserver, type ILogger, type IMcpNotifier, type IMemoryBackend, type IModelAdapter, INSTRUCTION_SAFETY_CATEGORY, type IOrchestrationObserver, type IOrchestrator, type IOrchestratorFactory, type IOutcomeFeedback, type IOutcomeStorage, type IPipelineStage, type IPluginRegistry, type IPolicyEngine, type IPolicyFirewall, type IPreferenceDataStore, type IRoutingMemory$1 as IRoutingMemory, type ISQLiteDatabase, type ISQLiteStatement, type ISandboxExecutor, type IScmProvider, type IScmReviewer, type IScmUserInfo, type ISkillDependencyGraph, type ISkillLoader, type ITaskTracker, type ITemplateRegistry, type ITokenCounter, type IVotingProtocol, type IVotingStrategy, type IWeightedVoting, type IWorkflowEngine, type IWorkflowRouter, type ImprovementSuggestion, InMemoryAuditStorage, InMemoryCheckpointStore, InMemoryPreferenceStore, type IncompleteResult, type IncompleteSeverity, type IndependentSubset, IndependentSubsetSchema, type InjectionFlag, InjectionFlagSchema, type InputBinding, type InputDefinition, type InputDefinitionInput, type InputDefinitionOutput, InputDefinitionSchema, type InputType, InputTypeSchema, type InteractionEdge, type InteractionGraph, type SwarmObserverConfig as InteractionObserverConfig, SwarmObserverConfigSchema as InteractionObserverConfigSchema, type InteractionOutcome, SwarmObserver as InteractionSwarmObserver, type InvalidVar, type IssueFilters, type IssueReference, IssueReferenceSchema, type IssueTriageDeps, type IssueTriageInput, IssueTriageInputSchema, type IssueTriageResponse, type IterativeConsensusConfig, type IterativeConsensusResult, JsonDashboardRenderer, KNOWN_SECTIONS, type KnownSection, type LanguageMatrixEntry, type LatencyMetrics, LatencySampler, type LatencyScenario, type LearningProgress, type LibraryStatistics, type ListExpertsDeps, type ListExpertsInput, ListExpertsInputSchema, type ListExpertsResponse, type ListWorkflowsDeps, type ListWorkflowsInput, ListWorkflowsInputSchema, type ListWorkflowsResponse, type LoadedSkillSet, LoadedSkillSetSchema, type LogContext, type LogEntry, type LogLevel, type LogPolicyAuditOpts, type LogRateLimitAuditOpts, type LogToolInvocationOpts, type LoggingConfig, LoggingConfigSchema, MANIPULATION_CATEGORY, MAX_DIFF_LENGTH, MAX_DYNAMIC_EXPERTS, MAX_EXECUTION_TIME_MS, MEM0_TARGETS, MIN_EXPERTS_FOR_PATTERN, MODEL_CAPABILITIES, type IExpertFactory as McpExpertFactory, type McpLogContext, type McpLogLevel, RateLimiter as McpRateLimiter, type RateLimiterConfig as McpRateLimiterConfig, type MemoryBenchmarkConfig, type MemoryEntry, MemoryError, MemoryImportance, type MemoryMetadata, type MemoryPayload, type MemoryQueryInput, MemoryQueryInputSchema, MemoryStatsInputSchema, type MemoryWriteInput, MemoryWriteInputSchema, type MergePROptions, type Message, type MessagePayload, type MessageRole, ModelCapability, type ModelConfig, ModelConfigSchema, ModelError, type ModelMetrics, type ModelPerformanceSummary, type ModelPreference, ModelPreferenceSchema, type ModelSelection, ModelSelectionSchema, type ModelTiers, ModelTiersSchema, NOOP_NOTIFIER, NOOP_PROGRESS, NexusError, type NexusErrorOptions, NoAdapterError, type NodeHandler$1 as NodeHandler, type NodeHandlerFactory, type NodeHook, type NodeHookContext, type NodeId, type NodeResult, type NodeState, NodeStateSchema, OLLAMA_MODELS, OPENAI_MODELS, OPENAI_MODEL_ALIASES, OWVoting, type OWVotingOptions, type AgentState$1 as ObserverAgentState, type CostMetrics as ObserverCostMetrics, type RoutingDecision$2 as ObserverRoutingDecision, type SessionMetrics as ObserverSessionMetrics, type TokenUsage$1 as ObserverTokenUsage, type TrackedAgent as ObserverTrackedAgent, OllamaAdapter, type OllamaAdapterConfig, OpenAIAdapter, type OpenAIAdapterConfig, OpenCodeCliAdapter, type OperationBenchmark, type OperationComparison, type OrchestrateDeps, type OrchestrateInput, type OrchestrateInputLike, OrchestrateInputSchema, type OrchestrateOutput, OrchestrateOutputSchema, OrchestrationError, type OrchestrationObserverEvent, type OrchestrationObserverListener, type OrchestrationStats, OrchestrationUnavailableError, Orchestrator, type OrchestratorDefinition, OrchestratorError, type OrchestratorErrorCode, type OrchestratorExecuteOptions, OrchestratorFactory, type OrchestratorFactoryConfig, type OrchestratorOptions, OrchestratorOptionsSchema, type OrchestratorResult, type OrchestratorStep, type OrchestratorType, type OutcomeClass, type OutcomeFailureCategory, OutcomeFailureCategorySchema, OutcomeFeedbackCollector, type OutcomeProcessedCallback, type OutcomeRecord, type OutcomeStorageConfig, OutcomeStorageConfigSchema, OutcomeStorageError, OutcomeStore, type OutcomeStoreConfig, type TaskOutcome$2 as OutcomeTaskRecord, TaskOutcomeSchema$2 as OutcomeTaskSchema, PIPELINE_EVENT_TYPES, PIPELINE_STATE_KEYS, PIPELINE_TEMPLATES, PLUGIN_TRUST_LEVELS, PRIVACY_CATEGORY, PROMPT_DEFINITIONS, PR_REVIEW_ROLES, type PairwiseVotingHistory, PairwiseVotingHistorySchema, type ParallelOptions, ParallelProtocol, ParseError, type ParsedExpression, type ParsedSpec, ParsedSpecSchema, type ParsedTemplate, type PathAccessRule, type PathScore, type PathScoreBreakdown, PathScoreBreakdownSchema, PathScoreSchema, type PathScoringOptions, type PatternMetrics, type PatternOutcome, type PatternType, type PerformanceMatrixEntry, type PerformanceSummary, type PersistentDistillerConfig, PersistentOutcomeStore, type PersistentOutcomeStoreConfig, PersistentStrategyDistiller, type PipelineBridgeResult, type PipelineCheckpointState, type PipelineContext, type PipelineEdge, type PipelineError, type PipelineEvent, type PipelineEventType, type PipelineExecuteOptions, type PipelineGraphResult, type PipelineMetrics, type PipelineMode, type PipelinePlugin, type PolicyMode as PipelinePolicyMode, type PolicyViolation as PipelinePolicyViolation, type PipelineResult, type PipelineRole, PipelineRunner, type PipelineStage$1 as PipelineStage, type PipelineStageData, type PipelineTask, type PipelineTemplate, type PipelineType, type PlanCompileOptions, type PlanContract, PlanContractSchema, type PluginManifest, PluginManifestSchema, PluginRegistry, type PluginRegistryOptions, type PluginTrustLevel, type ValidationError as PluginValidationError, type PolicyConfig, PolicyConfigSchema, type PolicyContext, type PolicyDecision, type PolicyDecisionAuditOpts, PolicyEngine, PolicyError, type PolicyEvalResult, type PolicyEvaluation, type PolicyEvaluatorOptions, PolicyFirewall, type PolicyFirewallConfig, type PolicyGateEvent, type PolicyGateSpec, PolicyGateSpecSchema, type PolicyMode$1 as PolicyMode, type PolicyRule, type PolicyViolation$1 as PolicyViolation, type PrReviewDecision, type PrReviewDeps, type PrReviewInput, PrReviewInputSchema, type PrReviewResponse, type PrReviewVote, type PreconditionConfig, type PreconditionOutcome, type PreconditionResult, type PreferenceDataPoint, type PreferenceFilter, type PreferenceModelStats, type PreferencePrediction, type PreferenceRecord, PreferenceRouter, type PreferenceRouterConfig, PreferenceRouterConfigSchema, type PreferenceRoutingDecision, type PreferenceSignal, type PreferredCapability, type ProbeFn, type ProbeResult, type PromptDefinition, type PromptMessage, type PromptRegistrationResult, ProofOfLearningStrategy, type Proposal, type ProposalId, ProposalSchema, type ProposalState, type ProposalStatus, ProposalStatusSchema, ProtocolFactory, type ProtocolOptions, type ProvenanceEntry, type ProviderConfig, ProviderConfigSchema, type PruneOptions, type PruneResult, PruningStrategy, type QaReviewResult, type QualityAttribute, type QualityMetrics, type QualityRequirement, type QualityScorer, type QualitySignals, QualitySignalsSchema, QueryFeatureExtractor, type QueryFeatures, type QueryOptions, type QueryTraceInput, QueryTraceInputSchema, REJECTION_CATEGORIES, RESEARCH_PIPELINE_TEMPLATE, RISK_AWARENESS_CATEGORY, ROBUSTNESS_CATEGORY, ROLE_DEFAULT_TRUST, type RateLimitAuditOpts, RateLimitError, type RateLimitExceeded, type RateLimiterState, type ReasoningDepth, ReasoningDepthSchema, type ReasoningNode, type ReasoningNodeMetadata, ReasoningNodeMetadataSchema, ReasoningNodeSchema, type ReasoningStepType, ReasoningStepTypeSchema, type ReasoningTree, ReasoningTreeSchema, type RecordExecutionOptions, type RecordInteractionOptions, type RecordOutcomeParams, type RegistrationError, RegistryError, type RegistryImportInput, RegistryImportInputSchema, type RegistryRelationship, type RegistryScanner, type RegistryStats, type RegretAnalysis, type RejectionCategory, RejectionCategorySchema, type RepoAnalysis, type RepoAnalyzeDeps, type RepoAnalyzeInput, RepoAnalyzeInputSchema, type RepoSecurityPlan, type RepoSecurityPlanDeps, type RepoSecurityPlanInput, RepoSecurityPlanInputSchema, type ReportOptions, type ReputationAssessment, ReputationCache, type ReputationEvent, type ResearchAddDeps, type ResearchAddInput, ResearchAddInputSchema, type ResearchAddResponse, type ResearchAddSourceDeps, type ResearchAddSourceInput, ResearchAddSourceInputSchema, type ResearchAddSourceResponse, type ResearchAnalyzeDeps, type ResearchAnalyzeInput, ResearchAnalyzeInputSchema, type ResearchAnalyzeResponse, type ResearchCatalogReviewDeps, ResearchCatalogReviewInputSchema, type ResearchDiscoverDeps, type ResearchDiscoverInput, ResearchDiscoverInputSchema, type ResearchDiscoverResponse, type ResearchQueryDeps, type ResearchQueryInput, ResearchQueryInputSchema, type ResearchQueryResponse, type ResearchSynthesizeDeps, type ResearchSynthesizeInput, ResearchSynthesizeInputSchema, type ResearchTriggerConfig, type ResolveResult, type ResourceLimits, type ResourceMetrics, type ResourceUsage, type Result, ResultAggregator, type ResultConflict, type ResultSubmissionMessage, type ResultSummary, type RetryAttemptInfo, type RetryConfig, RetryExhaustedError, type ReviewCapableProvider, ReviewProtocol, type ReviewRequestMessage, type ReviewResponseMessage, ReviewResponseMessageSchema, RiskLevel, RiskLevelSchema, type RiskLevelType, type RoleSkillMapping, type RoundSummary, type RouterType, type DashboardConfig$1 as RoutingDashboardConfig, type RoutingDecisionRecord, RoutingMemoryError, type RoutingMemoryExport, type RoutingMemoryStats$1 as RoutingMemoryStats, type RoutingMetrics, RoutingMetricsCollector, type RoutingMetricsConfig, type RoutingRecord, type RuleStatus, type RulesSnapshot, RulesSnapshotSchema, type RunGraphWorkflowDeps, type RunGraphWorkflowInput, RunGraphWorkflowInputSchema, type RunGraphWorkflowResponse, type RunWorkflowDeps, type RunWorkflowInput, RunWorkflowInputSchema, SAFETY_CATEGORIES, SAFETY_CATEGORY_MAP, PROVIDER_ENV_KEYS as SDK_PROVIDER_ENV_KEYS, DEFAULT_CAPABILITIES as SKILL_DEFAULT_CAPABILITIES, SKILL_PERMISSIONS, SQLiteOutcomeStorage, STAGE_TYPES, START, type SafetyCategory, SafetyCategoryId, SafetyCategoryIdSchema, type SafetyCategoryIdType, SafetyCategorySchema, type SafetyTaxonomySummary, type SafetyTestCase, SafetyTestCaseSchema, type SandboxConfig, type SandboxExecutionOptions, type SandboxMode, type SandboxPolicy, type SandboxResult, type SanitizationEvent, type SanitizedInput, SanitizedInputSchema, type SanitizerConfig, SanitizerConfigSchema, type ScannerData, type ScannerEntry, type ScannerRecommendation, type ScannerRegistryManifest, type ScenarioError, type ScenarioResult, ScenarioResultSchema, type ScmComment, type ScmCommentDetail, ScmError, type ScmFileChange, type ScmIssue, type ScmIssueDetail, type PRStatus as ScmPRStatus, type ScmPlatform, type ScmPullRequest, type ScmPullRequestDetail, type ScmReviewDecision, type ScmToken, type ScmUserMetadata, type ScoreBreakdown, ScoreBreakdownSchema, SdkAdapter, type SdkAdapterConfig, type SdkProviderId, type SearchCodebaseDeps, SearchCodebaseInputSchema, type SecurityAnalysisResult, type AuditEvent as SecurityAuditEvent, type AuditQuery as SecurityAuditQuery, type SecurityCapability, type SecurityConfig, SecurityConfigSchema, SecurityError, type SecurityErrorCode, SecurityErrorCodeSchema, type SecurityEventAuditOpts, SecurityExpert, type SecurityExpertOptions, type SecurityFocusArea, type PolicyDecision$1 as SecurityPolicyDecision, SelectionError, type ExpertRegistry as SelectionExpertRegistry, type SelectionOptions, SelectionOptionsSchema, type SelectionResult$1 as SelectionResult, SelectionResultSchema, SequentialProtocol, type SerializedError, type ServerConfig, type ServerError, type ServerInstance, type SessionEvent, type SessionState, type SessionStatus, SessionStatusSchema, type SharedConclusion, SharedConclusionSchema, type SharedInsight, SharedInsightSchema, type SharedMemoryEntry, SharedMemoryStore, type SharedMemoryTag, SimpleAgent, SimpleMajorityStrategy, type Skill, AgentRoleSchema$2 as SkillAgentRoleSchema, type SkillAttestation, SkillAttestationSchema, type SkillCapabilities, SkillCapabilitiesSchema, type SkillCategory, type SkillComplexity, SkillComposer, type SkillComposerConfig, type SkillComposition, type SkillCompositionRequest, type SkillDependency, SkillDependencyGraph, SkillDependencySchema, type SkillDependencyType, SkillDependencyTypeSchema, type SkillExample, type SkillExecution, type SkillExecutionStatus, SkillLibrary, type SkillLibraryConfig, SkillLoader, type SkillLoaderConfig, SkillLoaderConfigSchema, type SkillLoaderError, type SkillLoaderErrorCode, SkillLoaderErrorSchema, type SkillMetrics, type SkillParameter, type SkillPermission, SkillPermissionSchema, type SkillProvenance, SkillProvenanceSchema, type SkillQuery, type SkillRBAC, SkillRBACSchema, type SkillSearchResult, type SkillSecurityError, SkillSecurityErrorSchema, type SkillStore, type SkillWithMetrics, type SourceCitation, SourceCitationSchema, type SpanId, type SpecExecutionError, type SpecExecutionOptions, type SpecExecutionResult, type SpecParseError, type StageCompletedOptions, type StageContext, type StageFailedOptions, type StageOutput, type StageRegistry, type StageResult, StageResultSchema, type StageSpec, StageSpecSchema, type StageStartedOptions, type StageType, type StateChangeCallback, type StateChangePayload, type StateFieldSchema, type StateMachineOptions, type StateReducer, type StateSchema, type StateTransition, type StateTransitionEvent, type StatisticalOptions, type StatusUpdateMessage, type StepExecutionOptions, type StepExecutor$1 as StepExecutor, type StepExecutorDeps, type StepResult, type StepResultSummary, type StopReason, type StoredModelStats, type StoredReward, type StoredRoutingDecision, type StoredTaskOutcome, type StrategyAction, StrategyDistiller, StreamCancelledError, type StreamChunk, StreamController, StreamError, type StreamState, AgentRoleSchema$1 as StrictAgentRoleSchema, InputDefinitionSchema$1 as StrictInputDefinitionSchema, WorkflowDefinitionSchema$1 as StrictWorkflowDefinitionSchema, WorkflowStepSchema$1 as StrictWorkflowStepSchema, type StrippedElement, StrippedElementSchema, type SubTask, SubTaskSchema, SubprocessCliAdapter, type SubtaskNode, SubtaskNodeSchema, type SubtaskPriority, SubtaskPrioritySchema, type SubtaskStatus, SubtaskStatusSchema, type SubtaskType, SubtaskTypeSchema, SupermajorityStrategy, type SuspiciousSignal, SuspiciousSignalSchema, type AgentState as SwarmAgentState, type SwarmHealthMetrics$1 as SwarmHealthMetrics, type SycophancyIndicator, type SycophancyReport, type SynthesizedResult, SynthesizedResultSchema, type SystemComponent, TASK_STATUSES, TASK_TYPE_EXPERTS, TEMPLATE_CATEGORIES, TEMPLATE_KEYWORDS, TRINITY_ROLE_MAX_TOKENS, TRINITY_ROLE_PROMPTS, TRINITY_ROLE_TEMPERATURES, TRUST_TIER_NUMERIC, type Task$1 as Task, type TaskAnalysis, TaskAnalysisSchema, type TaskAssignmentMessage, type TaskClassification, type TaskCommitment, type TaskContext, type TaskContract, TaskContractSchema, type TaskDag, TaskDagSchema, type TaskId, type TaskOutcome$1 as TaskOutcome, type TaskOutcomeRecord, TaskOutcomeSchema$1 as TaskOutcomeSchema, type TaskPayload, type TaskProfileSummary, TaskQueue, type TaskRequirements, type TaskResult, TaskSchema, type TaskSignals, type TaskStatus, type TaskToolResponse, type TaskTypePerformance, type TemplateCategory, TemplateCategorySchema, type TemplateMetadata, TemplateMetadataSchema, TemplateRegistry, type TerminationReason, TerminationReasonSchema, type TestQuality, type TestingAnalysisResult, TestingExpert, type TestingExpertOptions, type TextContent, TextDashboardRenderer, type ThinkerOutput, type ThresholdUpdateDetail, type ThroughputMetrics, type TimeConstraint, type TimePeriod, TimeoutError, type TimeoutProfile, type TokenBenchmarkResult, TokenCountError, type TokenCountResult, TokenCounter, type TokenCounterConfig, TokenCounterProvider, type TokenMetrics, type TokenResolverConfig, type TokenStrategy, type TokenUsage, type ToolCompletedEvent, type ToolDefinition, type ToolInvocationAuditOpts, type ToolInvokedEvent, type ToolPayload, type ToolRegistrationOptions, type ToolRegistrationResult, type ToolResult, type ToolSet, ToolSetSchema, type TraceId, type TrackedTask, type TransitionErrorCallback, type TreeId, type TreeState, TreeStateSchema, type TreeStatistics, TreeStatisticsSchema, type Trend, type TrendDetectedDetail, type TrinityConfig, TrinityConfigSchema, TrinityCoordinator, type TrinityExecuteOptions, type TrinityPhase, type TrinityPhaseResult, TrinityPhaseSchema, type TrinityResult, type TrinityRole, type TrinityRoleConfig, TrinityRoleSchema, TrinityStopReasonSchema, type TrustClassificationEvent, type TrustTier, TrustTierSchema, UnanimousStrategy, type UnknownVar, type Unsubscribe, type V2Config, type V2Mode, VERSION, VOTING_THRESHOLDS, ValidationDashboard, ValidationError$1 as ValidationError, type ValidationIssue, type VariantStats, type VerificationResult, type VerifierOutput, VerifierVerdictSchema, type VersionRequirements, type VersionStatus, type Violation, ViolationSchema, type Vote, type VoteCounts, type VoteDecision$1 as VoteDecision, VoteDecisionSchema$1 as VoteDecisionSchema, type VoteDecisionStatus, type VoteMessage, VoteMessageSchema, type VoteResult, VoteSchema, type VotingObservation, VotingObservationSchema, type VotingOutcome, VotingProtocol, type VotingProtocolConfig, VotingProtocolConfigSchema, type VotingProtocolResult, type VotingRound, type VotingRoundPhase, VotingRoundPhaseSchema, type VotingRoundStatus, VotingRoundStatusSchema, type VotingSession, VotingStrategyFactory, type Vulnerability, VulnerabilitySchema, VulnerabilitySeveritySchema, type WaveExecutionResult, type WaveResult, WaveScheduler, type WaveSchedulerConfig, type WaveTask, type WaveTaskExecutor, type WaveTaskResult, WeatherReportInputSchema, type WeightedAgentRecord, type WeightedConsensusResult, type WeightedVoteCounts, WeightedVoting, type WeightedVotingConfig, type WeightedVotingOptions, type WinLossAnalysis, type WithRetryOptions, type WorkChunk, type WorkerOutput, type WorkflowAdapterConfig, type WorkflowConfig, WorkflowConfigSchema, type WorkflowDefinition, type WorkflowDefinitionInput, type WorkflowDefinitionOutput, WorkflowDefinitionSchema, type WorkflowEngineFactoryConfig, WorkflowError, type WorkflowExecutionContext, type ExecutionPlan$1 as WorkflowExecutionPlan, type IExpertFactory$1 as WorkflowExpertFactory, type WorkflowInfo, WorkflowInputsSchema, WorkflowOrchestratorAdapter, type WorkflowPattern, type WorkflowRouterOptions, type RoutingDecision$1 as WorkflowRoutingDecision, type WorkflowStep$1 as WorkflowStep, type WorkflowStepInput, type WorkflowStepOutput, WorkflowStepSchema, type WorkflowTemplate, type WorkflowToolResult, actorFromContext, aggregatePrDecisions, aggregateResults, analysisToTaskContract, analyzeTask as analyzeDelegateTask, analyzeFailures, analyzeGitHubRepo, analyzeRepo, append, areStepsCompleted, assessReputation, bufferStream, buildDependencyGraph, buildFinalResult, buildPendingResult, buildPlanFromAnalysis, buildPrReviewProposal, buildDependencyGraph$1 as buildSkillDependencyGraph, buildTimeoutResult, calculateDelay, calculateDistributionStats, calculateMetricsTotals, calculateMinSampleSize, calculateRegret, calculateRoutingDistribution, calculateTokenCost, calculateTokenMetrics, calculateVoteWeight, calculateWinLoss, canExecuteSkill, canInfluenceDecisions, canPipelineProceed, canProceed, cancelExecution, categorizeOutcomeError, categorizeOutcomeErrorMessage, checkForResearchTriggers, checkPermissionBoundary, checkPipelinePolicy, checkpointToResult, chunkByDirectory, classifyTask, classifyTrust, cleanupCheckpoint, clearRegistryCache, clearTemplateCache, calculateBackoffDelay as cliCalculateBackoffDelay, categorizeError as cliCategorizeError, closeServer, collectRealVotes, collectStream, compareBenchmarks, compareProportions, compilePipelineGraph, compilePlan, compileSpecToGraph, computeAdaptiveThresholds, computeOutcomeReward, concatStreams, connectTransport, containsExpressions, countActiveSessions, createAbTestTracker, createAgentPairKey, createAgentStages, createStepExecutor as createAgentStepExecutor, createAllAdapters, createArchitectureExpert, createAttestation, createAuditLogger, createAuditTrail, createBenchmarkSummary, createCheckpoint, createCheckpointStore, createClaudeAdapter, createCliAdapter, createCliCircuitBreakerIntegration, createCliDetectionCache, createCodeExpert, createCollaborationSession, createCompositeRouter, createConsensusEngine, createContextItem, createCorePluginRegistry, createCorrelationTracker, createDashboard, createDashboardRenderer, createDecayOp, createDefaultDeps, createDefaultPolicyEngine, createDefaultPolicyFirewall, createDefaultRateLimiter, createDefaultRegistry, createDelegatePipeline, createDependencyError, createDevStageRegistry, createDocumentationExpert, createDryRunHandler, createEventBusBridge, createExecutionContext, createExecutionPlan, createFeedbackIntegration, createFeedbackSubscriber, createFullGitHubProvider, createGeminiAdapter, createGitHubAdapter, createGitHubProvider, createGraphAuditBridge, createHigherOrderVotingStrategy, createIncompleteResult, createInitialCostMetrics, createInitialSessionMetrics, createInitialTokenUsage, createInitializedWorkflowEngine, createInteractionGraph, createSwarmObserver as createInteractionSwarmObserver, createIsolatedRegistry, createLogger, createMcpLogger, createMcpNotifier, createOWVoting, createOllamaAdapter, createOpenAIAdapter, createOrchestrator, createOrchestratorFactory, createOutcomeFeedbackCollector, createOutcomeStorage, createPolicyContext, createPreferenceRouter, createProductionWorkflowEngine, createPromotionOp, createProtocolFactory, createRateLimiter, createRealWorkflowEngine, createResultAggregator, createRoutingDecision, createRoutingMetricsCollector, createSandboxExecutor, createScmProvider, createSecurityError, createSecurityExpert, createServer, createSkillComposer, createSkillDependencyGraph, createSkillLibrary, createSkillLoader, createStateComparisonVerifier, createStateGuard, createStateMachine, createStrategyDistiller, createStrategyFactory, createStream, createTaskOutcome, createTaskQueue, createTemplateRegistry, createTestingExpert, createTimer, createTokenCounter, createToolLogger, createTrackedAgent, createTrinityCoordinator, createValidationDashboard, createValidator, createVotingProtocol, createWaveScheduler, createWeightedVoting, createWorkflowEngineDeps, createWorkflowEngineDepsAsync, createWorkflowRouter, curateContext, customReducer, decomposeSpec, defaultConfig, delegateInputToTaskContract, denyMutationsWithoutModeRule, detectFailurePatterns, detectLatencyPatterns, detectSuccessPatterns, detectTrend, determineFinalStatus, emitCorroborationEvent, emitExecutionComplete, emitGraphExecutionEvent, emitNodeResults, emitNodeStarted, emitPipelineStageEvent, emitPolicyEvent, emitReputationEvent, emitSanitizationEvent, emitStageCompleted, emitStageFailed, emitStageStarted, emitStateUpdated, emitStepCompleted, emitThresholdUpdate, emitTrendDetected, emitTrustEvent, err, estimateTokens as estimateBenchmarkTokens, estimateTaskComplexity, estimateTokens$1 as estimateTokens, evaluatePolicy as evaluatePipelinePolicy, evaluatePolicy$2 as evaluatePolicy, evaluatePolicy$1 as evaluateSecurityPolicy, executeCliRetryLoop, executeDelegatePipeline, executeExpert, executeGraph, executeOrchestratePipeline, executeParallel, executeSpec, extractBooleanField, extractExpressions, extractNonErrorMessage, extractNumberField, extractSessionId, extractStateValue, extractStringArrayField, extractStringField, filterAvailableModels, filterBySeverity, filterStream, findActiveSession, findMissingDependencies, flushPipelineMemory, formatAdapterLatencyReport, formatBenchmarkReport, formatBenchmarkResults, formatComparisonResults, formatCompileError, fromArray, generateATL, generateBenchmarkReport, generateProposalId, generateSecurityPlan, generateWeatherReport, getAllTestCases, getAvailabilityCache, getAvailableClis, getAvailableRoles, getBenchmarkEnvironment, getBuiltInTemplates, getBuiltInTemplatesPath, getBuiltInTemplatesWithMetadata, getCapabilitiesForRole, getCategoriesByMinRiskLevel, getCliForModelId, getCompletedSteps, getCorroborationRules, getEventBusStats, getExecutionDuration, getExecutionOrder, getExpertRegistry, getFallbackChain, getGraphRegistry, getGraphWorkflowList, getKnownNexusVarNames, getOutcomeStore, getPipelineArtifactStore, getPipelinePluginRegistry, getPolicy, getPolicyMode, getRecommendedRole, getReferencedSteps, getRegistryManifest, getRequiredTrustTier, getSafetyCategory, getSafetyTaxonomySummary, getSkillSetForTask, getSkillsForTask, getStepResult, getSwarmObserver, getTemplate, getTestCasesByTags, getTimeoutForTask, getTimeoutForTaskAuto, getTokenEnvVars, getTopologicalOrder, getVariable, hasToken, ictmToExpertConfig, identifySessionsToRemove, inferICTM, initializeAgentSkills, initializeBuiltInTemplates, initializeEventBusBridge, isCancelled, isCliAvailable, isRetryableError as isCliRetryableError, isErr, isIncompleteResult, isMutatingAction, isOk, isReadOnlyAction, isRetryableError$1 as isRetryableError, isStepCompleted, isZodError, listTemplateIds, loadCheckpointState, loadTemplateFile, loadTemplatesFromDirectory, loadWorkflowFile, logPolicyAudit, logRateLimitAudit, logToolError, logToolInvocationAudit, logToolStart, logToolSuccess, logger, map, mapAuthorAssociation, mapErr, mapVoteDecisionToPrDecision, meanConfidenceInterval, mergeStreams, normalizeRepoId, ok, orchestrateInputToTaskContract, overwrite, parseATL, parseAgentPairKey, parseExpression, parseSpec, parseTemplateContent, parseWorkflowJson, parseWorkflowYaml, proportionConfidenceInterval, quickSelect, reduceStream, registerConsensusVoteTool, registerCorePlugins, registerCreateExpertTool, registerDelegateToModelTool, registerExecuteExpertTool, registerExecuteSpecTool, registerExpertsResource, registerExtractSymbolsTool, registerIssueTriageTool, registerListExpertsTool, registerListWorkflowsTool, registerMemoryQueryTool, registerMemoryStatsTool, registerMemoryWriteTool, registerModelsResource, registerOrchestrateTool, registerPrReviewTool, registerPrompts, registerQueryTraceTool, registerRegistryImportTool, registerRepoAnalyzeTool, registerRepoSecurityPlanTool, registerResearchAddSourceTool, registerResearchAddTool, registerResearchAnalyzeTool, registerResearchCatalogReviewTool, registerResearchDiscoverTool, registerResearchQueryTool, registerResearchResource, registerResearchSynthesizeTool, registerResources, registerRunGraphWorkflowTool, registerRunWorkflowTool, registerSearchCodebaseTool, registerTools, registerWeatherReportTool, requiresCitation, requiresCorroboration, resetAvailabilityCache, resetPipelineArtifactStore, resetPipelinePluginRegistry, resetRegistry, resolveExpression, resolveFallback, resolveInput, resolveScannerData, resolveStringExpressions, resolveToken, resolveV2Config, resolveWithFallbacks, resultToOutcome, runAdapterLatencyBenchmark, runAdaptiveOrchestrator, runBenchmark, runConsolidationBenchmark, runDevPipeline, runGraphPipeline, runIterativeConsensus, runMemoryBenchmarks, runOperationBenchmark, runPreconditions, runTokenBenchmark, runVerification, safePathsRule, safeValidateExpertConfig, sanitize, sanitizeInput, saveStageCheckpoint, scoreByHybrid, scoreByImportance, scoreByRecency, selectExperts, selectModel, setSwarmObserver, setVariable, sigmoidConfidence, skip, sleep, snapshotContext, startStdioServer, storeStepResult, take, takeUntil, tapStream, taskContractToToolResponse, toSuiteResult, toolError, toolSuccess, toolSuccessStructured, transformStream, unwrap, unwrapOr, validateAgentAction, validateCommand, validateCorroboration, validateDependencyGraph, validateEvaluationCriterion, validateExpertConfig, validateExpressions, validateICTM, validateNexusEnv, validateRequiredInputs, validateSafetyCategory, validateScenario, validateCapabilities as validateSkillCapabilities, validateSkillExecution, validateSkillProvenance, validateRBAC as validateSkillRBAC, validateTestCase, validateToolInput, validateWorkflow, validateWorkflowDependencies, withLogging, withRetry, withRetryWrapper, withTimeout };
|
|
31693
|
+
export { ALLOWED_COMMANDS, ARTIFACT_TYPES, AUDIT_PIPELINE_TEMPLATE, AbTestTracker, type ActionContext, type ActionRecord, type ActionValidationResult, type ActivationOptions, type ActivationStrategy, ActivationStrategySchema, type ActivityItem, type AdapterConfig, AdapterConfigSchema, type AdapterCreator, AdapterFactory, type AdapterLatencyConfig, type AdapterLatencyResult, AdapterModelError, RateLimiter$1 as AdapterRateLimiter, type RateLimiterConfig$1 as AdapterRateLimiterConfig, type RegisterOptions$1 as AdapterRegisterOptions, type AdapterScenarioResult, type AdaptiveOrchestratorOptions, type AdaptiveOrchestratorResult, type AdaptiveThresholdResult, type AgentAction, AgentActionSchema, type AgentActionType, AgentCapability, type AgentCluster, AgentError$1 as AgentError, type AgentEvent, AgentEventSchema, type AgentExecutorConfig, type AgentFinding, AgentFindingSchema, type AgentId, type AgentMessage, AgentMessageSchema, type AgentMessageType, type AgentPairKey, type AgentPerformance, AgentPerformanceSchema, type AgentResponse, type AgentRole, AgentRoleSchema, type AgentRoleType, type AgentRunResult, type AgentState$2 as AgentState, AgentStateMachine, type AgentStatus, StepExecutor as AgentStepExecutor, type AgentStopReason, type AgentTurn, type AgentVoteResult, type AgentVoteSummary, AgenticAdapter, type AgenticAdapterOptions, type ToolCall as AgenticToolCall, type ToolResult$1 as AgenticToolResult, type AggregatedResult, type AggregationMetadata, type AggregationStrategy, type AggregatorInput, type AggregatorOptions, type ApiDocumentation, type ApiEndpoint, type ApiType, type AppConfig, AppConfigSchema, type ArchitectureAnalysisResult, type ArchitectureDecision, ArchitectureExpert, type ArchitectureExpertOptions, type ArchitecturePattern, type ArchitectureStyle, type Artifact, type ArtifactFilter, type ArtifactRef, ArtifactRefSchema, ArtifactStore, type ArtifactStoreOptions, type ArtifactType, type AuditActor, AuditActorSchema, type AuditCategory, AuditCategorySchema, AuditError, type AuditEvent$1 as AuditEvent, type AuditEventInput, AuditEventInputSchema, AuditEventSchema, type AuditHandlerConfig, type AuditLogConfig, AuditLogConfigSchema, AuditLogger, type AuditOutcome, AuditOutcomeSchema, type AuditQueryCriteria, AuditQueryCriteriaSchema, type AuditResource, AuditResourceSchema, type AuditSeverity, AuditSeveritySchema, AuditTrail, type AuthorizationMethod, AuthorizationMethodSchema, AvailabilityCache, type AvailabilityCacheConfig, BIAS_CATEGORY, BUILT_IN_EXPERTS, BUILT_IN_RULES, BUILT_IN_TEMPLATES, BaseAdapter, type BaseAdapterConfig, type BaseAdapterOptions, BaseAgent, type BaseAgentOptions, BaseAgentOptionsSchema, BaseCliAdapter, type BaseMcpToolDeps, type BenchmarkAdapter, type BenchmarkComparison, type BenchmarkConfig, type BenchmarkEnvironment, type BenchmarkOperation, type BenchmarkOrchestratorOptions, type BenchmarkReport, type BenchmarkRunContext, type BenchmarkRunSummary, type BenchmarkSuiteResult, type BenchmarkSummary, type BenchmarkThresholds, type BestSolution, BestSolutionSchema, type BottleneckInfo, type BuiltInExpertType, BuiltInExpertTypeSchema, CHECKPOINT_SCHEMA_VERSION, CLAUDE_MODELS, CLAUDE_MODEL_ALIASES, DEFAULT_CACHE_CONFIG as CLI_DEFAULT_CACHE_CONFIG, DEFAULT_CAPABILITIES$1 as CLI_DEFAULT_CAPABILITIES, DEFAULT_COMPOSITE_CONFIG as CLI_DEFAULT_COMPOSITE_CONFIG, CLI_TIMEOUT_PROFILES, CLI_VERSION_REQUIREMENTS, COMPLEXITY_ORDER, CORE_PLUGINS, type CapabilityProfile, type CapacityStatus, type Checkpoint, type PipelineStage as CheckpointPipelineStage, type CheckpointSummary, type FailureCategory as CircuitBreakerFailureCategory, type CircuitProtectedResult, type CircuitState, type ClaimValidation, type ClassifyInput, type ClassifyResult, ClaudeAdapter, type ClaudeAdapterConfig, ClaudeCliAdapter, type ClaudeCliResponse, ClaudeResponseParser, type CliAdapterConfig, type CacheStats as CliCacheStats, type CapabilityProfile$1 as CliCapabilityProfile, type CliCircuitBreakerConfig, CliCircuitBreakerIntegration, type CliCircuitHealthStatus, CliDetectionCache, type CliDetectionCacheConfig, CliDetectionCacheConfigSchema, type CliError, type CliErrorCode, type ExecutionOptions$1 as CliExecutionOptions, type CliHealthResult, type ModelInfo as CliModelInfo, type CliName, type CliResponse, type CliRetryLoopConfig, type CliRetryResult, type CliTask, type TaskComplexity as CliTaskComplexity, type TokenUsage$2 as CliTokenUsage, type CliTransport, type CodeAnalysisResult, type CodeChange, CodeChangeSchema, CodeExpert, type CodeExpertOptions, CodexCliAdapter, type CodexCliResponse, CodexMcpAdapter, CodexResponseParser, type CollaborationConfig, CollaborationConfigSchema, type CollaborationMessage, type CollaborationPattern, CollaborationPatternSchema, type CollaborationResult, CollaborationSession, type CollaborationSessionOptions, type CollectRealVotesOptions, CompactDashboardRenderer, type ComparisonResult, type CompileOptions, type CompileResult$2 as CompileResult, type CompiledGraph, type CompiledPipeline, type CompletionRequest, type CompletionResponse, type ComplexityLevel, ComplexityLevelSchema, type ComplianceStatus, CompositeRouter, type CompositeRouterConfig, CompositeRouterConfigSchema, type CompositeRouterStats, type CompositeRoutingDecision, CompositeRoutingError, type CompositionStep, type CompositionValidation, type ComputedReward, type ConfidenceInterval, ConfigError, type ExpertConfig$1 as ConfigExpertConfig, ExpertConfigSchema$1 as ConfigExpertConfigSchema, type ExpertDefinition$1 as ConfigExpertDefinition, ExpertDefinitionSchema as ConfigExpertDefinitionSchema, type Conflict, type ConflictResolver, type ConflictWarning, type ConsensusAlgorithm, ConsensusAlgorithmSchema, ConsensusEngine, type ConsensusEngineConfig, ConsensusEngineConfigSchema, ConsensusError, type ConsensusMetrics, ConsensusMetricsSchema, ConsensusProtocol, type ConsensusResult, ConsensusResultSchema, type ConsensusStats, type ConsensusVoteDeps, type ConsensusVoteInput, ConsensusVoteInputSchema, type ConsensusVoteResponse, type ConsolidatedFinding, type ConsolidationBenchmarkResult, type ConsolidationOperation, type ContentBlock, ContentPriority, type ContextBudget, ContextBudgetSchema, type ContextFilter, ContextFilterSchema, type ContextItem, ContextManager, type ContextManagerConfig, ContextManagerConfigSchema, type ContextPruneStrategy, ContextPruneStrategySchema, ContextPruner, type ContextPrunerConfig, ContextPrunerConfigSchema, type ContextStats, type ContributionScore, type CorePluginRegistrationResult, type CorrelationCoefficient, CorrelationCoefficientSchema, type CorrelationMatrix, CorrelationTracker, type CorrelationTrackerStats, CorrelationTrackerStatsSchema, type CorroborationEvent, type CorroborationResult, type CorroborationRule, type CostEstimate, CostEstimateSchema, type CoverageAnalysis, type CoverageMetrics, CoverageMetricsSchema, type CreateExecutionContextOptions, type CreateExpertDeps, type CreateExpertInput, CreateExpertInputSchema, type CreateExpertOptions, type CreateExpertResponse, type CreateForestInput, type CreateNodeInput, type CreatePROptions, type CreateScmProviderConfig, type CreateSkillOptions, type CreateStreamOptions, type CreateTreeInput, type CriterionFailure, type CriterionResult, CriterionResultSchema, CriterionType, CriterionTypeSchema, type CriterionTypeType, type CrossTreeInfo, CrossTreeInfoSchema, type CrossTreeStrategy, CrossTreeStrategySchema, type CuratedContextItem, type CurationResult, DECEPTION_CATEGORY, DEFAULT_ACTIVATION_OPTIONS, DEFAULT_ADAPTER_LATENCY_CONFIG, DEFAULT_BENCHMARK_CONFIG, DEFAULT_BUDGET, DEFAULT_COLLECT_STREAM_MAX_CHUNKS, DEFAULT_COMPOSER_CONFIG, DEFAULT_CONSENSUS_CONFIG, DEFAULT_DASHBOARD_CONFIG, DEFAULT_DASHBOARD_RENDER_OPTIONS, DEFAULT_DISTILLER_CONFIG, DEFAULT_EXECUTION_TIME_MS, DEFAULT_FEEDBACK_COLLECTOR_CONFIG, DEFAULT_FEEDBACK_INTEGRATION_CONFIG, DEFAULT_FOREST_CONFIG, DEFAULT_HIGHER_ORDER_CONFIG, DEFAULT_MAX_RETRIES, DEFAULT_MEMORY_BENCHMARK_CONFIG, DEFAULT_OUTCOME_STORAGE_CONFIG, DEFAULT_PATH_SCORING_OPTIONS, DEFAULT_PERMISSIONS, DEFAULT_POLICIES, DEFAULT_PREFERENCE_ROUTER_CONFIG, DEFAULT_RBAC, DEFAULT_RESOURCE_LIMITS, DEFAULT_RETRY_CONFIG, DEFAULT_ROLE_MAPPINGS, DEFAULT_SCENARIOS, DEFAULT_SKILL_LIBRARY_CONFIG, DEFAULT_SKILL_LOADER_CONFIG, DEFAULT_STATISTICAL_OPTIONS, DEFAULT_SWARM_OBSERVER_CONFIG, DEFAULT_TIMEOUTS, DEFAULT_TIMEOUT_PROFILE, DEFAULT_TRINITY_CONFIG, DEFAULT_VOTING_PROTOCOL_CONFIG, DEFAULT_WAVE_CONFIG, DEFAULT_WEIGHTED_VOTING_CONFIG, DEV_PIPELINE_TEMPLATE, type DagEdge, DagEdgeSchema, Dashboard, type DashboardConfig, DashboardConfigSchema, type DashboardFilter, type DashboardFormat, type DashboardHealthIndicators, type DashboardOutcome, type DashboardRenderOptions, type DashboardSnapshot, type DashboardSummary, type DashboardUpdateOptions, type DecomposeError, type DelegateDeps, type DelegateInput, type DelegateInputLike, DelegateInputSchema, type DelegateOutput, DelegateOutputSchema, type DependencyError, type DependencyErrorCode, DependencyErrorCodeSchema, DependencyErrorSchema, DependencyGraph, type DependencyStructure, type DevPipelineOptions, type DevPipelineResult, type DevPipelineStages, DirectedInteractionGraph, type DistilledRule, type DistillerConfig, type DistillerStats, type DistributionStats, DocumentationExpert, type DocumentationExpertOptions, type DocumentationResult, type DocumentationSection, type DryRunResult, type DynamicExpert, DynamicExpertManager, type DynamicExpertSpec, END, EXPERT_CAPABILITIES, EXPERT_DEFAULT_CAPABILITIES, EXPERT_DEFAULT_TEMPERATURES, EXPERT_TYPE_TO_ROLE, type EnvValidationResult, ErrorCode, type ErrorPayload, type EvaluationCriterion, EvaluationCriterionSchema, EventBus, type EventBusBridgeOptions, type EventBusBridgeResult, type EventBusOptions, type EventFilter, type EventHandler, type EventPayload, type EventType, type ExecuteExpertDeps, type ExecuteExpertInput, ExecuteExpertInputSchema, type ExecuteExpertResponse, type ExecuteSpecDeps, type ExecuteSpecInput, ExecuteSpecInputSchema, type ExecutionContext$1 as ExecutionContext, type ExecutionMode, type ExecutionPhase$1 as ExecutionPhase, type ExecutionPlan$2 as ExecutionPlan, type ExecutionStage, ExpectedOutcome, ExpectedOutcomeSchema, type ExpectedOutcomeType, type ExperienceRecord, type ExperienceStep, type ExperimentDefinition, type ExperimentExport, type ExperimentOutcome, type ExperimentResult, type ExperimentStatus, type ExperimentSummary, type ExperimentVariant, Expert, type ExpertAssignment, ExpertAssignmentSchema, type ExpertBridgeResult, ExpertCollaborationPattern, type ExpertCollaborationPatternType, type ExpertConfig, ExpertConfigSchema, type ExpertDefinition, type ExpertDomain, ExpertDomainSchema, ExpertFactory, ExpertFactoryAdapter, type ExpertInfo, type ExpertMatch, ExpertMatchSchema, type ExpertOptions, ExpertOptionsSchema, type ExpertOutput, ExpertOutputSchema, type ExpertParticipation, ExpertParticipationSchema, type RegisterOptions as ExpertRegisterOptions, ExpertRegistry$1 as ExpertRegistry, type ExpertResult, type ExpertResultSummary, type ExplorationEvent, ExplorationEventSchema, type ExplorationEventType, ExplorationEventTypeSchema, type ExpressionType, type ExtractSymbolsDeps, ExtractSymbolsInputSchema, FALLBACK_SCANNER_DATA, FactoryError, type FailureAnalysis, type AnalysisError as FailureAnalysisError, type FailurePattern, FailurePatternSchema, type FailureType, type FallbackBehavior, type FallbackEntry, type FeedbackCollectorConfig, FeedbackCollectorConfigSchema, FeedbackIntegration, type FeedbackIntegrationConfig, type FeedbackLoopStats, type FeedbackMessage, type RoutingDecision as FeedbackRoutingDecision, RoutingDecisionSchema as FeedbackRoutingDecisionSchema, FileAuditStorage, type FileReference, FileReferenceSchema, type FindingVote, FindingVoteSchema, type Artifact$1 as FirewallArtifact, type PolicyContext$1 as FirewallPolicyContext, type PolicyDecision$2 as FirewallPolicyDecision, type PolicyRule$1 as FirewallPolicyRule, type FirewallResult, type Forest, type ForestConfig, ForestConfigSchema, type ForestId, type ForestPruningStrategy, ForestPruningStrategySchema, type ForestResult, ForestResultSchema, type ForestState, ForestStateSchema, type ForestStatistics, ForestStatisticsSchema, type FullCapableProvider, GEMINI_MODELS, GEMINI_MODEL_ALIASES, GENERAL_PIPELINE_TEMPLATE, GeminiAdapter, type GeminiAdapterConfig, GeminiCliAdapter, type GeminiCliResponse, GeminiResponseParser, type GeneratedTest, GeneratedTestSchema, type GitHubInput, GitHubProvider, GitHubReviewer, GitHubUserInfo, type GitHubUserMetadata, type GitHubUserRole, GitHubUserRoleSchema, GraphBuilder, type GraphCompileError, type GraphEdge, type GraphEdgeDisplay, type GraphEvent, type GraphExecuteOptions, type GraphExecutionAuditEvent, type GraphExecutionResult, type GraphNode, type GraphPipelineOptions, type GraphPipelineResult, type GraphState, type GraphStats, type GraphSummary, type GraphWorkflowInfo, HARM_EMOTIONAL_CATEGORY, HARM_FINANCIAL_CATEGORY, HARM_PHYSICAL_CATEGORY, type HealthStatus, type HigherOrderVotingConfig, HigherOrderVotingConfigSchema, type HigherOrderVotingResult, HigherOrderVotingResultSchema, HigherOrderVotingStrategy, type HookError, HostileInputFirewall, type IAbTestTracker, type IAgent, type IAgenticAdapter, type IArtifactStore, type IAuditLogger, type IAuditStorage, type ICTMConfig, ICTMConfigSchema, type ICTMInferenceResult, ICTMInferenceResultSchema, type ICheckpointStore, type ICircuitBreaker, type ICliAdapter, type ICliCircuitBreakerIntegration, type ICliDetectionCache, type ICliResponseParser, type ICollaborationProtocol, type ICompositeRouter, type IConsensusEngine, type ICorrelationTracker, type IDashboard, type IDashboardRenderer, type IEventBus, type IFeedbackIntegration, type IHigherOrderVoting, type ISwarmObserver as IInteractionObserver, type ILogger, type IMcpNotifier, type IMemoryBackend, type IModelAdapter, INSTRUCTION_SAFETY_CATEGORY, type IOrchestrationObserver, type IOrchestrator, type IOrchestratorFactory, type IOutcomeFeedback, type IOutcomeStorage, type IPipelineStage, type IPluginRegistry, type IPolicyEngine, type IPolicyFirewall, type IPreferenceDataStore, type IRoutingMemory$1 as IRoutingMemory, type ISQLiteDatabase, type ISQLiteStatement, type ISandboxExecutor, type IScmProvider, type IScmReviewer, type IScmUserInfo, type ISkillDependencyGraph, type ISkillLoader, type ITaskTracker, type ITemplateRegistry, type ITokenCounter, type IVotingProtocol, type IVotingStrategy, type IWeightedVoting, type IWorkflowEngine, type IWorkflowRouter, type ImprovementSuggestion, InMemoryAuditStorage, InMemoryCheckpointStore, InMemoryPreferenceStore, type IncompleteResult, type IncompleteSeverity, type IndependentSubset, IndependentSubsetSchema, type InjectionFlag, InjectionFlagSchema, type InputBinding, type InputDefinition, type InputDefinitionInput, type InputDefinitionOutput, InputDefinitionSchema, type InputType, InputTypeSchema, type InteractionEdge, type InteractionGraph, type SwarmObserverConfig as InteractionObserverConfig, SwarmObserverConfigSchema as InteractionObserverConfigSchema, type InteractionOutcome, SwarmObserver as InteractionSwarmObserver, type InvalidVar, type IssueFilters, type IssueReference, IssueReferenceSchema, type IssueTriageDeps, type IssueTriageInput, IssueTriageInputSchema, type IssueTriageResponse, type IterativeConsensusConfig, type IterativeConsensusResult, JsonDashboardRenderer, KNOWN_SECTIONS, type KnownSection, type LanguageMatrixEntry, type LatencyMetrics, LatencySampler, type LatencyScenario, type LearningProgress, type LibraryStatistics, type ListExpertsDeps, type ListExpertsInput, ListExpertsInputSchema, type ListExpertsResponse, type ListWorkflowsDeps, type ListWorkflowsInput, ListWorkflowsInputSchema, type ListWorkflowsResponse, type LoadedSkillSet, LoadedSkillSetSchema, type LogContext, type LogEntry, type LogLevel, type LogPolicyAuditOpts, type LogRateLimitAuditOpts, type LogToolInvocationOpts, type LoggingConfig, LoggingConfigSchema, MANIPULATION_CATEGORY, MAX_DIFF_LENGTH, MAX_DYNAMIC_EXPERTS, MAX_EXECUTION_TIME_MS, MEM0_TARGETS, MIN_EXPERTS_FOR_PATTERN, MODEL_CAPABILITIES, type IExpertFactory as McpExpertFactory, type McpLogContext, type McpLogLevel, RateLimiter as McpRateLimiter, type RateLimiterConfig as McpRateLimiterConfig, type MemoryBenchmarkConfig, type MemoryEntry, MemoryError, MemoryImportance, type MemoryMetadata, type MemoryPayload, type MemoryQueryInput, MemoryQueryInputSchema, MemoryStatsInputSchema, type MemoryWriteInput, MemoryWriteInputSchema, type MergePROptions, type Message, type MessagePayload, type MessageRole, ModelCapability, type ModelConfig, ModelConfigSchema, ModelError, type ModelMetrics, type ModelPerformanceSummary, type ModelPreference, ModelPreferenceSchema, type ModelSelection, ModelSelectionSchema, type ModelTiers, ModelTiersSchema, NOOP_NOTIFIER, NOOP_PROGRESS, NexusError, type NexusErrorOptions, NoAdapterError, type NodeHandler$1 as NodeHandler, type NodeHandlerFactory, type NodeHook, type NodeHookContext, type NodeId, type NodeResult, type NodeState, NodeStateSchema, OLLAMA_MODELS, OPENAI_MODELS, OPENAI_MODEL_ALIASES, OWVoting, type OWVotingOptions, type AgentState$1 as ObserverAgentState, type CostMetrics as ObserverCostMetrics, type RoutingDecision$2 as ObserverRoutingDecision, type SessionMetrics as ObserverSessionMetrics, type TokenUsage$1 as ObserverTokenUsage, type TrackedAgent as ObserverTrackedAgent, OllamaAdapter, type OllamaAdapterConfig, OpenAIAdapter, type OpenAIAdapterConfig, OpenCodeCliAdapter, type OperationBenchmark, type OperationComparison, type OrchestrateDeps, type OrchestrateInput, type OrchestrateInputLike, OrchestrateInputSchema, type OrchestrateOutput, OrchestrateOutputSchema, OrchestrationError, type OrchestrationObserverEvent, type OrchestrationObserverListener, type OrchestrationStats, OrchestrationUnavailableError, Orchestrator, type OrchestratorDefinition, OrchestratorError, type OrchestratorErrorCode, type OrchestratorExecuteOptions, OrchestratorFactory, type OrchestratorFactoryConfig, type OrchestratorOptions, OrchestratorOptionsSchema, type OrchestratorResult, type OrchestratorStep, type OrchestratorType, type OutcomeClass, type OutcomeFailureCategory, OutcomeFailureCategorySchema, OutcomeFeedbackCollector, type OutcomeProcessedCallback, type OutcomeRecord, type OutcomeStorageConfig, OutcomeStorageConfigSchema, OutcomeStorageError, OutcomeStore, type OutcomeStoreConfig, type TaskOutcome$2 as OutcomeTaskRecord, TaskOutcomeSchema$2 as OutcomeTaskSchema, PIPELINE_EVENT_TYPES, PIPELINE_STATE_KEYS, PIPELINE_TEMPLATES, PLUGIN_TRUST_LEVELS, PRIVACY_CATEGORY, PROMPT_DEFINITIONS, PR_REVIEW_ROLES, type PairwiseVotingHistory, PairwiseVotingHistorySchema, type ParallelOptions, ParallelProtocol, ParseError, type ParsedExpression, type ParsedSpec, ParsedSpecSchema, type ParsedTemplate, type PathAccessRule, type PathScore, type PathScoreBreakdown, PathScoreBreakdownSchema, PathScoreSchema, type PathScoringOptions, type PatternMetrics, type PatternOutcome, type PatternType, type PerformanceMatrixEntry, type PerformanceSummary, type PersistentDistillerConfig, PersistentOutcomeStore, type PersistentOutcomeStoreConfig, PersistentStrategyDistiller, type PipelineBridgeResult, type PipelineCheckpointState, type PipelineContext, type PipelineEdge, type PipelineError, type PipelineEvent, type PipelineEventType, type PipelineExecuteOptions, type PipelineGraphResult, type PipelineMetrics, type PipelineMode, type PipelinePlugin, type PolicyMode as PipelinePolicyMode, type PolicyViolation as PipelinePolicyViolation, type PipelineResult, type PipelineRole, PipelineRunner, type PipelineStage$1 as PipelineStage, type PipelineStageData, type PipelineTask, type PipelineTemplate, type PipelineType, type PlanCompileOptions, type PlanContract, PlanContractSchema, type PluginManifest, PluginManifestSchema, PluginRegistry, type PluginRegistryOptions, type PluginTrustLevel, type ValidationError as PluginValidationError, type PolicyConfig, PolicyConfigSchema, type PolicyContext, type PolicyDecision, type PolicyDecisionAuditOpts, PolicyEngine, PolicyError, type PolicyEvalResult, type PolicyEvaluation, type PolicyEvaluatorOptions, PolicyFirewall, type PolicyFirewallConfig, type PolicyGateEvent, type PolicyGateSpec, PolicyGateSpecSchema, type PolicyMode$1 as PolicyMode, type PolicyRule, type PolicyViolation$1 as PolicyViolation, type PrReviewDecision, type PrReviewDeps, type PrReviewInput, PrReviewInputSchema, type PrReviewResponse, type PrReviewVote, type PreconditionConfig, type PreconditionOutcome, type PreconditionResult, type PreferenceDataPoint, type PreferenceFilter, type PreferenceModelStats, type PreferencePrediction, type PreferenceRecord, PreferenceRouter, type PreferenceRouterConfig, PreferenceRouterConfigSchema, type PreferenceRoutingDecision, type PreferenceSignal, type PreferredCapability, type ProbeFn, type ProbeResult, type PromptDefinition, type PromptMessage, type PromptRegistrationResult, ProofOfLearningStrategy, type Proposal, type ProposalId, ProposalSchema, type ProposalState, type ProposalStatus, ProposalStatusSchema, ProtocolFactory, type ProtocolOptions, type ProvenanceEntry, type ProviderConfig, ProviderConfigSchema, type PruneOptions, type PruneResult, PruningStrategy, type QaReviewResult, type QualityAttribute, type QualityMetrics, type QualityRequirement, type QualityScorer, type QualitySignals, QualitySignalsSchema, QueryFeatureExtractor, type QueryFeatures, type QueryOptions, type QueryTraceInput, QueryTraceInputSchema, REJECTION_CATEGORIES, RESEARCH_PIPELINE_TEMPLATE, RISK_AWARENESS_CATEGORY, ROBUSTNESS_CATEGORY, ROLE_DEFAULT_TRUST, type RateLimitAuditOpts, RateLimitError, type RateLimitExceeded, type RateLimiterState, type ReasoningDepth, ReasoningDepthSchema, type ReasoningNode, type ReasoningNodeMetadata, ReasoningNodeMetadataSchema, ReasoningNodeSchema, type ReasoningStepType, ReasoningStepTypeSchema, type ReasoningTree, ReasoningTreeSchema, type RecordExecutionOptions, type RecordInteractionOptions, type RecordOutcomeParams, type RegistrationError, RegistryError, type RegistryImportInput, RegistryImportInputSchema, type RegistryRelationship, type RegistryScanner, type RegistryStats, type RegretAnalysis, type RejectionCategory, RejectionCategorySchema, type RepoAnalysis, type RepoAnalyzeDeps, type RepoAnalyzeInput, RepoAnalyzeInputSchema, type RepoSecurityPlan, type RepoSecurityPlanDeps, type RepoSecurityPlanInput, RepoSecurityPlanInputSchema, type ReportOptions, type ReputationAssessment, ReputationCache, type ReputationEvent, type ResearchAddDeps, type ResearchAddInput, ResearchAddInputSchema, type ResearchAddResponse, type ResearchAddSourceDeps, type ResearchAddSourceInput, ResearchAddSourceInputSchema, type ResearchAddSourceResponse, type ResearchAnalyzeDeps, type ResearchAnalyzeInput, ResearchAnalyzeInputSchema, type ResearchAnalyzeResponse, type ResearchCatalogReviewDeps, ResearchCatalogReviewInputSchema, type ResearchDiscoverDeps, type ResearchDiscoverInput, ResearchDiscoverInputSchema, type ResearchDiscoverResponse, type ResearchQueryDeps, type ResearchQueryInput, ResearchQueryInputSchema, type ResearchQueryResponse, type ResearchSynthesizeDeps, type ResearchSynthesizeInput, ResearchSynthesizeInputSchema, type ResearchTriggerConfig, type ResolveResult, type ResourceLimits, type ResourceMetrics, type ResourceUsage, type Result, ResultAggregator, type ResultConflict, type ResultSubmissionMessage, type ResultSummary, type RetryAttemptInfo, type RetryConfig, RetryExhaustedError, type ReviewCapableProvider, ReviewProtocol, type ReviewRequestMessage, type ReviewResponseMessage, ReviewResponseMessageSchema, RiskLevel, RiskLevelSchema, type RiskLevelType, type RoleSkillMapping, type RoundSummary, type RouterType, type DashboardConfig$1 as RoutingDashboardConfig, type RoutingDecisionRecord, RoutingMemoryError, type RoutingMemoryExport, type RoutingMemoryStats$1 as RoutingMemoryStats, type RoutingMetrics, RoutingMetricsCollector, type RoutingMetricsConfig, type RoutingRecord, type RuleStatus, type RulesSnapshot, RulesSnapshotSchema, type RunAgentArgs, type RunGraphWorkflowDeps, type RunGraphWorkflowInput, RunGraphWorkflowInputSchema, type RunGraphWorkflowResponse, type RunWorkflowDeps, type RunWorkflowInput, RunWorkflowInputSchema, SAFETY_CATEGORIES, SAFETY_CATEGORY_MAP, PROVIDER_ENV_KEYS as SDK_PROVIDER_ENV_KEYS, DEFAULT_CAPABILITIES as SKILL_DEFAULT_CAPABILITIES, SKILL_PERMISSIONS, SQLiteOutcomeStorage, STAGE_TYPES, START, type SafetyCategory, SafetyCategoryId, SafetyCategoryIdSchema, type SafetyCategoryIdType, SafetyCategorySchema, type SafetyTaxonomySummary, type SafetyTestCase, SafetyTestCaseSchema, type SandboxConfig, type SandboxExecutionOptions, type SandboxMode, type SandboxPolicy, type SandboxResult, type SanitizationEvent, type SanitizedInput, SanitizedInputSchema, type SanitizerConfig, SanitizerConfigSchema, type ScannerData, type ScannerEntry, type ScannerRecommendation, type ScannerRegistryManifest, type ScenarioError, type ScenarioResult, ScenarioResultSchema, type ScmComment, type ScmCommentDetail, ScmError, type ScmFileChange, type ScmIssue, type ScmIssueDetail, type PRStatus as ScmPRStatus, type ScmPlatform, type ScmPullRequest, type ScmPullRequestDetail, type ScmReviewDecision, type ScmToken, type ScmUserMetadata, type ScoreBreakdown, ScoreBreakdownSchema, SdkAdapter, type SdkAdapterConfig, type SdkProviderId, type SearchCodebaseDeps, SearchCodebaseInputSchema, type SecurityAnalysisResult, type AuditEvent as SecurityAuditEvent, type AuditQuery as SecurityAuditQuery, type SecurityCapability, type SecurityConfig, SecurityConfigSchema, SecurityError, type SecurityErrorCode, SecurityErrorCodeSchema, type SecurityEventAuditOpts, SecurityExpert, type SecurityExpertOptions, type SecurityFocusArea, type PolicyDecision$1 as SecurityPolicyDecision, SelectionError, type ExpertRegistry as SelectionExpertRegistry, type SelectionOptions, SelectionOptionsSchema, type SelectionResult$1 as SelectionResult, SelectionResultSchema, SequentialProtocol, type SerializedError, type ServerConfig, type ServerError, type ServerInstance, type SessionEvent, type SessionState, type SessionStatus, SessionStatusSchema, type SharedConclusion, SharedConclusionSchema, type SharedInsight, SharedInsightSchema, type SharedMemoryEntry, SharedMemoryStore, type SharedMemoryTag, SimpleAgent, SimpleMajorityStrategy, type Skill, AgentRoleSchema$2 as SkillAgentRoleSchema, type SkillAttestation, SkillAttestationSchema, type SkillCapabilities, SkillCapabilitiesSchema, type SkillCategory, type SkillComplexity, SkillComposer, type SkillComposerConfig, type SkillComposition, type SkillCompositionRequest, type SkillDependency, SkillDependencyGraph, SkillDependencySchema, type SkillDependencyType, SkillDependencyTypeSchema, type SkillExample, type SkillExecution, type SkillExecutionStatus, SkillLibrary, type SkillLibraryConfig, SkillLoader, type SkillLoaderConfig, SkillLoaderConfigSchema, type SkillLoaderError, type SkillLoaderErrorCode, SkillLoaderErrorSchema, type SkillMetrics, type SkillParameter, type SkillPermission, SkillPermissionSchema, type SkillProvenance, SkillProvenanceSchema, type SkillQuery, type SkillRBAC, SkillRBACSchema, type SkillSearchResult, type SkillSecurityError, SkillSecurityErrorSchema, type SkillStore, type SkillWithMetrics, type SourceCitation, SourceCitationSchema, type SpanId, type SpecExecutionError, type SpecExecutionOptions, type SpecExecutionResult, type SpecParseError, type StageCompletedOptions, type StageContext, type StageFailedOptions, type StageOutput, type StageRegistry, type StageResult, StageResultSchema, type StageSpec, StageSpecSchema, type StageStartedOptions, type StageType, type StateChangeCallback, type StateChangePayload, type StateFieldSchema, type StateMachineOptions, type StateReducer, type StateSchema, type StateTransition, type StateTransitionEvent, type StatisticalOptions, type StatusUpdateMessage, type StepExecutionOptions, type StepExecutor$1 as StepExecutor, type StepExecutorDeps, type StepResult, type StepResultSummary, type StopReason, type StoredModelStats, type StoredReward, type StoredRoutingDecision, type StoredTaskOutcome, type StrategyAction, StrategyDistiller, StreamCancelledError, type StreamChunk, StreamController, StreamError, type StreamState, AgentRoleSchema$1 as StrictAgentRoleSchema, InputDefinitionSchema$1 as StrictInputDefinitionSchema, WorkflowDefinitionSchema$1 as StrictWorkflowDefinitionSchema, WorkflowStepSchema$1 as StrictWorkflowStepSchema, type StrippedElement, StrippedElementSchema, type SubTask, SubTaskSchema, SubprocessCliAdapter, type SubtaskNode, SubtaskNodeSchema, type SubtaskPriority, SubtaskPrioritySchema, type SubtaskStatus, SubtaskStatusSchema, type SubtaskType, SubtaskTypeSchema, SupermajorityStrategy, type SuspiciousSignal, SuspiciousSignalSchema, type AgentState as SwarmAgentState, type SwarmHealthMetrics$1 as SwarmHealthMetrics, type SycophancyIndicator, type SycophancyReport, type SynthesizedResult, SynthesizedResultSchema, type SystemComponent, TASK_STATUSES, TASK_TYPE_EXPERTS, TEMPLATE_CATEGORIES, TEMPLATE_KEYWORDS, TRINITY_ROLE_MAX_TOKENS, TRINITY_ROLE_PROMPTS, TRINITY_ROLE_TEMPERATURES, TRUST_TIER_NUMERIC, type Task$1 as Task, type TaskAnalysis, TaskAnalysisSchema, type TaskAssignmentMessage, type TaskClassification, type TaskCommitment, type TaskContext, type TaskContract, TaskContractSchema, type TaskDag, TaskDagSchema, type TaskId, type TaskOutcome$1 as TaskOutcome, type TaskOutcomeRecord, TaskOutcomeSchema$1 as TaskOutcomeSchema, type TaskPayload, type TaskProfileSummary, TaskQueue, type TaskRequirements, type TaskResult, TaskSchema, type TaskSignals, type TaskStatus, type TaskToolResponse, type TaskTypePerformance, type TemplateCategory, TemplateCategorySchema, type TemplateMetadata, TemplateMetadataSchema, TemplateRegistry, type TerminationReason, TerminationReasonSchema, type TestQuality, type TestingAnalysisResult, TestingExpert, type TestingExpertOptions, type TextContent, TextDashboardRenderer, type ThinkerOutput, type ThresholdUpdateDetail, type ThroughputMetrics, type TimeConstraint, type TimePeriod, TimeoutError, type TimeoutProfile, type TokenBenchmarkResult, TokenCountError, type TokenCountResult, TokenCounter, type TokenCounterConfig, TokenCounterProvider, type TokenMetrics, type TokenResolverConfig, type TokenStrategy, type TokenUsage, type ToolCompletedEvent, type ToolDefinition, type ToolInvocationAuditOpts, type ToolInvokedEvent, type ToolPayload, type ToolRegistrationOptions, type ToolRegistrationResult, type ToolResult, type ToolSet, ToolSetSchema, type TraceId, type TrackedTask, type TransitionErrorCallback, type TreeId, type TreeState, TreeStateSchema, type TreeStatistics, TreeStatisticsSchema, type Trend, type TrendDetectedDetail, type TrinityConfig, TrinityConfigSchema, TrinityCoordinator, type TrinityExecuteOptions, type TrinityPhase, type TrinityPhaseResult, TrinityPhaseSchema, type TrinityResult, type TrinityRole, type TrinityRoleConfig, TrinityRoleSchema, TrinityStopReasonSchema, type TrustClassificationEvent, type TrustTier, TrustTierSchema, UnanimousStrategy, type UnknownVar, type Unsubscribe, type V2Config, type V2Mode, VERSION, VOTING_THRESHOLDS, ValidationDashboard, ValidationError$1 as ValidationError, type ValidationIssue, type VariantStats, type VerificationResult, type VerifierOutput, VerifierVerdictSchema, type VersionRequirements, type VersionStatus, type Violation, ViolationSchema, type Vote, type VoteCounts, type VoteDecision$1 as VoteDecision, VoteDecisionSchema$1 as VoteDecisionSchema, type VoteDecisionStatus, type VoteMessage, VoteMessageSchema, type VoteResult, VoteSchema, type VotingObservation, VotingObservationSchema, type VotingOutcome, VotingProtocol, type VotingProtocolConfig, VotingProtocolConfigSchema, type VotingProtocolResult, type VotingRound, type VotingRoundPhase, VotingRoundPhaseSchema, type VotingRoundStatus, VotingRoundStatusSchema, type VotingSession, VotingStrategyFactory, type Vulnerability, VulnerabilitySchema, VulnerabilitySeveritySchema, type WaveExecutionResult, type WaveResult, WaveScheduler, type WaveSchedulerConfig, type WaveTask, type WaveTaskExecutor, type WaveTaskResult, WeatherReportInputSchema, type WeightedAgentRecord, type WeightedConsensusResult, type WeightedVoteCounts, WeightedVoting, type WeightedVotingConfig, type WeightedVotingOptions, type WinLossAnalysis, type WithRetryOptions, type WorkChunk, type WorkerOutput, type WorkflowAdapterConfig, type WorkflowConfig, WorkflowConfigSchema, type WorkflowDefinition, type WorkflowDefinitionInput, type WorkflowDefinitionOutput, WorkflowDefinitionSchema, type WorkflowEngineFactoryConfig, WorkflowError, type WorkflowExecutionContext, type ExecutionPlan$1 as WorkflowExecutionPlan, type IExpertFactory$1 as WorkflowExpertFactory, type WorkflowInfo, WorkflowInputsSchema, WorkflowOrchestratorAdapter, type WorkflowPattern, type WorkflowRouterOptions, type RoutingDecision$1 as WorkflowRoutingDecision, type WorkflowStep$1 as WorkflowStep, type WorkflowStepInput, type WorkflowStepOutput, WorkflowStepSchema, type WorkflowTemplate, type WorkflowToolResult, actorFromContext, aggregatePrDecisions, aggregateResults, analysisToTaskContract, analyzeTask as analyzeDelegateTask, analyzeFailures, analyzeGitHubRepo, analyzeRepo, append, areStepsCompleted, assessReputation, bufferStream, buildDependencyGraph, buildFinalResult, buildPendingResult, buildPlanFromAnalysis, buildPrReviewProposal, buildDependencyGraph$1 as buildSkillDependencyGraph, buildTimeoutResult, calculateDelay, calculateDistributionStats, calculateMetricsTotals, calculateMinSampleSize, calculateRegret, calculateRoutingDistribution, calculateTokenCost, calculateTokenMetrics, calculateVoteWeight, calculateWinLoss, canExecuteSkill, canInfluenceDecisions, canPipelineProceed, canProceed, cancelExecution, categorizeOutcomeError, categorizeOutcomeErrorMessage, checkForResearchTriggers, checkPermissionBoundary, checkPipelinePolicy, checkpointToResult, chunkByDirectory, classifyTask, classifyTrust, cleanupCheckpoint, clearRegistryCache, clearTemplateCache, calculateBackoffDelay as cliCalculateBackoffDelay, categorizeError as cliCategorizeError, closeServer, collectRealVotes, collectStream, compareBenchmarks, compareProportions, compilePipelineGraph, compilePlan, compileSpecToGraph, computeAdaptiveThresholds, computeOutcomeReward, concatStreams, connectTransport, containsExpressions, countActiveSessions, createAbTestTracker, createAgentPairKey, createAgentStages, createStepExecutor as createAgentStepExecutor, createAgenticAdapter, createAllAdapters, createArchitectureExpert, createAttestation, createAuditLogger, createAuditTrail, createBenchmarkSummary, createCheckpoint, createCheckpointStore, createClaudeAdapter, createCliAdapter, createCliCircuitBreakerIntegration, createCliDetectionCache, createCodeExpert, createCollaborationSession, createCompositeRouter, createConsensusEngine, createContextItem, createCorePluginRegistry, createCorrelationTracker, createDashboard, createDashboardRenderer, createDecayOp, createDefaultDeps, createDefaultPolicyEngine, createDefaultPolicyFirewall, createDefaultRateLimiter, createDefaultRegistry, createDelegatePipeline, createDependencyError, createDevStageRegistry, createDocumentationExpert, createDryRunHandler, createEventBusBridge, createExecutionContext, createExecutionPlan, createFeedbackIntegration, createFeedbackSubscriber, createFullGitHubProvider, createGeminiAdapter, createGitHubAdapter, createGitHubProvider, createGraphAuditBridge, createHigherOrderVotingStrategy, createIncompleteResult, createInitialCostMetrics, createInitialSessionMetrics, createInitialTokenUsage, createInitializedWorkflowEngine, createInteractionGraph, createSwarmObserver as createInteractionSwarmObserver, createIsolatedRegistry, createLogger, createMcpLogger, createMcpNotifier, createOWVoting, createOllamaAdapter, createOpenAIAdapter, createOrchestrator, createOrchestratorFactory, createOutcomeFeedbackCollector, createOutcomeStorage, createPolicyContext, createPreferenceRouter, createProductionWorkflowEngine, createPromotionOp, createProtocolFactory, createRateLimiter, createRealWorkflowEngine, createResultAggregator, createRoutingDecision, createRoutingMetricsCollector, createSandboxExecutor, createScmProvider, createSecurityError, createSecurityExpert, createServer, createSkillComposer, createSkillDependencyGraph, createSkillLibrary, createSkillLoader, createStateComparisonVerifier, createStateGuard, createStateMachine, createStrategyDistiller, createStrategyFactory, createStream, createTaskOutcome, createTaskQueue, createTemplateRegistry, createTestingExpert, createTimer, createTokenCounter, createToolLogger, createTrackedAgent, createTrinityCoordinator, createValidationDashboard, createValidator, createVotingProtocol, createWaveScheduler, createWeightedVoting, createWorkflowEngineDeps, createWorkflowEngineDepsAsync, createWorkflowRouter, curateContext, customReducer, decomposeSpec, defaultConfig, delegateInputToTaskContract, denyMutationsWithoutModeRule, detectFailurePatterns, detectLatencyPatterns, detectSuccessPatterns, detectTrend, determineFinalStatus, emitCorroborationEvent, emitExecutionComplete, emitGraphExecutionEvent, emitNodeResults, emitNodeStarted, emitPipelineStageEvent, emitPolicyEvent, emitReputationEvent, emitSanitizationEvent, emitStageCompleted, emitStageFailed, emitStageStarted, emitStateUpdated, emitStepCompleted, emitThresholdUpdate, emitTrendDetected, emitTrustEvent, err, estimateTokens as estimateBenchmarkTokens, estimateTaskComplexity, estimateTokens$1 as estimateTokens, evaluatePolicy as evaluatePipelinePolicy, evaluatePolicy$2 as evaluatePolicy, evaluatePolicy$1 as evaluateSecurityPolicy, executeCliRetryLoop, executeDelegatePipeline, executeExpert, executeGraph, executeOrchestratePipeline, executeParallel, executeSpec, extractBooleanField, extractExpressions, extractNonErrorMessage, extractNumberField, extractSessionId, extractStateValue, extractStringArrayField, extractStringField, filterAvailableModels, filterBySeverity, filterStream, findActiveSession, findMissingDependencies, flushPipelineMemory, formatAdapterLatencyReport, formatBenchmarkReport, formatBenchmarkResults, formatComparisonResults, formatCompileError, fromArray, generateATL, generateBenchmarkReport, generateProposalId, generateSecurityPlan, generateWeatherReport, getAllTestCases, getAvailabilityCache, getAvailableClis, getAvailableRoles, getBenchmarkEnvironment, getBuiltInTemplates, getBuiltInTemplatesPath, getBuiltInTemplatesWithMetadata, getCapabilitiesForRole, getCategoriesByMinRiskLevel, getCliForModelId, getCompletedSteps, getCorroborationRules, getEventBusStats, getExecutionDuration, getExecutionOrder, getExpertRegistry, getFallbackChain, getGraphRegistry, getGraphWorkflowList, getKnownNexusVarNames, getOutcomeStore, getPipelineArtifactStore, getPipelinePluginRegistry, getPolicy, getPolicyMode, getRecommendedRole, getReferencedSteps, getRegistryManifest, getRequiredTrustTier, getSafetyCategory, getSafetyTaxonomySummary, getSkillSetForTask, getSkillsForTask, getStepResult, getSwarmObserver, getTemplate, getTestCasesByTags, getTimeoutForTask, getTimeoutForTaskAuto, getTokenEnvVars, getTopologicalOrder, getVariable, hasToken, ictmToExpertConfig, identifySessionsToRemove, inferICTM, initializeAgentSkills, initializeBuiltInTemplates, initializeEventBusBridge, isCancelled, isCliAvailable, isRetryableError as isCliRetryableError, isErr, isIncompleteResult, isMutatingAction, isOk, isReadOnlyAction, isRetryableError$1 as isRetryableError, isStepCompleted, isZodError, listTemplateIds, loadCheckpointState, loadTemplateFile, loadTemplatesFromDirectory, loadWorkflowFile, logPolicyAudit, logRateLimitAudit, logToolError, logToolInvocationAudit, logToolStart, logToolSuccess, logger, map, mapAuthorAssociation, mapErr, mapVoteDecisionToPrDecision, meanConfidenceInterval, mergeStreams, normalizeRepoId, ok, orchestrateInputToTaskContract, overwrite, parseATL, parseAgentPairKey, parseExpression, parseSpec, parseTemplateContent, parseWorkflowJson, parseWorkflowYaml, proportionConfidenceInterval, quickSelect, reduceStream, registerConsensusVoteTool, registerCorePlugins, registerCreateExpertTool, registerDelegateToModelTool, registerExecuteExpertTool, registerExecuteSpecTool, registerExpertsResource, registerExtractSymbolsTool, registerIssueTriageTool, registerListExpertsTool, registerListWorkflowsTool, registerMemoryQueryTool, registerMemoryStatsTool, registerMemoryWriteTool, registerModelsResource, registerOrchestrateTool, registerPrReviewTool, registerPrompts, registerQueryTraceTool, registerRegistryImportTool, registerRepoAnalyzeTool, registerRepoSecurityPlanTool, registerResearchAddSourceTool, registerResearchAddTool, registerResearchAnalyzeTool, registerResearchCatalogReviewTool, registerResearchDiscoverTool, registerResearchQueryTool, registerResearchResource, registerResearchSynthesizeTool, registerResources, registerRunGraphWorkflowTool, registerRunWorkflowTool, registerSearchCodebaseTool, registerTools, registerWeatherReportTool, requiresCitation, requiresCorroboration, resetAvailabilityCache, resetPipelineArtifactStore, resetPipelinePluginRegistry, resetRegistry, resolveExpression, resolveFallback, resolveInput, resolveScannerData, resolveStringExpressions, resolveToken, resolveV2Config, resolveWithFallbacks, resultToOutcome, runAdapterLatencyBenchmark, runAdaptiveOrchestrator, runBenchmark, runConsolidationBenchmark, runDevPipeline, runGraphPipeline, runIterativeConsensus, runMemoryBenchmarks, runOperationBenchmark, runPreconditions, runTokenBenchmark, runVerification, safePathsRule, safeValidateExpertConfig, sanitize, sanitizeInput, saveStageCheckpoint, scoreByHybrid, scoreByImportance, scoreByRecency, selectExperts, selectModel, setSwarmObserver, setVariable, sigmoidConfidence, skip, sleep, snapshotContext, startStdioServer, storeStepResult, take, takeUntil, tapStream, taskContractToToolResponse, toSuiteResult, toolError, toolSuccess, toolSuccessStructured, transformStream, unwrap, unwrapOr, validateAgentAction, validateCommand, validateCorroboration, validateDependencyGraph, validateEvaluationCriterion, validateExpertConfig, validateExpressions, validateICTM, validateNexusEnv, validateRequiredInputs, validateSafetyCategory, validateScenario, validateCapabilities as validateSkillCapabilities, validateSkillExecution, validateSkillProvenance, validateRBAC as validateSkillRBAC, validateTestCase, validateToolInput, validateWorkflow, validateWorkflowDependencies, withLogging, withRetry, withRetryWrapper, withTimeout };
|