@webskill/sdk 0.25.0 → 0.26.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 +3 -3
- package/dist/agent.js +1105 -67
- package/dist/browser.d.ts +14 -3
- package/dist/browser.js +40 -10
- package/dist/governance.d.ts +1 -1
- package/dist/{index-mKgZU7cG.d.ts → index-0R-7x8Rp.d.ts} +1 -1
- package/dist/{index-B3rMAUWB.d.ts → index-Bb9kBiF0.d.ts} +83 -2
- package/dist/{index-Bq299VnF.d.ts → index-DRkI7M3z.d.ts} +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/ui-react.d.ts +2 -2
- package/dist/ui.d.ts +2 -2
- package/package.json +1 -1
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { G as FileStat, It as VerifyResult, K as FileSystemProvider, Lt as WebSkillError, N as ArchiveLimits, Ot as SkillsLockfile, Pt as UnsignedPolicy, S as UiBridge, St as SkillManifest, b as RenderResultRequest, c as InteractionResponse, jt as TrustedKeyStore, l as LlmClient, m as LlmStreamEvent, o as InteractionPolicy, p as LlmResponse, q as FileWriteStream, s as InteractionRequest, u as LlmCompleteInput, v as MemoryStore, vt as SkillInstallSource } from "./types-CpDRZ0rA-CFQ-vdKz.js";
|
|
2
|
-
import { $ as ImageOmission, B as ExternalToolSource, C as BridgeResponse, N as DocumentSurfaceHost, Pn as ToolResult, S as BridgeRequest, Sr as bridgeError, Yr as parseBridgeRequest, b as BridgeCapabilities, ct as LinkedDocumentReader, en as ScriptExecutionContext, jn as ToolDefinition, m as ApprovalScope, mr as WebSkillApi, sr as ViewerImageFact, tn as ScriptExecutor, ut as NetworkPolicy, z as ExternalSkillProvider } from "./index-
|
|
3
|
-
import {
|
|
2
|
+
import { $ as ImageOmission, B as ExternalToolSource, C as BridgeResponse, N as DocumentSurfaceHost, Pn as ToolResult, S as BridgeRequest, Sr as bridgeError, Yr as parseBridgeRequest, b as BridgeCapabilities, ct as LinkedDocumentReader, en as ScriptExecutionContext, jn as ToolDefinition, m as ApprovalScope, mr as WebSkillApi, sr as ViewerImageFact, tn as ScriptExecutor, ut as NetworkPolicy, z as ExternalSkillProvider } from "./index-DRkI7M3z.js";
|
|
3
|
+
import { $r as XlsxTableReader, In as PerceptionScopeInput, K as DocxDocumentContent, Ln as PptxDocumentContent, Pn as PerceptionResult, Rn as PptxDocumentReader, Tn as PdfDocumentReader, Ut as NestedFrameRef, Xr as XlsxDocumentReader, Yr as XlsxDocumentContent, cn as PageActionRequest, dn as PageActionTarget, fr as SubtreeRejection, in as PageActionOutcome, jn as PerceptionCaptureOptions, kn as PerceivedNode, mn as PageAuditSink, nn as PageActionExecutor, q as DocxDocumentReader, u as ConsentUi, un as PageActionScopeInput, xn as PagePerceptionReader, yn as PagePerceptionPolicy } from "./index-Bb9kBiF0.js";
|
|
4
4
|
//#region ../browser/dist/index.d.ts
|
|
5
5
|
//#region src/fs/featureDetection.d.ts
|
|
6
6
|
/** 检测当前环境是否可用 OPFS(navigator.storage.getDirectory) */
|
|
@@ -1648,6 +1648,17 @@ declare function createXlsxBlockReader(): XlsxDocumentReader;
|
|
|
1648
1648
|
*/
|
|
1649
1649
|
declare function readXlsxBlocks(bytes: Uint8Array): Promise<XlsxDocumentContent>;
|
|
1650
1650
|
//#endregion
|
|
1651
|
+
//#region src/document/xlsxTable.d.ts
|
|
1652
|
+
/**
|
|
1653
|
+
* xlsx → 单元格网格(0.26.0 分册 10 · FR-10.20)。
|
|
1654
|
+
*
|
|
1655
|
+
* 与 `extractXlsxText` 共用 `readXlsxWorkbook` 的同一份解析(单元格取值、日期换算、空格补位),
|
|
1656
|
+
* 所以画像与查询看到的格,和模型从文本里读到的格是同一批。
|
|
1657
|
+
* 错误语义同 `extractXlsxText`:旧版 `.xls`、归档损坏、缺 `xl/workbook.xml` 都抛 `WebSkillError`。
|
|
1658
|
+
* @experimental
|
|
1659
|
+
*/
|
|
1660
|
+
declare function createXlsxTableReader(): XlsxTableReader;
|
|
1661
|
+
//#endregion
|
|
1651
1662
|
//#region src/document/pptxBlocks.d.ts
|
|
1652
1663
|
/** @experimental */
|
|
1653
1664
|
declare function createPptxBlockReader(): PptxDocumentReader;
|
|
@@ -2767,4 +2778,4 @@ interface WebOfficeToolSourceOptions {
|
|
|
2767
2778
|
*/
|
|
2768
2779
|
declare function createWebOfficeToolSource(options: WebOfficeToolSourceOptions): ExternalToolSource;
|
|
2769
2780
|
//#endregion
|
|
2770
|
-
export { type BlockedEventLike, type BridgeCapabilities, type BridgeRequest, type BridgeResponse, type BrowserHostBundle, type BrowserHostOptions, type BrowserHostOverrides, BrowserSkillManager, BrowserWorkerScriptExecutor, type BuiltinSkillManifest, 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, DEFAULT_MAX_VIEWER_PAYLOAD_PIXELS, DEFAULT_SOFT_VIEWER_PAYLOAD_BYTES, DEFAULT_SOFT_VIEWER_PAYLOAD_PIXELS, DOCUMENT_IMAGE_MIME_TYPES, DOCUMENT_SURFACE_AUDIT_EVENT, DOCX_IMAGE_WIDTH_RATIO, DOCX_UNEXTRACTED, type DictationAvailability, type DictationOptions, type DictationSession, type DocumentBlock, type DocumentImage, type DocumentLocationView, type DocumentSurfaceAudit, type DocumentSurfaceOptions, type DocxImagePlacement, type DocxTemplateCell, type DocxTemplateParagraph, type DocxTemplateSkeleton, type DocxTemplateSpec, type DocxTextFill, type DomPageActionExecutor, type DomPageActionOptions, type DomPerceptionReader, type DomPerceptionReaderOptions, type FetchLinkedDocumentOptions, type FetchRemoteImageOptions, 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, LIST_WEBOFFICE_DOCUMENTS_TOOL, type LlmClientConfig, type LlmEntryConfig, MAX_REMOTE_IMAGE_BYTES, type MainToWorkerMessage, type OoxmlPackage, type OpenDocumentInput, OpfsProvider, PPTX_UNEXTRACTED, PPTX_UNEXTRACTED_NOTICE, type PageAgentHandler, type PageAgentHandlerOptions, type PageAgentReply, type PageAgentRequest, type PageAgentTargetEntry, type PageAgentTransport, type PageDocumentIdentity, type PageImageHost, type PayloadDimension, type PayloadSizeNotice, type PdfPage, type PortApplicability, type PortReport, type PortSpec, type PortStatus, type PresentationSlide, type PresentationSourceDocument, type PresentationSourceReader, type PresentationSourceSlide, READ_WEBOFFICE_DOCUMENT_TOOL, REMOTE_IMAGE_TIMEOUT_MS, type RemoteFetchFailure, type RemoteImageFailure, type RemoteImageHost, type RemotePageActionExecutorOptions, type RemotePageImageHostOptions, type RemotePerceptionReaderOptions, type RemoteTargetRegistry, type RemoteTargetRegistryOptions, type RoleHint, SANDBOX_PAGE_SCRIPT_SOURCE, SHARD_SOFT_LIMIT, type SandboxMode, type SandboxTokenDiff, type SeedSkillsFromHttpOptions, type SerializedError, type TargetResolution, TsTranspiler, type TypeScriptSupportOptions, VIEWER_IMG_SRC_BASE, VIEWER_IMG_SRC_REMOTE, VIEWER_SANDBOX_TOKENS, type ViewerBlockedHost, type ViewerBlockedNotice, type ViewerBlockedResult, type ViewerCspOptions, type ViewerDocument, type ViewerShellHost, type ViewerShellMount, type ViewerShellResult, type VisionCaptureOptions, WEBOFFICE_BUDGET, WEBOFFICE_UNEXTRACTED, WEB_OFFICE_OFFICE_TYPES, WEB_OFFICE_READ_METHODS, WEB_OFFICE_SOURCE_LABELS, WEB_OFFICE_SUPPORTED_TYPES, WORKER_BOOTSTRAP_SOURCE, type WebOfficeAction, type WebOfficeApiSurface, type WebOfficeAuditRecord, type WebOfficeAuthorizationInput, type WebOfficeAuthorizationKey, type WebOfficeAuthorizationOutcome, type WebOfficeBudget, WebOfficeBudgetGuard, type WebOfficeChannel, type WebOfficeConsent, type WebOfficeContent, type WebOfficeDisplayHints, type WebOfficeExtractOptions, type WebOfficeFailure, type WebOfficeFingerprintResult, type WebOfficeHost, type WebOfficeInstanceRecord, type WebOfficeListing, WebOfficePolicy, type WebOfficePolicyOptions, type WebOfficeReadCursor, type WebOfficeReadOptions, type WebOfficeReadPort, type WebOfficeReadResult, type WebOfficeScrollPosition, type WebOfficeSource, type WebOfficeSupportedType, type WebOfficeToolSourceOptions, type WebOfficeVisionPort, type WindowLike, type WorkbookSheet, type WorkerEvent, type WorkerFactory, type WorkerLike, type WorkerRequest, WorkerRuntimeClient, type WorkerRuntimeClientDeps, type WorkerRuntimeHostOverrides, type WorkerScopeLike, WorkerUiBridge, XLSX_IMAGE_MIN_COLUMNS, XLSX_IMAGE_MIN_ROWS, XLSX_UNEXTRACTED, type XlsxCellFill, type XlsxFillOutcome, type XlsxFillRejection, type XlsxFillWarning, type XlsxImagePlacement, type XlsxRowInsert, type XlsxSheetBlanks, type XlsxTemplateSheet, type XlsxTemplateSkeleton, type XlsxTemplateSpec, assertWebOfficeFingerprint, auditOoxmlPackage, blockedMessage, bridgeError, callWebOfficeMethod, captureByScrolling, captureDocumentImage, captureElementImage, capturePhoto, checkCameraAvailability, checkDictationAvailability, checkWebOfficeFingerprint, classifyFetchFailure, compressImageToBudget, contentKindOf, createBrowserChatbotHost, createDocumentSurfaceHost, createDocxBlockReader, createDomPageActionExecutor, createDomPerceptionReader, createEncryptedMemoryStore, createFetchLinkedDocumentReader, createFrameRouter, createIframeWorker, createLlmClient, createPageAgentHandler, createPptxBlockReader, createRemoteImageHost, createRemotePageActionExecutor, createRemotePageImageHost, createRemotePerceptionReader, createRemoteTargetRegistry, createWebOfficeHandle, createWebOfficeToolSource, createXlsxBlockReader, deleteMemoryEncryptionKey, describeScreenshotOverlap, diffSandboxTokens, documentKey, explainResolution, extractDocxText, extractPptxText, extractWebOfficeContent, extractXlsxText, extractZipWeb, fetchRemoteImage, fillDocxTemplate, fillXlsxTemplate, generateMemoryEncryptionKey, headingLevelOf, inspectHostWiring, installWebSkillNavigator, isCapturableElement, isCaptureFailure, isEncryptedMemoryValue, isOpfsAvailable, isRemoteImageFailure, isWebOfficeReadMethod, missingPorts, openCamera, openDocumentSurface, openMemoryEncryptionKey, parseBridgeRequest, parseMainMessage, parseWorkerEvent, probeChromeBuiltinAvailability, readDocxBlocks, readDocxTemplate, readOoxmlPackage, readPptxBlocks, readXlsxBlocks, readXlsxTemplate, resolveWebOfficeAuthorization, seedSkillsFromHttp, sha256HexWeb, startDictation, startViewerShell, startWorkerRuntimeHost, toDocumentImage, viewerCspHeader, watchBlockedResources, webOfficeFailure, writeOoxmlPackage };
|
|
2781
|
+
export { type BlockedEventLike, type BridgeCapabilities, type BridgeRequest, type BridgeResponse, type BrowserHostBundle, type BrowserHostOptions, type BrowserHostOverrides, BrowserSkillManager, BrowserWorkerScriptExecutor, type BuiltinSkillManifest, 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, DEFAULT_MAX_VIEWER_PAYLOAD_PIXELS, DEFAULT_SOFT_VIEWER_PAYLOAD_BYTES, DEFAULT_SOFT_VIEWER_PAYLOAD_PIXELS, DOCUMENT_IMAGE_MIME_TYPES, DOCUMENT_SURFACE_AUDIT_EVENT, DOCX_IMAGE_WIDTH_RATIO, DOCX_UNEXTRACTED, type DictationAvailability, type DictationOptions, type DictationSession, type DocumentBlock, type DocumentImage, type DocumentLocationView, type DocumentSurfaceAudit, type DocumentSurfaceOptions, type DocxImagePlacement, type DocxTemplateCell, type DocxTemplateParagraph, type DocxTemplateSkeleton, type DocxTemplateSpec, type DocxTextFill, type DomPageActionExecutor, type DomPageActionOptions, type DomPerceptionReader, type DomPerceptionReaderOptions, type FetchLinkedDocumentOptions, type FetchRemoteImageOptions, 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, LIST_WEBOFFICE_DOCUMENTS_TOOL, type LlmClientConfig, type LlmEntryConfig, MAX_REMOTE_IMAGE_BYTES, type MainToWorkerMessage, type OoxmlPackage, type OpenDocumentInput, OpfsProvider, PPTX_UNEXTRACTED, PPTX_UNEXTRACTED_NOTICE, type PageAgentHandler, type PageAgentHandlerOptions, type PageAgentReply, type PageAgentRequest, type PageAgentTargetEntry, type PageAgentTransport, type PageDocumentIdentity, type PageImageHost, type PayloadDimension, type PayloadSizeNotice, type PdfPage, type PortApplicability, type PortReport, type PortSpec, type PortStatus, type PresentationSlide, type PresentationSourceDocument, type PresentationSourceReader, type PresentationSourceSlide, READ_WEBOFFICE_DOCUMENT_TOOL, REMOTE_IMAGE_TIMEOUT_MS, type RemoteFetchFailure, type RemoteImageFailure, type RemoteImageHost, type RemotePageActionExecutorOptions, type RemotePageImageHostOptions, type RemotePerceptionReaderOptions, type RemoteTargetRegistry, type RemoteTargetRegistryOptions, type RoleHint, SANDBOX_PAGE_SCRIPT_SOURCE, SHARD_SOFT_LIMIT, type SandboxMode, type SandboxTokenDiff, type SeedSkillsFromHttpOptions, type SerializedError, type TargetResolution, TsTranspiler, type TypeScriptSupportOptions, VIEWER_IMG_SRC_BASE, VIEWER_IMG_SRC_REMOTE, VIEWER_SANDBOX_TOKENS, type ViewerBlockedHost, type ViewerBlockedNotice, type ViewerBlockedResult, type ViewerCspOptions, type ViewerDocument, type ViewerShellHost, type ViewerShellMount, type ViewerShellResult, type VisionCaptureOptions, WEBOFFICE_BUDGET, WEBOFFICE_UNEXTRACTED, WEB_OFFICE_OFFICE_TYPES, WEB_OFFICE_READ_METHODS, WEB_OFFICE_SOURCE_LABELS, WEB_OFFICE_SUPPORTED_TYPES, WORKER_BOOTSTRAP_SOURCE, type WebOfficeAction, type WebOfficeApiSurface, type WebOfficeAuditRecord, type WebOfficeAuthorizationInput, type WebOfficeAuthorizationKey, type WebOfficeAuthorizationOutcome, type WebOfficeBudget, WebOfficeBudgetGuard, type WebOfficeChannel, type WebOfficeConsent, type WebOfficeContent, type WebOfficeDisplayHints, type WebOfficeExtractOptions, type WebOfficeFailure, type WebOfficeFingerprintResult, type WebOfficeHost, type WebOfficeInstanceRecord, type WebOfficeListing, WebOfficePolicy, type WebOfficePolicyOptions, type WebOfficeReadCursor, type WebOfficeReadOptions, type WebOfficeReadPort, type WebOfficeReadResult, type WebOfficeScrollPosition, type WebOfficeSource, type WebOfficeSupportedType, type WebOfficeToolSourceOptions, type WebOfficeVisionPort, type WindowLike, type WorkbookSheet, type WorkerEvent, type WorkerFactory, type WorkerLike, type WorkerRequest, WorkerRuntimeClient, type WorkerRuntimeClientDeps, type WorkerRuntimeHostOverrides, type WorkerScopeLike, WorkerUiBridge, XLSX_IMAGE_MIN_COLUMNS, XLSX_IMAGE_MIN_ROWS, XLSX_UNEXTRACTED, type XlsxCellFill, type XlsxFillOutcome, type XlsxFillRejection, type XlsxFillWarning, type XlsxImagePlacement, type XlsxRowInsert, type XlsxSheetBlanks, type XlsxTemplateSheet, type XlsxTemplateSkeleton, type XlsxTemplateSpec, assertWebOfficeFingerprint, auditOoxmlPackage, blockedMessage, bridgeError, callWebOfficeMethod, captureByScrolling, captureDocumentImage, captureElementImage, capturePhoto, checkCameraAvailability, checkDictationAvailability, checkWebOfficeFingerprint, classifyFetchFailure, compressImageToBudget, contentKindOf, createBrowserChatbotHost, createDocumentSurfaceHost, createDocxBlockReader, createDomPageActionExecutor, createDomPerceptionReader, createEncryptedMemoryStore, createFetchLinkedDocumentReader, createFrameRouter, createIframeWorker, createLlmClient, createPageAgentHandler, createPptxBlockReader, createRemoteImageHost, createRemotePageActionExecutor, createRemotePageImageHost, createRemotePerceptionReader, createRemoteTargetRegistry, createWebOfficeHandle, createWebOfficeToolSource, createXlsxBlockReader, createXlsxTableReader, deleteMemoryEncryptionKey, describeScreenshotOverlap, diffSandboxTokens, documentKey, explainResolution, extractDocxText, extractPptxText, extractWebOfficeContent, extractXlsxText, extractZipWeb, fetchRemoteImage, fillDocxTemplate, fillXlsxTemplate, generateMemoryEncryptionKey, headingLevelOf, inspectHostWiring, installWebSkillNavigator, isCapturableElement, isCaptureFailure, isEncryptedMemoryValue, isOpfsAvailable, isRemoteImageFailure, isWebOfficeReadMethod, missingPorts, openCamera, openDocumentSurface, openMemoryEncryptionKey, parseBridgeRequest, parseMainMessage, parseWorkerEvent, probeChromeBuiltinAvailability, readDocxBlocks, readDocxTemplate, readOoxmlPackage, readPptxBlocks, readXlsxBlocks, readXlsxTemplate, resolveWebOfficeAuthorization, seedSkillsFromHttp, sha256HexWeb, startDictation, startViewerShell, startWorkerRuntimeHost, toDocumentImage, viewerCspHeader, watchBlockedResources, webOfficeFailure, writeOoxmlPackage };
|
package/dist/browser.js
CHANGED
|
@@ -6278,16 +6278,16 @@ function cellText$1(cell, shared, dateStyles, date1904) {
|
|
|
6278
6278
|
return raw;
|
|
6279
6279
|
}
|
|
6280
6280
|
/**
|
|
6281
|
-
*
|
|
6282
|
-
*
|
|
6281
|
+
* 一张工作表的单元格网格,下标 0 是第 1 行。空行与行中间的空列**照原样留着** ——
|
|
6282
|
+
* 位置本身是语义,压掉之后「第 3 列」就对不上了;只有行尾的空格不保留。
|
|
6283
6283
|
*/
|
|
6284
|
-
function
|
|
6285
|
-
const
|
|
6284
|
+
function sheetRows(doc, shared, dateStyles, date1904) {
|
|
6285
|
+
const rows = [];
|
|
6286
6286
|
let previousRow = 0;
|
|
6287
6287
|
for (const row of byTag$3(doc, "row")) {
|
|
6288
6288
|
const declared = Number(row.getAttribute("r"));
|
|
6289
6289
|
const rowNumber = Number.isInteger(declared) && declared > 0 ? declared : previousRow + 1;
|
|
6290
|
-
for (let gap = previousRow + 1; gap < rowNumber; gap++)
|
|
6290
|
+
for (let gap = previousRow + 1; gap < rowNumber; gap++) rows.push([]);
|
|
6291
6291
|
previousRow = rowNumber;
|
|
6292
6292
|
const cells = [];
|
|
6293
6293
|
let nextColumn = 0;
|
|
@@ -6300,11 +6300,13 @@ function sheetLines(doc, shared, dateStyles, date1904) {
|
|
|
6300
6300
|
else cells.push(text);
|
|
6301
6301
|
nextColumn = column + 1;
|
|
6302
6302
|
}
|
|
6303
|
-
|
|
6303
|
+
while (cells.length > 0 && cells[cells.length - 1] === "") cells.pop();
|
|
6304
|
+
rows.push(cells);
|
|
6304
6305
|
}
|
|
6305
|
-
|
|
6306
|
-
return lines;
|
|
6306
|
+
return rows;
|
|
6307
6307
|
}
|
|
6308
|
+
/** 一行的文本:单元格用制表符分隔(与 docx 的表格同口径),行尾制表符不留 */
|
|
6309
|
+
const rowLine = (cells) => cells.join(" ").replace(/\t+$/, "");
|
|
6308
6310
|
const looksLikeOle2 = (bytes) => bytes.length >= OLE2_SIGNATURE.length && OLE2_SIGNATURE.every((byte, i) => bytes[i] === byte);
|
|
6309
6311
|
/** rels 里的 Target 可能是相对 `xl/` 的,也可能是包根绝对路径 */
|
|
6310
6312
|
function resolveSheetPath(target) {
|
|
@@ -6347,10 +6349,17 @@ async function readXlsxWorkbook(bytes) {
|
|
|
6347
6349
|
const path = relId !== null ? targets.get(relId) : void 0;
|
|
6348
6350
|
const sheetBytes = path !== void 0 ? parts.get(path) : void 0;
|
|
6349
6351
|
if (path === void 0 || sheetBytes === void 0) fail(`The worksheet "${name}" could not be located inside the workbook.`);
|
|
6352
|
+
const rows = sheetRows(parseXml$3(sheetBytes, `worksheet "${name}"`), shared, dateStyles, date1904);
|
|
6353
|
+
const lines = rows.map(rowLine);
|
|
6354
|
+
while (lines.length > 0 && lines[lines.length - 1] === "") {
|
|
6355
|
+
lines.pop();
|
|
6356
|
+
rows.pop();
|
|
6357
|
+
}
|
|
6350
6358
|
sheets.push({
|
|
6351
6359
|
name,
|
|
6352
6360
|
path,
|
|
6353
|
-
lines
|
|
6361
|
+
lines,
|
|
6362
|
+
rows
|
|
6354
6363
|
});
|
|
6355
6364
|
}
|
|
6356
6365
|
return {
|
|
@@ -6625,6 +6634,27 @@ async function readXlsxBlocks(bytes) {
|
|
|
6625
6634
|
return { sheets: out };
|
|
6626
6635
|
}
|
|
6627
6636
|
|
|
6637
|
+
//#endregion
|
|
6638
|
+
//#region ../browser/src/document/xlsxTable.ts
|
|
6639
|
+
/**
|
|
6640
|
+
* xlsx → 单元格网格(0.26.0 分册 10 · FR-10.20)。
|
|
6641
|
+
*
|
|
6642
|
+
* 与 `extractXlsxText` 共用 `readXlsxWorkbook` 的同一份解析(单元格取值、日期换算、空格补位),
|
|
6643
|
+
* 所以画像与查询看到的格,和模型从文本里读到的格是同一批。
|
|
6644
|
+
* 错误语义同 `extractXlsxText`:旧版 `.xls`、归档损坏、缺 `xl/workbook.xml` 都抛 `WebSkillError`。
|
|
6645
|
+
* @experimental
|
|
6646
|
+
*/
|
|
6647
|
+
function createXlsxTableReader() {
|
|
6648
|
+
return { read: readXlsxTable };
|
|
6649
|
+
}
|
|
6650
|
+
async function readXlsxTable(bytes) {
|
|
6651
|
+
const { sheets } = await readXlsxWorkbook(bytes);
|
|
6652
|
+
return { sheets: sheets.map(({ name, rows }) => ({
|
|
6653
|
+
name,
|
|
6654
|
+
rows
|
|
6655
|
+
})) };
|
|
6656
|
+
}
|
|
6657
|
+
|
|
6628
6658
|
//#endregion
|
|
6629
6659
|
//#region ../browser/src/document/pptxBlocks.ts
|
|
6630
6660
|
/**
|
|
@@ -9645,4 +9675,4 @@ function readContent(result, images) {
|
|
|
9645
9675
|
}
|
|
9646
9676
|
|
|
9647
9677
|
//#endregion
|
|
9648
|
-
export { BrowserSkillManager, BrowserWorkerScriptExecutor, ChromeBuiltinLlmClient, DEFAULT_CAMERA_MAX_DIMENSION, DEFAULT_FRAME_BUDGET, DEFAULT_MAX_VIEWER_PAYLOAD_BYTES, DEFAULT_MAX_VIEWER_PAYLOAD_PIXELS, DEFAULT_SOFT_VIEWER_PAYLOAD_BYTES, DEFAULT_SOFT_VIEWER_PAYLOAD_PIXELS, DOCUMENT_IMAGE_MIME_TYPES, DOCUMENT_SURFACE_AUDIT_EVENT, DOCX_IMAGE_WIDTH_RATIO, DOCX_UNEXTRACTED, HOST_PORT_MATRIX, IframeWorkerLike, LIST_WEBOFFICE_DOCUMENTS_TOOL, MAX_REMOTE_IMAGE_BYTES, OpfsProvider, PPTX_UNEXTRACTED, PPTX_UNEXTRACTED_NOTICE, READ_WEBOFFICE_DOCUMENT_TOOL, REMOTE_IMAGE_TIMEOUT_MS, SANDBOX_PAGE_SCRIPT_SOURCE, SHARD_SOFT_LIMIT, TsTranspiler, VIEWER_IMG_SRC_BASE, VIEWER_IMG_SRC_REMOTE, VIEWER_SANDBOX_TOKENS, WEBOFFICE_BUDGET, WEBOFFICE_UNEXTRACTED, WEB_OFFICE_OFFICE_TYPES, WEB_OFFICE_READ_METHODS, WEB_OFFICE_SOURCE_LABELS, WEB_OFFICE_SUPPORTED_TYPES, WORKER_BOOTSTRAP_SOURCE, WebOfficeBudgetGuard, WebOfficePolicy, WorkerRuntimeClient, WorkerUiBridge, XLSX_IMAGE_MIN_COLUMNS, XLSX_IMAGE_MIN_ROWS, XLSX_UNEXTRACTED, assertWebOfficeFingerprint, auditOoxmlPackage, blockedMessage, bridgeError, callWebOfficeMethod, captureByScrolling, captureDocumentImage, captureElementImage, capturePhoto, checkCameraAvailability, checkDictationAvailability, checkWebOfficeFingerprint, classifyFetchFailure, compressImageToBudget, contentKindOf, createBrowserChatbotHost, createDocumentSurfaceHost, createDocxBlockReader, createDomPageActionExecutor, createDomPerceptionReader, createEncryptedMemoryStore, createFetchLinkedDocumentReader, createFrameRouter, createIframeWorker, createLlmClient, createPageAgentHandler, createPptxBlockReader, createRemoteImageHost, createRemotePageActionExecutor, createRemotePageImageHost, createRemotePerceptionReader, createRemoteTargetRegistry, createWebOfficeHandle, createWebOfficeToolSource, createXlsxBlockReader, deleteMemoryEncryptionKey, describeScreenshotOverlap, diffSandboxTokens, documentKey, explainResolution, extractDocxText, extractPptxText, extractWebOfficeContent, extractXlsxText, extractZipWeb, fetchRemoteImage, fillDocxTemplate, fillXlsxTemplate, generateMemoryEncryptionKey, headingLevelOf, inspectHostWiring, installWebSkillNavigator, isCapturableElement, isCaptureFailure, isEncryptedMemoryValue, isOpfsAvailable, isRemoteImageFailure, isWebOfficeReadMethod, missingPorts, openCamera, openDocumentSurface, openMemoryEncryptionKey, parseBridgeRequest, parseMainMessage, parseWorkerEvent, probeChromeBuiltinAvailability, readDocxBlocks, readDocxTemplate, readOoxmlPackage, readPptxBlocks, readXlsxBlocks, readXlsxTemplate, resolveWebOfficeAuthorization, seedSkillsFromHttp, sha256HexWeb, startDictation, startViewerShell, startWorkerRuntimeHost, toDocumentImage, viewerCspHeader, watchBlockedResources, webOfficeFailure, writeOoxmlPackage };
|
|
9678
|
+
export { BrowserSkillManager, BrowserWorkerScriptExecutor, ChromeBuiltinLlmClient, DEFAULT_CAMERA_MAX_DIMENSION, DEFAULT_FRAME_BUDGET, DEFAULT_MAX_VIEWER_PAYLOAD_BYTES, DEFAULT_MAX_VIEWER_PAYLOAD_PIXELS, DEFAULT_SOFT_VIEWER_PAYLOAD_BYTES, DEFAULT_SOFT_VIEWER_PAYLOAD_PIXELS, DOCUMENT_IMAGE_MIME_TYPES, DOCUMENT_SURFACE_AUDIT_EVENT, DOCX_IMAGE_WIDTH_RATIO, DOCX_UNEXTRACTED, HOST_PORT_MATRIX, IframeWorkerLike, LIST_WEBOFFICE_DOCUMENTS_TOOL, MAX_REMOTE_IMAGE_BYTES, OpfsProvider, PPTX_UNEXTRACTED, PPTX_UNEXTRACTED_NOTICE, READ_WEBOFFICE_DOCUMENT_TOOL, REMOTE_IMAGE_TIMEOUT_MS, SANDBOX_PAGE_SCRIPT_SOURCE, SHARD_SOFT_LIMIT, TsTranspiler, VIEWER_IMG_SRC_BASE, VIEWER_IMG_SRC_REMOTE, VIEWER_SANDBOX_TOKENS, WEBOFFICE_BUDGET, WEBOFFICE_UNEXTRACTED, WEB_OFFICE_OFFICE_TYPES, WEB_OFFICE_READ_METHODS, WEB_OFFICE_SOURCE_LABELS, WEB_OFFICE_SUPPORTED_TYPES, WORKER_BOOTSTRAP_SOURCE, WebOfficeBudgetGuard, WebOfficePolicy, WorkerRuntimeClient, WorkerUiBridge, XLSX_IMAGE_MIN_COLUMNS, XLSX_IMAGE_MIN_ROWS, XLSX_UNEXTRACTED, assertWebOfficeFingerprint, auditOoxmlPackage, blockedMessage, bridgeError, callWebOfficeMethod, captureByScrolling, captureDocumentImage, captureElementImage, capturePhoto, checkCameraAvailability, checkDictationAvailability, checkWebOfficeFingerprint, classifyFetchFailure, compressImageToBudget, contentKindOf, createBrowserChatbotHost, createDocumentSurfaceHost, createDocxBlockReader, createDomPageActionExecutor, createDomPerceptionReader, createEncryptedMemoryStore, createFetchLinkedDocumentReader, createFrameRouter, createIframeWorker, createLlmClient, createPageAgentHandler, createPptxBlockReader, createRemoteImageHost, createRemotePageActionExecutor, createRemotePageImageHost, createRemotePerceptionReader, createRemoteTargetRegistry, createWebOfficeHandle, createWebOfficeToolSource, createXlsxBlockReader, createXlsxTableReader, deleteMemoryEncryptionKey, describeScreenshotOverlap, diffSandboxTokens, documentKey, explainResolution, extractDocxText, extractPptxText, extractWebOfficeContent, extractXlsxText, extractZipWeb, fetchRemoteImage, fillDocxTemplate, fillXlsxTemplate, generateMemoryEncryptionKey, headingLevelOf, inspectHostWiring, installWebSkillNavigator, isCapturableElement, isCaptureFailure, isEncryptedMemoryValue, isOpfsAvailable, isRemoteImageFailure, isWebOfficeReadMethod, missingPorts, openCamera, openDocumentSurface, openMemoryEncryptionKey, parseBridgeRequest, parseMainMessage, parseWorkerEvent, probeChromeBuiltinAvailability, readDocxBlocks, readDocxTemplate, readOoxmlPackage, readPptxBlocks, readXlsxBlocks, readXlsxTemplate, resolveWebOfficeAuthorization, seedSkillsFromHttp, sha256HexWeb, startDictation, startViewerShell, startWorkerRuntimeHost, toDocumentImage, viewerCspHeader, watchBlockedResources, webOfficeFailure, writeOoxmlPackage };
|
package/dist/governance.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { K as FileSystemProvider, S as UiBridge, _t as SkillDocument, et as Page, f as LlmMessage, ht as SkillCatalogEntry, l as LlmClient, tt as PageQuery, xt as SkillManagerPort } from "./types-CpDRZ0rA-CFQ-vdKz.js";
|
|
2
|
-
import { Wt as RuntimeRun, dn as SkillIntegrityGuard, fn as SkillOutcomeReporter, gn as SkillStateGuard, hr as WebSkillRuntime, tt as IntegrityVerdict } from "./index-
|
|
2
|
+
import { Wt as RuntimeRun, dn as SkillIntegrityGuard, fn as SkillOutcomeReporter, gn as SkillStateGuard, hr as WebSkillRuntime, tt as IntegrityVerdict } from "./index-DRkI7M3z.js";
|
|
3
3
|
import { S as candidateToCatalogEntry, _ as SKILL_VERSION_PAGE_SIZE, a as AuditLog, b as SkillVersionPage, c as CandidateBinaryRef, d as CandidateRisk, f as CandidateSkill, g as CompositeApprovalPolicy, h as CandidateStore, i as AuditEvent, l as CandidateFile, m as CandidateStatus, n as ApprovalDecision, o as AuditQueryFilter, p as CandidateSource, r as ApprovalPolicy, s as CANDIDATE_PAGE_SIZE, t as AlwaysHumanApprovalPolicy, u as CandidatePage, v as SkillState, x as SkillVersionStore, y as SkillVersion } from "./skillVersionStore-S4_HJ_Fl-Ds97pwm5.js";
|
|
4
4
|
//#region ../governance/dist/index.d.ts
|
|
5
5
|
//#region src/candidate/candidateNormalizer.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as UiSpecActionCapability, D as UiSpecSnapshot, Nt as UiSpecNode, S as UiBridge, X as JsonSchema, b as RenderResultRequest, c as InteractionResponse, r as ChartSpec, s as InteractionRequest, y as RenderBlock } from "./types-CpDRZ0rA-CFQ-vdKz.js";
|
|
2
|
-
import { B as ExternalToolSource } from "./index-
|
|
2
|
+
import { B as ExternalToolSource } from "./index-DRkI7M3z.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { ComponentType, ReactNode } from "react";
|
|
5
5
|
//#region ../ui/dist/index.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as ChatAttachmentKind, Rt as WebSkillErrorCode, S as UiBridge, a as InteractionOrigin, c as InteractionResponse, nt as RemoteUrlPolicy, s as InteractionRequest, t as Artifact } from "./types-CpDRZ0rA-CFQ-vdKz.js";
|
|
2
|
-
import { B as ExternalToolSource, F as DocxTextExtractor, Fn as ToolStepReader, M as DataSourceInfo, kn as ToolCallContext, mt as PptxTextExtractor, pt as PdfTextExtractor, vr as XlsxTextExtractor, xn as SpreadsheetImageBytes } from "./index-
|
|
2
|
+
import { B as ExternalToolSource, F as DocxTextExtractor, Fn as ToolStepReader, M as DataSourceInfo, kn as ToolCallContext, mt as PptxTextExtractor, pt as PdfTextExtractor, vr as XlsxTextExtractor, xn as SpreadsheetImageBytes } from "./index-DRkI7M3z.js";
|
|
3
3
|
//#region ../agent/dist/index.d.ts
|
|
4
4
|
//#region src/todo/types.d.ts
|
|
5
5
|
/** 待办条目状态:未开始 / 进行中 / 已完成(FR-3.1) */
|
|
@@ -1788,6 +1788,15 @@ interface DownloadedFilePolicyOptions {
|
|
|
1788
1788
|
* 每次读取,设置改完立刻生效;缺省即**不设限**(保持 0.14.0 的直传行为)。
|
|
1789
1789
|
*/
|
|
1790
1790
|
maxDocumentBytes?(): number;
|
|
1791
|
+
/**
|
|
1792
|
+
* xlsx 原件取到之后、抽文本之前的分流(0.26.0 分册 10 · FR-10.24)。
|
|
1793
|
+
* 返回字符串:整段作为 `read` 结果的文本(不再套下载标签);返回 undefined:照常抽文本。
|
|
1794
|
+
* 授权、取字节、留痕都在它之前,不会被绕开。
|
|
1795
|
+
*/
|
|
1796
|
+
sheetRouting?(input: {
|
|
1797
|
+
entry: DownloadedFileEntry;
|
|
1798
|
+
bytes: Uint8Array;
|
|
1799
|
+
}): Promise<string | undefined>;
|
|
1791
1800
|
now?(): string;
|
|
1792
1801
|
}
|
|
1793
1802
|
/**
|
|
@@ -2092,6 +2101,78 @@ interface SpreadsheetToolSourceOptions {
|
|
|
2092
2101
|
*/
|
|
2093
2102
|
declare function createSpreadsheetToolSource(options: SpreadsheetToolSourceOptions): ExternalToolSource;
|
|
2094
2103
|
//#endregion
|
|
2104
|
+
//#region src/table/types.d.ts
|
|
2105
|
+
/**
|
|
2106
|
+
* 一张工作表的单元格网格(0.26.0 分册 10)。
|
|
2107
|
+
*
|
|
2108
|
+
* 给的是**格**而不是文本行:格内可以有换行与制表符,按制表符切回去会把一格拆成几格。
|
|
2109
|
+
* @experimental
|
|
2110
|
+
*/
|
|
2111
|
+
interface TableSheet {
|
|
2112
|
+
readonly name: string;
|
|
2113
|
+
/** 行 → 单元格的呈现文本;下标 0 是工作表第 1 行,行尾的空格不保留,行中间的空格保留 */
|
|
2114
|
+
readonly rows: readonly (readonly string[])[];
|
|
2115
|
+
}
|
|
2116
|
+
/** @experimental */
|
|
2117
|
+
interface TableWorkbook {
|
|
2118
|
+
readonly sheets: readonly TableSheet[];
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* xlsx 字节 → 单元格网格。宿主注入后,大表格才会以画像进消息、统计才能走 `query_table`。
|
|
2122
|
+
* @experimental
|
|
2123
|
+
*/
|
|
2124
|
+
interface XlsxTableReader {
|
|
2125
|
+
read(bytes: Uint8Array): Promise<TableWorkbook>;
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* 按取件号取一份已解析的表。字节从哪来、解析结果缓不缓存由装配方决定,
|
|
2129
|
+
* 工具源只认这一个出口——与 `read_document` 只认 `DocumentFileSource` 同一种切法。
|
|
2130
|
+
* 取不到返回 `undefined`;格式不对等可归因的失败直接抛 `WebSkillError`。
|
|
2131
|
+
* @experimental
|
|
2132
|
+
*/
|
|
2133
|
+
interface TableSource {
|
|
2134
|
+
load(id: string, context?: ToolCallContext): Promise<{
|
|
2135
|
+
name: string;
|
|
2136
|
+
workbook: TableWorkbook;
|
|
2137
|
+
} | undefined>;
|
|
2138
|
+
}
|
|
2139
|
+
//#endregion
|
|
2140
|
+
//#region src/table/profile.d.ts
|
|
2141
|
+
/**
|
|
2142
|
+
* 表格画像:每张表的行列数、表头位置,每列的类型 / 非空数 / 去重数 / 数值与日期范围 / 高频取值,
|
|
2143
|
+
* 以及前几行样本(0.26.0 分册 10 · FR-10.3)。
|
|
2144
|
+
*
|
|
2145
|
+
* 分流进消息与 `query_table` 的 `describe` 调同一个函数,模型看到的是同一份口径。
|
|
2146
|
+
* 整份不超过 8000 字符;超出时按阶梯收缩,并在末尾写明收缩了什么。
|
|
2147
|
+
* @experimental
|
|
2148
|
+
*/
|
|
2149
|
+
declare function profileTable(input: {
|
|
2150
|
+
name: string;
|
|
2151
|
+
id: string;
|
|
2152
|
+
workbook: TableWorkbook;
|
|
2153
|
+
/** 只展开这一张(表名或 1 基序号);缺省展开前几张 */
|
|
2154
|
+
sheet?: string | number;
|
|
2155
|
+
headerRow?: number;
|
|
2156
|
+
}): string;
|
|
2157
|
+
//#endregion
|
|
2158
|
+
//#region src/table/toolSource.d.ts
|
|
2159
|
+
/** @experimental */
|
|
2160
|
+
declare const QUERY_TABLE_TOOL = "query_table";
|
|
2161
|
+
/** @experimental */
|
|
2162
|
+
interface TableQueryToolSourceOptions {
|
|
2163
|
+
tables: TableSource;
|
|
2164
|
+
/** 下载取件号此刻是否可用(端口已接且开关开着);每次出工具表时现读,缺省视为不可用 */
|
|
2165
|
+
downloadedFiles?: () => boolean;
|
|
2166
|
+
}
|
|
2167
|
+
/**
|
|
2168
|
+
* 在本机对整张表精确计算(0.26.0 分册 10)。
|
|
2169
|
+
*
|
|
2170
|
+
* 结构化入参,**不执行**任何模型给的表达式或代码;工具只认 `TableSource` 一个取件出口,
|
|
2171
|
+
* 不认识附件、下载与会话。
|
|
2172
|
+
* @experimental
|
|
2173
|
+
*/
|
|
2174
|
+
declare function createTableQueryToolSource(options: TableQueryToolSourceOptions): ExternalToolSource;
|
|
2175
|
+
//#endregion
|
|
2095
2176
|
//#region src/template/geometry.d.ts
|
|
2096
2177
|
/**
|
|
2097
2178
|
* A1 地址与 OOXML 几何换算(0.22.0 分册 42 · 设计 43 §1.6)。
|
|
@@ -2785,4 +2866,4 @@ declare function dwgViewsOf(doc: DwgDocumentContent): readonly DwgView[];
|
|
|
2785
2866
|
/** 按 id 取视图;取不到就退回第一个,而不是什么都没有 */
|
|
2786
2867
|
declare function dwgPickView(doc: DwgDocumentContent, viewId: string | undefined): DwgView;
|
|
2787
2868
|
//#endregion
|
|
2788
|
-
export { DownloadedFileEntry as $,
|
|
2869
|
+
export { DownloadedFileEntry as $, SkillBinaryPayload as $n, XlsxTableReader as $r, PERCEPTION_PAGING_DEFAULTS as $t, DataSourceRecord as A, isRangeTopLeft as Ai, PerceptionAuditSink as An, TemplateFillRejection as Ar, FILL_TEMPLATE_TOOL as At, DocumentFileSource as B, toFrameScopes as Bi, QUERY_TABLE_TOOL as Bn, TodoItem as Br, LIST_PAGE_TABS_TOOL as Bt, DataSourceCandidateRecord as C, dwgPickView as Ci, ParentBudget as Cn, TabWorksetToolSourceOptions as Cr, DwgView as Ct, DataSourcePolicy as D, frameLabel as Di, PdfTextQuality as Dn, TableWorkbook as Dr, EMU_PER_TWIP as Dt, DataSourceKind as E, formatCellAddress as Ei, PdfPageImage as En, TableSource as Er, EMU_PER_POINT as Et, DelegationRequest as F, rangeContains as Fi, PerceptionScope as Fn, TemplateSheetBlanks as Fr, GeneratedSkillDraft as Ft, DocumentToolSourceOptions as G, RemoteImageResult as Gn, TodoToolSourceOptions as Gr, OpenedTabSignal as Gt, DocumentImageRole as H, READ_DOWNLOADED_FILE_TOOL as Hn, TodoListener as Hr, MAX_DIGIT_WIDTH as Ht, DelegationResult as I, readImageSize as Ii, PerceptionScopeInput as In, TemplateSheetSkeleton as Ir, HttpDataSourceOptions as It, DocxTemplateEngine as J, SCROLL_DIRECTIONS as Jn, WorksetTabView as Jr, PAGE_ACTION_TOOL as Jt, DocxDocumentContent as K, RemoteImageToolSourceOptions as Kn, VIEW_DWG_TOOL as Kr, PAGE_ACTION_KINDS as Kt, DelegationToolSourceOptions as L, sniffDocumentFormat as Li, PptxDocumentContent as Ln, TemplateTableCellSkeleton as Lr, INSPECT_TEMPLATE_TOOL as Lt, DelegationBudget as M, parseCellAddress as Mi, PerceptionPagingBudget as Mn, TemplateImageBytes as Mr, FrameNote as Mt, DelegationOrchestrator as N, parseCellRange as Ni, PerceptionRecord as Nn, TemplateImageResolver as Nr, FrameScope as Nt, DataSourcePolicyOptions as O, frameSteps as Oi, PerceivedImage as On, TemplateCellSkeleton as Or, EXPORT_SPREADSHEET_TOOL as Ot, DelegationOrchestratorOptions as P, profileTable as Pi, PerceptionResult as Pn, TemplateParagraphSkeleton as Pr, GENERATE_SKILL_TOOL as Pt, DownloadedFileConsent as Q, SkillAttachmentBytes as Qn, XlsxSheetContent as Qr, PERCEIVE_PAGE_TOOL as Qt, DocumentBlock as R, takesImage as Ri, PptxDocumentReader as Rn, TemplateToolSourceOptions as Rr, ImageCaptureBudget as Rt, DataSourceCandidatePolicyOptions as S, defersImage as Si, PagePerceptionToolSourceOptions as Sn, TabWorksetPort as Sr, DwgUnits as St, DataSourceDef as T, fitWithin as Ti, PdfDocumentReader as Tn, TableSheet as Tr, EMU_PER_PIXEL as Tt, DocumentReadBudget as U, RemoteImageFetch as Un, TodoStatus as Ur, NestedFrameRef as Ut, DocumentFormat as V, withDelegationOrigin as Vi, READ_DOCUMENT_TOOL as Vn, TodoList as Vr, MANAGE_TODO_TOOL as Vt, DocumentReadMode as W, RemoteImageFetchFailure as Wn, TodoStore as Wr, OpenedPageInfo as Wt, DocxTemplateSkeleton as X, ScrollDirection as Xn, XlsxDocumentReader as Xr, PDF_GARBLED_RATIO as Xt, DocxTemplateFillSpec as Y, SKILL_GENERATION_SYSTEM_PROMPT as Yn, XlsxDocumentContent as Yr, PAGE_DOCUMENT_REF as Yt, DownloadedFileAction as Z, Size as Zn, XlsxFillOutcome as Zr, PDF_LARGE_IMAGE_RATIO as Zt, DWG_MODEL_VIEW_ID as _, createSpreadsheetToolSource as _i, PageImageResult as _n, TEMPLATE_INSPECT_BUDGET as _r, DwgOmission as _t, ActionTabWindow as a, clampWorksetMax as ai, PageActionPolicy as an, SkillGenerator as ar, DownloadedFileRecord as at, DataSourceCandidateAuditSink as b, createTemplateToolSource as bi, PagePerceptionPolicyOptions as bn, TabWorksetPolicy as br, DwgProjection as bt, CellAddress as c, createDocumentToolSource as ci, PageActionRequest as cn, SkillTraceEvidenceStep as cr, DwgComponent as ct, DELEGATE_TASK_TOOL as d, createHttpDataSourceTransport as di, PageActionTarget as dn, SubAgentRunner as dr, DwgEntity as dt, XlsxTemplateEngine as ei, PERCEPTION_SYSTEM_PROMPT as en, SkillCandidateSink as er, DownloadedFileListing as et, DELEGATION_SYSTEM_PROMPT as f, createPageActionToolSource as fi, PageActionToolSourceOptions as fn, SubtreeRejection as fr, DwgFill as ft, DOWNLOAD_WAIT_MIN_MS as g, createSkillGenerationToolSource as gi, PageImageFailure as gn, TAB_WORKSET_SYSTEM_PROMPT as gr, DwgLoadedDrawing as gt, DOWNLOAD_WAIT_MAX_MS as h, createRemoteImageToolSource as hi, PageImageCapture as hn, TAB_WORKSET_MIN_MAX as hr, DwgLayer as ht, ActionTabWatcher as i, clampDownloadWaitMs as ii, PageActionOutcome as in, SkillGenerationToolSourceOptions as ir, DownloadedFileReader as it, DataSourceTransport as j, measurePdfTextQuality as ji, PerceptionCaptureOptions as jn, TemplateFillWarning as jr, FOCUS_PAGE_TAB_TOOL as jt, DataSourceProvenance as k, isPdfTextTrustworthy as ki, PerceivedNode as kn, TemplateFileSource as kr, FETCH_REMOTE_IMAGE_TOOL as kt, CellRange as l, createDownloadedFileToolSource as li, PageActionScope as ln, SpreadsheetToolSourceOptions as lr, DwgDocumentContent as lt, DOWNLOAD_WAIT_DEFAULT_MS as m, createPagePerceptionToolSource as mi, PageAuditSink as mn, TAB_WORKSET_MAX_MAX as mr, DwgGeometry as mt, ActionDownloadWindow as n, XlsxTemplateSkeleton as ni, PageActionExecutor as nn, SkillGenerationOutcome as nr, DownloadedFilePolicyOptions as nt, CAPTURE_PAGE_IMAGE_TOOL as o, columnWidthToPixels as oi, PageActionPolicyOptions as on, SkillGeneratorOptions as or, DownloadedFileToolSourceOptions as ot, DOCUMENT_READ_BUDGET as p, createPageImageToolSource as pi, PageActionUi as pn, TAB_WORKSET_DEFAULT_MAX as pr, DwgFont as pt, DocxDocumentReader as q, RenderedImage as qn, WorksetTab as qr, PAGE_ACTION_SYSTEM_PROMPT as qt, ActionFrameScope as r, asReadMode as ri, PageActionKind as rn, SkillGenerationPolicy as rr, DownloadedFileReadResult as rt, CLOSE_PAGE_TAB_TOOL as s, createDelegationToolSource as si, PageActionRecord as sn, SkillTraceEvidence as sr, DwgBounds as st, ActionDownloadWatcher as t, XlsxTemplateFillSpec as ti, PageActionConsent as tn, SkillGenerationMessages as tr, DownloadedFilePolicy as tt, ConsentUi as u, createDwgToolSource as ui, PageActionScopeInput as un, SubAgentRunInput as ur, DwgDocumentReader as ut, DataSourceAuditSink as v, createTabWorksetToolSource as vi, PageImageToolSourceOptions as vn, TODO_SYSTEM_PROMPT as vr, DwgPoint as vt, DataSourceCandidateStore as w, dwgViewsOf as wi, PdfDocumentHandle as wn, TableQueryToolSourceOptions as wr, DwgViewport as wt, DataSourceCandidatePolicy as x, createTodoToolSource as xi, PagePerceptionReader as xn, TabWorksetPolicyOptions as xr, DwgToolSourceOptions as xt, DataSourceCandidate as y, createTableQueryToolSource as yi, PagePerceptionPolicy as yn, TabAdmission as yr, DwgProjectedDrawing as yt, DocumentFileBytes as z, toActionFrameScopes as zi, PptxSlideContent as zn, TodoEvent as zr, LIST_DOWNLOADED_FILES_TOOL as zt };
|
|
@@ -2604,7 +2604,8 @@ interface SessionListPage extends Page<SessionMeta> {
|
|
|
2604
2604
|
interface SessionStore<TMessage = unknown> {
|
|
2605
2605
|
/**
|
|
2606
2606
|
* 会话列表页。翻页方向固定为**从新到旧**(聊天 UI 的「加载更多」总是向历史走),
|
|
2607
|
-
*
|
|
2607
|
+
* 页内元素也是**新到旧**(`items[0]` 是最新的会话):0.23.0 分册 18 起的契约,
|
|
2608
|
+
* 自己实现 `SessionStore` 的宿主需要跟上,否则列表会把最旧的会话显示在最上面。
|
|
2608
2609
|
*/
|
|
2609
2610
|
list(options?: {
|
|
2610
2611
|
includeArchived?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { $ as PPTX_MIME, $t as exportSkills, A as extractSkillCandidate, At as TrustedKey, B as DOCX_MIME, Bt as assertRemoteUrlAllowed, C as UiSpecActionCapability, Cn as verifySkillSignature, Ct as SkillMetadata, D as UiSpecSnapshot, Dt as SkillSource, E as UiSpecPatch, Et as SkillSignature, F as BINARY_EXTENSIONS, Ft as ValidationReport, G as FileStat, Gt as buildManifest, H as DiscoveryResult, Ht as atomicWriteBinary, I as CatalogRenderer, It as VerifyResult, J as FsTrustedKeyStore, Jt as classifyAttachment, K as FileSystemProvider, Kt as checkDependencyCycles, L as ChatAttachmentKind, Lt as WebSkillError, M as ATTACHMENT_TEXT_LIMIT, Mt as UNTRUSTED_LINE_LIMIT, N as ArchiveLimits, Nt as UiSpecNode, O as UiSurfaceActionRequest, Ot as SkillsLockfile, P as AttachmentTextInput, Pt as UnsignedPolicy, Q as MemoryFS, Qt as escapeXml, R as CryptoKeyLike, Rt as WebSkillErrorCode, S as UiBridge, Sn as verifyManifest, St as SkillManifest, T as UiSpecEvent, Tt as SkillReader, U as ExtractedDocumentFormat, Ut as atomicWriteText, V as DWG_MIME_TYPES, Vt as assertSafePathSegment, W as FILE_MIME_TYPES, Wt as buildCatalog, X as JsonSchema, Xt as detectSkillArchiveShape, Y as IMAGE_MIME_TYPES, Yt as computeDigest, Z as MANIFEST_EXCLUDED_FILES, Zt as detectSkillArchiveShapeFromFs, _ as LlmToolSpec, _n as signSkill, _t as SkillDocument, a as InteractionOrigin, an as keyIdOf, at as SKILL_MANIFEST_FILE, b as RenderResultRequest, bn as unzipWithLimits, bt as SkillLocation, c as InteractionResponse, cn as parseSkillMarkdown, ct as SKILL_PACK_FILE, d as LlmContentPart, dn as readSkillSignature, dt as SignatureVerdict, en as extractedDocumentFormat, et as Page, f as LlmMessage, fn as renderAvailableSkillsXml, ft as SkillArchiveDetection, g as LlmToolCall, gn as sanitizeUntrustedLine, gt as SkillDiscovery, h as LlmTokenUsage, hn as resolveInsideRoot, ht as SkillCatalogEntry, i as FormField, in as jsonRenderer, it as SKILLS_LOCKFILE, j as ATOMIC_TMP_SUFFIX_PATTERN, jt as TrustedKeyStore, k as UiSurfaceActionResponse, kt as TEXT_EXTENSIONS, l as LlmClient, ln as parseSkillPackManifest, lt as SKILL_SIGNATURE_FILE, m as LlmStreamEvent, mn as resolveArchiveLimits, mt as SkillCatalog, n as ArtifactStore, nn as isAtomicTempPath, nt as RemoteUrlPolicy, o as InteractionPolicy, on as messageOf, ot as SKILL_NAME_MAX_LENGTH, p as LlmResponse, pn as renderCatalogJson, pt as SkillArchiveShape, q as FileWriteStream, qt as checkSkillRules, r as ChartSpec, rn as isValidSkillName, rt as SIGNATURE_SCHEMA_VERSION, s as InteractionRequest, sn as normalizePath, st as SKILL_NAME_PATTERN, t as Artifact, tn as formatAttachmentText, tt as PageQuery, u as LlmCompleteInput, un as readResponseWithLimit, ut as SignatureAuditSink, v as MemoryStore, vn as signaturePayloadBytes, vt as SkillInstallSource, w as UiSpecDrafts, wn as xmlRenderer, wt as SkillPackManifest, x as SkillCandidateMarker, xn as validateSkills, xt as SkillManagerPort, y as RenderBlock, yn as stripArchiveRoot, yt as SkillIssue, z as DEFAULT_ARCHIVE_LIMITS, zt as XLSX_MIME } from "./types-CpDRZ0rA-CFQ-vdKz.js";
|
|
2
|
-
import { $ as ImageOmission, $n as UserProfileEntry, $r as readProfileEntries, $t as SchemaInferer, A as DEFAULT_MAX_UPLOAD_FILE_BYTES, An as ToolContent, Ar as extractChartSpec, At as RunResult, B as ExternalToolSource, Bn as TraceEvent, Br as isUnsupportedRunSnapshot, Bt as RunTraceSummary, C as BridgeResponse, Cn as SpreadsheetSheet, Cr as buildRenderResult, Ct as RedactedArgs, D as DEFAULT_MAX_DATA_SOURCE_BYTES, Dn as TextualToolContent, Dr as diffUserProfile, Dt as RunBinaryEntry, E as DEFAULT_LOOP_LIMITS, En as TerminalLifecycleData, Er as createWebSkillApi, Et as RouteResult, F as DocxTextExtractor, Fn as ToolStepReader, Fr as fromVercelResult, Ft as RunToolCall, G as FsRunTraceStore, Gn as USER_PROFILE_EXPORT_VERSION, Gr as networkUrlHost, Gt as RuntimeSession, H as FsArtifactStore, Hn as TraceRecorder, Hr as mergeCatalogEntries, Ht as RunUsageSummary, I as EMPTY_USER_PROFILE, In as ToolStepRecord, Ir as fromVercelStreamPart, It as RunTraceFile, J as FullDisclosureRouter, Jn as USER_PROFILE_PROMPT_HEADER, Jr as normalizeToolError, Jt as SESSION_SCHEMA_VERSION, K as FsSessionStore, Kn as USER_PROFILE_KEY, Kr as normalizeErrorCode, Kt as RuntimeSessionHandle, L as EventBus, Ln as ToolStepStore, Lr as interruptedToolResult, Lt as RunTraceFilter, M as DataSourceInfo, Mn as ToolDisclosure, Mr as extractUiSpecEvents, Mt as RunSnapshotListEntry, N as DocumentSurfaceHost, Nn as ToolResolution, Nr as findUnpairedToolCalls, Nt as RunSnapshotStore, O as DEFAULT_MAX_DOCUMENT_BYTES, On as TodoTraceEvent, Or as encodeSpreadsheet, Ot as RunBinaryStore, P as DocumentSurfacePort, Pn as ToolResult, Pr as formatSkillScriptManifest, Pt as RunTerminationReason, Q as HookRunnerOptions, Qn as UserProfile, Qr as readBehaviorRecords, Qt as SUPPORTED_DOCUMENT_MIME, R as ExecuteLifecycleData, Rn as ToolStepTrust, Rr as isBytesOnlyDocument, Rt as RunTraceMetrics, S as BridgeRequest, Sn as SpreadsheetImageResolver, Sr as bridgeError, St as RUN_TRACE_SCHEMA_VERSION, T as CapabilityMode, Tn as TEXT_BUDGETED_CONTENT_TYPES, Tr as createScriptContext, Tt as RouteLifecycleData, U as FsMemoryStore, Un as UNSUPPORTED_DOCUMENT_MESSAGE, Ur as mergeProfileEntries, Ut as RuntimePhase, V as FS_SESSION_PAGE_SIZE, Vn as TraceEventType, Vr as listSkillScripts, Vt as RunUploadFiles, W as FsRunSnapshotStore, Wn as UPLOAD_FILES_UNAVAILABLE, Wr as networkPolicyLibSource, Wt as RuntimeRun, X as GoogleGenAiClientConfig, Xn as UnsupportedRunSnapshot, Xr as parseUserProfileExport, Xt as SPREADSHEET_LIMITS, Y as GoogleGenAiClient, Yn as USER_PROFILE_REFINE_PROMPT, Yr as parseBridgeRequest, Yt as SPREADSHEET_EXTENSION, Z as HookRunner, Zn as UploadFileInfo, Zr as partsToText, Zt as SPREADSHEET_MIME_TYPE, _ as BehaviorRecord, _i as toVercelToolSpecs, _n as SkillSuccessReport, _r as XLSX_UNSUPPORTED, _t as READ_LINKED_DOCUMENT_TOOL_NAME, a as ASK_USER_TOOL, ai as runVisionBatch, an as SerializingMemoryStore, ar as VISION_SLOW_THRESHOLD_MS, at as LifecycleHook, b as BridgeCapabilities, bn as SpreadsheetImageAnchor, br as appendBehaviorRecords, bt as READ_SKILL_FILE_TOOL_NAME, c as AgentLoop, ci as schemaToForm, cn as SessionRecord, cr as VisionBatchOptions, ct as LinkedDocumentReader, d as AnthropicClient, di as summarizeRunUsage, dn as SkillIntegrityGuard, dr as VisionDelegateImage, dt as OpenAiCompatibleClient, ei as readUserProfile, en as ScriptExecutionContext, er as UserProfileExport, et as InstalledSkillManifest, f as AnthropicClientConfig, fi as summarizeToolCalls, fn as SkillOutcomeReporter, fr as VisionDelegateRequest, ft as OpenAiCompatibleClientConfig, g as BYTES_ONLY_DOCUMENT_MIME, gi as toRecordDigests, gn as SkillStateGuard, gr as WebSkillRuntimeDeps, gt as READ_LINKED_DOCUMENT_TOOL, h as BEHAVIOR_RECORDS_KEY, hi as toLlmToolSpec, hn as SkillScriptSchemaSource, hr as WebSkillRuntime, ht as ProgressiveRouter, i as ASK_USER_MAX_FIELDS, ii as resolveToolName, in as SealResult, ir as VISION_MAX_CONCURRENCY, it as LifecycleEventInit, j as DEFAULT_USER_PROFILE_LIMITS, jn as ToolDefinition, jr as extractTodoTraceEvents, jt as RunSnapshot, k as DEFAULT_MAX_DOCUMENT_TEXT_BYTES, kn as ToolCallContext, kr as exportUserProfile, kt as RunLimitErrorDetails, l as AgentLoopConfig, li as scriptToolName, ln as SessionStore, lr as VisionBatchOutcome, lt as MAX_TOOL_STEP_ARG_BYTES, m as ApprovalScope, mi as toBase64, mn as SkillScriptDescriptor, mr as WebSkillApi, mt as PptxTextExtractor, n as ASK_USER_FIELD_TYPES, ni as refineUserProfile, nn as SealOptions, nr as UserProfileLimits, nt as InteractLifecycleData, o as ASK_USER_TOOL_NAME, oi as sampleBehaviorRecords, on as SessionListPage, or as VercelToolSpec, ot as LifecycleHookContext, p as ApprovalDecision, pi as textParts, pn as SkillRouter, pr as VisionDelegateResult, pt as PdfTextExtractor, q as FsToolStepStore, qn as USER_PROFILE_NO_INVENTION_RULE, qr as normalizeToolContent, qt as SENSITIVE_ANNOTATION, r as ASK_USER_INPUT_SCHEMA, ri as renderUserProfileContext, rn as SealRecord, rr as VISION_DEFAULT_CONCURRENCY, rt as LifecycleEvent, s as ActivateLifecycleData, si as schemaSourceLabel, sn as SessionMeta, sr as ViewerImageFact, st as LifecycleListener, t as ALLOWED_TOOLS_EXCLUSION_REASON, ti as redactToolStepArgs, tn as ScriptExecutor, tr as UserProfileImportDiff, tt as IntegrityVerdict, u as AgentLoopDeps, ui as sealToolCallPairs, un as SkillFailureReport, ur as VisionDelegate, ut as NetworkPolicy, v as BehaviorRecordKind, vi as validateUiSpecEvent, vn as SpreadsheetCell, vr as XlsxTextExtractor, vt as READ_SKILL_FILE_INPUT_SCHEMA, w as CapabilityApproval, wn as SpreadsheetSpec, wr as clampVisionConcurrency, wt as RefineUserProfileInput, x as BridgeCapability, xn as SpreadsheetImageBytes, xr as applyUserProfileImport, xt as RUN_SNAPSHOT_SCHEMA_VERSION, y as BehaviorScene, yi as validateUiSpecNode, yn as SpreadsheetImage, yr as XlsxUnsupportedFeature, yt as READ_SKILL_FILE_TOOL, z as ExternalSkillProvider, zn as TraceClock, zr as isNetworkAllowed, zt as RunTraceStore } from "./index-
|
|
2
|
+
import { $ as ImageOmission, $n as UserProfileEntry, $r as readProfileEntries, $t as SchemaInferer, A as DEFAULT_MAX_UPLOAD_FILE_BYTES, An as ToolContent, Ar as extractChartSpec, At as RunResult, B as ExternalToolSource, Bn as TraceEvent, Br as isUnsupportedRunSnapshot, Bt as RunTraceSummary, C as BridgeResponse, Cn as SpreadsheetSheet, Cr as buildRenderResult, Ct as RedactedArgs, D as DEFAULT_MAX_DATA_SOURCE_BYTES, Dn as TextualToolContent, Dr as diffUserProfile, Dt as RunBinaryEntry, E as DEFAULT_LOOP_LIMITS, En as TerminalLifecycleData, Er as createWebSkillApi, Et as RouteResult, F as DocxTextExtractor, Fn as ToolStepReader, Fr as fromVercelResult, Ft as RunToolCall, G as FsRunTraceStore, Gn as USER_PROFILE_EXPORT_VERSION, Gr as networkUrlHost, Gt as RuntimeSession, H as FsArtifactStore, Hn as TraceRecorder, Hr as mergeCatalogEntries, Ht as RunUsageSummary, I as EMPTY_USER_PROFILE, In as ToolStepRecord, Ir as fromVercelStreamPart, It as RunTraceFile, J as FullDisclosureRouter, Jn as USER_PROFILE_PROMPT_HEADER, Jr as normalizeToolError, Jt as SESSION_SCHEMA_VERSION, K as FsSessionStore, Kn as USER_PROFILE_KEY, Kr as normalizeErrorCode, Kt as RuntimeSessionHandle, L as EventBus, Ln as ToolStepStore, Lr as interruptedToolResult, Lt as RunTraceFilter, M as DataSourceInfo, Mn as ToolDisclosure, Mr as extractUiSpecEvents, Mt as RunSnapshotListEntry, N as DocumentSurfaceHost, Nn as ToolResolution, Nr as findUnpairedToolCalls, Nt as RunSnapshotStore, O as DEFAULT_MAX_DOCUMENT_BYTES, On as TodoTraceEvent, Or as encodeSpreadsheet, Ot as RunBinaryStore, P as DocumentSurfacePort, Pn as ToolResult, Pr as formatSkillScriptManifest, Pt as RunTerminationReason, Q as HookRunnerOptions, Qn as UserProfile, Qr as readBehaviorRecords, Qt as SUPPORTED_DOCUMENT_MIME, R as ExecuteLifecycleData, Rn as ToolStepTrust, Rr as isBytesOnlyDocument, Rt as RunTraceMetrics, S as BridgeRequest, Sn as SpreadsheetImageResolver, Sr as bridgeError, St as RUN_TRACE_SCHEMA_VERSION, T as CapabilityMode, Tn as TEXT_BUDGETED_CONTENT_TYPES, Tr as createScriptContext, Tt as RouteLifecycleData, U as FsMemoryStore, Un as UNSUPPORTED_DOCUMENT_MESSAGE, Ur as mergeProfileEntries, Ut as RuntimePhase, V as FS_SESSION_PAGE_SIZE, Vn as TraceEventType, Vr as listSkillScripts, Vt as RunUploadFiles, W as FsRunSnapshotStore, Wn as UPLOAD_FILES_UNAVAILABLE, Wr as networkPolicyLibSource, Wt as RuntimeRun, X as GoogleGenAiClientConfig, Xn as UnsupportedRunSnapshot, Xr as parseUserProfileExport, Xt as SPREADSHEET_LIMITS, Y as GoogleGenAiClient, Yn as USER_PROFILE_REFINE_PROMPT, Yr as parseBridgeRequest, Yt as SPREADSHEET_EXTENSION, Z as HookRunner, Zn as UploadFileInfo, Zr as partsToText, Zt as SPREADSHEET_MIME_TYPE, _ as BehaviorRecord, _i as toVercelToolSpecs, _n as SkillSuccessReport, _r as XLSX_UNSUPPORTED, _t as READ_LINKED_DOCUMENT_TOOL_NAME, a as ASK_USER_TOOL, ai as runVisionBatch, an as SerializingMemoryStore, ar as VISION_SLOW_THRESHOLD_MS, at as LifecycleHook, b as BridgeCapabilities, bn as SpreadsheetImageAnchor, br as appendBehaviorRecords, bt as READ_SKILL_FILE_TOOL_NAME, c as AgentLoop, ci as schemaToForm, cn as SessionRecord, cr as VisionBatchOptions, ct as LinkedDocumentReader, d as AnthropicClient, di as summarizeRunUsage, dn as SkillIntegrityGuard, dr as VisionDelegateImage, dt as OpenAiCompatibleClient, ei as readUserProfile, en as ScriptExecutionContext, er as UserProfileExport, et as InstalledSkillManifest, f as AnthropicClientConfig, fi as summarizeToolCalls, fn as SkillOutcomeReporter, fr as VisionDelegateRequest, ft as OpenAiCompatibleClientConfig, g as BYTES_ONLY_DOCUMENT_MIME, gi as toRecordDigests, gn as SkillStateGuard, gr as WebSkillRuntimeDeps, gt as READ_LINKED_DOCUMENT_TOOL, h as BEHAVIOR_RECORDS_KEY, hi as toLlmToolSpec, hn as SkillScriptSchemaSource, hr as WebSkillRuntime, ht as ProgressiveRouter, i as ASK_USER_MAX_FIELDS, ii as resolveToolName, in as SealResult, ir as VISION_MAX_CONCURRENCY, it as LifecycleEventInit, j as DEFAULT_USER_PROFILE_LIMITS, jn as ToolDefinition, jr as extractTodoTraceEvents, jt as RunSnapshot, k as DEFAULT_MAX_DOCUMENT_TEXT_BYTES, kn as ToolCallContext, kr as exportUserProfile, kt as RunLimitErrorDetails, l as AgentLoopConfig, li as scriptToolName, ln as SessionStore, lr as VisionBatchOutcome, lt as MAX_TOOL_STEP_ARG_BYTES, m as ApprovalScope, mi as toBase64, mn as SkillScriptDescriptor, mr as WebSkillApi, mt as PptxTextExtractor, n as ASK_USER_FIELD_TYPES, ni as refineUserProfile, nn as SealOptions, nr as UserProfileLimits, nt as InteractLifecycleData, o as ASK_USER_TOOL_NAME, oi as sampleBehaviorRecords, on as SessionListPage, or as VercelToolSpec, ot as LifecycleHookContext, p as ApprovalDecision, pi as textParts, pn as SkillRouter, pr as VisionDelegateResult, pt as PdfTextExtractor, q as FsToolStepStore, qn as USER_PROFILE_NO_INVENTION_RULE, qr as normalizeToolContent, qt as SENSITIVE_ANNOTATION, r as ASK_USER_INPUT_SCHEMA, ri as renderUserProfileContext, rn as SealRecord, rr as VISION_DEFAULT_CONCURRENCY, rt as LifecycleEvent, s as ActivateLifecycleData, si as schemaSourceLabel, sn as SessionMeta, sr as ViewerImageFact, st as LifecycleListener, t as ALLOWED_TOOLS_EXCLUSION_REASON, ti as redactToolStepArgs, tn as ScriptExecutor, tr as UserProfileImportDiff, tt as IntegrityVerdict, u as AgentLoopDeps, ui as sealToolCallPairs, un as SkillFailureReport, ur as VisionDelegate, ut as NetworkPolicy, v as BehaviorRecordKind, vi as validateUiSpecEvent, vn as SpreadsheetCell, vr as XlsxTextExtractor, vt as READ_SKILL_FILE_INPUT_SCHEMA, w as CapabilityApproval, wn as SpreadsheetSpec, wr as clampVisionConcurrency, wt as RefineUserProfileInput, x as BridgeCapability, xn as SpreadsheetImageBytes, xr as applyUserProfileImport, xt as RUN_SNAPSHOT_SCHEMA_VERSION, y as BehaviorScene, yi as validateUiSpecNode, yn as SpreadsheetImage, yr as XlsxUnsupportedFeature, yt as READ_SKILL_FILE_TOOL, z as ExternalSkillProvider, zn as TraceClock, zr as isNetworkAllowed, zt as RunTraceStore } from "./index-DRkI7M3z.js";
|
|
3
3
|
//#region src/version.d.ts
|
|
4
4
|
/** Generated by scripts/syncVersionConstant.mjs from packages/sdk/package.json. Do not edit by hand. */
|
|
5
5
|
/**
|
|
6
6
|
* Version of the published `@webskill/sdk` package, injected at build time.
|
|
7
7
|
* @stable
|
|
8
8
|
*/
|
|
9
|
-
declare const SDK_VERSION = "0.
|
|
9
|
+
declare const SDK_VERSION = "0.26.0";
|
|
10
10
|
//#endregion
|
|
11
11
|
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_FIELD_TYPES, ASK_USER_INPUT_SCHEMA, ASK_USER_MAX_FIELDS, ASK_USER_TOOL, ASK_USER_TOOL_NAME, ATOMIC_TMP_SUFFIX_PATTERN, ATTACHMENT_TEXT_LIMIT, type ActivateLifecycleData, AgentLoop, type AgentLoopConfig, type AgentLoopDeps, AnthropicClient, type AnthropicClientConfig, type ApprovalDecision, type ApprovalScope, type ArchiveLimits, type Artifact, type ArtifactStore, type AttachmentTextInput, BEHAVIOR_RECORDS_KEY, BINARY_EXTENSIONS, BYTES_ONLY_DOCUMENT_MIME, type BehaviorRecord, type BehaviorRecordKind, type BehaviorScene, type BridgeCapabilities, type BridgeCapability, type BridgeRequest, type BridgeResponse, CapabilityApproval, type CapabilityMode, type CatalogRenderer, type ChartSpec, type ChatAttachmentKind, type CryptoKeyLike, DEFAULT_ARCHIVE_LIMITS, DEFAULT_LOOP_LIMITS, DEFAULT_MAX_DATA_SOURCE_BYTES, DEFAULT_MAX_DOCUMENT_BYTES, DEFAULT_MAX_DOCUMENT_TEXT_BYTES, DEFAULT_MAX_UPLOAD_FILE_BYTES, DEFAULT_USER_PROFILE_LIMITS, DOCX_MIME, DWG_MIME_TYPES, type DataSourceInfo, type DiscoveryResult, type DocumentSurfaceHost, type DocumentSurfacePort, type DocxTextExtractor, EMPTY_USER_PROFILE, EventBus, type ExecuteLifecycleData, type ExternalSkillProvider, type ExternalToolSource, type ExtractedDocumentFormat, FILE_MIME_TYPES, FS_SESSION_PAGE_SIZE, type FileStat, type FileSystemProvider, type FileWriteStream, type FormField, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FsRunTraceStore, FsSessionStore, FsToolStepStore, FsTrustedKeyStore, FullDisclosureRouter, GoogleGenAiClient, type GoogleGenAiClientConfig, HookRunner, type HookRunnerOptions, IMAGE_MIME_TYPES, type ImageOmission, type InstalledSkillManifest, type IntegrityVerdict, type InteractLifecycleData, type InteractionOrigin, type InteractionPolicy, type InteractionRequest, type InteractionResponse, type JsonSchema, type LifecycleEvent, type LifecycleEventInit, type LifecycleHook, type LifecycleHookContext, type LifecycleListener, type LinkedDocumentReader, type LlmClient, type LlmCompleteInput, type LlmContentPart, type LlmMessage, type LlmResponse, type LlmStreamEvent, type LlmTokenUsage, type LlmToolCall, type LlmToolSpec, MANIFEST_EXCLUDED_FILES, MAX_TOOL_STEP_ARG_BYTES, MemoryFS, type MemoryStore, type NetworkPolicy, OpenAiCompatibleClient, type OpenAiCompatibleClientConfig, PPTX_MIME, type Page, type PageQuery, type PdfTextExtractor, type PptxTextExtractor, ProgressiveRouter, READ_LINKED_DOCUMENT_TOOL, READ_LINKED_DOCUMENT_TOOL_NAME, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, RUN_TRACE_SCHEMA_VERSION, type RedactedArgs, type RefineUserProfileInput, type RemoteUrlPolicy, type RenderBlock, type RenderResultRequest, type RouteLifecycleData, type RouteResult, type RunBinaryEntry, type RunBinaryStore, type RunLimitErrorDetails, type RunResult, type RunSnapshot, type RunSnapshotListEntry, type RunSnapshotStore, type RunTerminationReason, type RunToolCall, type RunTraceFile, type RunTraceFilter, type RunTraceMetrics, type RunTraceStore, type RunTraceSummary, type RunUploadFiles, type RunUsageSummary, type RuntimePhase, type RuntimeRun, type RuntimeSession, type RuntimeSessionHandle, SDK_VERSION, SENSITIVE_ANNOTATION, SESSION_SCHEMA_VERSION, SIGNATURE_SCHEMA_VERSION, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_PACK_FILE, SKILL_SIGNATURE_FILE, SPREADSHEET_EXTENSION, SPREADSHEET_LIMITS, SPREADSHEET_MIME_TYPE, SUPPORTED_DOCUMENT_MIME, type SchemaInferer, type ScriptExecutionContext, type ScriptExecutor, type SealOptions, type SealRecord, type SealResult, SerializingMemoryStore, type SessionListPage, type SessionMeta, type SessionRecord, type SessionStore, type SignatureAuditSink, type SignatureVerdict, type SkillArchiveDetection, type SkillArchiveShape, type SkillCandidateMarker, type SkillCatalog, type SkillCatalogEntry, SkillDiscovery, type SkillDocument, type SkillFailureReport, type SkillInstallSource, type SkillIntegrityGuard, type SkillIssue, type SkillLocation, type SkillManagerPort, type SkillManifest, type SkillMetadata, type SkillOutcomeReporter, type SkillPackManifest, SkillReader, type SkillRouter, type SkillScriptDescriptor, type SkillScriptSchemaSource, type SkillSignature, type SkillSource, type SkillStateGuard, type SkillSuccessReport, type SkillsLockfile, type SpreadsheetCell, type SpreadsheetImage, type SpreadsheetImageAnchor, type SpreadsheetImageBytes, type SpreadsheetImageResolver, type SpreadsheetSheet, type SpreadsheetSpec, TEXT_BUDGETED_CONTENT_TYPES, TEXT_EXTENSIONS, type TerminalLifecycleData, type TextualToolContent, type TodoTraceEvent, type ToolCallContext, type ToolContent, type ToolDefinition, type ToolDisclosure, type ToolResolution, type ToolResult, type ToolStepReader, type ToolStepRecord, type ToolStepStore, type ToolStepTrust, type TraceClock, type TraceEvent, type TraceEventType, TraceRecorder, type TrustedKey, type TrustedKeyStore, UNSUPPORTED_DOCUMENT_MESSAGE, UNTRUSTED_LINE_LIMIT, UPLOAD_FILES_UNAVAILABLE, USER_PROFILE_EXPORT_VERSION, USER_PROFILE_KEY, USER_PROFILE_NO_INVENTION_RULE, USER_PROFILE_PROMPT_HEADER, USER_PROFILE_REFINE_PROMPT, type UiBridge, type UiSpecActionCapability, type UiSpecDrafts, type UiSpecEvent, type UiSpecNode, type UiSpecPatch, type UiSpecSnapshot, type UiSurfaceActionRequest, type UiSurfaceActionResponse, type UnsignedPolicy, type UnsupportedRunSnapshot, type UploadFileInfo, type UserProfile, type UserProfileEntry, type UserProfileExport, type UserProfileImportDiff, type UserProfileLimits, VISION_DEFAULT_CONCURRENCY, VISION_MAX_CONCURRENCY, VISION_SLOW_THRESHOLD_MS, type ValidationReport, type VercelToolSpec, type VerifyResult, type ViewerImageFact, type VisionBatchOptions, type VisionBatchOutcome, type VisionDelegate, type VisionDelegateImage, type VisionDelegateRequest, type VisionDelegateResult, type WebSkillApi, WebSkillError, type WebSkillErrorCode, WebSkillRuntime, type WebSkillRuntimeDeps, XLSX_MIME, XLSX_UNSUPPORTED, type XlsxTextExtractor, type XlsxUnsupportedFeature, appendBehaviorRecords, applyUserProfileImport, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteBinary, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, clampVisionConcurrency, classifyAttachment, computeDigest, createScriptContext, createWebSkillApi, detectSkillArchiveShape, detectSkillArchiveShapeFromFs, diffUserProfile, encodeSpreadsheet, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, extractedDocumentFormat, findUnpairedToolCalls, formatAttachmentText, formatSkillScriptManifest, fromVercelResult, fromVercelStreamPart, interruptedToolResult, isAtomicTempPath, isBytesOnlyDocument, isNetworkAllowed, isUnsupportedRunSnapshot, isValidSkillName, jsonRenderer, keyIdOf, listSkillScripts, mergeCatalogEntries, mergeProfileEntries, messageOf, networkPolicyLibSource, networkUrlHost, normalizeErrorCode, normalizePath, normalizeToolContent, normalizeToolError, parseBridgeRequest, parseSkillMarkdown, parseSkillPackManifest, parseUserProfileExport, partsToText, readBehaviorRecords, readProfileEntries, readResponseWithLimit, readSkillSignature, readUserProfile, redactToolStepArgs, refineUserProfile, renderAvailableSkillsXml, renderCatalogJson, renderUserProfileContext, resolveArchiveLimits, resolveInsideRoot, resolveToolName, runVisionBatch, sampleBehaviorRecords, sanitizeUntrustedLine, schemaSourceLabel, schemaToForm, scriptToolName, sealToolCallPairs, signSkill, signaturePayloadBytes, stripArchiveRoot, summarizeRunUsage, summarizeToolCalls, textParts, toBase64, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
package/dist/index.js
CHANGED
|
@@ -1012,7 +1012,7 @@ var FsToolStepStore = class {
|
|
|
1012
1012
|
* Version of the published `@webskill/sdk` package, injected at build time.
|
|
1013
1013
|
* @stable
|
|
1014
1014
|
*/
|
|
1015
|
-
const SDK_VERSION = "0.
|
|
1015
|
+
const SDK_VERSION = "0.26.0";
|
|
1016
1016
|
|
|
1017
1017
|
//#endregion
|
|
1018
1018
|
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_FIELD_TYPES, ASK_USER_INPUT_SCHEMA, ASK_USER_MAX_FIELDS, ASK_USER_TOOL, ASK_USER_TOOL_NAME, ATOMIC_TMP_SUFFIX_PATTERN, ATTACHMENT_TEXT_LIMIT, AgentLoop, AnthropicClient, BEHAVIOR_RECORDS_KEY, BINARY_EXTENSIONS, BYTES_ONLY_DOCUMENT_MIME, CapabilityApproval, DEFAULT_ARCHIVE_LIMITS, DEFAULT_LOOP_LIMITS, DEFAULT_MAX_DATA_SOURCE_BYTES, DEFAULT_MAX_DOCUMENT_BYTES, DEFAULT_MAX_DOCUMENT_TEXT_BYTES, DEFAULT_MAX_UPLOAD_FILE_BYTES, DEFAULT_USER_PROFILE_LIMITS, DOCX_MIME, DWG_MIME_TYPES, EMPTY_USER_PROFILE, EventBus, FILE_MIME_TYPES, FS_SESSION_PAGE_SIZE, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FsRunTraceStore, FsSessionStore, FsToolStepStore, FsTrustedKeyStore, FullDisclosureRouter, GoogleGenAiClient, HookRunner, IMAGE_MIME_TYPES, MANIFEST_EXCLUDED_FILES, MAX_TOOL_STEP_ARG_BYTES, MemoryFS, OpenAiCompatibleClient, PPTX_MIME, ProgressiveRouter, READ_LINKED_DOCUMENT_TOOL, READ_LINKED_DOCUMENT_TOOL_NAME, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, RUN_TRACE_SCHEMA_VERSION, SDK_VERSION, SENSITIVE_ANNOTATION, SESSION_SCHEMA_VERSION, SIGNATURE_SCHEMA_VERSION, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_PACK_FILE, SKILL_SIGNATURE_FILE, SPREADSHEET_EXTENSION, SPREADSHEET_LIMITS, SPREADSHEET_MIME_TYPE, SUPPORTED_DOCUMENT_MIME, SerializingMemoryStore, SkillDiscovery, SkillReader, TEXT_BUDGETED_CONTENT_TYPES, TEXT_EXTENSIONS, TraceRecorder, UNSUPPORTED_DOCUMENT_MESSAGE, UNTRUSTED_LINE_LIMIT, UPLOAD_FILES_UNAVAILABLE, USER_PROFILE_EXPORT_VERSION, USER_PROFILE_KEY, USER_PROFILE_NO_INVENTION_RULE, USER_PROFILE_PROMPT_HEADER, USER_PROFILE_REFINE_PROMPT, VISION_DEFAULT_CONCURRENCY, VISION_MAX_CONCURRENCY, VISION_SLOW_THRESHOLD_MS, WebSkillError, WebSkillRuntime, XLSX_MIME, XLSX_UNSUPPORTED, appendBehaviorRecords, applyUserProfileImport, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteBinary, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, clampVisionConcurrency, classifyAttachment, computeDigest, createScriptContext, createWebSkillApi, detectSkillArchiveShape, detectSkillArchiveShapeFromFs, diffUserProfile, encodeSpreadsheet, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, extractedDocumentFormat, findUnpairedToolCalls, formatAttachmentText, formatSkillScriptManifest, fromVercelResult, fromVercelStreamPart, interruptedToolResult, isAtomicTempPath, isBytesOnlyDocument, isNetworkAllowed, isUnsupportedRunSnapshot, isValidSkillName, jsonRenderer, keyIdOf, listSkillScripts, mergeCatalogEntries, mergeProfileEntries, messageOf, networkPolicyLibSource, networkUrlHost, normalizeErrorCode, normalizePath, normalizeToolContent, normalizeToolError, parseBridgeRequest, parseSkillMarkdown, parseSkillPackManifest, parseUserProfileExport, partsToText, readBehaviorRecords, readProfileEntries, readResponseWithLimit, readSkillSignature, readUserProfile, redactToolStepArgs, refineUserProfile, renderAvailableSkillsXml, renderCatalogJson, renderUserProfileContext, resolveArchiveLimits, resolveInsideRoot, resolveToolName, runVisionBatch, sampleBehaviorRecords, sanitizeUntrustedLine, schemaSourceLabel, schemaToForm, scriptToolName, sealToolCallPairs, signSkill, signaturePayloadBytes, stripArchiveRoot, summarizeRunUsage, summarizeToolCalls, textParts, toBase64, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
package/dist/mcp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { X as JsonSchema, _ as LlmToolSpec, _t as SkillDocument, ht as SkillCatalogEntry } from "./types-CpDRZ0rA-CFQ-vdKz.js";
|
|
2
|
-
import { B as ExternalToolSource, Hr as mergeCatalogEntries, Mn as ToolDisclosure, Pn as ToolResult, z as ExternalSkillProvider } from "./index-
|
|
2
|
+
import { B as ExternalToolSource, Hr as mergeCatalogEntries, Mn as ToolDisclosure, Pn as ToolResult, z as ExternalSkillProvider } from "./index-DRkI7M3z.js";
|
|
3
3
|
import { Transport } from "@modelcontextprotocol/sdk/shared/transport.js";
|
|
4
4
|
import { JSONRPCMessage } from "@modelcontextprotocol/sdk/types.js";
|
|
5
5
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
package/dist/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as FileStat, It as VerifyResult, K as FileSystemProvider, N as ArchiveLimits, Ot as SkillsLockfile, Pt as UnsignedPolicy, S as UiBridge, St as SkillManifest, X as JsonSchema, at as SKILL_MANIFEST_FILE, b as RenderResultRequest, c as InteractionResponse, it as SKILLS_LOCKFILE, jt as TrustedKeyStore, q as FileWriteStream, s as InteractionRequest, ut as SignatureAuditSink, vt as SkillInstallSource, xt as SkillManagerPort } from "./types-CpDRZ0rA-CFQ-vdKz.js";
|
|
2
|
-
import { $t as SchemaInferer, H as FsArtifactStore, Pn as ToolResult, Tr as createScriptContext, U as FsMemoryStore, b as BridgeCapabilities, en as ScriptExecutionContext, gr as WebSkillRuntimeDeps, hr as WebSkillRuntime, jn as ToolDefinition, m as ApprovalScope, tn as ScriptExecutor, ut as NetworkPolicy } from "./index-
|
|
2
|
+
import { $t as SchemaInferer, H as FsArtifactStore, Pn as ToolResult, Tr as createScriptContext, U as FsMemoryStore, b as BridgeCapabilities, en as ScriptExecutionContext, gr as WebSkillRuntimeDeps, hr as WebSkillRuntime, jn as ToolDefinition, m as ApprovalScope, tn as ScriptExecutor, ut as NetworkPolicy } from "./index-DRkI7M3z.js";
|
|
3
3
|
import { a as AuditLog, f as CandidateSkill, h as CandidateStore, r as ApprovalPolicy, x as SkillVersionStore } from "./skillVersionStore-S4_HJ_Fl-Ds97pwm5.js";
|
|
4
4
|
import { n as LlmEnvConfig, s as probeLlmCapabilities, t as LlmCapabilities } from "./env-AK3cSMEA-Dli6QU5E.js";
|
|
5
5
|
import { Readable, Writable } from "node:stream";
|
package/dist/ui-react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as UiSpecActionCapability, D as UiSpecSnapshot, Nt as UiSpecNode, O as UiSurfaceActionRequest, S as UiBridge, T as UiSpecEvent, b as RenderResultRequest, c as InteractionResponse, k as UiSurfaceActionResponse, s as InteractionRequest, w as UiSpecDrafts } from "./types-CpDRZ0rA-CFQ-vdKz.js";
|
|
2
|
-
import { P as DocumentSurfacePort } from "./index-
|
|
3
|
-
import { L as InteractionSpecLabels, X as SurfaceFormTexts, Z as SurfaceHostControlTexts, v as ChartColors, y as ChartFontSizes } from "./index-
|
|
2
|
+
import { P as DocumentSurfacePort } from "./index-DRkI7M3z.js";
|
|
3
|
+
import { L as InteractionSpecLabels, X as SurfaceFormTexts, Z as SurfaceHostControlTexts, v as ChartColors, y as ChartFontSizes } from "./index-0R-7x8Rp.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import React$1, { ComponentType, ReactNode } from "react";
|
|
6
6
|
import "react/jsx-runtime";
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Nt as UiSpecNode } from "./types-CpDRZ0rA-CFQ-vdKz.js";
|
|
2
|
-
import { Cr as buildRenderResult } from "./index-
|
|
3
|
-
import { $ as UI_CATALOG_PROMPT_BUDGET_BYTES, $t as mountEchart, A as DocumentComponentName, At as a2uiComponentSchema, B as LoadedOpenUiPeers, Bt as createUiCatalogToolSource, C as DEFAULT_CHART_COLORS, Cn as uiPreset, Ct as ViewerComponentsHandle, D as DEFAULT_SURFACE_HOST_CONTROL_TEXTS, Dt as WEBSKILL_SURFACE_ACTION, E as DEFAULT_SURFACE_FORM_TEXTS, Et as WEBSKILL_STYLES_CSS, F as FieldOption, Ft as chartToTable, G as PLANNED_INCREMENT, Gt as fromA2uiSurfaceAction, H as NormalizedColumnWidths, Ht as ensureStyles, I as FormModel, It as collectFormScopes, J as SPEC_TABLE_MIN_COLUMN_WIDTH, Jt as gaugePercent, K as RENDER_UI_TOOL, Kt as fromUiSurfaceActionDispatch, L as InteractionSpecLabels, Lt as collectScopedValues, M as EvaluateFieldConditionOptions, Mt as applySuggestion, N as FieldCondition, Nt as buildA2uiCatalogDefinition, O as DESCRIBE_UI_PRESET_TOOL, Ot as WebFormBridge, P as FieldConditionResult, Pt as chartSpecFromProps, Q as UI_CATALOG_GROUPS, Qt as loadWebSkillLitCatalog, R as InteractionTexts, Rt as collectSpecActions, S as ControlModel, Sn as uiCatalog, St as VercelUiBridge, T as DEFAULT_INTERACTION_TEXTS, Tt as WEBSKILL_A2UI_CATALOG_ID, U as OpenUiRendererProps, Ut as evaluateFieldCondition, V as MAX_CONDITION_DEPTH, Vt as defineUiCatalog, W as OpenUiRuntime, Wt as fromA2uiSpecAction, X as SurfaceFormTexts, Xt as interactionToUiSpec, Y as SpecColumnMeta, Yt as interactionToFormModel, Z as SurfaceHostControlTexts, Zt as loadOpenUiPeers, _ as CHART_PALETTE, _n as toEchartsOption, _t as VERCEL_INTERACTION_TOOL_NAME, a as A2UI_SURFACE_ACTION, an as renderMiniChart, at as UiCatalogPromptOptions, b as CollectedValues, bn as toUiSurfaceActionDispatch, bt as VIEWER_PROPS_ATTR, c as A2uiCatalogDefinition, cn as resolveChartColors, ct as UiFormScope, d as A2uiMessage, dn as resolveInteractionTexts, dt as UiSpecDegradation, en as mountViewerComponents, et as UI_PRESETS, f as A2uiSpecActionEvent, fn as resolveSurfaceFormTexts, ft as UiSpecDegradationCode, g as CATALOG_SCHEMA_MAX, gn as toA2uiSurfaceAction, gt as UiSurfaceActionDispatch, h as CATALOG_PROMPT_MAX, hn as toA2uiSpecMessages, ht as UiSpecValidation, i as A2UI_SPEC_FORM_PATH, in as renderBlocks, it as UiCatalogInput, j as EchartHandle, jt as a2uiComponentShapes, k as DOCUMENT_COMPONENTS, kt as ZodRuntime, l as A2uiCatalogHandle, ln as resolveChartFontSizes, lt as UiPreset, m as CATALOG_BUDGET_STAGE, mn as shapeInteractionValue, mt as UiSpecSanitization, n as A2UI_COMMON_TYPES, nn as normalizeFieldOptions, nt as UiActionDef, o as A2UI_VERSION, on as renderMiniMarkdown, ot as UiCatalogToolSourceOptions, p as A2uiSpecMessageOptions, pn as resolveSurfaceHostControlTexts, pt as UiSpecIssue, q as SPEC_TABLE_MIN_COLUMN_VAR, qt as fromVercelToolResult, r as A2UI_SPEC_ACTION, rn as qualifyFieldName, rt as UiCatalog, s as A2uiCatalogComponent, sn as renderRenderResult, st as UiComponentDef, t as A2UI_BASIC_CATALOG_ID, tn as normalizeColumnWidths, tt as UI_PRESET_NAMES, u as A2uiComponentShape, un as resolveColumnWidths, ut as UiPresetName, v as ChartColors, vn as toJsonRenderSpec, vt as VIEWER_COMPONENT_ATTR, w as DEFAULT_CHART_FONT_SIZES, wt as ViewerComponentsOptions, x as ColumnWidthsRejection, xn as toVercelToolInvocation, xt as VercelToolInvocation, y as ChartFontSizes, yn as toOpenUiSpecLang, yt as VIEWER_FALLBACK_ATTR, z as JsonRenderSpec, zt as collectValues } from "./index-
|
|
2
|
+
import { Cr as buildRenderResult } from "./index-DRkI7M3z.js";
|
|
3
|
+
import { $ as UI_CATALOG_PROMPT_BUDGET_BYTES, $t as mountEchart, A as DocumentComponentName, At as a2uiComponentSchema, B as LoadedOpenUiPeers, Bt as createUiCatalogToolSource, C as DEFAULT_CHART_COLORS, Cn as uiPreset, Ct as ViewerComponentsHandle, D as DEFAULT_SURFACE_HOST_CONTROL_TEXTS, Dt as WEBSKILL_SURFACE_ACTION, E as DEFAULT_SURFACE_FORM_TEXTS, Et as WEBSKILL_STYLES_CSS, F as FieldOption, Ft as chartToTable, G as PLANNED_INCREMENT, Gt as fromA2uiSurfaceAction, H as NormalizedColumnWidths, Ht as ensureStyles, I as FormModel, It as collectFormScopes, J as SPEC_TABLE_MIN_COLUMN_WIDTH, Jt as gaugePercent, K as RENDER_UI_TOOL, Kt as fromUiSurfaceActionDispatch, L as InteractionSpecLabels, Lt as collectScopedValues, M as EvaluateFieldConditionOptions, Mt as applySuggestion, N as FieldCondition, Nt as buildA2uiCatalogDefinition, O as DESCRIBE_UI_PRESET_TOOL, Ot as WebFormBridge, P as FieldConditionResult, Pt as chartSpecFromProps, Q as UI_CATALOG_GROUPS, Qt as loadWebSkillLitCatalog, R as InteractionTexts, Rt as collectSpecActions, S as ControlModel, Sn as uiCatalog, St as VercelUiBridge, T as DEFAULT_INTERACTION_TEXTS, Tt as WEBSKILL_A2UI_CATALOG_ID, U as OpenUiRendererProps, Ut as evaluateFieldCondition, V as MAX_CONDITION_DEPTH, Vt as defineUiCatalog, W as OpenUiRuntime, Wt as fromA2uiSpecAction, X as SurfaceFormTexts, Xt as interactionToUiSpec, Y as SpecColumnMeta, Yt as interactionToFormModel, Z as SurfaceHostControlTexts, Zt as loadOpenUiPeers, _ as CHART_PALETTE, _n as toEchartsOption, _t as VERCEL_INTERACTION_TOOL_NAME, a as A2UI_SURFACE_ACTION, an as renderMiniChart, at as UiCatalogPromptOptions, b as CollectedValues, bn as toUiSurfaceActionDispatch, bt as VIEWER_PROPS_ATTR, c as A2uiCatalogDefinition, cn as resolveChartColors, ct as UiFormScope, d as A2uiMessage, dn as resolveInteractionTexts, dt as UiSpecDegradation, en as mountViewerComponents, et as UI_PRESETS, f as A2uiSpecActionEvent, fn as resolveSurfaceFormTexts, ft as UiSpecDegradationCode, g as CATALOG_SCHEMA_MAX, gn as toA2uiSurfaceAction, gt as UiSurfaceActionDispatch, h as CATALOG_PROMPT_MAX, hn as toA2uiSpecMessages, ht as UiSpecValidation, i as A2UI_SPEC_FORM_PATH, in as renderBlocks, it as UiCatalogInput, j as EchartHandle, jt as a2uiComponentShapes, k as DOCUMENT_COMPONENTS, kt as ZodRuntime, l as A2uiCatalogHandle, ln as resolveChartFontSizes, lt as UiPreset, m as CATALOG_BUDGET_STAGE, mn as shapeInteractionValue, mt as UiSpecSanitization, n as A2UI_COMMON_TYPES, nn as normalizeFieldOptions, nt as UiActionDef, o as A2UI_VERSION, on as renderMiniMarkdown, ot as UiCatalogToolSourceOptions, p as A2uiSpecMessageOptions, pn as resolveSurfaceHostControlTexts, pt as UiSpecIssue, q as SPEC_TABLE_MIN_COLUMN_VAR, qt as fromVercelToolResult, r as A2UI_SPEC_ACTION, rn as qualifyFieldName, rt as UiCatalog, s as A2uiCatalogComponent, sn as renderRenderResult, st as UiComponentDef, t as A2UI_BASIC_CATALOG_ID, tn as normalizeColumnWidths, tt as UI_PRESET_NAMES, u as A2uiComponentShape, un as resolveColumnWidths, ut as UiPresetName, v as ChartColors, vn as toJsonRenderSpec, vt as VIEWER_COMPONENT_ATTR, w as DEFAULT_CHART_FONT_SIZES, wt as ViewerComponentsOptions, x as ColumnWidthsRejection, xn as toVercelToolInvocation, xt as VercelToolInvocation, y as ChartFontSizes, yn as toOpenUiSpecLang, yt as VIEWER_FALLBACK_ATTR, z as JsonRenderSpec, zt as collectValues } from "./index-0R-7x8Rp.js";
|
|
4
4
|
export { A2UI_BASIC_CATALOG_ID, A2UI_COMMON_TYPES, A2UI_SPEC_ACTION, A2UI_SPEC_FORM_PATH, A2UI_SURFACE_ACTION, A2UI_VERSION, type A2uiCatalogComponent, type A2uiCatalogDefinition, type A2uiCatalogHandle, type A2uiComponentShape, type A2uiMessage, type A2uiSpecActionEvent, type A2uiSpecMessageOptions, CATALOG_BUDGET_STAGE, CATALOG_PROMPT_MAX, CATALOG_SCHEMA_MAX, CHART_PALETTE, type ChartColors, type ChartFontSizes, type CollectedValues, type ColumnWidthsRejection, type ControlModel, DEFAULT_CHART_COLORS, DEFAULT_CHART_FONT_SIZES, DEFAULT_INTERACTION_TEXTS, DEFAULT_SURFACE_FORM_TEXTS, DEFAULT_SURFACE_HOST_CONTROL_TEXTS, DESCRIBE_UI_PRESET_TOOL, DOCUMENT_COMPONENTS, type DocumentComponentName, type EchartHandle, type EvaluateFieldConditionOptions, type FieldCondition, type FieldConditionResult, type FieldOption, type FormModel, type InteractionSpecLabels, type InteractionTexts, type JsonRenderSpec, type LoadedOpenUiPeers, MAX_CONDITION_DEPTH, type NormalizedColumnWidths, type OpenUiRendererProps, type OpenUiRuntime, PLANNED_INCREMENT, RENDER_UI_TOOL, SPEC_TABLE_MIN_COLUMN_VAR, SPEC_TABLE_MIN_COLUMN_WIDTH, type SpecColumnMeta, type SurfaceFormTexts, type SurfaceHostControlTexts, UI_CATALOG_GROUPS, UI_CATALOG_PROMPT_BUDGET_BYTES, UI_PRESETS, UI_PRESET_NAMES, type UiActionDef, type UiCatalog, type UiCatalogInput, type UiCatalogPromptOptions, type UiCatalogToolSourceOptions, type UiComponentDef, type UiFormScope, type UiPreset, type UiPresetName, type UiSpecDegradation, type UiSpecDegradationCode, type UiSpecIssue, type UiSpecNode, type UiSpecSanitization, type UiSpecValidation, type UiSurfaceActionDispatch, VERCEL_INTERACTION_TOOL_NAME, VIEWER_COMPONENT_ATTR, VIEWER_FALLBACK_ATTR, VIEWER_PROPS_ATTR, type VercelToolInvocation, VercelUiBridge, type ViewerComponentsHandle, type ViewerComponentsOptions, WEBSKILL_A2UI_CATALOG_ID, WEBSKILL_STYLES_CSS, WEBSKILL_SURFACE_ACTION, WebFormBridge, type ZodRuntime, a2uiComponentSchema, a2uiComponentShapes, applySuggestion, buildA2uiCatalogDefinition, buildRenderResult, chartSpecFromProps, chartToTable, collectFormScopes, collectScopedValues, collectSpecActions, collectValues, createUiCatalogToolSource, defineUiCatalog, ensureStyles, evaluateFieldCondition, fromA2uiSpecAction, fromA2uiSurfaceAction, fromUiSurfaceActionDispatch, fromVercelToolResult, gaugePercent, interactionToFormModel, interactionToUiSpec, loadOpenUiPeers, loadWebSkillLitCatalog, mountEchart, mountViewerComponents, normalizeColumnWidths, normalizeFieldOptions, qualifyFieldName, renderBlocks, renderMiniChart, renderMiniMarkdown, renderRenderResult, resolveChartColors, resolveChartFontSizes, resolveColumnWidths, resolveInteractionTexts, resolveSurfaceFormTexts, resolveSurfaceHostControlTexts, shapeInteractionValue, toA2uiSpecMessages, toA2uiSurfaceAction, toEchartsOption, toJsonRenderSpec, toOpenUiSpecLang, toUiSurfaceActionDispatch, toVercelToolInvocation, uiCatalog, uiPreset };
|