@webskill/sdk 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +17 -10
- package/dist/{approval-BnLLCOG0.js → approval-B7GW86u2.js} +58 -5
- package/dist/browser.d.ts +87 -5
- package/dist/browser.js +300 -21
- package/dist/governance.d.ts +3 -3
- package/dist/governance.js +1 -1
- package/dist/{index-DbVqg2V3.d.ts → index-BDyXe-a5.d.ts} +1 -1
- package/dist/{index-DeXgdtHa.d.ts → index-CaLsVI-m.d.ts} +7 -2
- package/dist/{index-BLfnO7sz.d.ts → index-DQ3-6GFu.d.ts} +32 -11
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/{llm-B7lLH0ZI.js → llm-eIQNO9tr.js} +67 -12
- package/dist/mcp.d.ts +2 -2
- package/dist/node.d.ts +3 -3
- package/dist/node.js +13 -7
- package/dist/{openUiLibrary-BWEBU9P-.js → openUiLibrary-BJtCG5B1.js} +1 -1
- package/dist/{openUiSpecLang-BIK6CWlW.js → openUiSpecLang-B4QQ9Tfo.js} +3 -2
- package/dist/{skillVersionStore-B24Jjjry-CsbzF7Oe.d.ts → skillVersionStore-B24Jjjry-v2CCU0Xo.d.ts} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/{types-C3V6lAeO-BUpcRLER.d.ts → types-Btpdd1y--BcxQ10Fa.d.ts} +9 -3
- package/dist/{types-BuacBov_.js → types-DOJI5YC3.js} +4 -3
- package/dist/ui-react.d.ts +3 -3
- package/dist/ui-react.js +2 -2
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +2 -2
- package/dist/{webSkillApi-DOOyz2G5.js → webSkillApi-DMENIqW0.js} +1 -1
- package/dist/{webskillLitCatalog-poL1qhBp.js → webskillLitCatalog-BBkQjKuN.js} +1 -1
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { E as DEFAULT_MAX_DATA_SOURCE_BYTES } from "./index-
|
|
2
|
-
import { $ as NestedFrameRef, $t as TAB_WORKSET_MIN_MAX, A as DelegationRequest, An as withDelegationOrigin, At as PerceptionAuditSink, B as DownloadedFileReader, Bt as SkillGenerationMessages, C as DataSourcePolicyOptions, Cn as createSkillGenerationToolSource, Ct as PagePerceptionPolicy, D as DelegationBudget, Dn as frameSteps, Dt as ParentBudget, E as DataSourceTransport, En as frameLabel, Et as PagePerceptionToolSourceOptions, F as DownloadedFileEntry, Ft as PerceptionScope, G as FrameScope, Gt as SkillGeneratorOptions, H as DownloadedFileToolSourceOptions, Ht as SkillGenerationPolicy, I as DownloadedFileListing, It as PerceptionScopeInput, J as HttpDataSourceOptions, Jt as SubAgentRunInput, K as GENERATE_SKILL_TOOL, Kt as SkillTraceEvidence, L as DownloadedFilePolicy, Lt as READ_DOWNLOADED_FILE_TOOL, M as DelegationToolSourceOptions, Mt as PerceptionPagingBudget, N as DownloadedFileAction, Nt as PerceptionRecord, O as DelegationOrchestrator, On as toActionFrameScopes, Ot as PerceivedImage, P as DownloadedFileConsent, Pt as PerceptionResult, Q as MANAGE_TODO_TOOL, Qt as TAB_WORKSET_MAX_MAX, R as DownloadedFilePolicyOptions, Rt as SKILL_GENERATION_SYSTEM_PROMPT, S as DataSourcePolicy, Sn as createPagePerceptionToolSource, St as PageAuditSink, T as DataSourceRecord, Tn as createTodoToolSource, Tt as PagePerceptionReader, U as FOCUS_PAGE_TAB_TOOL, Ut as SkillGenerationToolSourceOptions, V as DownloadedFileRecord, Vt as SkillGenerationOutcome, W as FrameNote, Wt as SkillGenerator, X as LIST_DOWNLOADED_FILES_TOOL, Xt as SubtreeRejection, Y as ImageCaptureBudget, Yt as SubAgentRunner, Z as LIST_PAGE_TABS_TOOL, Zt as TAB_WORKSET_DEFAULT_MAX, _ as DataSourceCandidatePolicyOptions, _n as clampWorksetMax, _t as PageActionScope, a as ActionTabWindow, an as TabWorksetPort, at as PAGE_DOCUMENT_REF, b as DataSourceDef, bn as createHttpDataSourceTransport, bt as PageActionToolSourceOptions, c as DELEGATE_TASK_TOOL, cn as TodoItem, ct as PERCEPTION_SYSTEM_PROMPT, d as DOWNLOAD_WAIT_MAX_MS, dn as TodoStatus, dt as PageActionKind, en as TAB_WORKSET_SYSTEM_PROMPT, et as OpenedPageInfo, f as DOWNLOAD_WAIT_MIN_MS, fn as TodoStore, ft as PageActionOutcome, g as DataSourceCandidatePolicy, gn as clampDownloadWaitMs, gt as PageActionRequest, h as DataSourceCandidateAuditSink, hn as WorksetTabView, ht as PageActionRecord, i as ActionTabWatcher, in as TabWorksetPolicyOptions, it as PAGE_ACTION_TOOL, j as DelegationResult, jt as PerceptionCaptureOptions, k as DelegationOrchestratorOptions, kn as toFrameScopes, kt as PerceivedNode, l as DELEGATION_SYSTEM_PROMPT, ln as TodoList, lt as PageActionConsent, m as DataSourceCandidate, mn as WorksetTab, mt as PageActionPolicyOptions, n as ActionDownloadWindow, nn as TabAdmission, nt as PAGE_ACTION_KINDS, o as CLOSE_PAGE_TAB_TOOL, on as TabWorksetToolSourceOptions, ot as PERCEIVE_PAGE_TOOL, p as DataSourceAuditSink, pn as TodoToolSourceOptions, pt as PageActionPolicy, q as GeneratedSkillDraft, qt as SkillTraceEvidenceStep, r as ActionFrameScope, rn as TabWorksetPolicy, rt as PAGE_ACTION_SYSTEM_PROMPT, s as ConsentUi, sn as TodoEvent, st as PERCEPTION_PAGING_DEFAULTS, t as ActionDownloadWatcher, tn as TODO_SYSTEM_PROMPT, tt as OpenedTabSignal, u as DOWNLOAD_WAIT_DEFAULT_MS, un as TodoListener, ut as PageActionExecutor, v as DataSourceCandidateRecord, vn as createDelegationToolSource, vt as PageActionScopeInput, w as DataSourceProvenance, wn as createTabWorksetToolSource, wt as PagePerceptionPolicyOptions, x as DataSourceKind, xn as createPageActionToolSource, xt as PageActionUi, y as DataSourceCandidateStore, yn as createDownloadedFileToolSource, yt as PageActionTarget, z as DownloadedFileReadResult, zt as SkillCandidateSink } from "./index-
|
|
1
|
+
import { E as DEFAULT_MAX_DATA_SOURCE_BYTES } from "./index-BDyXe-a5.js";
|
|
2
|
+
import { $ as NestedFrameRef, $t as TAB_WORKSET_MIN_MAX, A as DelegationRequest, An as withDelegationOrigin, At as PerceptionAuditSink, B as DownloadedFileReader, Bt as SkillGenerationMessages, C as DataSourcePolicyOptions, Cn as createSkillGenerationToolSource, Ct as PagePerceptionPolicy, D as DelegationBudget, Dn as frameSteps, Dt as ParentBudget, E as DataSourceTransport, En as frameLabel, Et as PagePerceptionToolSourceOptions, F as DownloadedFileEntry, Ft as PerceptionScope, G as FrameScope, Gt as SkillGeneratorOptions, H as DownloadedFileToolSourceOptions, Ht as SkillGenerationPolicy, I as DownloadedFileListing, It as PerceptionScopeInput, J as HttpDataSourceOptions, Jt as SubAgentRunInput, K as GENERATE_SKILL_TOOL, Kt as SkillTraceEvidence, L as DownloadedFilePolicy, Lt as READ_DOWNLOADED_FILE_TOOL, M as DelegationToolSourceOptions, Mt as PerceptionPagingBudget, N as DownloadedFileAction, Nt as PerceptionRecord, O as DelegationOrchestrator, On as toActionFrameScopes, Ot as PerceivedImage, P as DownloadedFileConsent, Pt as PerceptionResult, Q as MANAGE_TODO_TOOL, Qt as TAB_WORKSET_MAX_MAX, R as DownloadedFilePolicyOptions, Rt as SKILL_GENERATION_SYSTEM_PROMPT, S as DataSourcePolicy, Sn as createPagePerceptionToolSource, St as PageAuditSink, T as DataSourceRecord, Tn as createTodoToolSource, Tt as PagePerceptionReader, U as FOCUS_PAGE_TAB_TOOL, Ut as SkillGenerationToolSourceOptions, V as DownloadedFileRecord, Vt as SkillGenerationOutcome, W as FrameNote, Wt as SkillGenerator, X as LIST_DOWNLOADED_FILES_TOOL, Xt as SubtreeRejection, Y as ImageCaptureBudget, Yt as SubAgentRunner, Z as LIST_PAGE_TABS_TOOL, Zt as TAB_WORKSET_DEFAULT_MAX, _ as DataSourceCandidatePolicyOptions, _n as clampWorksetMax, _t as PageActionScope, a as ActionTabWindow, an as TabWorksetPort, at as PAGE_DOCUMENT_REF, b as DataSourceDef, bn as createHttpDataSourceTransport, bt as PageActionToolSourceOptions, c as DELEGATE_TASK_TOOL, cn as TodoItem, ct as PERCEPTION_SYSTEM_PROMPT, d as DOWNLOAD_WAIT_MAX_MS, dn as TodoStatus, dt as PageActionKind, en as TAB_WORKSET_SYSTEM_PROMPT, et as OpenedPageInfo, f as DOWNLOAD_WAIT_MIN_MS, fn as TodoStore, ft as PageActionOutcome, g as DataSourceCandidatePolicy, gn as clampDownloadWaitMs, gt as PageActionRequest, h as DataSourceCandidateAuditSink, hn as WorksetTabView, ht as PageActionRecord, i as ActionTabWatcher, in as TabWorksetPolicyOptions, it as PAGE_ACTION_TOOL, j as DelegationResult, jt as PerceptionCaptureOptions, k as DelegationOrchestratorOptions, kn as toFrameScopes, kt as PerceivedNode, l as DELEGATION_SYSTEM_PROMPT, ln as TodoList, lt as PageActionConsent, m as DataSourceCandidate, mn as WorksetTab, mt as PageActionPolicyOptions, n as ActionDownloadWindow, nn as TabAdmission, nt as PAGE_ACTION_KINDS, o as CLOSE_PAGE_TAB_TOOL, on as TabWorksetToolSourceOptions, ot as PERCEIVE_PAGE_TOOL, p as DataSourceAuditSink, pn as TodoToolSourceOptions, pt as PageActionPolicy, q as GeneratedSkillDraft, qt as SkillTraceEvidenceStep, r as ActionFrameScope, rn as TabWorksetPolicy, rt as PAGE_ACTION_SYSTEM_PROMPT, s as ConsentUi, sn as TodoEvent, st as PERCEPTION_PAGING_DEFAULTS, t as ActionDownloadWatcher, tn as TODO_SYSTEM_PROMPT, tt as OpenedTabSignal, u as DOWNLOAD_WAIT_DEFAULT_MS, un as TodoListener, ut as PageActionExecutor, v as DataSourceCandidateRecord, vn as createDelegationToolSource, vt as PageActionScopeInput, w as DataSourceProvenance, wn as createTabWorksetToolSource, wt as PagePerceptionPolicyOptions, x as DataSourceKind, xn as createPageActionToolSource, xt as PageActionUi, y as DataSourceCandidateStore, yn as createDownloadedFileToolSource, yt as PageActionTarget, z as DownloadedFileReadResult, zt as SkillCandidateSink } from "./index-DQ3-6GFu.js";
|
|
3
3
|
export { type ActionDownloadWatcher, type ActionDownloadWindow, type ActionFrameScope, type ActionTabWatcher, type ActionTabWindow, CLOSE_PAGE_TAB_TOOL, type ConsentUi, DEFAULT_MAX_DATA_SOURCE_BYTES, DELEGATE_TASK_TOOL, DELEGATION_SYSTEM_PROMPT, DOWNLOAD_WAIT_DEFAULT_MS, DOWNLOAD_WAIT_MAX_MS, DOWNLOAD_WAIT_MIN_MS, type DataSourceAuditSink, type DataSourceCandidate, type DataSourceCandidateAuditSink, DataSourceCandidatePolicy, type DataSourceCandidatePolicyOptions, type DataSourceCandidateRecord, type DataSourceCandidateStore, type DataSourceDef, type DataSourceKind, DataSourcePolicy, type DataSourcePolicyOptions, type DataSourceProvenance, type DataSourceRecord, type DataSourceTransport, type DelegationBudget, DelegationOrchestrator, type DelegationOrchestratorOptions, type DelegationRequest, type DelegationResult, type DelegationToolSourceOptions, type DownloadedFileAction, type DownloadedFileConsent, type DownloadedFileEntry, type DownloadedFileListing, DownloadedFilePolicy, type DownloadedFilePolicyOptions, type DownloadedFileReadResult, type DownloadedFileReader, type DownloadedFileRecord, type DownloadedFileToolSourceOptions, FOCUS_PAGE_TAB_TOOL, type FrameNote, type FrameScope, GENERATE_SKILL_TOOL, type GeneratedSkillDraft, type HttpDataSourceOptions, type ImageCaptureBudget, LIST_DOWNLOADED_FILES_TOOL, LIST_PAGE_TABS_TOOL, MANAGE_TODO_TOOL, type NestedFrameRef, type OpenedPageInfo, type OpenedTabSignal, PAGE_ACTION_KINDS, PAGE_ACTION_SYSTEM_PROMPT, PAGE_ACTION_TOOL, PAGE_DOCUMENT_REF, PERCEIVE_PAGE_TOOL, PERCEPTION_PAGING_DEFAULTS, PERCEPTION_SYSTEM_PROMPT, type PageActionConsent, type PageActionExecutor, type PageActionKind, type PageActionOutcome, PageActionPolicy, type PageActionPolicyOptions, type PageActionRecord, type PageActionRequest, type PageActionScope, type PageActionScopeInput, type PageActionTarget, type PageActionToolSourceOptions, type PageActionUi, type PageAuditSink, PagePerceptionPolicy, type PagePerceptionPolicyOptions, type PagePerceptionReader, type PagePerceptionToolSourceOptions, type ParentBudget, type PerceivedImage, type PerceivedNode, type PerceptionAuditSink, type PerceptionCaptureOptions, type PerceptionPagingBudget, type PerceptionRecord, type PerceptionResult, type PerceptionScope, type PerceptionScopeInput, READ_DOWNLOADED_FILE_TOOL, SKILL_GENERATION_SYSTEM_PROMPT, type SkillCandidateSink, type SkillGenerationMessages, type SkillGenerationOutcome, type SkillGenerationPolicy, type SkillGenerationToolSourceOptions, SkillGenerator, type SkillGeneratorOptions, type SkillTraceEvidence, type SkillTraceEvidenceStep, type SubAgentRunInput, type SubAgentRunner, type SubtreeRejection, TAB_WORKSET_DEFAULT_MAX, TAB_WORKSET_MAX_MAX, TAB_WORKSET_MIN_MAX, TAB_WORKSET_SYSTEM_PROMPT, TODO_SYSTEM_PROMPT, type TabAdmission, TabWorksetPolicy, type TabWorksetPolicyOptions, type TabWorksetPort, type TabWorksetToolSourceOptions, type TodoEvent, type TodoItem, type TodoList, type TodoListener, type TodoStatus, TodoStore, type TodoToolSourceOptions, type WorksetTab, type WorksetTabView, clampDownloadWaitMs, clampWorksetMax, createDelegationToolSource, createDownloadedFileToolSource, createHttpDataSourceTransport, createPageActionToolSource, createPagePerceptionToolSource, createSkillGenerationToolSource, createTabWorksetToolSource, createTodoToolSource, frameLabel, frameSteps, toActionFrameScopes, toFrameScopes, withDelegationOrigin };
|
package/dist/agent.js
CHANGED
|
@@ -3,7 +3,7 @@ import { b as parseSkillMarkdown, y as isValidSkillName } from "./skill-CAJMsLod
|
|
|
3
3
|
import { t as assertRemoteUrlAllowed } from "./urlSafety-CiSuCJvX.js";
|
|
4
4
|
import { c as formatAttachmentText, l as UNTRUSTED_LINE_LIMIT, o as XLSX_MIME, s as classifyAttachment, u as sanitizeUntrustedLine } from "./kind-DxgS8LM-.js";
|
|
5
5
|
import { o as toBase64, s as DEFAULT_MAX_DATA_SOURCE_BYTES } from "./linkedDocument-xNXF-z8n.js";
|
|
6
|
-
import { a as frameLabel, i as toFrameScopes, n as PAGE_DOCUMENT_REF, o as frameSteps, r as toActionFrameScopes, t as PAGE_ACTION_KINDS } from "./types-
|
|
6
|
+
import { a as frameLabel, i as toFrameScopes, n as PAGE_DOCUMENT_REF, o as frameSteps, r as toActionFrameScopes, t as PAGE_ACTION_KINDS } from "./types-DOJI5YC3.js";
|
|
7
7
|
|
|
8
8
|
//#region ../agent/src/todo/store.ts
|
|
9
9
|
const STATUSES = [
|
|
@@ -1274,7 +1274,7 @@ const PERCEPTION_SYSTEM_PROMPT = [
|
|
|
1274
1274
|
//#endregion
|
|
1275
1275
|
//#region ../agent/src/perception/toolSource.ts
|
|
1276
1276
|
const PERCEIVE_PAGE_TOOL = "perceive_page";
|
|
1277
|
-
const DESCRIPTION$1 = "Read the parts of the current page the host made readable, as a structured accessibility outline. Read-only: it cannot click, type, submit
|
|
1277
|
+
const DESCRIPTION$1 = "Read the parts of the current page the host made readable, as a structured accessibility outline. Read-only: it cannot click, type, submit or navigate.";
|
|
1278
1278
|
/**
|
|
1279
1279
|
* 两个参数,且它们都扩不出一寸新范围(AC-10.8 的判据由 0.14.0 分册 22 §3 修订)。
|
|
1280
1280
|
*
|
|
@@ -2000,7 +2000,7 @@ var PageActionPolicy = class {
|
|
|
2000
2000
|
const where = target.frame === void 0 ? "on the page" : `in the embedded frame "${target.frame}"`;
|
|
2001
2001
|
const scopeNote = target.elevated === true ? " This dialog is outside the usual allowlist; it was opened by this task." : "";
|
|
2002
2002
|
const scopeLabel = rememberable ? this.#options.consent?.describeScope?.(target, request.action) : void 0;
|
|
2003
|
-
const message = request.action === "back" ? `Allow the assistant to go back to the previous page${target.name === void 0 ? "" : ` on "${target.name}"`}?${scopeNote}` : `Allow the assistant to ${request.action} "${target.name ?? target.role}" ${where}?${scopeNote}`;
|
|
2003
|
+
const message = request.action === "back" ? `Allow the assistant to go back to the previous page${target.name === void 0 ? "" : ` on "${target.name}"`}?${scopeNote}` : request.action === "scroll" ? `Allow the assistant to scroll ${request.value === "up" ? "up" : "down"} the area around "${target.name ?? target.role}" ${where}?${scopeNote}` : `Allow the assistant to ${request.action} "${target.name ?? target.role}" ${where}?${scopeNote}`;
|
|
2004
2004
|
const response = await this.#options.ui.request({
|
|
2005
2005
|
type: "authorize",
|
|
2006
2006
|
id: `page-action-${this.#seq}`,
|
|
@@ -2016,7 +2016,8 @@ var PageActionPolicy = class {
|
|
|
2016
2016
|
},
|
|
2017
2017
|
...rememberable ? { rememberable: true } : {},
|
|
2018
2018
|
...scopeLabel !== void 0 ? { rememberLabel: scopeLabel } : {},
|
|
2019
|
-
...request.action === "fill" && request.value !== void 0 ? { value: target.secret === true ? "••••••" : request.value } : {}
|
|
2019
|
+
...request.action === "fill" && request.value !== void 0 ? { value: target.secret === true ? "••••••" : request.value } : {},
|
|
2020
|
+
...request.action === "scroll" ? { direction: request.value === "up" ? "up" : "down" } : {}
|
|
2020
2021
|
}
|
|
2021
2022
|
});
|
|
2022
2023
|
if (response.cancelled === true || response.value === false) return false;
|
|
@@ -2046,6 +2047,10 @@ var PageActionPolicy = class {
|
|
|
2046
2047
|
approved,
|
|
2047
2048
|
ok: outcome.ok,
|
|
2048
2049
|
...request.action === "fill" && request.value !== void 0 && !secret ? { value: request.value } : {},
|
|
2050
|
+
...request.action === "scroll" && outcome.scrolled !== void 0 ? { scrolled: {
|
|
2051
|
+
direction: request.value === "up" ? "up" : "down",
|
|
2052
|
+
...outcome.scrolled
|
|
2053
|
+
} } : {},
|
|
2049
2054
|
...outcome.reason !== void 0 ? { reason: outcome.reason } : {}
|
|
2050
2055
|
};
|
|
2051
2056
|
this.#records = [record, ...this.#records].slice(0, 50);
|
|
@@ -2093,7 +2098,8 @@ const PAGE_ACTION_SYSTEM_PROMPT = [
|
|
|
2093
2098
|
"Every action asks the user to confirm it first, so do not chain actions speculatively: act only when the user asked for something that requires it.",
|
|
2094
2099
|
"A reference expires as soon as the page is perceived again; perceive first, then act.",
|
|
2095
2100
|
"After an action, the result tells you where it led. \"openedTab\" means a new page opened — switch to it with focus_page_tab to read it. \"navigated\" means this page itself moved to a new address. \"elevatedModal\" means a dialog opened on this page. If none of the three appear, the page did not change.",
|
|
2096
|
-
"Use the \"back\" action to return to the previous page in this page's history. It takes no \"ref\" and no \"value\", and it only affects the page you are currently on. After going back, always perceive_page again: every reference from before the action is dead."
|
|
2101
|
+
"Use the \"back\" action to return to the previous page in this page's history. It takes no \"ref\" and no \"value\", and it only affects the page you are currently on. After going back, always perceive_page again: every reference from before the action is dead.",
|
|
2102
|
+
"Use the \"scroll\" action only when the page itself says there is more than you can see (for example a list that says it has 20 rows but shows 13). Pass the \"ref\" of any element inside the region you want to scroll and a \"value\" of \"down\" or \"up\"; the region is found for you, so do not look for a reference to the scrollbar or the container. The result carries \"scrolled\": when \"atEnd\" is true there is nothing further in that direction — stop scrolling and answer with what you have. Perceive the page again after each scroll: rows that left the screen no longer exist and their references are dead."
|
|
2097
2103
|
].join("\n");
|
|
2098
2104
|
|
|
2099
2105
|
//#endregion
|
|
@@ -2118,7 +2124,7 @@ const INPUT_SCHEMA = {
|
|
|
2118
2124
|
},
|
|
2119
2125
|
value: {
|
|
2120
2126
|
type: "string",
|
|
2121
|
-
description: "Text for \"fill\", the option name for \"select\",
|
|
2127
|
+
description: "Text for \"fill\", the option name for \"select\", \"true\"/\"false\" for \"set\", or \"down\"/\"up\" for \"scroll\""
|
|
2122
2128
|
}
|
|
2123
2129
|
},
|
|
2124
2130
|
required: ["action"],
|
|
@@ -2209,6 +2215,7 @@ function createPageActionToolSource(options) {
|
|
|
2209
2215
|
"select",
|
|
2210
2216
|
"set"
|
|
2211
2217
|
].includes(action) && typeof value !== "string") return toolError$2("VALIDATION_FAILED", `act_on_page needs a "value" string when the action is "${action}".`);
|
|
2218
|
+
if (action === "scroll" && value !== "down" && value !== "up") return toolError$2("VALIDATION_FAILED", "act_on_page with \"scroll\" needs a \"value\" of \"down\" or \"up\".");
|
|
2212
2219
|
return await run({
|
|
2213
2220
|
ref,
|
|
2214
2221
|
action,
|
|
@@ -2220,11 +2227,11 @@ function createPageActionToolSource(options) {
|
|
|
2220
2227
|
|
|
2221
2228
|
//#endregion
|
|
2222
2229
|
//#region ../agent/src/tabs/policy.ts
|
|
2223
|
-
/**
|
|
2224
|
-
const TAB_WORKSET_DEFAULT_MAX =
|
|
2230
|
+
/** 工作集容量缺省(分册 18);一屏索引视图的行数就是它要盖住的量,撞 `workset-full` 时模型没有任何入口能要更多 */
|
|
2231
|
+
const TAB_WORKSET_DEFAULT_MAX = 32;
|
|
2225
2232
|
/** 地板:2 的含义是「起点页 + 至少一个详情页」,低于它工作集这个概念就没有意义 */
|
|
2226
2233
|
const TAB_WORKSET_MIN_MAX = 2;
|
|
2227
|
-
/** 天花板:宿主写错一个 0
|
|
2234
|
+
/** 天花板:宿主写错一个 0 不该让一轮任务铺开几百个标签页。与缺省同值,宿主只调得低不调得高 */
|
|
2228
2235
|
const TAB_WORKSET_MAX_MAX = 32;
|
|
2229
2236
|
/**
|
|
2230
2237
|
* 夹取工作集容量(FR-11.5 / D-11-3)。
|
|
@@ -2234,7 +2241,7 @@ const TAB_WORKSET_MAX_MAX = 32;
|
|
|
2234
2241
|
* @experimental
|
|
2235
2242
|
*/
|
|
2236
2243
|
function clampWorksetMax(value) {
|
|
2237
|
-
if (value === void 0 || !Number.isFinite(value)) return
|
|
2244
|
+
if (value === void 0 || !Number.isFinite(value)) return 32;
|
|
2238
2245
|
return Math.min(32, Math.max(2, Math.trunc(value)));
|
|
2239
2246
|
}
|
|
2240
2247
|
const UNKNOWN_MESSAGE = "That page is not in this task's page set.";
|
|
@@ -2,7 +2,7 @@ import { n as messageOf, t as WebSkillError } from "./errors-BDZNpC13.js";
|
|
|
2
2
|
import { b as parseSkillMarkdown, i as buildCatalog, n as SkillDiscovery, r as SkillReader } from "./skill-CAJMsLod.js";
|
|
3
3
|
import { a as atomicWriteText, r as resolveInsideRoot, t as assertSafePathSegment } from "./pathSecurity-B1owvJAF.js";
|
|
4
4
|
import { t as assertRemoteUrlAllowed } from "./urlSafety-CiSuCJvX.js";
|
|
5
|
-
import { c as findUnpairedToolCalls, d as partsToText, f as promptText, l as interruptedToolResult, p as textParts, u as sealToolCallPairs } from "./llm-
|
|
5
|
+
import { c as findUnpairedToolCalls, d as partsToText, f as promptText, l as interruptedToolResult, p as textParts, u as sealToolCallPairs } from "./llm-eIQNO9tr.js";
|
|
6
6
|
import { a as fromBase64, c as DEFAULT_MAX_DOCUMENT_BYTES, d as TEXT_BUDGETED_CONTENT_TYPES, i as UNSUPPORTED_DOCUMENT_MESSAGE, l as DEFAULT_MAX_DOCUMENT_TEXT_BYTES, n as READ_LINKED_DOCUMENT_TOOL_NAME, o as toBase64, r as SUPPORTED_DOCUMENT_MIME, t as READ_LINKED_DOCUMENT_TOOL } from "./linkedDocument-xNXF-z8n.js";
|
|
7
7
|
import { t as mergeCatalogEntries } from "./external-_ZRQe-V9.js";
|
|
8
8
|
import { i as isArtifactCardHidden, n as extractChartSpec, r as admitArtifactMetadata, t as buildRenderResult } from "./renderResult-D9Q-Vu2x.js";
|
|
@@ -1051,6 +1051,7 @@ const DATA_SOURCE_PROVENANCE_NOTE = {
|
|
|
1051
1051
|
};
|
|
1052
1052
|
/** 分片是不是 PDF;mime 允许带参数与大小写差异,与 FR-11.1 的判定同口径 */
|
|
1053
1053
|
const isPdfPart = (part) => part.type === "file" && part.mimeType.split(";")[0]?.trim().toLowerCase() === SUPPORTED_DOCUMENT_MIME.pdf;
|
|
1054
|
+
const isImagePart = (part) => part.type === "image";
|
|
1054
1055
|
/**
|
|
1055
1056
|
* LLM 客户端在 HTTP 失败时放进 `details` 的状态码(FR-22.2)。
|
|
1056
1057
|
* 判不出来返回 undefined——网络层异常没有状态码,回退对它没有意义。
|
|
@@ -1227,6 +1228,7 @@ var AgentLoop = class {
|
|
|
1227
1228
|
externalToolSources: /* @__PURE__ */ new Map(),
|
|
1228
1229
|
withheldTools: /* @__PURE__ */ new Set(),
|
|
1229
1230
|
pdfFallbackDone: false,
|
|
1231
|
+
imageFallbackDone: false,
|
|
1230
1232
|
integrityVerdicts: /* @__PURE__ */ new Map(),
|
|
1231
1233
|
toolTimeoutMs: this.#config.toolTimeoutMs,
|
|
1232
1234
|
now,
|
|
@@ -1441,8 +1443,12 @@ var AgentLoop = class {
|
|
|
1441
1443
|
turn--;
|
|
1442
1444
|
continue;
|
|
1443
1445
|
}
|
|
1446
|
+
if (this.#dropRejectedImages(state, e)) {
|
|
1447
|
+
turn--;
|
|
1448
|
+
continue;
|
|
1449
|
+
}
|
|
1444
1450
|
const code = e instanceof WebSkillError && LLM_TURN_CODES.has(e.code) ? e.code : "LLM_REQUEST_FAILED";
|
|
1445
|
-
const hint = state.pdfFallbackDone ? " The attached PDF was re-sent as extracted text after the endpoint rejected the original file, and that attempt failed as well." : messages.some((message) => message.content.some(isPdfPart)) ? " This turn attached a document; the selected model may not accept document input. Try another model, or link a Word or text file instead." : "";
|
|
1451
|
+
const hint = state.pdfFallbackDone ? " The attached PDF was re-sent as extracted text after the endpoint rejected the original file, and that attempt failed as well." : messages.some((message) => message.content.some(isPdfPart)) ? " This turn attached a document; the selected model may not accept document input. Try another model, or link a Word or text file instead." : state.imageFallbackDone ? " The images were dropped after the endpoint rejected them, and the retry failed as well." : "";
|
|
1446
1452
|
return finish("failed", "llm-error", `${messageOf(e)}${hint}`, code);
|
|
1447
1453
|
}
|
|
1448
1454
|
if (response.thinking !== void 0 && response.thinking !== "") {
|
|
@@ -1678,6 +1684,7 @@ var AgentLoop = class {
|
|
|
1678
1684
|
externalToolSources: /* @__PURE__ */ new Map(),
|
|
1679
1685
|
withheldTools: /* @__PURE__ */ new Set(),
|
|
1680
1686
|
pdfFallbackDone: false,
|
|
1687
|
+
imageFallbackDone: false,
|
|
1681
1688
|
integrityVerdicts: /* @__PURE__ */ new Map(),
|
|
1682
1689
|
toolTimeoutMs: snapshot.config.toolTimeoutMs,
|
|
1683
1690
|
now,
|
|
@@ -2745,6 +2752,44 @@ var AgentLoop = class {
|
|
|
2745
2752
|
});
|
|
2746
2753
|
return converted > 0;
|
|
2747
2754
|
}
|
|
2755
|
+
/**
|
|
2756
|
+
* 端点拒收本轮携带的图片后,把 image 分片换成一条说明让本轮可以重发(分册 15 FR-15.1)。
|
|
2757
|
+
* 返回 true 表示已改写、调用方应重试本轮。
|
|
2758
|
+
*
|
|
2759
|
+
* **不去解析端点指了哪一张**:`.messages[64].image[1]` 这类指针是提供方私有的,
|
|
2760
|
+
* 而重试预算只有一次——留一张没换的,重发还是被同一个端点拒。
|
|
2761
|
+
* 判据与 PDF 回退同口径:本轮真的带了图这个**事实**,不是猜错误文案。
|
|
2762
|
+
*
|
|
2763
|
+
* 图是感知结果的补充,结构化大纲仍在上下文里,去掉图这一轮仍然做得下去;
|
|
2764
|
+
* 而现状是一张解不开的图把整次扇出—汇聚打死。
|
|
2765
|
+
*/
|
|
2766
|
+
#dropRejectedImages(state, cause) {
|
|
2767
|
+
if (state.imageFallbackDone) return false;
|
|
2768
|
+
const status = httpStatusOf(cause);
|
|
2769
|
+
if (status === void 0 || status < 400 || status >= 500) return false;
|
|
2770
|
+
if (!state.messages.some((message) => message.content.some(isImagePart))) return false;
|
|
2771
|
+
state.imageFallbackDone = true;
|
|
2772
|
+
let dropped = 0;
|
|
2773
|
+
for (const message of state.messages) {
|
|
2774
|
+
const kept = message.content.filter((part) => !isImagePart(part));
|
|
2775
|
+
const removed = message.content.length - kept.length;
|
|
2776
|
+
if (removed === 0) continue;
|
|
2777
|
+
dropped += removed;
|
|
2778
|
+
kept.push({
|
|
2779
|
+
type: "text",
|
|
2780
|
+
text: `${removed === 1 ? "An image" : `${removed} images`} attached here could not be read by this endpoint and ${removed === 1 ? "was" : "were"} removed. Work from the text description instead, and say so if the answer depends on what ${removed === 1 ? "the picture shows" : "the pictures show"}.`
|
|
2781
|
+
});
|
|
2782
|
+
message.content = kept;
|
|
2783
|
+
}
|
|
2784
|
+
state.trace.record("run.warning", {
|
|
2785
|
+
message: `The endpoint rejected this turn with HTTP ${status} while it carried ${dropped} image(s); they were dropped and the turn was retried. Original error: ${messageOf(cause)}`,
|
|
2786
|
+
data: {
|
|
2787
|
+
dropped,
|
|
2788
|
+
status
|
|
2789
|
+
}
|
|
2790
|
+
});
|
|
2791
|
+
return dropped > 0;
|
|
2792
|
+
}
|
|
2748
2793
|
/** 单个 PDF 分片 → 文本;包装形态与 chatEngine 的附件标签同口径(FR-22.3 / FR-22.4) */
|
|
2749
2794
|
async #pdfAsText(state, part, extract) {
|
|
2750
2795
|
const name = part.name ?? "document.pdf";
|
|
@@ -3255,12 +3300,20 @@ var AgentLoop = class {
|
|
|
3255
3300
|
}
|
|
3256
3301
|
try {
|
|
3257
3302
|
return await this.#interact(state, {
|
|
3258
|
-
type: "
|
|
3303
|
+
type: "authorize",
|
|
3259
3304
|
id: this.#nextInteractionId(state),
|
|
3305
|
+
capability: "readUploadFile",
|
|
3260
3306
|
message: `Let skill "${skillName}" read the file you uploaded: ${file.name} (${file.contentType}, ${file.size} bytes)?`,
|
|
3261
|
-
|
|
3307
|
+
details: {
|
|
3308
|
+
skill: skillName,
|
|
3309
|
+
file: {
|
|
3310
|
+
name: file.name,
|
|
3311
|
+
contentType: file.contentType,
|
|
3312
|
+
size: file.size
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3262
3315
|
}, {
|
|
3263
|
-
kind: "
|
|
3316
|
+
kind: "authorize",
|
|
3264
3317
|
uploadFile: file.id
|
|
3265
3318
|
}) === true;
|
|
3266
3319
|
} catch (e) {
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ct as SkillsLockfile, Et as TrustedKeyStore, H as FileStat, Mt as WebSkillError, N as ArchiveLimits, S as UiBridge, U as FileSystemProvider, _t as SkillManifest, b as RenderResultRequest, c as InteractionResponse, jt as VerifyResult, kt as UnsignedPolicy, l as LlmClient, m as LlmStreamEvent, o as InteractionPolicy, p as LlmResponse, pt as SkillInstallSource, s as InteractionRequest, u as LlmCompleteInput, v as MemoryStore } from "./types-
|
|
2
|
-
import { Kt as ScriptExecutionContext, M as DocumentSurfaceHost, R as ExternalSkillProvider, S as BridgeResponse, Un as WebSkillApi, Yn as bridgeError, ct as NetworkPolicy, gn as ToolDefinition, m as ApprovalScope, ot as LinkedDocumentReader, qt as ScriptExecutor, x as BridgeRequest, y as BridgeCapabilities, yn as ToolResult, yr as parseBridgeRequest, z as ExternalToolSource } from "./index-
|
|
3
|
-
import { $ as NestedFrameRef, Ct as PagePerceptionPolicy, It as PerceptionScopeInput, Pt as PerceptionResult, Tt as PagePerceptionReader, Xt as SubtreeRejection, ft as PageActionOutcome, gt as PageActionRequest, jt as PerceptionCaptureOptions, kt as PerceivedNode, ut as PageActionExecutor, vt as PageActionScopeInput, yt as PageActionTarget } from "./index-
|
|
1
|
+
import { Ct as SkillsLockfile, Et as TrustedKeyStore, H as FileStat, Mt as WebSkillError, N as ArchiveLimits, S as UiBridge, U as FileSystemProvider, _t as SkillManifest, b as RenderResultRequest, c as InteractionResponse, jt as VerifyResult, kt as UnsignedPolicy, l as LlmClient, m as LlmStreamEvent, o as InteractionPolicy, p as LlmResponse, pt as SkillInstallSource, s as InteractionRequest, u as LlmCompleteInput, v as MemoryStore } from "./types-Btpdd1y--BcxQ10Fa.js";
|
|
2
|
+
import { Kt as ScriptExecutionContext, M as DocumentSurfaceHost, R as ExternalSkillProvider, S as BridgeResponse, Un as WebSkillApi, Yn as bridgeError, ct as NetworkPolicy, gn as ToolDefinition, m as ApprovalScope, ot as LinkedDocumentReader, qt as ScriptExecutor, x as BridgeRequest, y as BridgeCapabilities, yn as ToolResult, yr as parseBridgeRequest, z as ExternalToolSource } from "./index-BDyXe-a5.js";
|
|
3
|
+
import { $ as NestedFrameRef, Ct as PagePerceptionPolicy, It as PerceptionScopeInput, Pt as PerceptionResult, Tt as PagePerceptionReader, Xt as SubtreeRejection, ft as PageActionOutcome, gt as PageActionRequest, jt as PerceptionCaptureOptions, kt as PerceivedNode, ut as PageActionExecutor, vt as PageActionScopeInput, yt as PageActionTarget } from "./index-DQ3-6GFu.js";
|
|
4
4
|
//#region ../browser/dist/index.d.ts
|
|
5
5
|
//#region src/fs/featureDetection.d.ts
|
|
6
6
|
/** 检测当前环境是否可用 OPFS(navigator.storage.getDirectory) */
|
|
@@ -382,6 +382,78 @@ declare function checkDictationAvailability(): DictationAvailability;
|
|
|
382
382
|
*/
|
|
383
383
|
declare function startDictation(options: DictationOptions): DictationSession;
|
|
384
384
|
//#endregion
|
|
385
|
+
//#region src/media/camera.d.ts
|
|
386
|
+
/**
|
|
387
|
+
* 摄像头的可用性(分册 14 FR-14.2),口径与 `checkDictationAvailability` 一致:
|
|
388
|
+
* 按钮必须在**渲染期**就知道自己能不能用,不允许「点了才失败」。
|
|
389
|
+
* @experimental
|
|
390
|
+
*/
|
|
391
|
+
type CameraAvailability = {
|
|
392
|
+
available: true;
|
|
393
|
+
} | {
|
|
394
|
+
available: false;
|
|
395
|
+
reason: 'api-missing' | 'insecure-context';
|
|
396
|
+
};
|
|
397
|
+
/** @experimental */
|
|
398
|
+
interface CameraOptions {
|
|
399
|
+
/**
|
|
400
|
+
* 期望的最长边像素(FR-14.3)。只是 `ideal`:约束写成 `exact` 时,
|
|
401
|
+
* 任何拿不到该分辨率的设备会直接 `OverconstrainedError`,等于把相机关死。
|
|
402
|
+
*/
|
|
403
|
+
maxDimension?: number;
|
|
404
|
+
/** 优先使用的摄像头;同样只作偏好,设备没有对应朝向时浏览器会给别的 */
|
|
405
|
+
facingMode?: 'user' | 'environment';
|
|
406
|
+
}
|
|
407
|
+
/** 一次取景会话的句柄;`close()` 后轨道全部停止,指示灯随之熄灭 @experimental */
|
|
408
|
+
interface CameraSession {
|
|
409
|
+
readonly stream: MediaStream;
|
|
410
|
+
/** 轨道实际生效的分辨率;浏览器给不到 ideal 时与请求值不同 */
|
|
411
|
+
resolution(): {
|
|
412
|
+
width: number;
|
|
413
|
+
height: number;
|
|
414
|
+
};
|
|
415
|
+
close(): void;
|
|
416
|
+
}
|
|
417
|
+
/** @experimental */
|
|
418
|
+
interface CapturePhotoOptions {
|
|
419
|
+
/** 输出文件名;缺省由调用时刻生成 */
|
|
420
|
+
fileName?: string;
|
|
421
|
+
/** 输出 MIME;缺省 `image/jpeg`(同分辨率下比 PNG 小一个量级) */
|
|
422
|
+
type?: string;
|
|
423
|
+
/** JPEG/WebP 质量,0~1;缺省 0.92 */
|
|
424
|
+
quality?: number;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* 默认最长边:宿主要「最大分辨率」,给一个远超当前消费级摄像头的 ideal 让浏览器自己贴顶
|
|
428
|
+
* @experimental
|
|
429
|
+
*/
|
|
430
|
+
declare const DEFAULT_CAMERA_MAX_DIMENSION = 5000;
|
|
431
|
+
/**
|
|
432
|
+
* 渲染期调用(FR-14.2):不可用时按钮置灰并说明原因。
|
|
433
|
+
*
|
|
434
|
+
* 顺序与语音一致——`getUserMedia` 压根不存在时谈安全上下文没有意义;
|
|
435
|
+
* API 在但站点是 http,取流一定会被浏览器拒绝,这条原因用户能自己解决。
|
|
436
|
+
* @experimental
|
|
437
|
+
*/
|
|
438
|
+
declare function checkCameraAvailability(): CameraAvailability;
|
|
439
|
+
/**
|
|
440
|
+
* 打开摄像头取景(FR-14.1)。
|
|
441
|
+
*
|
|
442
|
+
* **只能由用户手势调用**(FR-14.4)。设计上的保证是它不进工具列表:
|
|
443
|
+
* agent 拿不到「打开摄像头」这个动作,因此不存在自主开摄像头的路径。
|
|
444
|
+
* @experimental
|
|
445
|
+
*/
|
|
446
|
+
declare function openCamera(options?: CameraOptions): Promise<CameraSession>;
|
|
447
|
+
/**
|
|
448
|
+
* 把取景元素的**当前一帧**编码成文件(FR-14.5)。
|
|
449
|
+
*
|
|
450
|
+
* 尺寸取 `videoWidth`/`videoHeight`(轨道原生分辨率),不取 CSS 尺寸——
|
|
451
|
+
* 预览区被布局缩到 320px 宽,照着画出来的就是 320px 的照片。
|
|
452
|
+
* 编码交给平台的 canvas,不手写编码器(AGENTS.md §6)。
|
|
453
|
+
* @experimental
|
|
454
|
+
*/
|
|
455
|
+
declare function capturePhoto(video: HTMLVideoElement, options?: CapturePhotoOptions): Promise<File>;
|
|
456
|
+
//#endregion
|
|
385
457
|
//#region src/media/compressImage.d.ts
|
|
386
458
|
/** 图片压缩结果;`originalBytes`/`compressedBytes` 供 UI 显示「3.2 MB → 1.8 MB」(FR-11.3 可见性) */
|
|
387
459
|
interface CompressResult {
|
|
@@ -511,6 +583,14 @@ interface DomPageActionOptions {
|
|
|
511
583
|
* 其余动作不用它——它们的文档从元素自带的 `ownerDocument` 取,跨帧时才不会拿错。
|
|
512
584
|
*/
|
|
513
585
|
document?: Document;
|
|
586
|
+
/**
|
|
587
|
+
* 滚动后等待页面稳定的上限(毫秒,0.18.0 FR-10.6)。
|
|
588
|
+
* SDK 夹在 `SCROLL_SETTLE_BOUNDS` 之间;不注入即用缺省值。
|
|
589
|
+
*
|
|
590
|
+
* **模型无法影响它**:这是装配期参数,工具入参里没有任何相关字段。
|
|
591
|
+
* 重 ERP 的首屏渲染可能超过缺省上限,宿主据此上调。
|
|
592
|
+
*/
|
|
593
|
+
scrollSettleMs?: () => number | undefined;
|
|
514
594
|
}
|
|
515
595
|
/**
|
|
516
596
|
* @experimental
|
|
@@ -657,8 +737,10 @@ interface RemoteTargetRegistry {
|
|
|
657
737
|
* 它**不是** FR-11.5 那个容量闸门:那一条管的是「同时有几个**标签页**可操作」,
|
|
658
738
|
* 触顶硬拒绝,落在 `TabWorksetPolicy`。这里管的是同一个标签页里连续跳页攒下的历史分片,
|
|
659
739
|
* 那些本来就该失效,按最久未使用逐出即可,逐出不构成对模型的拒绝。
|
|
740
|
+
* 软上限必须宽于 `TAB_WORKSET_MAX_MAX`(分册 18),否则工作集里**还活着**的页
|
|
741
|
+
* 会因为别的页新发分片而被逐出;64 = 天花板 32 × 每页两代历史。
|
|
660
742
|
*/
|
|
661
|
-
declare const SHARD_SOFT_LIMIT =
|
|
743
|
+
declare const SHARD_SOFT_LIMIT = 64;
|
|
662
744
|
/**
|
|
663
745
|
* 把解析结果翻译成给模型看的补充说明(分册 11 / FR-11.6);
|
|
664
746
|
* 接到 `PageActionPolicyOptions.diagnose` 上即可:
|
|
@@ -1514,4 +1596,4 @@ declare function watchBlockedResources(host: ViewerBlockedHost, notice: ViewerBl
|
|
|
1514
1596
|
/** 提示文案的单一来源;判据直接引用,不各写一份字面量 */
|
|
1515
1597
|
declare function blockedMessage(origins: readonly string[]): string;
|
|
1516
1598
|
//#endregion
|
|
1517
|
-
export { type BlockedEventLike, type BridgeCapabilities, type BridgeRequest, type BridgeResponse, type BrowserHostBundle, type BrowserHostOptions, type BrowserHostOverrides, BrowserSkillManager, BrowserWorkerScriptExecutor, type CaptureFailure, type CaptureLevel, type CapturedImage, type ChromeBuiltinAvailability, ChromeBuiltinLlmClient, type CompressResult, type ConfiguredLlmClient, DEFAULT_FRAME_BUDGET, DEFAULT_MAX_VIEWER_PAYLOAD_BYTES, DOCUMENT_SURFACE_AUDIT_EVENT, DOCX_UNEXTRACTED, type DictationAvailability, type DictationOptions, type DictationSession, type DocumentLocationView, type DocumentSurfaceAudit, type DocumentSurfaceOptions, type DomPageActionExecutor, type DomPageActionOptions, type DomPerceptionReader, type DomPerceptionReaderOptions, type FetchLinkedDocumentOptions, type FrameBudget, type FrameDelivery, type FrameDispatcher, type FrameResolveContext, type FrameRouter, type FrameRouterOptions, HOST_PORT_MATRIX, type HandleKind, type HostChatbotAdapterShape, type HostConnectFacadeShape, type HostConsoleBackendShape, type HostKind, type HostSurface, type IframeSandboxOptions, IframeWorkerLike, type InspectHostWiringInput, type LlmClientConfig, type LlmEntryConfig, type MainToWorkerMessage, type OpenDocumentInput, OpfsProvider, type PageAgentHandler, type PageAgentHandlerOptions, type PageAgentReply, type PageAgentRequest, type PageAgentTargetEntry, type PageAgentTransport, type PageDocumentIdentity, type PortApplicability, type PortReport, type PortSpec, type PortStatus, type RemotePageActionExecutorOptions, type RemotePerceptionReaderOptions, type RemoteTargetRegistry, type RemoteTargetRegistryOptions, type RoleHint, SANDBOX_PAGE_SCRIPT_SOURCE, SHARD_SOFT_LIMIT, type SandboxMode, type SerializedError, type TargetResolution, TsTranspiler, type TypeScriptSupportOptions, VIEWER_SANDBOX_TOKENS, type ViewerBlockedHost, type ViewerBlockedNotice, type ViewerBlockedResult, type ViewerCspOptions, type ViewerDocument, type ViewerShellHost, type ViewerShellMount, type ViewerShellResult, WORKER_BOOTSTRAP_SOURCE, type WindowLike, type WorkerEvent, type WorkerFactory, type WorkerLike, type WorkerRequest, WorkerRuntimeClient, type WorkerRuntimeClientDeps, type WorkerRuntimeHostOverrides, type WorkerScopeLike, WorkerUiBridge, XLSX_UNEXTRACTED, blockedMessage, bridgeError, captureElementImage, checkDictationAvailability, compressImageToBudget, createBrowserChatbotHost, createDocumentSurfaceHost, createDomPageActionExecutor, createDomPerceptionReader, createEncryptedMemoryStore, createFetchLinkedDocumentReader, createFrameRouter, createIframeWorker, createLlmClient, createPageAgentHandler, createRemotePageActionExecutor, createRemotePerceptionReader, createRemoteTargetRegistry, deleteMemoryEncryptionKey, documentKey, explainResolution, extractDocxText, extractXlsxText, extractZipWeb, generateMemoryEncryptionKey, inspectHostWiring, installWebSkillNavigator, isCapturableElement, isCaptureFailure, isEncryptedMemoryValue, isOpfsAvailable, missingPorts, openDocumentSurface, openMemoryEncryptionKey, parseBridgeRequest, parseMainMessage, parseWorkerEvent, probeChromeBuiltinAvailability, sha256HexWeb, startDictation, startViewerShell, startWorkerRuntimeHost, viewerCspHeader, watchBlockedResources };
|
|
1599
|
+
export { type BlockedEventLike, type BridgeCapabilities, type BridgeRequest, type BridgeResponse, type BrowserHostBundle, type BrowserHostOptions, type BrowserHostOverrides, BrowserSkillManager, BrowserWorkerScriptExecutor, type CameraAvailability, type CameraOptions, type CameraSession, type CaptureFailure, type CaptureLevel, type CapturePhotoOptions, type CapturedImage, type ChromeBuiltinAvailability, ChromeBuiltinLlmClient, type CompressResult, type ConfiguredLlmClient, DEFAULT_CAMERA_MAX_DIMENSION, DEFAULT_FRAME_BUDGET, DEFAULT_MAX_VIEWER_PAYLOAD_BYTES, DOCUMENT_SURFACE_AUDIT_EVENT, DOCX_UNEXTRACTED, type DictationAvailability, type DictationOptions, type DictationSession, type DocumentLocationView, type DocumentSurfaceAudit, type DocumentSurfaceOptions, type DomPageActionExecutor, type DomPageActionOptions, type DomPerceptionReader, type DomPerceptionReaderOptions, type FetchLinkedDocumentOptions, type FrameBudget, type FrameDelivery, type FrameDispatcher, type FrameResolveContext, type FrameRouter, type FrameRouterOptions, HOST_PORT_MATRIX, type HandleKind, type HostChatbotAdapterShape, type HostConnectFacadeShape, type HostConsoleBackendShape, type HostKind, type HostSurface, type IframeSandboxOptions, IframeWorkerLike, type InspectHostWiringInput, type LlmClientConfig, type LlmEntryConfig, type MainToWorkerMessage, type OpenDocumentInput, OpfsProvider, type PageAgentHandler, type PageAgentHandlerOptions, type PageAgentReply, type PageAgentRequest, type PageAgentTargetEntry, type PageAgentTransport, type PageDocumentIdentity, type PortApplicability, type PortReport, type PortSpec, type PortStatus, type RemotePageActionExecutorOptions, type RemotePerceptionReaderOptions, type RemoteTargetRegistry, type RemoteTargetRegistryOptions, type RoleHint, SANDBOX_PAGE_SCRIPT_SOURCE, SHARD_SOFT_LIMIT, type SandboxMode, type SerializedError, type TargetResolution, TsTranspiler, type TypeScriptSupportOptions, VIEWER_SANDBOX_TOKENS, type ViewerBlockedHost, type ViewerBlockedNotice, type ViewerBlockedResult, type ViewerCspOptions, type ViewerDocument, type ViewerShellHost, type ViewerShellMount, type ViewerShellResult, WORKER_BOOTSTRAP_SOURCE, type WindowLike, type WorkerEvent, type WorkerFactory, type WorkerLike, type WorkerRequest, WorkerRuntimeClient, type WorkerRuntimeClientDeps, type WorkerRuntimeHostOverrides, type WorkerScopeLike, WorkerUiBridge, XLSX_UNEXTRACTED, blockedMessage, bridgeError, captureElementImage, capturePhoto, checkCameraAvailability, checkDictationAvailability, compressImageToBudget, createBrowserChatbotHost, createDocumentSurfaceHost, createDomPageActionExecutor, createDomPerceptionReader, createEncryptedMemoryStore, createFetchLinkedDocumentReader, createFrameRouter, createIframeWorker, createLlmClient, createPageAgentHandler, createRemotePageActionExecutor, createRemotePerceptionReader, createRemoteTargetRegistry, deleteMemoryEncryptionKey, documentKey, explainResolution, extractDocxText, extractXlsxText, extractZipWeb, generateMemoryEncryptionKey, inspectHostWiring, installWebSkillNavigator, isCapturableElement, isCaptureFailure, isEncryptedMemoryValue, isOpfsAvailable, missingPorts, openCamera, openDocumentSurface, openMemoryEncryptionKey, parseBridgeRequest, parseMainMessage, parseWorkerEvent, probeChromeBuiltinAvailability, sha256HexWeb, startDictation, startViewerShell, startWorkerRuntimeHost, viewerCspHeader, watchBlockedResources };
|