@autobe/agent 0.10.6 → 0.11.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 (147) hide show
  1. package/lib/AutoBeAgent.js +13 -46
  2. package/lib/AutoBeAgent.js.map +1 -1
  3. package/lib/constants/AutoBeSystemPromptConstant.d.ts +11 -6
  4. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  5. package/lib/context/AutoBeContext.d.ts +3 -2
  6. package/lib/factory/getAutoBeGenerated.d.ts +5 -0
  7. package/lib/factory/getAutoBeGenerated.js +307 -0
  8. package/lib/factory/getAutoBeGenerated.js.map +1 -0
  9. package/lib/index.mjs +1652 -1402
  10. package/lib/index.mjs.map +1 -1
  11. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.d.ts +2 -7
  12. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js +1 -9
  13. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js.map +1 -1
  14. package/lib/orchestrate/analyze/AutoBeAnalyzeRole.d.ts +13 -0
  15. package/lib/orchestrate/analyze/AutoBeAnalyzeRole.js +3 -0
  16. package/lib/orchestrate/analyze/AutoBeAnalyzeRole.js.map +1 -0
  17. package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -25
  18. package/lib/orchestrate/analyze/orchestrateAnalyze.js +22 -420
  19. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  20. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.d.ts +6 -0
  21. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js +561 -0
  22. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js.map +1 -0
  23. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.d.ts +6 -0
  24. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js +41 -0
  25. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js.map +1 -0
  26. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +14 -0
  27. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +468 -0
  28. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
  29. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.d.ts +68 -0
  30. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js +3 -0
  31. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js.map +1 -0
  32. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.d.ts +5 -0
  33. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js +27 -0
  34. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js.map +1 -0
  35. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.d.ts +12 -0
  36. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js +78 -0
  37. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js.map +1 -0
  38. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.d.ts +6 -0
  39. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js +58 -0
  40. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js.map +1 -0
  41. package/lib/orchestrate/interface/orchestrateInterface.js +0 -2
  42. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
  43. package/lib/orchestrate/interface/orchestrateInterfaceComponents.js +17 -137
  44. package/lib/orchestrate/interface/orchestrateInterfaceComponents.js.map +1 -1
  45. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +92 -141
  46. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  47. package/lib/orchestrate/prisma/orchestratePrisma.js +9 -5
  48. package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
  49. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +54 -25
  50. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  51. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +4 -3
  52. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  53. package/lib/orchestrate/prisma/{orchestratePrismaSchema.d.ts → orchestratePrismaSchemas.d.ts} +2 -4
  54. package/lib/orchestrate/prisma/{orchestratePrismaSchema.js → orchestratePrismaSchemas.js} +269 -203
  55. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
  56. package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js +1 -1
  57. package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js.map +1 -1
  58. package/lib/orchestrate/prisma/transformPrismaCorrectHistories.js +1 -1
  59. package/lib/orchestrate/prisma/transformPrismaHistories.js +1 -1
  60. package/lib/orchestrate/prisma/transformPrismaHistories.js.map +1 -1
  61. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.d.ts +2 -6
  62. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js +24 -32
  63. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js.map +1 -1
  64. package/lib/orchestrate/realize/RealizePipe.d.ts +5 -0
  65. package/lib/orchestrate/realize/RealizePipe.js +14 -0
  66. package/lib/orchestrate/realize/RealizePipe.js.map +1 -0
  67. package/lib/orchestrate/realize/orchestrateRealize.d.ts +0 -6
  68. package/lib/orchestrate/realize/orchestrateRealize.js +6 -43
  69. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  70. package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +3 -3
  71. package/lib/orchestrate/realize/orchestrateRealizeCoder.js +124 -59
  72. package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +1 -1
  73. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +188 -18
  74. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +23 -0
  75. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js +3 -0
  76. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +1 -0
  77. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +2 -0
  78. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js +5 -0
  79. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +1 -0
  80. package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +2 -1
  81. package/lib/orchestrate/realize/transformRealizeCoderHistories.js +50 -36
  82. package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +1 -1
  83. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.d.ts +5 -0
  84. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js +123 -0
  85. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js.map +1 -0
  86. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js +4 -1
  87. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -1
  88. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js +2 -1
  89. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -1
  90. package/lib/orchestrate/test/orchestrateTest.js +11 -5
  91. package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
  92. package/lib/orchestrate/test/orchestrateTestCorrect.js +3 -2
  93. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  94. package/lib/orchestrate/test/orchestrateTestWrite.js +22 -13
  95. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  96. package/lib/structures/IAutoBeProps.d.ts +8 -8
  97. package/lib/utils/pipe.d.ts +5 -0
  98. package/lib/utils/pipe.js +14 -0
  99. package/lib/utils/pipe.js.map +1 -0
  100. package/package.json +6 -6
  101. package/src/AutoBeAgent.ts +22 -76
  102. package/src/constants/AutoBeSystemPromptConstant.ts +11 -6
  103. package/src/context/AutoBeContext.ts +3 -1
  104. package/src/factory/getAutoBeGenerated.ts +113 -0
  105. package/src/orchestrate/analyze/AutoBeAnalyzeFileSystem.ts +5 -13
  106. package/src/orchestrate/analyze/AutoBeAnalyzeRole.ts +14 -0
  107. package/src/orchestrate/analyze/orchestrateAnalyze.ts +30 -165
  108. package/src/orchestrate/analyze/orchestrateAnalyzeComposer.ts +115 -0
  109. package/src/orchestrate/analyze/orchestrateAnalyzeReviewer.ts +39 -0
  110. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +106 -0
  111. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.ts +74 -0
  112. package/src/orchestrate/analyze/transformAnalyzeReviewerHistories.ts +31 -0
  113. package/src/orchestrate/analyze/transformAnalyzeWriteHistories.ts +94 -0
  114. package/src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts +66 -0
  115. package/src/orchestrate/interface/orchestrateInterface.ts +0 -2
  116. package/src/orchestrate/interface/orchestrateInterfaceComponents.ts +2 -3
  117. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +21 -0
  118. package/src/orchestrate/prisma/orchestratePrisma.ts +12 -5
  119. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +4 -13
  120. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +9 -4
  121. package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +265 -0
  122. package/src/orchestrate/prisma/transformPrismaSchemaHistories.ts +26 -37
  123. package/src/orchestrate/realize/RealizePipe.ts +39 -0
  124. package/src/orchestrate/realize/orchestrateRealize.ts +3 -91
  125. package/src/orchestrate/realize/orchestrateRealizeCoder.ts +60 -25
  126. package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +192 -18
  127. package/src/orchestrate/realize/structures/IAutoBeRealizeCompile.ts +34 -0
  128. package/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.ts +2 -0
  129. package/src/orchestrate/realize/transformRealizeCoderHistories.ts +58 -34
  130. package/src/orchestrate/realize/writeCodeUntilCompilePassed.ts +178 -0
  131. package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +5 -4
  132. package/src/orchestrate/test/compile/getTestScenarioArtifacts.ts +7 -2
  133. package/src/orchestrate/test/orchestrateTest.ts +14 -12
  134. package/src/orchestrate/test/orchestrateTestCorrect.ts +10 -9
  135. package/src/orchestrate/test/orchestrateTestWrite.ts +33 -27
  136. package/src/structures/IAutoBeProps.ts +10 -7
  137. package/src/utils/pipe.ts +39 -0
  138. package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.d.ts +0 -20
  139. package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js +0 -735
  140. package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js.map +0 -1
  141. package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.d.ts +0 -15
  142. package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js +0 -44
  143. package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js.map +0 -1
  144. package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +0 -1
  145. package/src/orchestrate/analyze/AutoBeAnalyzeAgent.ts +0 -219
  146. package/src/orchestrate/analyze/AutoBeAnalyzeReviewer.ts +0 -62
  147. package/src/orchestrate/prisma/orchestratePrismaSchema.ts +0 -157
@@ -1,37 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -41,22 +8,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
41
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
42
9
  });
43
10
  };
44
- var __importDefault = (this && this.__importDefault) || function (mod) {
45
- return (mod && mod.__esModule) ? mod : { "default": mod };
46
- };
47
11
  Object.defineProperty(exports, "__esModule", { value: true });
48
12
  exports.orchestrateAnalyze = void 0;
49
- const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
50
- const core_1 = require("@agentica/core");
51
- const typia_1 = __importDefault(require("typia"));
52
13
  const uuid_1 = require("uuid");
53
- const assertSchemaModel_1 = require("../../context/assertSchemaModel");
54
- const enforceToolCall_1 = require("../../utils/enforceToolCall");
55
- const AutoBeAnalyzeAgent_1 = require("./AutoBeAnalyzeAgent");
56
- const AutoBeAnalyzeReviewer_1 = require("./AutoBeAnalyzeReviewer");
14
+ const orchestrateAnalyzeComposer_1 = require("./orchestrateAnalyzeComposer");
15
+ const writeDocumentUntilReviewPassed_1 = require("./writeDocumentUntilReviewPassed");
57
16
  /** @todo Kakasoo */
58
17
  const orchestrateAnalyze = (ctx) => (props) => __awaiter(void 0, void 0, void 0, function* () {
59
- var _a, _b, _c, _d, _e, _f, _g, _h;
18
+ var _a, _b, _c, _d, _e, _f;
60
19
  const step = (_b = (_a = ctx.state().analyze) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0;
61
20
  const created_at = new Date().toISOString();
62
21
  ctx.dispatch({
@@ -65,57 +24,29 @@ const orchestrateAnalyze = (ctx) => (props) => __awaiter(void 0, void 0, void 0,
65
24
  step,
66
25
  created_at,
67
26
  });
68
- const controller = createController({
69
- model: ctx.model,
70
- execute: new DeterminingFiles(),
71
- });
72
- const agentica = new core_1.MicroAgentica({
73
- model: ctx.model,
74
- vendor: ctx.vendor,
75
- controllers: [controller],
76
- config: {
77
- locale: (_c = ctx.config) === null || _c === void 0 ? void 0 : _c.locale,
78
- executor: {
79
- describe: null,
80
- },
81
- systemPrompt: {
82
- common: () => "# Overview\n\n- You are the agent that determines the form of the entire document.\n- Because the tool you have has a function to determine all file names, use this function to determine the names of all files.\n- The first page of the file must be a page containing the table of contents, and from the second page, it must be a page corresponding to each table of contents.\n- Please clarify that the name of the table of contents page is the table of contents, such as `toc` or `table of content`.\n- Each document must begin with a number in turn, such as `00`, `01`, `02`, `03`.\n- Do not include database schema document." /* AutoBeSystemPromptConstant.ANALYZE_PLANNER */,
83
- },
84
- },
85
- histories: [
86
- ...ctx
87
- .histories()
88
- .filter((el) => el.type === "assistantMessage" || el.type === "userMessage"),
89
- ],
90
- });
91
- (0, enforceToolCall_1.enforceToolCall)(agentica);
27
+ const pointer = { value: null };
28
+ const agentica = (0, orchestrateAnalyzeComposer_1.orchestrateAnalyzeComposer)(ctx, pointer);
92
29
  const determined = yield agentica
93
- .conversate("Design a complete list of documents for that document")
30
+ .conversate([
31
+ `Design a complete list of documents and user roles for this project.`,
32
+ `Define user roles that can authenticate via API and create appropriate documentation files.`,
33
+ `You must respect the number of documents specified by the user.`,
34
+ ].join("\n"))
94
35
  .finally(() => {
95
36
  const tokenUsage = agentica.getTokenUsage();
96
37
  ctx.usage().record(tokenUsage, ["analyze"]);
97
38
  });
98
- const lastMessage = determined[determined.length - 1];
99
- if (lastMessage.type === "assistantMessage") {
100
- const history = {
39
+ if (pointer.value === null) {
40
+ return {
101
41
  id: (0, uuid_1.v4)(),
42
+ text: "Failed to analyze your request. please request again.",
102
43
  type: "assistantMessage",
103
- text: lastMessage.text,
104
- created_at,
105
44
  completed_at: new Date().toISOString(),
45
+ created_at: new Date().toISOString(),
106
46
  };
107
- ctx.dispatch({
108
- type: "assistantMessage",
109
- text: lastMessage.text,
110
- created_at,
111
- });
112
- return history;
113
47
  }
114
- const described = determined.find((el) => el.type === "describe");
115
- const determinedOutput = (_d = described === null || described === void 0 ? void 0 : described.executes.find((el) => el.protocol === "class" && (() => { const _io0 = input => "string" === typeof input.prefix && (Array.isArray(input.files) && 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)); return input => "object" === typeof input && null !== input && _io0(input); })()(el.value))) === null || _d === void 0 ? void 0 : _d.value;
116
- const prefix = determinedOutput.prefix;
117
- const describedFiles = determinedOutput.files;
118
- if (describedFiles.length === 0) {
48
+ const { files: tableOfContents, prefix, roles } = pointer.value;
49
+ if (tableOfContents.length === 0) {
119
50
  const history = {
120
51
  id: (0, uuid_1.v4)(),
121
52
  type: "assistantMessage",
@@ -130,21 +61,9 @@ const orchestrateAnalyze = (ctx) => (props) => __awaiter(void 0, void 0, void 0,
130
61
  });
131
62
  return history;
132
63
  }
133
- const pointers = yield Promise.all(describedFiles.map((_a) => __awaiter(void 0, [_a], void 0, function* ({ filename, reason }) {
134
- const pointer = { value: null };
135
- const agent = new AutoBeAnalyzeAgent_1.AutoBeAnalyzeAgent(AutoBeAnalyzeReviewer_1.AutoBeAnalyzeReviewer, ctx, pointer, describedFiles.map((el) => el.filename));
136
- yield agent.conversate([
137
- `# Instruction`,
138
- `The names of all the files are as follows: ${describedFiles.join(",")}`,
139
- "Assume that all files are in the same folder. Also, when pointing to the location of a file, go to the relative path.",
140
- "",
141
- `Among the various documents, the part you decided to take care of is as follows.: ${filename}`,
142
- `Only write this document named '${filename}'.`,
143
- "Never write other documents.",
144
- "",
145
- "The reason why this document needs to be written is as follows.",
146
- `- reason: ${reason}`,
147
- ].join("\n"));
64
+ const pointers = yield Promise.all(tableOfContents.map((_a) => __awaiter(void 0, [_a], void 0, function* ({ filename }) {
65
+ const pointer = { value: { files: {} } };
66
+ yield (0, writeDocumentUntilReviewPassed_1.writeDocumentUntilReviewPassed)(ctx, pointer, tableOfContents, filename, roles, 3);
148
67
  return pointer;
149
68
  })));
150
69
  const files = pointers
@@ -159,6 +78,7 @@ const orchestrateAnalyze = (ctx) => (props) => __awaiter(void 0, void 0, void 0,
159
78
  type: "analyze",
160
79
  reason: props.reason,
161
80
  prefix,
81
+ roles: roles,
162
82
  files: files,
163
83
  step,
164
84
  created_at,
@@ -178,334 +98,16 @@ const orchestrateAnalyze = (ctx) => (props) => __awaiter(void 0, void 0, void 0,
178
98
  const history = {
179
99
  id: (0, uuid_1.v4)(),
180
100
  type: "assistantMessage",
181
- text: (_f = (_e = determined.find((el) => el.type === "assistantMessage")) === null || _e === void 0 ? void 0 : _e.text) !== null && _f !== void 0 ? _f : "",
101
+ text: (_d = (_c = determined.find((el) => el.type === "assistantMessage")) === null || _c === void 0 ? void 0 : _c.text) !== null && _d !== void 0 ? _d : "",
182
102
  created_at,
183
103
  completed_at: new Date().toISOString(),
184
104
  };
185
105
  ctx.dispatch({
186
106
  type: "assistantMessage",
187
- text: (_h = (_g = determined.find((el) => el.type === "assistantMessage")) === null || _g === void 0 ? void 0 : _g.text) !== null && _h !== void 0 ? _h : "",
107
+ text: (_f = (_e = determined.find((el) => el.type === "assistantMessage")) === null || _e === void 0 ? void 0 : _e.text) !== null && _f !== void 0 ? _f : "",
188
108
  created_at,
189
109
  });
190
110
  return history;
191
111
  });
192
112
  exports.orchestrateAnalyze = orchestrateAnalyze;
193
- class DeterminingFiles {
194
- /**
195
- * Determining the Initial File List.
196
- *
197
- * Design a list of initial documents that you need to create for that
198
- * requirement. The list of documents is determined only by the name of the
199
- * file. If you determine from the conversation that the user's requirements
200
- * have not been fully gathered, you must stop the analysis and continue
201
- * collecting the remaining requirements. In this case, you do not need to
202
- * generate any files. Simply pass an empty array to `input.files`, which is
203
- * the input value for the `determine` tool.
204
- *
205
- * @param input Prefix and files
206
- * @returns
207
- */
208
- determine(input) {
209
- return input;
210
- }
211
- }
212
- function createController(props) {
213
- (0, assertSchemaModel_1.assertSchemaModel)(props.model);
214
- const application = collection[props.model];
215
- return {
216
- protocol: "class",
217
- name: "Planning",
218
- application,
219
- // execute: props.execute,
220
- execute: {
221
- determine: (input) => {
222
- return input;
223
- },
224
- },
225
- };
226
- }
227
- const claude = {
228
- model: "claude",
229
- options: {
230
- reference: true,
231
- separate: null
232
- },
233
- functions: [
234
- {
235
- name: "determine",
236
- parameters: {
237
- description: " Prefix and files\n\n------------------------------\n\nCurrent Type: {@link IDeterminingInput}",
238
- type: "object",
239
- properties: {
240
- prefix: {
241
- title: "Prefix",
242
- description: "Prefix for file names and all prisma schema files, table, interface, and\nvariable names. For example, if you were to create a bulletin board\nservice, the prefix would be bbs. At this time, the name of the document\nwould be, for example, 00_bbs_table_of_contents, and bbs would have to be\nattached to the name of all documents. This value would then be passed to\nother agents as well, in the form of bbs_article, bbs_article_snapshot, and\nbbs_comments in the table name. Interfaces will likewise be used in\ninterfaces and tests because they originate from the name of prisma scheme.\nDo not use prefixes that are related to the technology stack (e.g., ts_,\napi_, react_) or unnatural prefixes that typically wouldn\u2019t appear in table\nnames or domain models (e.g., zz_, my_, dev_).",
243
- type: "string"
244
- },
245
- files: {
246
- title: "file names and reason to create.",
247
- description: "File name must be English. and it must contains the numbering and prefix.",
248
- type: "array",
249
- items: {
250
- $ref: "#/$defs/PickIFilereasonfilename"
251
- }
252
- }
253
- },
254
- required: [
255
- "prefix",
256
- "files"
257
- ],
258
- additionalProperties: false,
259
- $defs: {
260
- PickIFilereasonfilename: {
261
- description: "From T, pick a set of properties whose keys are in the union K",
262
- type: "object",
263
- properties: {
264
- reason: {
265
- description: "Describe briefly why you made this document, and if you have any plans for\nthe next one.",
266
- type: "string"
267
- },
268
- filename: {
269
- description: "Filename to generate or overwrite.",
270
- type: "string",
271
- pattern: "((.*)\\.md)$"
272
- }
273
- },
274
- required: [
275
- "reason",
276
- "filename"
277
- ]
278
- },
279
- IDeterminingInput: {
280
- type: "object",
281
- properties: {
282
- prefix: {
283
- title: "Prefix",
284
- description: "Prefix for file names and all prisma schema files, table, interface, and\nvariable names. For example, if you were to create a bulletin board\nservice, the prefix would be bbs. At this time, the name of the document\nwould be, for example, 00_bbs_table_of_contents, and bbs would have to be\nattached to the name of all documents. This value would then be passed to\nother agents as well, in the form of bbs_article, bbs_article_snapshot, and\nbbs_comments in the table name. Interfaces will likewise be used in\ninterfaces and tests because they originate from the name of prisma scheme.\nDo not use prefixes that are related to the technology stack (e.g., ts_,\napi_, react_) or unnatural prefixes that typically wouldn\u2019t appear in table\nnames or domain models (e.g., zz_, my_, dev_).",
285
- type: "string"
286
- },
287
- files: {
288
- title: "file names and reason to create.",
289
- description: "File name must be English. and it must contains the numbering and prefix.",
290
- type: "array",
291
- items: {
292
- $ref: "#/$defs/PickIFilereasonfilename"
293
- }
294
- }
295
- },
296
- required: [
297
- "prefix",
298
- "files"
299
- ]
300
- }
301
- }
302
- },
303
- output: {
304
- $ref: "#/$defs/IDeterminingInput"
305
- },
306
- description: "Determining the Initial File List.\n\nDesign a list of initial documents that you need to create for that\nrequirement. The list of documents is determined only by the name of the\nfile. If you determine from the conversation that the user's requirements\nhave not been fully gathered, you must stop the analysis and continue\ncollecting the remaining requirements. In this case, you do not need to\ngenerate any files. Simply pass an empty array to `input.files`, which is\nthe input value for the `determine` tool.",
307
- validate: (() => { const _io0 = input => "string" === typeof input.prefix && (Array.isArray(input.files) && 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)); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.prefix || _report(_exceptionable, {
308
- path: _path + ".prefix",
309
- expected: "string",
310
- value: input.prefix
311
- }), (Array.isArray(input.files) || _report(_exceptionable, {
312
- path: _path + ".files",
313
- expected: "Array<Pick<IFile, \"reason\" | \"filename\">>",
314
- value: input.files
315
- })) && input.files.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
316
- path: _path + ".files[" + _index2 + "]",
317
- expected: "Pick<IFile, \"reason\" | \"filename\">",
318
- value: elem
319
- })) && _vo1(elem, _path + ".files[" + _index2 + "]", true && _exceptionable) || _report(_exceptionable, {
320
- path: _path + ".files[" + _index2 + "]",
321
- expected: "Pick<IFile, \"reason\" | \"filename\">",
322
- value: elem
323
- })).every(flag => flag) || _report(_exceptionable, {
324
- path: _path + ".files",
325
- expected: "Array<Pick<IFile, \"reason\" | \"filename\">>",
326
- value: input.files
327
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
328
- path: _path + ".reason",
329
- expected: "string",
330
- value: input.reason
331
- }), "string" === typeof input.filename && RegExp(/(.*)\.md$/).test(input.filename) || _report(_exceptionable, {
332
- path: _path + ".filename",
333
- expected: "`${string}.md`",
334
- value: input.filename
335
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
336
- if (false === __is(input)) {
337
- errors = [];
338
- _report = __typia_transform__validateReport._validateReport(errors);
339
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
340
- path: _path + "",
341
- expected: "IDeterminingInput",
342
- value: input
343
- })) && _vo0(input, _path + "", true) || _report(true, {
344
- path: _path + "",
345
- expected: "IDeterminingInput",
346
- value: input
347
- }))(input, "$input", true);
348
- const success = 0 === errors.length;
349
- return success ? {
350
- success,
351
- data: input
352
- } : {
353
- success,
354
- errors,
355
- data: input
356
- };
357
- }
358
- return {
359
- success: true,
360
- data: input
361
- };
362
- }; })()
363
- }
364
- ]
365
- };
366
- const collection = {
367
- chatgpt: {
368
- model: "chatgpt",
369
- options: {
370
- reference: true,
371
- strict: false,
372
- separate: null
373
- },
374
- functions: [
375
- {
376
- name: "determine",
377
- parameters: {
378
- description: " Prefix and files\n\n------------------------------\n\nCurrent Type: {@link IDeterminingInput}",
379
- type: "object",
380
- properties: {
381
- prefix: {
382
- title: "Prefix",
383
- description: "Prefix for file names and all prisma schema files, table, interface, and\nvariable names. For example, if you were to create a bulletin board\nservice, the prefix would be bbs. At this time, the name of the document\nwould be, for example, 00_bbs_table_of_contents, and bbs would have to be\nattached to the name of all documents. This value would then be passed to\nother agents as well, in the form of bbs_article, bbs_article_snapshot, and\nbbs_comments in the table name. Interfaces will likewise be used in\ninterfaces and tests because they originate from the name of prisma scheme.\nDo not use prefixes that are related to the technology stack (e.g., ts_,\napi_, react_) or unnatural prefixes that typically wouldn\u2019t appear in table\nnames or domain models (e.g., zz_, my_, dev_).",
384
- type: "string"
385
- },
386
- files: {
387
- title: "file names and reason to create.",
388
- description: "File name must be English. and it must contains the numbering and prefix.",
389
- type: "array",
390
- items: {
391
- $ref: "#/$defs/PickIFilereasonfilename"
392
- }
393
- }
394
- },
395
- required: [
396
- "prefix",
397
- "files"
398
- ],
399
- additionalProperties: false,
400
- $defs: {
401
- PickIFilereasonfilename: {
402
- description: "From T, pick a set of properties whose keys are in the union K",
403
- type: "object",
404
- properties: {
405
- reason: {
406
- description: "Describe briefly why you made this document, and if you have any plans for\nthe next one.",
407
- type: "string"
408
- },
409
- filename: {
410
- description: "Filename to generate or overwrite.\n\n\n@pattern ((.*)\\.md)$",
411
- type: "string"
412
- }
413
- },
414
- required: [
415
- "reason",
416
- "filename"
417
- ]
418
- },
419
- IDeterminingInput: {
420
- type: "object",
421
- properties: {
422
- prefix: {
423
- title: "Prefix",
424
- description: "Prefix for file names and all prisma schema files, table, interface, and\nvariable names. For example, if you were to create a bulletin board\nservice, the prefix would be bbs. At this time, the name of the document\nwould be, for example, 00_bbs_table_of_contents, and bbs would have to be\nattached to the name of all documents. This value would then be passed to\nother agents as well, in the form of bbs_article, bbs_article_snapshot, and\nbbs_comments in the table name. Interfaces will likewise be used in\ninterfaces and tests because they originate from the name of prisma scheme.\nDo not use prefixes that are related to the technology stack (e.g., ts_,\napi_, react_) or unnatural prefixes that typically wouldn\u2019t appear in table\nnames or domain models (e.g., zz_, my_, dev_).",
425
- type: "string"
426
- },
427
- files: {
428
- title: "file names and reason to create.",
429
- description: "File name must be English. and it must contains the numbering and prefix.",
430
- type: "array",
431
- items: {
432
- $ref: "#/$defs/PickIFilereasonfilename"
433
- }
434
- }
435
- },
436
- required: [
437
- "prefix",
438
- "files"
439
- ]
440
- }
441
- }
442
- },
443
- output: {
444
- $ref: "#/$defs/IDeterminingInput"
445
- },
446
- description: "Determining the Initial File List.\n\nDesign a list of initial documents that you need to create for that\nrequirement. The list of documents is determined only by the name of the\nfile. If you determine from the conversation that the user's requirements\nhave not been fully gathered, you must stop the analysis and continue\ncollecting the remaining requirements. In this case, you do not need to\ngenerate any files. Simply pass an empty array to `input.files`, which is\nthe input value for the `determine` tool.",
447
- validate: (() => { const _io0 = input => "string" === typeof input.prefix && (Array.isArray(input.files) && 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)); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.prefix || _report(_exceptionable, {
448
- path: _path + ".prefix",
449
- expected: "string",
450
- value: input.prefix
451
- }), (Array.isArray(input.files) || _report(_exceptionable, {
452
- path: _path + ".files",
453
- expected: "Array<Pick<IFile, \"reason\" | \"filename\">>",
454
- value: input.files
455
- })) && input.files.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
456
- path: _path + ".files[" + _index2 + "]",
457
- expected: "Pick<IFile, \"reason\" | \"filename\">",
458
- value: elem
459
- })) && _vo1(elem, _path + ".files[" + _index2 + "]", true && _exceptionable) || _report(_exceptionable, {
460
- path: _path + ".files[" + _index2 + "]",
461
- expected: "Pick<IFile, \"reason\" | \"filename\">",
462
- value: elem
463
- })).every(flag => flag) || _report(_exceptionable, {
464
- path: _path + ".files",
465
- expected: "Array<Pick<IFile, \"reason\" | \"filename\">>",
466
- value: input.files
467
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
468
- path: _path + ".reason",
469
- expected: "string",
470
- value: input.reason
471
- }), "string" === typeof input.filename && RegExp(/(.*)\.md$/).test(input.filename) || _report(_exceptionable, {
472
- path: _path + ".filename",
473
- expected: "`${string}.md`",
474
- value: input.filename
475
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
476
- if (false === __is(input)) {
477
- errors = [];
478
- _report = __typia_transform__validateReport._validateReport(errors);
479
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
480
- path: _path + "",
481
- expected: "IDeterminingInput",
482
- value: input
483
- })) && _vo0(input, _path + "", true) || _report(true, {
484
- path: _path + "",
485
- expected: "IDeterminingInput",
486
- value: input
487
- }))(input, "$input", true);
488
- const success = 0 === errors.length;
489
- return success ? {
490
- success,
491
- data: input
492
- } : {
493
- success,
494
- errors,
495
- data: input
496
- };
497
- }
498
- return {
499
- success: true,
500
- data: input
501
- };
502
- }; })()
503
- }
504
- ]
505
- },
506
- claude,
507
- llama: claude,
508
- deepseek: claude,
509
- "3.1": claude,
510
- };
511
113
  //# sourceMappingURL=orchestrateAnalyze.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateAnalyze.js","sourceRoot":"","sources":["../../../src/orchestrate/analyze/orchestrateAnalyze.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoE;AAMpE,kDAA0B;AAC1B,+BAA0B;AAK1B,uEAAoE;AACpE,iEAA8D;AAC9D,6DAA0D;AAG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;YACN,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,KAAK;YACZ,IAAI;YACJ,UAAU;YACV,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACvC,CAAC;QACF,GAAG,CAAC,KAAK,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC;QAC9B,GAAG,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9B,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,iBAAiB;YACvB,MAAM;YACN,KAAK,EAAE,KAAK;YACZ,IAAI;YACJ,UAAU;SACX,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,OAAO,GAAkC;QAC7C,EAAE,EAAE,IAAA,SAAE,GAAE;QACR,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,MAAA,MAAA,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,kBAAkB,CAAC,0CAAE,IAAI,mCAAI,EAAE;QACzE,UAAU;QACV,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACvC,CAAC;IACF,GAAG,CAAC,QAAQ,CAAC;QACX,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,MAAA,MAAA,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,kBAAkB,CAAC,0CAAE,IAAI,mCAAI,EAAE;QACzE,UAAU;KACX,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC,CAAA,CAAC;AAlHS,QAAA,kBAAkB,sBAkH3B"}
@@ -0,0 +1,6 @@
1
+ import { MicroAgentica } from "@agentica/core";
2
+ import { ILlmSchema } from "@samchon/openapi";
3
+ import { IPointer } from "tstl";
4
+ import { AutoBeContext } from "../../context/AutoBeContext";
5
+ import { IComposeInput } from "./structures/IAutoBeAnalyzeComposerApplication";
6
+ export declare const orchestrateAnalyzeComposer: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, pointer: IPointer<IComposeInput | null>) => MicroAgentica<Model>;