@autobe/agent 0.9.2 → 0.10.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 (175) hide show
  1. package/lib/AutoBeAgent.js +11 -4
  2. package/lib/AutoBeAgent.js.map +1 -1
  3. package/lib/constants/AutoBeSystemPromptConstant.d.ts +6 -6
  4. package/lib/context/AutoBeTokenUsage.d.ts +15 -1
  5. package/lib/context/AutoBeTokenUsage.js +56 -1
  6. package/lib/context/AutoBeTokenUsage.js.map +1 -1
  7. package/lib/factory/createAutoBeApplication.js +288 -643
  8. package/lib/factory/createAutoBeApplication.js.map +1 -1
  9. package/lib/index.mjs +5057 -7211
  10. package/lib/index.mjs.map +1 -1
  11. package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js +82 -319
  12. package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js.map +1 -1
  13. package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js +0 -1
  14. package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js.map +1 -1
  15. package/lib/orchestrate/analyze/orchestrateAnalyze.js +95 -266
  16. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  17. package/lib/orchestrate/facade/transformFacadeStateMessage.js +2 -2
  18. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
  19. package/lib/orchestrate/index.d.ts +2 -2
  20. package/lib/orchestrate/index.js +4 -4
  21. package/lib/orchestrate/index.js.map +1 -1
  22. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +56 -142
  23. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
  24. package/lib/orchestrate/interface/orchestrateInterfaceComponents.js +195 -199
  25. package/lib/orchestrate/interface/orchestrateInterfaceComponents.js.map +1 -1
  26. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +75 -172
  27. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
  28. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +772 -1097
  29. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  30. package/lib/orchestrate/interface/transformInterfaceHistories.js +2 -0
  31. package/lib/orchestrate/interface/transformInterfaceHistories.js.map +1 -1
  32. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +64 -175
  33. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  34. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +552 -1073
  35. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  36. package/lib/orchestrate/prisma/orchestratePrismaSchema.js +571 -1119
  37. package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
  38. package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js +9 -0
  39. package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js.map +1 -1
  40. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js +8 -0
  41. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js.map +1 -1
  42. package/lib/orchestrate/realize/orchestrateRealize.d.ts +11 -0
  43. package/lib/orchestrate/realize/orchestrateRealize.js +109 -0
  44. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -0
  45. package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +25 -0
  46. package/lib/orchestrate/realize/orchestrateRealizeCoder.js +337 -0
  47. package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +1 -0
  48. package/lib/orchestrate/realize/orchestrateRealizeIntegrator.d.ts +52 -0
  49. package/lib/orchestrate/realize/orchestrateRealizeIntegrator.js +57 -0
  50. package/lib/orchestrate/realize/orchestrateRealizeIntegrator.js.map +1 -0
  51. package/lib/orchestrate/realize/orchestrateRealizePlanner.d.ts +80 -0
  52. package/lib/orchestrate/realize/orchestrateRealizePlanner.js +53 -0
  53. package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +1 -0
  54. package/lib/orchestrate/realize/orchestrateRealizeValidator.d.ts +46 -0
  55. package/lib/orchestrate/realize/orchestrateRealizeValidator.js +37 -0
  56. package/lib/orchestrate/realize/orchestrateRealizeValidator.js.map +1 -0
  57. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +33 -0
  58. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js +3 -0
  59. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +1 -0
  60. package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +5 -0
  61. package/lib/orchestrate/realize/transformRealizeCoderHistories.js +127 -0
  62. package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +1 -0
  63. package/lib/orchestrate/test/compile/completeTestCode.d.ts +2 -0
  64. package/lib/orchestrate/test/compile/completeTestCode.js +21 -0
  65. package/lib/orchestrate/test/compile/completeTestCode.js.map +1 -0
  66. package/lib/orchestrate/test/{filterTestFileName.js → compile/filterTestFileName.js} +1 -1
  67. package/lib/orchestrate/test/compile/filterTestFileName.js.map +1 -0
  68. package/lib/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
  69. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js +27 -0
  70. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
  71. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
  72. package/lib/orchestrate/test/{compileTestScenario.js → compile/getTestScenarioArtifacts.js} +10 -5
  73. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
  74. package/lib/orchestrate/test/orchestrateTest.js +14 -9
  75. package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
  76. package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +3 -2
  77. package/lib/orchestrate/test/orchestrateTestCorrect.js +150 -448
  78. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  79. package/lib/orchestrate/test/orchestrateTestScenario.js +272 -530
  80. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  81. package/lib/orchestrate/test/orchestrateTestWrite.d.ts +3 -2
  82. package/lib/orchestrate/test/orchestrateTestWrite.js +139 -90
  83. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  84. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +121 -0
  85. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js +3 -0
  86. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
  87. package/lib/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
  88. package/lib/{utils/types/BackoffOptions.js → orchestrate/test/structures/IAutoBeTestFunction.js} +1 -1
  89. package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
  90. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +14 -2
  91. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +112 -0
  92. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js +3 -0
  93. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
  94. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
  95. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js +3 -0
  96. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
  97. package/lib/orchestrate/test/transformTestCorrectHistories.d.ts +3 -2
  98. package/lib/orchestrate/test/transformTestCorrectHistories.js +28 -67
  99. package/lib/orchestrate/test/transformTestCorrectHistories.js.map +1 -1
  100. package/lib/orchestrate/test/transformTestWriteHistories.d.ts +5 -4
  101. package/lib/orchestrate/test/transformTestWriteHistories.js +168 -43
  102. package/lib/orchestrate/test/transformTestWriteHistories.js.map +1 -1
  103. package/lib/structures/IAutoBeConfig.d.ts +11 -0
  104. package/lib/utils/backoffRetry.d.ts +4 -7
  105. package/lib/utils/backoffRetry.js +19 -37
  106. package/lib/utils/backoffRetry.js.map +1 -1
  107. package/lib/utils/forceRetry.d.ts +1 -0
  108. package/lib/{orchestrate/orchestrateRealize.js → utils/forceRetry.js} +15 -8
  109. package/lib/utils/forceRetry.js.map +1 -0
  110. package/package.json +8 -7
  111. package/src/AutoBeAgent.ts +17 -3
  112. package/src/constants/AutoBeSystemPromptConstant.ts +6 -6
  113. package/src/context/AutoBeTokenUsage.ts +85 -1
  114. package/src/factory/createAutoBeApplication.ts +2 -3
  115. package/src/orchestrate/analyze/AutoBeAnalyzeAgent.ts +8 -3
  116. package/src/orchestrate/analyze/AutoBeAnalyzeReviewer.ts +0 -1
  117. package/src/orchestrate/analyze/orchestrateAnalyze.ts +6 -5
  118. package/src/orchestrate/facade/transformFacadeStateMessage.ts +2 -1
  119. package/src/orchestrate/index.ts +2 -2
  120. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +4 -3
  121. package/src/orchestrate/interface/orchestrateInterfaceComponents.ts +26 -23
  122. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +6 -4
  123. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +14 -11
  124. package/src/orchestrate/interface/transformInterfaceHistories.ts +2 -0
  125. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +10 -5
  126. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +11 -5
  127. package/src/orchestrate/prisma/orchestratePrismaSchema.ts +16 -8
  128. package/src/orchestrate/prisma/transformPrismaComponentsHistories.ts +9 -0
  129. package/src/orchestrate/prisma/transformPrismaSchemaHistories.ts +8 -0
  130. package/src/orchestrate/realize/orchestrateRealize.ts +169 -0
  131. package/src/orchestrate/realize/orchestrateRealizeCoder.ts +156 -0
  132. package/src/orchestrate/realize/orchestrateRealizeIntegrator.ts +75 -0
  133. package/src/orchestrate/realize/orchestrateRealizePlanner.ts +115 -0
  134. package/src/orchestrate/realize/orchestrateRealizeValidator.ts +64 -0
  135. package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +36 -0
  136. package/src/orchestrate/realize/transformRealizeCoderHistories.ts +136 -0
  137. package/src/orchestrate/test/compile/completeTestCode.ts +35 -0
  138. package/src/orchestrate/test/{filterTestFileName.ts → compile/filterTestFileName.ts} +1 -1
  139. package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +24 -0
  140. package/src/orchestrate/test/{compileTestScenario.ts → compile/getTestScenarioArtifacts.ts} +16 -8
  141. package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +240 -0
  142. package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +316 -0
  143. package/src/orchestrate/test/experimental/transformTestCorrectHistories.ast +52 -0
  144. package/src/orchestrate/test/orchestrateTest.ts +33 -16
  145. package/src/orchestrate/test/orchestrateTestCorrect.ts +109 -497
  146. package/src/orchestrate/test/orchestrateTestScenario.ts +102 -71
  147. package/src/orchestrate/test/orchestrateTestWrite.ts +55 -181
  148. package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +126 -0
  149. package/src/orchestrate/test/structures/IAutoBeTestFunction.ts +10 -0
  150. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +14 -2
  151. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +117 -0
  152. package/src/orchestrate/test/structures/IAutoBeTestWriteResult.ts +9 -0
  153. package/src/orchestrate/test/transformTestCorrectHistories.ts +38 -71
  154. package/src/orchestrate/test/transformTestWriteHistories.ts +88 -46
  155. package/src/structures/IAutoBeConfig.ts +9 -0
  156. package/src/utils/backoffRetry.ts +25 -36
  157. package/src/utils/forceRetry.ts +13 -0
  158. package/lib/factory/invertOpenApiDocument.d.ts +0 -3
  159. package/lib/factory/invertOpenApiDocument.js +0 -51
  160. package/lib/factory/invertOpenApiDocument.js.map +0 -1
  161. package/lib/orchestrate/orchestrateRealize.d.ts +0 -5
  162. package/lib/orchestrate/orchestrateRealize.js.map +0 -1
  163. package/lib/orchestrate/test/compileTestScenario.d.ts +0 -5
  164. package/lib/orchestrate/test/compileTestScenario.js.map +0 -1
  165. package/lib/orchestrate/test/filterTestFileName.js.map +0 -1
  166. package/lib/utils/StringUtil.d.ts +0 -4
  167. package/lib/utils/StringUtil.js +0 -43
  168. package/lib/utils/StringUtil.js.map +0 -1
  169. package/lib/utils/types/BackoffOptions.d.ts +0 -12
  170. package/lib/utils/types/BackoffOptions.js.map +0 -1
  171. package/src/factory/invertOpenApiDocument.ts +0 -63
  172. package/src/orchestrate/orchestrateRealize.ts +0 -18
  173. package/src/utils/StringUtil.ts +0 -45
  174. package/src/utils/types/BackoffOptions.ts +0 -15
  175. /package/lib/orchestrate/test/{filterTestFileName.d.ts → compile/filterTestFileName.d.ts} +0 -0
@@ -83,7 +83,6 @@ class AutoBeAnalyzeAgent {
83
83
  describe: null,
84
84
  },
85
85
  },
86
- tokenUsage: ctx.usage(),
87
86
  histories: [
88
87
  {
89
88
  id: (0, uuid_1.v4)(),
@@ -130,7 +129,10 @@ class AutoBeAnalyzeAgent {
130
129
  if (retry === 0) {
131
130
  return "Abort due to excess retry count";
132
131
  }
133
- const response = yield this.createAnalyzeAgent().conversate(content);
132
+ const agent = this.createAnalyzeAgent();
133
+ const response = yield agent.conversate(content);
134
+ const tokenUsage = agent.getTokenUsage();
135
+ this.ctx.usage().record(tokenUsage, ["analyze"]);
134
136
  const lastMessage = response[response.length - 1];
135
137
  if ("text" in lastMessage) {
136
138
  this.ctx.dispatch({
@@ -157,6 +159,7 @@ class AutoBeAnalyzeAgent {
157
159
  const filenames = Object.keys(this.fileMap).join(",");
158
160
  const command = `Please proceed with the review of these files only.: ${filenames}`;
159
161
  const response = yield reviewer.conversate(command);
162
+ this.ctx.usage().record(reviewer.getTokenUsage(), ["analyze"]);
160
163
  const review = response.find((el) => el.type === "assistantMessage");
161
164
  if (review) {
162
165
  this.ctx.dispatch({
@@ -220,29 +223,7 @@ const claude = {
220
223
  files: {
221
224
  type: "array",
222
225
  items: {
223
- description: "Current Type: {@link IFile}",
224
- type: "object",
225
- properties: {
226
- reason: {
227
- description: "Describe briefly why you made this document, and if you have any plans for\nthe next one.",
228
- type: "string"
229
- },
230
- filename: {
231
- title: "Filename to generate or overwrite",
232
- description: "Filename to generate or overwrite.",
233
- type: "string",
234
- pattern: "((.*)\\.md)$"
235
- },
236
- markdown: {
237
- description: "Markdown file content. Only write the content of the file. Do not include\nany questions. This should contain only the contents of the file. Do not\nwrite down any questions or appreciation. For example, remove a sentence\nsuch as \"Is it okay if we proceed with the table of contents? Please let me\nknow if there is anything to add or exclude from the table of contents!\"",
238
- type: "string"
239
- }
240
- },
241
- required: [
242
- "reason",
243
- "filename",
244
- "markdown"
245
- ]
226
+ $ref: "#/$defs/IFile"
246
227
  },
247
228
  minItems: 1
248
229
  }
@@ -251,7 +232,32 @@ const claude = {
251
232
  "files"
252
233
  ],
253
234
  additionalProperties: false,
254
- $defs: {}
235
+ $defs: {
236
+ IFile: {
237
+ type: "object",
238
+ properties: {
239
+ reason: {
240
+ description: "Describe briefly why you made this document, and if you have any plans for\nthe next one.",
241
+ type: "string"
242
+ },
243
+ filename: {
244
+ title: "Filename to generate or overwrite",
245
+ description: "Filename to generate or overwrite.",
246
+ type: "string",
247
+ pattern: "((.*)\\.md)$"
248
+ },
249
+ markdown: {
250
+ description: "Markdown file content. Only write the content of the file. Do not include\nany questions. This should contain only the contents of the file. Do not\nwrite down any questions or appreciation. For example, remove a sentence\nsuch as \"Is it okay if we proceed with the table of contents? Please let me\nknow if there is anything to add or exclude from the table of contents!\"",
251
+ type: "string"
252
+ }
253
+ },
254
+ required: [
255
+ "reason",
256
+ "filename",
257
+ "markdown"
258
+ ]
259
+ }
260
+ }
255
261
  },
256
262
  validate: (() => { const _io0 = input => Array.isArray(input.files) && (1 <= input.files.length && input.files.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.reason && ("string" === typeof input.filename && RegExp(/(.*)\.md$/).test(input.filename)) && "string" === typeof input.markdown; const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.files) || _report(_exceptionable, {
257
263
  path: _path + ".files",
@@ -424,16 +430,20 @@ const claude = {
424
430
  properties: {},
425
431
  additionalProperties: false,
426
432
  required: [],
427
- $defs: {}
433
+ $defs: {
434
+ Recordstringstring: {
435
+ description: "Construct a type with a set of properties K of type T",
436
+ type: "object",
437
+ properties: {},
438
+ required: [],
439
+ additionalProperties: {
440
+ type: "string"
441
+ }
442
+ }
443
+ }
428
444
  },
429
445
  output: {
430
- description: "Description of the current {@link Recordstringstring} type:\n\n> Construct a type with a set of properties K of type T",
431
- type: "object",
432
- properties: {},
433
- required: [],
434
- additionalProperties: {
435
- type: "string"
436
- }
446
+ $ref: "#/$defs/Recordstringstring"
437
447
  },
438
448
  validate: (() => { const __is = input => true; let errors; let _report; return input => {
439
449
  if (false === __is(input)) {
@@ -476,28 +486,7 @@ const collection = {
476
486
  description: "@minItems 1",
477
487
  type: "array",
478
488
  items: {
479
- description: "Current Type: {@link IFile}",
480
- type: "object",
481
- properties: {
482
- reason: {
483
- description: "Describe briefly why you made this document, and if you have any plans for\nthe next one.",
484
- type: "string"
485
- },
486
- filename: {
487
- title: "Filename to generate or overwrite",
488
- description: "Filename to generate or overwrite.\n\n\n@pattern ((.*)\\.md)$",
489
- type: "string"
490
- },
491
- markdown: {
492
- description: "Markdown file content. Only write the content of the file. Do not include\nany questions. This should contain only the contents of the file. Do not\nwrite down any questions or appreciation. For example, remove a sentence\nsuch as \"Is it okay if we proceed with the table of contents? Please let me\nknow if there is anything to add or exclude from the table of contents!\"",
493
- type: "string"
494
- }
495
- },
496
- required: [
497
- "reason",
498
- "filename",
499
- "markdown"
500
- ]
489
+ $ref: "#/$defs/IFile"
501
490
  }
502
491
  }
503
492
  },
@@ -505,7 +494,31 @@ const collection = {
505
494
  "files"
506
495
  ],
507
496
  additionalProperties: false,
508
- $defs: {}
497
+ $defs: {
498
+ IFile: {
499
+ type: "object",
500
+ properties: {
501
+ reason: {
502
+ description: "Describe briefly why you made this document, and if you have any plans for\nthe next one.",
503
+ type: "string"
504
+ },
505
+ filename: {
506
+ title: "Filename to generate or overwrite",
507
+ description: "Filename to generate or overwrite.\n\n\n@pattern ((.*)\\.md)$",
508
+ type: "string"
509
+ },
510
+ markdown: {
511
+ description: "Markdown file content. Only write the content of the file. Do not include\nany questions. This should contain only the contents of the file. Do not\nwrite down any questions or appreciation. For example, remove a sentence\nsuch as \"Is it okay if we proceed with the table of contents? Please let me\nknow if there is anything to add or exclude from the table of contents!\"",
512
+ type: "string"
513
+ }
514
+ },
515
+ required: [
516
+ "reason",
517
+ "filename",
518
+ "markdown"
519
+ ]
520
+ }
521
+ }
509
522
  },
510
523
  validate: (() => { const _io0 = input => Array.isArray(input.files) && (1 <= input.files.length && input.files.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.reason && ("string" === typeof input.filename && RegExp(/(.*)\.md$/).test(input.filename)) && "string" === typeof input.markdown; const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.files) || _report(_exceptionable, {
511
524
  path: _path + ".files",
@@ -680,16 +693,20 @@ const collection = {
680
693
  properties: {},
681
694
  additionalProperties: false,
682
695
  required: [],
683
- $defs: {}
696
+ $defs: {
697
+ Recordstringstring: {
698
+ description: "Construct a type with a set of properties K of type T",
699
+ type: "object",
700
+ properties: {},
701
+ required: [],
702
+ additionalProperties: {
703
+ type: "string"
704
+ }
705
+ }
706
+ }
684
707
  },
685
708
  output: {
686
- description: "Description of the current {@link Recordstringstring} type:\n\n> Construct a type with a set of properties K of type T",
687
- type: "object",
688
- properties: {},
689
- required: [],
690
- additionalProperties: {
691
- type: "string"
692
- }
709
+ $ref: "#/$defs/Recordstringstring"
693
710
  },
694
711
  validate: (() => { const __is = input => true; let errors; let _report; return input => {
695
712
  if (false === __is(input)) {
@@ -718,259 +735,5 @@ const collection = {
718
735
  llama: claude,
719
736
  deepseek: claude,
720
737
  "3.1": claude,
721
- "3.0": {
722
- model: "3.0",
723
- options: {
724
- constraint: true,
725
- recursive: 3,
726
- separate: null
727
- },
728
- functions: [
729
- {
730
- name: "createOrUpdateFiles",
731
- parameters: {
732
- type: "object",
733
- properties: {
734
- files: {
735
- type: "array",
736
- items: {
737
- type: "object",
738
- properties: {
739
- reason: {
740
- type: "string",
741
- description: "Describe briefly why you made this document, and if you have any plans for\nthe next one."
742
- },
743
- filename: {
744
- type: "string",
745
- pattern: "((.*)\\.md)$",
746
- title: "Filename to generate or overwrite",
747
- description: "Filename to generate or overwrite."
748
- },
749
- markdown: {
750
- type: "string",
751
- description: "Markdown file content. Only write the content of the file. Do not include\nany questions. This should contain only the contents of the file. Do not\nwrite down any questions or appreciation. For example, remove a sentence\nsuch as \"Is it okay if we proceed with the table of contents? Please let me\nknow if there is anything to add or exclude from the table of contents!\""
752
- }
753
- },
754
- required: [
755
- "reason",
756
- "filename",
757
- "markdown"
758
- ],
759
- description: "Current Type: {@link IFile}",
760
- additionalProperties: false
761
- },
762
- minItems: 1
763
- }
764
- },
765
- required: [
766
- "files"
767
- ],
768
- additionalProperties: false
769
- },
770
- validate: (() => { const _io0 = input => Array.isArray(input.files) && (1 <= input.files.length && input.files.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.reason && ("string" === typeof input.filename && RegExp(/(.*)\.md$/).test(input.filename)) && "string" === typeof input.markdown; const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.files) || _report(_exceptionable, {
771
- path: _path + ".files",
772
- expected: "(Array<IFile> & MinItems<1>)",
773
- value: input.files
774
- })) && ((1 <= input.files.length || _report(_exceptionable, {
775
- path: _path + ".files",
776
- expected: "Array<> & MinItems<1>",
777
- value: input.files
778
- })) && input.files.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
779
- path: _path + ".files[" + _index2 + "]",
780
- expected: "IFile",
781
- value: elem
782
- })) && _vo1(elem, _path + ".files[" + _index2 + "]", true && _exceptionable) || _report(_exceptionable, {
783
- path: _path + ".files[" + _index2 + "]",
784
- expected: "IFile",
785
- value: elem
786
- })).every(flag => flag)) || _report(_exceptionable, {
787
- path: _path + ".files",
788
- expected: "(Array<IFile> & MinItems<1>)",
789
- value: input.files
790
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
791
- path: _path + ".reason",
792
- expected: "string",
793
- value: input.reason
794
- }), "string" === typeof input.filename && RegExp(/(.*)\.md$/).test(input.filename) || _report(_exceptionable, {
795
- path: _path + ".filename",
796
- expected: "`${string}.md`",
797
- value: input.filename
798
- }), "string" === typeof input.markdown || _report(_exceptionable, {
799
- path: _path + ".markdown",
800
- expected: "string",
801
- value: input.markdown
802
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
803
- if (false === __is(input)) {
804
- errors = [];
805
- _report = __typia_transform__validateReport._validateReport(errors);
806
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
807
- path: _path + "",
808
- expected: "__type",
809
- value: input
810
- })) && _vo0(input, _path + "", true) || _report(true, {
811
- path: _path + "",
812
- expected: "__type",
813
- value: input
814
- }))(input, "$input", true);
815
- const success = 0 === errors.length;
816
- return success ? {
817
- success,
818
- data: input
819
- } : {
820
- success,
821
- errors,
822
- data: input
823
- };
824
- }
825
- return {
826
- success: true,
827
- data: input
828
- };
829
- }; })()
830
- },
831
- {
832
- name: "removeFile",
833
- parameters: {
834
- type: "object",
835
- properties: {
836
- filename: {
837
- type: "string",
838
- pattern: "((.*)\\.md)$",
839
- title: "Filename to generate or overwrite",
840
- description: "Filename to generate or overwrite."
841
- }
842
- },
843
- required: [
844
- "filename"
845
- ],
846
- description: "Description of the current {@link PickIFilefilename} type:\n\n> From T, pick a set of properties whose keys are in the union K",
847
- additionalProperties: false
848
- },
849
- validate: (() => { const _io0 = input => "string" === typeof input.filename && RegExp(/(.*)\.md$/).test(input.filename); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.filename && RegExp(/(.*)\.md$/).test(input.filename) || _report(_exceptionable, {
850
- path: _path + ".filename",
851
- expected: "`${string}.md`",
852
- value: input.filename
853
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
854
- if (false === __is(input)) {
855
- errors = [];
856
- _report = __typia_transform__validateReport._validateReport(errors);
857
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
858
- path: _path + "",
859
- expected: "Pick<IFile, \"filename\">",
860
- value: input
861
- })) && _vo0(input, _path + "", true) || _report(true, {
862
- path: _path + "",
863
- expected: "Pick<IFile, \"filename\">",
864
- value: input
865
- }))(input, "$input", true);
866
- const success = 0 === errors.length;
867
- return success ? {
868
- success,
869
- data: input
870
- } : {
871
- success,
872
- errors,
873
- data: input
874
- };
875
- }
876
- return {
877
- success: true,
878
- data: input
879
- };
880
- }; })()
881
- },
882
- {
883
- name: "abort",
884
- parameters: {
885
- type: "object",
886
- properties: {
887
- reason: {
888
- type: "string"
889
- }
890
- },
891
- required: [
892
- "reason"
893
- ],
894
- additionalProperties: false
895
- },
896
- output: {
897
- type: "string",
898
- "enum": [
899
- "OK"
900
- ]
901
- },
902
- validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
903
- path: _path + ".reason",
904
- expected: "string",
905
- value: input.reason
906
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
907
- if (false === __is(input)) {
908
- errors = [];
909
- _report = __typia_transform__validateReport._validateReport(errors);
910
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
911
- path: _path + "",
912
- expected: "__type",
913
- value: input
914
- })) && _vo0(input, _path + "", true) || _report(true, {
915
- path: _path + "",
916
- expected: "__type",
917
- value: input
918
- }))(input, "$input", true);
919
- const success = 0 === errors.length;
920
- return success ? {
921
- success,
922
- data: input
923
- } : {
924
- success,
925
- errors,
926
- data: input
927
- };
928
- }
929
- return {
930
- success: true,
931
- data: input
932
- };
933
- }; })()
934
- },
935
- {
936
- name: "allFiles",
937
- parameters: {
938
- type: "object",
939
- properties: {},
940
- additionalProperties: false,
941
- required: []
942
- },
943
- output: {
944
- type: "object",
945
- properties: {},
946
- required: [],
947
- description: "Description of the current {@link Recordstringstring} type:\n\n> Construct a type with a set of properties K of type T",
948
- additionalProperties: {
949
- type: "string"
950
- }
951
- },
952
- validate: (() => { const __is = input => true; let errors; let _report; return input => {
953
- if (false === __is(input)) {
954
- errors = [];
955
- _report = __typia_transform__validateReport._validateReport(errors);
956
- ((input, _path, _exceptionable = true) => true)(input, "$input", true);
957
- const success = 0 === errors.length;
958
- return success ? {
959
- success,
960
- data: input
961
- } : {
962
- success,
963
- errors,
964
- data: input
965
- };
966
- }
967
- return {
968
- success: true,
969
- data: input
970
- };
971
- }; })()
972
- }
973
- ]
974
- },
975
738
  };
976
739
  //# sourceMappingURL=AutoBeAnalyzeAgent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutoBeAnalyzeAgent.js","sourceRoot":"","sources":["../../../src/orchestrate/analyze/AutoBeAnalyzeAgent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoE;AAEpE,kDAA0B;AAC1B,+BAA0B;AAI1B,uEAAoE;AACpE,iEAA8D;AAC9D,uEAGmC;AAOnC,MAAa,kBAAkB;IAI7B,YACmB,qBAAmD,EACnD,GAAyB,EACzB,OAA6B,EAC7B,SAAmB;QAHnB,0BAAqB,GAArB,qBAAqB,CAA8B;QACnD,QAAG,GAAH,GAAG,CAAsB;QACzB,YAAO,GAAP,OAAO,CAAsB;QAC7B,cAAS,GAAT,SAAS,CAAU;QANrB,YAAO,GAAyB,EAAE,CAAC;QAQlD,IAAA,qCAAiB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAE7B,MAAM,UAAU,GAAG,gBAAgB,CAAQ;YACzC,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,OAAO,EAAE,IAAI,iDAAuB,CAAC,IAAI,CAAC,O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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIJ;IACH,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
@@ -37,7 +37,6 @@ const AutoBeAnalyzeReviewer = (ctx, input) => {
37
37
  ].join("\n"),
38
38
  },
39
39
  ],
40
- tokenUsage: ctx.usage(),
41
40
  });
42
41
  return agent;
43
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AutoBeAnalyzeReviewer.js","sourceRoot":"","sources":["../../../src/orchestrate/analyze/AutoBeAnalyzeReviewer.ts"],"names":[],"mappings":";;;AAAA,yCAA+C;AAE/C,+BAA0B;AAKnB,MAAM,qBAAqB,GAAG,CACnC,GAAyB,EACzB,KAAsD,EACtD,EAAE;;IACF,MAAM,KAAK,GAAG,IAAI,oBAAa,CAAC;QAC9B,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,WAAW,EAAE,EAAE;QACf,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,QAAQ,EAAE,IAAI;aACf;YACD,MAAM,EAAE,MAAA,GAAG,CAAC,MAAM,0CAAE,MAAM;SAC3B;QACD,SAAS,EAAE;YACT,GAAG,GAAG;iBACH,SAAS,EAAE;iBACX,MAAM,CACL,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,kBAAkB,IAAI,EAAE,CAAC,IAAI,KAAK,aAAa,CACpE;YACH;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,mxMAA6C;aAClD;YACD;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,6BAA6B;oBAC7B,SAAS;oBACT,KAAK,CAAC,KAAK;oBACX,KAAK;iBACN,CAAC,IAAI,CAAC,IAAI,CAAC;aACb;SACF;QACD,UAAU,EAAE,GAAG,CAAC,KAAK,EAAE;KACxB,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AA1CW,QAAA,qBAAqB,yBA0ChC"}
1
+ {"version":3,"file":"AutoBeAnalyzeReviewer.js","sourceRoot":"","sources":["../../../src/orchestrate/analyze/AutoBeAnalyzeReviewer.ts"],"names":[],"mappings":";;;AAAA,yCAA+C;AAE/C,+BAA0B;AAKnB,MAAM,qBAAqB,GAAG,CACnC,GAAyB,EACzB,KAAsD,EACtD,EAAE;;IACF,MAAM,KAAK,GAAG,IAAI,oBAAa,CAAC;QAC9B,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,WAAW,EAAE,EAAE;QACf,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,QAAQ,EAAE,IAAI;aACf;YACD,MAAM,EAAE,MAAA,GAAG,CAAC,MAAM,0CAAE,MAAM;SAC3B;QACD,SAAS,EAAE;YACT,GAAG,GAAG;iBACH,SAAS,EAAE;iBACX,MAAM,CACL,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,kBAAkB,IAAI,EAAE,CAAC,IAAI,KAAK,aAAa,CACpE;YACH;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,mxMAA6C;aAClD;YACD;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,6BAA6B;oBAC7B,SAAS;oBACT,KAAK,CAAC,KAAK;oBACX,KAAK;iBACN,CAAC,IAAI,CAAC,IAAI,CAAC;aACb;SACF;KACF,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAzCW,QAAA,qBAAqB,yBAyChC"}