@dudko.dev/agent-web 0.0.51 → 0.0.53
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 +23 -8
- package/dist/agent-web.js +160 -160
- package/dist/agent-web.js.map +1 -1
- package/dist/{chunk-EUJWS42C.js → chunk-MJSVRPBP.js} +26 -13
- package/dist/chunk-MJSVRPBP.js.map +1 -0
- package/dist/fit-reference-worker.d.cts +1 -1
- package/dist/fit-reference-worker.d.ts +1 -1
- package/dist/index.cjs +300 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +108 -14
- package/dist/index.d.ts +108 -14
- package/dist/index.js +275 -42
- package/dist/index.js.map +1 -1
- package/dist/mcp.cjs +88 -11
- package/dist/mcp.cjs.map +1 -1
- package/dist/mcp.d.cts +56 -10
- package/dist/mcp.d.ts +56 -10
- package/dist/mcp.js +88 -11
- package/dist/mcp.js.map +1 -1
- package/dist/{media-fit-worker-CFK2z8LF.d.cts → media-fit-worker-Do1qzteo.d.cts} +12 -2
- package/dist/{media-fit-worker-CFK2z8LF.d.ts → media-fit-worker-Do1qzteo.d.ts} +12 -2
- package/dist/{sandbox-X6T4ZOEQ.js → sandbox-WICP36ZL.js} +2 -2
- package/dist/{skills-ufoyTJ-B.d.cts → skills-BC8yMqpN.d.cts} +1 -1
- package/dist/{skills-ufoyTJ-B.d.ts → skills-BC8yMqpN.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-EUJWS42C.js.map +0 -1
- /package/dist/{sandbox-X6T4ZOEQ.js.map → sandbox-WICP36ZL.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LanguageModel, Experimental_DecisionModel, Tool, ToolSet, FilePart, ImageModel, SpeechModel, TranscriptionModel, SystemModelMessage, ModelMessage, generateText, streamText } from 'ai';
|
|
2
|
-
import { P as McpSkillConsentView, B as McpElicitationSchema, y as McpElicitationReason, e as McpAppToolResult, Q as McpSkillSource, R as McpSkillConsent, S as McpSkillGrants, T as McpSkillRunConsent, U as McpSkillSnapshotMemory } from './skills-
|
|
3
|
-
export { g as MCP_APPS_EXTENSION, k as MCP_APP_MAX_HTML_CHARS, l as MCP_APP_MAX_RESULT_CHARS, m as MCP_APP_MIME_TYPE, V as MCP_SKILLS_EXTENSION, W as MCP_SKILLS_MAX_PER_SERVER, X as MCP_SKILLS_MAX_TOTAL, Y as MCP_SKILL_BODY_MAX_CHARS, Z as MCP_SKILL_CONSENTS, _ as MCP_SKILL_CONSENT_DEFAULT, $ as MCP_SKILL_DESCRIPTION_MAX_CHARS, a0 as MCP_SKILL_DIRECTORY_ENTRIES_MAX, a1 as MCP_SKILL_FILE_MAX_CHARS, a2 as MCP_SKILL_MAX_RESOURCES, a3 as MCP_SKILL_MAX_TOTAL_BYTES, a4 as MCP_SKILL_SNAPSHOTS_MAX_BYTES, a5 as MCP_SKILL_SNAPSHOT_MAX_DEPTH, a6 as MCP_SKILL_SNAPSHOT_MAX_DIRECTORIES, a7 as MCP_SKILL_URI_MAX_CHARS, q as McpAppCsp, r as McpAppPermissions,
|
|
2
|
+
import { P as McpSkillConsentView, B as McpElicitationSchema, y as McpElicitationReason, e as McpAppToolResult, Q as McpSkillSource, R as McpSkillConsent, S as McpSkillGrants, T as McpSkillRunConsent, U as McpSkillSnapshotMemory } from './skills-BC8yMqpN.cjs';
|
|
3
|
+
export { g as MCP_APPS_EXTENSION, k as MCP_APP_MAX_HTML_CHARS, l as MCP_APP_MAX_RESULT_CHARS, m as MCP_APP_MIME_TYPE, V as MCP_SKILLS_EXTENSION, W as MCP_SKILLS_MAX_PER_SERVER, X as MCP_SKILLS_MAX_TOTAL, Y as MCP_SKILL_BODY_MAX_CHARS, Z as MCP_SKILL_CONSENTS, _ as MCP_SKILL_CONSENT_DEFAULT, $ as MCP_SKILL_DESCRIPTION_MAX_CHARS, a0 as MCP_SKILL_DIRECTORY_ENTRIES_MAX, a1 as MCP_SKILL_FILE_MAX_CHARS, a2 as MCP_SKILL_MAX_RESOURCES, a3 as MCP_SKILL_MAX_TOTAL_BYTES, a4 as MCP_SKILL_SNAPSHOTS_MAX_BYTES, a5 as MCP_SKILL_SNAPSHOT_MAX_DEPTH, a6 as MCP_SKILL_SNAPSHOT_MAX_DIRECTORIES, a7 as MCP_SKILL_URI_MAX_CHARS, q as McpAppCsp, r as McpAppPermissions, c as McpAppResource, b as McpAppVisibility, x as McpElicitationFieldSchema, a8 as McpSkillsOptions, f as McpSkillsSetting, a9 as SkillDirectoryListing, G as mcpAppOrigin, aa as mcpSkillEntryRefusal, ab as mcpSkillPreamble, ac as mcpSkillUriRefusal } from './skills-BC8yMqpN.cjs';
|
|
4
4
|
import { PipelineEvent, PipelineNode, PipelineDefinition, PipelineResult, PipelineNodeRunner } from './pipeline-engine.cjs';
|
|
5
5
|
export { PIPELINE_LIMITS, PIPELINE_ROUTER_SYSTEM, PipelineAbortBehaviour, PipelineCondition, PipelineEdge, PipelineGraphRunOptions, PipelineIssue, PipelineNodeContext, PipelineNodeError, PipelineNodeEvent, PipelineNodeInput, PipelineNodeOutput, PipelineNodeSource, PipelinePlan, PipelineRoute, PipelineStop, PipelineTraceEntry, PipelineUsage, PipelineValidation, PipelineValidationError, matchPipelineRoute, normalizePipeline, preparePipeline, renderPipelineNodeInput, renderPipelineRoutePrompt, runPipelineGraph, testPipelineCondition, validatePipeline } from './pipeline-engine.cjs';
|
|
6
|
-
import { I as IReferenceUse, M as MediaFitReference, a as IReferenceResult } from './media-fit-worker-
|
|
7
|
-
export { F as FitReferenceWorker,
|
|
6
|
+
import { I as IReferenceUse, M as MediaFitReference, a as IGeneratedPictures, b as IReferenceResult } from './media-fit-worker-Do1qzteo.cjs';
|
|
7
|
+
export { F as FitReferenceWorker, c as FitReferenceWorkerScope, G as GENERATE_IMAGE_TOOL, d as GENERATE_SPEECH_TOOL, e as IFitReferenceOptions, f as IFittedReference, g as IImageSize, h as IMediaUsage, i as IReferenceBounds, j as IReferencePicture, k as MEDIA_AUDIO_TYPES, l as MEDIA_DEFAULT_MAX_CALLS, m as MEDIA_FIT_TIMEOUT_MS, n as MEDIA_FOLDER, o as MEDIA_IMAGE_TYPES, p as MEDIA_MAX_ATTACHED_AUDIO, q as MEDIA_MAX_AUDIO_INPUT_BYTES, r as MEDIA_MAX_IMAGE_BYTES, s as MEDIA_MAX_PROMPT_CHARS, t as MEDIA_MAX_REFERENCE_BYTES, u as MEDIA_MAX_REFERENCE_IMAGES, v as MEDIA_MAX_REFERENCE_SIDE, w as MEDIA_MAX_REFERENCE_SOURCE_BYTES, x as MEDIA_MAX_REFERENCE_SOURCE_PIXELS, y as MEDIA_MAX_REFERENCE_TOTAL_BYTES, z as MEDIA_MAX_SPEECH_BYTES, A as MEDIA_MAX_SPEECH_CHARS, B as MEDIA_MAX_TRANSCRIPT_CHARS, C as MEDIA_REFERENCE_TYPES, D as MEDIA_TIMEOUT_MS, E as MediaBudgetError, H as MediaError, J as MediaKind, S as ServeFitReferenceOptions, T as TRANSCRIBE_AUDIO_TOOL, K as acceptMedia, L as acceptReference, N as acceptReferenceSource, O as fitReferenceImage, P as fitReferenceInWorker, Q as imageDimensions, R as mediaUsageOf, U as serveFitReferenceWorker, V as sniffMediaType, W as wrapTranscript } from './media-fit-worker-Do1qzteo.cjs';
|
|
8
8
|
import { CredentialStore } from './secrets.cjs';
|
|
9
9
|
export { EncryptedBlob, MemoryCredentialStore, VaultCredentialStore, decryptJSON, encryptJSON, getOrCreateVaultKey } from './secrets.cjs';
|
|
10
10
|
import { A as AgentToolSet, a as AgentTool } from './types-DwSMj_Xs.cjs';
|
|
@@ -607,6 +607,12 @@ interface ToolApprovalRequest {
|
|
|
607
607
|
* approval mode and the rules say.
|
|
608
608
|
*/
|
|
609
609
|
skill?: McpSkillConsentView;
|
|
610
|
+
/**
|
|
611
|
+
* Set when an explicit rule asked (`toolApproval.rules`, `'ask'`): its name or pattern. Such a
|
|
612
|
+
* request is asked EVERY time - no remembered "always allow" answers a rule - so a UI should
|
|
613
|
+
* not offer "Always allow" on it (the React package's card does not, by default).
|
|
614
|
+
*/
|
|
615
|
+
rule?: string;
|
|
610
616
|
}
|
|
611
617
|
/** Who asks when an MCP App asks (see `ToolApprovalRequest.app`). */
|
|
612
618
|
interface ToolApprovalApp {
|
|
@@ -674,11 +680,18 @@ declare const isReadOnlyTool: (tool: Tool | undefined) => boolean;
|
|
|
674
680
|
/** The most specific matching rule: an exact name, else the longest glob. Pure. */
|
|
675
681
|
declare const matchRule: (rules: Record<string, ToolPermission> | undefined, toolName: string) => ToolPermission | undefined;
|
|
676
682
|
/**
|
|
677
|
-
* What the gate does for one call, before any human is involved. Order:
|
|
678
|
-
*
|
|
683
|
+
* What the gate does for one call, before any human is involved. Pure. Order:
|
|
684
|
+
*
|
|
685
|
+
* 1. the most specific RULE: `'deny'` refuses, `'ask'` asks - EVERY time: no remembered "always
|
|
686
|
+
* allow" answers it ("ask every time" means every time) -, `'allow'` runs;
|
|
687
|
+
* 2. the MODE refusing the call (`'read-only'`, a tool that may write) - no grant outranks it;
|
|
688
|
+
* 3. a remembered "always allow" (the model's for the agent's life, an app's by `appGrantKey`);
|
|
689
|
+
* 4. the mode's default.
|
|
690
|
+
*
|
|
679
691
|
* Then one rule that only ever tightens: a call that runs code (`codeExecution`) while the run
|
|
680
692
|
* acts on an MCP server's skill (`mcpSkills`) is asked when it would have been allowed - by the
|
|
681
|
-
* mode, a rule or an "always allow" alike. A deny stays a deny.
|
|
693
|
+
* mode, a rule or an "always allow" alike. A deny stays a deny. The same order for the model's
|
|
694
|
+
* calls, a helper's and an app's (`Agent.approveAppToolCall`).
|
|
682
695
|
*/
|
|
683
696
|
declare const decideToolPermission: (opts: {
|
|
684
697
|
toolName: string;
|
|
@@ -1091,6 +1104,11 @@ type AgentEventBody =
|
|
|
1091
1104
|
* not a tool call (see `ToolApprovalRequest.skill`): the server's words, as plain text.
|
|
1092
1105
|
*/
|
|
1093
1106
|
skill?: McpSkillConsentView;
|
|
1107
|
+
/**
|
|
1108
|
+
* Set when an explicit `'ask'` rule asked: its name or pattern (see
|
|
1109
|
+
* `ToolApprovalRequest.rule`). No remembered "always allow" answers it.
|
|
1110
|
+
*/
|
|
1111
|
+
rule?: string;
|
|
1094
1112
|
}
|
|
1095
1113
|
/** A consent decision: from the user, or `automatic` (policy denial). */
|
|
1096
1114
|
| {
|
|
@@ -2591,6 +2609,20 @@ interface IMediaConfig {
|
|
|
2591
2609
|
fitReference?: MediaFitReference;
|
|
2592
2610
|
/** One call of `fitReference`, in ms (its `signal` is aborted then). Default 30 000. */
|
|
2593
2611
|
fitTimeoutMs?: number;
|
|
2612
|
+
/**
|
|
2613
|
+
* Show the executor's model the picture `generate_image` made, ONCE, in the request right after
|
|
2614
|
+
* the call (an image part of that tool result), so it can check it against the request, make a
|
|
2615
|
+
* wrong one again, and say later what it drew. Default: on where the step's model reads
|
|
2616
|
+
* pictures (`inputs.images` / `vision`, else `supportsImages`; unknown = no) and its adapter
|
|
2617
|
+
* carries a picture in a tool result (Gemini, Claude, OpenAI's Responses API, xAI, DeepSeek);
|
|
2618
|
+
* `true`: on for any model whose adapter carries it; `false`: off, the path alone as before.
|
|
2619
|
+
* Never for an adapter that would send it as text (OpenAI's Chat Completions, an
|
|
2620
|
+
* OpenAI-compatible endpoint), nor in the prompted tool mode. A picture over 1568 px or
|
|
2621
|
+
* 3.75 MiB is shown as a smaller copy made by `fitReference`, or not at all. About
|
|
2622
|
+
* 1 100-1 600 input tokens a picture. The bytes reach the model call only: never an event, the
|
|
2623
|
+
* trace, a checkpoint, memory or the result.
|
|
2624
|
+
*/
|
|
2625
|
+
viewGenerated?: boolean;
|
|
2594
2626
|
/** Mounts `generate_speech` (text becomes an audio file in the workspace). */
|
|
2595
2627
|
speechModel?: MediaSpeechModel | IMediaModelSpec;
|
|
2596
2628
|
/**
|
|
@@ -2633,6 +2665,11 @@ interface IMediaFile {
|
|
|
2633
2665
|
* paths, and - when they were not - the sentence the model reads. Absent without `images`.
|
|
2634
2666
|
*/
|
|
2635
2667
|
references?: IReferenceResult;
|
|
2668
|
+
/**
|
|
2669
|
+
* `generate_image` on a step whose model is shown pictures, when this one is NOT shown (too
|
|
2670
|
+
* large and not made smaller): the sentence the model reads. Absent otherwise.
|
|
2671
|
+
*/
|
|
2672
|
+
pictureNote?: string;
|
|
2636
2673
|
}
|
|
2637
2674
|
/** What `transcribe_audio` returns. */
|
|
2638
2675
|
interface ITranscription {
|
|
@@ -2653,12 +2690,21 @@ interface IMediaRun {
|
|
|
2653
2690
|
/** The run's usage so far: the cap counts the media calls in it (a resumed run's included). */
|
|
2654
2691
|
usage?: () => IUsage;
|
|
2655
2692
|
runId?: string;
|
|
2693
|
+
/** The run's pictures for its model (`media.viewGenerated`). */
|
|
2694
|
+
pictures?: IGeneratedPictures;
|
|
2656
2695
|
}
|
|
2657
2696
|
interface IMedia {
|
|
2658
2697
|
/** The tools the configured models switch on (maybe none). */
|
|
2659
2698
|
tools: AgentToolSet;
|
|
2660
2699
|
/** True when audio attachments are transcribed (a transcription model, not switched off). */
|
|
2661
2700
|
transcribes: boolean;
|
|
2701
|
+
/**
|
|
2702
|
+
* Set when `generate_image`'s pictures may be shown to the executor's model: the host's
|
|
2703
|
+
* `media.viewGenerated` (undefined = by the model). The runner gives each run its pictures.
|
|
2704
|
+
*/
|
|
2705
|
+
pictures?: {
|
|
2706
|
+
setting: boolean | undefined;
|
|
2707
|
+
};
|
|
2662
2708
|
/**
|
|
2663
2709
|
* Transcribe the audio among a run's attachments: the goal with the transcripts under it, and
|
|
2664
2710
|
* the attachments that are left for the language model.
|
|
@@ -3450,6 +3496,16 @@ interface AgentContext {
|
|
|
3450
3496
|
plannerMode: ToolCallMode;
|
|
3451
3497
|
/** Tool-mode for the executor (from the executor model). */
|
|
3452
3498
|
executorMode: ToolCallMode;
|
|
3499
|
+
/**
|
|
3500
|
+
* Set when `generate_image`'s pictures may be shown to the executor's model
|
|
3501
|
+
* (`media.viewGenerated` not off): the run's pictures, the host's setting, and whether a model
|
|
3502
|
+
* is known to read pictures (the same answer the attachments get).
|
|
3503
|
+
*/
|
|
3504
|
+
pictures?: {
|
|
3505
|
+
desk: IGeneratedPictures;
|
|
3506
|
+
setting: boolean | undefined;
|
|
3507
|
+
readsImages: (model: LanguageModel) => boolean | undefined;
|
|
3508
|
+
};
|
|
3453
3509
|
/** The run's tools (host + MCP + built-ins), already wrapped by the consent gate. */
|
|
3454
3510
|
tools: AgentToolSet;
|
|
3455
3511
|
/** The catalogue as the planner sees it (condensed in search mode). */
|
|
@@ -3678,15 +3734,20 @@ interface Agent {
|
|
|
3678
3734
|
reloadLearnedSkills(): Promise<Skill[]>;
|
|
3679
3735
|
/**
|
|
3680
3736
|
* Ask this agent's consent gate about a tool call an MCP App wants to make (`./mcp` with
|
|
3681
|
-
* `apps: true`: the app's `tools/call`), not the model. The same `toolApproval` - its
|
|
3682
|
-
* its handler (`onRequest`), its timeout -
|
|
3683
|
-
*
|
|
3684
|
-
*
|
|
3737
|
+
* `apps: true`: the app's `tools/call`), not the model. The same `toolApproval` - its mode,
|
|
3738
|
+
* its rules, its handler (`onRequest`), its timeout - as the model's calls: 'autopilot' asks
|
|
3739
|
+
* nothing (writes and destructive tools included: the mode the person chose), an explicit
|
|
3740
|
+
* rule still wins ('ask' asks, 'deny' refuses), 'ask-writes' / 'ask-all' / 'read-only' as for
|
|
3741
|
+
* the model. "Always allow" given to an app is remembered for apps only, apart from the
|
|
3742
|
+
* model's, and for that app only (`appGrantKey`: the server's identity on its connection, the
|
|
3743
|
+
* tool and the app's resource) - in `options.remembered` when the host passes a set (so it
|
|
3744
|
+
* outlives this agent: a host that builds a new agent keeps it), else in a set of this
|
|
3745
|
+
* agent's. It never outranks a refusal: a rule's 'deny' and 'read-only' are decided first.
|
|
3685
3746
|
* `onEvent` receives `tool.approval-requested` (with `app`) and `tool.approval-resolved`; a UI
|
|
3686
3747
|
* shows the request as the app's. Resolves when the call may go; throws `ToolDeniedError`.
|
|
3687
3748
|
* Make the call afterwards with `ConnectedMcp.apps.callAppTool`.
|
|
3688
3749
|
*/
|
|
3689
|
-
approveAppToolCall(call: AppToolCallRequest, onEvent?: (event: AgentEvent) => void, signal?: AbortSignal): Promise<void>;
|
|
3750
|
+
approveAppToolCall(call: AppToolCallRequest, onEvent?: (event: AgentEvent) => void, signal?: AbortSignal, options?: AppToolCallOptions): Promise<void>;
|
|
3690
3751
|
/**
|
|
3691
3752
|
* Answer a completion an MCP App asks for (its `sampling/createMessage`) with this agent's
|
|
3692
3753
|
* synthesizer model - outside any run, with no tools and none of the agent's context. The
|
|
@@ -3742,6 +3803,23 @@ interface AppSamplingOptions {
|
|
|
3742
3803
|
/** The memory session whose `sessionUsage` is charged (default `config.sessionId`). */
|
|
3743
3804
|
sessionId?: string;
|
|
3744
3805
|
}
|
|
3806
|
+
/** How `Agent.approveAppToolCall` keeps an app's "always allow". */
|
|
3807
|
+
interface AppToolCallOptions {
|
|
3808
|
+
/**
|
|
3809
|
+
* What apps were given "always allow" for, by `appGrantKey` (the server's identity on its
|
|
3810
|
+
* connection, the tool, the app's resource - opaque to the host). The gate reads it and adds to
|
|
3811
|
+
* it; a host that keeps one set for the page's life (the React package's `useAgent` does) keeps
|
|
3812
|
+
* the grant across new agents. Absent: a set of this agent's.
|
|
3813
|
+
*/
|
|
3814
|
+
remembered?: Set<string>;
|
|
3815
|
+
}
|
|
3816
|
+
/**
|
|
3817
|
+
* What an app's "always allow" is kept under: the server's identity on its connection
|
|
3818
|
+
* (`serverId`, else its name), the tool (`server__tool`) and the app's resource. So it is that
|
|
3819
|
+
* app's alone - another app of the server, or another server given the same name later (another
|
|
3820
|
+
* connection), is asked again.
|
|
3821
|
+
*/
|
|
3822
|
+
declare const appGrantKey: (call: AppToolCallRequest) => string;
|
|
3745
3823
|
/** A tool call an MCP App asks for (see `Agent.approveAppToolCall`). */
|
|
3746
3824
|
interface AppToolCallRequest {
|
|
3747
3825
|
/** The name the consent rules match: the tool's key, `server__tool` (`McpAppTool.key`). */
|
|
@@ -3755,6 +3833,12 @@ interface AppToolCallRequest {
|
|
|
3755
3833
|
input: unknown;
|
|
3756
3834
|
/** The server marked the tool read-only (`McpAppTool.readOnly`). */
|
|
3757
3835
|
readOnly: boolean;
|
|
3836
|
+
/**
|
|
3837
|
+
* The server's identity on its connection (`McpAppTool.serverId`): "always allow" is kept
|
|
3838
|
+
* under it, so a server removed and another added under the same name inherits nothing.
|
|
3839
|
+
* Absent (an older host): the server's name.
|
|
3840
|
+
*/
|
|
3841
|
+
serverId?: string;
|
|
3758
3842
|
}
|
|
3759
3843
|
/**
|
|
3760
3844
|
* Create a headless plan → execute → replan → synthesize agent. Models are
|
|
@@ -4627,6 +4711,11 @@ interface ToolLoopOptions {
|
|
|
4627
4711
|
messages?: ModelMessage[];
|
|
4628
4712
|
/** In native mode: the callable tools. In prompted mode: used to dispatch salvaged calls. */
|
|
4629
4713
|
tools: ToolSet;
|
|
4714
|
+
/**
|
|
4715
|
+
* Native mode, `media.viewGenerated`: the run's pictures - each one generate_image leaves is put
|
|
4716
|
+
* into the next round's request (its call's result) and taken out of every round after it.
|
|
4717
|
+
*/
|
|
4718
|
+
pictures?: IGeneratedPictures;
|
|
4630
4719
|
/**
|
|
4631
4720
|
* Restrict callable tools to these names (plan-narrowed / search). Native mode
|
|
4632
4721
|
* passes them to the SDK's `activeTools`; prompted mode bounds `dispatch` to
|
|
@@ -4858,6 +4947,11 @@ interface ToolRunContext {
|
|
|
4858
4947
|
* helper the run starts shares it, and a subagent the host defined asks through it too.
|
|
4859
4948
|
*/
|
|
4860
4949
|
askUser?: AskUserChannel;
|
|
4950
|
+
/**
|
|
4951
|
+
* Internal - the run's pictures for its model (`media.viewGenerated`): `generate_image` leaves
|
|
4952
|
+
* the picture it made here for the executor to show its model once. Absent when off.
|
|
4953
|
+
*/
|
|
4954
|
+
pictures?: IGeneratedPictures;
|
|
4861
4955
|
}
|
|
4862
4956
|
/** Read the run context the agent passes to a tool's execute (undefined outside a run). */
|
|
4863
4957
|
declare const toolRunContextOf: (options: unknown) => ToolRunContext | undefined;
|
|
@@ -5045,5 +5139,5 @@ declare const postStorageChange: (dbName: string | undefined, change: StorageCha
|
|
|
5045
5139
|
*/
|
|
5046
5140
|
declare const onStorageChange: (dbName: string | undefined, listener: (change: StorageChange) => void) => (() => void);
|
|
5047
5141
|
|
|
5048
|
-
export { ACTION_RECORD_MAX_CHARS, ACTION_RECORD_NOTE, APP_SAMPLING_MAX_IMAGES, APP_SAMPLING_MAX_IMAGE_BYTES, APP_SAMPLING_MAX_INPUT_CHARS, APP_SAMPLING_MAX_MESSAGES, APP_SAMPLING_MAX_SYSTEM_CHARS, APP_SAMPLING_MAX_TOKENS, APP_SAMPLING_PER_APP, APP_SAMPLING_PER_MINUTE, APP_SAMPLING_REASONING_TOKENS, APP_SAMPLING_RPC_CODES, ASK_USER_DESCRIPTION_MAX_CHARS, ASK_USER_LABEL_MAX_CHARS, ASK_USER_MAX_OPTIONS, ASK_USER_MAX_PER_RUN, ASK_USER_MIN_OPTIONS, ASK_USER_OTHER_MAX_CHARS, ASK_USER_QUESTION_MAX_CHARS, ASK_USER_TIMEOUT_MAX_MS, ASK_USER_TIMEOUT_MS, ASK_USER_TOOL, AgentTool, AgentToolSet, AppSamplingError, AskUserInputError, AttachmentsNotSupportedError, ContextWindowExceededError, CredentialStore, DECISION_PROVIDERS, DEFAULT_COMPACTION_THRESHOLD_RATIO, DEFAULT_DECISION_CONFIDENCE_THRESHOLD, DEFAULT_DECISION_TIMEOUT_MS, EgressError, FILES_STORE, FIND_TOOLS_NAME, FORGET_SKILL_TOOL, IReferenceUse, ImagesNotSupportedError, IndexedDBRunStore, IndexedDBStore, KEYS_STORE, MODEL_TIERS, McpAppToolResult, McpElicitationReason, McpElicitationSchema, McpSkillConsent, McpSkillConsentView, MediaFitReference, MemoryRunStore, MemorySkillStore, MemoryStore, NO_ATTACHMENT_NOTE, PipelineDefinition, PipelineEvent, PipelineNode, PipelineNodeRunner, PipelineResult, PlanSchema, PlanStepSchema, RELAY_MAX_REPLAYS_PER_SECOND, RELAY_MAX_SENDS, RELAY_MAX_SEND_CHARS, RELAY_MAX_STRING, REPLAY_NOTE, RUNS_STORE, ReplanSchema, SAVE_SKILL_TOOL, SEARCH_API_BASE_URL, SEARCH_DEFAULT_MAX_RESULTS, SEARCH_GOOGLE_DEFAULT_MODEL, SEARCH_GOOGLE_NOTE, SEARCH_MAX_NOTE_CHARS, 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, SECRETS_STORE, SESSIONS_STORE, SESSION_LOCK_MODES, SKILL_TOOL_NAMES, SPAWN_INPUT_SCHEMA, SPAWN_SUBAGENT_TOOL, STORAGE_CHANGE_KINDS, SUBAGENT_DEFAULTS, SUBAGENT_MAX_DEPTH_LIMIT, SessionBusyError, SubagentSpawnError, TOOL_APPROVAL_MODES, TOOL_APPROVAL_TIMEOUT_MS, TOOL_SEARCH_WINDOW_SHARE, TieredPlanSchema, TieredPlanStepSchema, ToolBudgetError, ToolDeniedError, VfsSkillStore, VirtualFileSystem, WEBLLM_DEFAULT_CONTEXT_WINDOW, WEB_FETCH_TOOL, WEB_SEARCH_TOOL, actionRecordOf, adoptSubagentEvent, appSamplingRequestOf, appSamplingText, askDecisionModel, attachmentKind, buildMediaModelFromSpec, buildModelFromStage, buildSearchRequest, bytesToBase64, checkAskUserAnswer, checkAskUserInput, checkEgressUrl, checkLimits, classifyAddress, cleanAskUserText, compactHistory, compactSteps, compressHistory, contextOverflowOf, contextWindowOf, createAgent, createAppSamplingLimiter, createEgressTools, createFileTools, createFindToolsTool, createGuardedFetch, createLearning, createLogger, createMedia, createPipeline, createPlan, createRunControl, createSearchTools, createSkillTools, createSubagentTool, createToolResultClearer, createWebFetchTool, createWebLLMModel, createWebSearchTool, decideReplan, decideToolPermission, decisionEgressPolicy, decisionModelFromAiSdk, defaultPrompts, defineSkill, defineTool, directBrowserOk, dispatch, escalationReasonOf, messageTokens as estimateMessagesTokens, estimateTokens, executeStep, fileToolBindingOf, findSecret, fitCompactionToWindow, generate, generateStructured, hostMatches, htmlToText, isAttachmentRefusal, isCodeExecutionTool, isDirectModel, isEscalatableError, isImageRefusal, isProviderSpec, isReadOnlyTool, isReplayedToolOutput, isTextMime, isWebGPUAvailable, learnedPreamble, limitModelOutput, loadSkillFromUrl, looksLikeJson, markCodeExecution, markReadOnly, matchRule, mediaTypeOf, mergeProviderOptions, mimeFromPath, neutralizeActionRecords, nextStrongerTier, nodeResolver, normalizePath, normalizeSkillName, normalizeSteps, normalizeUsage, onStorageChange, openAgentWebDB, outputCapNotice, parseExecutorResponse, parsePlainText, parsePlannerResponse, parseReplannerResponse, parseSearchResponse, parseSkillMarkdown, pickPipelineRoute, pickTier, postStorageChange, preloadWebLLMModel, renderActiveSkills, renderCatalog, renderSearchCatalog, renderSkillIndex, replanWanted, resolveAppSampling, resolveBudgets, resolveCaching, resolveCompaction, resolveConfig, resolveDecisionModel, resolveDynamicSubagents, resolveEgressPolicy, resolveEscalation, resolveModel, resolveResume, resolveStage, resolveThinking, runToolLoop, sanitizeSearchResults, schemaHintOf, searchEgressPolicy, searchEngineAnswer, searchStatusMessage, searchToolResult, searchTools, searchUsageOf, selectToolMode, serveSubagentWorker, shouldReplan, skillPreamble, splitBlocker, stageOutputCap, stageReasons, stream, supportsImages, supportsNativeTools, supportsPdf, supportsStructuredOutput, synthesizeAnswer, thinkingFor, toFilePart, toImagePart, tokenize, toolCatalogOf, toolDefinitionTokens, toolRunContextOf, unloadWebLLMModel, watchSession, webLLMContextWindow, withActionRecord, withRollingBreakpoint, withSystem, withWebLLMContextWindow };
|
|
5049
|
-
export type { Agent, AgentContext, AgentEvent, AgentEventHandler, AgentLogger, AgentLoggerSink, AgentWebDBOptions, AppSamplingErrorCode, AppSamplingImage, AppSamplingMessage, AppSamplingOptions, AppSamplingRequest, AppSamplingResult, AppSamplingSettings, AppSamplingView, AppToolCallRequest, AskUserAction, AskUserAnswer, AskUserCheckedAnswer, AskUserConfig, AskUserContext, AskUserHandler, AskUserOption, AskUserQuestion, AskUserReason, AskUserRequest, AttachmentKind, BrowserAgentConfig, ClearedInfo, CompactOptions, CompactResult, CompactionConfig, CompressOptions, ContextStore, DecisionFallbackReason, DecisionPoint, EffectiveToolStrategy, EgressErrorCode, EscalationConfig, EscalationReason, ExecutorPromptContext, ExecutorResult, FileToolBinding, FileToolsOptions, GenerateOptions, GuardedFetch, IAiSdkDecisionOptions, IDecisionAnswer, IDecisionCallOptions, IDecisionConfig, IDecisionEvent, IDecisionModel, IDecisionModelSpec, IDecisionOption, IDecisionOutcome, IDecisionQuestion, IDynamicSubagentsConfig, IEgressPolicy, IMedia, IMediaConfig, IMediaFile, IMediaModelSpec, IMediaOptions, IMediaRun, IPlan, IPlanStep, IResolvedDynamicSubagents, IResolvedEgressPolicy, ISandboxConfig, ISandboxError, ISandboxLimits, ISandboxResult, ISanitizedSearch, ISearchAnswer, ISearchConfig, ISearchEngineAnswer, ISearchOptions, ISearchRequest, ISearchResult, ISearchToolResult, ISearchUsage, IStepEscalation, IStepResult, ISubagentsConfig, IToolCall, ITranscription, IUsage, IWebFetchOptions, IWebSearchOptions, IndexedDBRunStoreOptions, IndexedDBStoreOptions, Learning, LearningConfig, LimitBreach, LimitKind, LoadSkillOptions, LogLevel, McpSkillOrigin, MediaImageModel, MediaModelKind, MediaSpeechModel, MediaTranscriptionModel, MessageEndpoint, ModelInput, ModelTier, NodeResolverOptions, OutputCap, ParentToWorker, Phase, PhaseBudgets, Pipeline, PipelineOptions, PipelineRouteOptions, PipelineRouteResult, PipelineRunOptions, PlanShape, PlannerPromptContext, PlannerResult, PromptCachingSetting, PromptParts, Prompts, ProviderModelSpec, ProviderOptionsMap, ProviderType, ProxiedToolSpec, RawAction, ReplanDecision, ReplanMode, ReplanShape, ReplanTrigger, ReplannerPromptContext, ReplannerResult, ResolvedCaching, ResolvedCompaction, ResolvedConfig, ResolvedStage, ResolvedThinking, RunControl, RunFile, RunImage, RunOptions, RunPersistence, RunResult, RunSnapshot, RunStatus, RunStoreOptions, SandboxConfig, SandboxWorkerLike, SaveSkillInput, SearchEngine, SearchFreshness, SearchProvider, SearchToolsOptions, ServeSubagentOptions, SessionHolder, SessionLockMode, SessionRunState, SessionWatch, Skill, SkillOrigin, SkillStore, StageInput, StageOverride, StepComplexity, StorageChange, StorageChangeKind, StorageChangeOp, StoredMessage, StructuredResult, SubagentDefaultTools, SubagentInfo, SubagentProfile, SubagentToolOptions, SubagentWorkerConfig, SynthesizerPromptContext, ThinkingConfig, ThinkingLevel, ThinkingSetting, ThinkingStage, TierReason, TokenLimits, ToolApprovalApp, ToolApprovalConfig, ToolApprovalContext, ToolApprovalDecision, ToolApprovalMode, ToolApprovalRequest, ToolCallMode, ToolCatalogEntry, ToolLoopCallbacks, ToolLoopOptions, ToolLoopResult, ToolMode, ToolPermission, ToolResultClearing, ToolRunContext, ToolSelectionStrategy, UsagePhase, VfsListener, VirtualFile, VirtualFileInfo, VirtualFileSystemOptions, WatchSessionOptions, WebLLMAppConfigLike, WebLLMModelOptions, WorkerLike, WorkerToParent };
|
|
5142
|
+
export { ACTION_RECORD_MAX_CHARS, ACTION_RECORD_NOTE, APP_SAMPLING_MAX_IMAGES, APP_SAMPLING_MAX_IMAGE_BYTES, APP_SAMPLING_MAX_INPUT_CHARS, APP_SAMPLING_MAX_MESSAGES, APP_SAMPLING_MAX_SYSTEM_CHARS, APP_SAMPLING_MAX_TOKENS, APP_SAMPLING_PER_APP, APP_SAMPLING_PER_MINUTE, APP_SAMPLING_REASONING_TOKENS, APP_SAMPLING_RPC_CODES, ASK_USER_DESCRIPTION_MAX_CHARS, ASK_USER_LABEL_MAX_CHARS, ASK_USER_MAX_OPTIONS, ASK_USER_MAX_PER_RUN, ASK_USER_MIN_OPTIONS, ASK_USER_OTHER_MAX_CHARS, ASK_USER_QUESTION_MAX_CHARS, ASK_USER_TIMEOUT_MAX_MS, ASK_USER_TIMEOUT_MS, ASK_USER_TOOL, AgentTool, AgentToolSet, AppSamplingError, AskUserInputError, AttachmentsNotSupportedError, ContextWindowExceededError, CredentialStore, DECISION_PROVIDERS, DEFAULT_COMPACTION_THRESHOLD_RATIO, DEFAULT_DECISION_CONFIDENCE_THRESHOLD, DEFAULT_DECISION_TIMEOUT_MS, EgressError, FILES_STORE, FIND_TOOLS_NAME, FORGET_SKILL_TOOL, IReferenceUse, ImagesNotSupportedError, IndexedDBRunStore, IndexedDBStore, KEYS_STORE, MODEL_TIERS, McpAppToolResult, McpElicitationReason, McpElicitationSchema, McpSkillConsent, McpSkillConsentView, MediaFitReference, MemoryRunStore, MemorySkillStore, MemoryStore, NO_ATTACHMENT_NOTE, PipelineDefinition, PipelineEvent, PipelineNode, PipelineNodeRunner, PipelineResult, PlanSchema, PlanStepSchema, RELAY_MAX_REPLAYS_PER_SECOND, RELAY_MAX_SENDS, RELAY_MAX_SEND_CHARS, RELAY_MAX_STRING, REPLAY_NOTE, RUNS_STORE, ReplanSchema, SAVE_SKILL_TOOL, SEARCH_API_BASE_URL, SEARCH_DEFAULT_MAX_RESULTS, SEARCH_GOOGLE_DEFAULT_MODEL, SEARCH_GOOGLE_NOTE, SEARCH_MAX_NOTE_CHARS, 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, SECRETS_STORE, SESSIONS_STORE, SESSION_LOCK_MODES, SKILL_TOOL_NAMES, SPAWN_INPUT_SCHEMA, SPAWN_SUBAGENT_TOOL, STORAGE_CHANGE_KINDS, SUBAGENT_DEFAULTS, SUBAGENT_MAX_DEPTH_LIMIT, SessionBusyError, SubagentSpawnError, TOOL_APPROVAL_MODES, TOOL_APPROVAL_TIMEOUT_MS, TOOL_SEARCH_WINDOW_SHARE, TieredPlanSchema, TieredPlanStepSchema, ToolBudgetError, ToolDeniedError, VfsSkillStore, VirtualFileSystem, WEBLLM_DEFAULT_CONTEXT_WINDOW, WEB_FETCH_TOOL, WEB_SEARCH_TOOL, actionRecordOf, adoptSubagentEvent, appGrantKey, appSamplingRequestOf, appSamplingText, askDecisionModel, attachmentKind, buildMediaModelFromSpec, buildModelFromStage, buildSearchRequest, bytesToBase64, checkAskUserAnswer, checkAskUserInput, checkEgressUrl, checkLimits, classifyAddress, cleanAskUserText, compactHistory, compactSteps, compressHistory, contextOverflowOf, contextWindowOf, createAgent, createAppSamplingLimiter, createEgressTools, createFileTools, createFindToolsTool, createGuardedFetch, createLearning, createLogger, createMedia, createPipeline, createPlan, createRunControl, createSearchTools, createSkillTools, createSubagentTool, createToolResultClearer, createWebFetchTool, createWebLLMModel, createWebSearchTool, decideReplan, decideToolPermission, decisionEgressPolicy, decisionModelFromAiSdk, defaultPrompts, defineSkill, defineTool, directBrowserOk, dispatch, escalationReasonOf, messageTokens as estimateMessagesTokens, estimateTokens, executeStep, fileToolBindingOf, findSecret, fitCompactionToWindow, generate, generateStructured, hostMatches, htmlToText, isAttachmentRefusal, isCodeExecutionTool, isDirectModel, isEscalatableError, isImageRefusal, isProviderSpec, isReadOnlyTool, isReplayedToolOutput, isTextMime, isWebGPUAvailable, learnedPreamble, limitModelOutput, loadSkillFromUrl, looksLikeJson, markCodeExecution, markReadOnly, matchRule, mediaTypeOf, mergeProviderOptions, mimeFromPath, neutralizeActionRecords, nextStrongerTier, nodeResolver, normalizePath, normalizeSkillName, normalizeSteps, normalizeUsage, onStorageChange, openAgentWebDB, outputCapNotice, parseExecutorResponse, parsePlainText, parsePlannerResponse, parseReplannerResponse, parseSearchResponse, parseSkillMarkdown, pickPipelineRoute, pickTier, postStorageChange, preloadWebLLMModel, renderActiveSkills, renderCatalog, renderSearchCatalog, renderSkillIndex, replanWanted, resolveAppSampling, resolveBudgets, resolveCaching, resolveCompaction, resolveConfig, resolveDecisionModel, resolveDynamicSubagents, resolveEgressPolicy, resolveEscalation, resolveModel, resolveResume, resolveStage, resolveThinking, runToolLoop, sanitizeSearchResults, schemaHintOf, searchEgressPolicy, searchEngineAnswer, searchStatusMessage, searchToolResult, searchTools, searchUsageOf, selectToolMode, serveSubagentWorker, shouldReplan, skillPreamble, splitBlocker, stageOutputCap, stageReasons, stream, supportsImages, supportsNativeTools, supportsPdf, supportsStructuredOutput, synthesizeAnswer, thinkingFor, toFilePart, toImagePart, tokenize, toolCatalogOf, toolDefinitionTokens, toolRunContextOf, unloadWebLLMModel, watchSession, webLLMContextWindow, withActionRecord, withRollingBreakpoint, withSystem, withWebLLMContextWindow };
|
|
5143
|
+
export type { Agent, AgentContext, AgentEvent, AgentEventHandler, AgentLogger, AgentLoggerSink, AgentWebDBOptions, AppSamplingErrorCode, AppSamplingImage, AppSamplingMessage, AppSamplingOptions, AppSamplingRequest, AppSamplingResult, AppSamplingSettings, AppSamplingView, AppToolCallOptions, AppToolCallRequest, AskUserAction, AskUserAnswer, AskUserCheckedAnswer, AskUserConfig, AskUserContext, AskUserHandler, AskUserOption, AskUserQuestion, AskUserReason, AskUserRequest, AttachmentKind, BrowserAgentConfig, ClearedInfo, CompactOptions, CompactResult, CompactionConfig, CompressOptions, ContextStore, DecisionFallbackReason, DecisionPoint, EffectiveToolStrategy, EgressErrorCode, EscalationConfig, EscalationReason, ExecutorPromptContext, ExecutorResult, FileToolBinding, FileToolsOptions, GenerateOptions, GuardedFetch, IAiSdkDecisionOptions, IDecisionAnswer, IDecisionCallOptions, IDecisionConfig, IDecisionEvent, IDecisionModel, IDecisionModelSpec, IDecisionOption, IDecisionOutcome, IDecisionQuestion, IDynamicSubagentsConfig, IEgressPolicy, IMedia, IMediaConfig, IMediaFile, IMediaModelSpec, IMediaOptions, IMediaRun, IPlan, IPlanStep, IResolvedDynamicSubagents, IResolvedEgressPolicy, ISandboxConfig, ISandboxError, ISandboxLimits, ISandboxResult, ISanitizedSearch, ISearchAnswer, ISearchConfig, ISearchEngineAnswer, ISearchOptions, ISearchRequest, ISearchResult, ISearchToolResult, ISearchUsage, IStepEscalation, IStepResult, ISubagentsConfig, IToolCall, ITranscription, IUsage, IWebFetchOptions, IWebSearchOptions, IndexedDBRunStoreOptions, IndexedDBStoreOptions, Learning, LearningConfig, LimitBreach, LimitKind, LoadSkillOptions, LogLevel, McpSkillOrigin, MediaImageModel, MediaModelKind, MediaSpeechModel, MediaTranscriptionModel, MessageEndpoint, ModelInput, ModelTier, NodeResolverOptions, OutputCap, ParentToWorker, Phase, PhaseBudgets, Pipeline, PipelineOptions, PipelineRouteOptions, PipelineRouteResult, PipelineRunOptions, PlanShape, PlannerPromptContext, PlannerResult, PromptCachingSetting, PromptParts, Prompts, ProviderModelSpec, ProviderOptionsMap, ProviderType, ProxiedToolSpec, RawAction, ReplanDecision, ReplanMode, ReplanShape, ReplanTrigger, ReplannerPromptContext, ReplannerResult, ResolvedCaching, ResolvedCompaction, ResolvedConfig, ResolvedStage, ResolvedThinking, RunControl, RunFile, RunImage, RunOptions, RunPersistence, RunResult, RunSnapshot, RunStatus, RunStoreOptions, SandboxConfig, SandboxWorkerLike, SaveSkillInput, SearchEngine, SearchFreshness, SearchProvider, SearchToolsOptions, ServeSubagentOptions, SessionHolder, SessionLockMode, SessionRunState, SessionWatch, Skill, SkillOrigin, SkillStore, StageInput, StageOverride, StepComplexity, StorageChange, StorageChangeKind, StorageChangeOp, StoredMessage, StructuredResult, SubagentDefaultTools, SubagentInfo, SubagentProfile, SubagentToolOptions, SubagentWorkerConfig, SynthesizerPromptContext, ThinkingConfig, ThinkingLevel, ThinkingSetting, ThinkingStage, TierReason, TokenLimits, ToolApprovalApp, ToolApprovalConfig, ToolApprovalContext, ToolApprovalDecision, ToolApprovalMode, ToolApprovalRequest, ToolCallMode, ToolCatalogEntry, ToolLoopCallbacks, ToolLoopOptions, ToolLoopResult, ToolMode, ToolPermission, ToolResultClearing, ToolRunContext, ToolSelectionStrategy, UsagePhase, VfsListener, VirtualFile, VirtualFileInfo, VirtualFileSystemOptions, WatchSessionOptions, WebLLMAppConfigLike, WebLLMModelOptions, WorkerLike, WorkerToParent };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LanguageModel, Experimental_DecisionModel, Tool, ToolSet, FilePart, ImageModel, SpeechModel, TranscriptionModel, SystemModelMessage, ModelMessage, generateText, streamText } from 'ai';
|
|
2
|
-
import { P as McpSkillConsentView, B as McpElicitationSchema, y as McpElicitationReason, e as McpAppToolResult, Q as McpSkillSource, R as McpSkillConsent, S as McpSkillGrants, T as McpSkillRunConsent, U as McpSkillSnapshotMemory } from './skills-
|
|
3
|
-
export { g as MCP_APPS_EXTENSION, k as MCP_APP_MAX_HTML_CHARS, l as MCP_APP_MAX_RESULT_CHARS, m as MCP_APP_MIME_TYPE, V as MCP_SKILLS_EXTENSION, W as MCP_SKILLS_MAX_PER_SERVER, X as MCP_SKILLS_MAX_TOTAL, Y as MCP_SKILL_BODY_MAX_CHARS, Z as MCP_SKILL_CONSENTS, _ as MCP_SKILL_CONSENT_DEFAULT, $ as MCP_SKILL_DESCRIPTION_MAX_CHARS, a0 as MCP_SKILL_DIRECTORY_ENTRIES_MAX, a1 as MCP_SKILL_FILE_MAX_CHARS, a2 as MCP_SKILL_MAX_RESOURCES, a3 as MCP_SKILL_MAX_TOTAL_BYTES, a4 as MCP_SKILL_SNAPSHOTS_MAX_BYTES, a5 as MCP_SKILL_SNAPSHOT_MAX_DEPTH, a6 as MCP_SKILL_SNAPSHOT_MAX_DIRECTORIES, a7 as MCP_SKILL_URI_MAX_CHARS, q as McpAppCsp, r as McpAppPermissions,
|
|
2
|
+
import { P as McpSkillConsentView, B as McpElicitationSchema, y as McpElicitationReason, e as McpAppToolResult, Q as McpSkillSource, R as McpSkillConsent, S as McpSkillGrants, T as McpSkillRunConsent, U as McpSkillSnapshotMemory } from './skills-BC8yMqpN.js';
|
|
3
|
+
export { g as MCP_APPS_EXTENSION, k as MCP_APP_MAX_HTML_CHARS, l as MCP_APP_MAX_RESULT_CHARS, m as MCP_APP_MIME_TYPE, V as MCP_SKILLS_EXTENSION, W as MCP_SKILLS_MAX_PER_SERVER, X as MCP_SKILLS_MAX_TOTAL, Y as MCP_SKILL_BODY_MAX_CHARS, Z as MCP_SKILL_CONSENTS, _ as MCP_SKILL_CONSENT_DEFAULT, $ as MCP_SKILL_DESCRIPTION_MAX_CHARS, a0 as MCP_SKILL_DIRECTORY_ENTRIES_MAX, a1 as MCP_SKILL_FILE_MAX_CHARS, a2 as MCP_SKILL_MAX_RESOURCES, a3 as MCP_SKILL_MAX_TOTAL_BYTES, a4 as MCP_SKILL_SNAPSHOTS_MAX_BYTES, a5 as MCP_SKILL_SNAPSHOT_MAX_DEPTH, a6 as MCP_SKILL_SNAPSHOT_MAX_DIRECTORIES, a7 as MCP_SKILL_URI_MAX_CHARS, q as McpAppCsp, r as McpAppPermissions, c as McpAppResource, b as McpAppVisibility, x as McpElicitationFieldSchema, a8 as McpSkillsOptions, f as McpSkillsSetting, a9 as SkillDirectoryListing, G as mcpAppOrigin, aa as mcpSkillEntryRefusal, ab as mcpSkillPreamble, ac as mcpSkillUriRefusal } from './skills-BC8yMqpN.js';
|
|
4
4
|
import { PipelineEvent, PipelineNode, PipelineDefinition, PipelineResult, PipelineNodeRunner } from './pipeline-engine.js';
|
|
5
5
|
export { PIPELINE_LIMITS, PIPELINE_ROUTER_SYSTEM, PipelineAbortBehaviour, PipelineCondition, PipelineEdge, PipelineGraphRunOptions, PipelineIssue, PipelineNodeContext, PipelineNodeError, PipelineNodeEvent, PipelineNodeInput, PipelineNodeOutput, PipelineNodeSource, PipelinePlan, PipelineRoute, PipelineStop, PipelineTraceEntry, PipelineUsage, PipelineValidation, PipelineValidationError, matchPipelineRoute, normalizePipeline, preparePipeline, renderPipelineNodeInput, renderPipelineRoutePrompt, runPipelineGraph, testPipelineCondition, validatePipeline } from './pipeline-engine.js';
|
|
6
|
-
import { I as IReferenceUse, M as MediaFitReference, a as IReferenceResult } from './media-fit-worker-
|
|
7
|
-
export { F as FitReferenceWorker,
|
|
6
|
+
import { I as IReferenceUse, M as MediaFitReference, a as IGeneratedPictures, b as IReferenceResult } from './media-fit-worker-Do1qzteo.js';
|
|
7
|
+
export { F as FitReferenceWorker, c as FitReferenceWorkerScope, G as GENERATE_IMAGE_TOOL, d as GENERATE_SPEECH_TOOL, e as IFitReferenceOptions, f as IFittedReference, g as IImageSize, h as IMediaUsage, i as IReferenceBounds, j as IReferencePicture, k as MEDIA_AUDIO_TYPES, l as MEDIA_DEFAULT_MAX_CALLS, m as MEDIA_FIT_TIMEOUT_MS, n as MEDIA_FOLDER, o as MEDIA_IMAGE_TYPES, p as MEDIA_MAX_ATTACHED_AUDIO, q as MEDIA_MAX_AUDIO_INPUT_BYTES, r as MEDIA_MAX_IMAGE_BYTES, s as MEDIA_MAX_PROMPT_CHARS, t as MEDIA_MAX_REFERENCE_BYTES, u as MEDIA_MAX_REFERENCE_IMAGES, v as MEDIA_MAX_REFERENCE_SIDE, w as MEDIA_MAX_REFERENCE_SOURCE_BYTES, x as MEDIA_MAX_REFERENCE_SOURCE_PIXELS, y as MEDIA_MAX_REFERENCE_TOTAL_BYTES, z as MEDIA_MAX_SPEECH_BYTES, A as MEDIA_MAX_SPEECH_CHARS, B as MEDIA_MAX_TRANSCRIPT_CHARS, C as MEDIA_REFERENCE_TYPES, D as MEDIA_TIMEOUT_MS, E as MediaBudgetError, H as MediaError, J as MediaKind, S as ServeFitReferenceOptions, T as TRANSCRIBE_AUDIO_TOOL, K as acceptMedia, L as acceptReference, N as acceptReferenceSource, O as fitReferenceImage, P as fitReferenceInWorker, Q as imageDimensions, R as mediaUsageOf, U as serveFitReferenceWorker, V as sniffMediaType, W as wrapTranscript } from './media-fit-worker-Do1qzteo.js';
|
|
8
8
|
import { CredentialStore } from './secrets.js';
|
|
9
9
|
export { EncryptedBlob, MemoryCredentialStore, VaultCredentialStore, decryptJSON, encryptJSON, getOrCreateVaultKey } from './secrets.js';
|
|
10
10
|
import { A as AgentToolSet, a as AgentTool } from './types-DwSMj_Xs.js';
|
|
@@ -607,6 +607,12 @@ interface ToolApprovalRequest {
|
|
|
607
607
|
* approval mode and the rules say.
|
|
608
608
|
*/
|
|
609
609
|
skill?: McpSkillConsentView;
|
|
610
|
+
/**
|
|
611
|
+
* Set when an explicit rule asked (`toolApproval.rules`, `'ask'`): its name or pattern. Such a
|
|
612
|
+
* request is asked EVERY time - no remembered "always allow" answers a rule - so a UI should
|
|
613
|
+
* not offer "Always allow" on it (the React package's card does not, by default).
|
|
614
|
+
*/
|
|
615
|
+
rule?: string;
|
|
610
616
|
}
|
|
611
617
|
/** Who asks when an MCP App asks (see `ToolApprovalRequest.app`). */
|
|
612
618
|
interface ToolApprovalApp {
|
|
@@ -674,11 +680,18 @@ declare const isReadOnlyTool: (tool: Tool | undefined) => boolean;
|
|
|
674
680
|
/** The most specific matching rule: an exact name, else the longest glob. Pure. */
|
|
675
681
|
declare const matchRule: (rules: Record<string, ToolPermission> | undefined, toolName: string) => ToolPermission | undefined;
|
|
676
682
|
/**
|
|
677
|
-
* What the gate does for one call, before any human is involved. Order:
|
|
678
|
-
*
|
|
683
|
+
* What the gate does for one call, before any human is involved. Pure. Order:
|
|
684
|
+
*
|
|
685
|
+
* 1. the most specific RULE: `'deny'` refuses, `'ask'` asks - EVERY time: no remembered "always
|
|
686
|
+
* allow" answers it ("ask every time" means every time) -, `'allow'` runs;
|
|
687
|
+
* 2. the MODE refusing the call (`'read-only'`, a tool that may write) - no grant outranks it;
|
|
688
|
+
* 3. a remembered "always allow" (the model's for the agent's life, an app's by `appGrantKey`);
|
|
689
|
+
* 4. the mode's default.
|
|
690
|
+
*
|
|
679
691
|
* Then one rule that only ever tightens: a call that runs code (`codeExecution`) while the run
|
|
680
692
|
* acts on an MCP server's skill (`mcpSkills`) is asked when it would have been allowed - by the
|
|
681
|
-
* mode, a rule or an "always allow" alike. A deny stays a deny.
|
|
693
|
+
* mode, a rule or an "always allow" alike. A deny stays a deny. The same order for the model's
|
|
694
|
+
* calls, a helper's and an app's (`Agent.approveAppToolCall`).
|
|
682
695
|
*/
|
|
683
696
|
declare const decideToolPermission: (opts: {
|
|
684
697
|
toolName: string;
|
|
@@ -1091,6 +1104,11 @@ type AgentEventBody =
|
|
|
1091
1104
|
* not a tool call (see `ToolApprovalRequest.skill`): the server's words, as plain text.
|
|
1092
1105
|
*/
|
|
1093
1106
|
skill?: McpSkillConsentView;
|
|
1107
|
+
/**
|
|
1108
|
+
* Set when an explicit `'ask'` rule asked: its name or pattern (see
|
|
1109
|
+
* `ToolApprovalRequest.rule`). No remembered "always allow" answers it.
|
|
1110
|
+
*/
|
|
1111
|
+
rule?: string;
|
|
1094
1112
|
}
|
|
1095
1113
|
/** A consent decision: from the user, or `automatic` (policy denial). */
|
|
1096
1114
|
| {
|
|
@@ -2591,6 +2609,20 @@ interface IMediaConfig {
|
|
|
2591
2609
|
fitReference?: MediaFitReference;
|
|
2592
2610
|
/** One call of `fitReference`, in ms (its `signal` is aborted then). Default 30 000. */
|
|
2593
2611
|
fitTimeoutMs?: number;
|
|
2612
|
+
/**
|
|
2613
|
+
* Show the executor's model the picture `generate_image` made, ONCE, in the request right after
|
|
2614
|
+
* the call (an image part of that tool result), so it can check it against the request, make a
|
|
2615
|
+
* wrong one again, and say later what it drew. Default: on where the step's model reads
|
|
2616
|
+
* pictures (`inputs.images` / `vision`, else `supportsImages`; unknown = no) and its adapter
|
|
2617
|
+
* carries a picture in a tool result (Gemini, Claude, OpenAI's Responses API, xAI, DeepSeek);
|
|
2618
|
+
* `true`: on for any model whose adapter carries it; `false`: off, the path alone as before.
|
|
2619
|
+
* Never for an adapter that would send it as text (OpenAI's Chat Completions, an
|
|
2620
|
+
* OpenAI-compatible endpoint), nor in the prompted tool mode. A picture over 1568 px or
|
|
2621
|
+
* 3.75 MiB is shown as a smaller copy made by `fitReference`, or not at all. About
|
|
2622
|
+
* 1 100-1 600 input tokens a picture. The bytes reach the model call only: never an event, the
|
|
2623
|
+
* trace, a checkpoint, memory or the result.
|
|
2624
|
+
*/
|
|
2625
|
+
viewGenerated?: boolean;
|
|
2594
2626
|
/** Mounts `generate_speech` (text becomes an audio file in the workspace). */
|
|
2595
2627
|
speechModel?: MediaSpeechModel | IMediaModelSpec;
|
|
2596
2628
|
/**
|
|
@@ -2633,6 +2665,11 @@ interface IMediaFile {
|
|
|
2633
2665
|
* paths, and - when they were not - the sentence the model reads. Absent without `images`.
|
|
2634
2666
|
*/
|
|
2635
2667
|
references?: IReferenceResult;
|
|
2668
|
+
/**
|
|
2669
|
+
* `generate_image` on a step whose model is shown pictures, when this one is NOT shown (too
|
|
2670
|
+
* large and not made smaller): the sentence the model reads. Absent otherwise.
|
|
2671
|
+
*/
|
|
2672
|
+
pictureNote?: string;
|
|
2636
2673
|
}
|
|
2637
2674
|
/** What `transcribe_audio` returns. */
|
|
2638
2675
|
interface ITranscription {
|
|
@@ -2653,12 +2690,21 @@ interface IMediaRun {
|
|
|
2653
2690
|
/** The run's usage so far: the cap counts the media calls in it (a resumed run's included). */
|
|
2654
2691
|
usage?: () => IUsage;
|
|
2655
2692
|
runId?: string;
|
|
2693
|
+
/** The run's pictures for its model (`media.viewGenerated`). */
|
|
2694
|
+
pictures?: IGeneratedPictures;
|
|
2656
2695
|
}
|
|
2657
2696
|
interface IMedia {
|
|
2658
2697
|
/** The tools the configured models switch on (maybe none). */
|
|
2659
2698
|
tools: AgentToolSet;
|
|
2660
2699
|
/** True when audio attachments are transcribed (a transcription model, not switched off). */
|
|
2661
2700
|
transcribes: boolean;
|
|
2701
|
+
/**
|
|
2702
|
+
* Set when `generate_image`'s pictures may be shown to the executor's model: the host's
|
|
2703
|
+
* `media.viewGenerated` (undefined = by the model). The runner gives each run its pictures.
|
|
2704
|
+
*/
|
|
2705
|
+
pictures?: {
|
|
2706
|
+
setting: boolean | undefined;
|
|
2707
|
+
};
|
|
2662
2708
|
/**
|
|
2663
2709
|
* Transcribe the audio among a run's attachments: the goal with the transcripts under it, and
|
|
2664
2710
|
* the attachments that are left for the language model.
|
|
@@ -3450,6 +3496,16 @@ interface AgentContext {
|
|
|
3450
3496
|
plannerMode: ToolCallMode;
|
|
3451
3497
|
/** Tool-mode for the executor (from the executor model). */
|
|
3452
3498
|
executorMode: ToolCallMode;
|
|
3499
|
+
/**
|
|
3500
|
+
* Set when `generate_image`'s pictures may be shown to the executor's model
|
|
3501
|
+
* (`media.viewGenerated` not off): the run's pictures, the host's setting, and whether a model
|
|
3502
|
+
* is known to read pictures (the same answer the attachments get).
|
|
3503
|
+
*/
|
|
3504
|
+
pictures?: {
|
|
3505
|
+
desk: IGeneratedPictures;
|
|
3506
|
+
setting: boolean | undefined;
|
|
3507
|
+
readsImages: (model: LanguageModel) => boolean | undefined;
|
|
3508
|
+
};
|
|
3453
3509
|
/** The run's tools (host + MCP + built-ins), already wrapped by the consent gate. */
|
|
3454
3510
|
tools: AgentToolSet;
|
|
3455
3511
|
/** The catalogue as the planner sees it (condensed in search mode). */
|
|
@@ -3678,15 +3734,20 @@ interface Agent {
|
|
|
3678
3734
|
reloadLearnedSkills(): Promise<Skill[]>;
|
|
3679
3735
|
/**
|
|
3680
3736
|
* Ask this agent's consent gate about a tool call an MCP App wants to make (`./mcp` with
|
|
3681
|
-
* `apps: true`: the app's `tools/call`), not the model. The same `toolApproval` - its
|
|
3682
|
-
* its handler (`onRequest`), its timeout -
|
|
3683
|
-
*
|
|
3684
|
-
*
|
|
3737
|
+
* `apps: true`: the app's `tools/call`), not the model. The same `toolApproval` - its mode,
|
|
3738
|
+
* its rules, its handler (`onRequest`), its timeout - as the model's calls: 'autopilot' asks
|
|
3739
|
+
* nothing (writes and destructive tools included: the mode the person chose), an explicit
|
|
3740
|
+
* rule still wins ('ask' asks, 'deny' refuses), 'ask-writes' / 'ask-all' / 'read-only' as for
|
|
3741
|
+
* the model. "Always allow" given to an app is remembered for apps only, apart from the
|
|
3742
|
+
* model's, and for that app only (`appGrantKey`: the server's identity on its connection, the
|
|
3743
|
+
* tool and the app's resource) - in `options.remembered` when the host passes a set (so it
|
|
3744
|
+
* outlives this agent: a host that builds a new agent keeps it), else in a set of this
|
|
3745
|
+
* agent's. It never outranks a refusal: a rule's 'deny' and 'read-only' are decided first.
|
|
3685
3746
|
* `onEvent` receives `tool.approval-requested` (with `app`) and `tool.approval-resolved`; a UI
|
|
3686
3747
|
* shows the request as the app's. Resolves when the call may go; throws `ToolDeniedError`.
|
|
3687
3748
|
* Make the call afterwards with `ConnectedMcp.apps.callAppTool`.
|
|
3688
3749
|
*/
|
|
3689
|
-
approveAppToolCall(call: AppToolCallRequest, onEvent?: (event: AgentEvent) => void, signal?: AbortSignal): Promise<void>;
|
|
3750
|
+
approveAppToolCall(call: AppToolCallRequest, onEvent?: (event: AgentEvent) => void, signal?: AbortSignal, options?: AppToolCallOptions): Promise<void>;
|
|
3690
3751
|
/**
|
|
3691
3752
|
* Answer a completion an MCP App asks for (its `sampling/createMessage`) with this agent's
|
|
3692
3753
|
* synthesizer model - outside any run, with no tools and none of the agent's context. The
|
|
@@ -3742,6 +3803,23 @@ interface AppSamplingOptions {
|
|
|
3742
3803
|
/** The memory session whose `sessionUsage` is charged (default `config.sessionId`). */
|
|
3743
3804
|
sessionId?: string;
|
|
3744
3805
|
}
|
|
3806
|
+
/** How `Agent.approveAppToolCall` keeps an app's "always allow". */
|
|
3807
|
+
interface AppToolCallOptions {
|
|
3808
|
+
/**
|
|
3809
|
+
* What apps were given "always allow" for, by `appGrantKey` (the server's identity on its
|
|
3810
|
+
* connection, the tool, the app's resource - opaque to the host). The gate reads it and adds to
|
|
3811
|
+
* it; a host that keeps one set for the page's life (the React package's `useAgent` does) keeps
|
|
3812
|
+
* the grant across new agents. Absent: a set of this agent's.
|
|
3813
|
+
*/
|
|
3814
|
+
remembered?: Set<string>;
|
|
3815
|
+
}
|
|
3816
|
+
/**
|
|
3817
|
+
* What an app's "always allow" is kept under: the server's identity on its connection
|
|
3818
|
+
* (`serverId`, else its name), the tool (`server__tool`) and the app's resource. So it is that
|
|
3819
|
+
* app's alone - another app of the server, or another server given the same name later (another
|
|
3820
|
+
* connection), is asked again.
|
|
3821
|
+
*/
|
|
3822
|
+
declare const appGrantKey: (call: AppToolCallRequest) => string;
|
|
3745
3823
|
/** A tool call an MCP App asks for (see `Agent.approveAppToolCall`). */
|
|
3746
3824
|
interface AppToolCallRequest {
|
|
3747
3825
|
/** The name the consent rules match: the tool's key, `server__tool` (`McpAppTool.key`). */
|
|
@@ -3755,6 +3833,12 @@ interface AppToolCallRequest {
|
|
|
3755
3833
|
input: unknown;
|
|
3756
3834
|
/** The server marked the tool read-only (`McpAppTool.readOnly`). */
|
|
3757
3835
|
readOnly: boolean;
|
|
3836
|
+
/**
|
|
3837
|
+
* The server's identity on its connection (`McpAppTool.serverId`): "always allow" is kept
|
|
3838
|
+
* under it, so a server removed and another added under the same name inherits nothing.
|
|
3839
|
+
* Absent (an older host): the server's name.
|
|
3840
|
+
*/
|
|
3841
|
+
serverId?: string;
|
|
3758
3842
|
}
|
|
3759
3843
|
/**
|
|
3760
3844
|
* Create a headless plan → execute → replan → synthesize agent. Models are
|
|
@@ -4627,6 +4711,11 @@ interface ToolLoopOptions {
|
|
|
4627
4711
|
messages?: ModelMessage[];
|
|
4628
4712
|
/** In native mode: the callable tools. In prompted mode: used to dispatch salvaged calls. */
|
|
4629
4713
|
tools: ToolSet;
|
|
4714
|
+
/**
|
|
4715
|
+
* Native mode, `media.viewGenerated`: the run's pictures - each one generate_image leaves is put
|
|
4716
|
+
* into the next round's request (its call's result) and taken out of every round after it.
|
|
4717
|
+
*/
|
|
4718
|
+
pictures?: IGeneratedPictures;
|
|
4630
4719
|
/**
|
|
4631
4720
|
* Restrict callable tools to these names (plan-narrowed / search). Native mode
|
|
4632
4721
|
* passes them to the SDK's `activeTools`; prompted mode bounds `dispatch` to
|
|
@@ -4858,6 +4947,11 @@ interface ToolRunContext {
|
|
|
4858
4947
|
* helper the run starts shares it, and a subagent the host defined asks through it too.
|
|
4859
4948
|
*/
|
|
4860
4949
|
askUser?: AskUserChannel;
|
|
4950
|
+
/**
|
|
4951
|
+
* Internal - the run's pictures for its model (`media.viewGenerated`): `generate_image` leaves
|
|
4952
|
+
* the picture it made here for the executor to show its model once. Absent when off.
|
|
4953
|
+
*/
|
|
4954
|
+
pictures?: IGeneratedPictures;
|
|
4861
4955
|
}
|
|
4862
4956
|
/** Read the run context the agent passes to a tool's execute (undefined outside a run). */
|
|
4863
4957
|
declare const toolRunContextOf: (options: unknown) => ToolRunContext | undefined;
|
|
@@ -5045,5 +5139,5 @@ declare const postStorageChange: (dbName: string | undefined, change: StorageCha
|
|
|
5045
5139
|
*/
|
|
5046
5140
|
declare const onStorageChange: (dbName: string | undefined, listener: (change: StorageChange) => void) => (() => void);
|
|
5047
5141
|
|
|
5048
|
-
export { ACTION_RECORD_MAX_CHARS, ACTION_RECORD_NOTE, APP_SAMPLING_MAX_IMAGES, APP_SAMPLING_MAX_IMAGE_BYTES, APP_SAMPLING_MAX_INPUT_CHARS, APP_SAMPLING_MAX_MESSAGES, APP_SAMPLING_MAX_SYSTEM_CHARS, APP_SAMPLING_MAX_TOKENS, APP_SAMPLING_PER_APP, APP_SAMPLING_PER_MINUTE, APP_SAMPLING_REASONING_TOKENS, APP_SAMPLING_RPC_CODES, ASK_USER_DESCRIPTION_MAX_CHARS, ASK_USER_LABEL_MAX_CHARS, ASK_USER_MAX_OPTIONS, ASK_USER_MAX_PER_RUN, ASK_USER_MIN_OPTIONS, ASK_USER_OTHER_MAX_CHARS, ASK_USER_QUESTION_MAX_CHARS, ASK_USER_TIMEOUT_MAX_MS, ASK_USER_TIMEOUT_MS, ASK_USER_TOOL, AgentTool, AgentToolSet, AppSamplingError, AskUserInputError, AttachmentsNotSupportedError, ContextWindowExceededError, CredentialStore, DECISION_PROVIDERS, DEFAULT_COMPACTION_THRESHOLD_RATIO, DEFAULT_DECISION_CONFIDENCE_THRESHOLD, DEFAULT_DECISION_TIMEOUT_MS, EgressError, FILES_STORE, FIND_TOOLS_NAME, FORGET_SKILL_TOOL, IReferenceUse, ImagesNotSupportedError, IndexedDBRunStore, IndexedDBStore, KEYS_STORE, MODEL_TIERS, McpAppToolResult, McpElicitationReason, McpElicitationSchema, McpSkillConsent, McpSkillConsentView, MediaFitReference, MemoryRunStore, MemorySkillStore, MemoryStore, NO_ATTACHMENT_NOTE, PipelineDefinition, PipelineEvent, PipelineNode, PipelineNodeRunner, PipelineResult, PlanSchema, PlanStepSchema, RELAY_MAX_REPLAYS_PER_SECOND, RELAY_MAX_SENDS, RELAY_MAX_SEND_CHARS, RELAY_MAX_STRING, REPLAY_NOTE, RUNS_STORE, ReplanSchema, SAVE_SKILL_TOOL, SEARCH_API_BASE_URL, SEARCH_DEFAULT_MAX_RESULTS, SEARCH_GOOGLE_DEFAULT_MODEL, SEARCH_GOOGLE_NOTE, SEARCH_MAX_NOTE_CHARS, 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, SECRETS_STORE, SESSIONS_STORE, SESSION_LOCK_MODES, SKILL_TOOL_NAMES, SPAWN_INPUT_SCHEMA, SPAWN_SUBAGENT_TOOL, STORAGE_CHANGE_KINDS, SUBAGENT_DEFAULTS, SUBAGENT_MAX_DEPTH_LIMIT, SessionBusyError, SubagentSpawnError, TOOL_APPROVAL_MODES, TOOL_APPROVAL_TIMEOUT_MS, TOOL_SEARCH_WINDOW_SHARE, TieredPlanSchema, TieredPlanStepSchema, ToolBudgetError, ToolDeniedError, VfsSkillStore, VirtualFileSystem, WEBLLM_DEFAULT_CONTEXT_WINDOW, WEB_FETCH_TOOL, WEB_SEARCH_TOOL, actionRecordOf, adoptSubagentEvent, appSamplingRequestOf, appSamplingText, askDecisionModel, attachmentKind, buildMediaModelFromSpec, buildModelFromStage, buildSearchRequest, bytesToBase64, checkAskUserAnswer, checkAskUserInput, checkEgressUrl, checkLimits, classifyAddress, cleanAskUserText, compactHistory, compactSteps, compressHistory, contextOverflowOf, contextWindowOf, createAgent, createAppSamplingLimiter, createEgressTools, createFileTools, createFindToolsTool, createGuardedFetch, createLearning, createLogger, createMedia, createPipeline, createPlan, createRunControl, createSearchTools, createSkillTools, createSubagentTool, createToolResultClearer, createWebFetchTool, createWebLLMModel, createWebSearchTool, decideReplan, decideToolPermission, decisionEgressPolicy, decisionModelFromAiSdk, defaultPrompts, defineSkill, defineTool, directBrowserOk, dispatch, escalationReasonOf, messageTokens as estimateMessagesTokens, estimateTokens, executeStep, fileToolBindingOf, findSecret, fitCompactionToWindow, generate, generateStructured, hostMatches, htmlToText, isAttachmentRefusal, isCodeExecutionTool, isDirectModel, isEscalatableError, isImageRefusal, isProviderSpec, isReadOnlyTool, isReplayedToolOutput, isTextMime, isWebGPUAvailable, learnedPreamble, limitModelOutput, loadSkillFromUrl, looksLikeJson, markCodeExecution, markReadOnly, matchRule, mediaTypeOf, mergeProviderOptions, mimeFromPath, neutralizeActionRecords, nextStrongerTier, nodeResolver, normalizePath, normalizeSkillName, normalizeSteps, normalizeUsage, onStorageChange, openAgentWebDB, outputCapNotice, parseExecutorResponse, parsePlainText, parsePlannerResponse, parseReplannerResponse, parseSearchResponse, parseSkillMarkdown, pickPipelineRoute, pickTier, postStorageChange, preloadWebLLMModel, renderActiveSkills, renderCatalog, renderSearchCatalog, renderSkillIndex, replanWanted, resolveAppSampling, resolveBudgets, resolveCaching, resolveCompaction, resolveConfig, resolveDecisionModel, resolveDynamicSubagents, resolveEgressPolicy, resolveEscalation, resolveModel, resolveResume, resolveStage, resolveThinking, runToolLoop, sanitizeSearchResults, schemaHintOf, searchEgressPolicy, searchEngineAnswer, searchStatusMessage, searchToolResult, searchTools, searchUsageOf, selectToolMode, serveSubagentWorker, shouldReplan, skillPreamble, splitBlocker, stageOutputCap, stageReasons, stream, supportsImages, supportsNativeTools, supportsPdf, supportsStructuredOutput, synthesizeAnswer, thinkingFor, toFilePart, toImagePart, tokenize, toolCatalogOf, toolDefinitionTokens, toolRunContextOf, unloadWebLLMModel, watchSession, webLLMContextWindow, withActionRecord, withRollingBreakpoint, withSystem, withWebLLMContextWindow };
|
|
5049
|
-
export type { Agent, AgentContext, AgentEvent, AgentEventHandler, AgentLogger, AgentLoggerSink, AgentWebDBOptions, AppSamplingErrorCode, AppSamplingImage, AppSamplingMessage, AppSamplingOptions, AppSamplingRequest, AppSamplingResult, AppSamplingSettings, AppSamplingView, AppToolCallRequest, AskUserAction, AskUserAnswer, AskUserCheckedAnswer, AskUserConfig, AskUserContext, AskUserHandler, AskUserOption, AskUserQuestion, AskUserReason, AskUserRequest, AttachmentKind, BrowserAgentConfig, ClearedInfo, CompactOptions, CompactResult, CompactionConfig, CompressOptions, ContextStore, DecisionFallbackReason, DecisionPoint, EffectiveToolStrategy, EgressErrorCode, EscalationConfig, EscalationReason, ExecutorPromptContext, ExecutorResult, FileToolBinding, FileToolsOptions, GenerateOptions, GuardedFetch, IAiSdkDecisionOptions, IDecisionAnswer, IDecisionCallOptions, IDecisionConfig, IDecisionEvent, IDecisionModel, IDecisionModelSpec, IDecisionOption, IDecisionOutcome, IDecisionQuestion, IDynamicSubagentsConfig, IEgressPolicy, IMedia, IMediaConfig, IMediaFile, IMediaModelSpec, IMediaOptions, IMediaRun, IPlan, IPlanStep, IResolvedDynamicSubagents, IResolvedEgressPolicy, ISandboxConfig, ISandboxError, ISandboxLimits, ISandboxResult, ISanitizedSearch, ISearchAnswer, ISearchConfig, ISearchEngineAnswer, ISearchOptions, ISearchRequest, ISearchResult, ISearchToolResult, ISearchUsage, IStepEscalation, IStepResult, ISubagentsConfig, IToolCall, ITranscription, IUsage, IWebFetchOptions, IWebSearchOptions, IndexedDBRunStoreOptions, IndexedDBStoreOptions, Learning, LearningConfig, LimitBreach, LimitKind, LoadSkillOptions, LogLevel, McpSkillOrigin, MediaImageModel, MediaModelKind, MediaSpeechModel, MediaTranscriptionModel, MessageEndpoint, ModelInput, ModelTier, NodeResolverOptions, OutputCap, ParentToWorker, Phase, PhaseBudgets, Pipeline, PipelineOptions, PipelineRouteOptions, PipelineRouteResult, PipelineRunOptions, PlanShape, PlannerPromptContext, PlannerResult, PromptCachingSetting, PromptParts, Prompts, ProviderModelSpec, ProviderOptionsMap, ProviderType, ProxiedToolSpec, RawAction, ReplanDecision, ReplanMode, ReplanShape, ReplanTrigger, ReplannerPromptContext, ReplannerResult, ResolvedCaching, ResolvedCompaction, ResolvedConfig, ResolvedStage, ResolvedThinking, RunControl, RunFile, RunImage, RunOptions, RunPersistence, RunResult, RunSnapshot, RunStatus, RunStoreOptions, SandboxConfig, SandboxWorkerLike, SaveSkillInput, SearchEngine, SearchFreshness, SearchProvider, SearchToolsOptions, ServeSubagentOptions, SessionHolder, SessionLockMode, SessionRunState, SessionWatch, Skill, SkillOrigin, SkillStore, StageInput, StageOverride, StepComplexity, StorageChange, StorageChangeKind, StorageChangeOp, StoredMessage, StructuredResult, SubagentDefaultTools, SubagentInfo, SubagentProfile, SubagentToolOptions, SubagentWorkerConfig, SynthesizerPromptContext, ThinkingConfig, ThinkingLevel, ThinkingSetting, ThinkingStage, TierReason, TokenLimits, ToolApprovalApp, ToolApprovalConfig, ToolApprovalContext, ToolApprovalDecision, ToolApprovalMode, ToolApprovalRequest, ToolCallMode, ToolCatalogEntry, ToolLoopCallbacks, ToolLoopOptions, ToolLoopResult, ToolMode, ToolPermission, ToolResultClearing, ToolRunContext, ToolSelectionStrategy, UsagePhase, VfsListener, VirtualFile, VirtualFileInfo, VirtualFileSystemOptions, WatchSessionOptions, WebLLMAppConfigLike, WebLLMModelOptions, WorkerLike, WorkerToParent };
|
|
5142
|
+
export { ACTION_RECORD_MAX_CHARS, ACTION_RECORD_NOTE, APP_SAMPLING_MAX_IMAGES, APP_SAMPLING_MAX_IMAGE_BYTES, APP_SAMPLING_MAX_INPUT_CHARS, APP_SAMPLING_MAX_MESSAGES, APP_SAMPLING_MAX_SYSTEM_CHARS, APP_SAMPLING_MAX_TOKENS, APP_SAMPLING_PER_APP, APP_SAMPLING_PER_MINUTE, APP_SAMPLING_REASONING_TOKENS, APP_SAMPLING_RPC_CODES, ASK_USER_DESCRIPTION_MAX_CHARS, ASK_USER_LABEL_MAX_CHARS, ASK_USER_MAX_OPTIONS, ASK_USER_MAX_PER_RUN, ASK_USER_MIN_OPTIONS, ASK_USER_OTHER_MAX_CHARS, ASK_USER_QUESTION_MAX_CHARS, ASK_USER_TIMEOUT_MAX_MS, ASK_USER_TIMEOUT_MS, ASK_USER_TOOL, AgentTool, AgentToolSet, AppSamplingError, AskUserInputError, AttachmentsNotSupportedError, ContextWindowExceededError, CredentialStore, DECISION_PROVIDERS, DEFAULT_COMPACTION_THRESHOLD_RATIO, DEFAULT_DECISION_CONFIDENCE_THRESHOLD, DEFAULT_DECISION_TIMEOUT_MS, EgressError, FILES_STORE, FIND_TOOLS_NAME, FORGET_SKILL_TOOL, IReferenceUse, ImagesNotSupportedError, IndexedDBRunStore, IndexedDBStore, KEYS_STORE, MODEL_TIERS, McpAppToolResult, McpElicitationReason, McpElicitationSchema, McpSkillConsent, McpSkillConsentView, MediaFitReference, MemoryRunStore, MemorySkillStore, MemoryStore, NO_ATTACHMENT_NOTE, PipelineDefinition, PipelineEvent, PipelineNode, PipelineNodeRunner, PipelineResult, PlanSchema, PlanStepSchema, RELAY_MAX_REPLAYS_PER_SECOND, RELAY_MAX_SENDS, RELAY_MAX_SEND_CHARS, RELAY_MAX_STRING, REPLAY_NOTE, RUNS_STORE, ReplanSchema, SAVE_SKILL_TOOL, SEARCH_API_BASE_URL, SEARCH_DEFAULT_MAX_RESULTS, SEARCH_GOOGLE_DEFAULT_MODEL, SEARCH_GOOGLE_NOTE, SEARCH_MAX_NOTE_CHARS, 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, SECRETS_STORE, SESSIONS_STORE, SESSION_LOCK_MODES, SKILL_TOOL_NAMES, SPAWN_INPUT_SCHEMA, SPAWN_SUBAGENT_TOOL, STORAGE_CHANGE_KINDS, SUBAGENT_DEFAULTS, SUBAGENT_MAX_DEPTH_LIMIT, SessionBusyError, SubagentSpawnError, TOOL_APPROVAL_MODES, TOOL_APPROVAL_TIMEOUT_MS, TOOL_SEARCH_WINDOW_SHARE, TieredPlanSchema, TieredPlanStepSchema, ToolBudgetError, ToolDeniedError, VfsSkillStore, VirtualFileSystem, WEBLLM_DEFAULT_CONTEXT_WINDOW, WEB_FETCH_TOOL, WEB_SEARCH_TOOL, actionRecordOf, adoptSubagentEvent, appGrantKey, appSamplingRequestOf, appSamplingText, askDecisionModel, attachmentKind, buildMediaModelFromSpec, buildModelFromStage, buildSearchRequest, bytesToBase64, checkAskUserAnswer, checkAskUserInput, checkEgressUrl, checkLimits, classifyAddress, cleanAskUserText, compactHistory, compactSteps, compressHistory, contextOverflowOf, contextWindowOf, createAgent, createAppSamplingLimiter, createEgressTools, createFileTools, createFindToolsTool, createGuardedFetch, createLearning, createLogger, createMedia, createPipeline, createPlan, createRunControl, createSearchTools, createSkillTools, createSubagentTool, createToolResultClearer, createWebFetchTool, createWebLLMModel, createWebSearchTool, decideReplan, decideToolPermission, decisionEgressPolicy, decisionModelFromAiSdk, defaultPrompts, defineSkill, defineTool, directBrowserOk, dispatch, escalationReasonOf, messageTokens as estimateMessagesTokens, estimateTokens, executeStep, fileToolBindingOf, findSecret, fitCompactionToWindow, generate, generateStructured, hostMatches, htmlToText, isAttachmentRefusal, isCodeExecutionTool, isDirectModel, isEscalatableError, isImageRefusal, isProviderSpec, isReadOnlyTool, isReplayedToolOutput, isTextMime, isWebGPUAvailable, learnedPreamble, limitModelOutput, loadSkillFromUrl, looksLikeJson, markCodeExecution, markReadOnly, matchRule, mediaTypeOf, mergeProviderOptions, mimeFromPath, neutralizeActionRecords, nextStrongerTier, nodeResolver, normalizePath, normalizeSkillName, normalizeSteps, normalizeUsage, onStorageChange, openAgentWebDB, outputCapNotice, parseExecutorResponse, parsePlainText, parsePlannerResponse, parseReplannerResponse, parseSearchResponse, parseSkillMarkdown, pickPipelineRoute, pickTier, postStorageChange, preloadWebLLMModel, renderActiveSkills, renderCatalog, renderSearchCatalog, renderSkillIndex, replanWanted, resolveAppSampling, resolveBudgets, resolveCaching, resolveCompaction, resolveConfig, resolveDecisionModel, resolveDynamicSubagents, resolveEgressPolicy, resolveEscalation, resolveModel, resolveResume, resolveStage, resolveThinking, runToolLoop, sanitizeSearchResults, schemaHintOf, searchEgressPolicy, searchEngineAnswer, searchStatusMessage, searchToolResult, searchTools, searchUsageOf, selectToolMode, serveSubagentWorker, shouldReplan, skillPreamble, splitBlocker, stageOutputCap, stageReasons, stream, supportsImages, supportsNativeTools, supportsPdf, supportsStructuredOutput, synthesizeAnswer, thinkingFor, toFilePart, toImagePart, tokenize, toolCatalogOf, toolDefinitionTokens, toolRunContextOf, unloadWebLLMModel, watchSession, webLLMContextWindow, withActionRecord, withRollingBreakpoint, withSystem, withWebLLMContextWindow };
|
|
5143
|
+
export type { Agent, AgentContext, AgentEvent, AgentEventHandler, AgentLogger, AgentLoggerSink, AgentWebDBOptions, AppSamplingErrorCode, AppSamplingImage, AppSamplingMessage, AppSamplingOptions, AppSamplingRequest, AppSamplingResult, AppSamplingSettings, AppSamplingView, AppToolCallOptions, AppToolCallRequest, AskUserAction, AskUserAnswer, AskUserCheckedAnswer, AskUserConfig, AskUserContext, AskUserHandler, AskUserOption, AskUserQuestion, AskUserReason, AskUserRequest, AttachmentKind, BrowserAgentConfig, ClearedInfo, CompactOptions, CompactResult, CompactionConfig, CompressOptions, ContextStore, DecisionFallbackReason, DecisionPoint, EffectiveToolStrategy, EgressErrorCode, EscalationConfig, EscalationReason, ExecutorPromptContext, ExecutorResult, FileToolBinding, FileToolsOptions, GenerateOptions, GuardedFetch, IAiSdkDecisionOptions, IDecisionAnswer, IDecisionCallOptions, IDecisionConfig, IDecisionEvent, IDecisionModel, IDecisionModelSpec, IDecisionOption, IDecisionOutcome, IDecisionQuestion, IDynamicSubagentsConfig, IEgressPolicy, IMedia, IMediaConfig, IMediaFile, IMediaModelSpec, IMediaOptions, IMediaRun, IPlan, IPlanStep, IResolvedDynamicSubagents, IResolvedEgressPolicy, ISandboxConfig, ISandboxError, ISandboxLimits, ISandboxResult, ISanitizedSearch, ISearchAnswer, ISearchConfig, ISearchEngineAnswer, ISearchOptions, ISearchRequest, ISearchResult, ISearchToolResult, ISearchUsage, IStepEscalation, IStepResult, ISubagentsConfig, IToolCall, ITranscription, IUsage, IWebFetchOptions, IWebSearchOptions, IndexedDBRunStoreOptions, IndexedDBStoreOptions, Learning, LearningConfig, LimitBreach, LimitKind, LoadSkillOptions, LogLevel, McpSkillOrigin, MediaImageModel, MediaModelKind, MediaSpeechModel, MediaTranscriptionModel, MessageEndpoint, ModelInput, ModelTier, NodeResolverOptions, OutputCap, ParentToWorker, Phase, PhaseBudgets, Pipeline, PipelineOptions, PipelineRouteOptions, PipelineRouteResult, PipelineRunOptions, PlanShape, PlannerPromptContext, PlannerResult, PromptCachingSetting, PromptParts, Prompts, ProviderModelSpec, ProviderOptionsMap, ProviderType, ProxiedToolSpec, RawAction, ReplanDecision, ReplanMode, ReplanShape, ReplanTrigger, ReplannerPromptContext, ReplannerResult, ResolvedCaching, ResolvedCompaction, ResolvedConfig, ResolvedStage, ResolvedThinking, RunControl, RunFile, RunImage, RunOptions, RunPersistence, RunResult, RunSnapshot, RunStatus, RunStoreOptions, SandboxConfig, SandboxWorkerLike, SaveSkillInput, SearchEngine, SearchFreshness, SearchProvider, SearchToolsOptions, ServeSubagentOptions, SessionHolder, SessionLockMode, SessionRunState, SessionWatch, Skill, SkillOrigin, SkillStore, StageInput, StageOverride, StepComplexity, StorageChange, StorageChangeKind, StorageChangeOp, StoredMessage, StructuredResult, SubagentDefaultTools, SubagentInfo, SubagentProfile, SubagentToolOptions, SubagentWorkerConfig, SynthesizerPromptContext, ThinkingConfig, ThinkingLevel, ThinkingSetting, ThinkingStage, TierReason, TokenLimits, ToolApprovalApp, ToolApprovalConfig, ToolApprovalContext, ToolApprovalDecision, ToolApprovalMode, ToolApprovalRequest, ToolCallMode, ToolCatalogEntry, ToolLoopCallbacks, ToolLoopOptions, ToolLoopResult, ToolMode, ToolPermission, ToolResultClearing, ToolRunContext, ToolSelectionStrategy, UsagePhase, VfsListener, VirtualFile, VirtualFileInfo, VirtualFileSystemOptions, WatchSessionOptions, WebLLMAppConfigLike, WebLLMModelOptions, WorkerLike, WorkerToParent };
|