@autobe/agent 0.9.2 → 0.10.1

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 (168) hide show
  1. package/lib/AutoBeAgent.js +11 -4
  2. package/lib/AutoBeAgent.js.map +1 -1
  3. package/lib/constants/AutoBeSystemPromptConstant.d.ts +7 -6
  4. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  5. package/lib/context/AutoBeTokenUsage.d.ts +15 -1
  6. package/lib/context/AutoBeTokenUsage.js +56 -1
  7. package/lib/context/AutoBeTokenUsage.js.map +1 -1
  8. package/lib/factory/createAutoBeApplication.js +288 -653
  9. package/lib/factory/createAutoBeApplication.js.map +1 -1
  10. package/lib/index.mjs +4225 -6681
  11. package/lib/index.mjs.map +1 -1
  12. package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js +80 -321
  13. package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js.map +1 -1
  14. package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js +0 -1
  15. package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js.map +1 -1
  16. package/lib/orchestrate/analyze/orchestrateAnalyze.js +93 -266
  17. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  18. package/lib/orchestrate/facade/transformFacadeStateMessage.js +2 -2
  19. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
  20. package/lib/orchestrate/index.d.ts +2 -2
  21. package/lib/orchestrate/index.js +4 -4
  22. package/lib/orchestrate/index.js.map +1 -1
  23. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +54 -142
  24. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
  25. package/lib/orchestrate/interface/orchestrateInterfaceComponents.js +189 -201
  26. package/lib/orchestrate/interface/orchestrateInterfaceComponents.js.map +1 -1
  27. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +71 -174
  28. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
  29. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +706 -1099
  30. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  31. package/lib/orchestrate/interface/transformInterfaceHistories.js +2 -0
  32. package/lib/orchestrate/interface/transformInterfaceHistories.js.map +1 -1
  33. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +60 -177
  34. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  35. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +502 -1073
  36. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  37. package/lib/orchestrate/prisma/orchestratePrismaSchema.js +519 -1125
  38. package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
  39. package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js +9 -0
  40. package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js.map +1 -1
  41. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js +8 -0
  42. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js.map +1 -1
  43. package/lib/orchestrate/realize/orchestrateRealize.d.ts +11 -0
  44. package/lib/orchestrate/realize/orchestrateRealize.js +78 -0
  45. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -0
  46. package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +25 -0
  47. package/lib/orchestrate/realize/orchestrateRealizeCoder.js +326 -0
  48. package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +1 -0
  49. package/lib/orchestrate/realize/orchestrateRealizePlanner.d.ts +80 -0
  50. package/lib/orchestrate/realize/orchestrateRealizePlanner.js +53 -0
  51. package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +1 -0
  52. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +39 -0
  53. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js +3 -0
  54. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +1 -0
  55. package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +5 -0
  56. package/lib/orchestrate/realize/transformRealizeCoderHistories.js +127 -0
  57. package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +1 -0
  58. package/lib/orchestrate/test/compile/completeTestCode.d.ts +2 -0
  59. package/lib/orchestrate/test/compile/completeTestCode.js +21 -0
  60. package/lib/orchestrate/test/compile/completeTestCode.js.map +1 -0
  61. package/lib/orchestrate/test/{filterTestFileName.js → compile/filterTestFileName.js} +1 -1
  62. package/lib/orchestrate/test/compile/filterTestFileName.js.map +1 -0
  63. package/lib/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
  64. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js +27 -0
  65. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
  66. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
  67. package/lib/orchestrate/test/{compileTestScenario.js → compile/getTestScenarioArtifacts.js} +10 -5
  68. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
  69. package/lib/orchestrate/test/orchestrateTest.js +14 -9
  70. package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
  71. package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +3 -2
  72. package/lib/orchestrate/test/orchestrateTestCorrect.js +142 -448
  73. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  74. package/lib/orchestrate/test/orchestrateTestScenario.js +258 -532
  75. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  76. package/lib/orchestrate/test/orchestrateTestWrite.d.ts +3 -2
  77. package/lib/orchestrate/test/orchestrateTestWrite.js +124 -90
  78. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  79. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +121 -0
  80. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js +3 -0
  81. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
  82. package/lib/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
  83. package/lib/{utils/types/BackoffOptions.js → orchestrate/test/structures/IAutoBeTestFunction.js} +1 -1
  84. package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
  85. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +14 -2
  86. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +112 -0
  87. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js +3 -0
  88. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
  89. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
  90. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js +3 -0
  91. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
  92. package/lib/orchestrate/test/transformTestCorrectHistories.d.ts +3 -2
  93. package/lib/orchestrate/test/transformTestCorrectHistories.js +28 -67
  94. package/lib/orchestrate/test/transformTestCorrectHistories.js.map +1 -1
  95. package/lib/orchestrate/test/transformTestWriteHistories.d.ts +5 -4
  96. package/lib/orchestrate/test/transformTestWriteHistories.js +161 -43
  97. package/lib/orchestrate/test/transformTestWriteHistories.js.map +1 -1
  98. package/lib/structures/IAutoBeConfig.d.ts +11 -0
  99. package/lib/utils/backoffRetry.d.ts +4 -7
  100. package/lib/utils/backoffRetry.js +19 -37
  101. package/lib/utils/backoffRetry.js.map +1 -1
  102. package/lib/utils/forceRetry.d.ts +1 -0
  103. package/lib/{orchestrate/orchestrateRealize.js → utils/forceRetry.js} +15 -8
  104. package/lib/utils/forceRetry.js.map +1 -0
  105. package/package.json +9 -12
  106. package/src/AutoBeAgent.ts +17 -3
  107. package/src/constants/AutoBeSystemPromptConstant.ts +7 -6
  108. package/src/context/AutoBeTokenUsage.ts +85 -1
  109. package/src/factory/createAutoBeApplication.ts +2 -3
  110. package/src/orchestrate/analyze/AutoBeAnalyzeAgent.ts +8 -3
  111. package/src/orchestrate/analyze/AutoBeAnalyzeReviewer.ts +0 -1
  112. package/src/orchestrate/analyze/orchestrateAnalyze.ts +6 -5
  113. package/src/orchestrate/facade/transformFacadeStateMessage.ts +2 -1
  114. package/src/orchestrate/index.ts +2 -2
  115. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +4 -3
  116. package/src/orchestrate/interface/orchestrateInterfaceComponents.ts +26 -23
  117. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +6 -4
  118. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +14 -11
  119. package/src/orchestrate/interface/transformInterfaceHistories.ts +2 -0
  120. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +10 -5
  121. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +11 -5
  122. package/src/orchestrate/prisma/orchestratePrismaSchema.ts +16 -8
  123. package/src/orchestrate/prisma/transformPrismaComponentsHistories.ts +9 -0
  124. package/src/orchestrate/prisma/transformPrismaSchemaHistories.ts +8 -0
  125. package/src/orchestrate/realize/orchestrateRealize.ts +129 -0
  126. package/src/orchestrate/realize/orchestrateRealizeCoder.ts +148 -0
  127. package/src/orchestrate/realize/orchestrateRealizePlanner.ts +115 -0
  128. package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +46 -0
  129. package/src/orchestrate/realize/transformRealizeCoderHistories.ts +136 -0
  130. package/src/orchestrate/test/compile/completeTestCode.ts +35 -0
  131. package/src/orchestrate/test/{filterTestFileName.ts → compile/filterTestFileName.ts} +1 -1
  132. package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +24 -0
  133. package/src/orchestrate/test/{compileTestScenario.ts → compile/getTestScenarioArtifacts.ts} +16 -8
  134. package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +240 -0
  135. package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +316 -0
  136. package/src/orchestrate/test/experimental/transformTestCorrectHistories.ast +52 -0
  137. package/src/orchestrate/test/orchestrateTest.ts +33 -16
  138. package/src/orchestrate/test/orchestrateTestCorrect.ts +109 -497
  139. package/src/orchestrate/test/orchestrateTestScenario.ts +102 -71
  140. package/src/orchestrate/test/orchestrateTestWrite.ts +55 -181
  141. package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +126 -0
  142. package/src/orchestrate/test/structures/IAutoBeTestFunction.ts +10 -0
  143. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +14 -2
  144. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +117 -0
  145. package/src/orchestrate/test/structures/IAutoBeTestWriteResult.ts +9 -0
  146. package/src/orchestrate/test/transformTestCorrectHistories.ts +38 -71
  147. package/src/orchestrate/test/transformTestWriteHistories.ts +88 -46
  148. package/src/structures/IAutoBeConfig.ts +9 -0
  149. package/src/utils/backoffRetry.ts +25 -36
  150. package/src/utils/forceRetry.ts +13 -0
  151. package/lib/factory/invertOpenApiDocument.d.ts +0 -3
  152. package/lib/factory/invertOpenApiDocument.js +0 -51
  153. package/lib/factory/invertOpenApiDocument.js.map +0 -1
  154. package/lib/orchestrate/orchestrateRealize.d.ts +0 -5
  155. package/lib/orchestrate/orchestrateRealize.js.map +0 -1
  156. package/lib/orchestrate/test/compileTestScenario.d.ts +0 -5
  157. package/lib/orchestrate/test/compileTestScenario.js.map +0 -1
  158. package/lib/orchestrate/test/filterTestFileName.js.map +0 -1
  159. package/lib/utils/StringUtil.d.ts +0 -4
  160. package/lib/utils/StringUtil.js +0 -43
  161. package/lib/utils/StringUtil.js.map +0 -1
  162. package/lib/utils/types/BackoffOptions.d.ts +0 -12
  163. package/lib/utils/types/BackoffOptions.js.map +0 -1
  164. package/src/factory/invertOpenApiDocument.ts +0 -63
  165. package/src/orchestrate/orchestrateRealize.ts +0 -18
  166. package/src/utils/StringUtil.ts +0 -45
  167. package/src/utils/types/BackoffOptions.ts +0 -15
  168. /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,31 @@ 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
+ description: "Filename to generate or overwrite.",
245
+ type: "string",
246
+ pattern: "((.*)\\.md)$"
247
+ },
248
+ markdown: {
249
+ 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!\"",
250
+ type: "string"
251
+ }
252
+ },
253
+ required: [
254
+ "reason",
255
+ "filename",
256
+ "markdown"
257
+ ]
258
+ }
259
+ }
255
260
  },
256
261
  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
262
  path: _path + ".files",
@@ -321,7 +326,6 @@ const claude = {
321
326
  type: "object",
322
327
  properties: {
323
328
  filename: {
324
- title: "Filename to generate or overwrite",
325
329
  description: "Filename to generate or overwrite.",
326
330
  type: "string",
327
331
  pattern: "((.*)\\.md)$"
@@ -424,16 +428,20 @@ const claude = {
424
428
  properties: {},
425
429
  additionalProperties: false,
426
430
  required: [],
427
- $defs: {}
431
+ $defs: {
432
+ Recordstringstring: {
433
+ description: "Construct a type with a set of properties K of type T",
434
+ type: "object",
435
+ properties: {},
436
+ required: [],
437
+ additionalProperties: {
438
+ type: "string"
439
+ }
440
+ }
441
+ }
428
442
  },
429
443
  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
- }
444
+ $ref: "#/$defs/Recordstringstring"
437
445
  },
438
446
  validate: (() => { const __is = input => true; let errors; let _report; return input => {
439
447
  if (false === __is(input)) {
@@ -476,28 +484,7 @@ const collection = {
476
484
  description: "@minItems 1",
477
485
  type: "array",
478
486
  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
- ]
487
+ $ref: "#/$defs/IFile"
501
488
  }
502
489
  }
503
490
  },
@@ -505,7 +492,30 @@ const collection = {
505
492
  "files"
506
493
  ],
507
494
  additionalProperties: false,
508
- $defs: {}
495
+ $defs: {
496
+ IFile: {
497
+ type: "object",
498
+ properties: {
499
+ reason: {
500
+ description: "Describe briefly why you made this document, and if you have any plans for\nthe next one.",
501
+ type: "string"
502
+ },
503
+ filename: {
504
+ description: "Filename to generate or overwrite.\n\n\n@pattern ((.*)\\.md)$",
505
+ type: "string"
506
+ },
507
+ markdown: {
508
+ 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!\"",
509
+ type: "string"
510
+ }
511
+ },
512
+ required: [
513
+ "reason",
514
+ "filename",
515
+ "markdown"
516
+ ]
517
+ }
518
+ }
509
519
  },
510
520
  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
521
  path: _path + ".files",
@@ -575,7 +585,6 @@ const collection = {
575
585
  type: "object",
576
586
  properties: {
577
587
  filename: {
578
- title: "Filename to generate or overwrite",
579
588
  description: "Filename to generate or overwrite.\n\n\n@pattern ((.*)\\.md)$",
580
589
  type: "string"
581
590
  }
@@ -680,16 +689,20 @@ const collection = {
680
689
  properties: {},
681
690
  additionalProperties: false,
682
691
  required: [],
683
- $defs: {}
692
+ $defs: {
693
+ Recordstringstring: {
694
+ description: "Construct a type with a set of properties K of type T",
695
+ type: "object",
696
+ properties: {},
697
+ required: [],
698
+ additionalProperties: {
699
+ type: "string"
700
+ }
701
+ }
702
+ }
684
703
  },
685
704
  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
- }
705
+ $ref: "#/$defs/Recordstringstring"
693
706
  },
694
707
  validate: (() => { const __is = input => true; let errors; let _report; return input => {
695
708
  if (false === __is(input)) {
@@ -718,259 +731,5 @@ const collection = {
718
731
  llama: claude,
719
732
  deepseek: claude,
720
733
  "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
734
  };
976
735
  //# 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,OAAO,CAAC;YAClD,KAAK,EAAE,CAAO,KAA2B,EAAE,EAAE;;;gBAC3C,YAAA,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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"}