@webskill/sdk 0.3.0 → 0.4.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/browser.d.ts +2 -2
- package/dist/browser.js +2 -6
- package/dist/{catalogComponents-C_V39rbF-BOHveMWa.js → catalogComponents-KsujmL4b-Clx1kCnU.js} +278 -122
- package/dist/{dist-rorEJsNi.js → dist-C-Sh0MDU.js} +498 -282
- package/dist/{dist-ZKaM8j06.js → dist-D9Lcn5Pp.js} +527 -837
- package/dist/governance.d.ts +45 -10
- package/dist/governance.js +151 -24
- package/dist/{index-wiV5X8Rz.d.ts → index-CHXxDccV.d.ts} +62 -144
- package/dist/{index-8d-oEDww.d.ts → index-DLfR2Y6I.d.ts} +215 -23
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -2
- package/dist/mcp.d.ts +2 -2
- package/dist/mcp.js +1 -1
- package/dist/memoryArtifactStore-BtOeB_hm-tj3fC5ip.js +78 -0
- package/dist/node.d.ts +8 -4
- package/dist/node.js +1 -1
- package/dist/{openUiLibrary-B8-Cvou9-BbpNTXS3.js → openUiLibrary-YLS-cxyT-C96jWDQq.js} +6 -5
- package/dist/{skillVersionStore-DOEI9ptb-BxbYL70B.d.ts → skillVersionStore-uyefLPR1-DXOzbksv.d.ts} +41 -10
- package/dist/{testing-CsrG3XLz.js → testing-DDCJWvgA.js} +7 -5
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +2 -2
- package/dist/{types-AmKCKJn_-VGabeXK4.d.ts → types-7Wcg--Vh-1YlQ4jF9.d.ts} +85 -71
- package/dist/ui-react.d.ts +329 -18
- package/dist/ui-react.js +3714 -3463
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui-vue.js +1 -1
- package/dist/ui.d.ts +4 -3
- package/dist/ui.js +3 -3
- package/dist/{webskillLitCatalog-CNaUpasU-BslMcxRZ.js → webskillLitCatalog-CSTbhBe_-CYIs5BX8.js} +312 -122
- package/package.json +1 -1
- package/dist/jsonRenderRegistry-9GrWP_hE-U6Do3Kid.js +0 -2468
- 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 };
|