@autobe/agent 0.26.0 → 0.28.0

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 (205) hide show
  1. package/lib/AutoBeAgent.d.ts +2 -1
  2. package/lib/AutoBeAgent.js +27 -7
  3. package/lib/AutoBeAgent.js.map +1 -1
  4. package/lib/AutoBeMockAgent.js +2 -4
  5. package/lib/AutoBeMockAgent.js.map +1 -1
  6. package/lib/constants/AutoBeSystemPromptConstant.d.ts +11 -11
  7. package/lib/context/AutoBeContext.d.ts +4 -1
  8. package/lib/context/AutoBeTokenUsage.d.ts +1 -1
  9. package/lib/context/AutoBeTokenUsage.js.map +1 -1
  10. package/lib/context/assertSchemaModel.d.ts +1 -1
  11. package/lib/context/assertSchemaModel.js +4 -7
  12. package/lib/context/assertSchemaModel.js.map +1 -1
  13. package/lib/factory/AutoBeFunctionCallingMetricFactory.d.ts +7 -0
  14. package/lib/factory/AutoBeFunctionCallingMetricFactory.js +35 -0
  15. package/lib/factory/AutoBeFunctionCallingMetricFactory.js.map +1 -0
  16. package/lib/factory/AutoBeProcessAggregateFactory.d.ts +13 -0
  17. package/lib/factory/AutoBeProcessAggregateFactory.js +100 -0
  18. package/lib/factory/AutoBeProcessAggregateFactory.js.map +1 -0
  19. package/lib/factory/createAutoBeContext.d.ts +2 -1
  20. package/lib/factory/createAutoBeContext.js +78 -27
  21. package/lib/factory/createAutoBeContext.js.map +1 -1
  22. package/lib/index.mjs +24065 -12997
  23. package/lib/index.mjs.map +1 -1
  24. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +1 -1
  25. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
  26. package/lib/orchestrate/analyze/orchestrateAnalyze.js +1 -0
  27. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  28. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +166 -87
  29. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
  30. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +639 -322
  31. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
  32. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +146 -76
  33. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
  34. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +17 -52
  35. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +25 -22
  36. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +7 -23
  37. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +2 -1
  38. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +168 -4
  39. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
  40. package/lib/{factory/createAutoBeApplication.d.ts → orchestrate/facade/createAutoBeFacadeController.d.ts} +2 -2
  41. package/lib/orchestrate/facade/createAutoBeFacadeController.js +1308 -0
  42. package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -0
  43. package/lib/orchestrate/facade/histories/IAutoBeFacadeApplication.js.map +1 -0
  44. package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationProps.js.map +1 -0
  45. package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationResult.js.map +1 -0
  46. package/lib/orchestrate/facade/{transformFacadeStateMessage.d.ts → structures/transformFacadeStateMessage.d.ts} +1 -1
  47. package/lib/orchestrate/facade/structures/transformFacadeStateMessage.js.map +1 -0
  48. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +2 -2
  49. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
  50. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
  51. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
  52. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +3 -2
  53. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
  54. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +1 -1
  55. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
  56. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
  57. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
  58. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
  59. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
  60. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +1 -1
  61. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
  62. package/lib/orchestrate/interface/orchestrateInterface.d.ts +1 -1
  63. package/lib/orchestrate/interface/orchestrateInterface.js +15 -8
  64. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
  65. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +874 -49
  66. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
  67. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +1858 -67
  68. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
  69. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +251 -133
  70. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
  71. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -6
  72. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +257 -135
  73. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
  74. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +341 -227
  75. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
  76. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +761 -49
  77. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  78. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +911 -50
  79. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
  80. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +207 -4
  81. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
  82. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +109 -2
  83. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
  84. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +5 -3
  85. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +1904 -77
  86. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
  87. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +1858 -67
  88. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
  89. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +23 -23
  90. package/lib/orchestrate/prisma/orchestratePrisma.d.ts +1 -1
  91. package/lib/orchestrate/prisma/orchestratePrisma.js +1 -0
  92. package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
  93. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +391 -197
  94. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  95. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1168 -591
  96. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  97. package/lib/orchestrate/prisma/orchestratePrismaReview.js +1186 -600
  98. package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
  99. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +6 -3
  100. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
  101. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +2 -2
  102. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -1
  103. package/lib/orchestrate/realize/orchestrateRealize.d.ts +1 -1
  104. package/lib/orchestrate/realize/orchestrateRealize.js +2 -1
  105. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  106. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +362 -180
  107. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
  108. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +399 -199
  109. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
  110. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +133 -4
  111. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
  112. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +171 -7
  113. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
  114. package/lib/orchestrate/realize/orchestrateRealizeWrite.js +132 -3
  115. package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
  116. package/lib/orchestrate/realize/utils/replaceImportStatements.js +0 -85
  117. package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
  118. package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
  119. package/lib/orchestrate/test/orchestrateTest.d.ts +1 -1
  120. package/lib/orchestrate/test/orchestrateTest.js +2 -1
  121. package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
  122. package/lib/orchestrate/test/orchestrateTestCorrect.js +134 -3
  123. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  124. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +169 -4
  125. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
  126. package/lib/orchestrate/test/orchestrateTestScenario.js +257 -4
  127. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  128. package/lib/orchestrate/test/orchestrateTestScenarioReview.js +283 -4
  129. package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
  130. package/lib/orchestrate/test/orchestrateTestWrite.js +141 -3
  131. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  132. package/lib/utils/TokenUsageComputer.d.ts +5 -0
  133. package/lib/utils/TokenUsageComputer.js +29 -0
  134. package/lib/utils/TokenUsageComputer.js.map +1 -0
  135. package/package.json +10 -10
  136. package/src/AutoBeAgent.ts +40 -6
  137. package/src/AutoBeMockAgent.ts +2 -4
  138. package/src/constants/AutoBeSystemPromptConstant.ts +11 -11
  139. package/src/context/AutoBeContext.ts +8 -0
  140. package/src/context/AutoBeTokenUsage.ts +1 -1
  141. package/src/context/assertSchemaModel.ts +5 -8
  142. package/src/factory/AutoBeFunctionCallingMetricFactory.ts +44 -0
  143. package/src/factory/AutoBeProcessAggregateFactory.ts +141 -0
  144. package/src/factory/createAutoBeContext.ts +96 -36
  145. package/src/orchestrate/analyze/orchestrateAnalyze.ts +1 -0
  146. package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +9 -10
  147. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +15 -10
  148. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +10 -11
  149. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +19 -54
  150. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +25 -22
  151. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +8 -24
  152. package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +20 -3
  153. package/src/orchestrate/facade/createAutoBeFacadeController.ts +136 -0
  154. package/src/orchestrate/facade/{transformFacadeStateMessage.ts → structures/transformFacadeStateMessage.ts} +2 -2
  155. package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +1 -0
  156. package/src/orchestrate/interface/orchestrateInterface.ts +17 -6
  157. package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +13 -2
  158. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +13 -2
  159. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +16 -11
  160. package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +16 -13
  161. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +19 -15
  162. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +13 -2
  163. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +16 -2
  164. package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +13 -2
  165. package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +11 -2
  166. package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +24 -16
  167. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +13 -2
  168. package/src/orchestrate/prisma/orchestratePrisma.ts +2 -1
  169. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +15 -10
  170. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +9 -10
  171. package/src/orchestrate/prisma/orchestratePrismaReview.ts +9 -11
  172. package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +2 -1
  173. package/src/orchestrate/realize/orchestrateRealize.ts +3 -2
  174. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +15 -10
  175. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +15 -10
  176. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +14 -3
  177. package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +21 -6
  178. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +13 -2
  179. package/src/orchestrate/realize/utils/replaceImportStatements.ts +0 -90
  180. package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +5 -1
  181. package/src/orchestrate/test/histories/transformTestWriteHistories.ts +1 -1
  182. package/src/orchestrate/test/orchestrateTest.ts +3 -2
  183. package/src/orchestrate/test/orchestrateTestCorrect.ts +14 -2
  184. package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +21 -3
  185. package/src/orchestrate/test/orchestrateTestScenario.ts +13 -2
  186. package/src/orchestrate/test/orchestrateTestScenarioReview.ts +13 -2
  187. package/src/orchestrate/test/orchestrateTestWrite.ts +13 -2
  188. package/src/utils/TokenUsageComputer.ts +35 -0
  189. package/lib/context/IAutoBeFacadeApplication.js.map +0 -1
  190. package/lib/context/IAutoBeFacadeApplicationProps.js.map +0 -1
  191. package/lib/context/IAutoBeFacadeApplicationResult.js.map +0 -1
  192. package/lib/factory/createAutoBeApplication.js +0 -942
  193. package/lib/factory/createAutoBeApplication.js.map +0 -1
  194. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
  195. package/src/factory/createAutoBeApplication.ts +0 -123
  196. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.d.ts +0 -0
  197. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.js +0 -0
  198. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.d.ts +0 -0
  199. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.js +0 -0
  200. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.d.ts +0 -0
  201. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.js +0 -0
  202. /package/lib/orchestrate/facade/{transformFacadeStateMessage.js → structures/transformFacadeStateMessage.js} +0 -0
  203. /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.ts +0 -0
  204. /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.ts +0 -0
  205. /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.ts +0 -0
@@ -81,7 +81,7 @@ function orchestrateRealizeAuthorizationCorrect(ctx_1, authorization_1, prismaCl
81
81
  const pointer = {
82
82
  value: null,
83
83
  };
84
- const { tokenUsage } = yield ctx.conversate({
84
+ const { metric, tokenUsage } = yield ctx.conversate({
85
85
  source: "realizeAuthorizationCorrect",
86
86
  histories: (0, transformRealizeAuthorizationCorrectHistories_1.transformRealizeAuthorizationCorrectHistories)(ctx, authorization, templateFiles, compiled.diagnostics),
87
87
  controller: createController({
@@ -100,13 +100,18 @@ function orchestrateRealizeAuthorizationCorrect(ctx_1, authorization_1, prismaCl
100
100
  location: AuthorizationFileSystem_1.AuthorizationFileSystem.payloadPath(pointer.value.payload.name),
101
101
  content: yield compiler.typescript.beautify(pointer.value.payload.content),
102
102
  }, actor: authorization.actor });
103
- ctx.dispatch(Object.assign(Object.assign({}, pointer.value), { type: "realizeAuthorizationCorrect", id: (0, uuid_1.v7)(), created_at: new Date().toISOString(), authorization: result, result: compiled, tokenUsage, step: (_d = (_c = ctx.state().test) === null || _c === void 0 ? void 0 : _c.step) !== null && _d !== void 0 ? _d : 0 }));
103
+ ctx.dispatch(Object.assign(Object.assign({}, pointer.value), { type: "realizeAuthorizationCorrect", id: (0, uuid_1.v7)(), created_at: new Date().toISOString(), authorization: result, result: compiled, metric,
104
+ tokenUsage, step: (_d = (_c = ctx.state().test) === null || _c === void 0 ? void 0 : _c.step) !== null && _d !== void 0 ? _d : 0 }));
104
105
  return yield orchestrateRealizeAuthorizationCorrect(ctx, result, prismaClients, templateFiles, life - 1);
105
106
  });
106
107
  }
107
108
  function createController(props) {
108
109
  (0, assertSchemaModel_1.assertSchemaModel)(props.model);
109
- const application = collection[props.model];
110
+ const application = collection[props.model === "chatgpt"
111
+ ? "chatgpt"
112
+ : props.model === "gemini"
113
+ ? "gemini"
114
+ : "claude"];
110
115
  return {
111
116
  protocol: "class",
112
117
  name: "Correct Authorization",
@@ -118,218 +123,414 @@ function createController(props) {
118
123
  },
119
124
  };
120
125
  }
121
- const claude = {
122
- model: "claude",
123
- options: {
124
- reference: true,
125
- separate: null
126
- },
127
- functions: [
128
- {
129
- name: "correctDecorator",
130
- parameters: {
131
- description: " Properties containing error analysis, solution guidance, and corrected components\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
132
- type: "object",
133
- properties: {
134
- error_analysis: {
135
- description: "Step 1: TypeScript compilation error analysis and diagnosis.\n\nAI identifies and categorizes all compilation errors (type mismatches,\nimport issues, syntax errors) by component (providers/decorator/payload).\nLists specific error messages with their locations and types for\nsystematic troubleshooting.",
136
- type: "string"
137
- },
138
- solution_guidance: {
139
- description: "Step 2: Solution guidance and fix recommendations.\n\nAI provides clear, actionable instructions on how to resolve each\nidentified error. Includes specific steps like \"add property X to\ninterface Y\", \"update import path from A to B\", or \"change type from C to\nD\". Focus on guidance rather than generating complete code\nimplementations.",
140
- type: "string"
141
- },
142
- provider: {
143
- description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
144
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IProvider"
145
- },
146
- decorator: {
147
- description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
148
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IDecorator"
126
+ const collection = {
127
+ chatgpt: {
128
+ model: "chatgpt",
129
+ options: {
130
+ reference: true,
131
+ strict: false,
132
+ separate: null
133
+ },
134
+ functions: [
135
+ {
136
+ name: "correctDecorator",
137
+ parameters: {
138
+ description: " Properties containing error analysis, solution guidance, and corrected components\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
139
+ type: "object",
140
+ properties: {
141
+ error_analysis: {
142
+ description: "Step 1: TypeScript compilation error analysis and diagnosis.\n\nAI identifies and categorizes all compilation errors (type mismatches,\nimport issues, syntax errors) by component (providers/decorator/payload).\nLists specific error messages with their locations and types for\nsystematic troubleshooting.",
143
+ type: "string"
144
+ },
145
+ solution_guidance: {
146
+ description: "Step 2: Solution guidance and fix recommendations.\n\nAI provides clear, actionable instructions on how to resolve each\nidentified error. Includes specific steps like \"add property X to\ninterface Y\", \"update import path from A to B\", or \"change type from C to\nD\". Focus on guidance rather than generating complete code\nimplementations.",
147
+ type: "string"
148
+ },
149
+ provider: {
150
+ description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
151
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IProvider"
152
+ },
153
+ decorator: {
154
+ description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
155
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IDecorator"
156
+ },
157
+ payload: {
158
+ description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
159
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IPayloadType"
160
+ }
149
161
  },
150
- payload: {
151
- description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
152
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IPayloadType"
162
+ required: [
163
+ "error_analysis",
164
+ "solution_guidance",
165
+ "provider",
166
+ "decorator",
167
+ "payload"
168
+ ],
169
+ additionalProperties: false,
170
+ $defs: {
171
+ "IAutoBeRealizeAuthorizationApplication.IProvider": {
172
+ type: "object",
173
+ properties: {
174
+ name: {
175
+ description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.\n\nDO: Use camelCase naming convention.\n\n\n@pattern ^[a-z][a-zA-Z0-9]*$",
176
+ type: "string"
177
+ },
178
+ content: {
179
+ description: "Complete TypeScript code for the authentication Provider function. Must\ninclude: JWT token verification using jwtAuthorize function, role type\nchecking against payload.type, database query using\nMyGlobal.prisma.{tableName} pattern to verify user existence, and proper\nerror handling with ForbiddenException and UnauthorizedException. The\nfunction should return the authenticated user payload data.",
180
+ type: "string"
181
+ }
182
+ },
183
+ required: [
184
+ "name",
185
+ "content"
186
+ ]
187
+ },
188
+ "IAutoBeRealizeAuthorizationApplication.IDecorator": {
189
+ type: "object",
190
+ properties: {
191
+ name: {
192
+ description: "The name of the Decorator to be generated in {Actor}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.\n\nDO: Use PascalCase naming convention.\n\n\n@pattern ^[A-Z][a-zA-Z0-9]*$",
193
+ type: "string"
194
+ },
195
+ content: {
196
+ description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
197
+ type: "string"
198
+ }
199
+ },
200
+ required: [
201
+ "name",
202
+ "content"
203
+ ]
204
+ },
205
+ "IAutoBeRealizeAuthorizationApplication.IPayloadType": {
206
+ type: "object",
207
+ properties: {
208
+ name: {
209
+ description: "The name of the Payload type to be generated in {Actor}Payload format\n(e.g., AdminPayload, UserPayload). This type defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator.\n\nDO: Use PascalCase naming convention.\n\n\n@pattern ^[A-Z][a-zA-Z0-9]*$",
210
+ type: "string"
211
+ },
212
+ content: {
213
+ description: "Complete TypeScript code for the Payload type interface in {Actor}Payload\nformat (e.g., AdminPayload, UserPayload). Must include: id field with\nUUID format validation, type field as role discriminator, and proper\ntypia tags for validation. This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator and serves as the TypeScript type for the\nparameter in Controller method signatures.",
214
+ type: "string"
215
+ }
216
+ },
217
+ required: [
218
+ "name",
219
+ "content"
220
+ ]
221
+ }
153
222
  }
154
223
  },
155
- required: [
156
- "error_analysis",
157
- "solution_guidance",
158
- "provider",
159
- "decorator",
160
- "payload"
161
- ],
162
- additionalProperties: false,
163
- $defs: {
164
- "IAutoBeRealizeAuthorizationApplication.IProvider": {
165
- type: "object",
166
- properties: {
167
- name: {
168
- description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.\n\nDO: Use camelCase naming convention.",
169
- type: "string",
170
- pattern: "^[a-z][a-zA-Z0-9]*$"
171
- },
172
- content: {
173
- description: "Complete TypeScript code for the authentication Provider function. Must\ninclude: JWT token verification using jwtAuthorize function, role type\nchecking against payload.type, database query using\nMyGlobal.prisma.{tableName} pattern to verify user existence, and proper\nerror handling with ForbiddenException and UnauthorizedException. The\nfunction should return the authenticated user payload data.",
174
- type: "string"
175
- }
224
+ description: "Corrects TypeScript compilation errors in authentication components.\n\nThis method analyzes and fixes compilation errors in previously generated\nauthentication provider, decorator, and payload type implementations. It\nperforms systematic error diagnosis and generates corrected versions of\nall three components while maintaining their interconnected functionality.\n\nThe correction process includes:\n- TypeScript error analysis and categorization by component\n- Identification of type mismatches, import issues, and syntax errors\n- Clear solution guidance for each identified problem\n- Regeneration of all components with fixes applied\n\nThe corrected components maintain the same naming conventions and\narchitectural patterns as the original generation while resolving all\ncompilation issues.",
225
+ validate: (() => { const _io0 = input => "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io1(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io2 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io3 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.error_analysis || _report(_exceptionable, {
226
+ path: _path + ".error_analysis",
227
+ expected: "string",
228
+ value: input.error_analysis
229
+ }), "string" === typeof input.solution_guidance || _report(_exceptionable, {
230
+ path: _path + ".solution_guidance",
231
+ expected: "string",
232
+ value: input.solution_guidance
233
+ }), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
234
+ path: _path + ".provider",
235
+ expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
236
+ value: input.provider
237
+ })) && _vo1(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
238
+ path: _path + ".provider",
239
+ expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
240
+ value: input.provider
241
+ }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
242
+ path: _path + ".decorator",
243
+ expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
244
+ value: input.decorator
245
+ })) && _vo2(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
246
+ path: _path + ".decorator",
247
+ expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
248
+ value: input.decorator
249
+ }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
250
+ path: _path + ".payload",
251
+ expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
252
+ value: input.payload
253
+ })) && _vo3(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
254
+ path: _path + ".payload",
255
+ expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
256
+ value: input.payload
257
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
258
+ path: _path + ".name",
259
+ expected: "string & CamelCasePattern",
260
+ value: input.name
261
+ })) || _report(_exceptionable, {
262
+ path: _path + ".name",
263
+ expected: "(string & CamelCasePattern)",
264
+ value: input.name
265
+ }), "string" === typeof input.content || _report(_exceptionable, {
266
+ path: _path + ".content",
267
+ expected: "string",
268
+ value: input.content
269
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
270
+ path: _path + ".name",
271
+ expected: "string & PascalCasePattern",
272
+ value: input.name
273
+ })) || _report(_exceptionable, {
274
+ path: _path + ".name",
275
+ expected: "(string & PascalCasePattern)",
276
+ value: input.name
277
+ }), "string" === typeof input.content || _report(_exceptionable, {
278
+ path: _path + ".content",
279
+ expected: "string",
280
+ value: input.content
281
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
282
+ path: _path + ".name",
283
+ expected: "string & PascalCasePattern",
284
+ value: input.name
285
+ })) || _report(_exceptionable, {
286
+ path: _path + ".name",
287
+ expected: "(string & PascalCasePattern)",
288
+ value: input.name
289
+ }), "string" === typeof input.content || _report(_exceptionable, {
290
+ path: _path + ".content",
291
+ expected: "string",
292
+ value: input.content
293
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
294
+ if (false === __is(input)) {
295
+ errors = [];
296
+ _report = __typia_transform__validateReport._validateReport(errors);
297
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
298
+ path: _path + "",
299
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
300
+ value: input
301
+ })) && _vo0(input, _path + "", true) || _report(true, {
302
+ path: _path + "",
303
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
304
+ value: input
305
+ }))(input, "$input", true);
306
+ const success = 0 === errors.length;
307
+ return success ? {
308
+ success,
309
+ data: input
310
+ } : {
311
+ success,
312
+ errors,
313
+ data: input
314
+ };
315
+ }
316
+ return {
317
+ success: true,
318
+ data: input
319
+ };
320
+ }; })()
321
+ }
322
+ ]
323
+ },
324
+ claude: {
325
+ model: "claude",
326
+ options: {
327
+ reference: true,
328
+ separate: null
329
+ },
330
+ functions: [
331
+ {
332
+ name: "correctDecorator",
333
+ parameters: {
334
+ description: " Properties containing error analysis, solution guidance, and corrected components\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
335
+ type: "object",
336
+ properties: {
337
+ error_analysis: {
338
+ description: "Step 1: TypeScript compilation error analysis and diagnosis.\n\nAI identifies and categorizes all compilation errors (type mismatches,\nimport issues, syntax errors) by component (providers/decorator/payload).\nLists specific error messages with their locations and types for\nsystematic troubleshooting.",
339
+ type: "string"
340
+ },
341
+ solution_guidance: {
342
+ description: "Step 2: Solution guidance and fix recommendations.\n\nAI provides clear, actionable instructions on how to resolve each\nidentified error. Includes specific steps like \"add property X to\ninterface Y\", \"update import path from A to B\", or \"change type from C to\nD\". Focus on guidance rather than generating complete code\nimplementations.",
343
+ type: "string"
344
+ },
345
+ provider: {
346
+ description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
347
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IProvider"
348
+ },
349
+ decorator: {
350
+ description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
351
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IDecorator"
176
352
  },
177
- required: [
178
- "name",
179
- "content"
180
- ]
353
+ payload: {
354
+ description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
355
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IPayloadType"
356
+ }
181
357
  },
182
- "IAutoBeRealizeAuthorizationApplication.IDecorator": {
183
- type: "object",
184
- properties: {
185
- name: {
186
- description: "The name of the Decorator to be generated in {Actor}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.\n\nDO: Use PascalCase naming convention.",
187
- type: "string",
188
- pattern: "^[A-Z][a-zA-Z0-9]*$"
358
+ required: [
359
+ "error_analysis",
360
+ "solution_guidance",
361
+ "provider",
362
+ "decorator",
363
+ "payload"
364
+ ],
365
+ additionalProperties: false,
366
+ $defs: {
367
+ "IAutoBeRealizeAuthorizationApplication.IProvider": {
368
+ type: "object",
369
+ properties: {
370
+ name: {
371
+ description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.\n\nDO: Use camelCase naming convention.",
372
+ type: "string",
373
+ pattern: "^[a-z][a-zA-Z0-9]*$"
374
+ },
375
+ content: {
376
+ description: "Complete TypeScript code for the authentication Provider function. Must\ninclude: JWT token verification using jwtAuthorize function, role type\nchecking against payload.type, database query using\nMyGlobal.prisma.{tableName} pattern to verify user existence, and proper\nerror handling with ForbiddenException and UnauthorizedException. The\nfunction should return the authenticated user payload data.",
377
+ type: "string"
378
+ }
189
379
  },
190
- content: {
191
- description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
192
- type: "string"
193
- }
380
+ required: [
381
+ "name",
382
+ "content"
383
+ ]
194
384
  },
195
- required: [
196
- "name",
197
- "content"
198
- ]
199
- },
200
- "IAutoBeRealizeAuthorizationApplication.IPayloadType": {
201
- type: "object",
202
- properties: {
203
- name: {
204
- description: "The name of the Payload type to be generated in {Actor}Payload format\n(e.g., AdminPayload, UserPayload). This type defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator.\n\nDO: Use PascalCase naming convention.",
205
- type: "string",
206
- pattern: "^[A-Z][a-zA-Z0-9]*$"
385
+ "IAutoBeRealizeAuthorizationApplication.IDecorator": {
386
+ type: "object",
387
+ properties: {
388
+ name: {
389
+ description: "The name of the Decorator to be generated in {Actor}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.\n\nDO: Use PascalCase naming convention.",
390
+ type: "string",
391
+ pattern: "^[A-Z][a-zA-Z0-9]*$"
392
+ },
393
+ content: {
394
+ description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
395
+ type: "string"
396
+ }
207
397
  },
208
- content: {
209
- description: "Complete TypeScript code for the Payload type interface in {Actor}Payload\nformat (e.g., AdminPayload, UserPayload). Must include: id field with\nUUID format validation, type field as role discriminator, and proper\ntypia tags for validation. This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator and serves as the TypeScript type for the\nparameter in Controller method signatures.",
210
- type: "string"
211
- }
398
+ required: [
399
+ "name",
400
+ "content"
401
+ ]
212
402
  },
213
- required: [
214
- "name",
215
- "content"
216
- ]
403
+ "IAutoBeRealizeAuthorizationApplication.IPayloadType": {
404
+ type: "object",
405
+ properties: {
406
+ name: {
407
+ description: "The name of the Payload type to be generated in {Actor}Payload format\n(e.g., AdminPayload, UserPayload). This type defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator.\n\nDO: Use PascalCase naming convention.",
408
+ type: "string",
409
+ pattern: "^[A-Z][a-zA-Z0-9]*$"
410
+ },
411
+ content: {
412
+ description: "Complete TypeScript code for the Payload type interface in {Actor}Payload\nformat (e.g., AdminPayload, UserPayload). Must include: id field with\nUUID format validation, type field as role discriminator, and proper\ntypia tags for validation. This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator and serves as the TypeScript type for the\nparameter in Controller method signatures.",
413
+ type: "string"
414
+ }
415
+ },
416
+ required: [
417
+ "name",
418
+ "content"
419
+ ]
420
+ }
217
421
  }
218
- }
219
- },
220
- description: "Corrects TypeScript compilation errors in authentication components.\n\nThis method analyzes and fixes compilation errors in previously generated\nauthentication provider, decorator, and payload type implementations. It\nperforms systematic error diagnosis and generates corrected versions of\nall three components while maintaining their interconnected functionality.\n\nThe correction process includes:\n- TypeScript error analysis and categorization by component\n- Identification of type mismatches, import issues, and syntax errors\n- Clear solution guidance for each identified problem\n- Regeneration of all components with fixes applied\n\nThe corrected components maintain the same naming conventions and\narchitectural patterns as the original generation while resolving all\ncompilation issues.",
221
- validate: (() => { const _io0 = input => "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io1(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io2 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io3 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.error_analysis || _report(_exceptionable, {
222
- path: _path + ".error_analysis",
223
- expected: "string",
224
- value: input.error_analysis
225
- }), "string" === typeof input.solution_guidance || _report(_exceptionable, {
226
- path: _path + ".solution_guidance",
227
- expected: "string",
228
- value: input.solution_guidance
229
- }), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
230
- path: _path + ".provider",
231
- expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
232
- value: input.provider
233
- })) && _vo1(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
234
- path: _path + ".provider",
235
- expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
236
- value: input.provider
237
- }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
238
- path: _path + ".decorator",
239
- expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
240
- value: input.decorator
241
- })) && _vo2(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
242
- path: _path + ".decorator",
243
- expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
244
- value: input.decorator
245
- }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
246
- path: _path + ".payload",
247
- expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
248
- value: input.payload
249
- })) && _vo3(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
250
- path: _path + ".payload",
251
- expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
252
- value: input.payload
253
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
254
- path: _path + ".name",
255
- expected: "string & CamelCasePattern",
256
- value: input.name
257
- })) || _report(_exceptionable, {
258
- path: _path + ".name",
259
- expected: "(string & CamelCasePattern)",
260
- value: input.name
261
- }), "string" === typeof input.content || _report(_exceptionable, {
262
- path: _path + ".content",
263
- expected: "string",
264
- value: input.content
265
- })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
266
- path: _path + ".name",
267
- expected: "string & PascalCasePattern",
268
- value: input.name
269
- })) || _report(_exceptionable, {
270
- path: _path + ".name",
271
- expected: "(string & PascalCasePattern)",
272
- value: input.name
273
- }), "string" === typeof input.content || _report(_exceptionable, {
274
- path: _path + ".content",
275
- expected: "string",
276
- value: input.content
277
- })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
278
- path: _path + ".name",
279
- expected: "string & PascalCasePattern",
280
- value: input.name
281
- })) || _report(_exceptionable, {
282
- path: _path + ".name",
283
- expected: "(string & PascalCasePattern)",
284
- value: input.name
285
- }), "string" === typeof input.content || _report(_exceptionable, {
286
- path: _path + ".content",
287
- expected: "string",
288
- value: input.content
289
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
290
- if (false === __is(input)) {
291
- errors = [];
292
- _report = __typia_transform__validateReport._validateReport(errors);
293
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
294
- path: _path + "",
295
- expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
296
- value: input
297
- })) && _vo0(input, _path + "", true) || _report(true, {
298
- path: _path + "",
299
- expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
300
- value: input
301
- }))(input, "$input", true);
302
- const success = 0 === errors.length;
303
- return success ? {
304
- success,
305
- data: input
306
- } : {
307
- success,
308
- errors,
422
+ },
423
+ description: "Corrects TypeScript compilation errors in authentication components.\n\nThis method analyzes and fixes compilation errors in previously generated\nauthentication provider, decorator, and payload type implementations. It\nperforms systematic error diagnosis and generates corrected versions of\nall three components while maintaining their interconnected functionality.\n\nThe correction process includes:\n- TypeScript error analysis and categorization by component\n- Identification of type mismatches, import issues, and syntax errors\n- Clear solution guidance for each identified problem\n- Regeneration of all components with fixes applied\n\nThe corrected components maintain the same naming conventions and\narchitectural patterns as the original generation while resolving all\ncompilation issues.",
424
+ validate: (() => { const _io0 = input => "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io1(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io2 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io3 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.error_analysis || _report(_exceptionable, {
425
+ path: _path + ".error_analysis",
426
+ expected: "string",
427
+ value: input.error_analysis
428
+ }), "string" === typeof input.solution_guidance || _report(_exceptionable, {
429
+ path: _path + ".solution_guidance",
430
+ expected: "string",
431
+ value: input.solution_guidance
432
+ }), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
433
+ path: _path + ".provider",
434
+ expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
435
+ value: input.provider
436
+ })) && _vo1(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
437
+ path: _path + ".provider",
438
+ expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
439
+ value: input.provider
440
+ }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
441
+ path: _path + ".decorator",
442
+ expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
443
+ value: input.decorator
444
+ })) && _vo2(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
445
+ path: _path + ".decorator",
446
+ expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
447
+ value: input.decorator
448
+ }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
449
+ path: _path + ".payload",
450
+ expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
451
+ value: input.payload
452
+ })) && _vo3(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
453
+ path: _path + ".payload",
454
+ expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
455
+ value: input.payload
456
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
457
+ path: _path + ".name",
458
+ expected: "string & CamelCasePattern",
459
+ value: input.name
460
+ })) || _report(_exceptionable, {
461
+ path: _path + ".name",
462
+ expected: "(string & CamelCasePattern)",
463
+ value: input.name
464
+ }), "string" === typeof input.content || _report(_exceptionable, {
465
+ path: _path + ".content",
466
+ expected: "string",
467
+ value: input.content
468
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
469
+ path: _path + ".name",
470
+ expected: "string & PascalCasePattern",
471
+ value: input.name
472
+ })) || _report(_exceptionable, {
473
+ path: _path + ".name",
474
+ expected: "(string & PascalCasePattern)",
475
+ value: input.name
476
+ }), "string" === typeof input.content || _report(_exceptionable, {
477
+ path: _path + ".content",
478
+ expected: "string",
479
+ value: input.content
480
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
481
+ path: _path + ".name",
482
+ expected: "string & PascalCasePattern",
483
+ value: input.name
484
+ })) || _report(_exceptionable, {
485
+ path: _path + ".name",
486
+ expected: "(string & PascalCasePattern)",
487
+ value: input.name
488
+ }), "string" === typeof input.content || _report(_exceptionable, {
489
+ path: _path + ".content",
490
+ expected: "string",
491
+ value: input.content
492
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
493
+ if (false === __is(input)) {
494
+ errors = [];
495
+ _report = __typia_transform__validateReport._validateReport(errors);
496
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
497
+ path: _path + "",
498
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
499
+ value: input
500
+ })) && _vo0(input, _path + "", true) || _report(true, {
501
+ path: _path + "",
502
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
503
+ value: input
504
+ }))(input, "$input", true);
505
+ const success = 0 === errors.length;
506
+ return success ? {
507
+ success,
508
+ data: input
509
+ } : {
510
+ success,
511
+ errors,
512
+ data: input
513
+ };
514
+ }
515
+ return {
516
+ success: true,
309
517
  data: input
310
518
  };
311
- }
312
- return {
313
- success: true,
314
- data: input
315
- };
316
- }; })()
317
- }
318
- ]
319
- };
320
- const collection = {
321
- chatgpt: {
322
- model: "chatgpt",
519
+ }; })()
520
+ }
521
+ ]
522
+ },
523
+ gemini: {
524
+ model: "gemini",
323
525
  options: {
324
526
  reference: true,
325
- strict: false,
326
527
  separate: null
327
528
  },
328
529
  functions: [
329
530
  {
330
531
  name: "correctDecorator",
331
532
  parameters: {
332
- description: " Properties containing error analysis, solution guidance, and corrected components\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}\n\n### Description of {@link provider} property:\n\n> Authentication Provider function configuration containing the function\n> name and implementation code. The Provider handles JWT token\n> verification, role validation, and database queries to authenticate\n> users.\n\n### Description of {@link decorator} property:\n\n> Authentication Decorator configuration containing the decorator name and\n> implementation code. The Decorator integrates with NestJS parameter\n> decorators to automatically inject authenticated user data into\n> Controller methods.\n\n### Description of {@link payload} property:\n\n> Authentication Payload Type configuration containing the payload type\n> name and implementation code. The Payload Type is used to define the\n> structure of the authenticated user data that will be injected into\n> Controller methods when using the decorator. It serves as the TypeScript\n> type for the parameter in Controller method signatures.",
533
+ description: " Properties containing error analysis, solution guidance, and corrected components\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
333
534
  type: "object",
334
535
  properties: {
335
536
  error_analysis: {
@@ -341,12 +542,15 @@ const collection = {
341
542
  type: "string"
342
543
  },
343
544
  provider: {
545
+ description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
344
546
  $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IProvider"
345
547
  },
346
548
  decorator: {
549
+ description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
347
550
  $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IDecorator"
348
551
  },
349
552
  payload: {
553
+ description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
350
554
  $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IPayloadType"
351
555
  }
352
556
  },
@@ -512,9 +716,5 @@ const collection = {
512
716
  }
513
717
  ]
514
718
  },
515
- claude,
516
- llama: claude,
517
- deepseek: claude,
518
- "3.1": claude,
519
719
  };
520
720
  //# sourceMappingURL=orchestrateRealizeAuthorizationCorrect.js.map