@webskill/sdk 0.11.0 → 0.12.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 +2 -2
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +7 -3
- package/dist/{catalogComponents-BFoqpT1v-CjUBZ3bc.js → catalogComponents-BgAJN0p8-C3K8klJd.js} +260 -914
- package/dist/{dist-qnlI2Iup.js → dist-DU9KDAuR.js} +194 -6
- package/dist/{dist-DTHZS2k1.js → dist-DqcL6jKO.js} +155 -39
- package/dist/{dist-B-cOu08W.js → dist-sdKFgERo.js} +431 -40
- package/dist/{echarts-DhNm2ene.js → echarts-De78wXqV.js} +599 -61
- package/dist/governance.d.ts +3 -3
- package/dist/{index-DACk2_XZ.d.ts → index-3fCHc1mQ.d.ts} +92 -8
- package/dist/{index-D3mONFHD.d.ts → index-C9pzXLKy.d.ts} +148 -4
- package/dist/{index-DWbs58LF.d.ts → index-DFhU1uks.d.ts} +64 -10
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/mcp.d.ts +26 -3
- package/dist/mcp.js +37 -1
- package/dist/node.d.ts +3 -3
- package/dist/node.js +9 -3
- package/dist/{openUiLibrary-D5u8oIvx-BLOAQCho.js → openUiLibrary-BKXW7Iwx-DaymVubt.js} +3 -3
- package/dist/processSandboxEntry.js +2 -1
- package/dist/sandboxWorkerEntry.js +2 -1
- package/dist/{skillVersionStore-D-qHk9ZE-BcmFLykd.d.ts → skillVersionStore-D-qHk9ZE-DheTIwAB.d.ts} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{types-C26b05fW-CdrRCRDb.d.ts → types-DLctJep_-B5G4uk2u.d.ts} +3 -2
- package/dist/ui-react.d.ts +13 -4
- package/dist/ui-react.js +69 -253
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui-vue.js +1 -1
- package/dist/ui.d.ts +4 -4
- package/dist/ui.js +3 -3
- package/dist/{webskillLitCatalog-DME6PBkV-CmYNLlIT.js → webskillLitCatalog-D_zCqeQF-C9lrvvMr.js} +2 -2
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { E as DEFAULT_MAX_DATA_SOURCE_BYTES } from "./index-
|
|
2
|
-
import { $ as
|
|
3
|
-
export { type ActionFrameScope, DEFAULT_MAX_DATA_SOURCE_BYTES, DELEGATE_TASK_TOOL, DELEGATION_SYSTEM_PROMPT, type DataSourceAuditSink, type DataSourceDef, type DataSourceKind, DataSourcePolicy, type DataSourcePolicyOptions, type DataSourceRecord, type DataSourceTransport, type DelegationBudget, DelegationOrchestrator, type DelegationOrchestratorOptions, type DelegationRequest, type DelegationResult, type DelegationToolSourceOptions, type FrameNote, type FrameScope, GENERATE_SKILL_TOOL, type GeneratedSkillDraft, type HttpDataSourceOptions, type ImageCaptureBudget, MANAGE_TODO_TOOL, PAGE_ACTION_KINDS, PAGE_ACTION_SYSTEM_PROMPT, PAGE_ACTION_TOOL, PERCEIVE_PAGE_TOOL, PERCEPTION_SYSTEM_PROMPT, type PageActionExecutor, type PageActionKind, type PageActionOutcome, PageActionPolicy, type PageActionPolicyOptions, type PageActionRecord, type PageActionRequest, type PageActionScope, type PageActionScopeInput, type PageActionToolSourceOptions, type PageActionUi, type PageAuditSink, PagePerceptionPolicy, type PagePerceptionPolicyOptions, type PagePerceptionReader, type PagePerceptionToolSourceOptions, type ParentBudget, type PerceivedImage, type PerceivedNode, type PerceptionAuditSink, type PerceptionCaptureOptions, type PerceptionRecord, type PerceptionResult, type PerceptionScope, type PerceptionScopeInput, SKILL_GENERATION_SYSTEM_PROMPT, type SkillCandidateSink, type SkillGenerationMessages, type SkillGenerationOutcome, type SkillGenerationPolicy, type SkillGenerationToolSourceOptions, SkillGenerator, type SkillGeneratorOptions, type SubAgentRunInput, type SubAgentRunner, TODO_SYSTEM_PROMPT, type TodoEvent, type TodoItem, type TodoList, type TodoListener, type TodoStatus, TodoStore, type TodoToolSourceOptions, createDelegationToolSource, createHttpDataSourceTransport, createPageActionToolSource, createPagePerceptionToolSource, createSkillGenerationToolSource, createTodoToolSource, toActionFrameScopes, toFrameScopes, withDelegationOrigin };
|
|
1
|
+
import { E as DEFAULT_MAX_DATA_SOURCE_BYTES } from "./index-C9pzXLKy.js";
|
|
2
|
+
import { $ as PerceptionScope, A as PageActionKind, B as PageActionUi, C as MANAGE_TODO_TOOL, Ct as createPageActionToolSource, D as PERCEIVE_PAGE_TOOL, Dt as toActionFrameScopes, E as PAGE_ACTION_TOOL, Et as createTodoToolSource, F as PageActionRequest, G as PagePerceptionToolSourceOptions, H as PagePerceptionPolicy, I as PageActionScope, J as PerceivedNode, K as ParentBudget, L as PageActionScopeInput, M as PageActionPolicy, N as PageActionPolicyOptions, O as PERCEPTION_SYSTEM_PROMPT, Ot as toFrameScopes, P as PageActionRecord, Q as PerceptionResult, R as PageActionTarget, S as ImageCaptureBudget, St as createHttpDataSourceTransport, T as PAGE_ACTION_SYSTEM_PROMPT, Tt as createSkillGenerationToolSource, U as PagePerceptionPolicyOptions, V as PageAuditSink, W as PagePerceptionReader, X as PerceptionCaptureOptions, Y as PerceptionAuditSink, Z as PerceptionRecord, _ as FrameNote, _t as TodoListener, a as DataSourceDef, at as SkillGenerationPolicy, b as GeneratedSkillDraft, bt as TodoToolSourceOptions, c as DataSourcePolicyOptions, ct as SkillGeneratorOptions, d as DelegationBudget, dt as SubAgentRunInput, et as PerceptionScopeInput, f as DelegationOrchestrator, ft as SubAgentRunner, g as DelegationToolSourceOptions, gt as TodoList, h as DelegationResult, ht as TodoItem, i as DataSourceAuditSink, it as SkillGenerationOutcome, j as PageActionOutcome, k as PageActionExecutor, kt as withDelegationOrigin, l as DataSourceRecord, lt as SkillTraceEvidence, m as DelegationRequest, mt as TodoEvent, n as DELEGATE_TASK_TOOL, nt as SkillCandidateSink, o as DataSourceKind, ot as SkillGenerationToolSourceOptions, p as DelegationOrchestratorOptions, pt as TODO_SYSTEM_PROMPT, q as PerceivedImage, r as DELEGATION_SYSTEM_PROMPT, rt as SkillGenerationMessages, s as DataSourcePolicy, st as SkillGenerator, t as ActionFrameScope, tt as SKILL_GENERATION_SYSTEM_PROMPT, u as DataSourceTransport, ut as SkillTraceEvidenceStep, v as FrameScope, vt as TodoStatus, w as PAGE_ACTION_KINDS, wt as createPagePerceptionToolSource, x as HttpDataSourceOptions, xt as createDelegationToolSource, y as GENERATE_SKILL_TOOL, yt as TodoStore, z as PageActionToolSourceOptions } from "./index-DFhU1uks.js";
|
|
3
|
+
export { type ActionFrameScope, DEFAULT_MAX_DATA_SOURCE_BYTES, DELEGATE_TASK_TOOL, DELEGATION_SYSTEM_PROMPT, type DataSourceAuditSink, type DataSourceDef, type DataSourceKind, DataSourcePolicy, type DataSourcePolicyOptions, type DataSourceRecord, type DataSourceTransport, type DelegationBudget, DelegationOrchestrator, type DelegationOrchestratorOptions, type DelegationRequest, type DelegationResult, type DelegationToolSourceOptions, type FrameNote, type FrameScope, GENERATE_SKILL_TOOL, type GeneratedSkillDraft, type HttpDataSourceOptions, type ImageCaptureBudget, MANAGE_TODO_TOOL, PAGE_ACTION_KINDS, PAGE_ACTION_SYSTEM_PROMPT, PAGE_ACTION_TOOL, PERCEIVE_PAGE_TOOL, PERCEPTION_SYSTEM_PROMPT, type PageActionExecutor, type PageActionKind, type PageActionOutcome, PageActionPolicy, type PageActionPolicyOptions, type PageActionRecord, type PageActionRequest, type PageActionScope, type PageActionScopeInput, type PageActionTarget, type PageActionToolSourceOptions, type PageActionUi, type PageAuditSink, PagePerceptionPolicy, type PagePerceptionPolicyOptions, type PagePerceptionReader, type PagePerceptionToolSourceOptions, type ParentBudget, type PerceivedImage, type PerceivedNode, type PerceptionAuditSink, type PerceptionCaptureOptions, type PerceptionRecord, type PerceptionResult, type PerceptionScope, type PerceptionScopeInput, SKILL_GENERATION_SYSTEM_PROMPT, type SkillCandidateSink, type SkillGenerationMessages, type SkillGenerationOutcome, type SkillGenerationPolicy, type SkillGenerationToolSourceOptions, SkillGenerator, type SkillGeneratorOptions, type SkillTraceEvidence, type SkillTraceEvidenceStep, type SubAgentRunInput, type SubAgentRunner, TODO_SYSTEM_PROMPT, type TodoEvent, type TodoItem, type TodoList, type TodoListener, type TodoStatus, TodoStore, type TodoToolSourceOptions, createDelegationToolSource, createHttpDataSourceTransport, createPageActionToolSource, createPagePerceptionToolSource, createSkillGenerationToolSource, createTodoToolSource, toActionFrameScopes, toFrameScopes, withDelegationOrigin };
|
package/dist/agent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as DEFAULT_MAX_DATA_SOURCE_BYTES } from "./dist-
|
|
2
|
-
import { C as createTodoToolSource, E as withDelegationOrigin, S as createSkillGenerationToolSource, T as toFrameScopes, _ as TodoStore, a as GENERATE_SKILL_TOOL, b as createPageActionToolSource, c as PAGE_ACTION_SYSTEM_PROMPT, d as PERCEPTION_SYSTEM_PROMPT, f as PageActionPolicy, g as TODO_SYSTEM_PROMPT, h as SkillGenerator, i as DelegationOrchestrator, l as PAGE_ACTION_TOOL, m as SKILL_GENERATION_SYSTEM_PROMPT, n as DELEGATION_SYSTEM_PROMPT, o as MANAGE_TODO_TOOL, p as PagePerceptionPolicy, r as DataSourcePolicy, s as PAGE_ACTION_KINDS, t as DELEGATE_TASK_TOOL, u as PERCEIVE_PAGE_TOOL, v as createDelegationToolSource, w as toActionFrameScopes, x as createPagePerceptionToolSource, y as createHttpDataSourceTransport } from "./dist-
|
|
1
|
+
import { f as DEFAULT_MAX_DATA_SOURCE_BYTES } from "./dist-sdKFgERo.js";
|
|
2
|
+
import { C as createTodoToolSource, E as withDelegationOrigin, S as createSkillGenerationToolSource, T as toFrameScopes, _ as TodoStore, a as GENERATE_SKILL_TOOL, b as createPageActionToolSource, c as PAGE_ACTION_SYSTEM_PROMPT, d as PERCEPTION_SYSTEM_PROMPT, f as PageActionPolicy, g as TODO_SYSTEM_PROMPT, h as SkillGenerator, i as DelegationOrchestrator, l as PAGE_ACTION_TOOL, m as SKILL_GENERATION_SYSTEM_PROMPT, n as DELEGATION_SYSTEM_PROMPT, o as MANAGE_TODO_TOOL, p as PagePerceptionPolicy, r as DataSourcePolicy, s as PAGE_ACTION_KINDS, t as DELEGATE_TASK_TOOL, u as PERCEIVE_PAGE_TOOL, v as createDelegationToolSource, w as toActionFrameScopes, x as createPagePerceptionToolSource, y as createHttpDataSourceTransport } from "./dist-DU9KDAuR.js";
|
|
3
3
|
|
|
4
4
|
export { DEFAULT_MAX_DATA_SOURCE_BYTES, DELEGATE_TASK_TOOL, DELEGATION_SYSTEM_PROMPT, DataSourcePolicy, DelegationOrchestrator, GENERATE_SKILL_TOOL, MANAGE_TODO_TOOL, PAGE_ACTION_KINDS, PAGE_ACTION_SYSTEM_PROMPT, PAGE_ACTION_TOOL, PERCEIVE_PAGE_TOOL, PERCEPTION_SYSTEM_PROMPT, PageActionPolicy, PagePerceptionPolicy, SKILL_GENERATION_SYSTEM_PROMPT, SkillGenerator, TODO_SYSTEM_PROMPT, TodoStore, createDelegationToolSource, createHttpDataSourceTransport, createPageActionToolSource, createPagePerceptionToolSource, createSkillGenerationToolSource, createTodoToolSource, toActionFrameScopes, toFrameScopes, withDelegationOrigin };
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ct as VerifyResult, L as FileStat, M as ArchiveLimits, R as FileSystemProvider, S as UiBridge, _t as SkillsLockfile, b as RenderResultRequest, c as InteractionResponse, dt as SkillManifest, l as LlmClient, m as LlmStreamEvent, o as InteractionPolicy, p as LlmResponse, s as InteractionRequest, st as SkillInstallSource, u as LlmCompleteInput, v as MemoryStore, wt as WebSkillError, xt as UnsignedPolicy, yt as TrustedKeyStore } from "./types-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Ct as VerifyResult, L as FileStat, M as ArchiveLimits, R as FileSystemProvider, S as UiBridge, _t as SkillsLockfile, b as RenderResultRequest, c as InteractionResponse, dt as SkillManifest, l as LlmClient, m as LlmStreamEvent, o as InteractionPolicy, p as LlmResponse, s as InteractionRequest, st as SkillInstallSource, u as LlmCompleteInput, v as MemoryStore, wt as WebSkillError, xt as UnsignedPolicy, yt as TrustedKeyStore } from "./types-DLctJep_-B5G4uk2u.js";
|
|
2
|
+
import { Bt as ScriptExecutionContext, F as ExternalToolSource, Nn as WebSkillApi, P as ExternalSkillProvider, Rn as bridgeError, S as BridgeResponse, Vt as ScriptExecutor, cr as parseBridgeRequest, dn as ToolResult, it as NetworkPolicy, ln as ToolDefinition, m as ApprovalScope, nt as LinkedDocumentReader, x as BridgeRequest, y as BridgeCapabilities } from "./index-C9pzXLKy.js";
|
|
3
|
+
import { H as PagePerceptionPolicy, J as PerceivedNode, L as PageActionScopeInput, Q as PerceptionResult, W as PagePerceptionReader, X as PerceptionCaptureOptions, et as PerceptionScopeInput, k as PageActionExecutor } from "./index-DFhU1uks.js";
|
|
4
4
|
//#region ../browser/dist/index.d.ts
|
|
5
5
|
//#region src/fs/featureDetection.d.ts
|
|
6
6
|
/** 检测当前环境是否可用 OPFS(navigator.storage.getDirectory) */
|
package/dist/browser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as exportSkills, F as parseSkillPackManifest, G as unzipWithLimits, I as readResponseWithLimit, J as verifySkillSignature, K as validateSkills, L as readSkillSignature, M as messageOf, O as isAtomicTempPath, P as parseSkillMarkdown, T as detectSkillArchiveShapeFromFs, V as resolveInsideRoot, b as buildManifest, c as SKILL_MANIFEST_FILE, d as SKILL_PACK_FILE, g as assertRemoteUrlAllowed, h as WebSkillError, i as MANIFEST_EXCLUDED_FILES, k as isValidSkillName, p as SkillDiscovery, q as verifyManifest, s as SKILLS_LOCKFILE, v as atomicWriteText, y as buildCatalog } from "./dist-Bev6i6Ip.js";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { T as toFrameScopes, w as toActionFrameScopes } from "./dist-
|
|
2
|
+
import { $ as bridgeError, A as ProgressiveRouter, Ct as normalizeToolError, E as GoogleGenAiClient, St as normalizeToolContent, _t as mergeCatalogEntries, b as FsMemoryStore, c as AnthropicClient, k as OpenAiCompatibleClient, nt as createWebSkillApi, s as AgentLoop, u as CapabilityApproval, wt as parseBridgeRequest, x as FsRunSnapshotStore, y as FsArtifactStore, yt as networkPolicyLibSource } from "./dist-sdKFgERo.js";
|
|
3
|
+
import { T as toFrameScopes, w as toActionFrameScopes } from "./dist-DU9KDAuR.js";
|
|
4
4
|
import { n as MockLlmClient } from "./testing-WPTyXQYt.js";
|
|
5
5
|
|
|
6
6
|
//#region ../browser/dist/index.js
|
|
@@ -322,6 +322,7 @@ function makeContext(msg) {
|
|
|
322
322
|
path: path,
|
|
323
323
|
content: typeof content === 'string' ? content : Array.from(content || []),
|
|
324
324
|
mimeType: options && options.mimeType,
|
|
325
|
+
metadata: options && options.metadata,
|
|
325
326
|
});
|
|
326
327
|
},
|
|
327
328
|
confirm: function (message) {
|
|
@@ -1237,7 +1238,10 @@ var BrowserWorkerScriptExecutor = class {
|
|
|
1237
1238
|
});
|
|
1238
1239
|
if (denied) return denied;
|
|
1239
1240
|
const content = typeof request.content === "string" ? request.content : new Uint8Array(request.content);
|
|
1240
|
-
const artifact = await context.writeArtifact(request.path, content, {
|
|
1241
|
+
const artifact = await context.writeArtifact(request.path, content, {
|
|
1242
|
+
...request.mimeType ? { mimeType: request.mimeType } : {},
|
|
1243
|
+
...request.metadata === void 0 ? {} : { metadata: request.metadata }
|
|
1244
|
+
});
|
|
1241
1245
|
return {
|
|
1242
1246
|
id: request.id,
|
|
1243
1247
|
ok: true,
|