@cuylabs/agent-core 0.16.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-TZ4VA4VX.js → chunk-CGUASKOH.js} +81 -6
- package/dist/{chunk-WI5JFEAI.js → chunk-GJFP5L2V.js} +9 -4
- package/dist/{chunk-HNEI7JVE.js → chunk-P2SPTUH5.js} +1 -1
- package/dist/{chunk-NWQUZWLT.js → chunk-WR6KIGJQ.js} +3 -3
- package/dist/dispatch/index.d.ts +2 -2
- package/dist/execution/index.d.ts +3 -3
- package/dist/execution/index.js +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/inference/index.d.ts +3 -3
- package/dist/inference/index.js +2 -2
- package/dist/{instance-Ijh9CP-_.d.ts → instance-DpAn37V_.d.ts} +51 -6
- package/dist/middleware/index.d.ts +2 -2
- package/dist/middleware/index.js +1 -1
- package/dist/{model-messages-Bt_qyGsO.d.ts → model-messages-BDTy2LY_.d.ts} +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/reasoning/index.js +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/package.json +25 -28
|
@@ -365,6 +365,36 @@ function getInputMimeType(value) {
|
|
|
365
365
|
const trimmed = value.trimStart();
|
|
366
366
|
return trimmed.startsWith("{") || trimmed.startsWith("[") ? "application/json" : "text/plain";
|
|
367
367
|
}
|
|
368
|
+
function safeJsonStringify(value) {
|
|
369
|
+
try {
|
|
370
|
+
return JSON.stringify(value);
|
|
371
|
+
} catch {
|
|
372
|
+
return String(value);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
var A365_MESSAGE_SCHEMA_VERSION = "0.1.0";
|
|
376
|
+
function createInputMessagesAttribute(content) {
|
|
377
|
+
return JSON.stringify({
|
|
378
|
+
version: A365_MESSAGE_SCHEMA_VERSION,
|
|
379
|
+
messages: [
|
|
380
|
+
{
|
|
381
|
+
role: "user",
|
|
382
|
+
parts: [{ type: "text", content }]
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
function createOutputMessagesAttribute(content) {
|
|
388
|
+
return JSON.stringify({
|
|
389
|
+
version: A365_MESSAGE_SCHEMA_VERSION,
|
|
390
|
+
messages: [
|
|
391
|
+
{
|
|
392
|
+
role: "assistant",
|
|
393
|
+
parts: [{ type: "text", content }]
|
|
394
|
+
}
|
|
395
|
+
]
|
|
396
|
+
});
|
|
397
|
+
}
|
|
368
398
|
async function getOtelModule() {
|
|
369
399
|
if (!otelModulePromise) {
|
|
370
400
|
otelModulePromise = import("@opentelemetry/api").then((module) => module).catch(() => null);
|
|
@@ -392,6 +422,7 @@ function otelMiddleware(config = {}) {
|
|
|
392
422
|
const agentName = config.agentName ?? DEFAULT_AGENT_NAME;
|
|
393
423
|
const emitToolSpans = config.emitToolSpans ?? true;
|
|
394
424
|
const spanTimeoutMs = config.spanTimeoutMs ?? 5 * 60 * 1e3;
|
|
425
|
+
const configuredSpanAttributes = config.spanAttributes ?? {};
|
|
395
426
|
const chatSpans = /* @__PURE__ */ new Map();
|
|
396
427
|
const toolSpans = /* @__PURE__ */ new Map();
|
|
397
428
|
let otel = null;
|
|
@@ -423,19 +454,28 @@ function otelMiddleware(config = {}) {
|
|
|
423
454
|
}
|
|
424
455
|
const key = makeChatSpanKey(sessionId, chatCtx?.turnId);
|
|
425
456
|
const attributes = {
|
|
457
|
+
...configuredSpanAttributes,
|
|
426
458
|
"openinference.span.kind": "AGENT",
|
|
427
459
|
"gen_ai.operation.name": "invoke_agent",
|
|
428
460
|
"gen_ai.agent.name": agentName,
|
|
429
|
-
"gen_ai.agent.session_id": sessionId
|
|
461
|
+
"gen_ai.agent.session_id": sessionId,
|
|
462
|
+
"gen_ai.conversation.id": sessionId
|
|
430
463
|
};
|
|
431
464
|
if (chatCtx?.turnId) {
|
|
432
465
|
attributes["gen_ai.agent.turn_id"] = chatCtx.turnId;
|
|
433
466
|
}
|
|
467
|
+
if (config.agentId) {
|
|
468
|
+
attributes["gen_ai.agent.id"] = config.agentId;
|
|
469
|
+
}
|
|
434
470
|
if (config.agentDescription) {
|
|
435
471
|
attributes["gen_ai.agent.description"] = config.agentDescription;
|
|
436
472
|
}
|
|
473
|
+
if (config.agentVersion) {
|
|
474
|
+
attributes["gen_ai.agent.version"] = config.agentVersion;
|
|
475
|
+
}
|
|
437
476
|
if (recordInputs) {
|
|
438
477
|
const inputValue = message.slice(0, 4096);
|
|
478
|
+
attributes["gen_ai.input.messages"] = createInputMessagesAttribute(inputValue);
|
|
439
479
|
attributes["input.value"] = inputValue;
|
|
440
480
|
attributes["input.mime_type"] = getInputMimeType(inputValue);
|
|
441
481
|
}
|
|
@@ -468,15 +508,24 @@ function otelMiddleware(config = {}) {
|
|
|
468
508
|
}) : void 0;
|
|
469
509
|
const parent = parentKey ? chatSpans.get(parentKey) : void 0;
|
|
470
510
|
const parentCtx = parent?.ctx ?? otel.context.active();
|
|
511
|
+
const callId = resolveToolCallId(args, ctx);
|
|
471
512
|
const span = activeTracer.startSpan(
|
|
472
513
|
`execute_tool ${tool}`,
|
|
473
514
|
{
|
|
474
515
|
attributes: {
|
|
516
|
+
...configuredSpanAttributes,
|
|
475
517
|
"openinference.span.kind": "TOOL",
|
|
476
518
|
"gen_ai.operation.name": "execute_tool",
|
|
519
|
+
"gen_ai.agent.name": agentName,
|
|
520
|
+
...config.agentId ? { "gen_ai.agent.id": config.agentId } : {},
|
|
521
|
+
...config.agentDescription ? { "gen_ai.agent.description": config.agentDescription } : {},
|
|
522
|
+
...config.agentVersion ? { "gen_ai.agent.version": config.agentVersion } : {},
|
|
523
|
+
...sessionId ? { "gen_ai.conversation.id": sessionId } : {},
|
|
477
524
|
"gen_ai.tool.name": tool,
|
|
525
|
+
"gen_ai.tool.call.id": callId,
|
|
526
|
+
"gen_ai.tool.type": "function",
|
|
478
527
|
...recordInputs && args != null ? (() => {
|
|
479
|
-
const argsString =
|
|
528
|
+
const argsString = safeJsonStringify(args).slice(0, 4096);
|
|
480
529
|
return {
|
|
481
530
|
"gen_ai.tool.call.arguments": argsString,
|
|
482
531
|
"input.value": argsString,
|
|
@@ -488,7 +537,6 @@ function otelMiddleware(config = {}) {
|
|
|
488
537
|
},
|
|
489
538
|
parentCtx
|
|
490
539
|
);
|
|
491
|
-
const callId = resolveToolCallId(args, ctx);
|
|
492
540
|
const key = makeToolSpanKey(tool, callId);
|
|
493
541
|
const toolCtx = otel.trace.setSpan(parentCtx, span);
|
|
494
542
|
toolSpans.set(key, {
|
|
@@ -516,7 +564,7 @@ function otelMiddleware(config = {}) {
|
|
|
516
564
|
clearTimeout(entry.timer);
|
|
517
565
|
}
|
|
518
566
|
if (recordOutputs && result.output) {
|
|
519
|
-
const outputValue = (typeof result.output === "string" ? result.output :
|
|
567
|
+
const outputValue = (typeof result.output === "string" ? result.output : safeJsonStringify(result.output)).slice(0, 4096);
|
|
520
568
|
entry.span.setAttribute("gen_ai.tool.call.result", outputValue);
|
|
521
569
|
entry.span.setAttribute("output.value", outputValue);
|
|
522
570
|
entry.span.setAttribute(
|
|
@@ -574,6 +622,11 @@ function otelMiddleware(config = {}) {
|
|
|
574
622
|
}
|
|
575
623
|
if (recordOutputs && result.output) {
|
|
576
624
|
const outputValue = result.output.slice(0, 4096);
|
|
625
|
+
entry.span.setAttribute(
|
|
626
|
+
"gen_ai.output.messages",
|
|
627
|
+
createOutputMessagesAttribute(outputValue)
|
|
628
|
+
);
|
|
629
|
+
entry.span.setAttribute("gen_ai.output.type", "text");
|
|
577
630
|
entry.span.setAttribute("gen_ai.output.text", outputValue);
|
|
578
631
|
entry.span.setAttribute("output.value", outputValue);
|
|
579
632
|
entry.span.setAttribute(
|
|
@@ -597,6 +650,7 @@ function otelMiddleware(config = {}) {
|
|
|
597
650
|
}
|
|
598
651
|
|
|
599
652
|
// src/middleware/telemetry/provider.ts
|
|
653
|
+
import { GenAIOpenTelemetry } from "@ai-sdk/otel";
|
|
600
654
|
var sharedProviderState;
|
|
601
655
|
function createTelemetryConfig(config) {
|
|
602
656
|
const recordInputs = config.recordInputs ?? true;
|
|
@@ -610,18 +664,23 @@ function createTelemetryConfig(config) {
|
|
|
610
664
|
}
|
|
611
665
|
const middleware = otelMiddleware({
|
|
612
666
|
agentName: config.agentName,
|
|
667
|
+
agentId: config.agentId,
|
|
613
668
|
agentDescription: config.agentDescription,
|
|
669
|
+
agentVersion: config.agentVersion,
|
|
670
|
+
spanAttributes: config.spanAttributes,
|
|
614
671
|
recordInputs,
|
|
615
672
|
recordOutputs,
|
|
616
673
|
emitToolSpans: config.emitToolSpans,
|
|
617
674
|
spanTimeoutMs: config.spanTimeoutMs,
|
|
618
675
|
providerReady: providerPromise
|
|
619
676
|
});
|
|
677
|
+
const integrations = createTelemetryIntegrations(config);
|
|
620
678
|
const telemetry = {
|
|
621
|
-
isEnabled: true,
|
|
679
|
+
isEnabled: integrations.length > 0 || config.useGlobalTelemetryIntegrations === true,
|
|
622
680
|
functionId: config.agentName,
|
|
623
681
|
recordInputs,
|
|
624
|
-
recordOutputs
|
|
682
|
+
recordOutputs,
|
|
683
|
+
...integrations.length > 0 ? { integrations } : {}
|
|
625
684
|
};
|
|
626
685
|
return {
|
|
627
686
|
middleware,
|
|
@@ -634,6 +693,22 @@ function createTelemetryConfig(config) {
|
|
|
634
693
|
}
|
|
635
694
|
};
|
|
636
695
|
}
|
|
696
|
+
function createTelemetryIntegrations(config) {
|
|
697
|
+
const integrations = [];
|
|
698
|
+
if (config.useGenAIOpenTelemetry !== false) {
|
|
699
|
+
integrations.push(new GenAIOpenTelemetry());
|
|
700
|
+
}
|
|
701
|
+
integrations.push(
|
|
702
|
+
...toTelemetryIntegrationArray(config.telemetryIntegrations)
|
|
703
|
+
);
|
|
704
|
+
return integrations;
|
|
705
|
+
}
|
|
706
|
+
function toTelemetryIntegrationArray(integrations) {
|
|
707
|
+
if (!integrations) {
|
|
708
|
+
return [];
|
|
709
|
+
}
|
|
710
|
+
return Array.isArray(integrations) ? [...integrations] : [integrations];
|
|
711
|
+
}
|
|
637
712
|
function acquireSharedProvider(spanProcessor, serviceName) {
|
|
638
713
|
if (!sharedProviderState) {
|
|
639
714
|
const promise = createAndRegisterProvider(spanProcessor, serviceName).catch(
|
|
@@ -97,13 +97,18 @@ async function createFactory(adapter, settings) {
|
|
|
97
97
|
return (modelId) => provider.languageModel(modelId);
|
|
98
98
|
}
|
|
99
99
|
case "openrouter": {
|
|
100
|
-
const {
|
|
100
|
+
const { createOpenAICompatible } = await import("@ai-sdk/openai-compatible").catch(() => {
|
|
101
101
|
throw new Error(
|
|
102
|
-
`Provider "@
|
|
102
|
+
`Provider "@ai-sdk/openai-compatible" is required for the "openrouter" adapter. Install it with: pnpm add @ai-sdk/openai-compatible`
|
|
103
103
|
);
|
|
104
104
|
});
|
|
105
|
-
const provider =
|
|
106
|
-
|
|
105
|
+
const provider = createOpenAICompatible({
|
|
106
|
+
name: opts.name ?? "openrouter",
|
|
107
|
+
baseURL: opts.baseURL ?? "https://openrouter.ai/api/v1",
|
|
108
|
+
...opts.apiKey ? { apiKey: opts.apiKey } : {},
|
|
109
|
+
...opts.headers ? { headers: opts.headers } : {}
|
|
110
|
+
});
|
|
111
|
+
return (modelId) => provider.languageModel(modelId);
|
|
107
112
|
}
|
|
108
113
|
case "azure": {
|
|
109
114
|
const { createAzure } = await import("@ai-sdk/azure").catch(() => {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
buildReasoningOptionsSync,
|
|
11
11
|
supportsReasoningSync
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GJFP5L2V.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_MAX_STEPS,
|
|
15
15
|
DEFAULT_MAX_TOKENS,
|
|
@@ -160,7 +160,7 @@ function wrapMcpToolsForMiddleware(options) {
|
|
|
160
160
|
extra: {
|
|
161
161
|
toolCallId: execOptions.toolCallId,
|
|
162
162
|
messages: execOptions.messages,
|
|
163
|
-
|
|
163
|
+
context: execOptions.context
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
166
|
const decision = await middleware.runBeforeToolCall(
|
|
@@ -421,7 +421,7 @@ async function callStreamTextWithOtelContext(options) {
|
|
|
421
421
|
...input.topP !== void 0 && !supportsReasoningSync(input.model) ? { topP: input.topP } : {},
|
|
422
422
|
abortSignal: input.abort,
|
|
423
423
|
providerOptions: mergedProviderOptions,
|
|
424
|
-
|
|
424
|
+
telemetry: input.telemetry,
|
|
425
425
|
// The AI SDK defaults to console.error(error) for stream failures.
|
|
426
426
|
// We normalize and surface these errors through our own runtime events,
|
|
427
427
|
// so suppress the duplicate raw dump here.
|
package/dist/dispatch/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { br as LocalDispatchRuntimeOptions, aU as DispatchRuntime, T as Tool, d0 as TaskExecutorInput, c$ as TaskExecutor, aR as DispatchRecord, aY as DispatchTargetInspection, aX as DispatchTarget, dh as TeamTask, bx as MemberRuntime, a_ as DispatchTargetStartResult, a$ as DispatchTargetSummary, b7 as ExternalTaskControl } from '../instance-
|
|
2
|
-
export { aI as DEFAULT_DISPATCH_TOOL_IDS, aJ as DEFAULT_LOCAL_DISPATCH_CONCURRENCY, aK as DEFAULT_LOCAL_DISPATCH_DEPTH, aL as DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX, aO as DISPATCH_STATES, aP as DispatchCheckOptions, aQ as DispatchListOptions, aS as DispatchResult, aT as DispatchRole, aV as DispatchStartInput, aW as DispatchState, aZ as DispatchTargetStartInput, b0 as DispatchUsage } from '../instance-
|
|
1
|
+
import { br as LocalDispatchRuntimeOptions, aU as DispatchRuntime, T as Tool, d0 as TaskExecutorInput, c$ as TaskExecutor, aR as DispatchRecord, aY as DispatchTargetInspection, aX as DispatchTarget, dh as TeamTask, bx as MemberRuntime, a_ as DispatchTargetStartResult, a$ as DispatchTargetSummary, b7 as ExternalTaskControl } from '../instance-DpAn37V_.js';
|
|
2
|
+
export { aI as DEFAULT_DISPATCH_TOOL_IDS, aJ as DEFAULT_LOCAL_DISPATCH_CONCURRENCY, aK as DEFAULT_LOCAL_DISPATCH_DEPTH, aL as DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX, aO as DISPATCH_STATES, aP as DispatchCheckOptions, aQ as DispatchListOptions, aS as DispatchResult, aT as DispatchRole, aV as DispatchStartInput, aW as DispatchState, aZ as DispatchTargetStartInput, b0 as DispatchUsage } from '../instance-DpAn37V_.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, cF as StepProcessingOptions, cG as StepProcessingOutput, a6 as AgentTurnStepCommitSnapshot, aF as CreateAgentTurnStepCommitBatchOptions, _ as AgentTurnCommitBatch, c0 as PrepareModelStepOptions, c1 as PreparedAgentModelStep, cd as RunModelStepOptions, A as AgentEvent, ce as RunToolBatchOptions, cf as RunToolBatchResult, av as CommitOutputOptions, aw as CommitStepOptions, dk as TokenUsage, v as ScopeSnapshot, a4 as AgentTurnState, ds as ToolMetadata, a8 as AgentTurnStepCommitToolResult, a7 as AgentTurnStepCommitToolCall, M as Message, dz as UserMessage, ar as AssistantMessage, dr as ToolMessage, cQ as SystemMessage } from '../instance-
|
|
2
|
-
export { Q as AgentTurnActiveToolCall, X as AgentTurnBoundaryMetadata, Y as AgentTurnBoundarySnapshot, Z as AgentTurnCommitApplier, $ as AgentTurnCommitOptions, a0 as AgentTurnEngine, a1 as AgentTurnEngineOptions, a2 as AgentTurnPhase, a3 as AgentTurnResolvedToolCall, a5 as AgentTurnStateAdvanceOptions, a9 as AgentTurnStepRuntimeConfig, aE as CreateAgentTurnStateOptions, dC as advanceAgentTurnState, dG as createAgentTurnEngine, dH as createAgentTurnState, dO as failAgentTurnState } from '../instance-
|
|
1
|
+
import { e as AnyInferenceResult, cF as StepProcessingOptions, cG as StepProcessingOutput, a6 as AgentTurnStepCommitSnapshot, aF as CreateAgentTurnStepCommitBatchOptions, _ as AgentTurnCommitBatch, c0 as PrepareModelStepOptions, c1 as PreparedAgentModelStep, cd as RunModelStepOptions, A as AgentEvent, ce as RunToolBatchOptions, cf as RunToolBatchResult, av as CommitOutputOptions, aw as CommitStepOptions, dk as TokenUsage, v as ScopeSnapshot, a4 as AgentTurnState, ds as ToolMetadata, a8 as AgentTurnStepCommitToolResult, a7 as AgentTurnStepCommitToolCall, M as Message, dz as UserMessage, ar as AssistantMessage, dr as ToolMessage, cQ as SystemMessage } from '../instance-DpAn37V_.js';
|
|
2
|
+
export { Q as AgentTurnActiveToolCall, X as AgentTurnBoundaryMetadata, Y as AgentTurnBoundarySnapshot, Z as AgentTurnCommitApplier, $ as AgentTurnCommitOptions, a0 as AgentTurnEngine, a1 as AgentTurnEngineOptions, a2 as AgentTurnPhase, a3 as AgentTurnResolvedToolCall, a5 as AgentTurnStateAdvanceOptions, a9 as AgentTurnStepRuntimeConfig, aE as CreateAgentTurnStateOptions, dC as advanceAgentTurnState, dG as createAgentTurnEngine, dH as createAgentTurnState, dO as failAgentTurnState } from '../instance-DpAn37V_.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-BDTy2LY_.js';
|
|
5
5
|
import '../types-C_LCeYNg.js';
|
|
6
6
|
import 'ai';
|
|
7
7
|
import 'zod';
|
package/dist/execution/index.js
CHANGED
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
runToolBatch,
|
|
32
32
|
snapshotAgentWorkflowMessage,
|
|
33
33
|
snapshotAgentWorkflowMessages
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-P2SPTUH5.js";
|
|
35
35
|
import {
|
|
36
36
|
convertAgentMessagesToModelMessages
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-WR6KIGJQ.js";
|
|
38
38
|
import "../chunk-ZKEC7MFQ.js";
|
|
39
39
|
import "../chunk-STDJYXYK.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-GJFP5L2V.js";
|
|
41
41
|
import "../chunk-CJI7PVS2.js";
|
|
42
42
|
import "../chunk-I6PKJ7XQ.js";
|
|
43
43
|
import "../chunk-MLTJHUVG.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, c as ToolExecutionMode, A as AgentEvent, t as StreamProvider, u as Scope, v as ScopeSnapshot, x as ScopeOptions, F as FileOperationMeta, y as AgentSignal, z as TypedHandler, U as Unsubscribe, W as WildcardHandler } from './instance-
|
|
2
|
-
export { B as Agent, C as AgentConfig, G as AgentDefaults, J as AgentDefaultsContext, K as AgentDefaultsProvider, L as AgentMiddleware, N as AgentModelHooks, O as AgentStatus, Q as AgentTurnActiveToolCall, V as AgentTurnBoundaryKind, X as AgentTurnBoundaryMetadata, Y as AgentTurnBoundarySnapshot, Z as AgentTurnCommitApplier, _ as AgentTurnCommitBatch, $ as AgentTurnCommitOptions, a0 as AgentTurnEngine, a1 as AgentTurnEngineOptions, a2 as AgentTurnPhase, a3 as AgentTurnResolvedToolCall, a4 as AgentTurnState, a5 as AgentTurnStateAdvanceOptions, a6 as AgentTurnStepCommitSnapshot, a7 as AgentTurnStepCommitToolCall, a8 as AgentTurnStepCommitToolResult, a9 as AgentTurnStepRuntimeConfig, e as AnyInferenceResult, aa as AppliedProfile, ab as ApprovalAction, ac as ApprovalAgentMiddleware, ad as ApprovalCascadeMode, ae as ApprovalCascadePolicy, af as ApprovalConfig, ag as ApprovalCorrection, ah as ApprovalDecision, ai as ApprovalEvaluation, aj as ApprovalEvent, ak as ApprovalHandler, al as ApprovalMiddlewareConfig, am as ApprovalRememberScope, an as ApprovalRequest, ao as ApprovalResolution, ap as ApprovalRule, aq as ApprovalRuleContext, ar as AssistantMessage, as as BlockedModelCall, at as BranchEntry, au as ChatLifecycleContext, av as CommitOutputOptions, aw as CommitStepOptions, ax as CompactionConfig, ay as CompactionEntry, az as CompatibleSchema, aA as ConfigChangeEntry, aB as CoordinatorNotification, aC as CoordinatorNotificationKind, aD as CoordinatorRoundEvent, aE as CreateAgentTurnStateOptions, aF as CreateAgentTurnStepCommitBatchOptions, aG as CreateSessionOptions, aH as DEFAULT_AGENT_NAME, aI as DEFAULT_DISPATCH_TOOL_IDS, aJ as DEFAULT_LOCAL_DISPATCH_CONCURRENCY, aK as DEFAULT_LOCAL_DISPATCH_DEPTH, aL as DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX, D as DEFAULT_MAX_OUTPUT_TOKENS, aM as DEFAULT_MAX_STEPS, D as DEFAULT_MAX_TOKENS, f as DEFAULT_RETRY_CONFIG, aN as DEFAULT_SYSTEM_PROMPT, aO as DISPATCH_STATES, aP as DispatchCheckOptions, aQ as DispatchListOptions, aR as DispatchRecord, aS as DispatchResult, aT as DispatchRole, aU as DispatchRuntime, aV as DispatchStartInput, aW as DispatchState, aX as DispatchTarget, aY as DispatchTargetInspection, aZ as DispatchTargetStartInput, a_ as DispatchTargetStartResult, a$ as DispatchTargetSummary, b0 as DispatchUsage, b1 as DoomLoopAction, b2 as DoomLoopHandler, b3 as DoomLoopRequest, b4 as EnhancedTools, b5 as EntryBase, b6 as EnvironmentInfo, b7 as ExternalTaskControl, b8 as FileEntry, b9 as GuidancePayload, ba as HumanInputEventContext, bb as HumanInputOption, bc as HumanInputRequest, bd as HumanInputRequestKind, be as HumanInputRequestListOptions, bf as HumanInputRequestRecord, bg as HumanInputRequestStatus, bh as HumanInputResponse, bi as HumanInputTimeoutError, bj as HumanInputToolArgs, bk as HumanInputUnavailableError, bl as IdleNotificationPayload, bm as InMemoryMailboxStore, bn as InMemoryTaskBoardStore, bo as InferSchemaOutput, g as InferenceCustomResult, h as InferenceStepInfo, I as InferenceStreamInput, i as InferenceStreamResult, bp as InputCheckResult, bq as InstructionFile, br as LocalDispatchRuntimeOptions, bs as LocalSessionTurnLock, bt as Mailbox, bu as MailboxStore, bv as MailboxSubscriber, bw as MemberRegisteredEvent, bx as MemberRuntime, by as MemberStats, bz as MemberStatus, bA as MemberStatusChangedEvent, bB as MessageBase, bC as MessageEntry, bD as MessageError, bE as MessageInput, bF as MessageKind, bG as MessageListFilter, bH as MessagePayload, bI as MessageRole, bJ as MessageSentEvent, bK as MetadataEntry, d as ModelCallContext, bL as ModelCallInput, bM as ModelCallOutput, bN as ModelFamily, bO as NormalizedToolReplayPolicy, bP as NotificationPriority, bQ as OnFollowUpQueued, bR as OnInterventionApplied, bS as OtelMiddlewareConfig, bT as PRUNE_PROTECTED_TOOLS, bU as PendingIntervention, bV as PermissionForwardedEvent, bW as PermissionHandler, bX as PermissionRequestPayload, bY as PermissionResolvedEvent, bZ as PermissionResponsePayload, b_ as PlanCreatedEvent, b$ as PlannedTask, c0 as PrepareModelStepOptions, c1 as PreparedAgentModelStep, c2 as PreparedExternalTask, c3 as Profile, c4 as PromptBuildContext, c5 as PromptConfig, c6 as PromptSection, c7 as QueueTaskInput, c8 as ReleaseSessionTurnLock, c9 as RemoteSkillEntry, ca as RemoteSkillIndex, R as RetryConfig, j as RetryHandlerOptions, k as RetryState, cb as RiskLevel, cc as RuleSource, cd as RunModelStepOptions, ce as RunToolBatchOptions, cf as RunToolBatchResult, cg as STORAGE_VERSION, ch as SerializedMessage, ci as Session, cj as SessionContext, ck as SessionEntry, cl as SessionHeader, cm as SessionInfo, cn as SessionStorage, co as SessionTurnLock, cp as SessionTurnLockAcquireOptions, cq as ShutdownRequestPayload, cr as ShutdownRequestedEvent, cs as ShutdownResolvedEvent, ct as ShutdownResponsePayload, cu as SkillConfig, cv as SkillContent, cw as SkillDiscoveryError, cx as SkillDiscoveryResult, cy as SkillMetadata, cz as SkillRegistry, cA as SkillResource, cB as SkillResourceType, cC as SkillScope, cD as SkillSource, cE as SkillSourceType, cF as StepProcessingOptions, cG as StepProcessingOutput, cH as StepProcessingResult, cI as StreamChunk, cJ as StreamInput, cK as StreamProviderConfig, cL as StreamProviderFactory, cM as StreamProviderInput, cN as StreamProviderResult, cO as SynthesisCompleteEvent, cP as SynthesisResult, cQ as SystemMessage, cR as TERMINAL_STATUSES, cS as TaskAbortedEvent, cT as TaskBoard, cU as TaskBoardStore, cV as TaskCompletedEvent, cW as TaskCompletion, cX as TaskConflictError, cY as TaskCreateInput, cZ as TaskCreatedEvent, c_ as TaskDispatchMode, c$ as TaskExecutor, d0 as TaskExecutorInput, d1 as TaskFailedEvent, d2 as TaskListFilter, d3 as TaskResult, d4 as TaskStatus, d5 as TaskTransition, d6 as TaskTransitionEvent, d7 as TaskTransitionReason, d8 as TeamCoordinatorConfig, d9 as TeamEvent, da as TeamMember, db as TeamMessage, dc as TeamNotificationEvent, dd as TeamPlan, de as TeamSnapshot, df as TeamStartedEvent, dg as TeamStoppedEvent, dh as TeamTask, di as TelemetryConfig, dj as TelemetryConfigResult, dk as TokenUsage, dl as ToolCallDecision, dm as ToolCallOutput, dn as ToolCapabilities, dp as ToolContext, dq as ToolHostRequirements, dr as ToolMessage, ds as ToolMetadata, dt as ToolReplayMode, du as ToolReplayPolicy, dv as ToolResult, dw as ToolSideEffectLevel, dx as TracingConfig, a as TurnTrackerContext, dy as UndoResult, dz as UserMessage, dA as WorkerReportPayload, dB as accumulateUsage, dC as advanceAgentTurnState, dD as approvalMiddleware, dE as buildCoordinatorNotificationEvent, l as calculateDelay, dF as createAgent, dG as createAgentTurnEngine, dH as createAgentTurnState, dI as createApprovalHandler, dJ as createHumanInputController, dK as createPromptBuilder, m as createRetryHandler, n as createRetryState, dL as createSkillRegistry, dM as createTurnTracker, dN as emptySkillRegistry, dO as failAgentTurnState, dP as getRequiredToolHost, dQ as isApprovalMiddleware, dR as isBlockedModelCall, dS as isHumanInputController, dT as requiresToolHost, dU as resolveAgentDefaults, dV as resolveCapability, dW as sandboxDefaultsProvider, s as shouldRetry, w as withRetry } from './instance-
|
|
3
|
-
import { LanguageModel, ModelMessage, Tool as Tool$1,
|
|
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, c as ToolExecutionMode, A as AgentEvent, t as StreamProvider, u as Scope, v as ScopeSnapshot, x as ScopeOptions, F as FileOperationMeta, y as AgentSignal, z as TypedHandler, U as Unsubscribe, W as WildcardHandler } from './instance-DpAn37V_.js';
|
|
2
|
+
export { B as Agent, C as AgentConfig, G as AgentDefaults, J as AgentDefaultsContext, K as AgentDefaultsProvider, L as AgentMiddleware, N as AgentModelHooks, O as AgentStatus, Q as AgentTurnActiveToolCall, V as AgentTurnBoundaryKind, X as AgentTurnBoundaryMetadata, Y as AgentTurnBoundarySnapshot, Z as AgentTurnCommitApplier, _ as AgentTurnCommitBatch, $ as AgentTurnCommitOptions, a0 as AgentTurnEngine, a1 as AgentTurnEngineOptions, a2 as AgentTurnPhase, a3 as AgentTurnResolvedToolCall, a4 as AgentTurnState, a5 as AgentTurnStateAdvanceOptions, a6 as AgentTurnStepCommitSnapshot, a7 as AgentTurnStepCommitToolCall, a8 as AgentTurnStepCommitToolResult, a9 as AgentTurnStepRuntimeConfig, e as AnyInferenceResult, aa as AppliedProfile, ab as ApprovalAction, ac as ApprovalAgentMiddleware, ad as ApprovalCascadeMode, ae as ApprovalCascadePolicy, af as ApprovalConfig, ag as ApprovalCorrection, ah as ApprovalDecision, ai as ApprovalEvaluation, aj as ApprovalEvent, ak as ApprovalHandler, al as ApprovalMiddlewareConfig, am as ApprovalRememberScope, an as ApprovalRequest, ao as ApprovalResolution, ap as ApprovalRule, aq as ApprovalRuleContext, ar as AssistantMessage, as as BlockedModelCall, at as BranchEntry, au as ChatLifecycleContext, av as CommitOutputOptions, aw as CommitStepOptions, ax as CompactionConfig, ay as CompactionEntry, az as CompatibleSchema, aA as ConfigChangeEntry, aB as CoordinatorNotification, aC as CoordinatorNotificationKind, aD as CoordinatorRoundEvent, aE as CreateAgentTurnStateOptions, aF as CreateAgentTurnStepCommitBatchOptions, aG as CreateSessionOptions, aH as DEFAULT_AGENT_NAME, aI as DEFAULT_DISPATCH_TOOL_IDS, aJ as DEFAULT_LOCAL_DISPATCH_CONCURRENCY, aK as DEFAULT_LOCAL_DISPATCH_DEPTH, aL as DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX, D as DEFAULT_MAX_OUTPUT_TOKENS, aM as DEFAULT_MAX_STEPS, D as DEFAULT_MAX_TOKENS, f as DEFAULT_RETRY_CONFIG, aN as DEFAULT_SYSTEM_PROMPT, aO as DISPATCH_STATES, aP as DispatchCheckOptions, aQ as DispatchListOptions, aR as DispatchRecord, aS as DispatchResult, aT as DispatchRole, aU as DispatchRuntime, aV as DispatchStartInput, aW as DispatchState, aX as DispatchTarget, aY as DispatchTargetInspection, aZ as DispatchTargetStartInput, a_ as DispatchTargetStartResult, a$ as DispatchTargetSummary, b0 as DispatchUsage, b1 as DoomLoopAction, b2 as DoomLoopHandler, b3 as DoomLoopRequest, b4 as EnhancedTools, b5 as EntryBase, b6 as EnvironmentInfo, b7 as ExternalTaskControl, b8 as FileEntry, b9 as GuidancePayload, ba as HumanInputEventContext, bb as HumanInputOption, bc as HumanInputRequest, bd as HumanInputRequestKind, be as HumanInputRequestListOptions, bf as HumanInputRequestRecord, bg as HumanInputRequestStatus, bh as HumanInputResponse, bi as HumanInputTimeoutError, bj as HumanInputToolArgs, bk as HumanInputUnavailableError, bl as IdleNotificationPayload, bm as InMemoryMailboxStore, bn as InMemoryTaskBoardStore, bo as InferSchemaOutput, g as InferenceCustomResult, h as InferenceStepInfo, I as InferenceStreamInput, i as InferenceStreamResult, bp as InputCheckResult, bq as InstructionFile, br as LocalDispatchRuntimeOptions, bs as LocalSessionTurnLock, bt as Mailbox, bu as MailboxStore, bv as MailboxSubscriber, bw as MemberRegisteredEvent, bx as MemberRuntime, by as MemberStats, bz as MemberStatus, bA as MemberStatusChangedEvent, bB as MessageBase, bC as MessageEntry, bD as MessageError, bE as MessageInput, bF as MessageKind, bG as MessageListFilter, bH as MessagePayload, bI as MessageRole, bJ as MessageSentEvent, bK as MetadataEntry, d as ModelCallContext, bL as ModelCallInput, bM as ModelCallOutput, bN as ModelFamily, bO as NormalizedToolReplayPolicy, bP as NotificationPriority, bQ as OnFollowUpQueued, bR as OnInterventionApplied, bS as OtelMiddlewareConfig, bT as PRUNE_PROTECTED_TOOLS, bU as PendingIntervention, bV as PermissionForwardedEvent, bW as PermissionHandler, bX as PermissionRequestPayload, bY as PermissionResolvedEvent, bZ as PermissionResponsePayload, b_ as PlanCreatedEvent, b$ as PlannedTask, c0 as PrepareModelStepOptions, c1 as PreparedAgentModelStep, c2 as PreparedExternalTask, c3 as Profile, c4 as PromptBuildContext, c5 as PromptConfig, c6 as PromptSection, c7 as QueueTaskInput, c8 as ReleaseSessionTurnLock, c9 as RemoteSkillEntry, ca as RemoteSkillIndex, R as RetryConfig, j as RetryHandlerOptions, k as RetryState, cb as RiskLevel, cc as RuleSource, cd as RunModelStepOptions, ce as RunToolBatchOptions, cf as RunToolBatchResult, cg as STORAGE_VERSION, ch as SerializedMessage, ci as Session, cj as SessionContext, ck as SessionEntry, cl as SessionHeader, cm as SessionInfo, cn as SessionStorage, co as SessionTurnLock, cp as SessionTurnLockAcquireOptions, cq as ShutdownRequestPayload, cr as ShutdownRequestedEvent, cs as ShutdownResolvedEvent, ct as ShutdownResponsePayload, cu as SkillConfig, cv as SkillContent, cw as SkillDiscoveryError, cx as SkillDiscoveryResult, cy as SkillMetadata, cz as SkillRegistry, cA as SkillResource, cB as SkillResourceType, cC as SkillScope, cD as SkillSource, cE as SkillSourceType, cF as StepProcessingOptions, cG as StepProcessingOutput, cH as StepProcessingResult, cI as StreamChunk, cJ as StreamInput, cK as StreamProviderConfig, cL as StreamProviderFactory, cM as StreamProviderInput, cN as StreamProviderResult, cO as SynthesisCompleteEvent, cP as SynthesisResult, cQ as SystemMessage, cR as TERMINAL_STATUSES, cS as TaskAbortedEvent, cT as TaskBoard, cU as TaskBoardStore, cV as TaskCompletedEvent, cW as TaskCompletion, cX as TaskConflictError, cY as TaskCreateInput, cZ as TaskCreatedEvent, c_ as TaskDispatchMode, c$ as TaskExecutor, d0 as TaskExecutorInput, d1 as TaskFailedEvent, d2 as TaskListFilter, d3 as TaskResult, d4 as TaskStatus, d5 as TaskTransition, d6 as TaskTransitionEvent, d7 as TaskTransitionReason, d8 as TeamCoordinatorConfig, d9 as TeamEvent, da as TeamMember, db as TeamMessage, dc as TeamNotificationEvent, dd as TeamPlan, de as TeamSnapshot, df as TeamStartedEvent, dg as TeamStoppedEvent, dh as TeamTask, di as TelemetryConfig, dj as TelemetryConfigResult, dk as TokenUsage, dl as ToolCallDecision, dm as ToolCallOutput, dn as ToolCapabilities, dp as ToolContext, dq as ToolHostRequirements, dr as ToolMessage, ds as ToolMetadata, dt as ToolReplayMode, du as ToolReplayPolicy, dv as ToolResult, dw as ToolSideEffectLevel, dx as TracingConfig, a as TurnTrackerContext, dy as UndoResult, dz as UserMessage, dA as WorkerReportPayload, dB as accumulateUsage, dC as advanceAgentTurnState, dD as approvalMiddleware, dE as buildCoordinatorNotificationEvent, l as calculateDelay, dF as createAgent, dG as createAgentTurnEngine, dH as createAgentTurnState, dI as createApprovalHandler, dJ as createHumanInputController, dK as createPromptBuilder, m as createRetryHandler, n as createRetryState, dL as createSkillRegistry, dM as createTurnTracker, dN as emptySkillRegistry, dO as failAgentTurnState, dP as getRequiredToolHost, dQ as isApprovalMiddleware, dR as isBlockedModelCall, dS as isHumanInputController, dT as requiresToolHost, dU as resolveAgentDefaults, dV as resolveCapability, dW as sandboxDefaultsProvider, s as shouldRetry, w as withRetry } from './instance-DpAn37V_.js';
|
|
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';
|
|
6
6
|
import { L as Logger } from './types-RSCv7nQ4.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, 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-BDTy2LY_.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';
|
|
@@ -288,7 +288,7 @@ interface ChatLoopDeps {
|
|
|
288
288
|
host: ToolHost;
|
|
289
289
|
humanInputController?: HumanInputController;
|
|
290
290
|
mcpTools: Record<string, Tool$1>;
|
|
291
|
-
telemetrySettings?:
|
|
291
|
+
telemetrySettings?: TelemetryOptions;
|
|
292
292
|
toModelMessages: (messages: Message[]) => ModelMessage[];
|
|
293
293
|
setIsStreaming: (value: boolean) => void;
|
|
294
294
|
/**
|
package/dist/index.js
CHANGED
|
@@ -242,7 +242,7 @@ import {
|
|
|
242
242
|
runToolBatch,
|
|
243
243
|
snapshotAgentWorkflowMessage,
|
|
244
244
|
snapshotAgentWorkflowMessages
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-P2SPTUH5.js";
|
|
246
246
|
import {
|
|
247
247
|
DEFAULT_RETRY_CONFIG,
|
|
248
248
|
Inference,
|
|
@@ -257,7 +257,7 @@ import {
|
|
|
257
257
|
streamOnce,
|
|
258
258
|
streamStep,
|
|
259
259
|
withRetry
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-WR6KIGJQ.js";
|
|
261
261
|
import {
|
|
262
262
|
currentScope,
|
|
263
263
|
executeAgentToolCall,
|
|
@@ -306,7 +306,7 @@ import {
|
|
|
306
306
|
shouldIncludeReasoningSummary,
|
|
307
307
|
supportsReasoning,
|
|
308
308
|
supportsReasoningSync
|
|
309
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-GJFP5L2V.js";
|
|
310
310
|
import "./chunk-SPBFQXOT.js";
|
|
311
311
|
import {
|
|
312
312
|
ClientCredentialsProvider,
|
|
@@ -323,7 +323,7 @@ import {
|
|
|
323
323
|
isApprovalMiddleware,
|
|
324
324
|
otelMiddleware,
|
|
325
325
|
promptCacheMiddleware
|
|
326
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-CGUASKOH.js";
|
|
327
327
|
import {
|
|
328
328
|
DEFAULT_AGENT_NAME,
|
|
329
329
|
DEFAULT_MAX_STEPS,
|
|
@@ -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-DpAn37V_.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-DpAn37V_.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-BDTy2LY_.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
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
streamOnce,
|
|
14
14
|
streamStep,
|
|
15
15
|
withRetry
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-WR6KIGJQ.js";
|
|
17
17
|
import "../chunk-ZKEC7MFQ.js";
|
|
18
18
|
import {
|
|
19
19
|
LLMError,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isRetryableCategory,
|
|
24
24
|
parseRetryDelay
|
|
25
25
|
} from "../chunk-STDJYXYK.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-GJFP5L2V.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_MAX_TOKENS
|
|
29
29
|
} from "../chunk-CJI7PVS2.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as ToolHost } from './types-C_LCeYNg.js';
|
|
2
2
|
import * as ai from 'ai';
|
|
3
|
-
import { LanguageModel, ModelMessage,
|
|
3
|
+
import { LanguageModel, ModelMessage, TelemetryOptions, SystemModelMessage, StreamTextResult, ToolSet, OutputInterface, ToolChoice, Tool as Tool$1 } from 'ai';
|
|
4
4
|
import { L as Logger } from './types-RSCv7nQ4.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { R as ReasoningLevel } from './types-CQaXbRsS.js';
|
|
@@ -1771,7 +1771,7 @@ interface ModelCallInput {
|
|
|
1771
1771
|
maxOutputTokens?: number;
|
|
1772
1772
|
maxSteps?: number;
|
|
1773
1773
|
reasoningLevel?: ReasoningLevel;
|
|
1774
|
-
telemetry?:
|
|
1774
|
+
telemetry?: TelemetryOptions;
|
|
1775
1775
|
customStreamProvider?: StreamProvider;
|
|
1776
1776
|
toolExecutionMode?: "auto" | "plan";
|
|
1777
1777
|
/**
|
|
@@ -4483,7 +4483,7 @@ declare function resolveAgentDefaults(context: AgentDefaultsContext, providers?:
|
|
|
4483
4483
|
declare function sandboxDefaultsProvider(context: AgentDefaultsContext): AgentDefaults | undefined;
|
|
4484
4484
|
|
|
4485
4485
|
/** Stream result type - uses default Output for text streaming. */
|
|
4486
|
-
type InferenceStreamResult = StreamTextResult<ToolSet,
|
|
4486
|
+
type InferenceStreamResult = StreamTextResult<ToolSet, Record<string, unknown>, OutputInterface<string, string, never>>;
|
|
4487
4487
|
/**
|
|
4488
4488
|
* Custom stream result type - compatible shape from external providers.
|
|
4489
4489
|
*/
|
|
@@ -4557,7 +4557,7 @@ interface InferenceStreamInput {
|
|
|
4557
4557
|
/** Event sink used by tool execution to publish framework lifecycle events. */
|
|
4558
4558
|
onEvent?: (event: AgentEvent) => void | Promise<void>;
|
|
4559
4559
|
/** AI SDK telemetry settings */
|
|
4560
|
-
telemetry?:
|
|
4560
|
+
telemetry?: TelemetryOptions;
|
|
4561
4561
|
/**
|
|
4562
4562
|
* Control whether the model must call a tool and, if so, which one.
|
|
4563
4563
|
*
|
|
@@ -4597,6 +4597,7 @@ interface InferenceStepInfo {
|
|
|
4597
4597
|
finishReason?: string;
|
|
4598
4598
|
}
|
|
4599
4599
|
|
|
4600
|
+
type SpanAttributeValue = string | number | boolean | string[] | number[] | boolean[];
|
|
4600
4601
|
/**
|
|
4601
4602
|
* Configuration for the OpenTelemetry middleware.
|
|
4602
4603
|
*/
|
|
@@ -4616,8 +4617,19 @@ interface OtelMiddlewareConfig {
|
|
|
4616
4617
|
* Falls back to `"agent"`.
|
|
4617
4618
|
*/
|
|
4618
4619
|
agentName?: string;
|
|
4620
|
+
/** Stable agent identifier — recorded as `gen_ai.agent.id` when provided. */
|
|
4621
|
+
agentId?: string;
|
|
4619
4622
|
/** Agent description — recorded as `gen_ai.agent.description`. */
|
|
4620
4623
|
agentDescription?: string;
|
|
4624
|
+
/** Agent version — recorded as `gen_ai.agent.version` when provided. */
|
|
4625
|
+
agentVersion?: string;
|
|
4626
|
+
/**
|
|
4627
|
+
* Additional attributes applied to agent and tool spans.
|
|
4628
|
+
*
|
|
4629
|
+
* Use this for deployment, tenant, or vendor-specific dimensions that should
|
|
4630
|
+
* flow on every span. Built-in semantic attributes take precedence.
|
|
4631
|
+
*/
|
|
4632
|
+
spanAttributes?: Record<string, SpanAttributeValue>;
|
|
4621
4633
|
/**
|
|
4622
4634
|
* Whether to emit `execute_tool` spans for tool calls.
|
|
4623
4635
|
* Defaults to `true`.
|
|
@@ -4640,8 +4652,41 @@ interface OtelMiddlewareConfig {
|
|
|
4640
4652
|
interface TelemetryConfig {
|
|
4641
4653
|
/** Agent name — used in span names and `gen_ai.agent.name`. */
|
|
4642
4654
|
agentName: string;
|
|
4655
|
+
/** Stable agent identifier — recorded as `gen_ai.agent.id` when provided. */
|
|
4656
|
+
agentId?: string;
|
|
4643
4657
|
/** Agent description — recorded as `gen_ai.agent.description`. */
|
|
4644
4658
|
agentDescription?: string;
|
|
4659
|
+
/** Agent version — recorded as `gen_ai.agent.version` when provided. */
|
|
4660
|
+
agentVersion?: string;
|
|
4661
|
+
/**
|
|
4662
|
+
* Additional attributes applied to agent and tool spans.
|
|
4663
|
+
*
|
|
4664
|
+
* Built-in semantic attributes take precedence.
|
|
4665
|
+
*/
|
|
4666
|
+
spanAttributes?: Record<string, SpanAttributeValue>;
|
|
4667
|
+
/**
|
|
4668
|
+
* Enable the AI SDK v7 GenAI OpenTelemetry integration.
|
|
4669
|
+
*
|
|
4670
|
+
* Defaults to `true`. Set to `false` to use only custom/global AI SDK
|
|
4671
|
+
* telemetry integrations, or to disable AI SDK model spans entirely.
|
|
4672
|
+
*/
|
|
4673
|
+
useGenAIOpenTelemetry?: boolean;
|
|
4674
|
+
/**
|
|
4675
|
+
* Additional AI SDK v7 telemetry integrations.
|
|
4676
|
+
*
|
|
4677
|
+
* These are passed to `streamText({ telemetry: { integrations } })` together
|
|
4678
|
+
* with the default `GenAIOpenTelemetry` integration unless that default is
|
|
4679
|
+
* disabled via `useGenAIOpenTelemetry: false`.
|
|
4680
|
+
*/
|
|
4681
|
+
telemetryIntegrations?: TelemetryOptions["integrations"];
|
|
4682
|
+
/**
|
|
4683
|
+
* Use globally registered AI SDK telemetry integrations when no local
|
|
4684
|
+
* integrations are configured.
|
|
4685
|
+
*
|
|
4686
|
+
* Defaults to `false` because `agent-core` installs a local GenAI integration
|
|
4687
|
+
* by default.
|
|
4688
|
+
*/
|
|
4689
|
+
useGlobalTelemetryIntegrations?: boolean;
|
|
4645
4690
|
/** Record tool arguments and LLM prompts in spans. Defaults to `true`. */
|
|
4646
4691
|
recordInputs?: boolean;
|
|
4647
4692
|
/** Record tool results and LLM responses in spans. Defaults to `true`. */
|
|
@@ -4667,7 +4712,7 @@ interface TelemetryConfigResult {
|
|
|
4667
4712
|
/** Agent-core middleware. */
|
|
4668
4713
|
middleware: AgentMiddleware;
|
|
4669
4714
|
/** AI SDK telemetry settings. */
|
|
4670
|
-
telemetry:
|
|
4715
|
+
telemetry: TelemetryOptions;
|
|
4671
4716
|
/**
|
|
4672
4717
|
* Flush and shut down the auto-created tracer provider.
|
|
4673
4718
|
* No-op when no provider was auto-created.
|
|
@@ -5083,7 +5128,7 @@ type AgentTurnCommitApplier = (batch: AgentTurnCommitBatch, options?: AgentTurnC
|
|
|
5083
5128
|
*/
|
|
5084
5129
|
type AgentTurnStepRuntimeConfig = Required<Pick<AgentConfig, "model" | "cwd" | "maxSteps">> & Pick<AgentConfig, "temperature" | "topP" | "maxOutputTokens" | "doomLoopThreshold" | "enforceDoomLoop" | "onDoomLoop" | "contextWindow" | "streamProvider"> & {
|
|
5085
5130
|
reserveTokens?: number;
|
|
5086
|
-
telemetry?:
|
|
5131
|
+
telemetry?: TelemetryOptions;
|
|
5087
5132
|
};
|
|
5088
5133
|
interface PrepareModelStepOptions {
|
|
5089
5134
|
sessionId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bS as OtelMiddlewareConfig, L as AgentMiddleware, di as TelemetryConfig, dj as TelemetryConfigResult } from '../instance-
|
|
2
|
-
export { N as AgentModelHooks, ac as ApprovalAgentMiddleware, al as ApprovalMiddlewareConfig, as as BlockedModelCall, au as ChatLifecycleContext, b as MiddlewareRunner, d as ModelCallContext, bL as ModelCallInput, bM as ModelCallOutput, dl as ToolCallDecision, dm as ToolCallOutput, dD as approvalMiddleware, dQ as isApprovalMiddleware, dR as isBlockedModelCall } from '../instance-
|
|
1
|
+
import { bS as OtelMiddlewareConfig, L as AgentMiddleware, di as TelemetryConfig, dj as TelemetryConfigResult } from '../instance-DpAn37V_.js';
|
|
2
|
+
export { N as AgentModelHooks, ac as ApprovalAgentMiddleware, al as ApprovalMiddlewareConfig, as as BlockedModelCall, au as ChatLifecycleContext, b as MiddlewareRunner, d as ModelCallContext, bL as ModelCallInput, bM as ModelCallOutput, dl as ToolCallDecision, dm as ToolCallOutput, dD as approvalMiddleware, dQ as isApprovalMiddleware, dR as isBlockedModelCall } from '../instance-DpAn37V_.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/models/index.js
CHANGED
package/dist/plugin/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Tool, L as AgentMiddleware, c6 as PromptSection } from '../instance-
|
|
1
|
+
import { T as Tool, L as AgentMiddleware, c6 as PromptSection } from '../instance-DpAn37V_.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 { bN as ModelFamily, b6 as EnvironmentInfo, bq as InstructionFile } from '../instance-
|
|
2
|
-
export { c4 as PromptBuildContext, P as PromptBuilder, c5 as PromptConfig, c6 as PromptSection, cu as SkillConfig, dK as createPromptBuilder } from '../instance-
|
|
1
|
+
import { bN as ModelFamily, b6 as EnvironmentInfo, bq as InstructionFile } from '../instance-DpAn37V_.js';
|
|
2
|
+
export { c4 as PromptBuildContext, P as PromptBuilder, c5 as PromptConfig, c6 as PromptSection, cu as SkillConfig, dK as createPromptBuilder } from '../instance-DpAn37V_.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 { cb as RiskLevel, ap as ApprovalRule, an as ApprovalRequest, aq as ApprovalRuleContext, cc as RuleSource, ae as ApprovalCascadePolicy, am as ApprovalRememberScope, ah as ApprovalDecision, af as ApprovalConfig } from '../instance-
|
|
2
|
-
export { ab as ApprovalAction, ad as ApprovalCascadeMode, ag as ApprovalCorrection, ai as ApprovalEvaluation, ak as ApprovalHandler, ao as ApprovalResolution, dI as createApprovalHandler } from '../instance-
|
|
1
|
+
import { cb as RiskLevel, ap as ApprovalRule, an as ApprovalRequest, aq as ApprovalRuleContext, cc as RuleSource, ae as ApprovalCascadePolicy, am as ApprovalRememberScope, ah as ApprovalDecision, af as ApprovalConfig } from '../instance-DpAn37V_.js';
|
|
2
|
+
export { ab as ApprovalAction, ad as ApprovalCascadeMode, ag as ApprovalCorrection, ai as ApprovalEvaluation, ak as ApprovalHandler, ao as ApprovalResolution, dI as createApprovalHandler } from '../instance-DpAn37V_.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 { cC as SkillScope, cD as SkillSource, cy as SkillMetadata, cB as SkillResourceType, cA as SkillResource, cv as SkillContent, cu as SkillConfig, cx as SkillDiscoveryResult, cz as SkillRegistry, T as Tool } from '../instance-
|
|
2
|
-
export { c9 as RemoteSkillEntry, ca as RemoteSkillIndex, cw as SkillDiscoveryError, cE as SkillSourceType, dL as createSkillRegistry, dN as emptySkillRegistry } from '../instance-
|
|
1
|
+
import { cC as SkillScope, cD as SkillSource, cy as SkillMetadata, cB as SkillResourceType, cA as SkillResource, cv as SkillContent, cu as SkillConfig, cx as SkillDiscoveryResult, cz as SkillRegistry, T as Tool } from '../instance-DpAn37V_.js';
|
|
2
|
+
export { c9 as RemoteSkillEntry, ca as RemoteSkillIndex, cw as SkillDiscoveryError, cE as SkillSourceType, dL as createSkillRegistry, dN as emptySkillRegistry } from '../instance-DpAn37V_.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 { b8 as FileEntry, ck as SessionEntry, M as Message, bC as MessageEntry, bK as MetadataEntry, ch as SerializedMessage, cm as SessionInfo, cn as SessionStorage, cl as SessionHeader, S as SessionManager } from '../instance-
|
|
2
|
-
export { at as BranchEntry, ay as CompactionEntry, aA as ConfigChangeEntry, aG as CreateSessionOptions, b5 as EntryBase, bs as LocalSessionTurnLock, c8 as ReleaseSessionTurnLock, cg as STORAGE_VERSION, cj as SessionContext, co as SessionTurnLock, cp as SessionTurnLockAcquireOptions } from '../instance-
|
|
1
|
+
import { b8 as FileEntry, ck as SessionEntry, M as Message, bC as MessageEntry, bK as MetadataEntry, ch as SerializedMessage, cm as SessionInfo, cn as SessionStorage, cl as SessionHeader, S as SessionManager } from '../instance-DpAn37V_.js';
|
|
2
|
+
export { at as BranchEntry, ay as CompactionEntry, aA as ConfigChangeEntry, aG as CreateSessionOptions, b5 as EntryBase, bs as LocalSessionTurnLock, c8 as ReleaseSessionTurnLock, cg as STORAGE_VERSION, cj as SessionContext, co as SessionTurnLock, cp as SessionTurnLockAcquireOptions } from '../instance-DpAn37V_.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 { aT as DispatchRole, aS as DispatchResult, br as LocalDispatchRuntimeOptions, B as Agent, T as Tool, aU as DispatchRuntime, c3 as Profile } from '../instance-
|
|
1
|
+
import { aT as DispatchRole, aS as DispatchResult, br as LocalDispatchRuntimeOptions, B as Agent, T as Tool, aU as DispatchRuntime, c3 as Profile } from '../instance-DpAn37V_.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 { aB as CoordinatorNotification, cW as TaskCompletion, dk as TokenUsage, A as AgentEvent, dX as CoordinatorCtx, B as Agent, bx as MemberRuntime, cT as TaskBoard, bt as Mailbox, c_ as TaskDispatchMode, bW as PermissionHandler, d8 as TeamCoordinatorConfig, c$ as TaskExecutor, d9 as TeamEvent, da as TeamMember, c7 as QueueTaskInput, dh as TeamTask, db as TeamMessage, dd as TeamPlan, cP as SynthesisResult, de as TeamSnapshot, d2 as TaskListFilter, bG as MessageListFilter, c2 as PreparedExternalTask, d3 as TaskResult, d5 as TaskTransition, by as MemberStats, bz as MemberStatus, L as AgentMiddleware, dl as ToolCallDecision } from '../instance-
|
|
2
|
-
export { aC as CoordinatorNotificationKind, aD as CoordinatorRoundEvent, b7 as ExternalTaskControl, b9 as GuidancePayload, bl as IdleNotificationPayload, bm as InMemoryMailboxStore, bn as InMemoryTaskBoardStore, bu as MailboxStore, bv as MailboxSubscriber, bw as MemberRegisteredEvent, bA as MemberStatusChangedEvent, bE as MessageInput, bF as MessageKind, bH as MessagePayload, bJ as MessageSentEvent, bP as NotificationPriority, bV as PermissionForwardedEvent, bX as PermissionRequestPayload, bY as PermissionResolvedEvent, bZ as PermissionResponsePayload, b_ as PlanCreatedEvent, b$ as PlannedTask, cq as ShutdownRequestPayload, cr as ShutdownRequestedEvent, cs as ShutdownResolvedEvent, ct as ShutdownResponsePayload, cO as SynthesisCompleteEvent, cR as TERMINAL_STATUSES, cS as TaskAbortedEvent, cU as TaskBoardStore, cV as TaskCompletedEvent, cX as TaskConflictError, cY as TaskCreateInput, cZ as TaskCreatedEvent, d0 as TaskExecutorInput, d1 as TaskFailedEvent, d4 as TaskStatus, d6 as TaskTransitionEvent, d7 as TaskTransitionReason, dc as TeamNotificationEvent, df as TeamStartedEvent, dg as TeamStoppedEvent, dA as WorkerReportPayload, dE as buildCoordinatorNotificationEvent } from '../instance-
|
|
1
|
+
import { aB as CoordinatorNotification, cW as TaskCompletion, dk as TokenUsage, A as AgentEvent, dX as CoordinatorCtx, B as Agent, bx as MemberRuntime, cT as TaskBoard, bt as Mailbox, c_ as TaskDispatchMode, bW as PermissionHandler, d8 as TeamCoordinatorConfig, c$ as TaskExecutor, d9 as TeamEvent, da as TeamMember, c7 as QueueTaskInput, dh as TeamTask, db as TeamMessage, dd as TeamPlan, cP as SynthesisResult, de as TeamSnapshot, d2 as TaskListFilter, bG as MessageListFilter, c2 as PreparedExternalTask, d3 as TaskResult, d5 as TaskTransition, by as MemberStats, bz as MemberStatus, L as AgentMiddleware, dl as ToolCallDecision } from '../instance-DpAn37V_.js';
|
|
2
|
+
export { aC as CoordinatorNotificationKind, aD as CoordinatorRoundEvent, b7 as ExternalTaskControl, b9 as GuidancePayload, bl as IdleNotificationPayload, bm as InMemoryMailboxStore, bn as InMemoryTaskBoardStore, bu as MailboxStore, bv as MailboxSubscriber, bw as MemberRegisteredEvent, bA as MemberStatusChangedEvent, bE as MessageInput, bF as MessageKind, bH as MessagePayload, bJ as MessageSentEvent, bP as NotificationPriority, bV as PermissionForwardedEvent, bX as PermissionRequestPayload, bY as PermissionResolvedEvent, bZ as PermissionResponsePayload, b_ as PlanCreatedEvent, b$ as PlannedTask, cq as ShutdownRequestPayload, cr as ShutdownRequestedEvent, cs as ShutdownResolvedEvent, ct as ShutdownResponsePayload, cO as SynthesisCompleteEvent, cR as TERMINAL_STATUSES, cS as TaskAbortedEvent, cU as TaskBoardStore, cV as TaskCompletedEvent, cX as TaskConflictError, cY as TaskCreateInput, cZ as TaskCreatedEvent, d0 as TaskExecutorInput, d1 as TaskFailedEvent, d4 as TaskStatus, d6 as TaskTransitionEvent, d7 as TaskTransitionReason, dc as TeamNotificationEvent, df as TeamStartedEvent, dg as TeamStoppedEvent, dA as WorkerReportPayload, dE as buildCoordinatorNotificationEvent } from '../instance-DpAn37V_.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 { du as ToolReplayPolicy, F as FileOperationMeta, bO as NormalizedToolReplayPolicy, T as Tool, H as HumanInputController, a as TurnTrackerContext, b as MiddlewareRunner, A as AgentEvent, ds as ToolMetadata, dn as ToolCapabilities } from '../instance-
|
|
2
|
-
export { az as CompatibleSchema, bo as InferSchemaOutput, bp as InputCheckResult, dP as getRequiredToolHost, dV as resolveCapability } from '../instance-
|
|
1
|
+
import { du as ToolReplayPolicy, F as FileOperationMeta, bO as NormalizedToolReplayPolicy, T as Tool, H as HumanInputController, a as TurnTrackerContext, b as MiddlewareRunner, A as AgentEvent, ds as ToolMetadata, dn as ToolCapabilities } from '../instance-DpAn37V_.js';
|
|
2
|
+
export { az as CompatibleSchema, bo as InferSchemaOutput, bp as InputCheckResult, dP as getRequiredToolHost, dV as resolveCapability } from '../instance-DpAn37V_.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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuylabs/agent-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Embeddable AI agent infrastructure — execution, sessions, tools, skills, dispatch, tracing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -122,24 +122,24 @@
|
|
|
122
122
|
"README.md"
|
|
123
123
|
],
|
|
124
124
|
"dependencies": {
|
|
125
|
-
"@ai-sdk/
|
|
126
|
-
"ai": "
|
|
125
|
+
"@ai-sdk/otel": "1.0.0-beta.57",
|
|
126
|
+
"@ai-sdk/provider": "4.0.0-beta.12",
|
|
127
|
+
"ai": "7.0.0-beta.111",
|
|
127
128
|
"jiti": "^2.6.1",
|
|
128
129
|
"zod": "^3.25.76 || ^4.1.8"
|
|
129
130
|
},
|
|
130
131
|
"peerDependencies": {
|
|
131
|
-
"@ai-sdk/amazon-bedrock": "
|
|
132
|
-
"@ai-sdk/anthropic": "
|
|
133
|
-
"@ai-sdk/azure": "
|
|
134
|
-
"@ai-sdk/google": "
|
|
135
|
-
"@ai-sdk/google-vertex": "
|
|
136
|
-
"@ai-sdk/groq": "
|
|
137
|
-
"@ai-sdk/mistral": "
|
|
138
|
-
"@ai-sdk/openai": "
|
|
139
|
-
"@ai-sdk/openai-compatible": "
|
|
140
|
-
"@ai-sdk/xai": "
|
|
132
|
+
"@ai-sdk/amazon-bedrock": "5.0.0-beta.41",
|
|
133
|
+
"@ai-sdk/anthropic": "4.0.0-beta.37",
|
|
134
|
+
"@ai-sdk/azure": "4.0.0-beta.38",
|
|
135
|
+
"@ai-sdk/google": "4.0.0-beta.45",
|
|
136
|
+
"@ai-sdk/google-vertex": "5.0.0-beta.58",
|
|
137
|
+
"@ai-sdk/groq": "4.0.0-beta.30",
|
|
138
|
+
"@ai-sdk/mistral": "4.0.0-beta.29",
|
|
139
|
+
"@ai-sdk/openai": "4.0.0-beta.38",
|
|
140
|
+
"@ai-sdk/openai-compatible": "3.0.0-beta.31",
|
|
141
|
+
"@ai-sdk/xai": "4.0.0-beta.43",
|
|
141
142
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
142
|
-
"@openrouter/ai-sdk-provider": "^2.5.1",
|
|
143
143
|
"@opentelemetry/api": "^1.9.0",
|
|
144
144
|
"@opentelemetry/resources": "^2.0.0",
|
|
145
145
|
"@opentelemetry/sdk-trace-node": "^2.0.0",
|
|
@@ -179,9 +179,6 @@
|
|
|
179
179
|
"@modelcontextprotocol/sdk": {
|
|
180
180
|
"optional": true
|
|
181
181
|
},
|
|
182
|
-
"@openrouter/ai-sdk-provider": {
|
|
183
|
-
"optional": true
|
|
184
|
-
},
|
|
185
182
|
"@opentelemetry/api": {
|
|
186
183
|
"optional": true
|
|
187
184
|
},
|
|
@@ -196,17 +193,17 @@
|
|
|
196
193
|
}
|
|
197
194
|
},
|
|
198
195
|
"devDependencies": {
|
|
199
|
-
"@ai-sdk/amazon-bedrock": "
|
|
200
|
-
"@ai-sdk/anthropic": "
|
|
201
|
-
"@ai-sdk/azure": "
|
|
202
|
-
"@ai-sdk/google": "
|
|
203
|
-
"@ai-sdk/google-vertex": "
|
|
204
|
-
"@ai-sdk/groq": "
|
|
205
|
-
"@ai-sdk/mistral": "
|
|
206
|
-
"@ai-sdk/openai": "
|
|
207
|
-
"@ai-sdk/openai-compatible": "
|
|
208
|
-
"@ai-sdk/provider-utils": "
|
|
209
|
-
"@ai-sdk/xai": "
|
|
196
|
+
"@ai-sdk/amazon-bedrock": "5.0.0-beta.41",
|
|
197
|
+
"@ai-sdk/anthropic": "4.0.0-beta.37",
|
|
198
|
+
"@ai-sdk/azure": "4.0.0-beta.38",
|
|
199
|
+
"@ai-sdk/google": "4.0.0-beta.45",
|
|
200
|
+
"@ai-sdk/google-vertex": "5.0.0-beta.58",
|
|
201
|
+
"@ai-sdk/groq": "4.0.0-beta.30",
|
|
202
|
+
"@ai-sdk/mistral": "4.0.0-beta.29",
|
|
203
|
+
"@ai-sdk/openai": "4.0.0-beta.38",
|
|
204
|
+
"@ai-sdk/openai-compatible": "3.0.0-beta.31",
|
|
205
|
+
"@ai-sdk/provider-utils": "5.0.0-beta.26",
|
|
206
|
+
"@ai-sdk/xai": "4.0.0-beta.43",
|
|
210
207
|
"@arizeai/openinference-vercel": "^2.7.1",
|
|
211
208
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
212
209
|
"@opentelemetry/api": "^1.9.0",
|