@blocklet/pages-kit-agents 0.7.27 → 0.7.29

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.
@@ -92,7 +92,6 @@ const plannerAgent = AIAgent.from({
92
92
  ...plannerParamsSchema.shape,
93
93
  structurePlan: structurePlanSchema,
94
94
  }),
95
- // @ts-expect-error
96
95
  memory,
97
96
  instructions: plannerInstructions,
98
97
  includeInputInOutput: true,
@@ -104,7 +103,6 @@ const validatorAgent = AIAgent.from({
104
103
  ...plannerParamsSchema.shape,
105
104
  structurePlan: structurePlanSchema,
106
105
  }),
107
- // @ts-expect-error
108
106
  memory,
109
107
  outputSchema: z.object({
110
108
  isApproved: z.boolean().describe('结构规划是否符合要求,无缺失 section 且无严重重复内容'),
@@ -54,7 +54,6 @@ export const designerAgent = AIAgent.from({
54
54
  }))
55
55
  .describe('过滤后的组件列表,只包含页面中需要的组件'),
56
56
  }),
57
- // @ts-expect-error
58
57
  memory,
59
58
  instructions: `
60
59
  ${agentInstructions}
@@ -137,7 +137,6 @@ const generatorAgent = AIAgent.from({
137
137
  ...generatorParamsSchema.shape,
138
138
  templateYaml: templateYamlSchema,
139
139
  }),
140
- // @ts-expect-error
141
140
  memory,
142
141
  instructions: `
143
142
  ${generatorAgentInstructions}
@@ -148,7 +147,6 @@ const validatorAgent = AIAgent.from({
148
147
  name: 'validator',
149
148
  description: '验证 Yaml 结构符合 Pages Kit 框架的 Yaml Schema 结构',
150
149
  inputSchema: generatorParamsSchema,
151
- // @ts-expect-error
152
150
  memory,
153
151
  outputSchema: z.object({
154
152
  isApproved: z.boolean().describe('模板 Yaml 结构是否符合要求,feedback 中是否存在必须修改的项'),