@cuylabs/agent-core 4.8.0 → 4.8.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-RHIS6TLK.js → chunk-GEBFHREI.js} +17 -2
- package/dist/{chunk-Y3TRGGUG.js → chunk-NS7D7JJU.js} +25 -0
- package/dist/{chunk-FY6UGSFM.js → chunk-V6ETEYST.js} +1 -1
- package/dist/dispatch/index.d.ts +2 -2
- package/dist/execution/index.d.ts +3 -3
- package/dist/execution/index.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -4
- package/dist/inference/index.d.ts +3 -3
- package/dist/inference/index.js +1 -1
- package/dist/{instance-BoAI3OfR.d.ts → instance-Bg61WSyz.d.ts} +17 -0
- package/dist/middleware/index.d.ts +2 -2
- package/dist/middleware/index.js +1 -1
- package/dist/{model-messages-CXHam2HQ.d.ts → model-messages-n_ZMZwIm.d.ts} +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/profiles/index.d.ts +1 -1
- package/dist/prompt/index.d.ts +2 -2
- package/dist/safety/index.d.ts +2 -2
- package/dist/skill/index.d.ts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/subagents/index.d.ts +1 -1
- package/dist/team/index.d.ts +2 -2
- package/dist/tool/index.d.ts +2 -2
- package/dist/turn-tools/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -666,7 +666,8 @@ function createTelemetryConfig(config) {
|
|
|
666
666
|
config.serviceName ?? config.agentName
|
|
667
667
|
);
|
|
668
668
|
}
|
|
669
|
-
const
|
|
669
|
+
const customMiddlewares = toMiddlewareArray(config.middleware);
|
|
670
|
+
const defaultMiddleware = config.useDefaultOtelMiddleware === false ? void 0 : otelMiddleware({
|
|
670
671
|
agentName: config.agentName,
|
|
671
672
|
agentId: config.agentId,
|
|
672
673
|
agentDescription: config.agentDescription,
|
|
@@ -678,6 +679,10 @@ function createTelemetryConfig(config) {
|
|
|
678
679
|
spanTimeoutMs: config.spanTimeoutMs,
|
|
679
680
|
providerReady: providerPromise
|
|
680
681
|
});
|
|
682
|
+
const middlewares = [
|
|
683
|
+
...customMiddlewares,
|
|
684
|
+
...defaultMiddleware ? [defaultMiddleware] : []
|
|
685
|
+
];
|
|
681
686
|
const integrations = createTelemetryIntegrations(config);
|
|
682
687
|
const telemetry = {
|
|
683
688
|
isEnabled: integrations.length > 0 || config.useGlobalTelemetryIntegrations === true,
|
|
@@ -687,7 +692,8 @@ function createTelemetryConfig(config) {
|
|
|
687
692
|
...integrations.length > 0 ? { integrations } : {}
|
|
688
693
|
};
|
|
689
694
|
return {
|
|
690
|
-
middleware,
|
|
695
|
+
middleware: middlewares[0] ?? noopTelemetryMiddleware,
|
|
696
|
+
middlewares,
|
|
691
697
|
telemetry,
|
|
692
698
|
shutdown: async () => {
|
|
693
699
|
if (!providerPromise) {
|
|
@@ -697,6 +703,15 @@ function createTelemetryConfig(config) {
|
|
|
697
703
|
}
|
|
698
704
|
};
|
|
699
705
|
}
|
|
706
|
+
var noopTelemetryMiddleware = {
|
|
707
|
+
name: "telemetry"
|
|
708
|
+
};
|
|
709
|
+
function toMiddlewareArray(middleware) {
|
|
710
|
+
if (!middleware) {
|
|
711
|
+
return [];
|
|
712
|
+
}
|
|
713
|
+
return Array.isArray(middleware) ? [...middleware] : [middleware];
|
|
714
|
+
}
|
|
700
715
|
function createTelemetryIntegrations(config) {
|
|
701
716
|
const integrations = [];
|
|
702
717
|
if (config.useGenAIOpenTelemetry !== false) {
|
|
@@ -350,6 +350,27 @@ async function resolveModelCallInput(input) {
|
|
|
350
350
|
applyModelCallInput(input, next);
|
|
351
351
|
return next;
|
|
352
352
|
}
|
|
353
|
+
function isPromiseLike(value) {
|
|
354
|
+
return value !== null && (typeof value === "object" || typeof value === "function") && "then" in value && typeof value.then === "function";
|
|
355
|
+
}
|
|
356
|
+
function observePromiseRejection(promise) {
|
|
357
|
+
void promise.catch(() => {
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
function observeOptionalPromise(source, propertyName) {
|
|
361
|
+
try {
|
|
362
|
+
const value = source[propertyName];
|
|
363
|
+
if (isPromiseLike(value)) {
|
|
364
|
+
observePromiseRejection(Promise.resolve(value));
|
|
365
|
+
}
|
|
366
|
+
} catch {
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
function observeModelStreamAggregates(stream2) {
|
|
370
|
+
observeOptionalPromise(stream2, "steps");
|
|
371
|
+
observeOptionalPromise(stream2, "totalUsage");
|
|
372
|
+
observeOptionalPromise(stream2, "rawFinishReason");
|
|
373
|
+
}
|
|
353
374
|
function wrapModelStream(stream2, input) {
|
|
354
375
|
const normalizedText = Promise.resolve(stream2.text);
|
|
355
376
|
const normalizedUsage = Promise.resolve(stream2.usage).then((usage) => ({
|
|
@@ -360,6 +381,10 @@ function wrapModelStream(stream2, input) {
|
|
|
360
381
|
const normalizedFinishReason = Promise.resolve(stream2.finishReason).then(
|
|
361
382
|
(reason) => String(reason)
|
|
362
383
|
);
|
|
384
|
+
observePromiseRejection(normalizedText);
|
|
385
|
+
observePromiseRejection(normalizedUsage);
|
|
386
|
+
observePromiseRejection(normalizedFinishReason);
|
|
387
|
+
observeModelStreamAggregates(stream2);
|
|
363
388
|
if (!input.middleware?.hasMiddleware) {
|
|
364
389
|
return {
|
|
365
390
|
fullStream: stream2.fullStream,
|
package/dist/dispatch/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bz as LocalDispatchRuntimeOptions, a$ as DispatchRuntime, T as Tool, d9 as TaskExecutorInput, d8 as TaskExecutor, aY as DispatchRecord, b3 as DispatchTargetInspection, b2 as DispatchTarget, dr as TeamTask, bF as MemberRuntime, b5 as DispatchTargetStartResult, b6 as DispatchTargetSummary, be as ExternalTaskControl } from '../instance-
|
|
2
|
-
export { aP as DEFAULT_DISPATCH_TOOL_IDS, aQ as DEFAULT_LOCAL_DISPATCH_CONCURRENCY, aR as DEFAULT_LOCAL_DISPATCH_DEPTH, aS as DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX, aV as DISPATCH_STATES, aW as DispatchCheckOptions, aX as DispatchListOptions, aZ as DispatchResult, a_ as DispatchRole, b0 as DispatchStartInput, b1 as DispatchState, b4 as DispatchTargetStartInput, b7 as DispatchUsage } from '../instance-
|
|
1
|
+
import { bz as LocalDispatchRuntimeOptions, a$ as DispatchRuntime, T as Tool, d9 as TaskExecutorInput, d8 as TaskExecutor, aY as DispatchRecord, b3 as DispatchTargetInspection, b2 as DispatchTarget, dr as TeamTask, bF as MemberRuntime, b5 as DispatchTargetStartResult, b6 as DispatchTargetSummary, be as ExternalTaskControl } from '../instance-Bg61WSyz.js';
|
|
2
|
+
export { aP as DEFAULT_DISPATCH_TOOL_IDS, aQ as DEFAULT_LOCAL_DISPATCH_CONCURRENCY, aR as DEFAULT_LOCAL_DISPATCH_DEPTH, aS as DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX, aV as DISPATCH_STATES, aW as DispatchCheckOptions, aX as DispatchListOptions, aZ as DispatchResult, a_ as DispatchRole, b0 as DispatchStartInput, b1 as DispatchState, b4 as DispatchTargetStartInput, b7 as DispatchUsage } from '../instance-Bg61WSyz.js';
|
|
3
3
|
import '../types-C_LCeYNg.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../types-RSCv7nQ4.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as AnyInferenceResult, cO as StepProcessingOptions, cP as StepProcessingOutput, a9 as AgentTurnStepCommitSnapshot, aM as CreateAgentTurnStepCommitBatchOptions, $ as AgentTurnCommitBatch, c8 as PrepareModelStepOptions, c9 as PreparedAgentModelStep, cm as RunModelStepOptions, A as AgentEvent, cn as RunToolBatchOptions, co as RunToolBatchResult, aC as CommitOutputOptions, aD as CommitStepOptions, du as TokenUsage, x as ScopeSnapshot, a7 as AgentTurnState, dB as ToolMetadata, ab as AgentTurnStepCommitToolResult, aa as AgentTurnStepCommitToolCall, M as Message, dI as UserMessage, ay as AssistantMessage, dA as ToolMessage, cZ as SystemMessage } from '../instance-
|
|
2
|
-
export { V as AgentTurnActiveToolCall, Y as AgentTurnBoundaryMetadata, Z as AgentTurnBoundarySnapshot, _ as AgentTurnCommitApplier, a0 as AgentTurnCommitOptions, a1 as AgentTurnEngine, a2 as AgentTurnEngineOptions, a3 as AgentTurnPhase, a4 as AgentTurnResolvedToolCall, a8 as AgentTurnStateAdvanceOptions, ac as AgentTurnStepRuntimeConfig, aL as CreateAgentTurnStateOptions, dL as advanceAgentTurnState, dP as createAgentTurnEngine, dQ as createAgentTurnState, dX as failAgentTurnState } from '../instance-
|
|
1
|
+
import { e as AnyInferenceResult, cO as StepProcessingOptions, cP as StepProcessingOutput, a9 as AgentTurnStepCommitSnapshot, aM as CreateAgentTurnStepCommitBatchOptions, $ as AgentTurnCommitBatch, c8 as PrepareModelStepOptions, c9 as PreparedAgentModelStep, cm as RunModelStepOptions, A as AgentEvent, cn as RunToolBatchOptions, co as RunToolBatchResult, aC as CommitOutputOptions, aD as CommitStepOptions, du as TokenUsage, x as ScopeSnapshot, a7 as AgentTurnState, dB as ToolMetadata, ab as AgentTurnStepCommitToolResult, aa as AgentTurnStepCommitToolCall, M as Message, dI as UserMessage, ay as AssistantMessage, dA as ToolMessage, cZ as SystemMessage } from '../instance-Bg61WSyz.js';
|
|
2
|
+
export { V as AgentTurnActiveToolCall, Y as AgentTurnBoundaryMetadata, Z as AgentTurnBoundarySnapshot, _ as AgentTurnCommitApplier, a0 as AgentTurnCommitOptions, a1 as AgentTurnEngine, a2 as AgentTurnEngineOptions, a3 as AgentTurnPhase, a4 as AgentTurnResolvedToolCall, a8 as AgentTurnStateAdvanceOptions, ac as AgentTurnStepRuntimeConfig, aL as CreateAgentTurnStateOptions, dL as advanceAgentTurnState, dP as createAgentTurnEngine, dQ as createAgentTurnState, dX as failAgentTurnState } from '../instance-Bg61WSyz.js';
|
|
3
3
|
import { L as Logger } from '../types-RSCv7nQ4.js';
|
|
4
|
-
export { c as convertAgentMessagesToModelMessages } from '../model-messages-
|
|
4
|
+
export { c as convertAgentMessagesToModelMessages } from '../model-messages-n_ZMZwIm.js';
|
|
5
5
|
import '../types-C_LCeYNg.js';
|
|
6
6
|
import 'ai';
|
|
7
7
|
import 'zod';
|
package/dist/execution/index.js
CHANGED
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
runToolBatch,
|
|
32
32
|
snapshotAgentWorkflowMessage,
|
|
33
33
|
snapshotAgentWorkflowMessages
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-V6ETEYST.js";
|
|
35
35
|
import {
|
|
36
36
|
convertAgentMessagesToModelMessages
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-NS7D7JJU.js";
|
|
38
38
|
import "../chunk-MWPU2EVV.js";
|
|
39
39
|
import "../chunk-STDJYXYK.js";
|
|
40
40
|
import "../chunk-GJFP5L2V.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HumanInputController, p as HumanInputConfig, T as Tool, M as Message, S as SessionManager, E as EffectiveAgentConfig, q as TurnChangeTracker, r as InterventionController, b as MiddlewareRunner, P as PromptBuilder, t as AgentTurnToolProvider, c as ToolExecutionMode, A as AgentEvent, u as StreamProvider, v as Scope, x as ScopeSnapshot, y as ScopeOptions, F as FileOperationMeta, z as AgentSignal, B as TypedHandler, U as Unsubscribe, W as WildcardHandler } from './instance-
|
|
2
|
-
export { C as Agent, G as AgentConfig, J as AgentDefaults, K as AgentDefaultsContext, L as AgentDefaultsProvider, N as AgentMiddleware, O as AgentModelHooks, Q as AgentStatus, V as AgentTurnActiveToolCall, X as AgentTurnBoundaryKind, Y as AgentTurnBoundaryMetadata, Z as AgentTurnBoundarySnapshot, _ as AgentTurnCommitApplier, $ as AgentTurnCommitBatch, a0 as AgentTurnCommitOptions, a1 as AgentTurnEngine, a2 as AgentTurnEngineOptions, a3 as AgentTurnPhase, a4 as AgentTurnResolvedToolCall, a5 as AgentTurnSource, a6 as AgentTurnSourceChatOptions, a7 as AgentTurnState, a8 as AgentTurnStateAdvanceOptions, a9 as AgentTurnStepCommitSnapshot, aa as AgentTurnStepCommitToolCall, ab as AgentTurnStepCommitToolResult, ac as AgentTurnStepRuntimeConfig, ad as AgentTurnToolContext, ae as AgentTurnToolProviderResult, e as AnyInferenceResult, af as AppliedProfile, ag as ApprovalAction, ah as ApprovalAgentMiddleware, ai as ApprovalCascadeMode, aj as ApprovalCascadePolicy, ak as ApprovalConfig, al as ApprovalCorrection, am as ApprovalDecision, an as ApprovalEvaluation, ao as ApprovalEvent, ap as ApprovalEventContext, aq as ApprovalHandler, ar as ApprovalLifecycleEvent, as as ApprovalMiddlewareConfig, at as ApprovalRememberScope, au as ApprovalRequest, av as ApprovalResolution, aw as ApprovalRule, ax as ApprovalRuleContext, ay as AssistantMessage, az as BlockedModelCall, aA as BranchEntry, aB as ChatLifecycleContext, aC as CommitOutputOptions, aD as CommitStepOptions, aE as CompactionConfig, aF as CompactionEntry, aG as CompatibleSchema, aH as ConfigChangeEntry, aI as CoordinatorNotification, aJ as CoordinatorNotificationKind, aK as CoordinatorRoundEvent, aL as CreateAgentTurnStateOptions, aM as CreateAgentTurnStepCommitBatchOptions, aN as CreateSessionOptions, aO as DEFAULT_AGENT_NAME, aP as DEFAULT_DISPATCH_TOOL_IDS, aQ as DEFAULT_LOCAL_DISPATCH_CONCURRENCY, aR as DEFAULT_LOCAL_DISPATCH_DEPTH, aS as DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX, D as DEFAULT_MAX_OUTPUT_TOKENS, aT as DEFAULT_MAX_STEPS, D as DEFAULT_MAX_TOKENS, f as DEFAULT_RETRY_CONFIG, aU as DEFAULT_SYSTEM_PROMPT, aV as DISPATCH_STATES, aW as DispatchCheckOptions, aX as DispatchListOptions, aY as DispatchRecord, aZ as DispatchResult, a_ as DispatchRole, a$ as DispatchRuntime, b0 as DispatchStartInput, b1 as DispatchState, b2 as DispatchTarget, b3 as DispatchTargetInspection, b4 as DispatchTargetStartInput, b5 as DispatchTargetStartResult, b6 as DispatchTargetSummary, b7 as DispatchUsage, b8 as DoomLoopAction, b9 as DoomLoopHandler, ba as DoomLoopRequest, bb as EnhancedTools, bc as EntryBase, bd as EnvironmentInfo, be as ExternalTaskControl, bf as FileEntry, bg as GuidancePayload, bh as HistoryAccessor, bi as HumanInputEventContext, bj as HumanInputOption, bk as HumanInputRequest, bl as HumanInputRequestKind, bm as HumanInputRequestListOptions, bn as HumanInputRequestRecord, bo as HumanInputRequestStatus, bp as HumanInputResponse, bq as HumanInputTimeoutError, br as HumanInputToolArgs, bs as HumanInputUnavailableError, bt as IdleNotificationPayload, bu as InMemoryMailboxStore, bv as InMemoryTaskBoardStore, bw as InferSchemaOutput, g as InferenceCustomResult, h as InferenceStepInfo, I as InferenceStreamInput, i as InferenceStreamResult, bx as InputCheckResult, by as InstructionFile, bz as LocalDispatchRuntimeOptions, bA as LocalSessionTurnLock, bB as Mailbox, bC as MailboxStore, bD as MailboxSubscriber, bE as MemberRegisteredEvent, bF as MemberRuntime, bG as MemberStats, bH as MemberStatus, bI as MemberStatusChangedEvent, bJ as MessageBase, bK as MessageEntry, bL as MessageError, bM as MessageInput, bN as MessageKind, bO as MessageListFilter, bP as MessagePayload, bQ as MessageRole, bR as MessageSentEvent, bS as MetadataEntry, d as ModelCallContext, bT as ModelCallInput, bU as ModelCallOutput, bV as ModelFamily, bW as NormalizedToolReplayPolicy, bX as NotificationPriority, bY as OnFollowUpQueued, bZ as OnInterventionApplied, b_ as OtelMiddlewareConfig, b$ as PRUNE_PROTECTED_TOOLS, c0 as PendingIntervention, c1 as PermissionForwardedEvent, c2 as PermissionHandler, c3 as PermissionRequestPayload, c4 as PermissionResolvedEvent, c5 as PermissionResponsePayload, c6 as PlanCreatedEvent, c7 as PlannedTask, c8 as PrepareModelStepOptions, c9 as PreparedAgentModelStep, ca as PreparedExternalTask, cb as Profile, cc as PromptBuildContext, cd as PromptConfig, ce as PromptSection, cf as QueueTaskInput, cg as RecentMessagesOptions, ch as ReleaseSessionTurnLock, ci as RemoteSkillEntry, cj as RemoteSkillIndex, R as RetryConfig, j as RetryHandlerOptions, k as RetryState, ck as RiskLevel, cl as RuleSource, cm as RunModelStepOptions, cn as RunToolBatchOptions, co as RunToolBatchResult, cp as STORAGE_VERSION, cq as SerializedMessage, cr as Session, cs as SessionContext, ct as SessionEntry, cu as SessionHeader, cv as SessionInfo, cw as SessionStorage, cx as SessionTurnLock, cy as SessionTurnLockAcquireOptions, cz as ShutdownRequestPayload, cA as ShutdownRequestedEvent, cB as ShutdownResolvedEvent, cC as ShutdownResponsePayload, cD as SkillConfig, cE as SkillContent, cF as SkillDiscoveryError, cG as SkillDiscoveryResult, cH as SkillMetadata, cI as SkillRegistry, cJ as SkillResource, cK as SkillResourceType, cL as SkillScope, cM as SkillSource, cN as SkillSourceType, cO as StepProcessingOptions, cP as StepProcessingOutput, cQ as StepProcessingResult, cR as StreamChunk, cS as StreamInput, cT as StreamProviderConfig, cU as StreamProviderFactory, cV as StreamProviderInput, cW as StreamProviderResult, cX as SynthesisCompleteEvent, cY as SynthesisResult, cZ as SystemMessage, c_ as TERMINAL_STATUSES, c$ as TaskAbortedEvent, d0 as TaskBoard, d1 as TaskBoardStore, d2 as TaskCompletedEvent, d3 as TaskCompletion, d4 as TaskConflictError, d5 as TaskCreateInput, d6 as TaskCreatedEvent, d7 as TaskDispatchMode, d8 as TaskExecutor, d9 as TaskExecutorInput, da as TaskFailedEvent, db as TaskListFilter, dc as TaskResult, dd as TaskStatus, de as TaskTransition, df as TaskTransitionEvent, dg as TaskTransitionReason, dh as TeamCoordinatorConfig, di as TeamEvent, dj as TeamMember, dk as TeamMessage, dl as TeamNotificationEvent, dm as TeamPlan, dn as TeamSnapshot, dp as TeamStartedEvent, dq as TeamStoppedEvent, dr as TeamTask, ds as TelemetryConfig, dt as TelemetryConfigResult, du as TokenUsage, dv as ToolCallDecision, dw as ToolCallOutput, dx as ToolCapabilities, dy as ToolContext, dz as ToolHostRequirements, dA as ToolMessage, dB as ToolMetadata, dC as ToolReplayMode, dD as ToolReplayPolicy, dE as ToolResult, dF as ToolSideEffectLevel, dG as TracingConfig, a as TurnTrackerContext, dH as UndoResult, dI as UserMessage, dJ as WorkerReportPayload, dK as accumulateUsage, dL as advanceAgentTurnState, dM as approvalMiddleware, dN as buildCoordinatorNotificationEvent, l as calculateDelay, dO as createAgent, dP as createAgentTurnEngine, dQ as createAgentTurnState, dR as createApprovalHandler, dS as createHumanInputController, dT as createPromptBuilder, m as createRetryHandler, n as createRetryState, dU as createSkillRegistry, dV as createTurnTracker, dW as emptySkillRegistry, dX as failAgentTurnState, dY as getRequiredToolHost, dZ as isApprovalMiddleware, d_ as isBlockedModelCall, d$ as isHumanInputController, e0 as requiresToolHost, e1 as resolveAgentDefaults, e2 as resolveCapability, e3 as sandboxDefaultsProvider, s as shouldRetry, w as withRetry } from './instance-
|
|
1
|
+
import { H as HumanInputController, p as HumanInputConfig, T as Tool, M as Message, S as SessionManager, E as EffectiveAgentConfig, q as TurnChangeTracker, r as InterventionController, b as MiddlewareRunner, P as PromptBuilder, t as AgentTurnToolProvider, c as ToolExecutionMode, A as AgentEvent, u as StreamProvider, v as Scope, x as ScopeSnapshot, y as ScopeOptions, F as FileOperationMeta, z as AgentSignal, B as TypedHandler, U as Unsubscribe, W as WildcardHandler } from './instance-Bg61WSyz.js';
|
|
2
|
+
export { C as Agent, G as AgentConfig, J as AgentDefaults, K as AgentDefaultsContext, L as AgentDefaultsProvider, N as AgentMiddleware, O as AgentModelHooks, Q as AgentStatus, V as AgentTurnActiveToolCall, X as AgentTurnBoundaryKind, Y as AgentTurnBoundaryMetadata, Z as AgentTurnBoundarySnapshot, _ as AgentTurnCommitApplier, $ as AgentTurnCommitBatch, a0 as AgentTurnCommitOptions, a1 as AgentTurnEngine, a2 as AgentTurnEngineOptions, a3 as AgentTurnPhase, a4 as AgentTurnResolvedToolCall, a5 as AgentTurnSource, a6 as AgentTurnSourceChatOptions, a7 as AgentTurnState, a8 as AgentTurnStateAdvanceOptions, a9 as AgentTurnStepCommitSnapshot, aa as AgentTurnStepCommitToolCall, ab as AgentTurnStepCommitToolResult, ac as AgentTurnStepRuntimeConfig, ad as AgentTurnToolContext, ae as AgentTurnToolProviderResult, e as AnyInferenceResult, af as AppliedProfile, ag as ApprovalAction, ah as ApprovalAgentMiddleware, ai as ApprovalCascadeMode, aj as ApprovalCascadePolicy, ak as ApprovalConfig, al as ApprovalCorrection, am as ApprovalDecision, an as ApprovalEvaluation, ao as ApprovalEvent, ap as ApprovalEventContext, aq as ApprovalHandler, ar as ApprovalLifecycleEvent, as as ApprovalMiddlewareConfig, at as ApprovalRememberScope, au as ApprovalRequest, av as ApprovalResolution, aw as ApprovalRule, ax as ApprovalRuleContext, ay as AssistantMessage, az as BlockedModelCall, aA as BranchEntry, aB as ChatLifecycleContext, aC as CommitOutputOptions, aD as CommitStepOptions, aE as CompactionConfig, aF as CompactionEntry, aG as CompatibleSchema, aH as ConfigChangeEntry, aI as CoordinatorNotification, aJ as CoordinatorNotificationKind, aK as CoordinatorRoundEvent, aL as CreateAgentTurnStateOptions, aM as CreateAgentTurnStepCommitBatchOptions, aN as CreateSessionOptions, aO as DEFAULT_AGENT_NAME, aP as DEFAULT_DISPATCH_TOOL_IDS, aQ as DEFAULT_LOCAL_DISPATCH_CONCURRENCY, aR as DEFAULT_LOCAL_DISPATCH_DEPTH, aS as DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX, D as DEFAULT_MAX_OUTPUT_TOKENS, aT as DEFAULT_MAX_STEPS, D as DEFAULT_MAX_TOKENS, f as DEFAULT_RETRY_CONFIG, aU as DEFAULT_SYSTEM_PROMPT, aV as DISPATCH_STATES, aW as DispatchCheckOptions, aX as DispatchListOptions, aY as DispatchRecord, aZ as DispatchResult, a_ as DispatchRole, a$ as DispatchRuntime, b0 as DispatchStartInput, b1 as DispatchState, b2 as DispatchTarget, b3 as DispatchTargetInspection, b4 as DispatchTargetStartInput, b5 as DispatchTargetStartResult, b6 as DispatchTargetSummary, b7 as DispatchUsage, b8 as DoomLoopAction, b9 as DoomLoopHandler, ba as DoomLoopRequest, bb as EnhancedTools, bc as EntryBase, bd as EnvironmentInfo, be as ExternalTaskControl, bf as FileEntry, bg as GuidancePayload, bh as HistoryAccessor, bi as HumanInputEventContext, bj as HumanInputOption, bk as HumanInputRequest, bl as HumanInputRequestKind, bm as HumanInputRequestListOptions, bn as HumanInputRequestRecord, bo as HumanInputRequestStatus, bp as HumanInputResponse, bq as HumanInputTimeoutError, br as HumanInputToolArgs, bs as HumanInputUnavailableError, bt as IdleNotificationPayload, bu as InMemoryMailboxStore, bv as InMemoryTaskBoardStore, bw as InferSchemaOutput, g as InferenceCustomResult, h as InferenceStepInfo, I as InferenceStreamInput, i as InferenceStreamResult, bx as InputCheckResult, by as InstructionFile, bz as LocalDispatchRuntimeOptions, bA as LocalSessionTurnLock, bB as Mailbox, bC as MailboxStore, bD as MailboxSubscriber, bE as MemberRegisteredEvent, bF as MemberRuntime, bG as MemberStats, bH as MemberStatus, bI as MemberStatusChangedEvent, bJ as MessageBase, bK as MessageEntry, bL as MessageError, bM as MessageInput, bN as MessageKind, bO as MessageListFilter, bP as MessagePayload, bQ as MessageRole, bR as MessageSentEvent, bS as MetadataEntry, d as ModelCallContext, bT as ModelCallInput, bU as ModelCallOutput, bV as ModelFamily, bW as NormalizedToolReplayPolicy, bX as NotificationPriority, bY as OnFollowUpQueued, bZ as OnInterventionApplied, b_ as OtelMiddlewareConfig, b$ as PRUNE_PROTECTED_TOOLS, c0 as PendingIntervention, c1 as PermissionForwardedEvent, c2 as PermissionHandler, c3 as PermissionRequestPayload, c4 as PermissionResolvedEvent, c5 as PermissionResponsePayload, c6 as PlanCreatedEvent, c7 as PlannedTask, c8 as PrepareModelStepOptions, c9 as PreparedAgentModelStep, ca as PreparedExternalTask, cb as Profile, cc as PromptBuildContext, cd as PromptConfig, ce as PromptSection, cf as QueueTaskInput, cg as RecentMessagesOptions, ch as ReleaseSessionTurnLock, ci as RemoteSkillEntry, cj as RemoteSkillIndex, R as RetryConfig, j as RetryHandlerOptions, k as RetryState, ck as RiskLevel, cl as RuleSource, cm as RunModelStepOptions, cn as RunToolBatchOptions, co as RunToolBatchResult, cp as STORAGE_VERSION, cq as SerializedMessage, cr as Session, cs as SessionContext, ct as SessionEntry, cu as SessionHeader, cv as SessionInfo, cw as SessionStorage, cx as SessionTurnLock, cy as SessionTurnLockAcquireOptions, cz as ShutdownRequestPayload, cA as ShutdownRequestedEvent, cB as ShutdownResolvedEvent, cC as ShutdownResponsePayload, cD as SkillConfig, cE as SkillContent, cF as SkillDiscoveryError, cG as SkillDiscoveryResult, cH as SkillMetadata, cI as SkillRegistry, cJ as SkillResource, cK as SkillResourceType, cL as SkillScope, cM as SkillSource, cN as SkillSourceType, cO as StepProcessingOptions, cP as StepProcessingOutput, cQ as StepProcessingResult, cR as StreamChunk, cS as StreamInput, cT as StreamProviderConfig, cU as StreamProviderFactory, cV as StreamProviderInput, cW as StreamProviderResult, cX as SynthesisCompleteEvent, cY as SynthesisResult, cZ as SystemMessage, c_ as TERMINAL_STATUSES, c$ as TaskAbortedEvent, d0 as TaskBoard, d1 as TaskBoardStore, d2 as TaskCompletedEvent, d3 as TaskCompletion, d4 as TaskConflictError, d5 as TaskCreateInput, d6 as TaskCreatedEvent, d7 as TaskDispatchMode, d8 as TaskExecutor, d9 as TaskExecutorInput, da as TaskFailedEvent, db as TaskListFilter, dc as TaskResult, dd as TaskStatus, de as TaskTransition, df as TaskTransitionEvent, dg as TaskTransitionReason, dh as TeamCoordinatorConfig, di as TeamEvent, dj as TeamMember, dk as TeamMessage, dl as TeamNotificationEvent, dm as TeamPlan, dn as TeamSnapshot, dp as TeamStartedEvent, dq as TeamStoppedEvent, dr as TeamTask, ds as TelemetryConfig, dt as TelemetryConfigResult, du as TokenUsage, dv as ToolCallDecision, dw as ToolCallOutput, dx as ToolCapabilities, dy as ToolContext, dz as ToolHostRequirements, dA as ToolMessage, dB as ToolMetadata, dC as ToolReplayMode, dD as ToolReplayPolicy, dE as ToolResult, dF as ToolSideEffectLevel, dG as TracingConfig, a as TurnTrackerContext, dH as UndoResult, dI as UserMessage, dJ as WorkerReportPayload, dK as accumulateUsage, dL as advanceAgentTurnState, dM as approvalMiddleware, dN as buildCoordinatorNotificationEvent, l as calculateDelay, dO as createAgent, dP as createAgentTurnEngine, dQ as createAgentTurnState, dR as createApprovalHandler, dS as createHumanInputController, dT as createPromptBuilder, m as createRetryHandler, n as createRetryState, dU as createSkillRegistry, dV as createTurnTracker, dW as emptySkillRegistry, dX as failAgentTurnState, dY as getRequiredToolHost, dZ as isApprovalMiddleware, d_ as isBlockedModelCall, d$ as isHumanInputController, e0 as requiresToolHost, e1 as resolveAgentDefaults, e2 as resolveCapability, e3 as sandboxDefaultsProvider, s as shouldRetry, w as withRetry } from './instance-Bg61WSyz.js';
|
|
3
3
|
import { LanguageModel, ModelMessage, Tool as Tool$1, TelemetryOptions } from 'ai';
|
|
4
4
|
import { T as ToolHost } from './types-C_LCeYNg.js';
|
|
5
5
|
export { D as DirEntry, E as ExecOptions, a as ExecResult, F as FileStat } from './types-C_LCeYNg.js';
|
|
@@ -14,7 +14,7 @@ export { C as CapabilitySource, D as DEFAULT_RESOLVER_OPTIONS, I as InputModalit
|
|
|
14
14
|
export { H as HttpTransportConfig, M as MCPConfig, a as MCPManager, b as MCPPromptInfo, c as MCPResourceInfo, d as MCPResourceTemplateInfo, e as MCPServerConfig, f as MCPServerStatus, R as RemoteTransportConfig, S as SseTransportConfig, g as StdioTransportConfig } from './types-DMjoFKKv.js';
|
|
15
15
|
export { ClientCredentialsOptions, ClientCredentialsProvider, DiagnosticFetchOptions, ServiceAccountServerConfig, ServiceAccountServerOptions, createDiagnosticFetch, createMCPManager, httpServer, serviceAccountServer, sseServer, stdioServer } from './mcp/index.js';
|
|
16
16
|
export { AgentTaskChatAdapter, AgentTaskCheckpointReason, AgentTaskCheckpointStrategy, AgentTaskCheckpointStrategyInput, AgentTaskExecutionCheckpoint, AgentTaskExecutionContext, AgentTaskExecutionRun, AgentTaskExecutionSnapshot, AgentTaskObserver, AgentTaskPayload, AgentTaskResult, AgentTaskResumeSnapshot, AgentTaskRunner, AgentTaskRunnerOptions, AgentWorkflowAssistantMessageSnapshot, AgentWorkflowCommitResult, AgentWorkflowInputCommitPlan, AgentWorkflowInterventionSnapshot, AgentWorkflowMessageSnapshot, AgentWorkflowModelStepPlan, AgentWorkflowModelStepResult, AgentWorkflowOperationPlan, AgentWorkflowOutputCommitPlan, AgentWorkflowReplayDecision, AgentWorkflowStepCommitPlan, AgentWorkflowSystemMessageSnapshot, AgentWorkflowToolBatchPlan, AgentWorkflowToolBatchResult, AgentWorkflowToolCallPlan, AgentWorkflowToolCallResult, AgentWorkflowToolCallSnapshot, AgentWorkflowToolMessageSnapshot, AgentWorkflowTurnPhase, AgentWorkflowTurnState, AgentWorkflowUserMessageSnapshot, ContextOverflowError, CreateAgentWorkflowTurnStateOptions, DoomLoopError, applyAgentWorkflowCommitResult, applyAgentWorkflowModelStepResult, applyAgentWorkflowToolBatchResult, applyAgentWorkflowToolCallResult, applyWorkflowInterventions, cloneAgentWorkflowTurnState, commitOutput, commitStep, createAgentTaskRunner, createAgentTurnStepCommitBatch, createAgentWorkflowTurnState, defaultAgentTaskCheckpointStrategy, drainWorkflowInterventions, failAgentWorkflowTurnState, planNextAgentWorkflowOperation, prepareModelStep, processStepStream, queueWorkflowFollowUps, recordAgentWorkflowReplayDecision, restoreAgentWorkflowMessage, restoreAgentWorkflowMessages, runModelStep, runToolBatch, snapshotAgentWorkflowMessage, snapshotAgentWorkflowMessages } from './execution/index.js';
|
|
17
|
-
export { c as convertAgentMessagesToModelMessages } from './model-messages-
|
|
17
|
+
export { c as convertAgentMessagesToModelMessages } from './model-messages-n_ZMZwIm.js';
|
|
18
18
|
export { CacheTTL, PromptCacheConfig, createTelemetryConfig, otelMiddleware, promptCacheMiddleware } from './middleware/index.js';
|
|
19
19
|
export { DEFAULT_INSTRUCTION_PATTERNS, DEFAULT_MAX_DEPTH, DEFAULT_MAX_FILE_SIZE, PRIORITY_BASE, PRIORITY_CUSTOM, PRIORITY_ENVIRONMENT, PRIORITY_INSTRUCTIONS, PRIORITY_OVERRIDE, PRIORITY_SKILLS, detectModelFamily, discoverInstructions, formatEnvironment, formatInstructions, gatherEnvironment, getAvailableFamilies, getTemplate, loadGlobalInstructions, summarizeEnvironment } from './prompt/index.js';
|
|
20
20
|
export { Profiles, applyProfile, careful, code, createProfile, explore, filterTools, mergeProfiles, plan, quick, review, watch } from './profiles/index.js';
|
package/dist/index.js
CHANGED
|
@@ -245,7 +245,7 @@ import {
|
|
|
245
245
|
runToolBatch,
|
|
246
246
|
snapshotAgentWorkflowMessage,
|
|
247
247
|
snapshotAgentWorkflowMessages
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-V6ETEYST.js";
|
|
249
249
|
import {
|
|
250
250
|
DEFAULT_RETRY_CONFIG,
|
|
251
251
|
Inference,
|
|
@@ -260,7 +260,7 @@ import {
|
|
|
260
260
|
streamOnce,
|
|
261
261
|
streamStep,
|
|
262
262
|
withRetry
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-NS7D7JJU.js";
|
|
264
264
|
import {
|
|
265
265
|
currentScope,
|
|
266
266
|
executeAgentToolCall,
|
|
@@ -327,7 +327,7 @@ import {
|
|
|
327
327
|
isApprovalMiddleware,
|
|
328
328
|
otelMiddleware,
|
|
329
329
|
promptCacheMiddleware
|
|
330
|
-
} from "./chunk-
|
|
330
|
+
} from "./chunk-GEBFHREI.js";
|
|
331
331
|
import {
|
|
332
332
|
DEFAULT_AGENT_NAME,
|
|
333
333
|
DEFAULT_MAX_STEPS,
|
|
@@ -2110,7 +2110,10 @@ function createMiddlewareSetup(input, config) {
|
|
|
2110
2110
|
agentName,
|
|
2111
2111
|
serviceName: input.tracing.serviceName ?? agentName
|
|
2112
2112
|
});
|
|
2113
|
-
effectiveMiddleware = [
|
|
2113
|
+
effectiveMiddleware = [
|
|
2114
|
+
...telemetryResult.middlewares.length > 0 ? telemetryResult.middlewares : [telemetryResult.middleware],
|
|
2115
|
+
...effectiveMiddleware
|
|
2116
|
+
];
|
|
2114
2117
|
telemetrySettings = telemetryResult.telemetry;
|
|
2115
2118
|
tracingShutdown = telemetryResult.shutdown;
|
|
2116
2119
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ToolSet } from 'ai';
|
|
2
|
-
import { T as Tool, a as TurnTrackerContext, H as HumanInputController, b as MiddlewareRunner, A as AgentEvent, c as ToolExecutionMode, I as InferenceStreamInput, d as ModelCallContext, e as AnyInferenceResult } from '../instance-
|
|
3
|
-
export { D as DEFAULT_MAX_OUTPUT_TOKENS, f as DEFAULT_RETRY_CONFIG, g as InferenceCustomResult, h as InferenceStepInfo, i as InferenceStreamResult, R as RetryConfig, j as RetryHandlerOptions, k as RetryState, l as calculateDelay, m as createRetryHandler, n as createRetryState, s as shouldRetry, o as sleep, w as withRetry } from '../instance-
|
|
2
|
+
import { T as Tool, a as TurnTrackerContext, H as HumanInputController, b as MiddlewareRunner, A as AgentEvent, c as ToolExecutionMode, I as InferenceStreamInput, d as ModelCallContext, e as AnyInferenceResult } from '../instance-Bg61WSyz.js';
|
|
3
|
+
export { D as DEFAULT_MAX_OUTPUT_TOKENS, f as DEFAULT_RETRY_CONFIG, g as InferenceCustomResult, h as InferenceStepInfo, i as InferenceStreamResult, R as RetryConfig, j as RetryHandlerOptions, k as RetryState, l as calculateDelay, m as createRetryHandler, n as createRetryState, s as shouldRetry, o as sleep, w as withRetry } from '../instance-Bg61WSyz.js';
|
|
4
4
|
import { T as ToolHost } from '../types-C_LCeYNg.js';
|
|
5
|
-
export { c as convertAgentMessagesToModelMessages } from '../model-messages-
|
|
5
|
+
export { c as convertAgentMessagesToModelMessages } from '../model-messages-n_ZMZwIm.js';
|
|
6
6
|
export { E as ErrorCategory, L as LLMError, a as LLMErrorOptions, R as ResponseHeaders } from '../llm-error-D93FNNLY.js';
|
|
7
7
|
export { getErrorCategory, getRetryDelay, isRetryable, isRetryableCategory, parseRetryDelay } from './errors/index.js';
|
|
8
8
|
import '../types-RSCv7nQ4.js';
|
package/dist/inference/index.js
CHANGED
|
@@ -4852,6 +4852,21 @@ interface TelemetryConfig {
|
|
|
4852
4852
|
emitToolSpans?: boolean;
|
|
4853
4853
|
/** TTL in ms for orphaned spans. Defaults to 5 minutes. */
|
|
4854
4854
|
spanTimeoutMs?: number;
|
|
4855
|
+
/**
|
|
4856
|
+
* Additional telemetry middleware installed before the default
|
|
4857
|
+
* agent-core OTel middleware.
|
|
4858
|
+
*
|
|
4859
|
+
* Integrations can use this to provide product-specific span lifecycles
|
|
4860
|
+
* while still reusing the AI SDK telemetry settings from this config.
|
|
4861
|
+
*/
|
|
4862
|
+
middleware?: AgentMiddleware | AgentMiddleware[];
|
|
4863
|
+
/**
|
|
4864
|
+
* Whether to install agent-core's built-in OTel lifecycle middleware.
|
|
4865
|
+
*
|
|
4866
|
+
* Defaults to `true`. Set to `false` when an integration supplies its own
|
|
4867
|
+
* middleware that creates the agent/tool parent spans and OTel context.
|
|
4868
|
+
*/
|
|
4869
|
+
useDefaultOtelMiddleware?: boolean;
|
|
4855
4870
|
/**
|
|
4856
4871
|
* An OTel `SpanProcessor` to auto-create and register a `NodeTracerProvider`.
|
|
4857
4872
|
*/
|
|
@@ -4868,6 +4883,8 @@ interface TelemetryConfig {
|
|
|
4868
4883
|
interface TelemetryConfigResult {
|
|
4869
4884
|
/** Agent-core middleware. */
|
|
4870
4885
|
middleware: AgentMiddleware;
|
|
4886
|
+
/** Ordered telemetry middleware stack. */
|
|
4887
|
+
middlewares: AgentMiddleware[];
|
|
4871
4888
|
/** AI SDK telemetry settings. */
|
|
4872
4889
|
telemetry: TelemetryOptions;
|
|
4873
4890
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b_ as OtelMiddlewareConfig, N as AgentMiddleware, ds as TelemetryConfig, dt as TelemetryConfigResult } from '../instance-
|
|
2
|
-
export { O as AgentModelHooks, ah as ApprovalAgentMiddleware, as as ApprovalMiddlewareConfig, az as BlockedModelCall, aB as ChatLifecycleContext, bh as HistoryAccessor, b as MiddlewareRunner, d as ModelCallContext, bT as ModelCallInput, bU as ModelCallOutput, dv as ToolCallDecision, dw as ToolCallOutput, dM as approvalMiddleware, dZ as isApprovalMiddleware, d_ as isBlockedModelCall } from '../instance-
|
|
1
|
+
import { b_ as OtelMiddlewareConfig, N as AgentMiddleware, ds as TelemetryConfig, dt as TelemetryConfigResult } from '../instance-Bg61WSyz.js';
|
|
2
|
+
export { O as AgentModelHooks, ah as ApprovalAgentMiddleware, as as ApprovalMiddlewareConfig, az as BlockedModelCall, aB as ChatLifecycleContext, bh as HistoryAccessor, b as MiddlewareRunner, d as ModelCallContext, bT as ModelCallInput, bU as ModelCallOutput, dv as ToolCallDecision, dw as ToolCallOutput, dM as approvalMiddleware, dZ as isApprovalMiddleware, d_ as isBlockedModelCall } from '../instance-Bg61WSyz.js';
|
|
3
3
|
import '../types-C_LCeYNg.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../types-RSCv7nQ4.js';
|
package/dist/middleware/index.js
CHANGED
package/dist/plugin/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Tool, N as AgentMiddleware, ce as PromptSection } from '../instance-
|
|
1
|
+
import { T as Tool, N as AgentMiddleware, ce as PromptSection } from '../instance-Bg61WSyz.js';
|
|
2
2
|
import { ZodType } from 'zod';
|
|
3
3
|
import { Jiti } from 'jiti';
|
|
4
4
|
import '../types-C_LCeYNg.js';
|
package/dist/profiles/index.d.ts
CHANGED
package/dist/prompt/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bV as ModelFamily, bd as EnvironmentInfo, by as InstructionFile } from '../instance-
|
|
2
|
-
export { cc as PromptBuildContext, P as PromptBuilder, cd as PromptConfig, ce as PromptSection, cD as SkillConfig, dT as createPromptBuilder } from '../instance-
|
|
1
|
+
import { bV as ModelFamily, bd as EnvironmentInfo, by as InstructionFile } from '../instance-Bg61WSyz.js';
|
|
2
|
+
export { cc as PromptBuildContext, P as PromptBuilder, cd as PromptConfig, ce as PromptSection, cD as SkillConfig, dT as createPromptBuilder } from '../instance-Bg61WSyz.js';
|
|
3
3
|
import { LanguageModel } from 'ai';
|
|
4
4
|
import '../types-C_LCeYNg.js';
|
|
5
5
|
import '../types-RSCv7nQ4.js';
|
package/dist/safety/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ck as RiskLevel, aw as ApprovalRule, au as ApprovalRequest, ax as ApprovalRuleContext, cl as RuleSource, aj as ApprovalCascadePolicy, at as ApprovalRememberScope, am as ApprovalDecision, ak as ApprovalConfig } from '../instance-
|
|
2
|
-
export { ag as ApprovalAction, ai as ApprovalCascadeMode, al as ApprovalCorrection, an as ApprovalEvaluation, ap as ApprovalEventContext, aq as ApprovalHandler, ar as ApprovalLifecycleEvent, av as ApprovalResolution, dR as createApprovalHandler } from '../instance-
|
|
1
|
+
import { ck as RiskLevel, aw as ApprovalRule, au as ApprovalRequest, ax as ApprovalRuleContext, cl as RuleSource, aj as ApprovalCascadePolicy, at as ApprovalRememberScope, am as ApprovalDecision, ak as ApprovalConfig } from '../instance-Bg61WSyz.js';
|
|
2
|
+
export { ag as ApprovalAction, ai as ApprovalCascadeMode, al as ApprovalCorrection, an as ApprovalEvaluation, ap as ApprovalEventContext, aq as ApprovalHandler, ar as ApprovalLifecycleEvent, av as ApprovalResolution, dR as createApprovalHandler } from '../instance-Bg61WSyz.js';
|
|
3
3
|
import '../types-C_LCeYNg.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../types-RSCv7nQ4.js';
|
package/dist/skill/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cL as SkillScope, cM as SkillSource, cH as SkillMetadata, cK as SkillResourceType, cJ as SkillResource, cE as SkillContent, cD as SkillConfig, cG as SkillDiscoveryResult, cI as SkillRegistry, T as Tool } from '../instance-
|
|
2
|
-
export { ci as RemoteSkillEntry, cj as RemoteSkillIndex, cF as SkillDiscoveryError, cN as SkillSourceType, dU as createSkillRegistry, dW as emptySkillRegistry } from '../instance-
|
|
1
|
+
import { cL as SkillScope, cM as SkillSource, cH as SkillMetadata, cK as SkillResourceType, cJ as SkillResource, cE as SkillContent, cD as SkillConfig, cG as SkillDiscoveryResult, cI as SkillRegistry, T as Tool } from '../instance-Bg61WSyz.js';
|
|
2
|
+
export { ci as RemoteSkillEntry, cj as RemoteSkillIndex, cF as SkillDiscoveryError, cN as SkillSourceType, dU as createSkillRegistry, dW as emptySkillRegistry } from '../instance-Bg61WSyz.js';
|
|
3
3
|
import '../types-C_LCeYNg.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../types-RSCv7nQ4.js';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bQ as MessageRole, bf as FileEntry, ct as SessionEntry, M as Message, bK as MessageEntry, bS as MetadataEntry, cq as SerializedMessage, cv as SessionInfo, cw as SessionStorage, cu as SessionHeader, S as SessionManager } from '../instance-
|
|
2
|
-
export { aA as BranchEntry, aF as CompactionEntry, aH as ConfigChangeEntry, aN as CreateSessionOptions, bc as EntryBase, bA as LocalSessionTurnLock, cg as RecentMessagesOptions, ch as ReleaseSessionTurnLock, cp as STORAGE_VERSION, cs as SessionContext, cx as SessionTurnLock, cy as SessionTurnLockAcquireOptions } from '../instance-
|
|
1
|
+
import { bQ as MessageRole, bf as FileEntry, ct as SessionEntry, M as Message, bK as MessageEntry, bS as MetadataEntry, cq as SerializedMessage, cv as SessionInfo, cw as SessionStorage, cu as SessionHeader, S as SessionManager } from '../instance-Bg61WSyz.js';
|
|
2
|
+
export { aA as BranchEntry, aF as CompactionEntry, aH as ConfigChangeEntry, aN as CreateSessionOptions, bc as EntryBase, bA as LocalSessionTurnLock, cg as RecentMessagesOptions, ch as ReleaseSessionTurnLock, cp as STORAGE_VERSION, cs as SessionContext, cx as SessionTurnLock, cy as SessionTurnLockAcquireOptions } from '../instance-Bg61WSyz.js';
|
|
3
3
|
import { L as Logger } from '../types-RSCv7nQ4.js';
|
|
4
4
|
import '../types-C_LCeYNg.js';
|
|
5
5
|
import 'ai';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a_ as DispatchRole, aZ as DispatchResult, bz as LocalDispatchRuntimeOptions, C as Agent, T as Tool, a$ as DispatchRuntime, cb as Profile } from '../instance-
|
|
1
|
+
import { a_ as DispatchRole, aZ as DispatchResult, bz as LocalDispatchRuntimeOptions, C as Agent, T as Tool, a$ as DispatchRuntime, cb as Profile } from '../instance-Bg61WSyz.js';
|
|
2
2
|
import '../types-C_LCeYNg.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../types-RSCv7nQ4.js';
|
package/dist/team/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aI as CoordinatorNotification, d3 as TaskCompletion, du as TokenUsage, A as AgentEvent, e4 as CoordinatorCtx, C as Agent, bF as MemberRuntime, d0 as TaskBoard, bB as Mailbox, d7 as TaskDispatchMode, c2 as PermissionHandler, dh as TeamCoordinatorConfig, d8 as TaskExecutor, di as TeamEvent, dj as TeamMember, cf as QueueTaskInput, dr as TeamTask, dk as TeamMessage, dm as TeamPlan, cY as SynthesisResult, dn as TeamSnapshot, db as TaskListFilter, bO as MessageListFilter, ca as PreparedExternalTask, dc as TaskResult, de as TaskTransition, bG as MemberStats, bH as MemberStatus, N as AgentMiddleware, dv as ToolCallDecision } from '../instance-
|
|
2
|
-
export { aJ as CoordinatorNotificationKind, aK as CoordinatorRoundEvent, be as ExternalTaskControl, bg as GuidancePayload, bt as IdleNotificationPayload, bu as InMemoryMailboxStore, bv as InMemoryTaskBoardStore, bC as MailboxStore, bD as MailboxSubscriber, bE as MemberRegisteredEvent, bI as MemberStatusChangedEvent, bM as MessageInput, bN as MessageKind, bP as MessagePayload, bR as MessageSentEvent, bX as NotificationPriority, c1 as PermissionForwardedEvent, c3 as PermissionRequestPayload, c4 as PermissionResolvedEvent, c5 as PermissionResponsePayload, c6 as PlanCreatedEvent, c7 as PlannedTask, cz as ShutdownRequestPayload, cA as ShutdownRequestedEvent, cB as ShutdownResolvedEvent, cC as ShutdownResponsePayload, cX as SynthesisCompleteEvent, c_ as TERMINAL_STATUSES, c$ as TaskAbortedEvent, d1 as TaskBoardStore, d2 as TaskCompletedEvent, d4 as TaskConflictError, d5 as TaskCreateInput, d6 as TaskCreatedEvent, d9 as TaskExecutorInput, da as TaskFailedEvent, dd as TaskStatus, df as TaskTransitionEvent, dg as TaskTransitionReason, dl as TeamNotificationEvent, dp as TeamStartedEvent, dq as TeamStoppedEvent, dJ as WorkerReportPayload, dN as buildCoordinatorNotificationEvent } from '../instance-
|
|
1
|
+
import { aI as CoordinatorNotification, d3 as TaskCompletion, du as TokenUsage, A as AgentEvent, e4 as CoordinatorCtx, C as Agent, bF as MemberRuntime, d0 as TaskBoard, bB as Mailbox, d7 as TaskDispatchMode, c2 as PermissionHandler, dh as TeamCoordinatorConfig, d8 as TaskExecutor, di as TeamEvent, dj as TeamMember, cf as QueueTaskInput, dr as TeamTask, dk as TeamMessage, dm as TeamPlan, cY as SynthesisResult, dn as TeamSnapshot, db as TaskListFilter, bO as MessageListFilter, ca as PreparedExternalTask, dc as TaskResult, de as TaskTransition, bG as MemberStats, bH as MemberStatus, N as AgentMiddleware, dv as ToolCallDecision } from '../instance-Bg61WSyz.js';
|
|
2
|
+
export { aJ as CoordinatorNotificationKind, aK as CoordinatorRoundEvent, be as ExternalTaskControl, bg as GuidancePayload, bt as IdleNotificationPayload, bu as InMemoryMailboxStore, bv as InMemoryTaskBoardStore, bC as MailboxStore, bD as MailboxSubscriber, bE as MemberRegisteredEvent, bI as MemberStatusChangedEvent, bM as MessageInput, bN as MessageKind, bP as MessagePayload, bR as MessageSentEvent, bX as NotificationPriority, c1 as PermissionForwardedEvent, c3 as PermissionRequestPayload, c4 as PermissionResolvedEvent, c5 as PermissionResponsePayload, c6 as PlanCreatedEvent, c7 as PlannedTask, cz as ShutdownRequestPayload, cA as ShutdownRequestedEvent, cB as ShutdownResolvedEvent, cC as ShutdownResponsePayload, cX as SynthesisCompleteEvent, c_ as TERMINAL_STATUSES, c$ as TaskAbortedEvent, d1 as TaskBoardStore, d2 as TaskCompletedEvent, d4 as TaskConflictError, d5 as TaskCreateInput, d6 as TaskCreatedEvent, d9 as TaskExecutorInput, da as TaskFailedEvent, dd as TaskStatus, df as TaskTransitionEvent, dg as TaskTransitionReason, dl as TeamNotificationEvent, dp as TeamStartedEvent, dq as TeamStoppedEvent, dJ as WorkerReportPayload, dN as buildCoordinatorNotificationEvent } from '../instance-Bg61WSyz.js';
|
|
3
3
|
import { R as ReasoningLevel } from '../types-CQaXbRsS.js';
|
|
4
4
|
import '../types-C_LCeYNg.js';
|
|
5
5
|
import 'ai';
|
package/dist/tool/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dD as ToolReplayPolicy, F as FileOperationMeta, bW as NormalizedToolReplayPolicy, T as Tool, H as HumanInputController, a as TurnTrackerContext, b as MiddlewareRunner, A as AgentEvent, dB as ToolMetadata, dx as ToolCapabilities } from '../instance-
|
|
2
|
-
export { aG as CompatibleSchema, bw as InferSchemaOutput, bx as InputCheckResult, dY as getRequiredToolHost, e2 as resolveCapability } from '../instance-
|
|
1
|
+
import { dD as ToolReplayPolicy, F as FileOperationMeta, bW as NormalizedToolReplayPolicy, T as Tool, H as HumanInputController, a as TurnTrackerContext, b as MiddlewareRunner, A as AgentEvent, dB as ToolMetadata, dx as ToolCapabilities } from '../instance-Bg61WSyz.js';
|
|
2
|
+
export { aG as CompatibleSchema, bw as InferSchemaOutput, bx as InputCheckResult, dY as getRequiredToolHost, e2 as resolveCapability } from '../instance-Bg61WSyz.js';
|
|
3
3
|
import { T as ToolHost } from '../types-C_LCeYNg.js';
|
|
4
4
|
export { D as DirEntry, E as ExecOptions, a as ExecResult, F as FileStat } from '../types-C_LCeYNg.js';
|
|
5
5
|
export { ToolHostProvider, ToolHostProviderSummary, ToolHostRegistry, defaultToolHostRegistry, localHost } from './host/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'ai';
|
|
2
|
-
export { ad as AgentTurnToolContext, t as AgentTurnToolProvider, ae as AgentTurnToolProviderResult } from '../instance-
|
|
2
|
+
export { ad as AgentTurnToolContext, t as AgentTurnToolProvider, ae as AgentTurnToolProviderResult } from '../instance-Bg61WSyz.js';
|
|
3
3
|
import '../types-C_LCeYNg.js';
|
|
4
4
|
import '../types-RSCv7nQ4.js';
|
|
5
5
|
import 'zod';
|