@blocklet/pages-kit-agents 0.7.25 → 0.7.26

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.
@@ -95,6 +95,7 @@ const plannerAgent = core_1.AIAgent.from({
95
95
  ...exports.plannerParamsSchema.shape,
96
96
  structurePlan: structurePlanSchema,
97
97
  }),
98
+ // @ts-expect-error
98
99
  memory,
99
100
  instructions: plannerInstructions,
100
101
  includeInputInOutput: true,
@@ -106,6 +107,7 @@ const validatorAgent = core_1.AIAgent.from({
106
107
  ...exports.plannerParamsSchema.shape,
107
108
  structurePlan: structurePlanSchema,
108
109
  }),
110
+ // @ts-expect-error
109
111
  memory,
110
112
  outputSchema: zod_1.z.object({
111
113
  isApproved: zod_1.z.boolean().describe('结构规划是否符合要求,无缺失 section 且无严重重复内容'),
@@ -57,6 +57,7 @@ exports.designerAgent = core_1.AIAgent.from({
57
57
  }))
58
58
  .describe('过滤后的组件列表,只包含页面中需要的组件'),
59
59
  }),
60
+ // @ts-expect-error
60
61
  memory,
61
62
  instructions: `
62
63
  ${agentInstructions}
@@ -143,6 +143,7 @@ const generatorAgent = core_1.AIAgent.from({
143
143
  ...exports.generatorParamsSchema.shape,
144
144
  templateYaml: templateYamlSchema,
145
145
  }),
146
+ // @ts-expect-error
146
147
  memory,
147
148
  instructions: `
148
149
  ${generatorAgentInstructions}
@@ -153,6 +154,7 @@ const validatorAgent = core_1.AIAgent.from({
153
154
  name: 'validator',
154
155
  description: '验证 Yaml 结构符合 Pages Kit 框架的 Yaml Schema 结构',
155
156
  inputSchema: exports.generatorParamsSchema,
157
+ // @ts-expect-error
156
158
  memory,
157
159
  outputSchema: zod_1.z.object({
158
160
  isApproved: zod_1.z.boolean().describe('模板 Yaml 结构是否符合要求,feedback 中是否存在必须修改的项'),