@blocklet/pages-kit-agents 0.7.26 → 0.7.28

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