toolpack-sdk 3.1.0 → 3.2.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/README.md +40 -25
- package/dist/index.cjs +124 -138
- package/dist/index.d.cts +41 -22
- package/dist/index.d.ts +41 -22
- package/dist/index.js +131 -145
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -497,12 +497,6 @@ interface ModeConfig {
|
|
|
497
497
|
* Shorthand for "no tool calls at all".
|
|
498
498
|
*/
|
|
499
499
|
blockAllTools: boolean;
|
|
500
|
-
/**
|
|
501
|
-
* Whether to auto-inject relevant skill content into the system prompt
|
|
502
|
-
* via BM25 matching of the user's message (skill interceptor).
|
|
503
|
-
* Default: false — opt-in only. Set to true to enable auto-injection.
|
|
504
|
-
*/
|
|
505
|
-
skillInterceptor?: boolean;
|
|
506
500
|
/**
|
|
507
501
|
* Root directory for rule files.
|
|
508
502
|
* Auto-discovers:
|
|
@@ -579,7 +573,29 @@ interface ImageUrlPart {
|
|
|
579
573
|
};
|
|
580
574
|
}
|
|
581
575
|
type ImagePart = ImageDataPart | ImageFilePart | ImageUrlPart;
|
|
582
|
-
|
|
576
|
+
interface FilePart {
|
|
577
|
+
type: 'file';
|
|
578
|
+
file: {
|
|
579
|
+
/** Public or pre-signed bucket URL */
|
|
580
|
+
url: string;
|
|
581
|
+
/** MIME type, e.g. 'image/jpeg', 'application/pdf' */
|
|
582
|
+
mimeType: string;
|
|
583
|
+
/** Original filename, for display only */
|
|
584
|
+
name?: string;
|
|
585
|
+
/** File size in bytes — used for client-side validation */
|
|
586
|
+
size?: number;
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
declare const FILE_LIMITS: {
|
|
590
|
+
readonly image: {
|
|
591
|
+
readonly maxBytes: number;
|
|
592
|
+
};
|
|
593
|
+
readonly document: {
|
|
594
|
+
readonly maxBytes: number;
|
|
595
|
+
readonly maxPages: 20;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
type MessageContent = string | (TextPart | ImagePart | FilePart)[] | null;
|
|
583
599
|
type MediaUploadStrategy = 'inline' | 'upload' | 'auto';
|
|
584
600
|
interface MediaOptions {
|
|
585
601
|
/** How to handle image payloads */
|
|
@@ -2549,12 +2565,6 @@ interface Skill {
|
|
|
2549
2565
|
examples?: string;
|
|
2550
2566
|
lastModified: number;
|
|
2551
2567
|
}
|
|
2552
|
-
interface SkillInterceptorOptions {
|
|
2553
|
-
dir?: string;
|
|
2554
|
-
maxSkills?: number;
|
|
2555
|
-
minScore?: number;
|
|
2556
|
-
onValidationError?: SkillValidationMode;
|
|
2557
|
-
}
|
|
2558
2568
|
interface SkillToolsOptions {
|
|
2559
2569
|
/** Skills directory. Default: '.toolpack/skills' */
|
|
2560
2570
|
dir?: string;
|
|
@@ -2675,11 +2685,6 @@ declare function createMode(config: {
|
|
|
2675
2685
|
enabled: boolean;
|
|
2676
2686
|
};
|
|
2677
2687
|
};
|
|
2678
|
-
/**
|
|
2679
|
-
* Enable auto-injection of BM25-matched skill content into the system prompt.
|
|
2680
|
-
* Default: false — opt-in only.
|
|
2681
|
-
*/
|
|
2682
|
-
skillInterceptor?: boolean;
|
|
2683
2688
|
/**
|
|
2684
2689
|
* Root directory for rule files for this mode.
|
|
2685
2690
|
* Auto-discovers __global__/ and <mode-name>/ subfolders within it.
|
|
@@ -3275,8 +3280,18 @@ declare class Toolpack extends EventEmitter {
|
|
|
3275
3280
|
customProviderNames: Set<string>;
|
|
3276
3281
|
private mcpToolProject;
|
|
3277
3282
|
private _interceptors;
|
|
3283
|
+
private _instanceRequestTools;
|
|
3278
3284
|
private constructor();
|
|
3279
|
-
private
|
|
3285
|
+
private _buildKnowledgeRequestTools;
|
|
3286
|
+
/**
|
|
3287
|
+
* Register tools that bypass mode filtering and are always available to the model.
|
|
3288
|
+
* Use this for tools that must be accessible regardless of allowedToolCategories —
|
|
3289
|
+
* the same mechanism used by knowledge, skill, and scheduler tools internally.
|
|
3290
|
+
*
|
|
3291
|
+
* Prefer `loadRequestToolProject` when you have a ToolProject; call this directly
|
|
3292
|
+
* when you have a plain RequestToolDefinition array.
|
|
3293
|
+
*/
|
|
3294
|
+
registerRequestTools(tools: RequestToolDefinition[]): void;
|
|
3280
3295
|
private prepareRequest;
|
|
3281
3296
|
/**
|
|
3282
3297
|
* Initialize the Toolpack SDK.
|
|
@@ -3338,6 +3353,12 @@ declare class Toolpack extends EventEmitter {
|
|
|
3338
3353
|
* Load multiple tool projects at runtime, rebuilding the BM25 index once after all are registered.
|
|
3339
3354
|
*/
|
|
3340
3355
|
loadToolProjects(projects: ToolProject[]): Promise<void>;
|
|
3356
|
+
/**
|
|
3357
|
+
* Register a tool project's tools as request tools, bypassing mode filtering entirely.
|
|
3358
|
+
* Use this instead of loadToolProject when the tools must always be available regardless
|
|
3359
|
+
* of allowedToolCategories (analogous to how knowledge and mind tools bypass filtering).
|
|
3360
|
+
*/
|
|
3361
|
+
loadRequestToolProject(project: ToolProject): void;
|
|
3341
3362
|
/**
|
|
3342
3363
|
* Search registered tools using BM25. Returns parsed search results ranked by relevance.
|
|
3343
3364
|
* Useful for inspecting what tools are available and verifiable in tests.
|
|
@@ -3966,8 +3987,6 @@ interface McpServerCapabilities {
|
|
|
3966
3987
|
prompts?: Record<string, any>;
|
|
3967
3988
|
}
|
|
3968
3989
|
|
|
3969
|
-
declare function createSkillInterceptor(options?: SkillInterceptorOptions): ToolpackInterceptor;
|
|
3970
|
-
|
|
3971
3990
|
/**
|
|
3972
3991
|
* BM25 (Best Matching 25) search engine.
|
|
3973
3992
|
*
|
|
@@ -4013,4 +4032,4 @@ declare class RuleLoader {
|
|
|
4013
4032
|
private readFile;
|
|
4014
4033
|
}
|
|
4015
4034
|
|
|
4016
|
-
export { AGENT_MODE, AGENT_PLANNING_PROMPT, AGENT_WORKFLOW, AIClient, type AIClientConfig, type AddBypassRuleOptions, AnthropicAdapter, AnthropicVertexAdapter, type AnthropicVertexConfig, type AssembledPrompt, type AssemblerOptions, AuthenticationError, BM25Engine, BM25SearchEngine, type BM25SearchResult, BUILT_IN_MODES, type BypassRuleType, CHAT_MODE, CHAT_WORKFLOW, CODING_MODE, CODING_PLANNING_PROMPT, CODING_WORKFLOW, CONFIG_DIR_NAME, CONFIG_FILE_NAME, type CompletionChunk, type CompletionOptions, type CompletionRequest, type CompletionResponse, type ConfirmationDecision, type ConfirmationLevel$1 as ConfirmationLevel, ConnectionError, type ContextPrunedEvent, type ContextWindowConfig, ContextWindowConfigError, ContextWindowExceededError, type ContextWindowExceededEvent, type ContextWindowState, ContextWindowStateManager, type ContextWindowStrategy, type ContextWindowWarningEvent, ConversationNotFoundError, type ConversationScope, type ConversationSearchOptions, type ConversationStore, type ConversationSummarizedEvent, DEFAULT_MODE_NAME, DEFAULT_TOOLS_CONFIG, DEFAULT_TOOL_SEARCH_CONFIG, DEFAULT_WORKFLOW, DEFAULT_WORKFLOW_CONFIG, type EmbeddingRequest, type EmbeddingResponse, type FileUploadRequest, type FileUploadResponse, GeminiAdapter, type GetOptions, type HitlConfig, type ImageDataPart, type ImageFilePart, type ImagePart, type ImageUrlPart, InMemoryConversationStore, type InMemoryConversationStoreConfig, InsufficientContextError, InvalidRequestError, type JsonRpcRequest, type JsonRpcResponse, type KnowledgeInstance, type McpAgentDefinition, type McpAuthConfig, McpClient, type McpClientConfig, McpConnectionError, type McpCustomAuthConfig, type McpJwtAuthConfig, type McpServerCapabilities, type McpServerConfig, type McpServerExposeConfig, type McpServerHandle, type McpStaticAuthConfig, McpTimeoutError, type McpTool, McpToolManager, type McpToolsConfig, type McpTransport, type MediaOptions, type MediaUploadStrategy, type Message, type MessageContent, type ModeBlockedHint, type ModeConfig, ModeRegistry, OllamaAdapter, type OllamaAdapterConfig, type OllamaModelInfo, OllamaProvider, type OllamaProviderEntry, type OnToolConfirmCallback, OpenAIAdapter, OpenRouterAdapter, type OpenRouterOptions, PageError, type Participant, type Plan, type PlanStep, Planner, type PromptMessage, ProviderAdapter, type ProviderConfig, ProviderError, type ProviderInfo, type ProviderModelInfo, type ProviderOptions, type PruneResult, RateLimitError, type RequestToolDefinition, type Role, RuleLoader, type RuntimeConfigStatus, SDKError, SQLiteConversationStore, type SQLiteConversationStoreConfig, type SearchHistoryEntry, type SearchOptions, type SearchResult, type Skill, type
|
|
4035
|
+
export { AGENT_MODE, AGENT_PLANNING_PROMPT, AGENT_WORKFLOW, AIClient, type AIClientConfig, type AddBypassRuleOptions, AnthropicAdapter, AnthropicVertexAdapter, type AnthropicVertexConfig, type AssembledPrompt, type AssemblerOptions, AuthenticationError, BM25Engine, BM25SearchEngine, type BM25SearchResult, BUILT_IN_MODES, type BypassRuleType, CHAT_MODE, CHAT_WORKFLOW, CODING_MODE, CODING_PLANNING_PROMPT, CODING_WORKFLOW, CONFIG_DIR_NAME, CONFIG_FILE_NAME, type CompletionChunk, type CompletionOptions, type CompletionRequest, type CompletionResponse, type ConfirmationDecision, type ConfirmationLevel$1 as ConfirmationLevel, ConnectionError, type ContextPrunedEvent, type ContextWindowConfig, ContextWindowConfigError, ContextWindowExceededError, type ContextWindowExceededEvent, type ContextWindowState, ContextWindowStateManager, type ContextWindowStrategy, type ContextWindowWarningEvent, ConversationNotFoundError, type ConversationScope, type ConversationSearchOptions, type ConversationStore, type ConversationSummarizedEvent, DEFAULT_MODE_NAME, DEFAULT_TOOLS_CONFIG, DEFAULT_TOOL_SEARCH_CONFIG, DEFAULT_WORKFLOW, DEFAULT_WORKFLOW_CONFIG, type EmbeddingRequest, type EmbeddingResponse, FILE_LIMITS, type FilePart, type FileUploadRequest, type FileUploadResponse, GeminiAdapter, type GetOptions, type HitlConfig, type ImageDataPart, type ImageFilePart, type ImagePart, type ImageUrlPart, InMemoryConversationStore, type InMemoryConversationStoreConfig, InsufficientContextError, InvalidRequestError, type JsonRpcRequest, type JsonRpcResponse, type KnowledgeInstance, type McpAgentDefinition, type McpAuthConfig, McpClient, type McpClientConfig, McpConnectionError, type McpCustomAuthConfig, type McpJwtAuthConfig, type McpServerCapabilities, type McpServerConfig, type McpServerExposeConfig, type McpServerHandle, type McpStaticAuthConfig, McpTimeoutError, type McpTool, McpToolManager, type McpToolsConfig, type McpTransport, type MediaOptions, type MediaUploadStrategy, type Message, type MessageContent, type ModeBlockedHint, type ModeConfig, ModeRegistry, OllamaAdapter, type OllamaAdapterConfig, type OllamaModelInfo, OllamaProvider, type OllamaProviderEntry, type OnToolConfirmCallback, OpenAIAdapter, OpenRouterAdapter, type OpenRouterOptions, PageError, type Participant, type Plan, type PlanStep, Planner, type PromptMessage, ProviderAdapter, type ProviderConfig, ProviderError, type ProviderInfo, type ProviderModelInfo, type ProviderOptions, type PruneResult, RateLimitError, type RequestToolDefinition, type Role, RuleLoader, type RuntimeConfigStatus, SDKError, SQLiteConversationStore, type SQLiteConversationStoreConfig, type SearchHistoryEntry, type SearchOptions, type SearchResult, type Skill, type SkillSection, type SkillToolsOptions, type SkillValidationMode, type SlmModelEntry, type StoredMessage, SummarizationError, type SummarizationOptions, type SummarizationResult, TOOLPACK_DIR_NAME, TOOL_SEARCH_NAME, type TextPart, TimeoutError, type ToolAnnotations, type ToolCall, type ToolCallFunction, type ToolCallMessage, type ToolCallRequest, type ToolCallResult, type ToolCategory, type ToolConfirmation, type ToolConfirmationRequestedEvent, type ToolConfirmationResolvedEvent, type ToolContext, type ToolDefinition, ToolDiscoveryCache, type ToolLogEvent, type ToolParameterProperty, type ToolParameters, type ToolProgressEvent, type ToolProject, type ToolProjectDependencies, type ToolProjectManifest, ToolRegistry, type ToolResult, ToolRouter, type ToolSchema, type ToolSearchConfig, Toolpack, type ToolpackConfig, type ToolpackCredentials, type ToolpackInitConfig, type ToolpackInterceptor, type ToolpackMcpServerConfig, type ToolpackNextFunction, type ToolsConfig, type Usage, VertexAIAdapter, type VertexAIConfig, type WorkflowConfig, type WorkflowEvents, WorkflowExecutor, type WorkflowProgress, type WorkflowResult, addBypassRule, buildSummarizedHistory, cloudDeployTool, cloudListTool, cloudStatusTool, cloudToolsProject, codingExtractFunctionTool, codingFindReferencesTool, codingFindSymbolTool, codingGetCallHierarchyTool, codingGetDiagnosticsTool, codingGetExportsTool, codingGetImportsTool, codingGetOutlineTool, codingGetSymbolsTool, codingGoToDefinitionTool, codingMultiFileEditTool, codingRefactorRenameTool, codingToolsProject, countTokens, createContextWindowStateManager, createMcpToolProject, createMode, createSkillTools, createSummarizationReport, createSummarySystemMessage, createToolProject, dbCountTool, dbDeleteTool, dbInsertTool, dbQueryTool, dbSchemaTool, dbTablesTool, dbToolsProject, dbUpdateTool, diffApplyTool, diffCreateTool, diffPreviewTool, diffToolsProject, disconnectMcpToolProject, ensureGlobalConfigDir, ensureLocalConfigDir, estimateSummaryTokens, estimateTokenCount, execKillTool, execListProcessesTool, execReadOutputTool, execRunBackgroundTool, execRunBlockingTool, execRunShellTool, execRunTool, execTailOutputTool, execToolsProject, extractConversationKeypoints, fetchUrlAsBase64, fsAppendFileTool, fsBatchReadTool, fsBatchWriteTool, fsCopyTool, fsCreateDirTool, fsDeleteDirTool, fsDeleteFileTool, fsExistsTool, fsGlobTool, fsListDirTool, fsMoveTool, fsReadFileRangeTool, fsReadFileTool, fsReplaceInFileTool, fsSearchTool, fsStatTool, fsToolsProject, fsTreeTool, fsWriteFileTool, generateSummarizationPrompt, generateToolCategoriesPrompt, getContextWindowPercentage, getDefaultSlmModel, getGlobalConfigDir, getGlobalConfigPath, getGlobalToolpackDir, getLocalConfigDir, getLocalConfigPath, getLocalToolpackDir, getMessageStats, getMimeType, getOllamaBaseUrl, getOllamaProviderEntries, getRegisteredSlmModels, getRuntimeConfigStatus, getSafeOutputReserve, getToolSearchSchema, getToolpackConfig, getUserHomeDir, gitAddTool, gitBlameTool, gitBranchCreateTool, gitBranchListTool, gitCheckoutTool, gitCloneTool, gitCommitTool, gitDiffTool, gitLogTool, gitStatusTool, gitToolsProject, githubContentsGetTextTool, githubGraphqlExecuteTool, githubIssuesCommentsCreateTool, githubPrDiffGetTool, githubPrFilesListTool, githubPrReviewCommentsReplyTool, githubPrReviewThreadsListTool, githubPrReviewThreadsResolveTool, githubPrReviewsSubmitTool, githubToolsProject, groupMessagesByRole, handleContextWindowError, httpDeleteTool, httpDownloadTool, httpGetTool, httpPostTool, httpPutTool, httpToolsProject, initializeGlobalConfigIfFirstRun, isContextWindowError, isDataUri, isRegisteredSlm, isToolSearchTool, k8sApplyManifestTool, k8sDeleteResourceTool, k8sDescribeTool, k8sGetConfigMapTool, k8sGetLogsTool, k8sGetNamespacesTool, k8sListDeploymentsTool, k8sListPodsTool, k8sListServicesTool, k8sSwitchContextTool, k8sToolsProject, k8sWaitForDeploymentTool, loadFullConfig, loadRuntimeConfig, loadToolsConfig, mergeSummarizationResults, normalizeImagePart, ollamaRequest, ollamaStream, parseDataUri, parseSkillFile, parseSummarizationResponse, prepareSummarizationRequest, pruneMessages, readFileAsBase64, reloadToolpackConfig, removeBypassRule, saveToolsConfig, slackAuthTestTool, slackChatPostEphemeralTool, slackChatPostMessageTool, slackConversationsHistoryTool, slackConversationsRepliesTool, slackReactionsAddTool, slackToolsProject, systemCwdTool, systemDiskUsageTool, systemEnvTool, systemInfoTool, systemSetEnvTool, systemToolsProject, toDataUri, toolSearchDefinition, truncateMessage, validateSummarizationResult, webExtractLinksTool, webFeedTool, webFetchTool, webMapTool, webMetadataTool, webScrapeTool, webScreenshotTool, webSearchTool, webSitemapTool, webToolsProject, wouldExceedContextWindow };
|
package/dist/index.d.ts
CHANGED
|
@@ -497,12 +497,6 @@ interface ModeConfig {
|
|
|
497
497
|
* Shorthand for "no tool calls at all".
|
|
498
498
|
*/
|
|
499
499
|
blockAllTools: boolean;
|
|
500
|
-
/**
|
|
501
|
-
* Whether to auto-inject relevant skill content into the system prompt
|
|
502
|
-
* via BM25 matching of the user's message (skill interceptor).
|
|
503
|
-
* Default: false — opt-in only. Set to true to enable auto-injection.
|
|
504
|
-
*/
|
|
505
|
-
skillInterceptor?: boolean;
|
|
506
500
|
/**
|
|
507
501
|
* Root directory for rule files.
|
|
508
502
|
* Auto-discovers:
|
|
@@ -579,7 +573,29 @@ interface ImageUrlPart {
|
|
|
579
573
|
};
|
|
580
574
|
}
|
|
581
575
|
type ImagePart = ImageDataPart | ImageFilePart | ImageUrlPart;
|
|
582
|
-
|
|
576
|
+
interface FilePart {
|
|
577
|
+
type: 'file';
|
|
578
|
+
file: {
|
|
579
|
+
/** Public or pre-signed bucket URL */
|
|
580
|
+
url: string;
|
|
581
|
+
/** MIME type, e.g. 'image/jpeg', 'application/pdf' */
|
|
582
|
+
mimeType: string;
|
|
583
|
+
/** Original filename, for display only */
|
|
584
|
+
name?: string;
|
|
585
|
+
/** File size in bytes — used for client-side validation */
|
|
586
|
+
size?: number;
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
declare const FILE_LIMITS: {
|
|
590
|
+
readonly image: {
|
|
591
|
+
readonly maxBytes: number;
|
|
592
|
+
};
|
|
593
|
+
readonly document: {
|
|
594
|
+
readonly maxBytes: number;
|
|
595
|
+
readonly maxPages: 20;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
type MessageContent = string | (TextPart | ImagePart | FilePart)[] | null;
|
|
583
599
|
type MediaUploadStrategy = 'inline' | 'upload' | 'auto';
|
|
584
600
|
interface MediaOptions {
|
|
585
601
|
/** How to handle image payloads */
|
|
@@ -2549,12 +2565,6 @@ interface Skill {
|
|
|
2549
2565
|
examples?: string;
|
|
2550
2566
|
lastModified: number;
|
|
2551
2567
|
}
|
|
2552
|
-
interface SkillInterceptorOptions {
|
|
2553
|
-
dir?: string;
|
|
2554
|
-
maxSkills?: number;
|
|
2555
|
-
minScore?: number;
|
|
2556
|
-
onValidationError?: SkillValidationMode;
|
|
2557
|
-
}
|
|
2558
2568
|
interface SkillToolsOptions {
|
|
2559
2569
|
/** Skills directory. Default: '.toolpack/skills' */
|
|
2560
2570
|
dir?: string;
|
|
@@ -2675,11 +2685,6 @@ declare function createMode(config: {
|
|
|
2675
2685
|
enabled: boolean;
|
|
2676
2686
|
};
|
|
2677
2687
|
};
|
|
2678
|
-
/**
|
|
2679
|
-
* Enable auto-injection of BM25-matched skill content into the system prompt.
|
|
2680
|
-
* Default: false — opt-in only.
|
|
2681
|
-
*/
|
|
2682
|
-
skillInterceptor?: boolean;
|
|
2683
2688
|
/**
|
|
2684
2689
|
* Root directory for rule files for this mode.
|
|
2685
2690
|
* Auto-discovers __global__/ and <mode-name>/ subfolders within it.
|
|
@@ -3275,8 +3280,18 @@ declare class Toolpack extends EventEmitter {
|
|
|
3275
3280
|
customProviderNames: Set<string>;
|
|
3276
3281
|
private mcpToolProject;
|
|
3277
3282
|
private _interceptors;
|
|
3283
|
+
private _instanceRequestTools;
|
|
3278
3284
|
private constructor();
|
|
3279
|
-
private
|
|
3285
|
+
private _buildKnowledgeRequestTools;
|
|
3286
|
+
/**
|
|
3287
|
+
* Register tools that bypass mode filtering and are always available to the model.
|
|
3288
|
+
* Use this for tools that must be accessible regardless of allowedToolCategories —
|
|
3289
|
+
* the same mechanism used by knowledge, skill, and scheduler tools internally.
|
|
3290
|
+
*
|
|
3291
|
+
* Prefer `loadRequestToolProject` when you have a ToolProject; call this directly
|
|
3292
|
+
* when you have a plain RequestToolDefinition array.
|
|
3293
|
+
*/
|
|
3294
|
+
registerRequestTools(tools: RequestToolDefinition[]): void;
|
|
3280
3295
|
private prepareRequest;
|
|
3281
3296
|
/**
|
|
3282
3297
|
* Initialize the Toolpack SDK.
|
|
@@ -3338,6 +3353,12 @@ declare class Toolpack extends EventEmitter {
|
|
|
3338
3353
|
* Load multiple tool projects at runtime, rebuilding the BM25 index once after all are registered.
|
|
3339
3354
|
*/
|
|
3340
3355
|
loadToolProjects(projects: ToolProject[]): Promise<void>;
|
|
3356
|
+
/**
|
|
3357
|
+
* Register a tool project's tools as request tools, bypassing mode filtering entirely.
|
|
3358
|
+
* Use this instead of loadToolProject when the tools must always be available regardless
|
|
3359
|
+
* of allowedToolCategories (analogous to how knowledge and mind tools bypass filtering).
|
|
3360
|
+
*/
|
|
3361
|
+
loadRequestToolProject(project: ToolProject): void;
|
|
3341
3362
|
/**
|
|
3342
3363
|
* Search registered tools using BM25. Returns parsed search results ranked by relevance.
|
|
3343
3364
|
* Useful for inspecting what tools are available and verifiable in tests.
|
|
@@ -3966,8 +3987,6 @@ interface McpServerCapabilities {
|
|
|
3966
3987
|
prompts?: Record<string, any>;
|
|
3967
3988
|
}
|
|
3968
3989
|
|
|
3969
|
-
declare function createSkillInterceptor(options?: SkillInterceptorOptions): ToolpackInterceptor;
|
|
3970
|
-
|
|
3971
3990
|
/**
|
|
3972
3991
|
* BM25 (Best Matching 25) search engine.
|
|
3973
3992
|
*
|
|
@@ -4013,4 +4032,4 @@ declare class RuleLoader {
|
|
|
4013
4032
|
private readFile;
|
|
4014
4033
|
}
|
|
4015
4034
|
|
|
4016
|
-
export { AGENT_MODE, AGENT_PLANNING_PROMPT, AGENT_WORKFLOW, AIClient, type AIClientConfig, type AddBypassRuleOptions, AnthropicAdapter, AnthropicVertexAdapter, type AnthropicVertexConfig, type AssembledPrompt, type AssemblerOptions, AuthenticationError, BM25Engine, BM25SearchEngine, type BM25SearchResult, BUILT_IN_MODES, type BypassRuleType, CHAT_MODE, CHAT_WORKFLOW, CODING_MODE, CODING_PLANNING_PROMPT, CODING_WORKFLOW, CONFIG_DIR_NAME, CONFIG_FILE_NAME, type CompletionChunk, type CompletionOptions, type CompletionRequest, type CompletionResponse, type ConfirmationDecision, type ConfirmationLevel$1 as ConfirmationLevel, ConnectionError, type ContextPrunedEvent, type ContextWindowConfig, ContextWindowConfigError, ContextWindowExceededError, type ContextWindowExceededEvent, type ContextWindowState, ContextWindowStateManager, type ContextWindowStrategy, type ContextWindowWarningEvent, ConversationNotFoundError, type ConversationScope, type ConversationSearchOptions, type ConversationStore, type ConversationSummarizedEvent, DEFAULT_MODE_NAME, DEFAULT_TOOLS_CONFIG, DEFAULT_TOOL_SEARCH_CONFIG, DEFAULT_WORKFLOW, DEFAULT_WORKFLOW_CONFIG, type EmbeddingRequest, type EmbeddingResponse, type FileUploadRequest, type FileUploadResponse, GeminiAdapter, type GetOptions, type HitlConfig, type ImageDataPart, type ImageFilePart, type ImagePart, type ImageUrlPart, InMemoryConversationStore, type InMemoryConversationStoreConfig, InsufficientContextError, InvalidRequestError, type JsonRpcRequest, type JsonRpcResponse, type KnowledgeInstance, type McpAgentDefinition, type McpAuthConfig, McpClient, type McpClientConfig, McpConnectionError, type McpCustomAuthConfig, type McpJwtAuthConfig, type McpServerCapabilities, type McpServerConfig, type McpServerExposeConfig, type McpServerHandle, type McpStaticAuthConfig, McpTimeoutError, type McpTool, McpToolManager, type McpToolsConfig, type McpTransport, type MediaOptions, type MediaUploadStrategy, type Message, type MessageContent, type ModeBlockedHint, type ModeConfig, ModeRegistry, OllamaAdapter, type OllamaAdapterConfig, type OllamaModelInfo, OllamaProvider, type OllamaProviderEntry, type OnToolConfirmCallback, OpenAIAdapter, OpenRouterAdapter, type OpenRouterOptions, PageError, type Participant, type Plan, type PlanStep, Planner, type PromptMessage, ProviderAdapter, type ProviderConfig, ProviderError, type ProviderInfo, type ProviderModelInfo, type ProviderOptions, type PruneResult, RateLimitError, type RequestToolDefinition, type Role, RuleLoader, type RuntimeConfigStatus, SDKError, SQLiteConversationStore, type SQLiteConversationStoreConfig, type SearchHistoryEntry, type SearchOptions, type SearchResult, type Skill, type
|
|
4035
|
+
export { AGENT_MODE, AGENT_PLANNING_PROMPT, AGENT_WORKFLOW, AIClient, type AIClientConfig, type AddBypassRuleOptions, AnthropicAdapter, AnthropicVertexAdapter, type AnthropicVertexConfig, type AssembledPrompt, type AssemblerOptions, AuthenticationError, BM25Engine, BM25SearchEngine, type BM25SearchResult, BUILT_IN_MODES, type BypassRuleType, CHAT_MODE, CHAT_WORKFLOW, CODING_MODE, CODING_PLANNING_PROMPT, CODING_WORKFLOW, CONFIG_DIR_NAME, CONFIG_FILE_NAME, type CompletionChunk, type CompletionOptions, type CompletionRequest, type CompletionResponse, type ConfirmationDecision, type ConfirmationLevel$1 as ConfirmationLevel, ConnectionError, type ContextPrunedEvent, type ContextWindowConfig, ContextWindowConfigError, ContextWindowExceededError, type ContextWindowExceededEvent, type ContextWindowState, ContextWindowStateManager, type ContextWindowStrategy, type ContextWindowWarningEvent, ConversationNotFoundError, type ConversationScope, type ConversationSearchOptions, type ConversationStore, type ConversationSummarizedEvent, DEFAULT_MODE_NAME, DEFAULT_TOOLS_CONFIG, DEFAULT_TOOL_SEARCH_CONFIG, DEFAULT_WORKFLOW, DEFAULT_WORKFLOW_CONFIG, type EmbeddingRequest, type EmbeddingResponse, FILE_LIMITS, type FilePart, type FileUploadRequest, type FileUploadResponse, GeminiAdapter, type GetOptions, type HitlConfig, type ImageDataPart, type ImageFilePart, type ImagePart, type ImageUrlPart, InMemoryConversationStore, type InMemoryConversationStoreConfig, InsufficientContextError, InvalidRequestError, type JsonRpcRequest, type JsonRpcResponse, type KnowledgeInstance, type McpAgentDefinition, type McpAuthConfig, McpClient, type McpClientConfig, McpConnectionError, type McpCustomAuthConfig, type McpJwtAuthConfig, type McpServerCapabilities, type McpServerConfig, type McpServerExposeConfig, type McpServerHandle, type McpStaticAuthConfig, McpTimeoutError, type McpTool, McpToolManager, type McpToolsConfig, type McpTransport, type MediaOptions, type MediaUploadStrategy, type Message, type MessageContent, type ModeBlockedHint, type ModeConfig, ModeRegistry, OllamaAdapter, type OllamaAdapterConfig, type OllamaModelInfo, OllamaProvider, type OllamaProviderEntry, type OnToolConfirmCallback, OpenAIAdapter, OpenRouterAdapter, type OpenRouterOptions, PageError, type Participant, type Plan, type PlanStep, Planner, type PromptMessage, ProviderAdapter, type ProviderConfig, ProviderError, type ProviderInfo, type ProviderModelInfo, type ProviderOptions, type PruneResult, RateLimitError, type RequestToolDefinition, type Role, RuleLoader, type RuntimeConfigStatus, SDKError, SQLiteConversationStore, type SQLiteConversationStoreConfig, type SearchHistoryEntry, type SearchOptions, type SearchResult, type Skill, type SkillSection, type SkillToolsOptions, type SkillValidationMode, type SlmModelEntry, type StoredMessage, SummarizationError, type SummarizationOptions, type SummarizationResult, TOOLPACK_DIR_NAME, TOOL_SEARCH_NAME, type TextPart, TimeoutError, type ToolAnnotations, type ToolCall, type ToolCallFunction, type ToolCallMessage, type ToolCallRequest, type ToolCallResult, type ToolCategory, type ToolConfirmation, type ToolConfirmationRequestedEvent, type ToolConfirmationResolvedEvent, type ToolContext, type ToolDefinition, ToolDiscoveryCache, type ToolLogEvent, type ToolParameterProperty, type ToolParameters, type ToolProgressEvent, type ToolProject, type ToolProjectDependencies, type ToolProjectManifest, ToolRegistry, type ToolResult, ToolRouter, type ToolSchema, type ToolSearchConfig, Toolpack, type ToolpackConfig, type ToolpackCredentials, type ToolpackInitConfig, type ToolpackInterceptor, type ToolpackMcpServerConfig, type ToolpackNextFunction, type ToolsConfig, type Usage, VertexAIAdapter, type VertexAIConfig, type WorkflowConfig, type WorkflowEvents, WorkflowExecutor, type WorkflowProgress, type WorkflowResult, addBypassRule, buildSummarizedHistory, cloudDeployTool, cloudListTool, cloudStatusTool, cloudToolsProject, codingExtractFunctionTool, codingFindReferencesTool, codingFindSymbolTool, codingGetCallHierarchyTool, codingGetDiagnosticsTool, codingGetExportsTool, codingGetImportsTool, codingGetOutlineTool, codingGetSymbolsTool, codingGoToDefinitionTool, codingMultiFileEditTool, codingRefactorRenameTool, codingToolsProject, countTokens, createContextWindowStateManager, createMcpToolProject, createMode, createSkillTools, createSummarizationReport, createSummarySystemMessage, createToolProject, dbCountTool, dbDeleteTool, dbInsertTool, dbQueryTool, dbSchemaTool, dbTablesTool, dbToolsProject, dbUpdateTool, diffApplyTool, diffCreateTool, diffPreviewTool, diffToolsProject, disconnectMcpToolProject, ensureGlobalConfigDir, ensureLocalConfigDir, estimateSummaryTokens, estimateTokenCount, execKillTool, execListProcessesTool, execReadOutputTool, execRunBackgroundTool, execRunBlockingTool, execRunShellTool, execRunTool, execTailOutputTool, execToolsProject, extractConversationKeypoints, fetchUrlAsBase64, fsAppendFileTool, fsBatchReadTool, fsBatchWriteTool, fsCopyTool, fsCreateDirTool, fsDeleteDirTool, fsDeleteFileTool, fsExistsTool, fsGlobTool, fsListDirTool, fsMoveTool, fsReadFileRangeTool, fsReadFileTool, fsReplaceInFileTool, fsSearchTool, fsStatTool, fsToolsProject, fsTreeTool, fsWriteFileTool, generateSummarizationPrompt, generateToolCategoriesPrompt, getContextWindowPercentage, getDefaultSlmModel, getGlobalConfigDir, getGlobalConfigPath, getGlobalToolpackDir, getLocalConfigDir, getLocalConfigPath, getLocalToolpackDir, getMessageStats, getMimeType, getOllamaBaseUrl, getOllamaProviderEntries, getRegisteredSlmModels, getRuntimeConfigStatus, getSafeOutputReserve, getToolSearchSchema, getToolpackConfig, getUserHomeDir, gitAddTool, gitBlameTool, gitBranchCreateTool, gitBranchListTool, gitCheckoutTool, gitCloneTool, gitCommitTool, gitDiffTool, gitLogTool, gitStatusTool, gitToolsProject, githubContentsGetTextTool, githubGraphqlExecuteTool, githubIssuesCommentsCreateTool, githubPrDiffGetTool, githubPrFilesListTool, githubPrReviewCommentsReplyTool, githubPrReviewThreadsListTool, githubPrReviewThreadsResolveTool, githubPrReviewsSubmitTool, githubToolsProject, groupMessagesByRole, handleContextWindowError, httpDeleteTool, httpDownloadTool, httpGetTool, httpPostTool, httpPutTool, httpToolsProject, initializeGlobalConfigIfFirstRun, isContextWindowError, isDataUri, isRegisteredSlm, isToolSearchTool, k8sApplyManifestTool, k8sDeleteResourceTool, k8sDescribeTool, k8sGetConfigMapTool, k8sGetLogsTool, k8sGetNamespacesTool, k8sListDeploymentsTool, k8sListPodsTool, k8sListServicesTool, k8sSwitchContextTool, k8sToolsProject, k8sWaitForDeploymentTool, loadFullConfig, loadRuntimeConfig, loadToolsConfig, mergeSummarizationResults, normalizeImagePart, ollamaRequest, ollamaStream, parseDataUri, parseSkillFile, parseSummarizationResponse, prepareSummarizationRequest, pruneMessages, readFileAsBase64, reloadToolpackConfig, removeBypassRule, saveToolsConfig, slackAuthTestTool, slackChatPostEphemeralTool, slackChatPostMessageTool, slackConversationsHistoryTool, slackConversationsRepliesTool, slackReactionsAddTool, slackToolsProject, systemCwdTool, systemDiskUsageTool, systemEnvTool, systemInfoTool, systemSetEnvTool, systemToolsProject, toDataUri, toolSearchDefinition, truncateMessage, validateSummarizationResult, webExtractLinksTool, webFeedTool, webFetchTool, webMapTool, webMetadataTool, webScrapeTool, webScreenshotTool, webSearchTool, webSitemapTool, webToolsProject, wouldExceedContextWindow };
|