@nuvin/nuvin-core 2.0.0-rc.8 → 2.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/VERSION +2 -2
- package/dist/index.d.ts +163 -21
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/VERSION
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -309,7 +309,12 @@ type MemoryQueryArgs = {
|
|
|
309
309
|
topK?: number;
|
|
310
310
|
minScore?: number;
|
|
311
311
|
};
|
|
312
|
-
type
|
|
312
|
+
type MemoryExtractArgs = {
|
|
313
|
+
scope?: 'project' | 'global';
|
|
314
|
+
maxMessages?: number;
|
|
315
|
+
minSimilarityScore?: number;
|
|
316
|
+
};
|
|
317
|
+
type ToolArguments = BashToolArgs | FileReadArgs | FileEditArgs | FileNewArgs | LsArgs | GlobArgs | GrepArgs | WebSearchArgs | WebFetchArgs | TodoWriteArgs | AssignTaskArgs | AskUserArgs | ComputerUseArgs | MemoryQueryArgs | MemoryExtractArgs;
|
|
313
318
|
/**
|
|
314
319
|
* Type guard to safely parse tool arguments
|
|
315
320
|
*/
|
|
@@ -330,6 +335,7 @@ declare function isGrepArgs(args: ToolArguments): args is GrepArgs;
|
|
|
330
335
|
declare function isLsArgs(args: ToolArguments): args is LsArgs;
|
|
331
336
|
declare function isComputerUseArgs(args: ToolArguments): args is ComputerUseArgs;
|
|
332
337
|
declare function isMemoryQueryArgs(args: ToolArguments): args is MemoryQueryArgs;
|
|
338
|
+
declare function isMemoryExtractArgs(args: ToolArguments): args is MemoryExtractArgs;
|
|
333
339
|
type ToolParameterMap = {
|
|
334
340
|
bash_tool: BashToolArgs;
|
|
335
341
|
file_read: FileReadArgs;
|
|
@@ -344,6 +350,7 @@ type ToolParameterMap = {
|
|
|
344
350
|
assign_task: AssignTaskArgs;
|
|
345
351
|
computer: ComputerUseArgs;
|
|
346
352
|
memory_query: MemoryQueryArgs;
|
|
353
|
+
memory_extract: MemoryExtractArgs;
|
|
347
354
|
};
|
|
348
355
|
type ToolName = keyof ToolParameterMap;
|
|
349
356
|
type TypedToolInvocation<T extends ToolName = ToolName> = {
|
|
@@ -1407,6 +1414,10 @@ declare class AgentOrchestrator {
|
|
|
1407
1414
|
* Read-only tools and todo management tools are auto-approved.
|
|
1408
1415
|
*/
|
|
1409
1416
|
private shouldBypassApproval;
|
|
1417
|
+
/**
|
|
1418
|
+
* Tools in this list always require explicit approval, even if global approval mode is off.
|
|
1419
|
+
*/
|
|
1420
|
+
private shouldAlwaysRequireApproval;
|
|
1410
1421
|
/**
|
|
1411
1422
|
* Process tool approval with per-tool granularity.
|
|
1412
1423
|
* - Bypass tools (requiresApproval=false) execute immediately
|
|
@@ -1875,7 +1886,6 @@ interface SkillProvider {
|
|
|
1875
1886
|
get(name: string): Promise<SkillInfo | null>;
|
|
1876
1887
|
getAll(): Promise<Record<string, SkillInfo>>;
|
|
1877
1888
|
buildToolDescription(): string;
|
|
1878
|
-
getPermission(name: string): 'allow' | 'ask' | 'deny';
|
|
1879
1889
|
}
|
|
1880
1890
|
declare class SkillTool implements FunctionTool<SkillParams, ToolExecutionContext, SkillResult> {
|
|
1881
1891
|
name: "skill";
|
|
@@ -2347,12 +2357,133 @@ interface MemoryQueryToolResult extends Record<string, unknown> {
|
|
|
2347
2357
|
hits: MemoryQueryToolHit[];
|
|
2348
2358
|
}
|
|
2349
2359
|
|
|
2360
|
+
type AssignSuccessResult$1 = {
|
|
2361
|
+
status: 'success';
|
|
2362
|
+
type: 'text';
|
|
2363
|
+
result: string;
|
|
2364
|
+
metadata: AssignTaskMetadata;
|
|
2365
|
+
};
|
|
2366
|
+
type AssignErrorResult = ExecResultError & {
|
|
2367
|
+
metadata?: {
|
|
2368
|
+
agentId?: string;
|
|
2369
|
+
errorReason?: ErrorReason;
|
|
2370
|
+
delegationDepth?: number;
|
|
2371
|
+
policyDenied?: boolean;
|
|
2372
|
+
agentNotFound?: boolean;
|
|
2373
|
+
};
|
|
2374
|
+
};
|
|
2375
|
+
type AssignResult = AssignSuccessResult$1 | AssignErrorResult;
|
|
2376
|
+
declare class AssignTool implements FunctionTool<AssignParams, ToolExecutionContext, AssignResult> {
|
|
2377
|
+
private readonly delegationService;
|
|
2378
|
+
name: string;
|
|
2379
|
+
parameters: {
|
|
2380
|
+
readonly type: "object";
|
|
2381
|
+
readonly properties: {
|
|
2382
|
+
readonly description: {
|
|
2383
|
+
readonly type: "string";
|
|
2384
|
+
readonly description: "A summary of the task to be performed by the delegated agent. Be specific about the desired outcome. From 5-10 words.";
|
|
2385
|
+
};
|
|
2386
|
+
readonly agent: {
|
|
2387
|
+
readonly type: "string";
|
|
2388
|
+
readonly description: "Agent ID from registry (e.g., \"code-reviewer\", \"researcher\")";
|
|
2389
|
+
};
|
|
2390
|
+
readonly task: {
|
|
2391
|
+
readonly type: "string";
|
|
2392
|
+
readonly description: "Detailed description of the task to be performed by the agent.";
|
|
2393
|
+
};
|
|
2394
|
+
readonly resume: {
|
|
2395
|
+
readonly type: "string";
|
|
2396
|
+
readonly description: "Session ID from a previous agent invocation to resume. The agent will continue with its full previous context preserved.";
|
|
2397
|
+
};
|
|
2398
|
+
};
|
|
2399
|
+
readonly required: readonly ["agent", "task", "description"];
|
|
2400
|
+
};
|
|
2401
|
+
constructor(delegationService: DelegationService);
|
|
2402
|
+
/**
|
|
2403
|
+
* Update the enabled agents configuration
|
|
2404
|
+
*/
|
|
2405
|
+
setEnabledAgents(enabledAgents: Record<string, boolean>): void;
|
|
2406
|
+
/**
|
|
2407
|
+
* Generate dynamic description based on current registry
|
|
2408
|
+
* Only shows enabled agents
|
|
2409
|
+
*/
|
|
2410
|
+
definition(): ToolDefinition['function'];
|
|
2411
|
+
private formatTools;
|
|
2412
|
+
/**
|
|
2413
|
+
* Delegate a task to a specialist agent for focused execution
|
|
2414
|
+
*
|
|
2415
|
+
* @param params - Agent ID and task description to delegate
|
|
2416
|
+
* @param context - Execution context including delegation depth tracking
|
|
2417
|
+
* @returns Delegation result with comprehensive metrics including cost breakdown
|
|
2418
|
+
*
|
|
2419
|
+
* @example
|
|
2420
|
+
* ```typescript
|
|
2421
|
+
* const result = await assignTool.execute({
|
|
2422
|
+
* agent: 'code-reviewer',
|
|
2423
|
+
* task: 'Review the changes in src/tools/*.ts',
|
|
2424
|
+
* description: 'Code review of tool implementations'
|
|
2425
|
+
* });
|
|
2426
|
+
* if (result.status === 'success' && result.type === 'text') {
|
|
2427
|
+
* console.log(result.result); // Agent's response
|
|
2428
|
+
* console.log(result.metadata.metrics?.totalCost); // Cost in USD
|
|
2429
|
+
* console.log(result.metadata.executionTimeMs); // Duration
|
|
2430
|
+
* console.log(result.metadata.toolCallsExecuted); // Number of tool calls
|
|
2431
|
+
* }
|
|
2432
|
+
* ```
|
|
2433
|
+
*/
|
|
2434
|
+
execute(params: AssignParams, context?: ToolExecutionContext): Promise<AssignResult>;
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
type AssignAliasTask = {
|
|
2438
|
+
description: string;
|
|
2439
|
+
task: string;
|
|
2440
|
+
resume?: string;
|
|
2441
|
+
};
|
|
2442
|
+
type AssignAliasHiddenAgentResolver<I> = string | ((input: I, context?: ToolExecutionContext) => string);
|
|
2443
|
+
type AssignAliasToolOptions<I extends Record<string, unknown>> = {
|
|
2444
|
+
name: string;
|
|
2445
|
+
description: string;
|
|
2446
|
+
parameters: ToolDefinition['function']['parameters'];
|
|
2447
|
+
getAssignTool: () => AssignTool | undefined;
|
|
2448
|
+
hiddenAgentName: AssignAliasHiddenAgentResolver<I>;
|
|
2449
|
+
buildAssignTask: (input: I, context?: ToolExecutionContext) => Promise<AssignAliasTask> | AssignAliasTask;
|
|
2450
|
+
validateInput?: (input: I) => ExecResultError | null;
|
|
2451
|
+
};
|
|
2452
|
+
declare class AssignAliasTool<I extends Record<string, unknown>> implements FunctionTool<I, ToolExecutionContext, AssignResult> {
|
|
2453
|
+
private readonly options;
|
|
2454
|
+
readonly name: string;
|
|
2455
|
+
readonly parameters: ToolDefinition['function']['parameters'];
|
|
2456
|
+
constructor(options: AssignAliasToolOptions<I>);
|
|
2457
|
+
definition(): ToolDefinition['function'];
|
|
2458
|
+
execute(input: I, context?: ToolExecutionContext): Promise<AssignResult>;
|
|
2459
|
+
protected toError(message: string, errorReason: ErrorReason): ExecResultError;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
type MemoryExtractToolInput = {
|
|
2463
|
+
scope?: 'project' | 'global';
|
|
2464
|
+
maxMessages?: number;
|
|
2465
|
+
minSimilarityScore?: number;
|
|
2466
|
+
};
|
|
2467
|
+
type MemoryExtractToolResult = AssignResult;
|
|
2468
|
+
type MemoryExtractionTaskBuilder = (input: MemoryExtractToolInput, context?: ToolExecutionContext) => Promise<{
|
|
2469
|
+
task: string;
|
|
2470
|
+
description?: string;
|
|
2471
|
+
}>;
|
|
2472
|
+
declare class MemoryExtractionTool extends AssignAliasTool<MemoryExtractToolInput> {
|
|
2473
|
+
constructor(getAssignTool: () => AssignTool | undefined, buildTask: MemoryExtractionTaskBuilder, hiddenAgentName: string);
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2350
2476
|
type MemoryToolExecutionContext = {
|
|
2351
2477
|
conversationId?: string;
|
|
2352
2478
|
messageId?: string;
|
|
2353
2479
|
toolCallId?: string;
|
|
2354
2480
|
agentId?: string;
|
|
2355
|
-
|
|
2481
|
+
eventPort?: unknown;
|
|
2482
|
+
signal?: AbortSignal;
|
|
2483
|
+
delegationDepth?: number;
|
|
2484
|
+
workspaceRoot?: string;
|
|
2485
|
+
cwd?: string;
|
|
2486
|
+
} & Record<string, unknown>;
|
|
2356
2487
|
declare class ToolRegistry implements ToolPort, AgentAwareToolPort, OrchestratorAwareToolPort {
|
|
2357
2488
|
private tools;
|
|
2358
2489
|
private toolsMemory?;
|
|
@@ -2364,6 +2495,8 @@ declare class ToolRegistry implements ToolPort, AgentAwareToolPort, Orchestrator
|
|
|
2364
2495
|
private enabledAgentsConfig;
|
|
2365
2496
|
private memoryHandler;
|
|
2366
2497
|
private memoryQueryHandler;
|
|
2498
|
+
private memoryExtractionTaskBuilder;
|
|
2499
|
+
private memoryExtractionAgentName;
|
|
2367
2500
|
private orchestratorConfig?;
|
|
2368
2501
|
private orchestratorTools?;
|
|
2369
2502
|
private orchestratorLLMFactory?;
|
|
@@ -2388,6 +2521,10 @@ declare class ToolRegistry implements ToolPort, AgentAwareToolPort, Orchestrator
|
|
|
2388
2521
|
* Called after the MemoryService is available (in OrchestratorManager.init).
|
|
2389
2522
|
*/
|
|
2390
2523
|
setMemoryQueryHandler(handler: (input: MemoryQueryToolInput, context?: MemoryToolExecutionContext) => Promise<MemoryQueryToolResult>): void;
|
|
2524
|
+
setMemoryExtractionTaskBuilder(builder: MemoryExtractionTaskBuilder | null, options?: {
|
|
2525
|
+
hiddenAgentName?: string;
|
|
2526
|
+
}): void;
|
|
2527
|
+
private updateMemoryExtractionToolRegistration;
|
|
2391
2528
|
private persistToolNames;
|
|
2392
2529
|
listRegisteredTools(): Promise<string[]>;
|
|
2393
2530
|
getToolDefinitions(enabledTools: string[]): ToolDefinition[];
|
|
@@ -2797,6 +2934,11 @@ type ParseResult<T = unknown> = {
|
|
|
2797
2934
|
success: false;
|
|
2798
2935
|
error: string;
|
|
2799
2936
|
};
|
|
2937
|
+
/**
|
|
2938
|
+
* Safely parse tool call arguments with sanitization.
|
|
2939
|
+
* Returns empty object on malformed input instead of throwing.
|
|
2940
|
+
*/
|
|
2941
|
+
declare function safeParseToolArguments(args: string | undefined): Record<string, unknown>;
|
|
2800
2942
|
declare function parseJSON(jsonString: string): ParseResult<Record<string, unknown>>;
|
|
2801
2943
|
|
|
2802
2944
|
type ValidationResult<T = unknown> = {
|
|
@@ -2929,6 +3071,14 @@ declare const memoryQuerySchema: z.ZodObject<{
|
|
|
2929
3071
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
2930
3072
|
minScore: z.ZodOptional<z.ZodNumber>;
|
|
2931
3073
|
}, z.core.$strip>;
|
|
3074
|
+
declare const memoryExtractSchema: z.ZodObject<{
|
|
3075
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
3076
|
+
global: "global";
|
|
3077
|
+
project: "project";
|
|
3078
|
+
}>>;
|
|
3079
|
+
maxMessages: z.ZodOptional<z.ZodNumber>;
|
|
3080
|
+
minSimilarityScore: z.ZodOptional<z.ZodNumber>;
|
|
3081
|
+
}, z.core.$strip>;
|
|
2932
3082
|
declare const toolSchemas: {
|
|
2933
3083
|
readonly bash_tool: z.ZodObject<{
|
|
2934
3084
|
cmd: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
@@ -3052,6 +3202,14 @@ declare const toolSchemas: {
|
|
|
3052
3202
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
3053
3203
|
minScore: z.ZodOptional<z.ZodNumber>;
|
|
3054
3204
|
}, z.core.$strip>;
|
|
3205
|
+
readonly memory_extract: z.ZodObject<{
|
|
3206
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
3207
|
+
global: "global";
|
|
3208
|
+
project: "project";
|
|
3209
|
+
}>>;
|
|
3210
|
+
maxMessages: z.ZodOptional<z.ZodNumber>;
|
|
3211
|
+
minSimilarityScore: z.ZodOptional<z.ZodNumber>;
|
|
3212
|
+
}, z.core.$strip>;
|
|
3055
3213
|
};
|
|
3056
3214
|
declare function validateToolParams<T extends ToolName>(toolName: T, params: Record<string, unknown>): ValidationResult<ToolParameterMap[T]>;
|
|
3057
3215
|
declare const toolValidators: {
|
|
@@ -3068,6 +3226,7 @@ declare const toolValidators: {
|
|
|
3068
3226
|
grep_tool: (params: Record<string, unknown>) => ValidationResult<GrepArgs>;
|
|
3069
3227
|
computer: (params: Record<string, unknown>) => ValidationResult<ComputerUseArgs>;
|
|
3070
3228
|
memory_query: (params: Record<string, unknown>) => ValidationResult<MemoryQueryArgs>;
|
|
3229
|
+
memory_extract: (params: Record<string, unknown>) => ValidationResult<MemoryExtractArgs>;
|
|
3071
3230
|
};
|
|
3072
3231
|
|
|
3073
3232
|
type ValidationError = {
|
|
@@ -3265,23 +3424,6 @@ type TodoWriteSuccessResult$1 = {
|
|
|
3265
3424
|
};
|
|
3266
3425
|
type TodoWriteResult = TodoWriteSuccessResult$1 | ExecResultError;
|
|
3267
3426
|
|
|
3268
|
-
type AssignSuccessResult$1 = {
|
|
3269
|
-
status: 'success';
|
|
3270
|
-
type: 'text';
|
|
3271
|
-
result: string;
|
|
3272
|
-
metadata: AssignTaskMetadata;
|
|
3273
|
-
};
|
|
3274
|
-
type AssignErrorResult = ExecResultError & {
|
|
3275
|
-
metadata?: {
|
|
3276
|
-
agentId?: string;
|
|
3277
|
-
errorReason?: ErrorReason;
|
|
3278
|
-
delegationDepth?: number;
|
|
3279
|
-
policyDenied?: boolean;
|
|
3280
|
-
agentNotFound?: boolean;
|
|
3281
|
-
};
|
|
3282
|
-
};
|
|
3283
|
-
type AssignResult = AssignSuccessResult$1 | AssignErrorResult;
|
|
3284
|
-
|
|
3285
3427
|
type AskUserSuccessResult = {
|
|
3286
3428
|
status: 'success';
|
|
3287
3429
|
type: 'text';
|
|
@@ -4124,4 +4266,4 @@ declare function resolveBackspaces(s: string): string;
|
|
|
4124
4266
|
declare function stripAnsiAndControls(s: string): string;
|
|
4125
4267
|
declare function canonicalizeTerminalPaste(raw: string): string;
|
|
4126
4268
|
|
|
4127
|
-
export { AGENT_CREATOR_SYSTEM_PROMPT, type AXElement, type AXPressResult, type AXSetValueResult, type AXSnapshotResult, AbortError, type AgentAwareToolPort, type AgentCatalog, type AgentConfig, type AgentEvent, AgentEventTypes, AgentFilePersistence, AgentManager, AgentManagerCommandRunner, AgentOrchestrator, AgentRegistry, type AgentSession, type AgentStateManager, type AgentTemplate, type AnnotateResult, AnthropicAISDKLLM, type AskUserArgs, type AskUserMetadata, AskUserTool, type AssignErrorResult, type AssignParams, type AssignResult, type AssignSuccessResult$1 as AssignSuccessResult, type AssignTaskArgs, type AssignTaskMetadata, type AuthFlowResult, type AuthServerMetadata, type BaseLLMOptions, type BashErrorResult, type BashParams, type BashResult, type BashSuccessResult$1 as BashSuccessResult, BashTool, type BashToolArgs, type BashToolMetadata, CommandFilePersistence, CommandHookExecutor, type CommandMetadata, type CommandSource, type CompleteAgent, type CompleteCustomCommand, CompositeHookPort, CompositeToolPort, type ComputerAction, type ComputerBackend, type ComputerUseArgs, type ComputerUseMetadata, type ComputerUseParams, type ComputerUseResult, ComputerUseTool, type Conversation, ConversationContext, type ConversationMetadata, type ConversationSnapshot, ConversationStore, CoreMCPClient, type CustomCommandFrontmatter, type CustomCommandTemplate, DEFAULT_RETRY_CONFIG, DefaultAgentStateManager, DefaultDelegationService, DefaultSpecialistAgentFactory, type DelegationMetadata, type DelegationService, type DelegationServiceConfig, DelegationServiceFactory, type DirEntry, type ErrorMetadata, ErrorReason, type ExecResult, type ExecResultError, type ExecResultSuccess, type FileEditArgs, type FileEditMetadata, type FileEditResult, type FileEditSuccessResult$1 as FileEditSuccessResult, type FileMetadata, type FileNewArgs, type FileNewMetadata, type FileNewParams, type FileNewResult, type FileNewSuccessResult$1 as FileNewSuccessResult, type FileReadArgs, type FileReadErrorResult, type FileReadMetadata, type FileReadParams, type FileReadResult, type FileReadSuccessResult$1 as FileReadSuccessResult, type FolderTreeOptions, type FunctionTool, GithubLLM, type GlobArgs, type GlobParams, type GlobResult, type GlobSuccessResult$1 as GlobSuccessResult, type GlobToolMetadata, type GrepArgs, type GrepParams, type GrepResult, type GrepSuccessResult$1 as GrepSuccessResult, type GrepToolMetadata, type HookContext, HookDecision, type HookDecisionType, type HookDefinition, type HookEventConfig, type HookEventType, HookEventTypes, type HookPort, HookRegistry, type HookResult, type HooksConfig, InMemoryMemory, InMemoryMetadata, InMemoryMetricsPort, JsonFileMemoryPersistence, JsonFileMemoryStore, type LLMConfig, LLMError, type LLMFactory, type LLMOptions, type LLMPort, LLMResolver, type LineRangeMetadata, type LsArgs, type LsMetadata, type LsParams, type LsResult, type LsSuccessResult$1 as LsSuccessResult, type LspService, LspTool, type MCPAuthOptions, type MCPCallResult, type MCPConfig, type MCPHttpOptions, MCPOAuthClient, type MCPOAuthConfig, type MCPOptions, type MCPServerConfig, type MCPStdioOptions, type MCPToolCall, MCPToolPort, type MCPToolSchema, type MemoryCandidate, type MemoryEntry, type MemoryEntryInput, MemoryExtractor, type MemoryPort, MemoryPortMetadataAdapter, type MemoryQueryArgs, type MemoryQueryToolHit, type MemoryQueryToolInput, type MemoryQueryToolResult, type MemorySaveToolInput, type MemoryScope, type MemorySearchOptions, type MemorySource, type MemoryStatement, type MemoryStatus, type MemoryStorePort, type MemoryType, type Message, type MessageContent, type MessageContentPart, type MetadataPort, type MetricsChangeHandler, type MetricsPort, type MetricsSnapshot, type ModelInfo, type ModelLimits, NoopMetricsPort, NoopReminders, type OrchestratorAwareToolPort, type ParseResult, PersistedMemory, PersistingConsoleEventPort, type ProtectedResourceMetadata, type RetryConfig, RetryTransport, RuntimeEnv, type SendMessageOptions, SimpleContextBuilder, SimpleCost, SimpleId, type SkillErrorResult, type SkillMetadata, type SkillParams, type SkillProvider, type SkillResult, type SkillSuccessResult, SkillTool, type SkillInfo as SkillToolInfo, type SpecialistAgentConfig, type SpecialistAgentResult, type StoredTokens, type SubAgentState, type SubAgentToolCall, SystemClock, type TaskOutputMetadata, type TaskOutputParams, type TaskOutputResult, type TaskOutputSuccessResult, type TodoWriteArgs, type TodoWriteMetadata, type TodoWriteResult, type TodoWriteSuccessResult$1 as TodoWriteSuccessResult, type TokenStorage, type ToolApprovalDecision, type ToolArguments, type ToolCall, type ToolCallConversionResult, type ToolCallValidation, type ToolErrorMetadata, type ToolExecutionContext, type ToolExecutionResult, type ToolMetadataMap, type ToolName, type ToolParameterMap, type ToolPort, ToolRegistry, type ToolValidator, type TypedToolInvocation, type UsageData, type UserAttachment, type UserMessagePayload, type ValidationError, type ValidationResult, type WebFetchArgs, type WebFetchMetadata, type WebFetchParams, type WebFetchResult, type WebFetchSuccessResult$1 as WebFetchSuccessResult, type WebSearchArgs, type WebSearchMetadata, type WebSearchParams, type WebSearchResult, type WebSearchSuccessResult$1 as WebSearchSuccessResult, type WebSearchToolResult, assignTaskSchema, bashToolSchema, buildAISDKToolResultOutput, buildAgentCreationPrompt, buildInjectedSystem, canonicalizeTerminalPaste, computerToolSchema, convertToolCall, convertToolCalls, convertToolCallsWithErrorHandling, createEmptySnapshot, createLLM, deduplicateModels, err, fileEditSchema, fileNewSchema, fileReadSchema, formatMemoriesForPrompt, generateFolderTree, getAvailableProviders, getFallbackLimits, getProviderAuthMethods, getProviderDefaultModels, getProviderLabel, globToolSchema, grepToolSchema, isAssignResult, isAssignSuccess, isAssignTaskArgs, isBashResult, isBashSuccess, isBashToolArgs, isComputerResult, isComputerSuccess, isComputerUseArgs, isError, isFileEditArgs, isFileEditResult, isFileEditSuccess, isFileNewArgs, isFileNewResult, isFileNewSuccess, isFileReadArgs, isFileReadResult, isFileReadSuccess, isGlobArgs, isGlobResult, isGlobSuccess, isGrepArgs, isGrepResult, isGrepSuccess, isInsufficientScopeError, isJsonResult, isLsArgs, isLsToolResult, isLsToolSuccess, isMemoryQueryArgs, isRetryableError, isRetryableStatusCode, isSuccess, isSuccessJson, isSuccessText, isTextResult, isTodoWriteArgs, isTodoWriteResult, isTodoWriteSuccess, isUnauthorizedError, isValidCommandId, isWebFetchArgs, isWebFetchResult, isWebFetchSuccess, isWebSearchArgs, isWebSearchResult, isWebSearchSuccess, loadHooksFromFrontmatter, lsToolSchema, memoryQuerySchema, memoryQueryToolDefinition, memorySaveToolDefinition, mergeAgentConfig, normalizeModelInfo, normalizeModelLimits, normalizeNewlines, okJson, okText, parseJSON, parseSubAgentToolCallArguments, parseToolArguments, parseWWWAuthenticate, rankMemories, renderTemplate, resolveBackspaces, resolveCarriageReturns, sanitizeCommandId, stripAnsiAndControls, supportsGetModels, todoWriteSchema, toolSchemas, toolValidators, validateToolParams, webFetchSchema, webSearchSchema };
|
|
4269
|
+
export { AGENT_CREATOR_SYSTEM_PROMPT, type AXElement, type AXPressResult, type AXSetValueResult, type AXSnapshotResult, AbortError, type AgentAwareToolPort, type AgentCatalog, type AgentConfig, type AgentEvent, AgentEventTypes, AgentFilePersistence, AgentManager, AgentManagerCommandRunner, AgentOrchestrator, AgentRegistry, type AgentSession, type AgentStateManager, type AgentTemplate, type AnnotateResult, AnthropicAISDKLLM, type AskUserArgs, type AskUserMetadata, AskUserTool, type AssignAliasHiddenAgentResolver, type AssignAliasTask, AssignAliasTool, type AssignAliasToolOptions, type AssignErrorResult, type AssignParams, type AssignResult, type AssignSuccessResult$1 as AssignSuccessResult, type AssignTaskArgs, type AssignTaskMetadata, type AuthFlowResult, type AuthServerMetadata, type BaseLLMOptions, type BashErrorResult, type BashParams, type BashResult, type BashSuccessResult$1 as BashSuccessResult, BashTool, type BashToolArgs, type BashToolMetadata, CommandFilePersistence, CommandHookExecutor, type CommandMetadata, type CommandSource, type CompleteAgent, type CompleteCustomCommand, CompositeHookPort, CompositeToolPort, type ComputerAction, type ComputerBackend, type ComputerUseArgs, type ComputerUseMetadata, type ComputerUseParams, type ComputerUseResult, ComputerUseTool, type Conversation, ConversationContext, type ConversationMetadata, type ConversationSnapshot, ConversationStore, CoreMCPClient, type CustomCommandFrontmatter, type CustomCommandTemplate, DEFAULT_RETRY_CONFIG, DefaultAgentStateManager, DefaultDelegationService, DefaultSpecialistAgentFactory, type DelegationMetadata, type DelegationService, type DelegationServiceConfig, DelegationServiceFactory, type DirEntry, type ErrorMetadata, ErrorReason, type ExecResult, type ExecResultError, type ExecResultSuccess, type FileEditArgs, type FileEditMetadata, type FileEditResult, type FileEditSuccessResult$1 as FileEditSuccessResult, type FileMetadata, type FileNewArgs, type FileNewMetadata, type FileNewParams, type FileNewResult, type FileNewSuccessResult$1 as FileNewSuccessResult, type FileReadArgs, type FileReadErrorResult, type FileReadMetadata, type FileReadParams, type FileReadResult, type FileReadSuccessResult$1 as FileReadSuccessResult, type FolderTreeOptions, type FunctionTool, GithubLLM, type GlobArgs, type GlobParams, type GlobResult, type GlobSuccessResult$1 as GlobSuccessResult, type GlobToolMetadata, type GrepArgs, type GrepParams, type GrepResult, type GrepSuccessResult$1 as GrepSuccessResult, type GrepToolMetadata, type HookContext, HookDecision, type HookDecisionType, type HookDefinition, type HookEventConfig, type HookEventType, HookEventTypes, type HookPort, HookRegistry, type HookResult, type HooksConfig, InMemoryMemory, InMemoryMetadata, InMemoryMetricsPort, JsonFileMemoryPersistence, JsonFileMemoryStore, type LLMConfig, LLMError, type LLMFactory, type LLMOptions, type LLMPort, LLMResolver, type LineRangeMetadata, type LsArgs, type LsMetadata, type LsParams, type LsResult, type LsSuccessResult$1 as LsSuccessResult, type LspService, LspTool, type MCPAuthOptions, type MCPCallResult, type MCPConfig, type MCPHttpOptions, MCPOAuthClient, type MCPOAuthConfig, type MCPOptions, type MCPServerConfig, type MCPStdioOptions, type MCPToolCall, MCPToolPort, type MCPToolSchema, type MemoryCandidate, type MemoryEntry, type MemoryEntryInput, type MemoryExtractArgs, type MemoryExtractToolInput, type MemoryExtractToolResult, type MemoryExtractionTaskBuilder, MemoryExtractionTool, MemoryExtractor, type MemoryPort, MemoryPortMetadataAdapter, type MemoryQueryArgs, type MemoryQueryToolHit, type MemoryQueryToolInput, type MemoryQueryToolResult, type MemorySaveToolInput, type MemoryScope, type MemorySearchOptions, type MemorySource, type MemoryStatement, type MemoryStatus, type MemoryStorePort, type MemoryType, type Message, type MessageContent, type MessageContentPart, type MetadataPort, type MetricsChangeHandler, type MetricsPort, type MetricsSnapshot, type ModelInfo, type ModelLimits, NoopMetricsPort, NoopReminders, type OrchestratorAwareToolPort, type ParseResult, PersistedMemory, PersistingConsoleEventPort, type ProtectedResourceMetadata, type RetryConfig, RetryTransport, RuntimeEnv, type SendMessageOptions, SimpleContextBuilder, SimpleCost, SimpleId, type SkillErrorResult, type SkillMetadata, type SkillParams, type SkillProvider, type SkillResult, type SkillSuccessResult, SkillTool, type SkillInfo as SkillToolInfo, type SpecialistAgentConfig, type SpecialistAgentResult, type StoredTokens, type SubAgentState, type SubAgentToolCall, SystemClock, type TaskOutputMetadata, type TaskOutputParams, type TaskOutputResult, type TaskOutputSuccessResult, type TodoWriteArgs, type TodoWriteMetadata, type TodoWriteResult, type TodoWriteSuccessResult$1 as TodoWriteSuccessResult, type TokenStorage, type ToolApprovalDecision, type ToolArguments, type ToolCall, type ToolCallConversionResult, type ToolCallValidation, type ToolErrorMetadata, type ToolExecutionContext, type ToolExecutionResult, type ToolMetadataMap, type ToolName, type ToolParameterMap, type ToolPort, ToolRegistry, type ToolValidator, type TypedToolInvocation, type UsageData, type UserAttachment, type UserMessagePayload, type ValidationError, type ValidationResult, type WebFetchArgs, type WebFetchMetadata, type WebFetchParams, type WebFetchResult, type WebFetchSuccessResult$1 as WebFetchSuccessResult, type WebSearchArgs, type WebSearchMetadata, type WebSearchParams, type WebSearchResult, type WebSearchSuccessResult$1 as WebSearchSuccessResult, type WebSearchToolResult, assignTaskSchema, bashToolSchema, buildAISDKToolResultOutput, buildAgentCreationPrompt, buildInjectedSystem, canonicalizeTerminalPaste, computerToolSchema, convertToolCall, convertToolCalls, convertToolCallsWithErrorHandling, createEmptySnapshot, createLLM, deduplicateModels, err, fileEditSchema, fileNewSchema, fileReadSchema, formatMemoriesForPrompt, generateFolderTree, getAvailableProviders, getFallbackLimits, getProviderAuthMethods, getProviderDefaultModels, getProviderLabel, globToolSchema, grepToolSchema, isAssignResult, isAssignSuccess, isAssignTaskArgs, isBashResult, isBashSuccess, isBashToolArgs, isComputerResult, isComputerSuccess, isComputerUseArgs, isError, isFileEditArgs, isFileEditResult, isFileEditSuccess, isFileNewArgs, isFileNewResult, isFileNewSuccess, isFileReadArgs, isFileReadResult, isFileReadSuccess, isGlobArgs, isGlobResult, isGlobSuccess, isGrepArgs, isGrepResult, isGrepSuccess, isInsufficientScopeError, isJsonResult, isLsArgs, isLsToolResult, isLsToolSuccess, isMemoryExtractArgs, isMemoryQueryArgs, isRetryableError, isRetryableStatusCode, isSuccess, isSuccessJson, isSuccessText, isTextResult, isTodoWriteArgs, isTodoWriteResult, isTodoWriteSuccess, isUnauthorizedError, isValidCommandId, isWebFetchArgs, isWebFetchResult, isWebFetchSuccess, isWebSearchArgs, isWebSearchResult, isWebSearchSuccess, loadHooksFromFrontmatter, lsToolSchema, memoryExtractSchema, memoryQuerySchema, memoryQueryToolDefinition, memorySaveToolDefinition, mergeAgentConfig, normalizeModelInfo, normalizeModelLimits, normalizeNewlines, okJson, okText, parseJSON, parseSubAgentToolCallArguments, parseToolArguments, parseWWWAuthenticate, rankMemories, renderTemplate, resolveBackspaces, resolveCarriageReturns, safeParseToolArguments, sanitizeCommandId, stripAnsiAndControls, supportsGetModels, todoWriteSchema, toolSchemas, toolValidators, validateToolParams, webFetchSchema, webSearchSchema };
|