@autobe/agent 0.25.4 → 0.25.6

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.
Files changed (148) hide show
  1. package/lib/AutoBeMockAgent.js +1 -1
  2. package/lib/AutoBeMockAgent.js.map +1 -1
  3. package/lib/constants/AutoBeSystemPromptConstant.d.ts +12 -13
  4. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  5. package/lib/context/AutoBeTokenUsage.d.ts +2 -2
  6. package/lib/context/AutoBeTokenUsage.js.map +1 -1
  7. package/lib/context/{IAutoBeApplication.d.ts → IAutoBeFacadeApplication.d.ts} +15 -83
  8. package/lib/context/{IAutoBeApplicationProps.js → IAutoBeFacadeApplication.js} +1 -1
  9. package/lib/context/IAutoBeFacadeApplication.js.map +1 -0
  10. package/lib/context/{IAutoBeApplicationProps.d.ts → IAutoBeFacadeApplicationProps.d.ts} +1 -1
  11. package/lib/context/{IAutoBeApplication.js → IAutoBeFacadeApplicationProps.js} +1 -1
  12. package/lib/context/IAutoBeFacadeApplicationProps.js.map +1 -0
  13. package/lib/context/{IAutoBeApplicationResult.d.ts → IAutoBeFacadeApplicationResult.d.ts} +1 -1
  14. package/lib/context/{IAutoBeApplicationResult.js → IAutoBeFacadeApplicationResult.js} +1 -1
  15. package/lib/context/IAutoBeFacadeApplicationResult.js.map +1 -0
  16. package/lib/factory/createAgenticaHistory.js +3 -1
  17. package/lib/factory/createAgenticaHistory.js.map +1 -1
  18. package/lib/factory/createAutoBeApplication.js +38 -76
  19. package/lib/factory/createAutoBeApplication.js.map +1 -1
  20. package/lib/factory/createAutoBeContext.js +10 -11
  21. package/lib/factory/createAutoBeContext.js.map +1 -1
  22. package/lib/index.mjs +2109 -1667
  23. package/lib/index.mjs.map +1 -1
  24. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +0 -1
  25. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
  26. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +1 -1
  27. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +3 -18
  28. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
  29. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +0 -1
  30. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +1 -13
  31. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
  32. package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +1 -2
  33. package/lib/orchestrate/analyze/orchestrateAnalyze.js +2 -4
  34. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  35. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +1 -1
  36. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +2 -2
  37. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
  38. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +0 -1
  39. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
  40. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +1 -0
  41. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +370 -275
  42. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
  43. package/lib/orchestrate/facade/transformFacadeStateMessage.js +1 -1
  44. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
  45. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js +0 -4
  46. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -1
  47. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +10 -7
  48. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
  49. package/lib/orchestrate/interface/histories/transformInterfaceCommonHistories.d.ts +3 -0
  50. package/lib/orchestrate/interface/histories/{transformInterfaceCommonPrerequisiteHistories.js → transformInterfaceCommonHistories.js} +4 -4
  51. package/lib/orchestrate/interface/histories/transformInterfaceCommonHistories.js.map +1 -0
  52. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +12 -9
  53. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
  54. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +10 -7
  55. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
  56. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +1 -1
  57. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
  58. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +13 -10
  59. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
  60. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +10 -7
  61. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
  62. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +1 -1
  63. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
  64. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +10 -7
  65. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
  66. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +1 -1
  67. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
  68. package/lib/orchestrate/interface/orchestrateInterface.d.ts +2 -2
  69. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
  70. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +10 -5
  71. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
  72. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js +2 -2
  73. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
  74. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +9 -6
  75. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
  76. package/lib/orchestrate/prisma/orchestratePrisma.d.ts +2 -2
  77. package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
  78. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +370 -275
  79. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -1
  80. package/lib/orchestrate/realize/orchestrateRealize.d.ts +2 -2
  81. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  82. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +304 -221
  83. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
  84. package/lib/orchestrate/realize/orchestrateRealizeWrite.js +303 -220
  85. package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
  86. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +8 -5
  87. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
  88. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +8 -5
  89. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +1 -1
  90. package/lib/orchestrate/test/histories/transformTestWriteHistories.js +8 -5
  91. package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
  92. package/lib/orchestrate/test/orchestrateTest.d.ts +2 -2
  93. package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
  94. package/lib/orchestrate/test/orchestrateTestCorrect.js +17 -22
  95. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  96. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +372 -277
  97. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
  98. package/lib/orchestrate/test/orchestrateTestWrite.js +322 -350
  99. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  100. package/lib/utils/validateEmptyCode.d.ts +8 -0
  101. package/lib/utils/validateEmptyCode.js +35 -0
  102. package/lib/utils/validateEmptyCode.js.map +1 -0
  103. package/package.json +6 -6
  104. package/src/AutoBeMockAgent.ts +1 -1
  105. package/src/constants/AutoBeSystemPromptConstant.ts +12 -13
  106. package/src/context/AutoBeTokenUsage.ts +2 -2
  107. package/src/context/{IAutoBeApplication.ts → IAutoBeFacadeApplication.ts} +15 -83
  108. package/src/context/{IAutoBeApplicationProps.ts → IAutoBeFacadeApplicationProps.ts} +1 -1
  109. package/src/context/{IAutoBeApplicationResult.ts → IAutoBeFacadeApplicationResult.ts} +1 -1
  110. package/src/factory/createAgenticaHistory.ts +5 -4
  111. package/src/factory/createAutoBeApplication.ts +6 -6
  112. package/src/factory/createAutoBeContext.ts +2 -3
  113. package/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.ts +0 -1
  114. package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +0 -16
  115. package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +0 -13
  116. package/src/orchestrate/analyze/orchestrateAnalyze.ts +71 -74
  117. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +1 -2
  118. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +0 -1
  119. package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +52 -10
  120. package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +0 -4
  121. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +9 -6
  122. package/src/orchestrate/interface/histories/{transformInterfaceCommonPrerequisiteHistories.ts → transformInterfaceCommonHistories.ts} +1 -1
  123. package/src/orchestrate/interface/histories/transformInterfaceComplementHistories.ts +9 -6
  124. package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +9 -6
  125. package/src/orchestrate/interface/histories/transformInterfaceGroupHistories.ts +11 -10
  126. package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +9 -6
  127. package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +9 -6
  128. package/src/orchestrate/interface/orchestrateInterface.ts +2 -2
  129. package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +9 -4
  130. package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +8 -5
  131. package/src/orchestrate/prisma/orchestratePrisma.ts +2 -2
  132. package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +58 -17
  133. package/src/orchestrate/realize/orchestrateRealize.ts +2 -2
  134. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +51 -15
  135. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +46 -12
  136. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +8 -5
  137. package/src/orchestrate/test/histories/transformTestScenarioReviewHistories.ts +8 -5
  138. package/src/orchestrate/test/histories/transformTestWriteHistories.ts +8 -5
  139. package/src/orchestrate/test/orchestrateTest.ts +2 -2
  140. package/src/orchestrate/test/orchestrateTestCorrect.ts +17 -24
  141. package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +57 -10
  142. package/src/orchestrate/test/orchestrateTestWrite.ts +41 -10
  143. package/src/utils/validateEmptyCode.ts +41 -0
  144. package/lib/context/IAutoBeApplication.js.map +0 -1
  145. package/lib/context/IAutoBeApplicationProps.js.map +0 -1
  146. package/lib/context/IAutoBeApplicationResult.js.map +0 -1
  147. package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.d.ts +0 -3
  148. package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.js.map +0 -1
@@ -47,10 +47,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.orchestrateRealizeWrite = orchestrateRealizeWrite;
49
49
  const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
50
+ const __typia_transform__llmApplicationFinalize = __importStar(require("typia/lib/internal/_llmApplicationFinalize.js"));
50
51
  const utils_1 = require("@autobe/utils");
51
52
  const typia_1 = __importDefault(require("typia"));
52
53
  const uuid_1 = require("uuid");
53
54
  const assertSchemaModel_1 = require("../../context/assertSchemaModel");
55
+ const validateEmptyCode_1 = require("../../utils/validateEmptyCode");
54
56
  const transformRealizeWriteHistories_1 = require("./histories/transformRealizeWriteHistories");
55
57
  const getRealizeWriteDto_1 = require("./utils/getRealizeWriteDto");
56
58
  const replaceImportStatements_1 = require("./utils/replaceImportStatements");
@@ -72,6 +74,7 @@ function orchestrateRealizeWrite(ctx, props) {
72
74
  }),
73
75
  controller: createController({
74
76
  model: ctx.model,
77
+ functionName: props.scenario.functionName,
75
78
  build: (next) => {
76
79
  pointer.value = next;
77
80
  },
@@ -128,7 +131,75 @@ function orchestrateRealizeWrite(ctx, props) {
128
131
  }
129
132
  function createController(props) {
130
133
  (0, assertSchemaModel_1.assertSchemaModel)(props.model);
131
- const application = collection[props.model];
134
+ const validate = (input) => {
135
+ const result = (() => { const _io0 = input => "string" === typeof input.plan && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.plan || _report(_exceptionable, {
136
+ path: _path + ".plan",
137
+ expected: "string",
138
+ value: input.plan
139
+ }), "string" === typeof input.draft || _report(_exceptionable, {
140
+ path: _path + ".draft",
141
+ expected: "string",
142
+ value: input.draft
143
+ }), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
144
+ path: _path + ".revise",
145
+ expected: "IAutoBeRealizeWriteApplication.IReviseProps",
146
+ value: input.revise
147
+ })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
148
+ path: _path + ".revise",
149
+ expected: "IAutoBeRealizeWriteApplication.IReviseProps",
150
+ value: input.revise
151
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
152
+ path: _path + ".review",
153
+ expected: "string",
154
+ value: input.review
155
+ }), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
156
+ path: _path + ".final",
157
+ expected: "(null | string)",
158
+ value: input.final
159
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
160
+ if (false === __is(input)) {
161
+ errors = [];
162
+ _report = __typia_transform__validateReport._validateReport(errors);
163
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
164
+ path: _path + "",
165
+ expected: "IAutoBeRealizeWriteApplication.IProps",
166
+ value: input
167
+ })) && _vo0(input, _path + "", true) || _report(true, {
168
+ path: _path + "",
169
+ expected: "IAutoBeRealizeWriteApplication.IProps",
170
+ value: input
171
+ }))(input, "$input", true);
172
+ const success = 0 === errors.length;
173
+ return success ? {
174
+ success,
175
+ data: input
176
+ } : {
177
+ success,
178
+ errors,
179
+ data: input
180
+ };
181
+ }
182
+ return {
183
+ success: true,
184
+ data: input
185
+ };
186
+ }; })()(input);
187
+ if (result.success === false)
188
+ return result;
189
+ const errors = (0, validateEmptyCode_1.validateEmptyCode)({
190
+ functionName: props.functionName,
191
+ draft: result.data.draft,
192
+ revise: result.data.revise,
193
+ });
194
+ return errors.length
195
+ ? {
196
+ success: false,
197
+ errors,
198
+ data: result.data,
199
+ }
200
+ : result;
201
+ };
202
+ const application = collection[props.model === "chatgpt" ? "chatgpt" : "claude"](validate);
132
203
  return {
133
204
  protocol: "class",
134
205
  name: "Write code",
@@ -140,240 +211,252 @@ function createController(props) {
140
211
  },
141
212
  };
142
213
  }
143
- const claude = {
144
- model: "claude",
145
- options: {
146
- reference: true,
147
- separate: null
148
- },
149
- functions: [
150
- {
151
- name: "write",
152
- parameters: {
153
- description: " Chain of Thinking properties for implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeWriteApplication.IProps}",
154
- type: "object",
155
- properties: {
156
- plan: {
157
- description: "Implementation plan and strategy.\n\nAnalyzes the provider function requirements, identifies related Prisma\nschemas, and outlines the implementation approach. Includes schema\nvalidation and API contract verification.",
158
- type: "string"
159
- },
160
- draft: {
161
- description: "Initial implementation draft.\n\nThe first complete implementation attempt based on the plan. May contain\nareas that need refinement in the review phase.",
162
- type: "string"
163
- },
164
- revise: {
165
- description: "Revision and finalization phase.\n\nReviews the draft implementation and produces the final code with all\nimprovements and corrections applied.",
166
- $ref: "#/$defs/IAutoBeRealizeWriteApplication.IReviseProps"
167
- }
168
- },
169
- required: [
170
- "plan",
171
- "draft",
172
- "revise"
173
- ],
174
- additionalProperties: false,
175
- $defs: {
176
- "IAutoBeRealizeWriteApplication.IReviseProps": {
214
+ const collection = {
215
+ chatgpt: (validate) => (() => {
216
+ const application = {
217
+ model: "chatgpt",
218
+ options: {
219
+ reference: true,
220
+ strict: false,
221
+ separate: null
222
+ },
223
+ functions: [
224
+ {
225
+ name: "write",
226
+ parameters: {
227
+ description: " Chain of Thinking properties for implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeWriteApplication.IProps}\n\n### Description of {@link revise} property:\n\n> Revision and finalization phase.\n> \n> Reviews the draft implementation and produces the final code with all\n> improvements and corrections applied.",
177
228
  type: "object",
178
229
  properties: {
179
- review: {
180
- description: "Review and improvement suggestions.\n\nIdentifies areas for improvement in the draft code, including:\n\n- Type safety enhancements\n- Prisma query optimizations\n- Null/undefined handling corrections\n- Authentication/authorization improvements\n- Error handling refinements",
230
+ plan: {
231
+ description: "Implementation plan and strategy.\n\nAnalyzes the provider function requirements, identifies related Prisma\nschemas, and outlines the implementation approach. Includes schema\nvalidation and API contract verification.",
181
232
  type: "string"
182
233
  },
183
- final: {
184
- description: "Final implementation code.\n\nThe complete, production-ready implementation with all review suggestions\napplied.\n\nReturns `null` if the draft is already perfect and needs no changes.",
185
- oneOf: [
186
- {
187
- type: "null"
188
- },
189
- {
234
+ draft: {
235
+ description: "Initial implementation draft.\n\nThe first complete implementation attempt based on the plan. May contain\nareas that need refinement in the review phase.",
236
+ type: "string"
237
+ },
238
+ revise: {
239
+ $ref: "#/$defs/IAutoBeRealizeWriteApplication.IReviseProps"
240
+ }
241
+ },
242
+ required: [
243
+ "plan",
244
+ "draft",
245
+ "revise"
246
+ ],
247
+ additionalProperties: false,
248
+ $defs: {
249
+ "IAutoBeRealizeWriteApplication.IReviseProps": {
250
+ type: "object",
251
+ properties: {
252
+ review: {
253
+ description: "Review and improvement suggestions.\n\nIdentifies areas for improvement in the draft code, including:\n\n- Type safety enhancements\n- Prisma query optimizations\n- Null/undefined handling corrections\n- Authentication/authorization improvements\n- Error handling refinements",
190
254
  type: "string"
255
+ },
256
+ final: {
257
+ description: "Final implementation code.\n\nThe complete, production-ready implementation with all review suggestions\napplied.\n\nReturns `null` if the draft is already perfect and needs no changes.",
258
+ anyOf: [
259
+ {
260
+ type: "null"
261
+ },
262
+ {
263
+ type: "string"
264
+ }
265
+ ]
191
266
  }
267
+ },
268
+ required: [
269
+ "review",
270
+ "final"
192
271
  ]
193
272
  }
194
- },
195
- required: [
196
- "review",
197
- "final"
198
- ]
199
- }
273
+ }
274
+ },
275
+ description: "Generate complete provider function implementation using Chain of Thinking.\n\nFollows a 3-phase process: plan \u2192 draft \u2192 revise.\n\nEnsures type safety, proper Prisma usage, and API contract compliance.",
276
+ validate: (() => { const _io0 = input => "string" === typeof input.plan && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.plan || _report(_exceptionable, {
277
+ path: _path + ".plan",
278
+ expected: "string",
279
+ value: input.plan
280
+ }), "string" === typeof input.draft || _report(_exceptionable, {
281
+ path: _path + ".draft",
282
+ expected: "string",
283
+ value: input.draft
284
+ }), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
285
+ path: _path + ".revise",
286
+ expected: "IAutoBeRealizeWriteApplication.IReviseProps",
287
+ value: input.revise
288
+ })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
289
+ path: _path + ".revise",
290
+ expected: "IAutoBeRealizeWriteApplication.IReviseProps",
291
+ value: input.revise
292
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
293
+ path: _path + ".review",
294
+ expected: "string",
295
+ value: input.review
296
+ }), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
297
+ path: _path + ".final",
298
+ expected: "(null | string)",
299
+ value: input.final
300
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
301
+ if (false === __is(input)) {
302
+ errors = [];
303
+ _report = __typia_transform__validateReport._validateReport(errors);
304
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
305
+ path: _path + "",
306
+ expected: "IAutoBeRealizeWriteApplication.IProps",
307
+ value: input
308
+ })) && _vo0(input, _path + "", true) || _report(true, {
309
+ path: _path + "",
310
+ expected: "IAutoBeRealizeWriteApplication.IProps",
311
+ value: input
312
+ }))(input, "$input", true);
313
+ const success = 0 === errors.length;
314
+ return success ? {
315
+ success,
316
+ data: input
317
+ } : {
318
+ success,
319
+ errors,
320
+ data: input
321
+ };
322
+ }
323
+ return {
324
+ success: true,
325
+ data: input
326
+ };
327
+ }; })()
200
328
  }
329
+ ]
330
+ };
331
+ __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
332
+ validate: {
333
+ write: validate,
201
334
  },
202
- description: "Generate complete provider function implementation using Chain of Thinking.\n\nFollows a 3-phase process: plan \u2192 draft \u2192 revise.\n\nEnsures type safety, proper Prisma usage, and API contract compliance.",
203
- validate: (() => { const _io0 = input => "string" === typeof input.plan && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.plan || _report(_exceptionable, {
204
- path: _path + ".plan",
205
- expected: "string",
206
- value: input.plan
207
- }), "string" === typeof input.draft || _report(_exceptionable, {
208
- path: _path + ".draft",
209
- expected: "string",
210
- value: input.draft
211
- }), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
212
- path: _path + ".revise",
213
- expected: "IAutoBeRealizeWriteApplication.IReviseProps",
214
- value: input.revise
215
- })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
216
- path: _path + ".revise",
217
- expected: "IAutoBeRealizeWriteApplication.IReviseProps",
218
- value: input.revise
219
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
220
- path: _path + ".review",
221
- expected: "string",
222
- value: input.review
223
- }), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
224
- path: _path + ".final",
225
- expected: "(null | string)",
226
- value: input.final
227
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
228
- if (false === __is(input)) {
229
- errors = [];
230
- _report = __typia_transform__validateReport._validateReport(errors);
231
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
232
- path: _path + "",
233
- expected: "IAutoBeRealizeWriteApplication.IProps",
234
- value: input
235
- })) && _vo0(input, _path + "", true) || _report(true, {
236
- path: _path + "",
237
- expected: "IAutoBeRealizeWriteApplication.IProps",
238
- value: input
239
- }))(input, "$input", true);
240
- const success = 0 === errors.length;
241
- return success ? {
242
- success,
243
- data: input
244
- } : {
245
- success,
246
- errors,
247
- data: input
248
- };
249
- }
250
- return {
251
- success: true,
252
- data: input
253
- };
254
- }; })()
255
- }
256
- ]
257
- };
258
- const collection = {
259
- chatgpt: {
260
- model: "chatgpt",
261
- options: {
262
- reference: true,
263
- strict: false,
264
- separate: null
265
- },
266
- functions: [
267
- {
268
- name: "write",
269
- parameters: {
270
- description: " Chain of Thinking properties for implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeWriteApplication.IProps}\n\n### Description of {@link revise} property:\n\n> Revision and finalization phase.\n> \n> Reviews the draft implementation and produces the final code with all\n> improvements and corrections applied.",
271
- type: "object",
272
- properties: {
273
- plan: {
274
- description: "Implementation plan and strategy.\n\nAnalyzes the provider function requirements, identifies related Prisma\nschemas, and outlines the implementation approach. Includes schema\nvalidation and API contract verification.",
275
- type: "string"
276
- },
277
- draft: {
278
- description: "Initial implementation draft.\n\nThe first complete implementation attempt based on the plan. May contain\nareas that need refinement in the review phase.",
279
- type: "string"
335
+ }), { equals: false }));
336
+ return application;
337
+ })(),
338
+ claude: (validate) => (() => {
339
+ const application = {
340
+ model: "claude",
341
+ options: {
342
+ reference: true,
343
+ separate: null
344
+ },
345
+ functions: [
346
+ {
347
+ name: "write",
348
+ parameters: {
349
+ description: " Chain of Thinking properties for implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeWriteApplication.IProps}",
350
+ type: "object",
351
+ properties: {
352
+ plan: {
353
+ description: "Implementation plan and strategy.\n\nAnalyzes the provider function requirements, identifies related Prisma\nschemas, and outlines the implementation approach. Includes schema\nvalidation and API contract verification.",
354
+ type: "string"
355
+ },
356
+ draft: {
357
+ description: "Initial implementation draft.\n\nThe first complete implementation attempt based on the plan. May contain\nareas that need refinement in the review phase.",
358
+ type: "string"
359
+ },
360
+ revise: {
361
+ description: "Revision and finalization phase.\n\nReviews the draft implementation and produces the final code with all\nimprovements and corrections applied.",
362
+ $ref: "#/$defs/IAutoBeRealizeWriteApplication.IReviseProps"
363
+ }
280
364
  },
281
- revise: {
282
- $ref: "#/$defs/IAutoBeRealizeWriteApplication.IReviseProps"
365
+ required: [
366
+ "plan",
367
+ "draft",
368
+ "revise"
369
+ ],
370
+ additionalProperties: false,
371
+ $defs: {
372
+ "IAutoBeRealizeWriteApplication.IReviseProps": {
373
+ type: "object",
374
+ properties: {
375
+ review: {
376
+ description: "Review and improvement suggestions.\n\nIdentifies areas for improvement in the draft code, including:\n\n- Type safety enhancements\n- Prisma query optimizations\n- Null/undefined handling corrections\n- Authentication/authorization improvements\n- Error handling refinements",
377
+ type: "string"
378
+ },
379
+ final: {
380
+ description: "Final implementation code.\n\nThe complete, production-ready implementation with all review suggestions\napplied.\n\nReturns `null` if the draft is already perfect and needs no changes.",
381
+ oneOf: [
382
+ {
383
+ type: "null"
384
+ },
385
+ {
386
+ type: "string"
387
+ }
388
+ ]
389
+ }
390
+ },
391
+ required: [
392
+ "review",
393
+ "final"
394
+ ]
395
+ }
283
396
  }
284
397
  },
285
- required: [
286
- "plan",
287
- "draft",
288
- "revise"
289
- ],
290
- additionalProperties: false,
291
- $defs: {
292
- "IAutoBeRealizeWriteApplication.IReviseProps": {
293
- type: "object",
294
- properties: {
295
- review: {
296
- description: "Review and improvement suggestions.\n\nIdentifies areas for improvement in the draft code, including:\n\n- Type safety enhancements\n- Prisma query optimizations\n- Null/undefined handling corrections\n- Authentication/authorization improvements\n- Error handling refinements",
297
- type: "string"
298
- },
299
- final: {
300
- description: "Final implementation code.\n\nThe complete, production-ready implementation with all review suggestions\napplied.\n\nReturns `null` if the draft is already perfect and needs no changes.",
301
- anyOf: [
302
- {
303
- type: "null"
304
- },
305
- {
306
- type: "string"
307
- }
308
- ]
309
- }
310
- },
311
- required: [
312
- "review",
313
- "final"
314
- ]
398
+ description: "Generate complete provider function implementation using Chain of Thinking.\n\nFollows a 3-phase process: plan \u2192 draft \u2192 revise.\n\nEnsures type safety, proper Prisma usage, and API contract compliance.",
399
+ validate: (() => { const _io0 = input => "string" === typeof input.plan && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.plan || _report(_exceptionable, {
400
+ path: _path + ".plan",
401
+ expected: "string",
402
+ value: input.plan
403
+ }), "string" === typeof input.draft || _report(_exceptionable, {
404
+ path: _path + ".draft",
405
+ expected: "string",
406
+ value: input.draft
407
+ }), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
408
+ path: _path + ".revise",
409
+ expected: "IAutoBeRealizeWriteApplication.IReviseProps",
410
+ value: input.revise
411
+ })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
412
+ path: _path + ".revise",
413
+ expected: "IAutoBeRealizeWriteApplication.IReviseProps",
414
+ value: input.revise
415
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
416
+ path: _path + ".review",
417
+ expected: "string",
418
+ value: input.review
419
+ }), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
420
+ path: _path + ".final",
421
+ expected: "(null | string)",
422
+ value: input.final
423
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
424
+ if (false === __is(input)) {
425
+ errors = [];
426
+ _report = __typia_transform__validateReport._validateReport(errors);
427
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
428
+ path: _path + "",
429
+ expected: "IAutoBeRealizeWriteApplication.IProps",
430
+ value: input
431
+ })) && _vo0(input, _path + "", true) || _report(true, {
432
+ path: _path + "",
433
+ expected: "IAutoBeRealizeWriteApplication.IProps",
434
+ value: input
435
+ }))(input, "$input", true);
436
+ const success = 0 === errors.length;
437
+ return success ? {
438
+ success,
439
+ data: input
440
+ } : {
441
+ success,
442
+ errors,
443
+ data: input
444
+ };
315
445
  }
316
- }
317
- },
318
- description: "Generate complete provider function implementation using Chain of Thinking.\n\nFollows a 3-phase process: plan \u2192 draft \u2192 revise.\n\nEnsures type safety, proper Prisma usage, and API contract compliance.",
319
- validate: (() => { const _io0 = input => "string" === typeof input.plan && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.plan || _report(_exceptionable, {
320
- path: _path + ".plan",
321
- expected: "string",
322
- value: input.plan
323
- }), "string" === typeof input.draft || _report(_exceptionable, {
324
- path: _path + ".draft",
325
- expected: "string",
326
- value: input.draft
327
- }), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
328
- path: _path + ".revise",
329
- expected: "IAutoBeRealizeWriteApplication.IReviseProps",
330
- value: input.revise
331
- })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
332
- path: _path + ".revise",
333
- expected: "IAutoBeRealizeWriteApplication.IReviseProps",
334
- value: input.revise
335
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
336
- path: _path + ".review",
337
- expected: "string",
338
- value: input.review
339
- }), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
340
- path: _path + ".final",
341
- expected: "(null | string)",
342
- value: input.final
343
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
344
- if (false === __is(input)) {
345
- errors = [];
346
- _report = __typia_transform__validateReport._validateReport(errors);
347
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
348
- path: _path + "",
349
- expected: "IAutoBeRealizeWriteApplication.IProps",
350
- value: input
351
- })) && _vo0(input, _path + "", true) || _report(true, {
352
- path: _path + "",
353
- expected: "IAutoBeRealizeWriteApplication.IProps",
354
- value: input
355
- }))(input, "$input", true);
356
- const success = 0 === errors.length;
357
- return success ? {
358
- success,
359
- data: input
360
- } : {
361
- success,
362
- errors,
446
+ return {
447
+ success: true,
363
448
  data: input
364
449
  };
365
- }
366
- return {
367
- success: true,
368
- data: input
369
- };
370
- }; })()
371
- }
372
- ]
373
- },
374
- claude,
375
- llama: claude,
376
- deepseek: claude,
377
- "3.1": claude,
450
+ }; })()
451
+ }
452
+ ]
453
+ };
454
+ __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
455
+ validate: {
456
+ write: validate,
457
+ },
458
+ }), { equals: false }));
459
+ return application;
460
+ })(),
378
461
  };
379
462
  //# sourceMappingURL=orchestrateRealizeWrite.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateRealizeWrite.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,0DAgFC;;AA9FD,yCAA2C;AAG3C,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,+FAA4F;AAG5F,mEAAgE;AAChE,6EAA0E;AAE1E,SAAsB,uBAAuB,CAC3C,GAAyB,EACzB,KAOC;;;QAED,MAAM,OAAO,GAA2D;YACtE,KAAK,EAAE,IAAI;SACZ,CAAC;QAEF,MAAM,GAAG,GAAG,MAAM,IAAA,uCAAkB,EAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACpE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC;YAC1C,MAAM,EAAE,cAAc;YACtB,SAAS,EAAE,IAAA,+DAA8B,EAAC;gBACxC,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE;gBAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,aAAa,EAAE,KAAK,CAAC,aAAa;gBAClC,mBAAmB,EAAE,KAAK,CAAC,mBAAmB;gBAC9C,GAAG;aACJ,CAAC;YACF,UAAU,EAAE,gBAAgB,CAAC;gBAC3B,KAAK,EAAE,GAAG,CAAC,KAAK;gBAChB,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;oBACd,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;gBACvB,CAAC;aACF,CAAC;YACF,mBAAmB,EAAE,IAAI;YACzB,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,OAAO,EAAE,kBAAU,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;KAgBvB;SACF,CAAC,CAAC;QACH,IAAI,OAAO,CAAC,KAAK,KAA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mCAAI,CAAC;YACpC,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC,CAAC;QACF,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACpB,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AAED,SAAS,gBAAgB,CAAiC,KAGzD;IACC,IAAA,qCAAiB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE/B,MAAM,WAAW,GAA2B,UAAU,CACpD,KAAK,CAAC,KAAK,CACwD,CAAC;IAEtE,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,YAAY;QAClB,WAAW;QACX,OAAO,EAAE;YACP,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;gBACd,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;SACuC;KAC3C,CAAC;AACJ,CAAC;AAED,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGT,CAAC;AACJ,MAAM,UAAU,GAAG;IACjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAoE;IAC3E,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
1
+ {"version":3,"file":"orchestrateRealizeWrite.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,0DAiFC;;;AArGD,yCAA2C;AAQ3C,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE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EAAE,QAAQ;aAChB;SACF;;QAAC;IACJ,MAAM,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACkC;YAC9D,QAAQ,EAAE;gBACR,KAAK,EAAE,QAAQ;aAChB;SACF;;QAAC;CACL,CAAC"}
@@ -37,16 +37,19 @@ const transformTestScenarioHistories = (props) => {
37
37
  text: utils_1.StringUtil.trim `
38
38
  ## Instructions
39
39
 
40
- The following e2e-test-specific instructions were extracted by AI from
40
+ The following e2e-test-specific instructions were extracted from
41
41
  the user's requirements and conversations. These instructions focus
42
42
  exclusively on test-related aspects such as test coverage priorities,
43
43
  specific edge cases to validate, business logic verification strategies,
44
44
  and critical user workflows that must be tested.
45
45
 
46
- Apply these instructions when generating test scenarios to ensure the
47
- tests align with the user's testing requirements and expectations.
48
- If any instructions are not relevant to the target API operations,
49
- you may ignore them.
46
+ Follow these instructions when generating test scenarios.
47
+ Carefully distinguish between:
48
+ - Suggestions or recommendations (consider these as guidance)
49
+ - Direct specifications or explicit commands (these must be followed exactly)
50
+
51
+ When instructions contain direct specifications or explicit design decisions,
52
+ follow them precisely even if you believe you have better alternatives.
50
53
 
51
54
  ${props.instruction}
52
55
 
@@ -1 +1 @@
1
- {"version":3,"file":"transformTestScenarioHistories.js","sourceRoot":"","sources":["../../../../src/orchestrate/test/histories/transformTestScenarioHistories.ts"],"names":[],"mappings":";;;AAEA,yCAAoD;AACpD,+BAA0B;AAK1B,gEAA6D;AAEtD,MAAM,8BAA8B,GAAG,CAAC,KAM9C,EAEC,EAAE;;IACF,MAAM,cAAc,GAClB,MAAA,MAAA,KAAK,CAAC,KAAK,CAAC,SAAS,0CAAE,cAAc,mCAAI,EAAE,CAAC;IAC9C,MAAM,kBAAkB,GACtB,IAAI,GAAG,EAAE,CAAC;IAEZ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KAAK,CAAC,QAAQ;oBACxB,QAAQ,EAAE,EAAE;iBACb,CAAC,EACF,kBAAkB,EAAE,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAChE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,iBAAiB,CAC7C,IACD,CAAC,CACJ;;;;;;;;;;UAUC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC;;;OAGhC;SAC+C;KACnD,CAAC;AACJ,CAAC,CAAC;AA7GW,QAAA,8BAA8B,kCA6GzC"}
1
+ {"version":3,"file":"transformTestScenarioHistories.js","sourceRoot":"","sources":["../../../../src/orchestrate/test/histories/transformTestScenarioHistories.ts"],"names":[],"mappings":";;;AAEA,yCAAoD;AACpD,+BAA0B;AAK1B,gEAA6D;AAEtD,MAAM,8BAA8B,GAAG,CAAC,KAM9C,EAEC,EAAE;;IACF,MAAM,cAAc,GAClB,MAAA,MAAA,KAAK,CAAC,KAAK,CAAC,SAAS,0CAAE,cAAc,mCAAI,EAAE,CAAC;IAC9C,MAAM,kBAAkB,GACtB,IAAI,GAAG,EAAE,CAAC;IAEZ,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,KAAK,MAAM,EAAE,IAAI,aAAa,CAAC,UAAU,EAAE,CAAC;YAC1C,IAAI,EAAE,CAAC,iBAAiB,KAAK,IAAI;gBAAE,SAAS;YAC5C,MAAM,KAAK,GAAyC,eAAO,CAAC,IAAI,CAC9D,kBAAkB,EAClB,aAAa,CAAC,IAAI,EAClB,GAAG,EAAE,CAAC,CAAC;gBACL,IAAI,EAAE,aAAa,CAAC,IAAI;gBACxB,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,IAAI;aACZ,CAAC,CACH,CAAC;YACF,IAAI,EAAE,CAAC,iBAAiB,KAAK,MAAM;gBAAE,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC;iBACh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