@blocklet/pages-kit-block-studio 0.5.47 → 0.5.48
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/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/generate-wrapper-code.js +5 -2
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/generate-wrapper-code.js +5 -2
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/utils/generate-wrapper-code.d.ts +5 -3
- package/package.json +3 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// 导入 Zod 工具集
|
|
2
1
|
import { getPageAllSections } from '@blocklet/pages-kit/utils/page-model';
|
|
3
2
|
import { getComponentDependencies } from '@blocklet/pages-kit/utils/property';
|
|
4
3
|
import { z } from 'zod';
|
|
@@ -483,7 +482,11 @@ export function generatePageDataZodToAgent(state, pageId) {
|
|
|
483
482
|
const zodSchema = propertiesToZodSchema(component.properties || {}, {
|
|
484
483
|
addZodDescribe: false,
|
|
485
484
|
skipAnyType: true,
|
|
486
|
-
|
|
485
|
+
/**
|
|
486
|
+
* @tip 历史原因:section.llmConfig 是在页面模板配置的,component.llmConfig 是在组件配置的,存在一定的优先级关系
|
|
487
|
+
* section.llmConfig > component.llmConfig
|
|
488
|
+
*/
|
|
489
|
+
llmConfig: section.llmConfig?.properties || component.llmConfig?.properties || {},
|
|
487
490
|
});
|
|
488
491
|
// 添加section描述
|
|
489
492
|
sectionSchemas[sectionName] = zodSchema.describe(section.templateDescription || '');
|