@blocklet/pages-kit-agents 0.5.14 → 0.5.16

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.
@@ -26,3 +26,16 @@ export declare function saveHtmlContent({ htmlContent, outputFolder, outputFileN
26
26
  outputFolder: string;
27
27
  outputFileName: string;
28
28
  }): Promise<string>;
29
+ /**
30
+ * 保存JSON内容到指定目录
31
+ * @param jsonContent 要保存的JSON数据
32
+ * @param outputFolder 输出文件夹路径
33
+ * @param outputFileName 输出JSON文件名称,不包含扩展名
34
+ * @returns 生成的JSON文件的完整路径
35
+ * @throws 如果无法创建输出目录或写入文件则抛出异常
36
+ */
37
+ export declare function saveJsonContent({ jsonContent, outputFolder, outputFileName, }: {
38
+ jsonContent: Record<string, any> | string;
39
+ outputFolder: string;
40
+ outputFileName: string;
41
+ }): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit-agents",
3
- "version": "0.5.14",
3
+ "version": "0.5.16",
4
4
  "description": "AIGNE based agents for pages kit",
5
5
  "author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
6
6
  "homepage": "https://github.com/blocklet/pages-kit#readme",
@@ -30,7 +30,7 @@
30
30
  "open": "^10.1.2",
31
31
  "yargs": "^17.7.2",
32
32
  "zod": "^3.24.2",
33
- "@blocklet/pages-kit-block-studio": "0.5.14"
33
+ "@blocklet/pages-kit-block-studio": "0.5.16"
34
34
  },
35
35
  "scripts": {
36
36
  "start": "npx -y bun run cli.ts",