toolpack-sdk 3.3.0 → 3.4.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 +26 -2
- package/dist/index.cjs +159 -159
- package/dist/index.d.cts +41 -3
- package/dist/index.d.ts +41 -3
- package/dist/index.js +159 -159
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -252,9 +252,21 @@ interface ToolpackCredentials {
|
|
|
252
252
|
/** Netlify auth token. Fallback: NETLIFY_AUTH_TOKEN */
|
|
253
253
|
netlifyAuthToken?: string;
|
|
254
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* Who a run acts for, e.g. the signed-in user of the host application.
|
|
257
|
+
* Supplied by the host (never by the model), so a tool can trust it for per-user data.
|
|
258
|
+
*/
|
|
259
|
+
interface ToolActor {
|
|
260
|
+
/** The host application's stable id for the actor. */
|
|
261
|
+
id: string;
|
|
262
|
+
/** What the actor is, in the host's terms (e.g. 'user'). */
|
|
263
|
+
kind?: string;
|
|
264
|
+
}
|
|
255
265
|
interface ToolContext {
|
|
256
266
|
/** Absolute path to the workspace/project root */
|
|
257
267
|
workspaceRoot: string;
|
|
268
|
+
/** Who this run acts for, when the host set one (see ToolpackInitConfig.actor). */
|
|
269
|
+
actor?: ToolActor;
|
|
258
270
|
/**
|
|
259
271
|
* Tool-specific config from toolsConfig.additionalConfigurations.
|
|
260
272
|
* Includes credentials (ctx.config.credentials) and per-tool settings
|
|
@@ -1377,6 +1389,8 @@ interface AIClientConfig {
|
|
|
1377
1389
|
toolsConfig?: ToolsConfig;
|
|
1378
1390
|
systemPrompt?: string;
|
|
1379
1391
|
disableBaseContext?: boolean;
|
|
1392
|
+
/** Disable automatic tool usage guidance injection into the system prompt */
|
|
1393
|
+
disableToolGuidance?: boolean;
|
|
1380
1394
|
/** Human-in-the-loop configuration for tool confirmation */
|
|
1381
1395
|
hitlConfig?: HitlConfig;
|
|
1382
1396
|
/** Callback for handling tool confirmation requests */
|
|
@@ -1385,6 +1399,8 @@ interface AIClientConfig {
|
|
|
1385
1399
|
conversationId?: string;
|
|
1386
1400
|
/** Context window management configuration */
|
|
1387
1401
|
contextWindowConfig?: ContextWindowConfig;
|
|
1402
|
+
/** Who tool calls act for; passed to every tool as `ctx.actor`. A function is read on each call. */
|
|
1403
|
+
actor?: ToolActor | (() => ToolActor | null | undefined);
|
|
1388
1404
|
}
|
|
1389
1405
|
declare class AIClient extends EventEmitter {
|
|
1390
1406
|
private providers;
|
|
@@ -1398,11 +1414,13 @@ declare class AIClient extends EventEmitter {
|
|
|
1398
1414
|
private activeMode;
|
|
1399
1415
|
private overrideSystemPrompt?;
|
|
1400
1416
|
private disableBaseContext;
|
|
1417
|
+
private disableToolGuidance;
|
|
1401
1418
|
private toolResultMaxChars;
|
|
1402
1419
|
private hitlConfig?;
|
|
1403
1420
|
private onToolConfirm?;
|
|
1404
1421
|
private conversationId?;
|
|
1405
1422
|
private contextWindowConfig?;
|
|
1423
|
+
private actor?;
|
|
1406
1424
|
private contextWindowStateManager?;
|
|
1407
1425
|
private providerModelCache;
|
|
1408
1426
|
private ruleLoader;
|
|
@@ -1488,13 +1506,17 @@ declare class AIClient extends EventEmitter {
|
|
|
1488
1506
|
* When tools are enabled and autoExecute is true, handles the full
|
|
1489
1507
|
* tool call → execute → send result → get final answer loop.
|
|
1490
1508
|
*/
|
|
1491
|
-
generate<T = unknown>(request: CompletionRequest<T>, providerName?: string
|
|
1509
|
+
generate<T = unknown>(request: CompletionRequest<T>, providerName?: string, options?: {
|
|
1510
|
+
getLatestRequestTools?: () => RequestToolDefinition[];
|
|
1511
|
+
}): Promise<CompletionResponse<T>>;
|
|
1492
1512
|
/**
|
|
1493
1513
|
* unified stream completion
|
|
1494
1514
|
* When tools are enabled and autoExecute is true, handles tool calls
|
|
1495
1515
|
* by collecting them, executing, and re-calling the model.
|
|
1496
1516
|
*/
|
|
1497
|
-
stream(request: CompletionRequest, providerName?: string
|
|
1517
|
+
stream(request: CompletionRequest, providerName?: string, options?: {
|
|
1518
|
+
getLatestRequestTools?: () => RequestToolDefinition[];
|
|
1519
|
+
}): AsyncGenerator<CompletionChunk>;
|
|
1498
1520
|
/**
|
|
1499
1521
|
* unified embed
|
|
1500
1522
|
*/
|
|
@@ -1690,6 +1712,8 @@ declare class VertexAIAdapter extends ProviderAdapter {
|
|
|
1690
1712
|
|
|
1691
1713
|
declare class GeminiAdapter extends ProviderAdapter {
|
|
1692
1714
|
private genAI;
|
|
1715
|
+
private readonly rawContentCache;
|
|
1716
|
+
private static readonly RAW_CONTENT_CACHE_MAX;
|
|
1693
1717
|
constructor(apiKey: string);
|
|
1694
1718
|
supportsFileUpload(): boolean;
|
|
1695
1719
|
/**
|
|
@@ -1920,6 +1944,12 @@ declare function fetchUrlAsBase64(url: string): Promise<{
|
|
|
1920
1944
|
data: string;
|
|
1921
1945
|
mimeType: string;
|
|
1922
1946
|
}>;
|
|
1947
|
+
interface FileEnvelope {
|
|
1948
|
+
type: 'file';
|
|
1949
|
+
mimeType: string;
|
|
1950
|
+
url: string;
|
|
1951
|
+
}
|
|
1952
|
+
declare function parseFileEnvelope(content: string): FileEnvelope | null;
|
|
1923
1953
|
declare function normalizeImagePart(part: ImagePart): Promise<{
|
|
1924
1954
|
data: string;
|
|
1925
1955
|
mimeType: string;
|
|
@@ -3192,6 +3222,8 @@ interface ToolpackInitConfig {
|
|
|
3192
3222
|
customProviders?: ProviderAdapter[] | Record<string, ProviderAdapter>;
|
|
3193
3223
|
/** Disable base agent context injection (for testing or custom prompts) */
|
|
3194
3224
|
disableBaseContext?: boolean;
|
|
3225
|
+
/** Disable automatic tool usage guidance injection into the system prompt */
|
|
3226
|
+
disableToolGuidance?: boolean;
|
|
3195
3227
|
mcp?: McpToolsConfig;
|
|
3196
3228
|
/**
|
|
3197
3229
|
* Optional Knowledge instance for RAG (Retrieval-Augmented Generation).
|
|
@@ -3218,6 +3250,12 @@ interface ToolpackInitConfig {
|
|
|
3218
3250
|
}) => Promise<ConfirmationDecision>;
|
|
3219
3251
|
/** Optional conversation ID for tracking context across confirmations */
|
|
3220
3252
|
conversationId?: string;
|
|
3253
|
+
/**
|
|
3254
|
+
* Who this instance's tool calls act for (e.g. the signed-in user). Passed to every tool as
|
|
3255
|
+
* `ctx.actor`; the model never sees or sets it. Pass a function when one instance serves
|
|
3256
|
+
* several actors: it is read on each tool call.
|
|
3257
|
+
*/
|
|
3258
|
+
actor?: ToolActor | (() => ToolActor | null | undefined);
|
|
3221
3259
|
/**
|
|
3222
3260
|
* Optional interceptors that wrap each `generate()` call in the direct execution path.
|
|
3223
3261
|
* Each interceptor receives the full CompletionRequest and a `next()` function.
|
|
@@ -4032,4 +4070,4 @@ declare class RuleLoader {
|
|
|
4032
4070
|
private readFile;
|
|
4033
4071
|
}
|
|
4034
4072
|
|
|
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 };
|
|
4073
|
+
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 FileEnvelope, 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 ToolActor, 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, parseFileEnvelope, 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
|
@@ -252,9 +252,21 @@ interface ToolpackCredentials {
|
|
|
252
252
|
/** Netlify auth token. Fallback: NETLIFY_AUTH_TOKEN */
|
|
253
253
|
netlifyAuthToken?: string;
|
|
254
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* Who a run acts for, e.g. the signed-in user of the host application.
|
|
257
|
+
* Supplied by the host (never by the model), so a tool can trust it for per-user data.
|
|
258
|
+
*/
|
|
259
|
+
interface ToolActor {
|
|
260
|
+
/** The host application's stable id for the actor. */
|
|
261
|
+
id: string;
|
|
262
|
+
/** What the actor is, in the host's terms (e.g. 'user'). */
|
|
263
|
+
kind?: string;
|
|
264
|
+
}
|
|
255
265
|
interface ToolContext {
|
|
256
266
|
/** Absolute path to the workspace/project root */
|
|
257
267
|
workspaceRoot: string;
|
|
268
|
+
/** Who this run acts for, when the host set one (see ToolpackInitConfig.actor). */
|
|
269
|
+
actor?: ToolActor;
|
|
258
270
|
/**
|
|
259
271
|
* Tool-specific config from toolsConfig.additionalConfigurations.
|
|
260
272
|
* Includes credentials (ctx.config.credentials) and per-tool settings
|
|
@@ -1377,6 +1389,8 @@ interface AIClientConfig {
|
|
|
1377
1389
|
toolsConfig?: ToolsConfig;
|
|
1378
1390
|
systemPrompt?: string;
|
|
1379
1391
|
disableBaseContext?: boolean;
|
|
1392
|
+
/** Disable automatic tool usage guidance injection into the system prompt */
|
|
1393
|
+
disableToolGuidance?: boolean;
|
|
1380
1394
|
/** Human-in-the-loop configuration for tool confirmation */
|
|
1381
1395
|
hitlConfig?: HitlConfig;
|
|
1382
1396
|
/** Callback for handling tool confirmation requests */
|
|
@@ -1385,6 +1399,8 @@ interface AIClientConfig {
|
|
|
1385
1399
|
conversationId?: string;
|
|
1386
1400
|
/** Context window management configuration */
|
|
1387
1401
|
contextWindowConfig?: ContextWindowConfig;
|
|
1402
|
+
/** Who tool calls act for; passed to every tool as `ctx.actor`. A function is read on each call. */
|
|
1403
|
+
actor?: ToolActor | (() => ToolActor | null | undefined);
|
|
1388
1404
|
}
|
|
1389
1405
|
declare class AIClient extends EventEmitter {
|
|
1390
1406
|
private providers;
|
|
@@ -1398,11 +1414,13 @@ declare class AIClient extends EventEmitter {
|
|
|
1398
1414
|
private activeMode;
|
|
1399
1415
|
private overrideSystemPrompt?;
|
|
1400
1416
|
private disableBaseContext;
|
|
1417
|
+
private disableToolGuidance;
|
|
1401
1418
|
private toolResultMaxChars;
|
|
1402
1419
|
private hitlConfig?;
|
|
1403
1420
|
private onToolConfirm?;
|
|
1404
1421
|
private conversationId?;
|
|
1405
1422
|
private contextWindowConfig?;
|
|
1423
|
+
private actor?;
|
|
1406
1424
|
private contextWindowStateManager?;
|
|
1407
1425
|
private providerModelCache;
|
|
1408
1426
|
private ruleLoader;
|
|
@@ -1488,13 +1506,17 @@ declare class AIClient extends EventEmitter {
|
|
|
1488
1506
|
* When tools are enabled and autoExecute is true, handles the full
|
|
1489
1507
|
* tool call → execute → send result → get final answer loop.
|
|
1490
1508
|
*/
|
|
1491
|
-
generate<T = unknown>(request: CompletionRequest<T>, providerName?: string
|
|
1509
|
+
generate<T = unknown>(request: CompletionRequest<T>, providerName?: string, options?: {
|
|
1510
|
+
getLatestRequestTools?: () => RequestToolDefinition[];
|
|
1511
|
+
}): Promise<CompletionResponse<T>>;
|
|
1492
1512
|
/**
|
|
1493
1513
|
* unified stream completion
|
|
1494
1514
|
* When tools are enabled and autoExecute is true, handles tool calls
|
|
1495
1515
|
* by collecting them, executing, and re-calling the model.
|
|
1496
1516
|
*/
|
|
1497
|
-
stream(request: CompletionRequest, providerName?: string
|
|
1517
|
+
stream(request: CompletionRequest, providerName?: string, options?: {
|
|
1518
|
+
getLatestRequestTools?: () => RequestToolDefinition[];
|
|
1519
|
+
}): AsyncGenerator<CompletionChunk>;
|
|
1498
1520
|
/**
|
|
1499
1521
|
* unified embed
|
|
1500
1522
|
*/
|
|
@@ -1690,6 +1712,8 @@ declare class VertexAIAdapter extends ProviderAdapter {
|
|
|
1690
1712
|
|
|
1691
1713
|
declare class GeminiAdapter extends ProviderAdapter {
|
|
1692
1714
|
private genAI;
|
|
1715
|
+
private readonly rawContentCache;
|
|
1716
|
+
private static readonly RAW_CONTENT_CACHE_MAX;
|
|
1693
1717
|
constructor(apiKey: string);
|
|
1694
1718
|
supportsFileUpload(): boolean;
|
|
1695
1719
|
/**
|
|
@@ -1920,6 +1944,12 @@ declare function fetchUrlAsBase64(url: string): Promise<{
|
|
|
1920
1944
|
data: string;
|
|
1921
1945
|
mimeType: string;
|
|
1922
1946
|
}>;
|
|
1947
|
+
interface FileEnvelope {
|
|
1948
|
+
type: 'file';
|
|
1949
|
+
mimeType: string;
|
|
1950
|
+
url: string;
|
|
1951
|
+
}
|
|
1952
|
+
declare function parseFileEnvelope(content: string): FileEnvelope | null;
|
|
1923
1953
|
declare function normalizeImagePart(part: ImagePart): Promise<{
|
|
1924
1954
|
data: string;
|
|
1925
1955
|
mimeType: string;
|
|
@@ -3192,6 +3222,8 @@ interface ToolpackInitConfig {
|
|
|
3192
3222
|
customProviders?: ProviderAdapter[] | Record<string, ProviderAdapter>;
|
|
3193
3223
|
/** Disable base agent context injection (for testing or custom prompts) */
|
|
3194
3224
|
disableBaseContext?: boolean;
|
|
3225
|
+
/** Disable automatic tool usage guidance injection into the system prompt */
|
|
3226
|
+
disableToolGuidance?: boolean;
|
|
3195
3227
|
mcp?: McpToolsConfig;
|
|
3196
3228
|
/**
|
|
3197
3229
|
* Optional Knowledge instance for RAG (Retrieval-Augmented Generation).
|
|
@@ -3218,6 +3250,12 @@ interface ToolpackInitConfig {
|
|
|
3218
3250
|
}) => Promise<ConfirmationDecision>;
|
|
3219
3251
|
/** Optional conversation ID for tracking context across confirmations */
|
|
3220
3252
|
conversationId?: string;
|
|
3253
|
+
/**
|
|
3254
|
+
* Who this instance's tool calls act for (e.g. the signed-in user). Passed to every tool as
|
|
3255
|
+
* `ctx.actor`; the model never sees or sets it. Pass a function when one instance serves
|
|
3256
|
+
* several actors: it is read on each tool call.
|
|
3257
|
+
*/
|
|
3258
|
+
actor?: ToolActor | (() => ToolActor | null | undefined);
|
|
3221
3259
|
/**
|
|
3222
3260
|
* Optional interceptors that wrap each `generate()` call in the direct execution path.
|
|
3223
3261
|
* Each interceptor receives the full CompletionRequest and a `next()` function.
|
|
@@ -4032,4 +4070,4 @@ declare class RuleLoader {
|
|
|
4032
4070
|
private readFile;
|
|
4033
4071
|
}
|
|
4034
4072
|
|
|
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 };
|
|
4073
|
+
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 FileEnvelope, 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 ToolActor, 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, parseFileEnvelope, 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 };
|