@cuylabs/agent-core 0.12.0 → 0.13.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-UECLINZM.js → chunk-BGG2HVIR.js} +1 -1
- package/dist/{chunk-JNN3RUIL.js → chunk-HNEI7JVE.js} +30 -4
- package/dist/{chunk-BERMUFZA.js → chunk-I7EJGKUP.js} +57 -2
- package/dist/{chunk-33UIM3QS.js → chunk-NWQUZWLT.js} +1 -1
- package/dist/{chunk-QEE5CBPM.js → chunk-ZKEC7MFQ.js} +0 -28
- 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 +3 -3
- package/dist/index.js +7 -7
- package/dist/inference/index.d.ts +3 -3
- package/dist/inference/index.js +2 -2
- package/dist/{instance-CP24g3Le.d.ts → instance-N5VhcNT2.d.ts} +44 -6
- package/dist/middleware/index.d.ts +2 -2
- package/dist/{model-messages-B_MCHyiX.d.ts → model-messages-DnsiSiZj.d.ts} +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/profiles/index.d.ts +1 -1
- package/dist/prompt/index.d.ts +2 -2
- package/dist/prompt/index.js +2 -2
- package/dist/safety/index.d.ts +2 -2
- package/dist/skill/index.d.ts +2 -2
- package/dist/skill/index.js +1 -1
- package/dist/storage/index.d.ts +2 -2
- package/dist/subagents/index.d.ts +1 -1
- package/dist/team/index.d.ts +2 -2
- package/dist/tool/index.d.ts +2 -2
- package/dist/tool/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Inference,
|
|
3
3
|
buildModelCallContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NWQUZWLT.js";
|
|
5
5
|
import {
|
|
6
|
-
PRUNE_PROTECTED_TOOLS,
|
|
7
|
-
accumulateUsage,
|
|
8
6
|
currentScope,
|
|
9
7
|
executeAgentToolCall,
|
|
10
8
|
snapshotScope,
|
|
11
9
|
streamWithinScope,
|
|
12
10
|
withinScope
|
|
13
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZKEC7MFQ.js";
|
|
14
12
|
import {
|
|
15
13
|
LLMError
|
|
16
14
|
} from "./chunk-STDJYXYK.js";
|
|
@@ -657,6 +655,9 @@ function estimateConversationTokens(messages) {
|
|
|
657
655
|
return total;
|
|
658
656
|
}
|
|
659
657
|
|
|
658
|
+
// src/types/compaction.ts
|
|
659
|
+
var PRUNE_PROTECTED_TOOLS = ["skill"];
|
|
660
|
+
|
|
660
661
|
// src/agent/context/pruning.ts
|
|
661
662
|
var DEFAULT_CONTEXT_LIMITS = {
|
|
662
663
|
contextWindow: 128e3,
|
|
@@ -1375,6 +1376,29 @@ async function* runModelStep(options) {
|
|
|
1375
1376
|
);
|
|
1376
1377
|
}
|
|
1377
1378
|
|
|
1379
|
+
// src/types/messages.ts
|
|
1380
|
+
function accumulateUsage(current, next) {
|
|
1381
|
+
if (!next) return current;
|
|
1382
|
+
if (!current) {
|
|
1383
|
+
return {
|
|
1384
|
+
inputTokens: next.inputTokens ?? 0,
|
|
1385
|
+
outputTokens: next.outputTokens ?? 0,
|
|
1386
|
+
totalTokens: next.totalTokens ?? 0,
|
|
1387
|
+
cacheReadTokens: (next.cacheReadTokens ?? 0) || void 0,
|
|
1388
|
+
cacheWriteTokens: (next.cacheWriteTokens ?? 0) || void 0
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
const cacheRead = (current.cacheReadTokens ?? 0) + (next.cacheReadTokens ?? 0);
|
|
1392
|
+
const cacheWrite = (current.cacheWriteTokens ?? 0) + (next.cacheWriteTokens ?? 0);
|
|
1393
|
+
return {
|
|
1394
|
+
inputTokens: (current.inputTokens ?? 0) + (next.inputTokens ?? 0),
|
|
1395
|
+
outputTokens: (current.outputTokens ?? 0) + (next.outputTokens ?? 0),
|
|
1396
|
+
totalTokens: (current.totalTokens ?? 0) + (next.totalTokens ?? 0),
|
|
1397
|
+
cacheReadTokens: cacheRead || void 0,
|
|
1398
|
+
cacheWriteTokens: cacheWrite || void 0
|
|
1399
|
+
};
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1378
1402
|
// src/execution/turn-runner/tool-batch.ts
|
|
1379
1403
|
function cloneToolResultRecord(options) {
|
|
1380
1404
|
return new Map(
|
|
@@ -2032,6 +2056,7 @@ export {
|
|
|
2032
2056
|
estimateTokens,
|
|
2033
2057
|
estimateMessageTokens,
|
|
2034
2058
|
estimateConversationTokens,
|
|
2059
|
+
PRUNE_PROTECTED_TOOLS,
|
|
2035
2060
|
DEFAULT_CONTEXT_LIMITS,
|
|
2036
2061
|
getUsableTokenLimit,
|
|
2037
2062
|
findCutPoint,
|
|
@@ -2041,6 +2066,7 @@ export {
|
|
|
2041
2066
|
ContextOverflowError,
|
|
2042
2067
|
processStepStream,
|
|
2043
2068
|
runModelStep,
|
|
2069
|
+
accumulateUsage,
|
|
2044
2070
|
runToolBatch,
|
|
2045
2071
|
commitStep,
|
|
2046
2072
|
commitOutput,
|
|
@@ -118,9 +118,14 @@ async function loadSkillMetadata(filePath, scope, source, maxSize) {
|
|
|
118
118
|
import { readFile as readFile2, readdir, stat as stat2 } from "fs/promises";
|
|
119
119
|
import { extname, join as join2, relative } from "path";
|
|
120
120
|
async function loadSkillContent(metadata) {
|
|
121
|
+
if (!metadata.filePath) {
|
|
122
|
+
throw new Error(
|
|
123
|
+
`Cannot load skill content for "${metadata.name}": no file path. Pack-contributed skills must have content pre-cached via SkillRegistry.register(metadata, content).`
|
|
124
|
+
);
|
|
125
|
+
}
|
|
121
126
|
const raw = await readFile2(metadata.filePath, "utf-8");
|
|
122
127
|
const { body } = parseFrontmatter(raw);
|
|
123
|
-
const resources = await scanSkillResources(metadata.baseDir);
|
|
128
|
+
const resources = await scanSkillResources(metadata.baseDir ?? "");
|
|
124
129
|
return {
|
|
125
130
|
...metadata,
|
|
126
131
|
body,
|
|
@@ -128,6 +133,14 @@ async function loadSkillContent(metadata) {
|
|
|
128
133
|
};
|
|
129
134
|
}
|
|
130
135
|
async function loadResourceContent(resource) {
|
|
136
|
+
if (resource.content !== void 0) {
|
|
137
|
+
return resource.content;
|
|
138
|
+
}
|
|
139
|
+
if (!resource.absolutePath) {
|
|
140
|
+
throw new Error(
|
|
141
|
+
`Resource "${resource.relativePath}" has no content or absolute path.`
|
|
142
|
+
);
|
|
143
|
+
}
|
|
131
144
|
return readFile2(resource.absolutePath, "utf-8");
|
|
132
145
|
}
|
|
133
146
|
async function scanSkillResources(baseDir) {
|
|
@@ -503,7 +516,9 @@ var SkillRegistry = class {
|
|
|
503
516
|
lines.push("");
|
|
504
517
|
lines.push(`<skill name="${skill.name}" scope="${skill.scope}">`);
|
|
505
518
|
lines.push(` <description>${skill.description}</description>`);
|
|
506
|
-
|
|
519
|
+
if (skill.filePath) {
|
|
520
|
+
lines.push(` <file>${skill.filePath}</file>`);
|
|
521
|
+
}
|
|
507
522
|
if (skill.dependencies && skill.dependencies.length > 0) {
|
|
508
523
|
lines.push(
|
|
509
524
|
` <depends-on>${skill.dependencies.join(", ")}</depends-on>`
|
|
@@ -563,6 +578,46 @@ var SkillRegistry = class {
|
|
|
563
578
|
// ==========================================================================
|
|
564
579
|
// Cache Management
|
|
565
580
|
// ==========================================================================
|
|
581
|
+
// ==========================================================================
|
|
582
|
+
// External Registration (for capability packs)
|
|
583
|
+
// ==========================================================================
|
|
584
|
+
/**
|
|
585
|
+
* Register an externally defined skill with optional pre-loaded content.
|
|
586
|
+
*
|
|
587
|
+
* Intended for capability packs that contribute skills without placing
|
|
588
|
+
* files on disk — the pack's inline body is stored directly in the
|
|
589
|
+
* content cache so the agent can load it without a file read.
|
|
590
|
+
*
|
|
591
|
+
* **Priority:** registered skills have lower priority than discovered
|
|
592
|
+
* skills. If a skill with the same name was already found during
|
|
593
|
+
* discovery, the discovered skill wins and this call is a no-op.
|
|
594
|
+
*
|
|
595
|
+
* @param metadata L1 metadata describing the skill.
|
|
596
|
+
* @param content Pre-built content (L2). When provided, this is stored
|
|
597
|
+
* in the cache so `loadContent()` never reads a file.
|
|
598
|
+
*/
|
|
599
|
+
register(metadata, content) {
|
|
600
|
+
const existing = this.skills.get(metadata.name);
|
|
601
|
+
if (existing) {
|
|
602
|
+
const protectedExisting = existing.scope === "builtin" || existing.source.type === "local" || existing.filePath !== void 0 || existing.baseDir !== void 0;
|
|
603
|
+
if (protectedExisting) {
|
|
604
|
+
return "skipped";
|
|
605
|
+
}
|
|
606
|
+
this.skills.set(metadata.name, metadata);
|
|
607
|
+
if (content) {
|
|
608
|
+
this.contentCache.set(metadata.name, content);
|
|
609
|
+
}
|
|
610
|
+
return "updated";
|
|
611
|
+
}
|
|
612
|
+
this.skills.set(metadata.name, metadata);
|
|
613
|
+
if (content) {
|
|
614
|
+
this.contentCache.set(metadata.name, content);
|
|
615
|
+
}
|
|
616
|
+
return "registered";
|
|
617
|
+
}
|
|
618
|
+
// ==========================================================================
|
|
619
|
+
// Cache Management
|
|
620
|
+
// ==========================================================================
|
|
566
621
|
/** Clear the content cache, forcing reloads on next access. */
|
|
567
622
|
clearContentCache() {
|
|
568
623
|
this.contentCache.clear();
|
|
@@ -81,9 +81,6 @@ async function* streamWithinScope(options, iterable) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
// src/types/compaction.ts
|
|
85
|
-
var PRUNE_PROTECTED_TOOLS = ["skill"];
|
|
86
|
-
|
|
87
84
|
// src/tracking/file-tracking.ts
|
|
88
85
|
function extractFilePathsFromArgs(args, meta) {
|
|
89
86
|
if (!meta.pathArgs || meta.pathArgs.length === 0) {
|
|
@@ -108,29 +105,6 @@ function shouldCaptureBaseline(meta) {
|
|
|
108
105
|
return meta.operationType !== "read";
|
|
109
106
|
}
|
|
110
107
|
|
|
111
|
-
// src/types/messages.ts
|
|
112
|
-
function accumulateUsage(current, next) {
|
|
113
|
-
if (!next) return current;
|
|
114
|
-
if (!current) {
|
|
115
|
-
return {
|
|
116
|
-
inputTokens: next.inputTokens ?? 0,
|
|
117
|
-
outputTokens: next.outputTokens ?? 0,
|
|
118
|
-
totalTokens: next.totalTokens ?? 0,
|
|
119
|
-
cacheReadTokens: (next.cacheReadTokens ?? 0) || void 0,
|
|
120
|
-
cacheWriteTokens: (next.cacheWriteTokens ?? 0) || void 0
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
const cacheRead = (current.cacheReadTokens ?? 0) + (next.cacheReadTokens ?? 0);
|
|
124
|
-
const cacheWrite = (current.cacheWriteTokens ?? 0) + (next.cacheWriteTokens ?? 0);
|
|
125
|
-
return {
|
|
126
|
-
inputTokens: (current.inputTokens ?? 0) + (next.inputTokens ?? 0),
|
|
127
|
-
outputTokens: (current.outputTokens ?? 0) + (next.outputTokens ?? 0),
|
|
128
|
-
totalTokens: (current.totalTokens ?? 0) + (next.totalTokens ?? 0),
|
|
129
|
-
cacheReadTokens: cacheRead || void 0,
|
|
130
|
-
cacheWriteTokens: cacheWrite || void 0
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
108
|
// src/tool/executor.ts
|
|
135
109
|
import { z } from "zod";
|
|
136
110
|
function parseToolParams(toolName, initialized, params) {
|
|
@@ -283,9 +257,7 @@ export {
|
|
|
283
257
|
withinScope,
|
|
284
258
|
restoreScope,
|
|
285
259
|
streamWithinScope,
|
|
286
|
-
PRUNE_PROTECTED_TOOLS,
|
|
287
260
|
extractFilePathsFromArgs,
|
|
288
261
|
shouldCaptureBaseline,
|
|
289
|
-
accumulateUsage,
|
|
290
262
|
executeAgentToolCall
|
|
291
263
|
};
|
package/dist/dispatch/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { br as LocalDispatchRuntimeOptions, aU as DispatchRuntime, T as Tool, cY as TaskExecutorInput, cX as TaskExecutor, aR as DispatchRecord, aY as DispatchTargetInspection, aX as DispatchTarget, dd as TeamTask, bw 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, cY as TaskExecutorInput, cX as TaskExecutor, aR as DispatchRecord, aY as DispatchTargetInspection, aX as DispatchTarget, dd as TeamTask, bw as MemberRuntime, a_ as DispatchTargetStartResult, a$ as DispatchTargetSummary, b7 as ExternalTaskControl } from '../instance-N5VhcNT2.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-N5VhcNT2.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, cB as StepProcessingOptions, cC as StepProcessingOutput, a6 as AgentTurnStepCommitSnapshot, aF as CreateAgentTurnStepCommitBatchOptions, _ as AgentTurnCommitBatch, b$ as PrepareModelStepOptions, c0 as PreparedAgentModelStep, cb as RunModelStepOptions, A as AgentEvent, cc as RunToolBatchOptions, cd as RunToolBatchResult, av as CommitOutputOptions, aw as CommitStepOptions, dg as TokenUsage, v as ScopeSnapshot, a4 as AgentTurnState, dn as ToolMetadata, a8 as AgentTurnStepCommitToolResult, a7 as AgentTurnStepCommitToolCall, M as Message, dv as UserMessage, ar as AssistantMessage, dm as ToolMessage, cM 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, dy as advanceAgentTurnState, dC as createAgentTurnEngine, dD as createAgentTurnState, dK as failAgentTurnState } from '../instance-
|
|
1
|
+
import { e as AnyInferenceResult, cB as StepProcessingOptions, cC as StepProcessingOutput, a6 as AgentTurnStepCommitSnapshot, aF as CreateAgentTurnStepCommitBatchOptions, _ as AgentTurnCommitBatch, b$ as PrepareModelStepOptions, c0 as PreparedAgentModelStep, cb as RunModelStepOptions, A as AgentEvent, cc as RunToolBatchOptions, cd as RunToolBatchResult, av as CommitOutputOptions, aw as CommitStepOptions, dg as TokenUsage, v as ScopeSnapshot, a4 as AgentTurnState, dn as ToolMetadata, a8 as AgentTurnStepCommitToolResult, a7 as AgentTurnStepCommitToolCall, M as Message, dv as UserMessage, ar as AssistantMessage, dm as ToolMessage, cM as SystemMessage } from '../instance-N5VhcNT2.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, dy as advanceAgentTurnState, dC as createAgentTurnEngine, dD as createAgentTurnState, dK as failAgentTurnState } from '../instance-N5VhcNT2.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-DnsiSiZj.js';
|
|
5
5
|
import '../types-C_LCeYNg.js';
|
|
6
6
|
import 'ai';
|
|
7
7
|
import 'zod';
|
package/dist/execution/index.js
CHANGED
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
runToolBatch,
|
|
32
32
|
snapshotAgentWorkflowMessage,
|
|
33
33
|
snapshotAgentWorkflowMessages
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-HNEI7JVE.js";
|
|
35
35
|
import {
|
|
36
36
|
convertAgentMessagesToModelMessages
|
|
37
|
-
} from "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
} from "../chunk-NWQUZWLT.js";
|
|
38
|
+
import "../chunk-ZKEC7MFQ.js";
|
|
39
39
|
import "../chunk-STDJYXYK.js";
|
|
40
40
|
import "../chunk-WI5JFEAI.js";
|
|
41
41
|
import "../chunk-CJI7PVS2.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HumanInputController, p as HumanInputConfig, T as Tool, M as Message, S as SessionManager, E as EffectiveAgentConfig, q as TurnChangeTracker, r as InterventionController, b as MiddlewareRunner, P as PromptBuilder, 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 Mailbox, bt as MailboxStore, bu as MailboxSubscriber, bv as MemberRegisteredEvent, bw as MemberRuntime, bx as MemberStats, by as MemberStatus, bz as MemberStatusChangedEvent, bA as MessageBase, bB as MessageEntry, bC as MessageError, bD as MessageInput, bE as MessageKind, bF as MessageListFilter, bG as MessagePayload, bH as MessageRole, bI as MessageSentEvent, bJ as MetadataEntry, d as ModelCallContext, bK as ModelCallInput, bL as ModelCallOutput, bM as ModelFamily, bN as NormalizedToolReplayPolicy, bO as NotificationPriority, bP as OnFollowUpQueued, bQ as OnInterventionApplied, bR as OtelMiddlewareConfig, bS as PRUNE_PROTECTED_TOOLS, bT as PendingIntervention, bU as PermissionForwardedEvent, bV as PermissionHandler, bW as PermissionRequestPayload, bX as PermissionResolvedEvent, bY as PermissionResponsePayload, bZ as PlanCreatedEvent, b_ as PlannedTask, b$ as PrepareModelStepOptions, c0 as PreparedAgentModelStep, c1 as PreparedExternalTask, c2 as Profile, c3 as PromptBuildContext, c4 as PromptConfig, c5 as PromptSection, c6 as QueueTaskInput, c7 as RemoteSkillEntry, c8 as RemoteSkillIndex, R as RetryConfig, j as RetryHandlerOptions, k as RetryState, c9 as RiskLevel, ca as RuleSource, cb as RunModelStepOptions, cc as RunToolBatchOptions, cd as RunToolBatchResult, ce as STORAGE_VERSION, cf as SerializedMessage, cg as Session, ch as SessionContext, ci as SessionEntry, cj as SessionHeader, ck as SessionInfo, cl as SessionStorage, cm as ShutdownRequestPayload, cn as ShutdownRequestedEvent, co as ShutdownResolvedEvent, cp as ShutdownResponsePayload, cq as SkillConfig, cr as SkillContent, cs as SkillDiscoveryError, ct as SkillDiscoveryResult, cu as SkillMetadata, cv as SkillRegistry, cw as SkillResource, cx as SkillResourceType, cy as SkillScope, cz as SkillSource, cA as SkillSourceType, cB as StepProcessingOptions, cC as StepProcessingOutput, cD as StepProcessingResult, cE as StreamChunk, cF as StreamInput, cG as StreamProviderConfig, cH as StreamProviderFactory, cI as StreamProviderInput, cJ as StreamProviderResult, cK as SynthesisCompleteEvent, cL as SynthesisResult, cM as SystemMessage, cN as TERMINAL_STATUSES, cO as TaskAbortedEvent, cP as TaskBoard, cQ as TaskBoardStore, cR as TaskCompletedEvent, cS as TaskCompletion, cT as TaskConflictError, cU as TaskCreateInput, cV as TaskCreatedEvent, cW as TaskDispatchMode, cX as TaskExecutor, cY as TaskExecutorInput, cZ as TaskFailedEvent, c_ as TaskListFilter, c$ as TaskResult, d0 as TaskStatus, d1 as TaskTransition, d2 as TaskTransitionEvent, d3 as TaskTransitionReason, d4 as TeamCoordinatorConfig, d5 as TeamEvent, d6 as TeamMember, d7 as TeamMessage, d8 as TeamNotificationEvent, d9 as TeamPlan, da as TeamSnapshot, db as TeamStartedEvent, dc as TeamStoppedEvent, dd as TeamTask, de as TelemetryConfig, df as TelemetryConfigResult, dg as TokenUsage, dh as ToolCallDecision, di as ToolCallOutput, dj as ToolCapabilities, dk as ToolContext, dl as ToolHostRequirements, dm as ToolMessage, dn as ToolMetadata, dp as ToolReplayMode, dq as ToolReplayPolicy, dr as ToolResult, ds as ToolSideEffectLevel, dt as TracingConfig, a as TurnTrackerContext, du as UndoResult, dv as UserMessage, dw as WorkerReportPayload, dx as accumulateUsage, dy as advanceAgentTurnState, dz as approvalMiddleware, dA as buildCoordinatorNotificationEvent, l as calculateDelay, dB as createAgent, dC as createAgentTurnEngine, dD as createAgentTurnState, dE as createApprovalHandler, dF as createHumanInputController, dG as createPromptBuilder, m as createRetryHandler, n as createRetryState, dH as createSkillRegistry, dI as createTurnTracker, dJ as emptySkillRegistry, dK as failAgentTurnState, dL as getRequiredToolHost, dM as isApprovalMiddleware, dN as isBlockedModelCall, dO as isHumanInputController, dP as requiresToolHost, dQ as resolveAgentDefaults, dR as resolveCapability, dS as sandboxDefaultsProvider, s as shouldRetry, w as withRetry } from './instance-
|
|
1
|
+
import { H as HumanInputController, p as HumanInputConfig, T as Tool, M as Message, S as SessionManager, E as EffectiveAgentConfig, q as TurnChangeTracker, r as InterventionController, b as MiddlewareRunner, P as PromptBuilder, 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-N5VhcNT2.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 Mailbox, bt as MailboxStore, bu as MailboxSubscriber, bv as MemberRegisteredEvent, bw as MemberRuntime, bx as MemberStats, by as MemberStatus, bz as MemberStatusChangedEvent, bA as MessageBase, bB as MessageEntry, bC as MessageError, bD as MessageInput, bE as MessageKind, bF as MessageListFilter, bG as MessagePayload, bH as MessageRole, bI as MessageSentEvent, bJ as MetadataEntry, d as ModelCallContext, bK as ModelCallInput, bL as ModelCallOutput, bM as ModelFamily, bN as NormalizedToolReplayPolicy, bO as NotificationPriority, bP as OnFollowUpQueued, bQ as OnInterventionApplied, bR as OtelMiddlewareConfig, bS as PRUNE_PROTECTED_TOOLS, bT as PendingIntervention, bU as PermissionForwardedEvent, bV as PermissionHandler, bW as PermissionRequestPayload, bX as PermissionResolvedEvent, bY as PermissionResponsePayload, bZ as PlanCreatedEvent, b_ as PlannedTask, b$ as PrepareModelStepOptions, c0 as PreparedAgentModelStep, c1 as PreparedExternalTask, c2 as Profile, c3 as PromptBuildContext, c4 as PromptConfig, c5 as PromptSection, c6 as QueueTaskInput, c7 as RemoteSkillEntry, c8 as RemoteSkillIndex, R as RetryConfig, j as RetryHandlerOptions, k as RetryState, c9 as RiskLevel, ca as RuleSource, cb as RunModelStepOptions, cc as RunToolBatchOptions, cd as RunToolBatchResult, ce as STORAGE_VERSION, cf as SerializedMessage, cg as Session, ch as SessionContext, ci as SessionEntry, cj as SessionHeader, ck as SessionInfo, cl as SessionStorage, cm as ShutdownRequestPayload, cn as ShutdownRequestedEvent, co as ShutdownResolvedEvent, cp as ShutdownResponsePayload, cq as SkillConfig, cr as SkillContent, cs as SkillDiscoveryError, ct as SkillDiscoveryResult, cu as SkillMetadata, cv as SkillRegistry, cw as SkillResource, cx as SkillResourceType, cy as SkillScope, cz as SkillSource, cA as SkillSourceType, cB as StepProcessingOptions, cC as StepProcessingOutput, cD as StepProcessingResult, cE as StreamChunk, cF as StreamInput, cG as StreamProviderConfig, cH as StreamProviderFactory, cI as StreamProviderInput, cJ as StreamProviderResult, cK as SynthesisCompleteEvent, cL as SynthesisResult, cM as SystemMessage, cN as TERMINAL_STATUSES, cO as TaskAbortedEvent, cP as TaskBoard, cQ as TaskBoardStore, cR as TaskCompletedEvent, cS as TaskCompletion, cT as TaskConflictError, cU as TaskCreateInput, cV as TaskCreatedEvent, cW as TaskDispatchMode, cX as TaskExecutor, cY as TaskExecutorInput, cZ as TaskFailedEvent, c_ as TaskListFilter, c$ as TaskResult, d0 as TaskStatus, d1 as TaskTransition, d2 as TaskTransitionEvent, d3 as TaskTransitionReason, d4 as TeamCoordinatorConfig, d5 as TeamEvent, d6 as TeamMember, d7 as TeamMessage, d8 as TeamNotificationEvent, d9 as TeamPlan, da as TeamSnapshot, db as TeamStartedEvent, dc as TeamStoppedEvent, dd as TeamTask, de as TelemetryConfig, df as TelemetryConfigResult, dg as TokenUsage, dh as ToolCallDecision, di as ToolCallOutput, dj as ToolCapabilities, dk as ToolContext, dl as ToolHostRequirements, dm as ToolMessage, dn as ToolMetadata, dp as ToolReplayMode, dq as ToolReplayPolicy, dr as ToolResult, ds as ToolSideEffectLevel, dt as TracingConfig, a as TurnTrackerContext, du as UndoResult, dv as UserMessage, dw as WorkerReportPayload, dx as accumulateUsage, dy as advanceAgentTurnState, dz as approvalMiddleware, dA as buildCoordinatorNotificationEvent, l as calculateDelay, dB as createAgent, dC as createAgentTurnEngine, dD as createAgentTurnState, dE as createApprovalHandler, dF as createHumanInputController, dG as createPromptBuilder, m as createRetryHandler, n as createRetryState, dH as createSkillRegistry, dI as createTurnTracker, dJ as emptySkillRegistry, dK as failAgentTurnState, dL as getRequiredToolHost, dM as isApprovalMiddleware, dN as isBlockedModelCall, dO as isHumanInputController, dP as requiresToolHost, dQ as resolveAgentDefaults, dR as resolveCapability, dS as sandboxDefaultsProvider, s as shouldRetry, w as withRetry } from './instance-N5VhcNT2.js';
|
|
3
3
|
import { LanguageModel, ModelMessage, Tool as Tool$1, TelemetrySettings } from 'ai';
|
|
4
4
|
import { T as ToolHost } from './types-C_LCeYNg.js';
|
|
5
5
|
export { D as DirEntry, E as ExecOptions, a as ExecResult, F as FileStat } from './types-C_LCeYNg.js';
|
|
@@ -14,7 +14,7 @@ export { C as CapabilitySource, D as DEFAULT_RESOLVER_OPTIONS, I as InputModalit
|
|
|
14
14
|
export { H as HttpTransportConfig, M as MCPConfig, a as MCPManager, b as MCPPromptInfo, c as MCPResourceInfo, d as MCPResourceTemplateInfo, e as MCPServerConfig, f as MCPServerStatus, R as RemoteTransportConfig, S as SseTransportConfig, g as StdioTransportConfig } from './types-DMjoFKKv.js';
|
|
15
15
|
export { ClientCredentialsOptions, ClientCredentialsProvider, 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-DnsiSiZj.js';
|
|
18
18
|
export { CacheTTL, PromptCacheConfig, createTelemetryConfig, otelMiddleware, promptCacheMiddleware } from './middleware/index.js';
|
|
19
19
|
export { DEFAULT_INSTRUCTION_PATTERNS, DEFAULT_MAX_DEPTH, DEFAULT_MAX_FILE_SIZE, PRIORITY_BASE, PRIORITY_CUSTOM, PRIORITY_ENVIRONMENT, PRIORITY_INSTRUCTIONS, PRIORITY_OVERRIDE, PRIORITY_SKILLS, detectModelFamily, discoverInstructions, formatEnvironment, formatInstructions, gatherEnvironment, getAvailableFamilies, getTemplate, loadGlobalInstructions, summarizeEnvironment } from './prompt/index.js';
|
|
20
20
|
export { Profiles, applyProfile, careful, code, createProfile, explore, filterTools, mergeProfiles, plan, quick, review, watch } from './profiles/index.js';
|
package/dist/index.js
CHANGED
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
getTemplate,
|
|
118
118
|
loadGlobalInstructions,
|
|
119
119
|
summarizeEnvironment
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-BGG2HVIR.js";
|
|
121
121
|
import "./chunk-VOUEJSW6.js";
|
|
122
122
|
import {
|
|
123
123
|
createSkillResourceTool,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
loadSkillContent,
|
|
139
139
|
loadSkillMetadata,
|
|
140
140
|
parseFrontmatter
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-I7EJGKUP.js";
|
|
142
142
|
import {
|
|
143
143
|
createCompositeDispatchTaskExecutor,
|
|
144
144
|
createDispatchExternalTaskControl,
|
|
@@ -205,6 +205,8 @@ import {
|
|
|
205
205
|
ContextOverflowError,
|
|
206
206
|
DEFAULT_CONTEXT_LIMITS,
|
|
207
207
|
DoomLoopError,
|
|
208
|
+
PRUNE_PROTECTED_TOOLS,
|
|
209
|
+
accumulateUsage,
|
|
208
210
|
advanceAgentTurnState,
|
|
209
211
|
applyAgentWorkflowCommitResult,
|
|
210
212
|
applyAgentWorkflowModelStepResult,
|
|
@@ -239,7 +241,7 @@ import {
|
|
|
239
241
|
runToolBatch,
|
|
240
242
|
snapshotAgentWorkflowMessage,
|
|
241
243
|
snapshotAgentWorkflowMessages
|
|
242
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-HNEI7JVE.js";
|
|
243
245
|
import {
|
|
244
246
|
DEFAULT_RETRY_CONFIG,
|
|
245
247
|
Inference,
|
|
@@ -254,10 +256,8 @@ import {
|
|
|
254
256
|
streamOnce,
|
|
255
257
|
streamStep,
|
|
256
258
|
withRetry
|
|
257
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-NWQUZWLT.js";
|
|
258
260
|
import {
|
|
259
|
-
PRUNE_PROTECTED_TOOLS,
|
|
260
|
-
accumulateUsage,
|
|
261
261
|
currentScope,
|
|
262
262
|
executeAgentToolCall,
|
|
263
263
|
extractFilePathsFromArgs,
|
|
@@ -266,7 +266,7 @@ import {
|
|
|
266
266
|
snapshotScope,
|
|
267
267
|
streamWithinScope,
|
|
268
268
|
withinScope
|
|
269
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-ZKEC7MFQ.js";
|
|
270
270
|
import {
|
|
271
271
|
LLMError,
|
|
272
272
|
getErrorCategory,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
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-CP24g3Le.js';
|
|
2
|
-
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-CP24g3Le.js';
|
|
3
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-N5VhcNT2.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-N5VhcNT2.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-DnsiSiZj.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
|
@@ -806,8 +806,20 @@ interface SkillResource {
|
|
|
806
806
|
relativePath: string;
|
|
807
807
|
/** Classified resource type */
|
|
808
808
|
type: SkillResourceType;
|
|
809
|
-
/**
|
|
810
|
-
|
|
809
|
+
/**
|
|
810
|
+
* Absolute path on disk.
|
|
811
|
+
*
|
|
812
|
+
* Undefined for pack-contributed resources that carry inline content.
|
|
813
|
+
* Either `absolutePath` or `content` must be set.
|
|
814
|
+
*/
|
|
815
|
+
absolutePath?: string;
|
|
816
|
+
/**
|
|
817
|
+
* Inline resource content.
|
|
818
|
+
*
|
|
819
|
+
* Set for pack-contributed resources that have no file on disk.
|
|
820
|
+
* Takes precedence over `absolutePath` when both are present.
|
|
821
|
+
*/
|
|
822
|
+
content?: string;
|
|
811
823
|
}
|
|
812
824
|
/**
|
|
813
825
|
* Lightweight skill metadata parsed from SKILL.md YAML frontmatter.
|
|
@@ -836,10 +848,20 @@ interface SkillMetadata {
|
|
|
836
848
|
scope: SkillScope;
|
|
837
849
|
/** How this skill was obtained */
|
|
838
850
|
source: SkillSource;
|
|
839
|
-
/**
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
851
|
+
/**
|
|
852
|
+
* Absolute path to the SKILL.md file.
|
|
853
|
+
*
|
|
854
|
+
* Undefined for pack-contributed skills that have no file on disk.
|
|
855
|
+
* When undefined, content must be pre-cached — use `SkillRegistry.register()`
|
|
856
|
+
* with a pre-built `SkillContent`.
|
|
857
|
+
*/
|
|
858
|
+
filePath?: string;
|
|
859
|
+
/**
|
|
860
|
+
* Directory containing the skill (parent of SKILL.md).
|
|
861
|
+
*
|
|
862
|
+
* Undefined for pack-contributed skills with no file on disk.
|
|
863
|
+
*/
|
|
864
|
+
baseDir?: string;
|
|
843
865
|
/** Optional tags for categorization */
|
|
844
866
|
tags?: string[];
|
|
845
867
|
/**
|
|
@@ -3999,6 +4021,22 @@ declare class SkillRegistry {
|
|
|
3999
4021
|
* @returns Formatted string for tool response
|
|
4000
4022
|
*/
|
|
4001
4023
|
formatContent(content: SkillContent): string;
|
|
4024
|
+
/**
|
|
4025
|
+
* Register an externally defined skill with optional pre-loaded content.
|
|
4026
|
+
*
|
|
4027
|
+
* Intended for capability packs that contribute skills without placing
|
|
4028
|
+
* files on disk — the pack's inline body is stored directly in the
|
|
4029
|
+
* content cache so the agent can load it without a file read.
|
|
4030
|
+
*
|
|
4031
|
+
* **Priority:** registered skills have lower priority than discovered
|
|
4032
|
+
* skills. If a skill with the same name was already found during
|
|
4033
|
+
* discovery, the discovered skill wins and this call is a no-op.
|
|
4034
|
+
*
|
|
4035
|
+
* @param metadata L1 metadata describing the skill.
|
|
4036
|
+
* @param content Pre-built content (L2). When provided, this is stored
|
|
4037
|
+
* in the cache so `loadContent()` never reads a file.
|
|
4038
|
+
*/
|
|
4039
|
+
register(metadata: SkillMetadata, content?: SkillContent): "registered" | "updated" | "skipped";
|
|
4002
4040
|
/** Clear the content cache, forcing reloads on next access. */
|
|
4003
4041
|
clearContentCache(): void;
|
|
4004
4042
|
/** Check if a skill's content has been loaded and cached. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bR as OtelMiddlewareConfig, L as AgentMiddleware, de as TelemetryConfig, df 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, bK as ModelCallInput, bL as ModelCallOutput, dh as ToolCallDecision, di as ToolCallOutput, dz as approvalMiddleware, dM as isApprovalMiddleware, dN as isBlockedModelCall } from '../instance-
|
|
1
|
+
import { bR as OtelMiddlewareConfig, L as AgentMiddleware, de as TelemetryConfig, df as TelemetryConfigResult } from '../instance-N5VhcNT2.js';
|
|
2
|
+
export { N as AgentModelHooks, ac as ApprovalAgentMiddleware, al as ApprovalMiddlewareConfig, as as BlockedModelCall, au as ChatLifecycleContext, b as MiddlewareRunner, d as ModelCallContext, bK as ModelCallInput, bL as ModelCallOutput, dh as ToolCallDecision, di as ToolCallOutput, dz as approvalMiddleware, dM as isApprovalMiddleware, dN as isBlockedModelCall } from '../instance-N5VhcNT2.js';
|
|
3
3
|
import '../types-C_LCeYNg.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../types-RSCv7nQ4.js';
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Tool, L as AgentMiddleware, c5 as PromptSection } from '../instance-
|
|
1
|
+
import { T as Tool, L as AgentMiddleware, c5 as PromptSection } from '../instance-N5VhcNT2.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 { bM as ModelFamily, b6 as EnvironmentInfo, bq as InstructionFile } from '../instance-
|
|
2
|
-
export { c3 as PromptBuildContext, P as PromptBuilder, c4 as PromptConfig, c5 as PromptSection, cq as SkillConfig, dG as createPromptBuilder } from '../instance-
|
|
1
|
+
import { bM as ModelFamily, b6 as EnvironmentInfo, bq as InstructionFile } from '../instance-N5VhcNT2.js';
|
|
2
|
+
export { c3 as PromptBuildContext, P as PromptBuilder, c4 as PromptConfig, c5 as PromptSection, cq as SkillConfig, dG as createPromptBuilder } from '../instance-N5VhcNT2.js';
|
|
3
3
|
import { LanguageModel } from 'ai';
|
|
4
4
|
import '../types-C_LCeYNg.js';
|
|
5
5
|
import '../types-RSCv7nQ4.js';
|
package/dist/prompt/index.js
CHANGED
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
getTemplate,
|
|
20
20
|
loadGlobalInstructions,
|
|
21
21
|
summarizeEnvironment
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-BGG2HVIR.js";
|
|
23
|
+
import "../chunk-I7EJGKUP.js";
|
|
24
24
|
import "../chunk-I6PKJ7XQ.js";
|
|
25
25
|
export {
|
|
26
26
|
DEFAULT_INSTRUCTION_PATTERNS,
|
package/dist/safety/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c9 as RiskLevel, ap as ApprovalRule, an as ApprovalRequest, aq as ApprovalRuleContext, ca 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, dE as createApprovalHandler } from '../instance-
|
|
1
|
+
import { c9 as RiskLevel, ap as ApprovalRule, an as ApprovalRequest, aq as ApprovalRuleContext, ca as RuleSource, ae as ApprovalCascadePolicy, am as ApprovalRememberScope, ah as ApprovalDecision, af as ApprovalConfig } from '../instance-N5VhcNT2.js';
|
|
2
|
+
export { ab as ApprovalAction, ad as ApprovalCascadeMode, ag as ApprovalCorrection, ai as ApprovalEvaluation, ak as ApprovalHandler, ao as ApprovalResolution, dE as createApprovalHandler } from '../instance-N5VhcNT2.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 { cy as SkillScope, cz as SkillSource, cu as SkillMetadata, cx as SkillResourceType, cw as SkillResource, cr as SkillContent, cq as SkillConfig, ct as SkillDiscoveryResult, cv as SkillRegistry, T as Tool } from '../instance-
|
|
2
|
-
export { c7 as RemoteSkillEntry, c8 as RemoteSkillIndex, cs as SkillDiscoveryError, cA as SkillSourceType, dH as createSkillRegistry, dJ as emptySkillRegistry } from '../instance-
|
|
1
|
+
import { cy as SkillScope, cz as SkillSource, cu as SkillMetadata, cx as SkillResourceType, cw as SkillResource, cr as SkillContent, cq as SkillConfig, ct as SkillDiscoveryResult, cv as SkillRegistry, T as Tool } from '../instance-N5VhcNT2.js';
|
|
2
|
+
export { c7 as RemoteSkillEntry, c8 as RemoteSkillIndex, cs as SkillDiscoveryError, cA as SkillSourceType, dH as createSkillRegistry, dJ as emptySkillRegistry } from '../instance-N5VhcNT2.js';
|
|
3
3
|
import '../types-C_LCeYNg.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../types-RSCv7nQ4.js';
|
package/dist/skill/index.js
CHANGED
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b8 as FileEntry, ci as SessionEntry, M as Message, bB as MessageEntry, bJ as MetadataEntry, cf as SerializedMessage, ck as SessionInfo, cl as SessionStorage, cj as SessionHeader, S as SessionManager } from '../instance-
|
|
2
|
-
export { at as BranchEntry, ay as CompactionEntry, aA as ConfigChangeEntry, aG as CreateSessionOptions, b5 as EntryBase, ce as STORAGE_VERSION, ch as SessionContext } from '../instance-
|
|
1
|
+
import { b8 as FileEntry, ci as SessionEntry, M as Message, bB as MessageEntry, bJ as MetadataEntry, cf as SerializedMessage, ck as SessionInfo, cl as SessionStorage, cj as SessionHeader, S as SessionManager } from '../instance-N5VhcNT2.js';
|
|
2
|
+
export { at as BranchEntry, ay as CompactionEntry, aA as ConfigChangeEntry, aG as CreateSessionOptions, b5 as EntryBase, ce as STORAGE_VERSION, ch as SessionContext } from '../instance-N5VhcNT2.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, c2 as Profile } from '../instance-
|
|
1
|
+
import { aT as DispatchRole, aS as DispatchResult, br as LocalDispatchRuntimeOptions, B as Agent, T as Tool, aU as DispatchRuntime, c2 as Profile } from '../instance-N5VhcNT2.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, cS as TaskCompletion, dg as TokenUsage, A as AgentEvent, dT as CoordinatorCtx, B as Agent, bw as MemberRuntime, cP as TaskBoard, bs as Mailbox, cW as TaskDispatchMode, bV as PermissionHandler, d4 as TeamCoordinatorConfig, cX as TaskExecutor, d5 as TeamEvent, d6 as TeamMember, c6 as QueueTaskInput, dd as TeamTask, d7 as TeamMessage, d9 as TeamPlan, cL as SynthesisResult, da as TeamSnapshot, c_ as TaskListFilter, bF as MessageListFilter, c1 as PreparedExternalTask, c$ as TaskResult, d1 as TaskTransition, bx as MemberStats, by as MemberStatus, L as AgentMiddleware, dh 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, bt as MailboxStore, bu as MailboxSubscriber, bv as MemberRegisteredEvent, bz as MemberStatusChangedEvent, bD as MessageInput, bE as MessageKind, bG as MessagePayload, bI as MessageSentEvent, bO as NotificationPriority, bU as PermissionForwardedEvent, bW as PermissionRequestPayload, bX as PermissionResolvedEvent, bY as PermissionResponsePayload, bZ as PlanCreatedEvent, b_ as PlannedTask, cm as ShutdownRequestPayload, cn as ShutdownRequestedEvent, co as ShutdownResolvedEvent, cp as ShutdownResponsePayload, cK as SynthesisCompleteEvent, cN as TERMINAL_STATUSES, cO as TaskAbortedEvent, cQ as TaskBoardStore, cR as TaskCompletedEvent, cT as TaskConflictError, cU as TaskCreateInput, cV as TaskCreatedEvent, cY as TaskExecutorInput, cZ as TaskFailedEvent, d0 as TaskStatus, d2 as TaskTransitionEvent, d3 as TaskTransitionReason, d8 as TeamNotificationEvent, db as TeamStartedEvent, dc as TeamStoppedEvent, dw as WorkerReportPayload, dA as buildCoordinatorNotificationEvent } from '../instance-
|
|
1
|
+
import { aB as CoordinatorNotification, cS as TaskCompletion, dg as TokenUsage, A as AgentEvent, dT as CoordinatorCtx, B as Agent, bw as MemberRuntime, cP as TaskBoard, bs as Mailbox, cW as TaskDispatchMode, bV as PermissionHandler, d4 as TeamCoordinatorConfig, cX as TaskExecutor, d5 as TeamEvent, d6 as TeamMember, c6 as QueueTaskInput, dd as TeamTask, d7 as TeamMessage, d9 as TeamPlan, cL as SynthesisResult, da as TeamSnapshot, c_ as TaskListFilter, bF as MessageListFilter, c1 as PreparedExternalTask, c$ as TaskResult, d1 as TaskTransition, bx as MemberStats, by as MemberStatus, L as AgentMiddleware, dh as ToolCallDecision } from '../instance-N5VhcNT2.js';
|
|
2
|
+
export { aC as CoordinatorNotificationKind, aD as CoordinatorRoundEvent, b7 as ExternalTaskControl, b9 as GuidancePayload, bl as IdleNotificationPayload, bm as InMemoryMailboxStore, bn as InMemoryTaskBoardStore, bt as MailboxStore, bu as MailboxSubscriber, bv as MemberRegisteredEvent, bz as MemberStatusChangedEvent, bD as MessageInput, bE as MessageKind, bG as MessagePayload, bI as MessageSentEvent, bO as NotificationPriority, bU as PermissionForwardedEvent, bW as PermissionRequestPayload, bX as PermissionResolvedEvent, bY as PermissionResponsePayload, bZ as PlanCreatedEvent, b_ as PlannedTask, cm as ShutdownRequestPayload, cn as ShutdownRequestedEvent, co as ShutdownResolvedEvent, cp as ShutdownResponsePayload, cK as SynthesisCompleteEvent, cN as TERMINAL_STATUSES, cO as TaskAbortedEvent, cQ as TaskBoardStore, cR as TaskCompletedEvent, cT as TaskConflictError, cU as TaskCreateInput, cV as TaskCreatedEvent, cY as TaskExecutorInput, cZ as TaskFailedEvent, d0 as TaskStatus, d2 as TaskTransitionEvent, d3 as TaskTransitionReason, d8 as TeamNotificationEvent, db as TeamStartedEvent, dc as TeamStoppedEvent, dw as WorkerReportPayload, dA as buildCoordinatorNotificationEvent } from '../instance-N5VhcNT2.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 { dq as ToolReplayPolicy, F as FileOperationMeta, bN as NormalizedToolReplayPolicy, T as Tool, H as HumanInputController, a as TurnTrackerContext, b as MiddlewareRunner, A as AgentEvent, dn as ToolMetadata, dj as ToolCapabilities } from '../instance-
|
|
2
|
-
export { az as CompatibleSchema, bo as InferSchemaOutput, bp as InputCheckResult, dL as getRequiredToolHost, dR as resolveCapability } from '../instance-
|
|
1
|
+
import { dq as ToolReplayPolicy, F as FileOperationMeta, bN as NormalizedToolReplayPolicy, T as Tool, H as HumanInputController, a as TurnTrackerContext, b as MiddlewareRunner, A as AgentEvent, dn as ToolMetadata, dj as ToolCapabilities } from '../instance-N5VhcNT2.js';
|
|
2
|
+
export { az as CompatibleSchema, bo as InferSchemaOutput, bp as InputCheckResult, dL as getRequiredToolHost, dR as resolveCapability } from '../instance-N5VhcNT2.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/dist/tool/index.js
CHANGED
package/package.json
CHANGED