@webskill/sdk 0.28.1 → 0.29.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 +6 -7
- package/dist/{approval-5BmspsRi.js → approval-DnUytrkq.js} +6 -1
- package/dist/browser.d.ts +9 -9
- package/dist/browser.js +130 -38
- package/dist/{geometry-BXMPNuM6.js → geometry-QmrkJw1_.js} +13 -2
- package/dist/governance.d.ts +3 -3
- package/dist/{index-CkauSvus.d.ts → index-B5zHZDNA.d.ts} +3 -3
- package/dist/{index-DJeYqzlE.d.ts → index-C3t1jKAs.d.ts} +2 -2
- package/dist/{index-DU8sKyQq.d.ts → index-Cngzg2WS.d.ts} +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -6
- package/dist/{linkedDocument-0iiVPd5t.js → linkedDocument-GE-VV_Gj.js} +112 -2
- package/dist/mcp.d.ts +2 -2
- package/dist/node.d.ts +3 -3
- package/dist/node.js +2 -2
- package/dist/{skillVersionStore-S4_HJ_Fl-DzZM_UIw.d.ts → skillVersionStore-S4_HJ_Fl-AiNsSSdO.d.ts} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{types-wKp3YBSM-167azx1H.d.ts → types-wKp3YBSM-D7w-ZbsB.d.ts} +2 -1
- package/dist/ui-react.d.ts +3 -3
- package/dist/ui-react.js +5409 -471
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/{webSkillApi-rX2e3SVB.js → webSkillApi-TeWPPFDn.js} +1 -1
- package/package.json +2 -1
- package/dist/kind-Dc8x0HWz.js +0 -110
package/dist/agent.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { D as DEFAULT_MAX_DATA_SOURCE_BYTES } from "./index-
|
|
2
|
-
import { $ as DownloadedFileEntry, $i as withDelegationOrigin, $n as Size, $r as TodoToolSourceOptions, $t as PERCEPTION_PAGING_DEFAULTS, A as DataSourceRecord, Ai as createTodoToolSource, An as PerceptionAuditSink, Ar as TabWorksetToolSourceOptions, At as FILL_TEMPLATE_TOOL, B as DocumentFileSource, Bi as isStreamingTableWorkbook, Bn as QUERY_TABLE_TOOL, Br as TemplateImageBytes, Bt as LIST_PAGE_TABS_TOOL, C as DataSourceCandidateRecord, Ci as createPagePerceptionToolSource, Cn as ParentBudget, Cr as TAB_WORKSET_SYSTEM_PROMPT, Ct as DwgView, D as DataSourcePolicy, Di as createTabWorksetToolSource, Dn as PdfTextQuality, Dr as TabWorksetPolicy, Dt as EMU_PER_TWIP, E as DataSourceKind, Ei as createSpreadsheetToolSource, En as PdfPageImage, Er as TabAdmission, Et as EMU_PER_POINT, F as DelegationRequest, Fi as formatCellAddress, Fn as PerceptionScope, Fr as TableWorkbook, Ft as GeneratedSkillDraft, G as DocumentToolSourceOptions, Gi as profileTable, Gn as RemoteImageFetch, Gr as TemplateTableCellSkeleton, Gt as OpenedTabSignal, H as DocumentImageRole, Hi as parseCellAddress, Hn as QueryableTableWorkbook, Hr as TemplateParagraphSkeleton, Ht as MAX_DIGIT_WIDTH, I as DelegationResult, Ii as frameLabel, In as PerceptionScopeInput, Ir as TemplateCellSkeleton, It as HttpDataSourceOptions, J as DocxTemplateEngine, Ji as sniffDocumentFormat, Jn as RemoteImageToolSourceOptions, Jr as TodoItem, Jt as PAGE_ACTION_TOOL, K as DocxDocumentContent, Ki as rangeContains, Kn as RemoteImageFetchFailure, Kr as TemplateToolSourceOptions, Kt as PAGE_ACTION_KINDS, L as DelegationToolSourceOptions, Li as frameSteps, Ln as PptxDocumentContent, Lr as TemplateFileSource, Lt as INSPECT_TEMPLATE_TOOL, M as DelegationBudget, Mi as dwgPickView, Mn as PerceptionPagingBudget, Mr as TableQueryToolSourceOptions, Mt as FrameNote, N as DelegationOrchestrator, Ni as dwgViewsOf, Nn as PerceptionRecord, Nr as TableSheet, Nt as FrameScope, O as DataSourcePolicyOptions, Oi as createTableQueryToolSource, On as PerceivedImage, Or as TabWorksetPolicyOptions, Ot as EXPORT_SPREADSHEET_TOOL, P as DelegationOrchestratorOptions, Pi as fitWithin, Pn as PerceptionResult, Pr as TableSource, Pt as GENERATE_SKILL_TOOL, Q as DownloadedFileConsent, Qi as toFrameScopes, Qn as ScrollDirection, Qr as TodoStore, Qt as PERCEIVE_PAGE_TOOL, R as DocumentBlock, Ri as isPdfTextTrustworthy, Rn as PptxDocumentReader, Rr as TemplateFillRejection, Rt as ImageCaptureBudget, S as DataSourceCandidatePolicyOptions, Si as createPageImageToolSource, Sn as PagePerceptionToolSourceOptions, Sr as TAB_WORKSET_MIN_MAX, St as DwgUnits, T as DataSourceDef, Ti as createSkillGenerationToolSource, Tn as PdfDocumentReader, Tr as TODO_SYSTEM_PROMPT, Tt as EMU_PER_PIXEL, U as DocumentReadBudget, Ui as parseCellRange, Un as READ_DOCUMENT_TOOL, Ur as TemplateSheetBlanks, Ut as NestedFrameRef, V as DocumentFormat, Vi as measurePdfTextQuality, Vn as QueryTableView, Vr as TemplateImageResolver, Vt as MANAGE_TODO_TOOL, W as DocumentReadMode, Wi as profileStreamingTable, Wn as READ_DOWNLOADED_FILE_TOOL, Wr as TemplateSheetSkeleton, Wt as OpenedPageInfo, X as DocxTemplateSkeleton, Xi as takesImage, Xn as SCROLL_DIRECTIONS, Xr as TodoListener, Xt as PDF_GARBLED_RATIO, Y as DocxTemplateFillSpec, Yi as summarizeStreamingWorkbook, Yn as RenderedImage, Yr as TodoList, Yt as PAGE_DOCUMENT_REF, Z as DownloadedFileAction, Zi as toActionFrameScopes, Zn as SKILL_GENERATION_SYSTEM_PROMPT, Zr as TodoStatus, Zt as PDF_LARGE_IMAGE_RATIO, _ as DWG_MODEL_VIEW_ID, _i as createDocumentToolSource, _n as PageImageResult, _r as SubAgentRunInput, _t as DwgOmission, a as ActionTabWindow, ai as XlsxFillOutcome, an as PageActionPolicy, ar as SkillGenerationPolicy, at as DownloadedFileRecord, b as DataSourceCandidateAuditSink, bi as createHttpDataSourceTransport, bn as PagePerceptionPolicyOptions, br as TAB_WORKSET_DEFAULT_MAX, bt as DwgProjection, c as CellAddress, ci as XlsxTemplateEngine, cn as PageActionRequest, cr as SkillGeneratorOptions, ct as DwgComponent, d as DELEGATE_TASK_TOOL, di as asReadMode, dn as PageActionTarget, dr as SpreadsheetToolSourceOptions, dt as DwgEntity, ei as VIEW_DWG_TOOL, en as PERCEPTION_SYSTEM_PROMPT, er as SkillAttachmentBytes, et as DownloadedFileListing, f as DELEGATION_SYSTEM_PROMPT, fi as buildStreamingView, fn as PageActionToolSourceOptions, fr as StreamingTableMeta, ft as DwgFill, g as DOWNLOAD_WAIT_MIN_MS, gi as createDelegationToolSource, gn as PageImageFailure, gr as StreamingTableWorkbook, gt as DwgLoadedDrawing, h as DOWNLOAD_WAIT_MAX_MS, hi as columnWidthToPixels, hn as PageImageCapture, hr as StreamingTableView, ht as DwgLayer, i as ActionTabWatcher, ii as XlsxDocumentReader, in as PageActionOutcome, ir as SkillGenerationOutcome, it as DownloadedFileReader, j as DataSourceTransport, ji as defersImage, jn as PerceptionCaptureOptions, jr as TableBinarySource, jt as FOCUS_PAGE_TAB_TOOL, k as DataSourceProvenance, ki as createTemplateToolSource, kn as PerceivedNode, kr as TabWorksetPort, kt as FETCH_REMOTE_IMAGE_TOOL, l as CellRange, li as XlsxTemplateFillSpec, ln as PageActionScope, lr as SkillTraceEvidence, lt as DwgDocumentContent, m as DOWNLOAD_WAIT_DEFAULT_MS, mi as clampWorksetMax, mn as PageAuditSink, mr as StreamingTableSheet, mt as DwgGeometry, n as ActionDownloadWindow, ni as WorksetTabView, nn as PageActionExecutor, nr as SkillCandidateSink, nt as DownloadedFilePolicyOptions, o as CAPTURE_PAGE_IMAGE_TOOL, oi as XlsxSheetContent, on as PageActionPolicyOptions, or as SkillGenerationToolSourceOptions, ot as DownloadedFileToolSourceOptions, p as DOCUMENT_READ_BUDGET, pi as clampDownloadWaitMs, pn as PageActionUi, pr as StreamingTableRow, pt as DwgFont, q as DocxDocumentReader, qi as readImageSize, qn as RemoteImageResult, qr as TodoEvent, qt as PAGE_ACTION_SYSTEM_PROMPT, r as ActionFrameScope, ri as XlsxDocumentContent, rn as PageActionKind, rr as SkillGenerationMessages, rt as DownloadedFileReadResult, s as CLOSE_PAGE_TAB_TOOL, si as XlsxTableReader, sn as PageActionRecord, sr as SkillGenerator, st as DwgBounds, t as ActionDownloadWatcher, ti as WorksetTab, tn as PageActionConsent, tr as SkillBinaryPayload, tt as DownloadedFilePolicy, u as ConsentUi, ui as XlsxTemplateSkeleton, un as PageActionScopeInput, ur as SkillTraceEvidenceStep, ut as DwgDocumentReader, v as DataSourceAuditSink, vi as createDownloadedFileToolSource, vn as PageImageToolSourceOptions, vr as SubAgentRunner, vt as DwgPoint, w as DataSourceCandidateStore, wi as createRemoteImageToolSource, wn as PdfDocumentHandle, wr as TEMPLATE_INSPECT_BUDGET, wt as DwgViewport, x as DataSourceCandidatePolicy, xi as createPageActionToolSource, xn as PagePerceptionReader, xr as TAB_WORKSET_MAX_MAX, xt as DwgToolSourceOptions, y as DataSourceCandidate, yi as createDwgToolSource, yn as PagePerceptionPolicy, yr as SubtreeRejection, yt as DwgProjectedDrawing, z as DocumentFileBytes, zi as isRangeTopLeft, zn as PptxSlideContent, zr as TemplateFillWarning, zt as LIST_DOWNLOADED_FILES_TOOL } from "./index-
|
|
1
|
+
import { D as DEFAULT_MAX_DATA_SOURCE_BYTES } from "./index-Cngzg2WS.js";
|
|
2
|
+
import { $ as DownloadedFileEntry, $i as withDelegationOrigin, $n as Size, $r as TodoToolSourceOptions, $t as PERCEPTION_PAGING_DEFAULTS, A as DataSourceRecord, Ai as createTodoToolSource, An as PerceptionAuditSink, Ar as TabWorksetToolSourceOptions, At as FILL_TEMPLATE_TOOL, B as DocumentFileSource, Bi as isStreamingTableWorkbook, Bn as QUERY_TABLE_TOOL, Br as TemplateImageBytes, Bt as LIST_PAGE_TABS_TOOL, C as DataSourceCandidateRecord, Ci as createPagePerceptionToolSource, Cn as ParentBudget, Cr as TAB_WORKSET_SYSTEM_PROMPT, Ct as DwgView, D as DataSourcePolicy, Di as createTabWorksetToolSource, Dn as PdfTextQuality, Dr as TabWorksetPolicy, Dt as EMU_PER_TWIP, E as DataSourceKind, Ei as createSpreadsheetToolSource, En as PdfPageImage, Er as TabAdmission, Et as EMU_PER_POINT, F as DelegationRequest, Fi as formatCellAddress, Fn as PerceptionScope, Fr as TableWorkbook, Ft as GeneratedSkillDraft, G as DocumentToolSourceOptions, Gi as profileTable, Gn as RemoteImageFetch, Gr as TemplateTableCellSkeleton, Gt as OpenedTabSignal, H as DocumentImageRole, Hi as parseCellAddress, Hn as QueryableTableWorkbook, Hr as TemplateParagraphSkeleton, Ht as MAX_DIGIT_WIDTH, I as DelegationResult, Ii as frameLabel, In as PerceptionScopeInput, Ir as TemplateCellSkeleton, It as HttpDataSourceOptions, J as DocxTemplateEngine, Ji as sniffDocumentFormat, Jn as RemoteImageToolSourceOptions, Jr as TodoItem, Jt as PAGE_ACTION_TOOL, K as DocxDocumentContent, Ki as rangeContains, Kn as RemoteImageFetchFailure, Kr as TemplateToolSourceOptions, Kt as PAGE_ACTION_KINDS, L as DelegationToolSourceOptions, Li as frameSteps, Ln as PptxDocumentContent, Lr as TemplateFileSource, Lt as INSPECT_TEMPLATE_TOOL, M as DelegationBudget, Mi as dwgPickView, Mn as PerceptionPagingBudget, Mr as TableQueryToolSourceOptions, Mt as FrameNote, N as DelegationOrchestrator, Ni as dwgViewsOf, Nn as PerceptionRecord, Nr as TableSheet, Nt as FrameScope, O as DataSourcePolicyOptions, Oi as createTableQueryToolSource, On as PerceivedImage, Or as TabWorksetPolicyOptions, Ot as EXPORT_SPREADSHEET_TOOL, P as DelegationOrchestratorOptions, Pi as fitWithin, Pn as PerceptionResult, Pr as TableSource, Pt as GENERATE_SKILL_TOOL, Q as DownloadedFileConsent, Qi as toFrameScopes, Qn as ScrollDirection, Qr as TodoStore, Qt as PERCEIVE_PAGE_TOOL, R as DocumentBlock, Ri as isPdfTextTrustworthy, Rn as PptxDocumentReader, Rr as TemplateFillRejection, Rt as ImageCaptureBudget, S as DataSourceCandidatePolicyOptions, Si as createPageImageToolSource, Sn as PagePerceptionToolSourceOptions, Sr as TAB_WORKSET_MIN_MAX, St as DwgUnits, T as DataSourceDef, Ti as createSkillGenerationToolSource, Tn as PdfDocumentReader, Tr as TODO_SYSTEM_PROMPT, Tt as EMU_PER_PIXEL, U as DocumentReadBudget, Ui as parseCellRange, Un as READ_DOCUMENT_TOOL, Ur as TemplateSheetBlanks, Ut as NestedFrameRef, V as DocumentFormat, Vi as measurePdfTextQuality, Vn as QueryTableView, Vr as TemplateImageResolver, Vt as MANAGE_TODO_TOOL, W as DocumentReadMode, Wi as profileStreamingTable, Wn as READ_DOWNLOADED_FILE_TOOL, Wr as TemplateSheetSkeleton, Wt as OpenedPageInfo, X as DocxTemplateSkeleton, Xi as takesImage, Xn as SCROLL_DIRECTIONS, Xr as TodoListener, Xt as PDF_GARBLED_RATIO, Y as DocxTemplateFillSpec, Yi as summarizeStreamingWorkbook, Yn as RenderedImage, Yr as TodoList, Yt as PAGE_DOCUMENT_REF, Z as DownloadedFileAction, Zi as toActionFrameScopes, Zn as SKILL_GENERATION_SYSTEM_PROMPT, Zr as TodoStatus, Zt as PDF_LARGE_IMAGE_RATIO, _ as DWG_MODEL_VIEW_ID, _i as createDocumentToolSource, _n as PageImageResult, _r as SubAgentRunInput, _t as DwgOmission, a as ActionTabWindow, ai as XlsxFillOutcome, an as PageActionPolicy, ar as SkillGenerationPolicy, at as DownloadedFileRecord, b as DataSourceCandidateAuditSink, bi as createHttpDataSourceTransport, bn as PagePerceptionPolicyOptions, br as TAB_WORKSET_DEFAULT_MAX, bt as DwgProjection, c as CellAddress, ci as XlsxTemplateEngine, cn as PageActionRequest, cr as SkillGeneratorOptions, ct as DwgComponent, d as DELEGATE_TASK_TOOL, di as asReadMode, dn as PageActionTarget, dr as SpreadsheetToolSourceOptions, dt as DwgEntity, ei as VIEW_DWG_TOOL, en as PERCEPTION_SYSTEM_PROMPT, er as SkillAttachmentBytes, et as DownloadedFileListing, f as DELEGATION_SYSTEM_PROMPT, fi as buildStreamingView, fn as PageActionToolSourceOptions, fr as StreamingTableMeta, ft as DwgFill, g as DOWNLOAD_WAIT_MIN_MS, gi as createDelegationToolSource, gn as PageImageFailure, gr as StreamingTableWorkbook, gt as DwgLoadedDrawing, h as DOWNLOAD_WAIT_MAX_MS, hi as columnWidthToPixels, hn as PageImageCapture, hr as StreamingTableView, ht as DwgLayer, i as ActionTabWatcher, ii as XlsxDocumentReader, in as PageActionOutcome, ir as SkillGenerationOutcome, it as DownloadedFileReader, j as DataSourceTransport, ji as defersImage, jn as PerceptionCaptureOptions, jr as TableBinarySource, jt as FOCUS_PAGE_TAB_TOOL, k as DataSourceProvenance, ki as createTemplateToolSource, kn as PerceivedNode, kr as TabWorksetPort, kt as FETCH_REMOTE_IMAGE_TOOL, l as CellRange, li as XlsxTemplateFillSpec, ln as PageActionScope, lr as SkillTraceEvidence, lt as DwgDocumentContent, m as DOWNLOAD_WAIT_DEFAULT_MS, mi as clampWorksetMax, mn as PageAuditSink, mr as StreamingTableSheet, mt as DwgGeometry, n as ActionDownloadWindow, ni as WorksetTabView, nn as PageActionExecutor, nr as SkillCandidateSink, nt as DownloadedFilePolicyOptions, o as CAPTURE_PAGE_IMAGE_TOOL, oi as XlsxSheetContent, on as PageActionPolicyOptions, or as SkillGenerationToolSourceOptions, ot as DownloadedFileToolSourceOptions, p as DOCUMENT_READ_BUDGET, pi as clampDownloadWaitMs, pn as PageActionUi, pr as StreamingTableRow, pt as DwgFont, q as DocxDocumentReader, qi as readImageSize, qn as RemoteImageResult, qr as TodoEvent, qt as PAGE_ACTION_SYSTEM_PROMPT, r as ActionFrameScope, ri as XlsxDocumentContent, rn as PageActionKind, rr as SkillGenerationMessages, rt as DownloadedFileReadResult, s as CLOSE_PAGE_TAB_TOOL, si as XlsxTableReader, sn as PageActionRecord, sr as SkillGenerator, st as DwgBounds, t as ActionDownloadWatcher, ti as WorksetTab, tn as PageActionConsent, tr as SkillBinaryPayload, tt as DownloadedFilePolicy, u as ConsentUi, ui as XlsxTemplateSkeleton, un as PageActionScopeInput, ur as SkillTraceEvidenceStep, ut as DwgDocumentReader, v as DataSourceAuditSink, vi as createDownloadedFileToolSource, vn as PageImageToolSourceOptions, vr as SubAgentRunner, vt as DwgPoint, w as DataSourceCandidateStore, wi as createRemoteImageToolSource, wn as PdfDocumentHandle, wr as TEMPLATE_INSPECT_BUDGET, wt as DwgViewport, x as DataSourceCandidatePolicy, xi as createPageActionToolSource, xn as PagePerceptionReader, xr as TAB_WORKSET_MAX_MAX, xt as DwgToolSourceOptions, y as DataSourceCandidate, yi as createDwgToolSource, yn as PagePerceptionPolicy, yr as SubtreeRejection, yt as DwgProjectedDrawing, z as DocumentFileBytes, zi as isRangeTopLeft, zn as PptxSlideContent, zr as TemplateFillWarning, zt as LIST_DOWNLOADED_FILES_TOOL } from "./index-B5zHZDNA.js";
|
|
3
3
|
export { type ActionDownloadWatcher, type ActionDownloadWindow, type ActionFrameScope, type ActionTabWatcher, type ActionTabWindow, CAPTURE_PAGE_IMAGE_TOOL, CLOSE_PAGE_TAB_TOOL, type CellAddress, type CellRange, type ConsentUi, DEFAULT_MAX_DATA_SOURCE_BYTES, DELEGATE_TASK_TOOL, DELEGATION_SYSTEM_PROMPT, DOCUMENT_READ_BUDGET, DOWNLOAD_WAIT_DEFAULT_MS, DOWNLOAD_WAIT_MAX_MS, DOWNLOAD_WAIT_MIN_MS, DWG_MODEL_VIEW_ID, 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 DocumentBlock, type DocumentFileBytes, type DocumentFileSource, type DocumentFormat, type DocumentImageRole, type DocumentReadBudget, type DocumentReadMode, type DocumentToolSourceOptions, type DocxDocumentContent, type DocxDocumentReader, type DocxTemplateEngine, type DocxTemplateFillSpec, type DocxTemplateSkeleton, type DownloadedFileAction, type DownloadedFileConsent, type DownloadedFileEntry, type DownloadedFileListing, DownloadedFilePolicy, type DownloadedFilePolicyOptions, type DownloadedFileReadResult, type DownloadedFileReader, type DownloadedFileRecord, type DownloadedFileToolSourceOptions, type DwgBounds, type DwgComponent, type DwgDocumentContent, type DwgDocumentReader, type DwgEntity, type DwgFill, type DwgFont, type DwgGeometry, type DwgLayer, type DwgLoadedDrawing, type DwgOmission, type DwgPoint, type DwgProjectedDrawing, type DwgProjection, type DwgToolSourceOptions, type DwgUnits, type DwgView, type DwgViewport, EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_TWIP, EXPORT_SPREADSHEET_TOOL, FETCH_REMOTE_IMAGE_TOOL, FILL_TEMPLATE_TOOL, FOCUS_PAGE_TAB_TOOL, type FrameNote, type FrameScope, GENERATE_SKILL_TOOL, type GeneratedSkillDraft, type HttpDataSourceOptions, INSPECT_TEMPLATE_TOOL, type ImageCaptureBudget, LIST_DOWNLOADED_FILES_TOOL, LIST_PAGE_TABS_TOOL, MANAGE_TODO_TOOL, MAX_DIGIT_WIDTH, type NestedFrameRef, type OpenedPageInfo, type OpenedTabSignal, PAGE_ACTION_KINDS, PAGE_ACTION_SYSTEM_PROMPT, PAGE_ACTION_TOOL, PAGE_DOCUMENT_REF, PDF_GARBLED_RATIO, PDF_LARGE_IMAGE_RATIO, 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, type PageImageCapture, type PageImageFailure, type PageImageResult, type PageImageToolSourceOptions, PagePerceptionPolicy, type PagePerceptionPolicyOptions, type PagePerceptionReader, type PagePerceptionToolSourceOptions, type ParentBudget, type PdfDocumentHandle, type PdfDocumentReader, type PdfPageImage, type PdfTextQuality, type PerceivedImage, type PerceivedNode, type PerceptionAuditSink, type PerceptionCaptureOptions, type PerceptionPagingBudget, type PerceptionRecord, type PerceptionResult, type PerceptionScope, type PerceptionScopeInput, type PptxDocumentContent, type PptxDocumentReader, type PptxSlideContent, QUERY_TABLE_TOOL, type QueryTableView, type QueryableTableWorkbook, READ_DOCUMENT_TOOL, READ_DOWNLOADED_FILE_TOOL, type RemoteImageFetch, type RemoteImageFetchFailure, type RemoteImageResult, type RemoteImageToolSourceOptions, type RenderedImage, SCROLL_DIRECTIONS, SKILL_GENERATION_SYSTEM_PROMPT, type ScrollDirection, type Size, type SkillAttachmentBytes, type SkillBinaryPayload, type SkillCandidateSink, type SkillGenerationMessages, type SkillGenerationOutcome, type SkillGenerationPolicy, type SkillGenerationToolSourceOptions, SkillGenerator, type SkillGeneratorOptions, type SkillTraceEvidence, type SkillTraceEvidenceStep, type SpreadsheetToolSourceOptions, type StreamingTableMeta, type StreamingTableRow, type StreamingTableSheet, type StreamingTableView, type StreamingTableWorkbook, type SubAgentRunInput, type SubAgentRunner, type SubtreeRejection, TAB_WORKSET_DEFAULT_MAX, TAB_WORKSET_MAX_MAX, TAB_WORKSET_MIN_MAX, TAB_WORKSET_SYSTEM_PROMPT, TEMPLATE_INSPECT_BUDGET, TODO_SYSTEM_PROMPT, type TabAdmission, TabWorksetPolicy, type TabWorksetPolicyOptions, type TabWorksetPort, type TabWorksetToolSourceOptions, type TableBinarySource, type TableQueryToolSourceOptions, type TableSheet, type TableSource, type TableWorkbook, type TemplateCellSkeleton, type TemplateFileSource, type TemplateFillRejection, type TemplateFillWarning, type TemplateImageBytes, type TemplateImageResolver, type TemplateParagraphSkeleton, type TemplateSheetBlanks, type TemplateSheetSkeleton, type TemplateTableCellSkeleton, type TemplateToolSourceOptions, type TodoEvent, type TodoItem, type TodoList, type TodoListener, type TodoStatus, TodoStore, type TodoToolSourceOptions, VIEW_DWG_TOOL, type WorksetTab, type WorksetTabView, type XlsxDocumentContent, type XlsxDocumentReader, type XlsxFillOutcome, type XlsxSheetContent, type XlsxTableReader, type XlsxTemplateEngine, type XlsxTemplateFillSpec, type XlsxTemplateSkeleton, asReadMode, buildStreamingView, clampDownloadWaitMs, clampWorksetMax, columnWidthToPixels, createDelegationToolSource, createDocumentToolSource, createDownloadedFileToolSource, createDwgToolSource, createHttpDataSourceTransport, createPageActionToolSource, createPageImageToolSource, createPagePerceptionToolSource, createRemoteImageToolSource, createSkillGenerationToolSource, createSpreadsheetToolSource, createTabWorksetToolSource, createTableQueryToolSource, createTemplateToolSource, createTodoToolSource, defersImage, dwgPickView, dwgViewsOf, fitWithin, formatCellAddress, frameLabel, frameSteps, isPdfTextTrustworthy, isRangeTopLeft, isStreamingTableWorkbook, measurePdfTextQuality, parseCellAddress, parseCellRange, profileStreamingTable, profileTable, rangeContains, readImageSize, sniffDocumentFormat, summarizeStreamingWorkbook, takesImage, toActionFrameScopes, toFrameScopes, withDelegationOrigin };
|
package/dist/agent.js
CHANGED
|
@@ -2,9 +2,8 @@ import { n as messageOf, t as WebSkillError } from "./errors-BDZNpC13.js";
|
|
|
2
2
|
import { b as parseSkillMarkdown, y as isValidSkillName } from "./skill-WSUDp6A1.js";
|
|
3
3
|
import { t as assertRemoteUrlAllowed } from "./urlSafety-CiSuCJvX.js";
|
|
4
4
|
import { n as sanitizeUntrustedLine, t as UNTRUSTED_LINE_LIMIT } from "./untrustedText-BIaRvPZK.js";
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
import { A as frameSteps, C as DOCUMENT_READ_BUDGET, D as SCROLL_DIRECTIONS, E as toActionFrameScopes, O as toFrameScopes, S as sniffDocumentFormat, T as PAGE_DOCUMENT_REF, _ as defersImage, a as columnWidthToPixels, b as isPdfTextTrustworthy, c as isRangeTopLeft, d as rangeContains, f as readImageSize, g as asReadMode, h as createDocumentToolSource, i as MAX_DIGIT_WIDTH, k as frameLabel, l as parseCellAddress, m as READ_DOCUMENT_TOOL, n as EMU_PER_POINT, o as fitWithin, p as PDF_LARGE_IMAGE_RATIO, r as EMU_PER_TWIP, s as formatCellAddress, t as EMU_PER_PIXEL, u as parseCellRange, v as takesImage, w as PAGE_ACTION_KINDS, x as measurePdfTextQuality, y as PDF_GARBLED_RATIO } from "./geometry-BXMPNuM6.js";
|
|
5
|
+
import { A as extractedDocumentFormat, c as toBase64, d as SPREADSHEET_LIMITS, f as SPREADSHEET_MIME_TYPE, j as formatAttachmentText, k as classifyAttachment, l as encodeSpreadsheet, m as DEFAULT_MAX_DATA_SOURCE_BYTES, u as SPREADSHEET_EXTENSION } from "./linkedDocument-GE-VV_Gj.js";
|
|
6
|
+
import { A as frameSteps, C as DOCUMENT_READ_BUDGET, D as SCROLL_DIRECTIONS, E as toActionFrameScopes, O as toFrameScopes, S as sniffDocumentFormat, T as PAGE_DOCUMENT_REF, _ as defersImage, a as columnWidthToPixels, b as isPdfTextTrustworthy, c as isRangeTopLeft, d as rangeContains, f as readImageSize, g as asReadMode, h as createDocumentToolSource, i as MAX_DIGIT_WIDTH, k as frameLabel, l as parseCellAddress, m as READ_DOCUMENT_TOOL, n as EMU_PER_POINT, o as fitWithin, p as PDF_LARGE_IMAGE_RATIO, r as EMU_PER_TWIP, s as formatCellAddress, t as EMU_PER_PIXEL, u as parseCellRange, v as takesImage, w as PAGE_ACTION_KINDS, x as measurePdfTextQuality, y as PDF_GARBLED_RATIO } from "./geometry-QmrkJw1_.js";
|
|
8
7
|
|
|
9
8
|
//#region ../agent/src/todo/store.ts
|
|
10
9
|
const STATUSES = [
|
|
@@ -2668,7 +2667,7 @@ function createTabWorksetToolSource(options) {
|
|
|
2668
2667
|
|
|
2669
2668
|
//#endregion
|
|
2670
2669
|
//#region ../agent/src/downloads/policy.ts
|
|
2671
|
-
const READABLE_TYPES = "Readable types: plain text, JSON, CSV, PDF, Word (.docx), Excel (.xlsx) and PNG/JPEG/WebP/GIF images.";
|
|
2670
|
+
const READABLE_TYPES = "Readable types: plain text, JSON, CSV, PDF, Word (.docx), Excel (.xlsx/.xls) and PNG/JPEG/WebP/GIF images.";
|
|
2672
2671
|
const IMAGE_UNREADABLE = "It is an image, and the selected model cannot read images. Switch model to read it.";
|
|
2673
2672
|
const RECORD_LIMIT = 50;
|
|
2674
2673
|
function formatSize(bytes) {
|
|
@@ -4773,9 +4772,9 @@ function captureTableQueryArgs(args) {
|
|
|
4773
4772
|
//#region ../agent/src/table/toolSource.ts
|
|
4774
4773
|
/** @experimental */
|
|
4775
4774
|
const QUERY_TABLE_TOOL = "query_table";
|
|
4776
|
-
const DESCRIPTION$2 = "Run exact statistics over an Excel (.xlsx) workbook the user attached, without reading it row by row: describe its sheets and columns, aggregate (filter, group, pivot, count, distinct count, sum, average, min, max, median), or list matching rows. Every query covers all rows and is computed on the user’s device.";
|
|
4775
|
+
const DESCRIPTION$2 = "Run exact statistics over an Excel (.xlsx/.xls) workbook the user attached, without reading it row by row: describe its sheets and columns, aggregate (filter, group, pivot, count, distinct count, sum, average, min, max, median), or list matching rows. Every query covers all rows and is computed on the user’s device.";
|
|
4777
4776
|
const DESCRIPTION_WITH_DOWNLOADS = DESCRIPTION$2.replace("the user attached,", "the user attached or downloaded,");
|
|
4778
|
-
const SYSTEM_PROMPT$3 = "query_table computes over every row of an attached .xlsx workbook. Use it for any count, total, average, extreme, median, ranking or breakdown, and quote its numbers as returned — they are exact. Do not estimate statistics from sample rows, and do not page through a whole sheet with read_document to compute them. For a multi-dimensional distinct count, put every row dimension in groupBy and use countDistinct directly. For a cross-tab, additionally put column dimensions in pivotBy; row totals are included. Do not delegate these single-scan queries to subagents. When a result reports skipped or uncomparable cells, tell the user how many and why. Attachment ids from earlier messages of this conversation stay valid for this tool.";
|
|
4777
|
+
const SYSTEM_PROMPT$3 = "query_table computes over every row of an attached .xlsx or .xls workbook. Use it for any count, total, average, extreme, median, ranking or breakdown, and quote its numbers as returned — they are exact. Do not estimate statistics from sample rows, and do not page through a whole sheet with read_document to compute them. For a multi-dimensional distinct count, put every row dimension in groupBy and use countDistinct directly. For a cross-tab, additionally put column dimensions in pivotBy; row totals are included. Do not delegate these single-scan queries to subagents. When a result reports skipped or uncomparable cells, tell the user how many and why. Attachment ids from earlier messages of this conversation stay valid for this tool.";
|
|
4779
4778
|
const SYSTEM_PROMPT_WITH_DOWNLOADS = `${SYSTEM_PROMPT$3} A downloaded workbook\u2019s id from list_downloaded_files works too.`;
|
|
4780
4779
|
const ID_DESCRIPTION = "The attachment id from the message that carried the workbook.";
|
|
4781
4780
|
const ID_DESCRIPTION_WITH_DOWNLOADS = `${ID_DESCRIPTION} For a downloaded file, use the id from list_downloaded_files; the user is asked for permission to read it.`;
|
|
@@ -5375,7 +5374,7 @@ function createTemplateToolSource(options) {
|
|
|
5375
5374
|
if (typeof raw !== "string" || raw === "") throw new WebSkillError("TOOL_UNSUPPORTED", `${tool} requires the "template" id of an attachment or download.`);
|
|
5376
5375
|
const file = await files.read(raw, context);
|
|
5377
5376
|
if (file === void 0) throw new WebSkillError("TOOL_UNSUPPORTED", `No readable file with id "${raw}". It is neither an attachment of this conversation nor a download id that is still valid — a download id may have expired; list the downloads again to get a fresh one.`);
|
|
5378
|
-
const format = sniffDocumentFormat(file.bytes, file.name);
|
|
5377
|
+
const format = file.bytes[0] === 80 && file.bytes[1] === 75 ? sniffDocumentFormat(file.bytes, file.name) : void 0;
|
|
5379
5378
|
if (format !== "xlsx" && format !== "docx") throw new WebSkillError("TEMPLATE_UNSUPPORTED", `"${file.name}" is not an Excel (.xlsx) or Word (.docx) file, so it cannot be used as a template.`);
|
|
5380
5379
|
if ((format === "xlsx" ? xlsx : docx) === void 0) throw new WebSkillError("TEMPLATE_UNSUPPORTED", `This environment cannot fill ${format} templates.`);
|
|
5381
5380
|
return {
|
|
@@ -2,8 +2,8 @@ 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-WSUDp6A1.js";
|
|
3
3
|
import { o as atomicWriteText, r as resolveInsideRoot, t as assertSafePathSegment } from "./pathSecurity-CirkQwWP.js";
|
|
4
4
|
import { t as assertRemoteUrlAllowed } from "./urlSafety-CiSuCJvX.js";
|
|
5
|
+
import { O as XLS_MIME, a as UNSUPPORTED_DOCUMENT_MESSAGE, c as toBase64, f as SPREADSHEET_MIME_TYPE, g as DEFAULT_MAX_DOCUMENT_TEXT_BYTES, h as DEFAULT_MAX_DOCUMENT_BYTES, i as SUPPORTED_DOCUMENT_MIME, l as encodeSpreadsheet, n as READ_LINKED_DOCUMENT_TOOL, o as fromBase64, r as READ_LINKED_DOCUMENT_TOOL_NAME, s as isBytesOnlyDocument, v as TEXT_BUDGETED_CONTENT_TYPES } from "./linkedDocument-GE-VV_Gj.js";
|
|
5
6
|
import { c as findUnpairedToolCalls, d as partsToText, f as promptText, l as interruptedToolResult, p as textParts, u as sealToolCallPairs } from "./llm-eIQNO9tr.js";
|
|
6
|
-
import { a as UNSUPPORTED_DOCUMENT_MESSAGE, c as toBase64, f as SPREADSHEET_MIME_TYPE, g as DEFAULT_MAX_DOCUMENT_TEXT_BYTES, h as DEFAULT_MAX_DOCUMENT_BYTES, i as SUPPORTED_DOCUMENT_MIME, l as encodeSpreadsheet, n as READ_LINKED_DOCUMENT_TOOL, o as fromBase64, r as READ_LINKED_DOCUMENT_TOOL_NAME, s as isBytesOnlyDocument, v as TEXT_BUDGETED_CONTENT_TYPES } from "./linkedDocument-0iiVPd5t.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-2v3WQzs_.js";
|
|
9
9
|
import { t as extractUiSpecEvents } from "./surface-DVGiCmwq.js";
|
|
@@ -2704,6 +2704,11 @@ var AgentLoop = class {
|
|
|
2704
2704
|
label: "Excel workbooks",
|
|
2705
2705
|
...this.#deps.xlsxExtractor ? { extractor: this.#deps.xlsxExtractor } : {}
|
|
2706
2706
|
},
|
|
2707
|
+
[XLS_MIME]: {
|
|
2708
|
+
kind: "xls",
|
|
2709
|
+
label: "Legacy Excel workbooks",
|
|
2710
|
+
...this.#deps.xlsxExtractor ? { extractor: this.#deps.xlsxExtractor } : {}
|
|
2711
|
+
},
|
|
2707
2712
|
[SUPPORTED_DOCUMENT_MIME.pptx]: {
|
|
2708
2713
|
kind: "pptx",
|
|
2709
2714
|
label: "PowerPoint presentations",
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-wKp3YBSM-
|
|
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 { In as PerceptionScopeInput, K as DocxDocumentContent, Ln as PptxDocumentContent, Pn as PerceptionResult, Rn as PptxDocumentReader, Tn as PdfDocumentReader, Ut as NestedFrameRef, cn as PageActionRequest, dn as PageActionTarget, ii as XlsxDocumentReader, in as PageActionOutcome, jn as PerceptionCaptureOptions, kn as PerceivedNode, mn as PageAuditSink, nn as PageActionExecutor, q as DocxDocumentReader, ri as XlsxDocumentContent, si as XlsxTableReader, u as ConsentUi, un as PageActionScopeInput, xn as PagePerceptionReader, yn as PagePerceptionPolicy, yr as SubtreeRejection } from "./index-
|
|
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-wKp3YBSM-D7w-ZbsB.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-Cngzg2WS.js";
|
|
3
|
+
import { In as PerceptionScopeInput, K as DocxDocumentContent, Ln as PptxDocumentContent, Pn as PerceptionResult, Rn as PptxDocumentReader, Tn as PdfDocumentReader, Ut as NestedFrameRef, cn as PageActionRequest, dn as PageActionTarget, ii as XlsxDocumentReader, in as PageActionOutcome, jn as PerceptionCaptureOptions, kn as PerceivedNode, mn as PageAuditSink, nn as PageActionExecutor, q as DocxDocumentReader, ri as XlsxDocumentContent, si as XlsxTableReader, u as ConsentUi, un as PageActionScopeInput, xn as PagePerceptionReader, yn as PagePerceptionPolicy, yr as SubtreeRejection } from "./index-B5zHZDNA.js";
|
|
4
4
|
//#region ../browser/dist/index.d.ts
|
|
5
5
|
//#region src/fs/featureDetection.d.ts
|
|
6
6
|
/** 检测当前环境是否可用 OPFS(navigator.storage.getDirectory) */
|
|
@@ -1599,9 +1599,9 @@ declare function extractDocxText(bytes: Uint8Array): Promise<string>;
|
|
|
1599
1599
|
/**
|
|
1600
1600
|
* xlsx 文本抽取(0.13.0 分册 12)。
|
|
1601
1601
|
*
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
1604
|
-
*
|
|
1602
|
+
* xlsx 和 docx 是同一种容器(OPC = zip + XML),所以沿用 docx 那条路 ——
|
|
1603
|
+
* zip 走仓内既有的 `unzipWithLimits`(fflate,自带解压体积上限,顺带挡住 zip 炸弹),
|
|
1604
|
+
* XML 走浏览器原生 `DOMParser`。旧版 xls 先由 `xlsConversion` 在内存中转成 xlsx。
|
|
1605
1605
|
*
|
|
1606
1606
|
* ⚠️ `DOMParser` 是浏览器 API,Node 没有 —— 所以这个模块只在 `@webskill/browser`。
|
|
1607
1607
|
* Node 宿主没有 xlsx 能力,与 docx 同一条**显式声明**的限制,不是静默降级(备案 D55)。
|
|
@@ -1615,7 +1615,7 @@ declare const XLSX_UNEXTRACTED: readonly ["styles", "conditional formatting", "m
|
|
|
1615
1615
|
/**
|
|
1616
1616
|
* 从 xlsx 字节里抽出文本,每个工作表一段、段首是表名。
|
|
1617
1617
|
*
|
|
1618
|
-
* @throws WebSkillError 归档损坏、旧版 `.xls
|
|
1618
|
+
* @throws WebSkillError 归档损坏、旧版 `.xls` 转换失败、缺 `xl/workbook.xml`、工作表关系解不开、XML 解析失败
|
|
1619
1619
|
*/
|
|
1620
1620
|
declare function extractXlsxText(bytes: Uint8Array): Promise<string>;
|
|
1621
1621
|
//#endregion
|
|
@@ -1644,14 +1644,14 @@ declare const XLSX_IMAGE_MIN_ROWS = 3;
|
|
|
1644
1644
|
/** @experimental */
|
|
1645
1645
|
declare function createXlsxBlockReader(): XlsxDocumentReader;
|
|
1646
1646
|
/**
|
|
1647
|
-
* @throws WebSkillError 归档损坏、旧版 `.xls
|
|
1647
|
+
* @throws WebSkillError 归档损坏、旧版 `.xls` 转换失败、缺 `xl/workbook.xml`、工作表关系解不开、XML 解析失败
|
|
1648
1648
|
* @experimental
|
|
1649
1649
|
*/
|
|
1650
1650
|
declare function readXlsxBlocks(bytes: Uint8Array): Promise<XlsxDocumentContent>;
|
|
1651
1651
|
//#endregion
|
|
1652
1652
|
//#region src/document/xlsxTable.d.ts
|
|
1653
1653
|
/**
|
|
1654
|
-
*
|
|
1654
|
+
* xls(x) → 单元格网格或可重复扫描的行流;旧版 xls 先在内存中转换成 xlsx。
|
|
1655
1655
|
*
|
|
1656
1656
|
* `read` 保留既有网格契约;`readStreaming` 用 SAX 逐行解析工作表,不受整包解压的 64 MiB 条目上限约束。
|
|
1657
1657
|
* 两条路径使用同一套单元格取值、日期换算与空格补位规则,错误均带 `WebSkillError`。
|
package/dist/browser.js
CHANGED
|
@@ -2,13 +2,12 @@ import { n as messageOf$1, t as WebSkillError } from "./errors-BDZNpC13.js";
|
|
|
2
2
|
import { A as SKILL_MANIFEST_FILE, D as verifySkillSignature, M as buildManifest, O as MANIFEST_EXCLUDED_FILES, P as verifyManifest, b as parseSkillMarkdown, c as unzipWithLimits, f as SKILL_PACK_FILE, i as buildCatalog, k as SKILLS_LOCKFILE, m as parseSkillPackManifest, n as SkillDiscovery, o as readResponseWithLimit, p as exportSkills, t as validateSkills, u as detectSkillArchiveShapeFromFs, w as readSkillSignature, y as isValidSkillName } from "./skill-WSUDp6A1.js";
|
|
3
3
|
import { o as atomicWriteText, r as resolveInsideRoot, s as isAtomicTempPath } from "./pathSecurity-CirkQwWP.js";
|
|
4
4
|
import { t as assertRemoteUrlAllowed } from "./urlSafety-CiSuCJvX.js";
|
|
5
|
-
import {
|
|
6
|
-
import { _ as FsRunSnapshotStore, a as networkPolicyLibSource, c as bridgeError, ct as ProgressiveRouter, d as FsMemoryStore, l as parseBridgeRequest, m as AgentLoop, r as normalizeToolError, s as UPLOAD_FILES_UNAVAILABLE, t as CapabilityApproval, u as FsArtifactStore } from "./approval-
|
|
5
|
+
import { c as toBase64$1, f as SPREADSHEET_MIME_TYPE, y as ATTACHMENT_TEXT_LIMIT } from "./linkedDocument-GE-VV_Gj.js";
|
|
6
|
+
import { _ as FsRunSnapshotStore, a as networkPolicyLibSource, c as bridgeError, ct as ProgressiveRouter, d as FsMemoryStore, l as parseBridgeRequest, m as AgentLoop, r as normalizeToolError, s as UPLOAD_FILES_UNAVAILABLE, t as CapabilityApproval, u as FsArtifactStore } from "./approval-DnUytrkq.js";
|
|
7
7
|
import { a as GoogleGenAiClient, o as AnthropicClient, s as OpenAiCompatibleClient, t as MockLlmClient } from "./llm-eIQNO9tr.js";
|
|
8
|
-
import { c as toBase64$1, f as SPREADSHEET_MIME_TYPE } from "./linkedDocument-0iiVPd5t.js";
|
|
9
8
|
import { n as normalizeToolContent, t as mergeCatalogEntries } from "./external-_ZRQe-V9.js";
|
|
10
|
-
import { t as createWebSkillApi } from "./webSkillApi-
|
|
11
|
-
import { A as frameSteps, D as SCROLL_DIRECTIONS, E as toActionFrameScopes, O as toFrameScopes, _ as defersImage, a as columnWidthToPixels, b as isPdfTextTrustworthy, c as isRangeTopLeft, d as rangeContains, f as readImageSize, k as frameLabel, l as parseCellAddress, n as EMU_PER_POINT, o as fitWithin, p as PDF_LARGE_IMAGE_RATIO, r as EMU_PER_TWIP$1, s as formatCellAddress, t as EMU_PER_PIXEL, u as parseCellRange, v as takesImage } from "./geometry-
|
|
9
|
+
import { t as createWebSkillApi } from "./webSkillApi-TeWPPFDn.js";
|
|
10
|
+
import { A as frameSteps, D as SCROLL_DIRECTIONS, E as toActionFrameScopes, O as toFrameScopes, _ as defersImage, a as columnWidthToPixels, b as isPdfTextTrustworthy, c as isRangeTopLeft, d as rangeContains, f as readImageSize, k as frameLabel, l as parseCellAddress, n as EMU_PER_POINT, o as fitWithin, p as PDF_LARGE_IMAGE_RATIO, r as EMU_PER_TWIP$1, s as formatCellAddress, t as EMU_PER_PIXEL, u as parseCellRange, v as takesImage } from "./geometry-QmrkJw1_.js";
|
|
12
11
|
import { Unzip, UnzipInflate, zipSync } from "fflate";
|
|
13
12
|
import { SaxesParser } from "saxes";
|
|
14
13
|
|
|
@@ -6424,14 +6423,129 @@ async function extractDocxText(bytes) {
|
|
|
6424
6423
|
return blocks.join("\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
6425
6424
|
}
|
|
6426
6425
|
|
|
6426
|
+
//#endregion
|
|
6427
|
+
//#region ../browser/src/document/xlsConversion.ts
|
|
6428
|
+
const OLE2_SIGNATURE = [
|
|
6429
|
+
208,
|
|
6430
|
+
207,
|
|
6431
|
+
17,
|
|
6432
|
+
224,
|
|
6433
|
+
161,
|
|
6434
|
+
177,
|
|
6435
|
+
26,
|
|
6436
|
+
225
|
|
6437
|
+
];
|
|
6438
|
+
function isLegacyXls(bytes) {
|
|
6439
|
+
return OLE2_SIGNATURE.every((byte, index) => bytes[index] === byte);
|
|
6440
|
+
}
|
|
6441
|
+
/** 旧 BIFF/OLE2 工作簿只在内存中转换;原件与上传落盘内容都不改写。 */
|
|
6442
|
+
async function convertXlsToXlsx(bytes) {
|
|
6443
|
+
if (!isLegacyXls(bytes)) throw new WebSkillError("TOOL_EXECUTION_FAILED", "The file is not a legacy OLE2 .xls workbook.");
|
|
6444
|
+
try {
|
|
6445
|
+
const [XLSX, codepage] = await Promise.all([import("@e965/xlsx"), import("@e965/xlsx/dist/cpexcel.full.mjs")]);
|
|
6446
|
+
const { cptable } = codepage;
|
|
6447
|
+
const { utils } = codepage;
|
|
6448
|
+
XLSX.set_cptable({
|
|
6449
|
+
...cptable,
|
|
6450
|
+
utils
|
|
6451
|
+
});
|
|
6452
|
+
const workbook = XLSX.read(bytes, {
|
|
6453
|
+
type: "array",
|
|
6454
|
+
cellDates: false,
|
|
6455
|
+
cellNF: true
|
|
6456
|
+
});
|
|
6457
|
+
const output = XLSX.write(workbook, {
|
|
6458
|
+
type: "array",
|
|
6459
|
+
bookType: "xlsx",
|
|
6460
|
+
compression: true
|
|
6461
|
+
});
|
|
6462
|
+
if (output instanceof Uint8Array) return output;
|
|
6463
|
+
if (output instanceof ArrayBuffer) return new Uint8Array(output);
|
|
6464
|
+
throw new Error("The converter returned an unsupported binary output.");
|
|
6465
|
+
} catch (error) {
|
|
6466
|
+
throw new WebSkillError("TOOL_EXECUTION_FAILED", `The legacy .xls workbook could not be converted to .xlsx: ${error instanceof Error ? error.message : String(error)}`, error);
|
|
6467
|
+
}
|
|
6468
|
+
}
|
|
6469
|
+
async function normalizeExcelBytes(bytes) {
|
|
6470
|
+
return isLegacyXls(bytes) ? convertXlsToXlsx(bytes) : bytes;
|
|
6471
|
+
}
|
|
6472
|
+
async function collect(chunks) {
|
|
6473
|
+
const parts = [];
|
|
6474
|
+
let length = 0;
|
|
6475
|
+
for await (const chunk of chunks) {
|
|
6476
|
+
parts.push(chunk);
|
|
6477
|
+
length += chunk.byteLength;
|
|
6478
|
+
}
|
|
6479
|
+
const bytes = new Uint8Array(length);
|
|
6480
|
+
let offset = 0;
|
|
6481
|
+
for (const part of parts) {
|
|
6482
|
+
bytes.set(part, offset);
|
|
6483
|
+
offset += part.byteLength;
|
|
6484
|
+
}
|
|
6485
|
+
return bytes;
|
|
6486
|
+
}
|
|
6487
|
+
/**
|
|
6488
|
+
* 流式读取先复用首段判断魔数。普通 xlsx 的首段会原样接回流,不整份缓存;
|
|
6489
|
+
* 只有必须整体转换的 xls 才收集全部字节。
|
|
6490
|
+
*/
|
|
6491
|
+
async function normalizeExcelSource(source) {
|
|
6492
|
+
if (typeof source !== "function") return normalizeExcelBytes(source);
|
|
6493
|
+
const iterator = (await source())[Symbol.asyncIterator]();
|
|
6494
|
+
const prefix = [];
|
|
6495
|
+
let prefixLength = 0;
|
|
6496
|
+
let done = false;
|
|
6497
|
+
while (prefixLength < OLE2_SIGNATURE.length && !done) {
|
|
6498
|
+
const next = await iterator.next();
|
|
6499
|
+
if (next.done === true) done = true;
|
|
6500
|
+
else {
|
|
6501
|
+
prefix.push(next.value);
|
|
6502
|
+
prefixLength += next.value.byteLength;
|
|
6503
|
+
}
|
|
6504
|
+
}
|
|
6505
|
+
const replay = async function* () {
|
|
6506
|
+
yield* prefix;
|
|
6507
|
+
try {
|
|
6508
|
+
while (!done) {
|
|
6509
|
+
const next = await iterator.next();
|
|
6510
|
+
if (next.done === true) {
|
|
6511
|
+
done = true;
|
|
6512
|
+
break;
|
|
6513
|
+
}
|
|
6514
|
+
yield next.value;
|
|
6515
|
+
}
|
|
6516
|
+
} finally {
|
|
6517
|
+
if (!done) await iterator.return?.();
|
|
6518
|
+
}
|
|
6519
|
+
};
|
|
6520
|
+
const head = new Uint8Array(Math.min(prefixLength, OLE2_SIGNATURE.length));
|
|
6521
|
+
let offset = 0;
|
|
6522
|
+
for (const chunk of prefix) {
|
|
6523
|
+
head.set(chunk.subarray(0, head.byteLength - offset), offset);
|
|
6524
|
+
offset = Math.min(head.byteLength, offset + chunk.byteLength);
|
|
6525
|
+
if (offset === head.byteLength) break;
|
|
6526
|
+
}
|
|
6527
|
+
if (!isLegacyXls(head)) {
|
|
6528
|
+
let pending = replay();
|
|
6529
|
+
return async () => {
|
|
6530
|
+
if (pending !== void 0) {
|
|
6531
|
+
const first = pending;
|
|
6532
|
+
pending = void 0;
|
|
6533
|
+
return first;
|
|
6534
|
+
}
|
|
6535
|
+
return await source();
|
|
6536
|
+
};
|
|
6537
|
+
}
|
|
6538
|
+
return convertXlsToXlsx(await collect(replay()));
|
|
6539
|
+
}
|
|
6540
|
+
|
|
6427
6541
|
//#endregion
|
|
6428
6542
|
//#region ../browser/src/document/xlsx.ts
|
|
6429
6543
|
/**
|
|
6430
6544
|
* xlsx 文本抽取(0.13.0 分册 12)。
|
|
6431
6545
|
*
|
|
6432
|
-
*
|
|
6433
|
-
*
|
|
6434
|
-
*
|
|
6546
|
+
* xlsx 和 docx 是同一种容器(OPC = zip + XML),所以沿用 docx 那条路 ——
|
|
6547
|
+
* zip 走仓内既有的 `unzipWithLimits`(fflate,自带解压体积上限,顺带挡住 zip 炸弹),
|
|
6548
|
+
* XML 走浏览器原生 `DOMParser`。旧版 xls 先由 `xlsConversion` 在内存中转成 xlsx。
|
|
6435
6549
|
*
|
|
6436
6550
|
* ⚠️ `DOMParser` 是浏览器 API,Node 没有 —— 所以这个模块只在 `@webskill/browser`。
|
|
6437
6551
|
* Node 宿主没有 xlsx 能力,与 docx 同一条**显式声明**的限制,不是静默降级(备案 D55)。
|
|
@@ -6457,17 +6571,6 @@ const WORKBOOK$1 = "xl/workbook.xml";
|
|
|
6457
6571
|
const WORKBOOK_RELS$1 = "xl/_rels/workbook.xml.rels";
|
|
6458
6572
|
const SHARED_STRINGS$1 = "xl/sharedStrings.xml";
|
|
6459
6573
|
const STYLES$1 = "xl/styles.xml";
|
|
6460
|
-
/** OLE2 复合文档签名:旧版 .xls 的开头,它不是 zip,走不到解压那一步 */
|
|
6461
|
-
const OLE2_SIGNATURE$1 = [
|
|
6462
|
-
208,
|
|
6463
|
-
207,
|
|
6464
|
-
17,
|
|
6465
|
-
224,
|
|
6466
|
-
161,
|
|
6467
|
-
177,
|
|
6468
|
-
26,
|
|
6469
|
-
225
|
|
6470
|
-
];
|
|
6471
6574
|
/** 内建的日期/时间数字格式 id(ECMA-376 §18.8.30) */
|
|
6472
6575
|
const BUILTIN_DATE_FORMATS = /* @__PURE__ */ new Set([
|
|
6473
6576
|
14,
|
|
@@ -6630,7 +6733,6 @@ function sheetRows(doc, shared, dateStyles, date1904) {
|
|
|
6630
6733
|
}
|
|
6631
6734
|
/** 一行的文本:单元格用制表符分隔(与 docx 的表格同口径),行尾制表符不留 */
|
|
6632
6735
|
const rowLine = (cells) => cells.join(" ").replace(/\t+$/, "");
|
|
6633
|
-
const looksLikeOle2 = (bytes) => bytes.length >= OLE2_SIGNATURE$1.length && OLE2_SIGNATURE$1.every((byte, i) => bytes[i] === byte);
|
|
6634
6736
|
/** rels 里的 Target 可能是相对 `xl/` 的,也可能是包根绝对路径 */
|
|
6635
6737
|
function resolveSheetPath$1(target) {
|
|
6636
6738
|
const clean = target.replace(/^\.\//, "");
|
|
@@ -6639,13 +6741,13 @@ function resolveSheetPath$1(target) {
|
|
|
6639
6741
|
/**
|
|
6640
6742
|
* 把 xlsx 拆成「每张表的每一行文本」。
|
|
6641
6743
|
*
|
|
6642
|
-
* @throws WebSkillError 归档损坏、旧版 `.xls
|
|
6744
|
+
* @throws WebSkillError 归档损坏、旧版 `.xls` 转换失败、缺 `xl/workbook.xml`、工作表关系解不开、XML 解析失败
|
|
6643
6745
|
*/
|
|
6644
6746
|
async function readXlsxWorkbook(bytes) {
|
|
6645
|
-
|
|
6747
|
+
const normalized = await normalizeExcelBytes(bytes);
|
|
6646
6748
|
let entries;
|
|
6647
6749
|
try {
|
|
6648
|
-
entries = await unzipWithLimits(
|
|
6750
|
+
entries = await unzipWithLimits(normalized);
|
|
6649
6751
|
} catch {
|
|
6650
6752
|
fail$1("This file could not be read as an Excel workbook: the archive is damaged or not a .xlsx file.");
|
|
6651
6753
|
}
|
|
@@ -6693,7 +6795,7 @@ async function readXlsxWorkbook(bytes) {
|
|
|
6693
6795
|
/**
|
|
6694
6796
|
* 从 xlsx 字节里抽出文本,每个工作表一段、段首是表名。
|
|
6695
6797
|
*
|
|
6696
|
-
* @throws WebSkillError 归档损坏、旧版 `.xls
|
|
6798
|
+
* @throws WebSkillError 归档损坏、旧版 `.xls` 转换失败、缺 `xl/workbook.xml`、工作表关系解不开、XML 解析失败
|
|
6697
6799
|
*/
|
|
6698
6800
|
async function extractXlsxText(bytes) {
|
|
6699
6801
|
const { sheets } = await readXlsxWorkbook(bytes);
|
|
@@ -6942,7 +7044,7 @@ function createXlsxBlockReader() {
|
|
|
6942
7044
|
return { read: readXlsxBlocks };
|
|
6943
7045
|
}
|
|
6944
7046
|
/**
|
|
6945
|
-
* @throws WebSkillError 归档损坏、旧版 `.xls
|
|
7047
|
+
* @throws WebSkillError 归档损坏、旧版 `.xls` 转换失败、缺 `xl/workbook.xml`、工作表关系解不开、XML 解析失败
|
|
6946
7048
|
* @experimental
|
|
6947
7049
|
*/
|
|
6948
7050
|
async function readXlsxBlocks(bytes) {
|
|
@@ -6973,16 +7075,6 @@ const WORKBOOK = "xl/workbook.xml";
|
|
|
6973
7075
|
const WORKBOOK_RELS = "xl/_rels/workbook.xml.rels";
|
|
6974
7076
|
const SHARED_STRINGS = "xl/sharedStrings.xml";
|
|
6975
7077
|
const STYLES = "xl/styles.xml";
|
|
6976
|
-
const OLE2_SIGNATURE = [
|
|
6977
|
-
208,
|
|
6978
|
-
207,
|
|
6979
|
-
17,
|
|
6980
|
-
224,
|
|
6981
|
-
161,
|
|
6982
|
-
177,
|
|
6983
|
-
26,
|
|
6984
|
-
225
|
|
6985
|
-
];
|
|
6986
7078
|
function fail(message) {
|
|
6987
7079
|
throw new WebSkillError("TOOL_EXECUTION_FAILED", message);
|
|
6988
7080
|
}
|
|
@@ -7260,8 +7352,8 @@ function resolveSheetPath(target) {
|
|
|
7260
7352
|
const clean = target.replace(/^\.\//, "");
|
|
7261
7353
|
return clean.startsWith("/") ? clean.slice(1) : `xl/${clean}`;
|
|
7262
7354
|
}
|
|
7263
|
-
async function readStreamingXlsxWorkbook(
|
|
7264
|
-
|
|
7355
|
+
async function readStreamingXlsxWorkbook(input) {
|
|
7356
|
+
const source = await normalizeExcelSource(input);
|
|
7265
7357
|
const workbookBytes = await entryBytes(source, WORKBOOK);
|
|
7266
7358
|
if (workbookBytes === void 0) fail(`This file is not an Excel workbook: it has no ${WORKBOOK} entry.`);
|
|
7267
7359
|
const workbook = parseXml$1(workbookBytes, "index");
|
|
@@ -7318,7 +7410,7 @@ async function readStreamingXlsxWorkbook(source) {
|
|
|
7318
7410
|
//#endregion
|
|
7319
7411
|
//#region ../browser/src/document/xlsxTable.ts
|
|
7320
7412
|
/**
|
|
7321
|
-
*
|
|
7413
|
+
* xls(x) → 单元格网格或可重复扫描的行流;旧版 xls 先在内存中转换成 xlsx。
|
|
7322
7414
|
*
|
|
7323
7415
|
* `read` 保留既有网格契约;`readStreaming` 用 SAX 逐行解析工作表,不受整包解压的 64 MiB 条目上限约束。
|
|
7324
7416
|
* 两条路径使用同一套单元格取值、日期换算与空格补位规则,错误均带 `WebSkillError`。
|
|
@@ -124,6 +124,16 @@ const ZIP_MAGIC = [
|
|
|
124
124
|
3,
|
|
125
125
|
4
|
|
126
126
|
];
|
|
127
|
+
const OLE2_MAGIC = [
|
|
128
|
+
208,
|
|
129
|
+
207,
|
|
130
|
+
17,
|
|
131
|
+
224,
|
|
132
|
+
161,
|
|
133
|
+
177,
|
|
134
|
+
26,
|
|
135
|
+
225
|
|
136
|
+
];
|
|
127
137
|
function startsWith(bytes, magic) {
|
|
128
138
|
return magic.every((b, i) => bytes[i] === b);
|
|
129
139
|
}
|
|
@@ -148,6 +158,7 @@ function containsEntry(bytes, name) {
|
|
|
148
158
|
*/
|
|
149
159
|
function sniffDocumentFormat(bytes, name) {
|
|
150
160
|
if (startsWith(bytes, PDF_MAGIC)) return "pdf";
|
|
161
|
+
if (startsWith(bytes, OLE2_MAGIC)) return "xlsx";
|
|
151
162
|
if (!startsWith(bytes, ZIP_MAGIC)) return void 0;
|
|
152
163
|
const lower = (name ?? "").toLowerCase();
|
|
153
164
|
if (lower.endsWith(".docx")) return "docx";
|
|
@@ -240,7 +251,7 @@ function asReadMode(raw) {
|
|
|
240
251
|
const READ_DOCUMENT_TOOL = "read_document";
|
|
241
252
|
/** 大图的门槛:低于它的是页眉 logo、印章、项目符号,投它们等于白烧一次多模态请求 @experimental */
|
|
242
253
|
const PDF_LARGE_IMAGE_RATIO = .15;
|
|
243
|
-
const DESCRIPTION = "Read a PDF, Word (.docx), Excel (.xlsx) or PowerPoint (.pptx) document the user attached or downloaded, one batch of units at a time. Pages that have no usable text layer (scans) are rendered as images, so their content is never lost. Pictures on pages whose text is readable are listed under \"deferred\" instead of being returned, because reading them costs an extra round trip; call again with mode=\"images\" to fetch those. Excel pictures are the exception: all of them are returned inline with their rows.";
|
|
254
|
+
const DESCRIPTION = "Read a PDF, Word (.docx), Excel (.xlsx/.xls) or PowerPoint (.pptx) document the user attached or downloaded, one batch of units at a time. Pages that have no usable text layer (scans) are rendered as images, so their content is never lost. Pictures on pages whose text is readable are listed under \"deferred\" instead of being returned, because reading them costs an extra round trip; call again with mode=\"images\" to fetch those. Excel pictures are the exception: all of them are returned inline with their rows.";
|
|
244
255
|
const INPUT_SCHEMA = {
|
|
245
256
|
type: "object",
|
|
246
257
|
properties: {
|
|
@@ -339,7 +350,7 @@ function createDocumentToolSource(options) {
|
|
|
339
350
|
const file = await files.read(id);
|
|
340
351
|
if (file === void 0) throw new WebSkillError("TOOL_UNSUPPORTED", `No readable document with id "${id}". It is either not an attachment of the current message, or a download id that has since expired — list the downloads again to get a fresh one.`);
|
|
341
352
|
const format = sniffDocumentFormat(file.bytes, file.name);
|
|
342
|
-
if (format === void 0) throw new WebSkillError("TOOL_UNSUPPORTED", `"${file.name}" is not a PDF, Word (.docx), Excel (.xlsx) or PowerPoint (.pptx) document, so read_document cannot read it.`);
|
|
353
|
+
if (format === void 0) throw new WebSkillError("TOOL_UNSUPPORTED", `"${file.name}" is not a PDF, Word (.docx), Excel (.xlsx/.xls) or PowerPoint (.pptx) document, so read_document cannot read it.`);
|
|
343
354
|
const reader = readerFor(format);
|
|
344
355
|
if (reader === void 0) throw new WebSkillError("TOOL_UNSUPPORTED", `This environment cannot read ${format.toUpperCase()} documents.`);
|
|
345
356
|
const from = asCursor(args["from"]);
|
package/dist/governance.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-wKp3YBSM-
|
|
2
|
-
import { Wt as RuntimeRun, dn as SkillIntegrityGuard, fn as SkillOutcomeReporter, gn as SkillStateGuard, hr as WebSkillRuntime, tt as IntegrityVerdict } from "./index-
|
|
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-
|
|
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-wKp3YBSM-D7w-ZbsB.js";
|
|
2
|
+
import { Wt as RuntimeRun, dn as SkillIntegrityGuard, fn as SkillOutcomeReporter, gn as SkillStateGuard, hr as WebSkillRuntime, tt as IntegrityVerdict } from "./index-Cngzg2WS.js";
|
|
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-AiNsSSdO.js";
|
|
4
4
|
//#region ../governance/dist/index.d.ts
|
|
5
5
|
//#region src/candidate/candidateNormalizer.d.ts
|
|
6
6
|
/** 剥 markdown fence 与 <think> 块、截取首尾 {};非对象 → CANDIDATE_INVALID */
|
|
@@ -1,5 +1,5 @@
|
|
|
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-wKp3YBSM-
|
|
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-
|
|
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-wKp3YBSM-D7w-ZbsB.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-Cngzg2WS.js";
|
|
3
3
|
//#region ../agent/dist/index.d.ts
|
|
4
4
|
//#region src/todo/types.d.ts
|
|
5
5
|
/** 待办条目状态:未开始 / 进行中 / 已完成(FR-3.1) */
|
|
@@ -1819,7 +1819,7 @@ interface DownloadedFilePolicyOptions {
|
|
|
1819
1819
|
imageCapable?(): boolean | Promise<boolean>;
|
|
1820
1820
|
/** docx → 文本。必须与手动上传用的是**同一个**抽取器(AC-20.6) */
|
|
1821
1821
|
docxExtractor?: DocxTextExtractor;
|
|
1822
|
-
/**
|
|
1822
|
+
/** xls(x) → 文本。同上 */
|
|
1823
1823
|
xlsxExtractor?: XlsxTextExtractor;
|
|
1824
1824
|
pptxExtractor?: PptxTextExtractor;
|
|
1825
1825
|
/** 超阈值 PDF 的兜底抽取(AC-21.2)。同样必须与手动上传共用一个实现 */
|
|
@@ -1,5 +1,5 @@
|
|
|
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-wKp3YBSM-
|
|
2
|
-
import { B as ExternalToolSource } from "./index-
|
|
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-wKp3YBSM-D7w-ZbsB.js";
|
|
2
|
+
import { B as ExternalToolSource } from "./index-Cngzg2WS.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { ComponentType, ReactNode } from "react";
|
|
5
5
|
//#region ../ui/dist/index.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as ValidationReport, H as DiscoveryResult, K as FileSystemProvider, Nt as UiSpecNode, O as UiSurfaceActionRequest, Rt as WebSkillErrorCode, S as UiBridge, St as SkillManifest, T as UiSpecEvent, X as JsonSchema, _ as LlmToolSpec, _t as SkillDocument, b as RenderResultRequest, d as LlmContentPart, et as Page, f as LlmMessage, g as LlmToolCall, gt as SkillDiscovery, h as LlmTokenUsage, ht as SkillCatalogEntry, i as FormField, l as LlmClient, m as LlmStreamEvent, mt as SkillCatalog, n as ArtifactStore, nt as RemoteUrlPolicy, o as InteractionPolicy, p as LlmResponse, r as ChartSpec, s as InteractionRequest, t as Artifact, tt as PageQuery, u as LlmCompleteInput, v as MemoryStore, vt as SkillInstallSource, w as UiSpecDrafts, y as RenderBlock } from "./types-wKp3YBSM-
|
|
1
|
+
import { Ft as ValidationReport, H as DiscoveryResult, K as FileSystemProvider, Nt as UiSpecNode, O as UiSurfaceActionRequest, Rt as WebSkillErrorCode, S as UiBridge, St as SkillManifest, T as UiSpecEvent, X as JsonSchema, _ as LlmToolSpec, _t as SkillDocument, b as RenderResultRequest, d as LlmContentPart, et as Page, f as LlmMessage, g as LlmToolCall, gt as SkillDiscovery, h as LlmTokenUsage, ht as SkillCatalogEntry, i as FormField, l as LlmClient, m as LlmStreamEvent, mt as SkillCatalog, n as ArtifactStore, nt as RemoteUrlPolicy, o as InteractionPolicy, p as LlmResponse, r as ChartSpec, s as InteractionRequest, t as Artifact, tt as PageQuery, u as LlmCompleteInput, v as MemoryStore, vt as SkillInstallSource, w as UiSpecDrafts, y as RenderBlock } from "./types-wKp3YBSM-D7w-ZbsB.js";
|
|
2
2
|
//#region ../runtime/dist/index.d.ts
|
|
3
3
|
//#region src/llm/parts.d.ts
|
|
4
4
|
/** 纯文本消息内容的构造快捷方式(引擎内部绝大多数消息仍是纯文本) */
|
|
@@ -2283,7 +2283,7 @@ interface WebSkillRuntimeDeps {
|
|
|
2283
2283
|
linkedDocuments?: LinkedDocumentReader;
|
|
2284
2284
|
/** docx → 文本;不注入即 Word 文档明确报「本环境不支持」(FR-23.8) */
|
|
2285
2285
|
docxExtractor?: DocxTextExtractor;
|
|
2286
|
-
/**
|
|
2286
|
+
/** xls(x) → 文本;不注入即 Excel 工作簿明确报「本环境不支持」(FR-12.5) */
|
|
2287
2287
|
xlsxExtractor?: XlsxTextExtractor;
|
|
2288
2288
|
pptxExtractor?: PptxTextExtractor;
|
|
2289
2289
|
/** PDF → 文本;**只在直传被端点拒后做回退**,不注入即没有回退能力(FR-22.1) */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { $ as PPTX_MIME, $t as
|
|
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-
|
|
1
|
+
import { $ as PPTX_MIME, $t as escapeXml, A as extractSkillCandidate, At as TrustedKey, B as DOCX_MIME, Bt as XLS_MIME, C as UiSpecActionCapability, Cn as verifyManifest, 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 buildCatalog, H as DiscoveryResult, Ht as assertSafePathSegment, I as CatalogRenderer, It as VerifyResult, J as FsTrustedKeyStore, Jt as checkSkillRules, K as FileSystemProvider, Kt as buildManifest, 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 detectSkillArchiveShapeFromFs, R as CryptoKeyLike, Rt as WebSkillErrorCode, S as UiBridge, Sn as validateSkills, St as SkillManifest, T as UiSpecEvent, Tn as xmlRenderer, Tt as SkillReader, U as ExtractedDocumentFormat, Ut as atomicWriteBinary, V as DWG_MIME_TYPES, Vt as assertRemoteUrlAllowed, W as FILE_MIME_TYPES, Wt as atomicWriteText, X as JsonSchema, Xt as computeDigest, Y as IMAGE_MIME_TYPES, Yt as classifyAttachment, Z as MANIFEST_EXCLUDED_FILES, Zt as detectSkillArchiveShape, _ as LlmToolSpec, _n as sanitizeUntrustedLine, _t as SkillDocument, a as InteractionOrigin, an as jsonRenderer, at as SKILL_MANIFEST_FILE, b as RenderResultRequest, bn as stripArchiveRoot, bt as SkillLocation, c as InteractionResponse, cn as normalizePath, ct as SKILL_PACK_FILE, d as LlmContentPart, dn as readResponseWithLimit, dt as SignatureVerdict, en as exportSkills, et as Page, f as LlmMessage, fn as readSkillSignature, ft as SkillArchiveDetection, g as LlmToolCall, gn as resolveInsideRoot, gt as SkillDiscovery, h as LlmTokenUsage, hn as resolveArchiveLimits, ht as SkillCatalogEntry, i as FormField, in as isValidSkillName, 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 parseSkillMarkdown, lt as SKILL_SIGNATURE_FILE, m as LlmStreamEvent, mn as renderCatalogJson, mt as SkillCatalog, n as ArtifactStore, nn as formatAttachmentText, nt as RemoteUrlPolicy, o as InteractionPolicy, on as keyIdOf, ot as SKILL_NAME_MAX_LENGTH, p as LlmResponse, pn as renderAvailableSkillsXml, pt as SkillArchiveShape, q as FileWriteStream, qt as checkDependencyCycles, r as ChartSpec, rn as isAtomicTempPath, rt as SIGNATURE_SCHEMA_VERSION, s as InteractionRequest, sn as messageOf, st as SKILL_NAME_PATTERN, t as Artifact, tn as extractedDocumentFormat, tt as PageQuery, u as LlmCompleteInput, un as parseSkillPackManifest, ut as SignatureAuditSink, v as MemoryStore, vn as signSkill, vt as SkillInstallSource, w as UiSpecDrafts, wn as verifySkillSignature, wt as SkillPackManifest, x as SkillCandidateMarker, xn as unzipWithLimits, xt as SkillManagerPort, y as RenderBlock, yn as signaturePayloadBytes, yt as SkillIssue, z as DEFAULT_ARCHIVE_LIMITS, zt as XLSX_MIME } from "./types-wKp3YBSM-D7w-ZbsB.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-Cngzg2WS.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.29.0";
|
|
10
10
|
//#endregion
|
|
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 };
|
|
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, XLS_MIME, 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 };
|