@autobe/agent 0.13.0 → 0.14.3

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 (78) hide show
  1. package/lib/AutoBeMockAgent.js +2 -1
  2. package/lib/AutoBeMockAgent.js.map +1 -1
  3. package/lib/constants/AutoBeSystemPromptConstant.d.ts +7 -9
  4. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  5. package/lib/factory/getAutoBeGenerated.js +11 -1
  6. package/lib/factory/getAutoBeGenerated.js.map +1 -1
  7. package/lib/index.mjs +397 -240
  8. package/lib/index.mjs.map +1 -1
  9. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js +6 -4
  10. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js.map +1 -1
  11. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +1 -1
  12. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
  13. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.d.ts +1 -1
  14. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.d.ts +1 -1
  15. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js.map +1 -1
  16. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.d.ts +1 -1
  17. package/lib/orchestrate/interface/orchestrateInterfaceComponents.js +1 -1
  18. package/lib/orchestrate/interface/orchestrateInterfaceComponents.js.map +1 -1
  19. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +1 -1
  20. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
  21. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +107 -110
  22. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  23. package/lib/orchestrate/interface/transformInterfaceHistories.js +10 -0
  24. package/lib/orchestrate/interface/transformInterfaceHistories.js.map +1 -1
  25. package/lib/orchestrate/realize/orchestrateRealize.js +30 -8
  26. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  27. package/lib/orchestrate/realize/{orchestrateRealizeDecorator.d.ts → orchestrateRealizeAuthorization.d.ts} +2 -2
  28. package/lib/orchestrate/realize/{orchestrateRealizeDecorator.js → orchestrateRealizeAuthorization.js} +104 -67
  29. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
  30. package/lib/orchestrate/realize/orchestrateRealizeCoder.js +51 -40
  31. package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +1 -1
  32. package/lib/orchestrate/realize/orchestrateRealizePlanner.d.ts +11 -2
  33. package/lib/orchestrate/realize/orchestrateRealizePlanner.js +2 -1
  34. package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +1 -1
  35. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +148 -17
  36. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +10 -2
  37. package/lib/orchestrate/realize/structures/IAutoBeRealizeDecoratorApplication.d.ts +4 -4
  38. package/lib/orchestrate/realize/transformRealizeCoderHistories.js +58 -11
  39. package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +1 -1
  40. package/lib/orchestrate/realize/transformRealizeDecoratorCorrectHistories.d.ts +2 -3
  41. package/lib/orchestrate/realize/transformRealizeDecoratorCorrectHistories.js +15 -2
  42. package/lib/orchestrate/realize/transformRealizeDecoratorCorrectHistories.js.map +1 -1
  43. package/lib/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +5 -0
  44. package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js +10 -0
  45. package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
  46. package/lib/orchestrate/realize/utils/replaceImportStatements.d.ts +3 -0
  47. package/lib/orchestrate/realize/utils/replaceImportStatements.js +65 -0
  48. package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
  49. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.d.ts +2 -3
  50. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js +45 -24
  51. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js.map +1 -1
  52. package/package.json +5 -5
  53. package/src/AutoBeMockAgent.ts +3 -2
  54. package/src/constants/AutoBeSystemPromptConstant.ts +7 -9
  55. package/src/factory/getAutoBeGenerated.ts +20 -5
  56. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +1 -1
  57. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.ts +2 -1
  58. package/src/orchestrate/analyze/transformAnalyzeWriteHistories.ts +1 -1
  59. package/src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts +1 -1
  60. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +26 -18
  61. package/src/orchestrate/interface/transformInterfaceHistories.ts +10 -0
  62. package/src/orchestrate/realize/orchestrateRealize.ts +32 -7
  63. package/src/orchestrate/realize/{orchestrateRealizeDecorator.ts → orchestrateRealizeAuthorization.ts} +90 -80
  64. package/src/orchestrate/realize/orchestrateRealizeCoder.ts +9 -30
  65. package/src/orchestrate/realize/orchestrateRealizePlanner.ts +13 -1
  66. package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +150 -17
  67. package/src/orchestrate/realize/structures/IAutoBeRealizeCompile.ts +13 -2
  68. package/src/orchestrate/realize/structures/IAutoBeRealizeDecoratorApplication.ts +4 -4
  69. package/src/orchestrate/realize/transformRealizeCoderHistories.ts +55 -8
  70. package/src/orchestrate/realize/transformRealizeDecoratorCorrectHistories.ts +23 -3
  71. package/src/orchestrate/realize/utils/AuthorizationFileSystem.ts +10 -0
  72. package/src/orchestrate/realize/utils/replaceImportStatements.ts +85 -0
  73. package/src/orchestrate/realize/writeCodeUntilCompilePassed.ts +58 -33
  74. package/lib/orchestrate/analyze/AutoBeAnalyzeRole.d.ts +0 -13
  75. package/lib/orchestrate/analyze/AutoBeAnalyzeRole.js +0 -3
  76. package/lib/orchestrate/analyze/AutoBeAnalyzeRole.js.map +0 -1
  77. package/lib/orchestrate/realize/orchestrateRealizeDecorator.js.map +0 -1
  78. package/src/orchestrate/analyze/AutoBeAnalyzeRole.ts +0 -14
@@ -1,5 +1,7 @@
1
1
  import {
2
2
  AutoBeOpenApi,
3
+ AutoBeRealizeAuthorization,
4
+ AutoBeRealizeFunction,
3
5
  IAutoBeTypeScriptCompileResult,
4
6
  } from "@autobe/interface";
5
7
  import { ILlmSchema } from "@samchon/openapi";
@@ -10,7 +12,6 @@ import { AutoBeContext } from "../../context/AutoBeContext";
10
12
  import { pipe } from "./RealizePipe";
11
13
  import { orchestrateRealizeCoder } from "./orchestrateRealizeCoder";
12
14
  import { orchestrateRealizePlanner } from "./orchestrateRealizePlanner";
13
- import { IAutoBeRealizeCoderApplication } from "./structures/IAutoBeRealizeCoderApplication";
14
15
  import { IAutoBeRealizeCompile } from "./structures/IAutoBeRealizeCompile";
15
16
  import { FAILED } from "./structures/IAutoBeRealizeFailedSymbol";
16
17
 
@@ -19,13 +20,17 @@ export async function writeCodeUntilCompilePassed<
19
20
  >(
20
21
  ctx: AutoBeContext<Model>,
21
22
  ops: AutoBeOpenApi.IOperation[],
22
- retry: number = 3,
23
- ): Promise<
24
- Pick<
25
- IAutoBeRealizeCoderApplication.RealizeCoderOutput,
26
- "filename" | "implementationCode"
27
- >[]
28
- > {
23
+ authorizations: AutoBeRealizeAuthorization[],
24
+ retry: number,
25
+ ): Promise<AutoBeRealizeFunction[]> {
26
+ const payloads = authorizations
27
+ .map((el) => {
28
+ return {
29
+ [el.payload.location]: el.payload.content,
30
+ };
31
+ })
32
+ .reduce<Record<string, string>>((acc, cur) => Object.assign(acc, cur), {});
33
+
29
34
  const files = Object.entries(await ctx.files({ dbms: "postgres" }))
30
35
  .filter(([key]) => {
31
36
  return key.startsWith("src");
@@ -35,7 +40,7 @@ export async function writeCodeUntilCompilePassed<
35
40
  {},
36
41
  );
37
42
 
38
- const templateFiles = ["src/providers/jwtDecode.ts", "src/MyGlobal.ts"];
43
+ const templateFiles = ["src/MyGlobal.ts", "src/util/toISOStringSafe.ts"];
39
44
  const entireCodes: IAutoBeRealizeCompile.FileContentMap = {
40
45
  ...(await loadTemplateFiles(templateFiles)),
41
46
  };
@@ -45,7 +50,6 @@ export async function writeCodeUntilCompilePassed<
45
50
  total: [],
46
51
  };
47
52
 
48
- ops = ops.filter((_el, i) => i < 10);
49
53
  for (let i = 0; i < retry; i++) {
50
54
  const targets = ops.filter((op) =>
51
55
  shouldProcessOperation(op, diagnostics.current),
@@ -57,7 +61,10 @@ export async function writeCodeUntilCompilePassed<
57
61
  | IAutoBeRealizeCompile.Fail
58
62
  )[] = await Promise.all(
59
63
  targets.map((op) => {
60
- return process(ctx, metadata, op, diagnostics, entireCodes);
64
+ const role = op.authorizationRole;
65
+ const decorator = authorizations.find((el) => el.role === role);
66
+
67
+ return process(ctx, metadata, op, diagnostics, entireCodes, decorator);
61
68
  }),
62
69
  );
63
70
 
@@ -66,6 +73,12 @@ export async function writeCodeUntilCompilePassed<
66
73
  entireCodes[c.result.filename] = {
67
74
  content: c.result.implementationCode,
68
75
  result: "success",
76
+ endpoint: {
77
+ method: c.op.method,
78
+ path: c.op.path,
79
+ },
80
+ location: c.result.filename,
81
+ name: c.result.name,
69
82
  };
70
83
  }
71
84
  }
@@ -75,6 +88,7 @@ export async function writeCodeUntilCompilePassed<
75
88
  const compiler = await ctx.compiler();
76
89
  const compiled = await compiler.typescript.compile({
77
90
  files: {
91
+ ...payloads,
78
92
  ...files,
79
93
  ...nodeModules,
80
94
  ...Object.entries(entireCodes)
@@ -102,28 +116,34 @@ export async function writeCodeUntilCompilePassed<
102
116
  console.log(
103
117
  JSON.stringify(diagnostics.current, null, 2),
104
118
  `현재 에러의 수: ${diagnostics.current.length}\n`,
105
- `현재 시도 수: ${i}`,
119
+ `현재 시도 수: ${i + 1}`,
106
120
  );
107
121
  }
108
122
  }
109
123
 
110
- return Object.entries(entireCodes).map(([filename, { content }]) => {
111
- return {
112
- filename,
113
- implementationCode: content,
114
- };
115
- });
124
+ return Object.entries(entireCodes)
125
+ .filter(([filename]) => filename.startsWith("src/providers")) // filter only provider files
126
+ .map(([filename, value]) => {
127
+ return {
128
+ filename,
129
+ content: value.content,
130
+ endpoint: value.endpoint!,
131
+ location: value.location!,
132
+ name: value.name!,
133
+ role: value.role!,
134
+ };
135
+ });
116
136
  }
117
137
 
118
138
  async function loadTemplateFiles(
119
139
  templateFiles: string[],
120
- ): Promise<Record<string, { content: string; result: "success" }>> {
140
+ ): Promise<IAutoBeRealizeCompile.FileContentMap> {
121
141
  const templateBasePath = path.join(
122
142
  __dirname,
123
143
  "../../../../../internals/template/realize",
124
144
  );
125
145
 
126
- const result: Record<string, { content: string; result: "success" }> = {};
146
+ const result: IAutoBeRealizeCompile.FileContentMap = {};
127
147
 
128
148
  for (const filePath of templateFiles) {
129
149
  result[filePath] = {
@@ -131,6 +151,8 @@ async function loadTemplateFiles(
131
151
  encoding: "utf-8",
132
152
  }),
133
153
  result: "success",
154
+ location: filePath,
155
+ role: null,
134
156
  };
135
157
  }
136
158
 
@@ -143,10 +165,11 @@ async function process<Model extends ILlmSchema.Model>(
143
165
  op: AutoBeOpenApi.IOperation,
144
166
  diagnostics: IAutoBeRealizeCompile.CompileDiagnostics,
145
167
  entireCodes: IAutoBeRealizeCompile.FileContentMap,
168
+ decorator?: AutoBeRealizeAuthorization,
146
169
  ) {
147
170
  const result = await pipe(
148
171
  op,
149
- (op) => orchestrateRealizePlanner(ctx, op),
172
+ (op) => orchestrateRealizePlanner(ctx, op, decorator),
150
173
  async (p) => {
151
174
  const filename = `src/providers/${p.functionName}.ts` as const;
152
175
  const t = diagnostics.total.filter((el) => el.file === filename);
@@ -155,19 +178,21 @@ async function process<Model extends ILlmSchema.Model>(
155
178
  const c = entireCodes[filename]?.content ?? null;
156
179
 
157
180
  return orchestrateRealizeCoder(ctx, op, p, c, t, d).then((res) => {
181
+ ctx.dispatch({
182
+ type: "realizeProgress",
183
+ filename: filename,
184
+ content: res === FAILED ? "FAILED" : res.implementationCode,
185
+ completed: ++metadata.count,
186
+ created_at: new Date().toISOString(),
187
+ step: ctx.state().analyze?.step ?? 0,
188
+ total: metadata.total,
189
+ });
190
+
158
191
  if (res === FAILED) {
159
- } else {
160
- ctx.dispatch({
161
- type: "realizeProgress",
162
- filename: res.filename,
163
- content: res.implementationCode,
164
- completed: ++metadata.count,
165
- created_at: new Date().toISOString(),
166
- step: ctx.state().analyze?.step ?? 0,
167
- total: metadata.total,
168
- });
192
+ return res;
169
193
  }
170
- return res;
194
+
195
+ return { ...res, name: p.functionName };
171
196
  });
172
197
  },
173
198
  );
@@ -176,7 +201,7 @@ async function process<Model extends ILlmSchema.Model>(
176
201
  return { type: "failed", op: op, result } as const;
177
202
  }
178
203
 
179
- return { type: "success", op: op, result: result } as const;
204
+ return { type: "success", op: op, result } as const;
180
205
  }
181
206
 
182
207
  function shouldProcessOperation(
@@ -1,13 +0,0 @@
1
- export interface AutoBeAnalyzeRole {
2
- /**
3
- * Role name representing user types that can authenticate via API. These are
4
- * user roles that can register and login to the service. This will be used as
5
- * reference when creating Prisma schema for user authentication.
6
- */
7
- name: string;
8
- /**
9
- * Description of what this user role can do in the system. Describes the
10
- * permissions and capabilities of this authenticated user type.
11
- */
12
- description: string;
13
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=AutoBeAnalyzeRole.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoBeAnalyzeRole.js","sourceRoot":"","sources":["../../../src/orchestrate/analyze/AutoBeAnalyzeRole.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"orchestrateRealizeDecorator.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeDecorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,kEAgEC;;AAxFD,yCAAoE;AAMpE,2DAA6B;AAC7B,gDA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EvC,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,kBAAkB;QACxB,WAAW;QACX,OAAO,EAAE;YACP,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE;gBACxB,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;SAC2C;KAC/C,CAAC;AACJ,CAAC;AAED,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMT,CAAC;AACJ,MAAM,UAAU,GAAG;IACjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIJ;IACH,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
@@ -1,14 +0,0 @@
1
- export interface AutoBeAnalyzeRole {
2
- /**
3
- * Role name representing user types that can authenticate via API. These are
4
- * user roles that can register and login to the service. This will be used as
5
- * reference when creating Prisma schema for user authentication.
6
- */
7
- name: string;
8
-
9
- /**
10
- * Description of what this user role can do in the system. Describes the
11
- * permissions and capabilities of this authenticated user type.
12
- */
13
- description: string;
14
- }