@webskill/sdk 0.3.0 → 0.5.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.
Files changed (35) hide show
  1. package/dist/agent.d.ts +2 -0
  2. package/dist/agent.js +867 -0
  3. package/dist/browser.d.ts +137 -4
  4. package/dist/browser.js +458 -22
  5. package/dist/{catalogComponents-C_V39rbF-BOHveMWa.js → catalogComponents-DV7cPpUm-C77AEEx9.js} +477 -157
  6. package/dist/{dist-rorEJsNi.js → dist-6C03DShK.js} +654 -298
  7. package/dist/{dist-ZKaM8j06.js → dist-bewtXYlO.js} +1061 -807
  8. package/dist/governance.d.ts +87 -10
  9. package/dist/governance.js +194 -24
  10. package/dist/{index-wiV5X8Rz.d.ts → index-Bsqg4ftU.d.ts} +151 -143
  11. package/dist/index-D_7ZZjkl.d.ts +411 -0
  12. package/dist/{index-8d-oEDww.d.ts → index-vBz_FC9w.d.ts} +289 -24
  13. package/dist/index.d.ts +3 -3
  14. package/dist/index.js +3 -2
  15. package/dist/mcp.d.ts +2 -2
  16. package/dist/mcp.js +1 -1
  17. package/dist/memoryArtifactStore-BtOeB_hm-tj3fC5ip.js +78 -0
  18. package/dist/node.d.ts +8 -4
  19. package/dist/node.js +1 -1
  20. package/dist/{openUiLibrary-B8-Cvou9-BbpNTXS3.js → openUiLibrary-W3Ce896k-ClFTRZFs.js} +6 -5
  21. package/dist/{skillVersionStore-DOEI9ptb-BxbYL70B.d.ts → skillVersionStore-BzLbzFOL-CxwIewHJ.d.ts} +43 -11
  22. package/dist/{testing-CsrG3XLz.js → testing-DDCJWvgA.js} +7 -5
  23. package/dist/testing.d.ts +1 -1
  24. package/dist/testing.js +2 -2
  25. package/dist/{types-AmKCKJn_-VGabeXK4.d.ts → types-D_hoCri8-BnNPiZCi.d.ts} +111 -72
  26. package/dist/ui-react.d.ts +352 -20
  27. package/dist/ui-react.js +3804 -3478
  28. package/dist/ui-vue.d.ts +1 -1
  29. package/dist/ui-vue.js +25 -6
  30. package/dist/ui.d.ts +4 -3
  31. package/dist/ui.js +3 -3
  32. package/dist/{webskillLitCatalog-CNaUpasU-BslMcxRZ.js → webskillLitCatalog-_mugzRHx-DiuJpCuf.js} +398 -122
  33. package/package.json +6 -1
  34. package/dist/jsonRenderRegistry-9GrWP_hE-U6Do3Kid.js +0 -2468
  35. package/dist/memoryArtifactStore-C9lFVqPF-yFz6yJj0.js +0 -48
@@ -1,48 +0,0 @@
1
- //#region ../runtime/dist/memoryArtifactStore-C9lFVqPF.js
2
- /** 内存 ArtifactStore:测试与浏览器降级用;索引随进程生命周期存在 */
3
- var MemoryArtifactStore = class {
4
- #byRun = /* @__PURE__ */ new Map();
5
- #seq = 0;
6
- async createTextArtifact(input) {
7
- return this.#record({
8
- runId: input.runId,
9
- path: input.path,
10
- type: "text",
11
- size: new TextEncoder().encode(input.content).length,
12
- mimeType: input.mimeType,
13
- metadata: input.metadata
14
- });
15
- }
16
- async createBinaryArtifact(input) {
17
- return this.#record({
18
- runId: input.runId,
19
- path: input.path,
20
- type: "binary",
21
- size: input.content.length,
22
- mimeType: input.mimeType,
23
- metadata: input.metadata
24
- });
25
- }
26
- async listArtifacts(runId) {
27
- return [...this.#byRun.get(runId) ?? []];
28
- }
29
- #record(input) {
30
- const artifact = {
31
- id: `art-${++this.#seq}`,
32
- runId: input.runId,
33
- path: input.path,
34
- type: input.type,
35
- mimeType: input.mimeType,
36
- size: input.size,
37
- createdAt: (/* @__PURE__ */ new Date()).toISOString(),
38
- metadata: input.metadata
39
- };
40
- const list = this.#byRun.get(input.runId) ?? [];
41
- list.push(artifact);
42
- this.#byRun.set(input.runId, list);
43
- return artifact;
44
- }
45
- };
46
-
47
- //#endregion
48
- export { MemoryArtifactStore as t };