@cuylabs/agent-core 0.15.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-CZ5XOVDV.js → chunk-BMLWNXIP.js} +76 -0
- 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-FYC33XFI.js → chunk-QVQKQZUN.js} +1 -1
- package/dist/{chunk-NWQUZWLT.js → chunk-WR6KIGJQ.js} +3 -3
- package/dist/{chunk-JPBFAQNS.js → chunk-Y7SMKIJT.js} +1 -1
- package/dist/dispatch/index.d.ts +2 -2
- package/dist/dispatch/index.js +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 +27 -38
- package/dist/inference/index.d.ts +3 -3
- package/dist/inference/index.js +2 -2
- package/dist/{instance-N5VhcNT2.d.ts → instance-DpAn37V_.d.ts} +72 -9
- package/dist/middleware/index.d.ts +2 -2
- package/dist/middleware/index.js +1 -1
- package/dist/{model-messages-DnsiSiZj.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/storage/index.js +3 -1
- package/dist/subagents/index.d.ts +1 -1
- package/dist/subagents/index.js +3 -3
- package/dist/team/index.d.ts +2 -2
- package/dist/tool/index.d.ts +2 -2
- package/package.json +25 -28
|
@@ -500,6 +500,81 @@ var FileStorage = class {
|
|
|
500
500
|
}
|
|
501
501
|
};
|
|
502
502
|
|
|
503
|
+
// src/storage/lock.ts
|
|
504
|
+
var LocalSessionTurnLock = class {
|
|
505
|
+
locks = /* @__PURE__ */ new Map();
|
|
506
|
+
async acquire(sessionId, options = {}) {
|
|
507
|
+
throwIfAborted(options.signal);
|
|
508
|
+
const previous = this.locks.get(sessionId) ?? Promise.resolve();
|
|
509
|
+
let releaseLock;
|
|
510
|
+
const current = new Promise((resolve) => {
|
|
511
|
+
releaseLock = resolve;
|
|
512
|
+
});
|
|
513
|
+
const chain = previous.catch(() => void 0).then(() => current);
|
|
514
|
+
this.locks.set(sessionId, chain);
|
|
515
|
+
try {
|
|
516
|
+
await waitForLock(previous, options);
|
|
517
|
+
} catch (error) {
|
|
518
|
+
if (this.locks.get(sessionId) === chain) {
|
|
519
|
+
this.locks.delete(sessionId);
|
|
520
|
+
}
|
|
521
|
+
releaseLock();
|
|
522
|
+
throw error;
|
|
523
|
+
}
|
|
524
|
+
let released = false;
|
|
525
|
+
return () => {
|
|
526
|
+
if (released) return;
|
|
527
|
+
released = true;
|
|
528
|
+
releaseLock();
|
|
529
|
+
if (this.locks.get(sessionId) === chain) {
|
|
530
|
+
this.locks.delete(sessionId);
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
clear(sessionId) {
|
|
535
|
+
this.locks.delete(sessionId);
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
async function waitForLock(previous, options) {
|
|
539
|
+
const waiters = [previous.catch(() => void 0)];
|
|
540
|
+
if (options.signal) {
|
|
541
|
+
waiters.push(
|
|
542
|
+
new Promise((_, reject) => {
|
|
543
|
+
const signal = options.signal;
|
|
544
|
+
const onAbort = () => reject(createAbortError());
|
|
545
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
546
|
+
previous.finally(() => signal.removeEventListener("abort", onAbort));
|
|
547
|
+
})
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
if (options.timeoutMs !== void 0) {
|
|
551
|
+
waiters.push(
|
|
552
|
+
new Promise((_, reject) => {
|
|
553
|
+
const timeout = setTimeout(() => {
|
|
554
|
+
reject(
|
|
555
|
+
new Error(
|
|
556
|
+
`Timed out acquiring session turn lock after ${options.timeoutMs}ms`
|
|
557
|
+
)
|
|
558
|
+
);
|
|
559
|
+
}, options.timeoutMs);
|
|
560
|
+
previous.finally(() => clearTimeout(timeout));
|
|
561
|
+
})
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
await Promise.race(waiters);
|
|
565
|
+
throwIfAborted(options.signal);
|
|
566
|
+
}
|
|
567
|
+
function throwIfAborted(signal) {
|
|
568
|
+
if (signal?.aborted) {
|
|
569
|
+
throw createAbortError();
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
function createAbortError() {
|
|
573
|
+
const error = new Error("Session turn lock acquisition aborted");
|
|
574
|
+
error.name = "AbortError";
|
|
575
|
+
return error;
|
|
576
|
+
}
|
|
577
|
+
|
|
503
578
|
// src/storage/paths.ts
|
|
504
579
|
import { homedir } from "os";
|
|
505
580
|
import { join as join2 } from "path";
|
|
@@ -809,6 +884,7 @@ export {
|
|
|
809
884
|
buildMessagesFromEntries,
|
|
810
885
|
MemoryStorage,
|
|
811
886
|
FileStorage,
|
|
887
|
+
LocalSessionTurnLock,
|
|
812
888
|
getDataDir,
|
|
813
889
|
getSessionsDir,
|
|
814
890
|
getGitRootHash,
|
|
@@ -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,
|
|
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';
|
package/dist/dispatch/index.js
CHANGED
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
DISPATCH_STATES,
|
|
16
16
|
createDispatchTools,
|
|
17
17
|
createLocalDispatchRuntime
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-Y7SMKIJT.js";
|
|
19
19
|
import "../chunk-SZ2XBPTW.js";
|
|
20
20
|
import "../chunk-Q742PSH3.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-BMLWNXIP.js";
|
|
22
22
|
export {
|
|
23
23
|
DEFAULT_DISPATCH_TOOL_IDS,
|
|
24
24
|
DEFAULT_LOCAL_DISPATCH_CONCURRENCY,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as AnyInferenceResult,
|
|
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,
|
|
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
|
|
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
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
parseSubAgentRoleFrontmatter,
|
|
35
35
|
parseSubAgentToolSpec,
|
|
36
36
|
toSubAgentRole
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-QVQKQZUN.js";
|
|
38
38
|
import {
|
|
39
39
|
InMemoryMailboxStore,
|
|
40
40
|
InMemoryTaskBoardStore,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
ensureSessionLoaded,
|
|
161
161
|
getVisibleSessionMessages,
|
|
162
162
|
repairOrphanedToolCalls
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-Y7SMKIJT.js";
|
|
164
164
|
import {
|
|
165
165
|
sleep
|
|
166
166
|
} from "./chunk-SZ2XBPTW.js";
|
|
@@ -173,6 +173,7 @@ import {
|
|
|
173
173
|
} from "./chunk-Q742PSH3.js";
|
|
174
174
|
import {
|
|
175
175
|
FileStorage,
|
|
176
|
+
LocalSessionTurnLock,
|
|
176
177
|
MemoryStorage,
|
|
177
178
|
STORAGE_VERSION,
|
|
178
179
|
SessionManager,
|
|
@@ -195,7 +196,7 @@ import {
|
|
|
195
196
|
serializeMessage,
|
|
196
197
|
toJSONL,
|
|
197
198
|
toJSONLBatch
|
|
198
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-BMLWNXIP.js";
|
|
199
200
|
import {
|
|
200
201
|
createEventBus
|
|
201
202
|
} from "./chunk-2TTOLHBT.js";
|
|
@@ -241,7 +242,7 @@ import {
|
|
|
241
242
|
runToolBatch,
|
|
242
243
|
snapshotAgentWorkflowMessage,
|
|
243
244
|
snapshotAgentWorkflowMessages
|
|
244
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-P2SPTUH5.js";
|
|
245
246
|
import {
|
|
246
247
|
DEFAULT_RETRY_CONFIG,
|
|
247
248
|
Inference,
|
|
@@ -256,7 +257,7 @@ import {
|
|
|
256
257
|
streamOnce,
|
|
257
258
|
streamStep,
|
|
258
259
|
withRetry
|
|
259
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-WR6KIGJQ.js";
|
|
260
261
|
import {
|
|
261
262
|
currentScope,
|
|
262
263
|
executeAgentToolCall,
|
|
@@ -305,8 +306,16 @@ import {
|
|
|
305
306
|
shouldIncludeReasoningSummary,
|
|
306
307
|
supportsReasoning,
|
|
307
308
|
supportsReasoningSync
|
|
308
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-GJFP5L2V.js";
|
|
309
310
|
import "./chunk-SPBFQXOT.js";
|
|
311
|
+
import {
|
|
312
|
+
ClientCredentialsProvider,
|
|
313
|
+
createMCPManager,
|
|
314
|
+
httpServer,
|
|
315
|
+
serviceAccountServer,
|
|
316
|
+
sseServer,
|
|
317
|
+
stdioServer
|
|
318
|
+
} from "./chunk-US7S4FYW.js";
|
|
310
319
|
import {
|
|
311
320
|
MiddlewareRunner,
|
|
312
321
|
approvalMiddleware,
|
|
@@ -314,7 +323,7 @@ import {
|
|
|
314
323
|
isApprovalMiddleware,
|
|
315
324
|
otelMiddleware,
|
|
316
325
|
promptCacheMiddleware
|
|
317
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-CGUASKOH.js";
|
|
318
327
|
import {
|
|
319
328
|
DEFAULT_AGENT_NAME,
|
|
320
329
|
DEFAULT_MAX_STEPS,
|
|
@@ -375,14 +384,6 @@ import {
|
|
|
375
384
|
requiresToolHost,
|
|
376
385
|
resolveCapability
|
|
377
386
|
} from "./chunk-FII65CN7.js";
|
|
378
|
-
import {
|
|
379
|
-
ClientCredentialsProvider,
|
|
380
|
-
createMCPManager,
|
|
381
|
-
httpServer,
|
|
382
|
-
serviceAccountServer,
|
|
383
|
-
sseServer,
|
|
384
|
-
stdioServer
|
|
385
|
-
} from "./chunk-US7S4FYW.js";
|
|
386
387
|
import {
|
|
387
388
|
createConsoleLogger,
|
|
388
389
|
createFileLogger,
|
|
@@ -2022,6 +2023,7 @@ function createAgentSetup(input) {
|
|
|
2022
2023
|
config,
|
|
2023
2024
|
tools: createToolMap(input.tools),
|
|
2024
2025
|
sessions: input.sessionManager ?? getDefaultSessionManager(),
|
|
2026
|
+
sessionTurnLock: input.sessionTurnLock ?? new LocalSessionTurnLock(),
|
|
2025
2027
|
state: createAgentState(config),
|
|
2026
2028
|
contextManager: createAgentContextManager(config),
|
|
2027
2029
|
turnTracker: createTurnTracker({ cwd: config.cwd }, logger),
|
|
@@ -2045,6 +2047,7 @@ var Agent = class _Agent {
|
|
|
2045
2047
|
config;
|
|
2046
2048
|
tools;
|
|
2047
2049
|
sessions;
|
|
2050
|
+
sessionTurnLock;
|
|
2048
2051
|
state;
|
|
2049
2052
|
/** Context manager for overflow detection and compaction */
|
|
2050
2053
|
contextManager;
|
|
@@ -2086,8 +2089,6 @@ var Agent = class _Agent {
|
|
|
2086
2089
|
activeTurnCount = 0;
|
|
2087
2090
|
/** Active turn intervention controllers, keyed by turn id */
|
|
2088
2091
|
activeTurns = /* @__PURE__ */ new Map();
|
|
2089
|
-
/** Per-session turn queue to prevent concurrent writes to the same history */
|
|
2090
|
-
sessionLocks = /* @__PURE__ */ new Map();
|
|
2091
2092
|
/** Structured logger for diagnostic output */
|
|
2092
2093
|
_logger;
|
|
2093
2094
|
constructor(config) {
|
|
@@ -2095,6 +2096,7 @@ var Agent = class _Agent {
|
|
|
2095
2096
|
this.config = setup.config;
|
|
2096
2097
|
this.tools = setup.tools;
|
|
2097
2098
|
this.sessions = setup.sessions;
|
|
2099
|
+
this.sessionTurnLock = setup.sessionTurnLock;
|
|
2098
2100
|
this.state = setup.state;
|
|
2099
2101
|
this.contextManager = setup.contextManager;
|
|
2100
2102
|
this.turnTracker = setup.turnTracker;
|
|
@@ -2194,24 +2196,8 @@ var Agent = class _Agent {
|
|
|
2194
2196
|
createSessionManager() {
|
|
2195
2197
|
return new SessionManager(this.sessions.getStorage());
|
|
2196
2198
|
}
|
|
2197
|
-
async acquireSessionLock(sessionId) {
|
|
2198
|
-
|
|
2199
|
-
let releaseLock;
|
|
2200
|
-
const current = new Promise((resolve2) => {
|
|
2201
|
-
releaseLock = resolve2;
|
|
2202
|
-
});
|
|
2203
|
-
const chain = previous.catch(() => void 0).then(() => current);
|
|
2204
|
-
this.sessionLocks.set(sessionId, chain);
|
|
2205
|
-
await previous.catch(() => void 0);
|
|
2206
|
-
let released = false;
|
|
2207
|
-
return () => {
|
|
2208
|
-
if (released) return;
|
|
2209
|
-
released = true;
|
|
2210
|
-
releaseLock();
|
|
2211
|
-
if (this.sessionLocks.get(sessionId) === chain) {
|
|
2212
|
-
this.sessionLocks.delete(sessionId);
|
|
2213
|
-
}
|
|
2214
|
-
};
|
|
2199
|
+
async acquireSessionLock(sessionId, options) {
|
|
2200
|
+
return await this.sessionTurnLock.acquire(sessionId, options);
|
|
2215
2201
|
}
|
|
2216
2202
|
/**
|
|
2217
2203
|
* Force-clear all pending session locks for a given session.
|
|
@@ -2225,7 +2211,7 @@ var Agent = class _Agent {
|
|
|
2225
2211
|
* active on this session.**
|
|
2226
2212
|
*/
|
|
2227
2213
|
clearSessionLock(sessionId) {
|
|
2228
|
-
this.
|
|
2214
|
+
this.sessionTurnLock.clear?.(sessionId);
|
|
2229
2215
|
}
|
|
2230
2216
|
/**
|
|
2231
2217
|
* Acquire the same per-session turn lock used by `chat()`.
|
|
@@ -2306,7 +2292,9 @@ var Agent = class _Agent {
|
|
|
2306
2292
|
* @yields {AgentEvent} Events as they occur during processing
|
|
2307
2293
|
*/
|
|
2308
2294
|
async *chat(sessionId, message, options) {
|
|
2309
|
-
const releaseSessionLock = await this.acquireSessionLock(sessionId
|
|
2295
|
+
const releaseSessionLock = await this.acquireSessionLock(sessionId, {
|
|
2296
|
+
signal: options?.abort
|
|
2297
|
+
});
|
|
2310
2298
|
const sessions = this.createSessionManager();
|
|
2311
2299
|
const turnId = `${sessionId}-turn-${++this.turnCounter}`;
|
|
2312
2300
|
let turnTracker;
|
|
@@ -2375,7 +2363,7 @@ var Agent = class _Agent {
|
|
|
2375
2363
|
}
|
|
2376
2364
|
await this.syncSessionView(sessionId);
|
|
2377
2365
|
} finally {
|
|
2378
|
-
releaseSessionLock();
|
|
2366
|
+
await releaseSessionLock();
|
|
2379
2367
|
}
|
|
2380
2368
|
}
|
|
2381
2369
|
}
|
|
@@ -3256,6 +3244,7 @@ export {
|
|
|
3256
3244
|
LLMError,
|
|
3257
3245
|
LOCAL_SUBAGENT_BACKEND,
|
|
3258
3246
|
LayeredSettings,
|
|
3247
|
+
LocalSessionTurnLock,
|
|
3259
3248
|
LocalSignal,
|
|
3260
3249
|
MAX_BYTES,
|
|
3261
3250
|
MAX_LINES,
|
|
@@ -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
|
/**
|
|
@@ -3732,6 +3732,24 @@ interface DoomLoopRequest {
|
|
|
3732
3732
|
*/
|
|
3733
3733
|
type DoomLoopHandler = (request: DoomLoopRequest) => Promise<DoomLoopAction>;
|
|
3734
3734
|
|
|
3735
|
+
type ReleaseSessionTurnLock = () => void | Promise<void>;
|
|
3736
|
+
interface SessionTurnLockAcquireOptions {
|
|
3737
|
+
/** Abort while waiting for the lock. */
|
|
3738
|
+
signal?: AbortSignal;
|
|
3739
|
+
/** Maximum time to wait for the lock. */
|
|
3740
|
+
timeoutMs?: number;
|
|
3741
|
+
}
|
|
3742
|
+
interface SessionTurnLock {
|
|
3743
|
+
acquire(sessionId: string, options?: SessionTurnLockAcquireOptions): Promise<ReleaseSessionTurnLock>;
|
|
3744
|
+
/** Best-effort escape hatch for local runtimes. */
|
|
3745
|
+
clear?(sessionId: string): void;
|
|
3746
|
+
}
|
|
3747
|
+
declare class LocalSessionTurnLock implements SessionTurnLock {
|
|
3748
|
+
private readonly locks;
|
|
3749
|
+
acquire(sessionId: string, options?: SessionTurnLockAcquireOptions): Promise<ReleaseSessionTurnLock>;
|
|
3750
|
+
clear(sessionId: string): void;
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3735
3753
|
/**
|
|
3736
3754
|
* Options for creating a new session.
|
|
3737
3755
|
*/
|
|
@@ -4465,7 +4483,7 @@ declare function resolveAgentDefaults(context: AgentDefaultsContext, providers?:
|
|
|
4465
4483
|
declare function sandboxDefaultsProvider(context: AgentDefaultsContext): AgentDefaults | undefined;
|
|
4466
4484
|
|
|
4467
4485
|
/** Stream result type - uses default Output for text streaming. */
|
|
4468
|
-
type InferenceStreamResult = StreamTextResult<ToolSet,
|
|
4486
|
+
type InferenceStreamResult = StreamTextResult<ToolSet, Record<string, unknown>, OutputInterface<string, string, never>>;
|
|
4469
4487
|
/**
|
|
4470
4488
|
* Custom stream result type - compatible shape from external providers.
|
|
4471
4489
|
*/
|
|
@@ -4539,7 +4557,7 @@ interface InferenceStreamInput {
|
|
|
4539
4557
|
/** Event sink used by tool execution to publish framework lifecycle events. */
|
|
4540
4558
|
onEvent?: (event: AgentEvent) => void | Promise<void>;
|
|
4541
4559
|
/** AI SDK telemetry settings */
|
|
4542
|
-
telemetry?:
|
|
4560
|
+
telemetry?: TelemetryOptions;
|
|
4543
4561
|
/**
|
|
4544
4562
|
* Control whether the model must call a tool and, if so, which one.
|
|
4545
4563
|
*
|
|
@@ -4579,6 +4597,7 @@ interface InferenceStepInfo {
|
|
|
4579
4597
|
finishReason?: string;
|
|
4580
4598
|
}
|
|
4581
4599
|
|
|
4600
|
+
type SpanAttributeValue = string | number | boolean | string[] | number[] | boolean[];
|
|
4582
4601
|
/**
|
|
4583
4602
|
* Configuration for the OpenTelemetry middleware.
|
|
4584
4603
|
*/
|
|
@@ -4598,8 +4617,19 @@ interface OtelMiddlewareConfig {
|
|
|
4598
4617
|
* Falls back to `"agent"`.
|
|
4599
4618
|
*/
|
|
4600
4619
|
agentName?: string;
|
|
4620
|
+
/** Stable agent identifier — recorded as `gen_ai.agent.id` when provided. */
|
|
4621
|
+
agentId?: string;
|
|
4601
4622
|
/** Agent description — recorded as `gen_ai.agent.description`. */
|
|
4602
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>;
|
|
4603
4633
|
/**
|
|
4604
4634
|
* Whether to emit `execute_tool` spans for tool calls.
|
|
4605
4635
|
* Defaults to `true`.
|
|
@@ -4622,8 +4652,41 @@ interface OtelMiddlewareConfig {
|
|
|
4622
4652
|
interface TelemetryConfig {
|
|
4623
4653
|
/** Agent name — used in span names and `gen_ai.agent.name`. */
|
|
4624
4654
|
agentName: string;
|
|
4655
|
+
/** Stable agent identifier — recorded as `gen_ai.agent.id` when provided. */
|
|
4656
|
+
agentId?: string;
|
|
4625
4657
|
/** Agent description — recorded as `gen_ai.agent.description`. */
|
|
4626
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;
|
|
4627
4690
|
/** Record tool arguments and LLM prompts in spans. Defaults to `true`. */
|
|
4628
4691
|
recordInputs?: boolean;
|
|
4629
4692
|
/** Record tool results and LLM responses in spans. Defaults to `true`. */
|
|
@@ -4649,7 +4712,7 @@ interface TelemetryConfigResult {
|
|
|
4649
4712
|
/** Agent-core middleware. */
|
|
4650
4713
|
middleware: AgentMiddleware;
|
|
4651
4714
|
/** AI SDK telemetry settings. */
|
|
4652
|
-
telemetry:
|
|
4715
|
+
telemetry: TelemetryOptions;
|
|
4653
4716
|
/**
|
|
4654
4717
|
* Flush and shut down the auto-created tracer provider.
|
|
4655
4718
|
* No-op when no provider was auto-created.
|
|
@@ -5065,7 +5128,7 @@ type AgentTurnCommitApplier = (batch: AgentTurnCommitBatch, options?: AgentTurnC
|
|
|
5065
5128
|
*/
|
|
5066
5129
|
type AgentTurnStepRuntimeConfig = Required<Pick<AgentConfig, "model" | "cwd" | "maxSteps">> & Pick<AgentConfig, "temperature" | "topP" | "maxOutputTokens" | "doomLoopThreshold" | "enforceDoomLoop" | "onDoomLoop" | "contextWindow" | "streamProvider"> & {
|
|
5067
5130
|
reserveTokens?: number;
|
|
5068
|
-
telemetry?:
|
|
5131
|
+
telemetry?: TelemetryOptions;
|
|
5069
5132
|
};
|
|
5070
5133
|
interface PrepareModelStepOptions {
|
|
5071
5134
|
sessionId: string;
|
|
@@ -5143,6 +5206,7 @@ interface RunToolBatchResult {
|
|
|
5143
5206
|
type AgentConstructionOptions = AgentConfig & {
|
|
5144
5207
|
tools?: Tool.AnyInfo[];
|
|
5145
5208
|
sessionManager?: SessionManager;
|
|
5209
|
+
sessionTurnLock?: SessionTurnLock;
|
|
5146
5210
|
};
|
|
5147
5211
|
type EffectiveAgentConfig = Required<Pick<AgentConfig, "model" | "systemPrompt" | "cwd" | "maxOutputTokens" | "maxSteps">> & AgentConfig;
|
|
5148
5212
|
|
|
@@ -5199,6 +5263,7 @@ declare class Agent {
|
|
|
5199
5263
|
private config;
|
|
5200
5264
|
private tools;
|
|
5201
5265
|
private sessions;
|
|
5266
|
+
private sessionTurnLock;
|
|
5202
5267
|
private state;
|
|
5203
5268
|
/** Context manager for overflow detection and compaction */
|
|
5204
5269
|
private contextManager;
|
|
@@ -5240,8 +5305,6 @@ declare class Agent {
|
|
|
5240
5305
|
private activeTurnCount;
|
|
5241
5306
|
/** Active turn intervention controllers, keyed by turn id */
|
|
5242
5307
|
private readonly activeTurns;
|
|
5243
|
-
/** Per-session turn queue to prevent concurrent writes to the same history */
|
|
5244
|
-
private readonly sessionLocks;
|
|
5245
5308
|
/** Structured logger for diagnostic output */
|
|
5246
5309
|
private readonly _logger;
|
|
5247
5310
|
constructor(config: AgentConstructionOptions);
|
|
@@ -5758,4 +5821,4 @@ declare class Agent {
|
|
|
5758
5821
|
close(): Promise<void>;
|
|
5759
5822
|
}
|
|
5760
5823
|
|
|
5761
|
-
export { type AgentTurnCommitOptions as $, type AgentEvent as A, Agent as B, type AgentConfig as C, DEFAULT_MAX_TOKENS as D, type EffectiveAgentConfig as E, type FileOperationMeta as F, type AgentDefaults as G, type HumanInputController as H, type InferenceStreamInput as I, type AgentDefaultsContext as J, type AgentDefaultsProvider as K, type AgentMiddleware as L, type Message as M, type AgentModelHooks as N, type AgentStatus as O, PromptBuilder as P, type AgentTurnActiveToolCall as Q, type RetryConfig as R, SessionManager as S, Tool as T, type Unsubscribe as U, type AgentTurnBoundaryKind as V, type WildcardHandler as W, type AgentTurnBoundaryMetadata as X, type AgentTurnBoundarySnapshot as Y, type AgentTurnCommitApplier as Z, type AgentTurnCommitBatch as _, type TurnTrackerContext as a, type DispatchTargetSummary as a$, AgentTurnEngine as a0, type AgentTurnEngineOptions as a1, type AgentTurnPhase as a2, type AgentTurnResolvedToolCall as a3, type AgentTurnState as a4, type AgentTurnStateAdvanceOptions as a5, type AgentTurnStepCommitSnapshot as a6, type AgentTurnStepCommitToolCall as a7, type AgentTurnStepCommitToolResult as a8, type AgentTurnStepRuntimeConfig as a9, type ConfigChangeEntry as aA, type CoordinatorNotification as aB, type CoordinatorNotificationKind as aC, type CoordinatorRoundEvent as aD, type CreateAgentTurnStateOptions as aE, type CreateAgentTurnStepCommitBatchOptions as aF, type CreateSessionOptions as aG, DEFAULT_AGENT_NAME as aH, DEFAULT_DISPATCH_TOOL_IDS as aI, DEFAULT_LOCAL_DISPATCH_CONCURRENCY as aJ, DEFAULT_LOCAL_DISPATCH_DEPTH as aK, DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX as aL, DEFAULT_MAX_STEPS as aM, DEFAULT_SYSTEM_PROMPT as aN, DISPATCH_STATES as aO, type DispatchCheckOptions as aP, type DispatchListOptions as aQ, type DispatchRecord as aR, type DispatchResult as aS, type DispatchRole as aT, type DispatchRuntime as aU, type DispatchStartInput as aV, type DispatchState as aW, type DispatchTarget as aX, type DispatchTargetInspection as aY, type DispatchTargetStartInput as aZ, type DispatchTargetStartResult as a_, type AppliedProfile as aa, type ApprovalAction as ab, type ApprovalAgentMiddleware as ac, type ApprovalCascadeMode as ad, type ApprovalCascadePolicy as ae, type ApprovalConfig as af, type ApprovalCorrection as ag, type ApprovalDecision as ah, type ApprovalEvaluation as ai, type ApprovalEvent as aj, type ApprovalHandler as ak, type ApprovalMiddlewareConfig as al, type ApprovalRememberScope as am, type ApprovalRequest as an, type ApprovalResolution as ao, type ApprovalRule as ap, type ApprovalRuleContext as aq, type AssistantMessage as ar, type BlockedModelCall as as, type BranchEntry as at, type ChatLifecycleContext as au, type CommitOutputOptions as av, type CommitStepOptions as aw, type CompactionConfig as ax, type CompactionEntry as ay, type CompatibleSchema as az, MiddlewareRunner as b, type
|
|
5824
|
+
export { type AgentTurnCommitOptions as $, type AgentEvent as A, Agent as B, type AgentConfig as C, DEFAULT_MAX_TOKENS as D, type EffectiveAgentConfig as E, type FileOperationMeta as F, type AgentDefaults as G, type HumanInputController as H, type InferenceStreamInput as I, type AgentDefaultsContext as J, type AgentDefaultsProvider as K, type AgentMiddleware as L, type Message as M, type AgentModelHooks as N, type AgentStatus as O, PromptBuilder as P, type AgentTurnActiveToolCall as Q, type RetryConfig as R, SessionManager as S, Tool as T, type Unsubscribe as U, type AgentTurnBoundaryKind as V, type WildcardHandler as W, type AgentTurnBoundaryMetadata as X, type AgentTurnBoundarySnapshot as Y, type AgentTurnCommitApplier as Z, type AgentTurnCommitBatch as _, type TurnTrackerContext as a, type DispatchTargetSummary as a$, AgentTurnEngine as a0, type AgentTurnEngineOptions as a1, type AgentTurnPhase as a2, type AgentTurnResolvedToolCall as a3, type AgentTurnState as a4, type AgentTurnStateAdvanceOptions as a5, type AgentTurnStepCommitSnapshot as a6, type AgentTurnStepCommitToolCall as a7, type AgentTurnStepCommitToolResult as a8, type AgentTurnStepRuntimeConfig as a9, type ConfigChangeEntry as aA, type CoordinatorNotification as aB, type CoordinatorNotificationKind as aC, type CoordinatorRoundEvent as aD, type CreateAgentTurnStateOptions as aE, type CreateAgentTurnStepCommitBatchOptions as aF, type CreateSessionOptions as aG, DEFAULT_AGENT_NAME as aH, DEFAULT_DISPATCH_TOOL_IDS as aI, DEFAULT_LOCAL_DISPATCH_CONCURRENCY as aJ, DEFAULT_LOCAL_DISPATCH_DEPTH as aK, DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX as aL, DEFAULT_MAX_STEPS as aM, DEFAULT_SYSTEM_PROMPT as aN, DISPATCH_STATES as aO, type DispatchCheckOptions as aP, type DispatchListOptions as aQ, type DispatchRecord as aR, type DispatchResult as aS, type DispatchRole as aT, type DispatchRuntime as aU, type DispatchStartInput as aV, type DispatchState as aW, type DispatchTarget as aX, type DispatchTargetInspection as aY, type DispatchTargetStartInput as aZ, type DispatchTargetStartResult as a_, type AppliedProfile as aa, type ApprovalAction as ab, type ApprovalAgentMiddleware as ac, type ApprovalCascadeMode as ad, type ApprovalCascadePolicy as ae, type ApprovalConfig as af, type ApprovalCorrection as ag, type ApprovalDecision as ah, type ApprovalEvaluation as ai, type ApprovalEvent as aj, type ApprovalHandler as ak, type ApprovalMiddlewareConfig as al, type ApprovalRememberScope as am, type ApprovalRequest as an, type ApprovalResolution as ao, type ApprovalRule as ap, type ApprovalRuleContext as aq, type AssistantMessage as ar, type BlockedModelCall as as, type BranchEntry as at, type ChatLifecycleContext as au, type CommitOutputOptions as av, type CommitStepOptions as aw, type CompactionConfig as ax, type CompactionEntry as ay, type CompatibleSchema as az, MiddlewareRunner as b, type PlannedTask as b$, type DispatchUsage as b0, type DoomLoopAction as b1, type DoomLoopHandler as b2, type DoomLoopRequest as b3, type EnhancedTools as b4, type EntryBase as b5, type EnvironmentInfo as b6, type ExternalTaskControl as b7, type FileEntry as b8, type GuidancePayload as b9, type MemberStatusChangedEvent as bA, type MessageBase as bB, type MessageEntry as bC, type MessageError as bD, type MessageInput as bE, type MessageKind as bF, type MessageListFilter as bG, type MessagePayload as bH, type MessageRole as bI, type MessageSentEvent as bJ, type MetadataEntry as bK, type ModelCallInput as bL, type ModelCallOutput as bM, type ModelFamily as bN, type NormalizedToolReplayPolicy as bO, type NotificationPriority as bP, type OnFollowUpQueued as bQ, type OnInterventionApplied as bR, type OtelMiddlewareConfig as bS, PRUNE_PROTECTED_TOOLS as bT, type PendingIntervention as bU, type PermissionForwardedEvent as bV, type PermissionHandler as bW, type PermissionRequestPayload as bX, type PermissionResolvedEvent as bY, type PermissionResponsePayload as bZ, type PlanCreatedEvent as b_, type HumanInputEventContext as ba, type HumanInputOption as bb, type HumanInputRequest as bc, type HumanInputRequestKind as bd, type HumanInputRequestListOptions as be, type HumanInputRequestRecord as bf, type HumanInputRequestStatus as bg, type HumanInputResponse as bh, HumanInputTimeoutError as bi, type HumanInputToolArgs as bj, HumanInputUnavailableError as bk, type IdleNotificationPayload as bl, InMemoryMailboxStore as bm, InMemoryTaskBoardStore as bn, type InferSchemaOutput as bo, type InputCheckResult as bp, type InstructionFile as bq, type LocalDispatchRuntimeOptions as br, LocalSessionTurnLock as bs, Mailbox as bt, type MailboxStore as bu, type MailboxSubscriber as bv, type MemberRegisteredEvent as bw, type MemberRuntime as bx, type MemberStats as by, type MemberStatus as bz, type ToolExecutionMode as c, type TaskExecutor as c$, type PrepareModelStepOptions as c0, type PreparedAgentModelStep as c1, type PreparedExternalTask as c2, type Profile as c3, type PromptBuildContext as c4, type PromptConfig as c5, type PromptSection as c6, type QueueTaskInput as c7, type ReleaseSessionTurnLock as c8, type RemoteSkillEntry as c9, type SkillResource as cA, type SkillResourceType as cB, type SkillScope as cC, type SkillSource as cD, type SkillSourceType as cE, type StepProcessingOptions as cF, type StepProcessingOutput as cG, type StepProcessingResult as cH, type StreamChunk as cI, type StreamInput as cJ, type StreamProviderConfig as cK, type StreamProviderFactory as cL, type StreamProviderInput as cM, type StreamProviderResult as cN, type SynthesisCompleteEvent as cO, type SynthesisResult as cP, type SystemMessage as cQ, TERMINAL_STATUSES as cR, type TaskAbortedEvent as cS, TaskBoard as cT, type TaskBoardStore as cU, type TaskCompletedEvent as cV, type TaskCompletion as cW, TaskConflictError as cX, type TaskCreateInput as cY, type TaskCreatedEvent as cZ, type TaskDispatchMode as c_, type RemoteSkillIndex as ca, type RiskLevel as cb, type RuleSource as cc, type RunModelStepOptions as cd, type RunToolBatchOptions as ce, type RunToolBatchResult as cf, STORAGE_VERSION as cg, type SerializedMessage as ch, type Session as ci, type SessionContext as cj, type SessionEntry as ck, type SessionHeader as cl, type SessionInfo as cm, type SessionStorage as cn, type SessionTurnLock as co, type SessionTurnLockAcquireOptions as cp, type ShutdownRequestPayload as cq, type ShutdownRequestedEvent as cr, type ShutdownResolvedEvent as cs, type ShutdownResponsePayload as ct, type SkillConfig as cu, type SkillContent as cv, type SkillDiscoveryError as cw, type SkillDiscoveryResult as cx, type SkillMetadata as cy, SkillRegistry as cz, type ModelCallContext as d, type TaskExecutorInput as d0, type TaskFailedEvent as d1, type TaskListFilter as d2, type TaskResult as d3, type TaskStatus as d4, type TaskTransition as d5, type TaskTransitionEvent as d6, type TaskTransitionReason as d7, type TeamCoordinatorConfig as d8, type TeamEvent as d9, type WorkerReportPayload as dA, accumulateUsage as dB, advanceAgentTurnState as dC, approvalMiddleware as dD, buildCoordinatorNotificationEvent as dE, createAgent as dF, createAgentTurnEngine as dG, createAgentTurnState as dH, createApprovalHandler as dI, createHumanInputController as dJ, createPromptBuilder as dK, createSkillRegistry as dL, createTurnTracker as dM, emptySkillRegistry as dN, failAgentTurnState as dO, getRequiredToolHost as dP, isApprovalMiddleware as dQ, isBlockedModelCall as dR, isHumanInputController as dS, requiresToolHost as dT, resolveAgentDefaults as dU, resolveCapability as dV, sandboxDefaultsProvider as dW, type CoordinatorCtx as dX, type TeamMember as da, type TeamMessage as db, type TeamNotificationEvent as dc, type TeamPlan as dd, type TeamSnapshot as de, type TeamStartedEvent as df, type TeamStoppedEvent as dg, type TeamTask as dh, type TelemetryConfig as di, type TelemetryConfigResult as dj, type TokenUsage as dk, type ToolCallDecision as dl, type ToolCallOutput as dm, type ToolCapabilities as dn, type ToolContext as dp, type ToolHostRequirements as dq, type ToolMessage as dr, type ToolMetadata as ds, type ToolReplayMode as dt, type ToolReplayPolicy as du, type ToolResult as dv, type ToolSideEffectLevel as dw, type TracingConfig as dx, type UndoResult as dy, type UserMessage as dz, type AnyInferenceResult as e, DEFAULT_RETRY_CONFIG as f, type InferenceCustomResult as g, type InferenceStepInfo as h, type InferenceStreamResult as i, type RetryHandlerOptions as j, type RetryState as k, calculateDelay as l, createRetryHandler as m, createRetryState as n, sleep as o, type HumanInputConfig as p, TurnChangeTracker as q, InterventionController as r, shouldRetry as s, type StreamProvider as t, type Scope as u, type ScopeSnapshot as v, withRetry as w, type ScopeOptions as x, type AgentSignal as y, type TypedHandler as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { N as AgentModelHooks, ac as ApprovalAgentMiddleware, al as ApprovalMiddlewareConfig, as as BlockedModelCall, au as ChatLifecycleContext, b as MiddlewareRunner, d as ModelCallContext,
|
|
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,
|
|
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 {
|
|
2
|
-
export {
|
|
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 {
|
|
2
|
-
export { ab as ApprovalAction, ad as ApprovalCascadeMode, ag as ApprovalCorrection, ai as ApprovalEvaluation, ak as ApprovalHandler, ao as ApprovalResolution,
|
|
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 {
|
|
2
|
-
export {
|
|
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,
|
|
2
|
-
export { at as BranchEntry, ay as CompactionEntry, aA as ConfigChangeEntry, aG as CreateSessionOptions, b5 as EntryBase,
|
|
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';
|
package/dist/storage/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FileStorage,
|
|
3
|
+
LocalSessionTurnLock,
|
|
3
4
|
MemoryStorage,
|
|
4
5
|
STORAGE_VERSION,
|
|
5
6
|
SessionManager,
|
|
@@ -22,9 +23,10 @@ import {
|
|
|
22
23
|
serializeMessage,
|
|
23
24
|
toJSONL,
|
|
24
25
|
toJSONLBatch
|
|
25
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-BMLWNXIP.js";
|
|
26
27
|
export {
|
|
27
28
|
FileStorage,
|
|
29
|
+
LocalSessionTurnLock,
|
|
28
30
|
MemoryStorage,
|
|
29
31
|
STORAGE_VERSION,
|
|
30
32
|
SessionManager,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aT as DispatchRole, aS as DispatchResult, br as LocalDispatchRuntimeOptions, B as Agent, T as Tool, aU as DispatchRuntime,
|
|
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/subagents/index.js
CHANGED
|
@@ -34,11 +34,11 @@ import {
|
|
|
34
34
|
parseSubAgentRoleFrontmatter,
|
|
35
35
|
parseSubAgentToolSpec,
|
|
36
36
|
toSubAgentRole
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-QVQKQZUN.js";
|
|
38
38
|
import "../chunk-TPZ37IWI.js";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-Y7SMKIJT.js";
|
|
40
40
|
import "../chunk-Q742PSH3.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-BMLWNXIP.js";
|
|
42
42
|
export {
|
|
43
43
|
DEFAULT_SUBAGENT_CONCURRENCY,
|
|
44
44
|
DEFAULT_SUBAGENT_DEPTH,
|
package/dist/team/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aB as CoordinatorNotification,
|
|
2
|
-
export { aC as CoordinatorNotificationKind, aD as CoordinatorRoundEvent, b7 as ExternalTaskControl, b9 as GuidancePayload, bl as IdleNotificationPayload, bm as InMemoryMailboxStore, bn as InMemoryTaskBoardStore,
|
|
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 {
|
|
2
|
-
export { az as CompatibleSchema, bo as InferSchemaOutput, bp as InputCheckResult,
|
|
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",
|