@dudko.dev/agent 0.0.49 → 0.0.50
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 +47 -10
- package/dist/cli.js +121 -116
- package/dist/index.cjs +103 -103
- package/dist/index.d.cts +71 -7
- package/dist/index.d.ts +71 -7
- package/dist/index.js +103 -103
- package/dist/subagent-worker.js +85 -85
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -876,9 +876,15 @@ interface McpServerProtocol {
|
|
|
876
876
|
* (`selectMcpSkills`), the files of a loaded skill the model may read (`resolveMcpSkillFile`),
|
|
877
877
|
* the preamble a skill's text is loaded under, the mark that carries a server's skills on its
|
|
878
878
|
* tools (`markMcpSkills` / `collectMcpSkillSources`), a skill the model names by URI
|
|
879
|
-
* (`mcpSkillUriRefusal`, `resolveMcpSkillServer`: `skills/get` to that one server only)
|
|
879
|
+
* (`mcpSkillUriRefusal`, `resolveMcpSkillServer`: `skills/get` to that one server only), the
|
|
880
880
|
* person's consent before a skill's text enters the model's context (`decideMcpSkillConsent`,
|
|
881
|
-
* `mcpSkillConsentView`)
|
|
881
|
+
* `mcpSkillConsentView`) and a directory of a skill (`skillDirectoryOf`, `resolveMcpSkillPath`,
|
|
882
|
+
* `skillDirectoryListing` - for every kind of skill - and, for a server that serves
|
|
883
|
+
* `resources/directory/read`, `compareMcpSkillDirectory`) and, for a server the host trusts with
|
|
884
|
+
* its generated skills (`skills: { dynamic: true }`), the snapshot such a skill is read into
|
|
885
|
+
* before anyone is asked (`startMcpSkillWalk`, `takeMcpSkillWalkListing`,
|
|
886
|
+
* `mcpSkillSnapshotBytesRefusal`, `mcpSkillSnapshotEntry`). Pure, no imports (a digest is
|
|
887
|
+
* computed with the platform's WebCrypto, `globalThis.crypto.subtle`, or a function passed in).
|
|
882
888
|
*
|
|
883
889
|
* A server's skills are third-party text. They reach the model only as knowledge, under
|
|
884
890
|
* `mcpSkillPreamble`, and - unless the host vetted the server (`consent: 'never'`) - only after a
|
|
@@ -915,19 +921,47 @@ declare const MCP_SKILL_FILE_MAX_CHARS = 32000;
|
|
|
915
921
|
* naming rules;
|
|
916
922
|
* - a description to show in the catalog;
|
|
917
923
|
* - `resources` is the complete list of its files (Resources): `"dynamic"` content is declined
|
|
918
|
-
* (a host MAY: there is nothing to verify it against
|
|
924
|
+
* (a host MAY: there is nothing to verify it against, and a consent could not bind to its
|
|
925
|
+
* content) - unless `options.dynamic` (the server's `skills: { dynamic: true }`: the host
|
|
926
|
+
* trusts that server with its generated skills, which are then read into a snapshot before
|
|
927
|
+
* anyone is asked, see {@link mcpSkillSnapshotEntry}); anything else is invalid;
|
|
919
928
|
* - every file is `SKILL.md` or a file inside the skill's directory, listed once, with a
|
|
920
929
|
* `sha256:` digest and a byte size, and `SKILL.md` is listed;
|
|
921
930
|
* - at most {@link MCP_SKILL_MAX_RESOURCES} files and {@link MCP_SKILL_MAX_TOTAL_BYTES} bytes
|
|
922
|
-
* (Limits: "both limits are checkable from the entry alone"
|
|
931
|
+
* (Limits: "both limits are checkable from the entry alone"; a generated skill's are counted
|
|
932
|
+
* on what its snapshot reads).
|
|
923
933
|
*/
|
|
924
|
-
declare const mcpSkillEntryRefusal: (entry: unknown
|
|
934
|
+
declare const mcpSkillEntryRefusal: (entry: unknown, options?: {
|
|
935
|
+
dynamic?: boolean;
|
|
936
|
+
}) => string | undefined;
|
|
925
937
|
/**
|
|
926
938
|
* How a skill of a server is introduced wherever its text is shown to the model (its
|
|
927
939
|
* instructions, and each file of it): third-party knowledge that cannot change the rules. The
|
|
928
940
|
* wording is the guard.
|
|
929
941
|
*/
|
|
930
942
|
declare const mcpSkillPreamble: (server: string, uri: string) => string;
|
|
943
|
+
/**
|
|
944
|
+
* The most entries of one `resources/directory/read` answer looked at: the specification's 512
|
|
945
|
+
* files per skill, and room for the directories among them. The rest are not looked at.
|
|
946
|
+
*/
|
|
947
|
+
declare const MCP_SKILL_DIRECTORY_ENTRIES_MAX: number;
|
|
948
|
+
/** What `read_skill_file` answers for a directory of a skill (every path inside the skill). */
|
|
949
|
+
interface SkillDirectoryListing {
|
|
950
|
+
/** The skill's name in the catalog. */
|
|
951
|
+
name: string;
|
|
952
|
+
/** The directory: `.` for the skill's root, else its path inside the skill. */
|
|
953
|
+
directory: string;
|
|
954
|
+
/** Its files (each read with `read_skill_file`), sorted. */
|
|
955
|
+
files: string[];
|
|
956
|
+
/** Its subdirectories (each listed the same way), sorted. */
|
|
957
|
+
directories: string[];
|
|
958
|
+
/** How many more it holds than the two lists show ({@link MCP_SKILL_FILES_SHOWN_MAX} in all). */
|
|
959
|
+
more?: number;
|
|
960
|
+
/** Shown above, but no longer listed by the skill's MCP server: a read of them will fail. */
|
|
961
|
+
notServed?: string[];
|
|
962
|
+
/** The skill changed on its MCP server since it was loaded ({@link mcpSkillDirectoryNote}). */
|
|
963
|
+
note?: string;
|
|
964
|
+
}
|
|
931
965
|
/** The longest URI `load_skill` sends to a server, in characters. */
|
|
932
966
|
declare const MCP_SKILL_URI_MAX_CHARS = 512;
|
|
933
967
|
/**
|
|
@@ -957,6 +991,16 @@ interface McpSkillsOptions {
|
|
|
957
991
|
* vetted (its skills load as soon as the model asks). Whatever the approval mode says.
|
|
958
992
|
*/
|
|
959
993
|
consent?: McpSkillConsent;
|
|
994
|
+
/**
|
|
995
|
+
* `true`: also take this server's GENERATED skills (`"resources": "dynamic"` - no checksums;
|
|
996
|
+
* declined by default). When one would enter the model's context, the agent first reads all
|
|
997
|
+
* of it - `SKILL.md` and, if the server serves `resources/directory/read`, every file its
|
|
998
|
+
* directories list, within the specification's limits - computes each file's digest itself,
|
|
999
|
+
* and holds that copy in memory: the person approves that copy (the consent binds to its
|
|
1000
|
+
* digests), and the model is given only that copy, never a later read. Per server, for a
|
|
1001
|
+
* server you trust with this; there is no agent-wide switch.
|
|
1002
|
+
*/
|
|
1003
|
+
dynamic?: boolean;
|
|
960
1004
|
}
|
|
961
1005
|
/** `skills` on a server's config: `true`, or options (on, with them); `false` / absent: off. */
|
|
962
1006
|
type McpSkillsSetting = boolean | McpSkillsOptions;
|
|
@@ -988,9 +1032,29 @@ interface McpSkillConsentView {
|
|
|
988
1032
|
byUri?: true;
|
|
989
1033
|
/** It sits inside this skill of the same server, whose approval does not cover it. */
|
|
990
1034
|
nestedIn?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Generated by the server (`"resources": "dynamic"`, taken with `skills: { dynamic: true }`):
|
|
1037
|
+
* there are no checksums. The size, the files and the text are those of the copy the agent just
|
|
1038
|
+
* read (its snapshot), and only that copy is used - say so.
|
|
1039
|
+
*/
|
|
1040
|
+
dynamic?: true;
|
|
1041
|
+
/**
|
|
1042
|
+
* (with `dynamic`) The server cannot list the skill's files (no `resources/directory/read`): the
|
|
1043
|
+
* copy is its `SKILL.md` alone, and no other file of it can be read.
|
|
1044
|
+
*/
|
|
1045
|
+
noFileListing?: true;
|
|
991
1046
|
/** Asked for this run only (`'ask'`) or, on a yes, for the agent's life (`'once-per-skill'`). */
|
|
992
1047
|
consent: Exclude<McpSkillConsent, 'never'>;
|
|
993
1048
|
}
|
|
1049
|
+
/**
|
|
1050
|
+
* The most directories one snapshot reads (`resources/directory/read`, the skill's root
|
|
1051
|
+
* included). One read is one directory, its pages walked by the SDK (bounded by its own page cap).
|
|
1052
|
+
*/
|
|
1053
|
+
declare const MCP_SKILL_SNAPSHOT_MAX_DIRECTORIES = 64;
|
|
1054
|
+
/** The deepest directory of a skill a snapshot reads: its root is 0, `templates` 1, ... */
|
|
1055
|
+
declare const MCP_SKILL_SNAPSHOT_MAX_DEPTH = 8;
|
|
1056
|
+
/** The most bytes the snapshots of one agent hold in memory together. */
|
|
1057
|
+
declare const MCP_SKILL_SNAPSHOTS_MAX_BYTES: number;
|
|
994
1058
|
|
|
995
1059
|
declare const SPAWN_SUBAGENT_TOOL = "spawn_subagent";
|
|
996
1060
|
type SubagentDefaultTools = 'read-only' | 'all';
|
|
@@ -2584,5 +2648,5 @@ interface ISubagentToolOptions {
|
|
|
2584
2648
|
*/
|
|
2585
2649
|
declare const createSubagentTool: (opts: ISubagentToolOptions) => Tool;
|
|
2586
2650
|
|
|
2587
|
-
export { DEFAULT_COMPACTION_THRESHOLD_RATIO, DEFAULT_DECISION_CONFIDENCE_THRESHOLD, DEFAULT_DECISION_TIMEOUT_MS, DirSkillStore, ENTERPRISE_MANAGED_AUTHORIZATION_EXTENSION, EgressError, EnterpriseOAuthError, FORGET_SKILL_TOOL, FileOAuthStore, GENERATE_IMAGE_TOOL, GENERATE_SPEECH_TOOL, MCP_ELICITATION_MAX_PER_RUN, MCP_ELICITATION_MAX_PER_TOOL_CALL, MCP_ELICITATION_TIMEOUT_MS, MCP_INSTRUCTIONS_MAX_CHARS_PER_SERVER, MCP_INSTRUCTIONS_MAX_CHARS_TOTAL, MCP_MODERN_PROTOCOL_VERSION, MCP_SKILLS_EXTENSION, MCP_SKILLS_MAX_PER_SERVER, MCP_SKILLS_MAX_TOTAL, MCP_SKILL_BODY_MAX_CHARS, MCP_SKILL_CONSENTS, MCP_SKILL_CONSENT_DEFAULT, MCP_SKILL_DESCRIPTION_MAX_CHARS, MCP_SKILL_FILE_MAX_CHARS, MCP_SKILL_MAX_RESOURCES, MCP_SKILL_MAX_TOTAL_BYTES, MCP_SKILL_URI_MAX_CHARS, MEDIA_AUDIO_TYPES, MEDIA_DEFAULT_MAX_CALLS, MEDIA_FOLDER, MEDIA_IMAGE_TYPES, MEDIA_MAX_ATTACHED_AUDIO, MEDIA_MAX_AUDIO_INPUT_BYTES, MEDIA_MAX_IMAGE_BYTES, MEDIA_MAX_PROMPT_CHARS, MEDIA_MAX_SPEECH_BYTES, MEDIA_MAX_SPEECH_CHARS, MEDIA_MAX_TRANSCRIPT_CHARS, MEDIA_TIMEOUT_MS, MediaBudgetError, MediaError, MemoryOAuthStore, MemorySkillStore, NodeEnterpriseOAuthProvider, NodeOAuthProvider, PIPELINE_LIMITS, PipelineNodeError, PipelineValidationError, REPLAY_NOTE, RUN_JS_TOOL, SAVE_SKILL_TOOL, SEARCH_API_BASE_URL, SEARCH_DEFAULT_MAX_RESULTS, SEARCH_GOOGLE_DEFAULT_MODEL, SEARCH_GOOGLE_NOTE, SEARCH_MAX_QUERY_CHARS, SEARCH_MAX_RESULTS, SEARCH_MAX_SNIPPET_CHARS, SEARCH_MAX_SUMMARY_CHARS, SEARCH_MAX_TITLE_CHARS, SEARCH_MAX_TOTAL_CHARS, SEARCH_MAX_URL_CHARS, SEARCH_PROVIDERS, SPAWN_INPUT_SCHEMA, SPAWN_SUBAGENT_TOOL, SUBAGENT_DEFAULTS, SUBAGENT_MAX_DEPTH_LIMIT, SUMMARY_PREFIX, SandboxUnavailableError, SubagentSpawnError, TOOL_APPROVAL_TIMEOUT_MS, TRANSCRIBE_AUDIO_TOOL, ToolBudgetError, ToolDeniedError, WEB_FETCH_TOOL, WEB_SEARCH_TOOL, acceptMedia, addUsage, adoptSubagentEvent, askDecisionModel, beginMcpOAuth, buildInstructions, buildMediaModelFromStage, buildSearchRequest, checkAuthorizationResponseIssuer, checkEgressUrl, checkLimits, checkRedirect, classifyAddress, compactHistory, createAgent, createEgressTools, createEnterpriseOAuthProvider, createLearning, createMedia, createNodeOAuthProvider, createPipeline, createRunControl, createSafeFetch, createSandboxTool, createSandboxTools, createSearchTools, createSubagentTool, createToolResultClearer, createWebFetchTool, createWebSearchTool, decideToolPermission, decisionModelFromAiSdk, defineSkill, estimateTokens, findSecret, finishMcpOAuth, getCurrentRunId, getCurrentRunSandbox, hostMatches, htmlToText, isCodeExecutionTool, isReadOnlyTool, isReplayedToolOutput, loadSkillsFromDir, markCodeExecution, markReadOnly, matchToolRule, mcpSkillEntryRefusal, mcpSkillPreamble, mcpSkillUriRefusal, mediaUsageOf, mergeProviderOptions, nodeResolver, normalizeMcpElicitationSchema, normalizePipeline, normalizeSkillName, normalizeUsage, parseSearchResponse, parseSkillMarkdown, redactHeaders, renderMcpInstructions, renderPipelineNodeInput, resolveCompaction, resolveDynamicSubagents, resolveEgressPolicy, resolveLimits, resolvePromptCaching, resolveSandboxLimits, resolveThinking, sanitizeSearchResults, searchEgressPolicy, searchStatusMessage, searchToolResult, searchTools, sniffMediaType, testPipelineCondition, truncateToolModelOutput, validateMcpElicitationContent, validatePipeline, withRollingBreakpoint, withToolOutputLimit, wrapTranscript };
|
|
2588
|
-
export type { AgentEvent, AgentStage, BudgetKind, DecisionFallbackReason, DecisionPoint, EgressErrorCode, EnterpriseAssertionAlgorithm, EnterpriseAssertionAudience, EnterpriseAssertionType, EnterpriseOAuthHop, EnterpriseOAuthLog, EnterprisePrivateKey, EscalationReason, EventHandler, IAgent, IAgentConfig, IAgentRunOptions, IAgentRunResult, IAgentStageOverride, IAiSdkDecisionOptions, IClearedInfo, ICloseOptions, ICompactHistoryOptions, ICompactHistoryResult, ICompactOptions, ICompactResult, ICompactionConfig, IConversationTurn, IDecisionAnswer, IDecisionCallOptions, IDecisionConfig, IDecisionEvent, IDecisionModel, IDecisionOption, IDecisionOutcome, IDecisionQuestion, IDynamicSubagentsConfig, IEgressPolicy, IEnterpriseIdpOptions, IEnterpriseOAuthProviderOptions, IEscalationConfig, ILearning, ILearningConfig, ILimitBreach, IMcpHttpServerConfig, IMcpServerConfig, IMcpSkillOrigin, IMcpStdioServerConfig, IMedia, IMediaConfig, IMediaFile, IMediaModelSpec, IMediaUsage, INodeOAuthProviderOptions, IOAuthRequestOptions, IOAuthStore, IPersistence, IPlan, IPlanStep, IResolvedAddress, IResolvedDynamicSubagents, IResolvedThinking, IRunFile, IRunSnapshot, ISandboxConfig, ISandboxError, ISandboxLimits, ISandboxResult, ISanitizedSearch, ISaveSkillInput, ISearchAnswer, ISearchConfig, ISearchOptions, ISearchRequest, ISearchResult, ISearchToolResult, ISearchToolsOptions, ISearchUsage, ISkill, ISkillOrigin, ISkillStore, IStepEscalation, IStepResult, IStepStartInfo, ISubagentProfile, ISubagentToolOptions, ISubagentsConfig, IThinkingConfig, ITokenLimits, IToolApprovalConfig, IToolApprovalContext, IToolApprovalRequest, IToolCatalogEntry, IToolDecision, IToolDecisionInput, IToolResultClearing, ITranscription, IUsage, IWebSearchOptions, LogLevel, McpElicitationContent, McpElicitationContext, McpElicitationFieldSchema, McpElicitationHandler, McpElicitationOptions, McpElicitationReason, McpElicitationRequest, McpElicitationResult, McpElicitationSchema, McpOAuthRegistration, McpOAuthRegistrationKind, McpProtocolMode, McpServerInstructions, McpServerProtocol, McpSkillConsent, McpSkillConsentView, McpSkillsOptions, McpSkillsSetting, MediaImageModel, MediaKind, MediaModelKind, MediaSpeechModel, MediaTranscriptionModel, ModelTier, NodeResolverOptions, Pipeline, PipelineCondition, PipelineDefinition, PipelineEdge, PipelineEvent, PipelineIssue, PipelineModelConfig, PipelineNode, PipelineNodeContext, PipelineNodeInput, PipelineNodeOutput, PipelineNodeRunner, PipelineNodeSource, PipelineOptions, PipelineResult, PipelineRoute, PipelineRunOptions, PipelineStop, PipelineTraceEntry, PipelineUsage, PipelineValidation, PromptCachingSetting, ProviderType, ReplanCause, ReplanTrigger, RunControl, SafeFetch, SearchEngine, SearchFreshness, SearchProvider, StepComplexity, SubagentDefaultTools, SubagentInfo, SubagentIsolation, ThinkingLevel, ThinkingSetting, TierReason, TokenLimitKind, ToolApprovalDecision, ToolApprovalMode, ToolPermission, ToolSelectionStrategy, UsagePhase };
|
|
2651
|
+
export { DEFAULT_COMPACTION_THRESHOLD_RATIO, DEFAULT_DECISION_CONFIDENCE_THRESHOLD, DEFAULT_DECISION_TIMEOUT_MS, DirSkillStore, ENTERPRISE_MANAGED_AUTHORIZATION_EXTENSION, EgressError, EnterpriseOAuthError, FORGET_SKILL_TOOL, FileOAuthStore, GENERATE_IMAGE_TOOL, GENERATE_SPEECH_TOOL, MCP_ELICITATION_MAX_PER_RUN, MCP_ELICITATION_MAX_PER_TOOL_CALL, MCP_ELICITATION_TIMEOUT_MS, MCP_INSTRUCTIONS_MAX_CHARS_PER_SERVER, MCP_INSTRUCTIONS_MAX_CHARS_TOTAL, MCP_MODERN_PROTOCOL_VERSION, MCP_SKILLS_EXTENSION, MCP_SKILLS_MAX_PER_SERVER, MCP_SKILLS_MAX_TOTAL, MCP_SKILL_BODY_MAX_CHARS, MCP_SKILL_CONSENTS, MCP_SKILL_CONSENT_DEFAULT, MCP_SKILL_DESCRIPTION_MAX_CHARS, MCP_SKILL_DIRECTORY_ENTRIES_MAX, MCP_SKILL_FILE_MAX_CHARS, MCP_SKILL_MAX_RESOURCES, MCP_SKILL_MAX_TOTAL_BYTES, MCP_SKILL_SNAPSHOTS_MAX_BYTES, MCP_SKILL_SNAPSHOT_MAX_DEPTH, MCP_SKILL_SNAPSHOT_MAX_DIRECTORIES, MCP_SKILL_URI_MAX_CHARS, MEDIA_AUDIO_TYPES, MEDIA_DEFAULT_MAX_CALLS, MEDIA_FOLDER, MEDIA_IMAGE_TYPES, MEDIA_MAX_ATTACHED_AUDIO, MEDIA_MAX_AUDIO_INPUT_BYTES, MEDIA_MAX_IMAGE_BYTES, MEDIA_MAX_PROMPT_CHARS, MEDIA_MAX_SPEECH_BYTES, MEDIA_MAX_SPEECH_CHARS, MEDIA_MAX_TRANSCRIPT_CHARS, MEDIA_TIMEOUT_MS, MediaBudgetError, MediaError, MemoryOAuthStore, MemorySkillStore, NodeEnterpriseOAuthProvider, NodeOAuthProvider, PIPELINE_LIMITS, PipelineNodeError, PipelineValidationError, REPLAY_NOTE, RUN_JS_TOOL, SAVE_SKILL_TOOL, SEARCH_API_BASE_URL, SEARCH_DEFAULT_MAX_RESULTS, SEARCH_GOOGLE_DEFAULT_MODEL, SEARCH_GOOGLE_NOTE, SEARCH_MAX_QUERY_CHARS, SEARCH_MAX_RESULTS, SEARCH_MAX_SNIPPET_CHARS, SEARCH_MAX_SUMMARY_CHARS, SEARCH_MAX_TITLE_CHARS, SEARCH_MAX_TOTAL_CHARS, SEARCH_MAX_URL_CHARS, SEARCH_PROVIDERS, SPAWN_INPUT_SCHEMA, SPAWN_SUBAGENT_TOOL, SUBAGENT_DEFAULTS, SUBAGENT_MAX_DEPTH_LIMIT, SUMMARY_PREFIX, SandboxUnavailableError, SubagentSpawnError, TOOL_APPROVAL_TIMEOUT_MS, TRANSCRIBE_AUDIO_TOOL, ToolBudgetError, ToolDeniedError, WEB_FETCH_TOOL, WEB_SEARCH_TOOL, acceptMedia, addUsage, adoptSubagentEvent, askDecisionModel, beginMcpOAuth, buildInstructions, buildMediaModelFromStage, buildSearchRequest, checkAuthorizationResponseIssuer, checkEgressUrl, checkLimits, checkRedirect, classifyAddress, compactHistory, createAgent, createEgressTools, createEnterpriseOAuthProvider, createLearning, createMedia, createNodeOAuthProvider, createPipeline, createRunControl, createSafeFetch, createSandboxTool, createSandboxTools, createSearchTools, createSubagentTool, createToolResultClearer, createWebFetchTool, createWebSearchTool, decideToolPermission, decisionModelFromAiSdk, defineSkill, estimateTokens, findSecret, finishMcpOAuth, getCurrentRunId, getCurrentRunSandbox, hostMatches, htmlToText, isCodeExecutionTool, isReadOnlyTool, isReplayedToolOutput, loadSkillsFromDir, markCodeExecution, markReadOnly, matchToolRule, mcpSkillEntryRefusal, mcpSkillPreamble, mcpSkillUriRefusal, mediaUsageOf, mergeProviderOptions, nodeResolver, normalizeMcpElicitationSchema, normalizePipeline, normalizeSkillName, normalizeUsage, parseSearchResponse, parseSkillMarkdown, redactHeaders, renderMcpInstructions, renderPipelineNodeInput, resolveCompaction, resolveDynamicSubagents, resolveEgressPolicy, resolveLimits, resolvePromptCaching, resolveSandboxLimits, resolveThinking, sanitizeSearchResults, searchEgressPolicy, searchStatusMessage, searchToolResult, searchTools, sniffMediaType, testPipelineCondition, truncateToolModelOutput, validateMcpElicitationContent, validatePipeline, withRollingBreakpoint, withToolOutputLimit, wrapTranscript };
|
|
2652
|
+
export type { AgentEvent, AgentStage, BudgetKind, DecisionFallbackReason, DecisionPoint, EgressErrorCode, EnterpriseAssertionAlgorithm, EnterpriseAssertionAudience, EnterpriseAssertionType, EnterpriseOAuthHop, EnterpriseOAuthLog, EnterprisePrivateKey, EscalationReason, EventHandler, IAgent, IAgentConfig, IAgentRunOptions, IAgentRunResult, IAgentStageOverride, IAiSdkDecisionOptions, IClearedInfo, ICloseOptions, ICompactHistoryOptions, ICompactHistoryResult, ICompactOptions, ICompactResult, ICompactionConfig, IConversationTurn, IDecisionAnswer, IDecisionCallOptions, IDecisionConfig, IDecisionEvent, IDecisionModel, IDecisionOption, IDecisionOutcome, IDecisionQuestion, IDynamicSubagentsConfig, IEgressPolicy, IEnterpriseIdpOptions, IEnterpriseOAuthProviderOptions, IEscalationConfig, ILearning, ILearningConfig, ILimitBreach, IMcpHttpServerConfig, IMcpServerConfig, IMcpSkillOrigin, IMcpStdioServerConfig, IMedia, IMediaConfig, IMediaFile, IMediaModelSpec, IMediaUsage, INodeOAuthProviderOptions, IOAuthRequestOptions, IOAuthStore, IPersistence, IPlan, IPlanStep, IResolvedAddress, IResolvedDynamicSubagents, IResolvedThinking, IRunFile, IRunSnapshot, ISandboxConfig, ISandboxError, ISandboxLimits, ISandboxResult, ISanitizedSearch, ISaveSkillInput, ISearchAnswer, ISearchConfig, ISearchOptions, ISearchRequest, ISearchResult, ISearchToolResult, ISearchToolsOptions, ISearchUsage, ISkill, ISkillOrigin, ISkillStore, IStepEscalation, IStepResult, IStepStartInfo, ISubagentProfile, ISubagentToolOptions, ISubagentsConfig, IThinkingConfig, ITokenLimits, IToolApprovalConfig, IToolApprovalContext, IToolApprovalRequest, IToolCatalogEntry, IToolDecision, IToolDecisionInput, IToolResultClearing, ITranscription, IUsage, IWebSearchOptions, LogLevel, McpElicitationContent, McpElicitationContext, McpElicitationFieldSchema, McpElicitationHandler, McpElicitationOptions, McpElicitationReason, McpElicitationRequest, McpElicitationResult, McpElicitationSchema, McpOAuthRegistration, McpOAuthRegistrationKind, McpProtocolMode, McpServerInstructions, McpServerProtocol, McpSkillConsent, McpSkillConsentView, McpSkillsOptions, McpSkillsSetting, MediaImageModel, MediaKind, MediaModelKind, MediaSpeechModel, MediaTranscriptionModel, ModelTier, NodeResolverOptions, Pipeline, PipelineCondition, PipelineDefinition, PipelineEdge, PipelineEvent, PipelineIssue, PipelineModelConfig, PipelineNode, PipelineNodeContext, PipelineNodeInput, PipelineNodeOutput, PipelineNodeRunner, PipelineNodeSource, PipelineOptions, PipelineResult, PipelineRoute, PipelineRunOptions, PipelineStop, PipelineTraceEntry, PipelineUsage, PipelineValidation, PromptCachingSetting, ProviderType, ReplanCause, ReplanTrigger, RunControl, SafeFetch, SearchEngine, SearchFreshness, SearchProvider, SkillDirectoryListing, StepComplexity, SubagentDefaultTools, SubagentInfo, SubagentIsolation, ThinkingLevel, ThinkingSetting, TierReason, TokenLimitKind, ToolApprovalDecision, ToolApprovalMode, ToolPermission, ToolSelectionStrategy, UsagePhase };
|
package/dist/index.d.ts
CHANGED
|
@@ -876,9 +876,15 @@ interface McpServerProtocol {
|
|
|
876
876
|
* (`selectMcpSkills`), the files of a loaded skill the model may read (`resolveMcpSkillFile`),
|
|
877
877
|
* the preamble a skill's text is loaded under, the mark that carries a server's skills on its
|
|
878
878
|
* tools (`markMcpSkills` / `collectMcpSkillSources`), a skill the model names by URI
|
|
879
|
-
* (`mcpSkillUriRefusal`, `resolveMcpSkillServer`: `skills/get` to that one server only)
|
|
879
|
+
* (`mcpSkillUriRefusal`, `resolveMcpSkillServer`: `skills/get` to that one server only), the
|
|
880
880
|
* person's consent before a skill's text enters the model's context (`decideMcpSkillConsent`,
|
|
881
|
-
* `mcpSkillConsentView`)
|
|
881
|
+
* `mcpSkillConsentView`) and a directory of a skill (`skillDirectoryOf`, `resolveMcpSkillPath`,
|
|
882
|
+
* `skillDirectoryListing` - for every kind of skill - and, for a server that serves
|
|
883
|
+
* `resources/directory/read`, `compareMcpSkillDirectory`) and, for a server the host trusts with
|
|
884
|
+
* its generated skills (`skills: { dynamic: true }`), the snapshot such a skill is read into
|
|
885
|
+
* before anyone is asked (`startMcpSkillWalk`, `takeMcpSkillWalkListing`,
|
|
886
|
+
* `mcpSkillSnapshotBytesRefusal`, `mcpSkillSnapshotEntry`). Pure, no imports (a digest is
|
|
887
|
+
* computed with the platform's WebCrypto, `globalThis.crypto.subtle`, or a function passed in).
|
|
882
888
|
*
|
|
883
889
|
* A server's skills are third-party text. They reach the model only as knowledge, under
|
|
884
890
|
* `mcpSkillPreamble`, and - unless the host vetted the server (`consent: 'never'`) - only after a
|
|
@@ -915,19 +921,47 @@ declare const MCP_SKILL_FILE_MAX_CHARS = 32000;
|
|
|
915
921
|
* naming rules;
|
|
916
922
|
* - a description to show in the catalog;
|
|
917
923
|
* - `resources` is the complete list of its files (Resources): `"dynamic"` content is declined
|
|
918
|
-
* (a host MAY: there is nothing to verify it against
|
|
924
|
+
* (a host MAY: there is nothing to verify it against, and a consent could not bind to its
|
|
925
|
+
* content) - unless `options.dynamic` (the server's `skills: { dynamic: true }`: the host
|
|
926
|
+
* trusts that server with its generated skills, which are then read into a snapshot before
|
|
927
|
+
* anyone is asked, see {@link mcpSkillSnapshotEntry}); anything else is invalid;
|
|
919
928
|
* - every file is `SKILL.md` or a file inside the skill's directory, listed once, with a
|
|
920
929
|
* `sha256:` digest and a byte size, and `SKILL.md` is listed;
|
|
921
930
|
* - at most {@link MCP_SKILL_MAX_RESOURCES} files and {@link MCP_SKILL_MAX_TOTAL_BYTES} bytes
|
|
922
|
-
* (Limits: "both limits are checkable from the entry alone"
|
|
931
|
+
* (Limits: "both limits are checkable from the entry alone"; a generated skill's are counted
|
|
932
|
+
* on what its snapshot reads).
|
|
923
933
|
*/
|
|
924
|
-
declare const mcpSkillEntryRefusal: (entry: unknown
|
|
934
|
+
declare const mcpSkillEntryRefusal: (entry: unknown, options?: {
|
|
935
|
+
dynamic?: boolean;
|
|
936
|
+
}) => string | undefined;
|
|
925
937
|
/**
|
|
926
938
|
* How a skill of a server is introduced wherever its text is shown to the model (its
|
|
927
939
|
* instructions, and each file of it): third-party knowledge that cannot change the rules. The
|
|
928
940
|
* wording is the guard.
|
|
929
941
|
*/
|
|
930
942
|
declare const mcpSkillPreamble: (server: string, uri: string) => string;
|
|
943
|
+
/**
|
|
944
|
+
* The most entries of one `resources/directory/read` answer looked at: the specification's 512
|
|
945
|
+
* files per skill, and room for the directories among them. The rest are not looked at.
|
|
946
|
+
*/
|
|
947
|
+
declare const MCP_SKILL_DIRECTORY_ENTRIES_MAX: number;
|
|
948
|
+
/** What `read_skill_file` answers for a directory of a skill (every path inside the skill). */
|
|
949
|
+
interface SkillDirectoryListing {
|
|
950
|
+
/** The skill's name in the catalog. */
|
|
951
|
+
name: string;
|
|
952
|
+
/** The directory: `.` for the skill's root, else its path inside the skill. */
|
|
953
|
+
directory: string;
|
|
954
|
+
/** Its files (each read with `read_skill_file`), sorted. */
|
|
955
|
+
files: string[];
|
|
956
|
+
/** Its subdirectories (each listed the same way), sorted. */
|
|
957
|
+
directories: string[];
|
|
958
|
+
/** How many more it holds than the two lists show ({@link MCP_SKILL_FILES_SHOWN_MAX} in all). */
|
|
959
|
+
more?: number;
|
|
960
|
+
/** Shown above, but no longer listed by the skill's MCP server: a read of them will fail. */
|
|
961
|
+
notServed?: string[];
|
|
962
|
+
/** The skill changed on its MCP server since it was loaded ({@link mcpSkillDirectoryNote}). */
|
|
963
|
+
note?: string;
|
|
964
|
+
}
|
|
931
965
|
/** The longest URI `load_skill` sends to a server, in characters. */
|
|
932
966
|
declare const MCP_SKILL_URI_MAX_CHARS = 512;
|
|
933
967
|
/**
|
|
@@ -957,6 +991,16 @@ interface McpSkillsOptions {
|
|
|
957
991
|
* vetted (its skills load as soon as the model asks). Whatever the approval mode says.
|
|
958
992
|
*/
|
|
959
993
|
consent?: McpSkillConsent;
|
|
994
|
+
/**
|
|
995
|
+
* `true`: also take this server's GENERATED skills (`"resources": "dynamic"` - no checksums;
|
|
996
|
+
* declined by default). When one would enter the model's context, the agent first reads all
|
|
997
|
+
* of it - `SKILL.md` and, if the server serves `resources/directory/read`, every file its
|
|
998
|
+
* directories list, within the specification's limits - computes each file's digest itself,
|
|
999
|
+
* and holds that copy in memory: the person approves that copy (the consent binds to its
|
|
1000
|
+
* digests), and the model is given only that copy, never a later read. Per server, for a
|
|
1001
|
+
* server you trust with this; there is no agent-wide switch.
|
|
1002
|
+
*/
|
|
1003
|
+
dynamic?: boolean;
|
|
960
1004
|
}
|
|
961
1005
|
/** `skills` on a server's config: `true`, or options (on, with them); `false` / absent: off. */
|
|
962
1006
|
type McpSkillsSetting = boolean | McpSkillsOptions;
|
|
@@ -988,9 +1032,29 @@ interface McpSkillConsentView {
|
|
|
988
1032
|
byUri?: true;
|
|
989
1033
|
/** It sits inside this skill of the same server, whose approval does not cover it. */
|
|
990
1034
|
nestedIn?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Generated by the server (`"resources": "dynamic"`, taken with `skills: { dynamic: true }`):
|
|
1037
|
+
* there are no checksums. The size, the files and the text are those of the copy the agent just
|
|
1038
|
+
* read (its snapshot), and only that copy is used - say so.
|
|
1039
|
+
*/
|
|
1040
|
+
dynamic?: true;
|
|
1041
|
+
/**
|
|
1042
|
+
* (with `dynamic`) The server cannot list the skill's files (no `resources/directory/read`): the
|
|
1043
|
+
* copy is its `SKILL.md` alone, and no other file of it can be read.
|
|
1044
|
+
*/
|
|
1045
|
+
noFileListing?: true;
|
|
991
1046
|
/** Asked for this run only (`'ask'`) or, on a yes, for the agent's life (`'once-per-skill'`). */
|
|
992
1047
|
consent: Exclude<McpSkillConsent, 'never'>;
|
|
993
1048
|
}
|
|
1049
|
+
/**
|
|
1050
|
+
* The most directories one snapshot reads (`resources/directory/read`, the skill's root
|
|
1051
|
+
* included). One read is one directory, its pages walked by the SDK (bounded by its own page cap).
|
|
1052
|
+
*/
|
|
1053
|
+
declare const MCP_SKILL_SNAPSHOT_MAX_DIRECTORIES = 64;
|
|
1054
|
+
/** The deepest directory of a skill a snapshot reads: its root is 0, `templates` 1, ... */
|
|
1055
|
+
declare const MCP_SKILL_SNAPSHOT_MAX_DEPTH = 8;
|
|
1056
|
+
/** The most bytes the snapshots of one agent hold in memory together. */
|
|
1057
|
+
declare const MCP_SKILL_SNAPSHOTS_MAX_BYTES: number;
|
|
994
1058
|
|
|
995
1059
|
declare const SPAWN_SUBAGENT_TOOL = "spawn_subagent";
|
|
996
1060
|
type SubagentDefaultTools = 'read-only' | 'all';
|
|
@@ -2584,5 +2648,5 @@ interface ISubagentToolOptions {
|
|
|
2584
2648
|
*/
|
|
2585
2649
|
declare const createSubagentTool: (opts: ISubagentToolOptions) => Tool;
|
|
2586
2650
|
|
|
2587
|
-
export { DEFAULT_COMPACTION_THRESHOLD_RATIO, DEFAULT_DECISION_CONFIDENCE_THRESHOLD, DEFAULT_DECISION_TIMEOUT_MS, DirSkillStore, ENTERPRISE_MANAGED_AUTHORIZATION_EXTENSION, EgressError, EnterpriseOAuthError, FORGET_SKILL_TOOL, FileOAuthStore, GENERATE_IMAGE_TOOL, GENERATE_SPEECH_TOOL, MCP_ELICITATION_MAX_PER_RUN, MCP_ELICITATION_MAX_PER_TOOL_CALL, MCP_ELICITATION_TIMEOUT_MS, MCP_INSTRUCTIONS_MAX_CHARS_PER_SERVER, MCP_INSTRUCTIONS_MAX_CHARS_TOTAL, MCP_MODERN_PROTOCOL_VERSION, MCP_SKILLS_EXTENSION, MCP_SKILLS_MAX_PER_SERVER, MCP_SKILLS_MAX_TOTAL, MCP_SKILL_BODY_MAX_CHARS, MCP_SKILL_CONSENTS, MCP_SKILL_CONSENT_DEFAULT, MCP_SKILL_DESCRIPTION_MAX_CHARS, MCP_SKILL_FILE_MAX_CHARS, MCP_SKILL_MAX_RESOURCES, MCP_SKILL_MAX_TOTAL_BYTES, MCP_SKILL_URI_MAX_CHARS, MEDIA_AUDIO_TYPES, MEDIA_DEFAULT_MAX_CALLS, MEDIA_FOLDER, MEDIA_IMAGE_TYPES, MEDIA_MAX_ATTACHED_AUDIO, MEDIA_MAX_AUDIO_INPUT_BYTES, MEDIA_MAX_IMAGE_BYTES, MEDIA_MAX_PROMPT_CHARS, MEDIA_MAX_SPEECH_BYTES, MEDIA_MAX_SPEECH_CHARS, MEDIA_MAX_TRANSCRIPT_CHARS, MEDIA_TIMEOUT_MS, MediaBudgetError, MediaError, MemoryOAuthStore, MemorySkillStore, NodeEnterpriseOAuthProvider, NodeOAuthProvider, PIPELINE_LIMITS, PipelineNodeError, PipelineValidationError, REPLAY_NOTE, RUN_JS_TOOL, SAVE_SKILL_TOOL, SEARCH_API_BASE_URL, SEARCH_DEFAULT_MAX_RESULTS, SEARCH_GOOGLE_DEFAULT_MODEL, SEARCH_GOOGLE_NOTE, SEARCH_MAX_QUERY_CHARS, SEARCH_MAX_RESULTS, SEARCH_MAX_SNIPPET_CHARS, SEARCH_MAX_SUMMARY_CHARS, SEARCH_MAX_TITLE_CHARS, SEARCH_MAX_TOTAL_CHARS, SEARCH_MAX_URL_CHARS, SEARCH_PROVIDERS, SPAWN_INPUT_SCHEMA, SPAWN_SUBAGENT_TOOL, SUBAGENT_DEFAULTS, SUBAGENT_MAX_DEPTH_LIMIT, SUMMARY_PREFIX, SandboxUnavailableError, SubagentSpawnError, TOOL_APPROVAL_TIMEOUT_MS, TRANSCRIBE_AUDIO_TOOL, ToolBudgetError, ToolDeniedError, WEB_FETCH_TOOL, WEB_SEARCH_TOOL, acceptMedia, addUsage, adoptSubagentEvent, askDecisionModel, beginMcpOAuth, buildInstructions, buildMediaModelFromStage, buildSearchRequest, checkAuthorizationResponseIssuer, checkEgressUrl, checkLimits, checkRedirect, classifyAddress, compactHistory, createAgent, createEgressTools, createEnterpriseOAuthProvider, createLearning, createMedia, createNodeOAuthProvider, createPipeline, createRunControl, createSafeFetch, createSandboxTool, createSandboxTools, createSearchTools, createSubagentTool, createToolResultClearer, createWebFetchTool, createWebSearchTool, decideToolPermission, decisionModelFromAiSdk, defineSkill, estimateTokens, findSecret, finishMcpOAuth, getCurrentRunId, getCurrentRunSandbox, hostMatches, htmlToText, isCodeExecutionTool, isReadOnlyTool, isReplayedToolOutput, loadSkillsFromDir, markCodeExecution, markReadOnly, matchToolRule, mcpSkillEntryRefusal, mcpSkillPreamble, mcpSkillUriRefusal, mediaUsageOf, mergeProviderOptions, nodeResolver, normalizeMcpElicitationSchema, normalizePipeline, normalizeSkillName, normalizeUsage, parseSearchResponse, parseSkillMarkdown, redactHeaders, renderMcpInstructions, renderPipelineNodeInput, resolveCompaction, resolveDynamicSubagents, resolveEgressPolicy, resolveLimits, resolvePromptCaching, resolveSandboxLimits, resolveThinking, sanitizeSearchResults, searchEgressPolicy, searchStatusMessage, searchToolResult, searchTools, sniffMediaType, testPipelineCondition, truncateToolModelOutput, validateMcpElicitationContent, validatePipeline, withRollingBreakpoint, withToolOutputLimit, wrapTranscript };
|
|
2588
|
-
export type { AgentEvent, AgentStage, BudgetKind, DecisionFallbackReason, DecisionPoint, EgressErrorCode, EnterpriseAssertionAlgorithm, EnterpriseAssertionAudience, EnterpriseAssertionType, EnterpriseOAuthHop, EnterpriseOAuthLog, EnterprisePrivateKey, EscalationReason, EventHandler, IAgent, IAgentConfig, IAgentRunOptions, IAgentRunResult, IAgentStageOverride, IAiSdkDecisionOptions, IClearedInfo, ICloseOptions, ICompactHistoryOptions, ICompactHistoryResult, ICompactOptions, ICompactResult, ICompactionConfig, IConversationTurn, IDecisionAnswer, IDecisionCallOptions, IDecisionConfig, IDecisionEvent, IDecisionModel, IDecisionOption, IDecisionOutcome, IDecisionQuestion, IDynamicSubagentsConfig, IEgressPolicy, IEnterpriseIdpOptions, IEnterpriseOAuthProviderOptions, IEscalationConfig, ILearning, ILearningConfig, ILimitBreach, IMcpHttpServerConfig, IMcpServerConfig, IMcpSkillOrigin, IMcpStdioServerConfig, IMedia, IMediaConfig, IMediaFile, IMediaModelSpec, IMediaUsage, INodeOAuthProviderOptions, IOAuthRequestOptions, IOAuthStore, IPersistence, IPlan, IPlanStep, IResolvedAddress, IResolvedDynamicSubagents, IResolvedThinking, IRunFile, IRunSnapshot, ISandboxConfig, ISandboxError, ISandboxLimits, ISandboxResult, ISanitizedSearch, ISaveSkillInput, ISearchAnswer, ISearchConfig, ISearchOptions, ISearchRequest, ISearchResult, ISearchToolResult, ISearchToolsOptions, ISearchUsage, ISkill, ISkillOrigin, ISkillStore, IStepEscalation, IStepResult, IStepStartInfo, ISubagentProfile, ISubagentToolOptions, ISubagentsConfig, IThinkingConfig, ITokenLimits, IToolApprovalConfig, IToolApprovalContext, IToolApprovalRequest, IToolCatalogEntry, IToolDecision, IToolDecisionInput, IToolResultClearing, ITranscription, IUsage, IWebSearchOptions, LogLevel, McpElicitationContent, McpElicitationContext, McpElicitationFieldSchema, McpElicitationHandler, McpElicitationOptions, McpElicitationReason, McpElicitationRequest, McpElicitationResult, McpElicitationSchema, McpOAuthRegistration, McpOAuthRegistrationKind, McpProtocolMode, McpServerInstructions, McpServerProtocol, McpSkillConsent, McpSkillConsentView, McpSkillsOptions, McpSkillsSetting, MediaImageModel, MediaKind, MediaModelKind, MediaSpeechModel, MediaTranscriptionModel, ModelTier, NodeResolverOptions, Pipeline, PipelineCondition, PipelineDefinition, PipelineEdge, PipelineEvent, PipelineIssue, PipelineModelConfig, PipelineNode, PipelineNodeContext, PipelineNodeInput, PipelineNodeOutput, PipelineNodeRunner, PipelineNodeSource, PipelineOptions, PipelineResult, PipelineRoute, PipelineRunOptions, PipelineStop, PipelineTraceEntry, PipelineUsage, PipelineValidation, PromptCachingSetting, ProviderType, ReplanCause, ReplanTrigger, RunControl, SafeFetch, SearchEngine, SearchFreshness, SearchProvider, StepComplexity, SubagentDefaultTools, SubagentInfo, SubagentIsolation, ThinkingLevel, ThinkingSetting, TierReason, TokenLimitKind, ToolApprovalDecision, ToolApprovalMode, ToolPermission, ToolSelectionStrategy, UsagePhase };
|
|
2651
|
+
export { DEFAULT_COMPACTION_THRESHOLD_RATIO, DEFAULT_DECISION_CONFIDENCE_THRESHOLD, DEFAULT_DECISION_TIMEOUT_MS, DirSkillStore, ENTERPRISE_MANAGED_AUTHORIZATION_EXTENSION, EgressError, EnterpriseOAuthError, FORGET_SKILL_TOOL, FileOAuthStore, GENERATE_IMAGE_TOOL, GENERATE_SPEECH_TOOL, MCP_ELICITATION_MAX_PER_RUN, MCP_ELICITATION_MAX_PER_TOOL_CALL, MCP_ELICITATION_TIMEOUT_MS, MCP_INSTRUCTIONS_MAX_CHARS_PER_SERVER, MCP_INSTRUCTIONS_MAX_CHARS_TOTAL, MCP_MODERN_PROTOCOL_VERSION, MCP_SKILLS_EXTENSION, MCP_SKILLS_MAX_PER_SERVER, MCP_SKILLS_MAX_TOTAL, MCP_SKILL_BODY_MAX_CHARS, MCP_SKILL_CONSENTS, MCP_SKILL_CONSENT_DEFAULT, MCP_SKILL_DESCRIPTION_MAX_CHARS, MCP_SKILL_DIRECTORY_ENTRIES_MAX, MCP_SKILL_FILE_MAX_CHARS, MCP_SKILL_MAX_RESOURCES, MCP_SKILL_MAX_TOTAL_BYTES, MCP_SKILL_SNAPSHOTS_MAX_BYTES, MCP_SKILL_SNAPSHOT_MAX_DEPTH, MCP_SKILL_SNAPSHOT_MAX_DIRECTORIES, MCP_SKILL_URI_MAX_CHARS, MEDIA_AUDIO_TYPES, MEDIA_DEFAULT_MAX_CALLS, MEDIA_FOLDER, MEDIA_IMAGE_TYPES, MEDIA_MAX_ATTACHED_AUDIO, MEDIA_MAX_AUDIO_INPUT_BYTES, MEDIA_MAX_IMAGE_BYTES, MEDIA_MAX_PROMPT_CHARS, MEDIA_MAX_SPEECH_BYTES, MEDIA_MAX_SPEECH_CHARS, MEDIA_MAX_TRANSCRIPT_CHARS, MEDIA_TIMEOUT_MS, MediaBudgetError, MediaError, MemoryOAuthStore, MemorySkillStore, NodeEnterpriseOAuthProvider, NodeOAuthProvider, PIPELINE_LIMITS, PipelineNodeError, PipelineValidationError, REPLAY_NOTE, RUN_JS_TOOL, SAVE_SKILL_TOOL, SEARCH_API_BASE_URL, SEARCH_DEFAULT_MAX_RESULTS, SEARCH_GOOGLE_DEFAULT_MODEL, SEARCH_GOOGLE_NOTE, SEARCH_MAX_QUERY_CHARS, SEARCH_MAX_RESULTS, SEARCH_MAX_SNIPPET_CHARS, SEARCH_MAX_SUMMARY_CHARS, SEARCH_MAX_TITLE_CHARS, SEARCH_MAX_TOTAL_CHARS, SEARCH_MAX_URL_CHARS, SEARCH_PROVIDERS, SPAWN_INPUT_SCHEMA, SPAWN_SUBAGENT_TOOL, SUBAGENT_DEFAULTS, SUBAGENT_MAX_DEPTH_LIMIT, SUMMARY_PREFIX, SandboxUnavailableError, SubagentSpawnError, TOOL_APPROVAL_TIMEOUT_MS, TRANSCRIBE_AUDIO_TOOL, ToolBudgetError, ToolDeniedError, WEB_FETCH_TOOL, WEB_SEARCH_TOOL, acceptMedia, addUsage, adoptSubagentEvent, askDecisionModel, beginMcpOAuth, buildInstructions, buildMediaModelFromStage, buildSearchRequest, checkAuthorizationResponseIssuer, checkEgressUrl, checkLimits, checkRedirect, classifyAddress, compactHistory, createAgent, createEgressTools, createEnterpriseOAuthProvider, createLearning, createMedia, createNodeOAuthProvider, createPipeline, createRunControl, createSafeFetch, createSandboxTool, createSandboxTools, createSearchTools, createSubagentTool, createToolResultClearer, createWebFetchTool, createWebSearchTool, decideToolPermission, decisionModelFromAiSdk, defineSkill, estimateTokens, findSecret, finishMcpOAuth, getCurrentRunId, getCurrentRunSandbox, hostMatches, htmlToText, isCodeExecutionTool, isReadOnlyTool, isReplayedToolOutput, loadSkillsFromDir, markCodeExecution, markReadOnly, matchToolRule, mcpSkillEntryRefusal, mcpSkillPreamble, mcpSkillUriRefusal, mediaUsageOf, mergeProviderOptions, nodeResolver, normalizeMcpElicitationSchema, normalizePipeline, normalizeSkillName, normalizeUsage, parseSearchResponse, parseSkillMarkdown, redactHeaders, renderMcpInstructions, renderPipelineNodeInput, resolveCompaction, resolveDynamicSubagents, resolveEgressPolicy, resolveLimits, resolvePromptCaching, resolveSandboxLimits, resolveThinking, sanitizeSearchResults, searchEgressPolicy, searchStatusMessage, searchToolResult, searchTools, sniffMediaType, testPipelineCondition, truncateToolModelOutput, validateMcpElicitationContent, validatePipeline, withRollingBreakpoint, withToolOutputLimit, wrapTranscript };
|
|
2652
|
+
export type { AgentEvent, AgentStage, BudgetKind, DecisionFallbackReason, DecisionPoint, EgressErrorCode, EnterpriseAssertionAlgorithm, EnterpriseAssertionAudience, EnterpriseAssertionType, EnterpriseOAuthHop, EnterpriseOAuthLog, EnterprisePrivateKey, EscalationReason, EventHandler, IAgent, IAgentConfig, IAgentRunOptions, IAgentRunResult, IAgentStageOverride, IAiSdkDecisionOptions, IClearedInfo, ICloseOptions, ICompactHistoryOptions, ICompactHistoryResult, ICompactOptions, ICompactResult, ICompactionConfig, IConversationTurn, IDecisionAnswer, IDecisionCallOptions, IDecisionConfig, IDecisionEvent, IDecisionModel, IDecisionOption, IDecisionOutcome, IDecisionQuestion, IDynamicSubagentsConfig, IEgressPolicy, IEnterpriseIdpOptions, IEnterpriseOAuthProviderOptions, IEscalationConfig, ILearning, ILearningConfig, ILimitBreach, IMcpHttpServerConfig, IMcpServerConfig, IMcpSkillOrigin, IMcpStdioServerConfig, IMedia, IMediaConfig, IMediaFile, IMediaModelSpec, IMediaUsage, INodeOAuthProviderOptions, IOAuthRequestOptions, IOAuthStore, IPersistence, IPlan, IPlanStep, IResolvedAddress, IResolvedDynamicSubagents, IResolvedThinking, IRunFile, IRunSnapshot, ISandboxConfig, ISandboxError, ISandboxLimits, ISandboxResult, ISanitizedSearch, ISaveSkillInput, ISearchAnswer, ISearchConfig, ISearchOptions, ISearchRequest, ISearchResult, ISearchToolResult, ISearchToolsOptions, ISearchUsage, ISkill, ISkillOrigin, ISkillStore, IStepEscalation, IStepResult, IStepStartInfo, ISubagentProfile, ISubagentToolOptions, ISubagentsConfig, IThinkingConfig, ITokenLimits, IToolApprovalConfig, IToolApprovalContext, IToolApprovalRequest, IToolCatalogEntry, IToolDecision, IToolDecisionInput, IToolResultClearing, ITranscription, IUsage, IWebSearchOptions, LogLevel, McpElicitationContent, McpElicitationContext, McpElicitationFieldSchema, McpElicitationHandler, McpElicitationOptions, McpElicitationReason, McpElicitationRequest, McpElicitationResult, McpElicitationSchema, McpOAuthRegistration, McpOAuthRegistrationKind, McpProtocolMode, McpServerInstructions, McpServerProtocol, McpSkillConsent, McpSkillConsentView, McpSkillsOptions, McpSkillsSetting, MediaImageModel, MediaKind, MediaModelKind, MediaSpeechModel, MediaTranscriptionModel, ModelTier, NodeResolverOptions, Pipeline, PipelineCondition, PipelineDefinition, PipelineEdge, PipelineEvent, PipelineIssue, PipelineModelConfig, PipelineNode, PipelineNodeContext, PipelineNodeInput, PipelineNodeOutput, PipelineNodeRunner, PipelineNodeSource, PipelineOptions, PipelineResult, PipelineRoute, PipelineRunOptions, PipelineStop, PipelineTraceEntry, PipelineUsage, PipelineValidation, PromptCachingSetting, ProviderType, ReplanCause, ReplanTrigger, RunControl, SafeFetch, SearchEngine, SearchFreshness, SearchProvider, SkillDirectoryListing, StepComplexity, SubagentDefaultTools, SubagentInfo, SubagentIsolation, ThinkingLevel, ThinkingSetting, TierReason, TokenLimitKind, ToolApprovalDecision, ToolApprovalMode, ToolPermission, ToolSelectionStrategy, UsagePhase };
|