@autobe/agent 0.16.0 → 0.17.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 (135) hide show
  1. package/LICENSE +661 -21
  2. package/lib/AutoBeAgent.js +9 -9
  3. package/lib/AutoBeAgent.js.map +1 -1
  4. package/lib/constants/AutoBeSystemPromptConstant.d.ts +2 -2
  5. package/lib/context/AutoBeContext.d.ts +16 -4
  6. package/lib/context/AutoBeTokenUsage.d.ts +168 -11
  7. package/lib/context/AutoBeTokenUsage.js +152 -32
  8. package/lib/context/AutoBeTokenUsage.js.map +1 -1
  9. package/lib/context/AutoBeTokenUsageComponent.d.ts +116 -0
  10. package/lib/context/AutoBeTokenUsageComponent.js +120 -0
  11. package/lib/context/AutoBeTokenUsageComponent.js.map +1 -0
  12. package/lib/factory/createAutoBeApplication.js +1 -1
  13. package/lib/factory/createAutoBeApplication.js.map +1 -1
  14. package/lib/factory/createAutoBeContext.d.ts +19 -0
  15. package/lib/factory/createAutoBeContext.js +141 -0
  16. package/lib/factory/createAutoBeContext.js.map +1 -0
  17. package/lib/factory/getAutoBeGenerated.d.ts +1 -1
  18. package/lib/factory/getAutoBeGenerated.js +14 -11
  19. package/lib/factory/getAutoBeGenerated.js.map +1 -1
  20. package/lib/factory/getAutoBeRealizeGenerated.d.ts +7 -0
  21. package/lib/factory/getAutoBeRealizeGenerated.js +27 -0
  22. package/lib/factory/getAutoBeRealizeGenerated.js.map +1 -0
  23. package/lib/index.d.ts +1 -0
  24. package/lib/index.js +1 -0
  25. package/lib/index.js.map +1 -1
  26. package/lib/index.mjs +1090 -927
  27. package/lib/index.mjs.map +1 -1
  28. package/lib/orchestrate/analyze/orchestrateAnalyze.js +9 -36
  29. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  30. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js +9 -9
  31. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js.map +1 -1
  32. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js +1 -1
  33. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js.map +1 -1
  34. package/lib/orchestrate/interface/orchestrateInterface.js +6 -23
  35. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
  36. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +1 -1
  37. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
  38. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +1 -1
  39. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
  40. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +1 -1
  41. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
  42. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +1 -1
  43. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  44. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +1 -1
  45. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
  46. package/lib/orchestrate/prisma/{transformPrismaComponentsHistories.d.ts → histories/transformPrismaComponentsHistories.d.ts} +1 -1
  47. package/lib/orchestrate/prisma/{transformPrismaComponentsHistories.js → histories/transformPrismaComponentsHistories.js} +1 -1
  48. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
  49. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
  50. package/lib/orchestrate/prisma/{transformPrismaHistories.d.ts → histories/transformPrismaHistories.d.ts} +1 -1
  51. package/lib/orchestrate/prisma/histories/transformPrismaHistories.js.map +1 -0
  52. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +48 -0
  53. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
  54. package/lib/orchestrate/prisma/orchestratePrisma.d.ts +1 -1
  55. package/lib/orchestrate/prisma/orchestratePrisma.js +9 -29
  56. package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
  57. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +126 -19
  58. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  59. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +10 -10
  60. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  61. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +128 -150
  62. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
  63. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +120 -0
  64. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js +3 -0
  65. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
  66. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +142 -0
  67. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js +3 -0
  68. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
  69. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +209 -0
  70. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js +3 -0
  71. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
  72. package/lib/orchestrate/realize/orchestrateRealize.js +13 -24
  73. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  74. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +1 -1
  75. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
  76. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +1 -1
  77. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
  78. package/lib/orchestrate/realize/orchestrateRealizeCoder.js +23 -23
  79. package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +1 -1
  80. package/lib/orchestrate/test/orchestrateTest.js +8 -26
  81. package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
  82. package/lib/orchestrate/test/orchestrateTestCorrect.js +1 -1
  83. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  84. package/lib/orchestrate/test/orchestrateTestScenario.js +1 -1
  85. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  86. package/lib/orchestrate/test/orchestrateTestWrite.js +1 -1
  87. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  88. package/package.json +8 -8
  89. package/src/AutoBeAgent.ts +10 -9
  90. package/src/constants/AutoBeSystemPromptConstant.ts +2 -2
  91. package/src/context/AutoBeContext.ts +30 -3
  92. package/src/context/AutoBeTokenUsage.ts +252 -54
  93. package/src/context/AutoBeTokenUsageComponent.ts +180 -0
  94. package/src/factory/createAutoBeApplication.ts +1 -1
  95. package/src/factory/createAutoBeContext.ts +193 -0
  96. package/src/factory/getAutoBeGenerated.ts +14 -21
  97. package/src/factory/getAutoBeRealizeGenerated.ts +30 -0
  98. package/src/index.ts +1 -0
  99. package/src/orchestrate/analyze/orchestrateAnalyze.ts +9 -38
  100. package/src/orchestrate/analyze/orchestrateAnalyzeReviewer.ts +1 -1
  101. package/src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts +1 -1
  102. package/src/orchestrate/interface/orchestrateInterface.ts +4 -21
  103. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +1 -1
  104. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +1 -1
  105. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +1 -1
  106. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +1 -1
  107. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +1 -1
  108. package/src/orchestrate/prisma/{transformPrismaComponentsHistories.ts → histories/transformPrismaComponentsHistories.ts} +2 -2
  109. package/src/orchestrate/prisma/{transformPrismaCorrectHistories.ts → histories/transformPrismaCorrectHistories.ts} +1 -1
  110. package/src/orchestrate/prisma/{transformPrismaHistories.ts → histories/transformPrismaHistories.ts} +2 -2
  111. package/src/orchestrate/prisma/{transformPrismaSchemaHistories.ts → histories/transformPrismaSchemaHistories.ts} +1 -1
  112. package/src/orchestrate/prisma/orchestratePrisma.ts +45 -68
  113. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +13 -81
  114. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +8 -148
  115. package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +15 -82
  116. package/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.ts +124 -0
  117. package/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.ts +144 -0
  118. package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +214 -0
  119. package/src/orchestrate/realize/orchestrateRealize.ts +19 -32
  120. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +1 -1
  121. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +1 -1
  122. package/src/orchestrate/realize/orchestrateRealizeCoder.ts +1 -1
  123. package/src/orchestrate/test/orchestrateTest.ts +6 -26
  124. package/src/orchestrate/test/orchestrateTestCorrect.ts +1 -1
  125. package/src/orchestrate/test/orchestrateTestScenario.ts +1 -1
  126. package/src/orchestrate/test/orchestrateTestWrite.ts +1 -1
  127. package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js.map +0 -1
  128. package/lib/orchestrate/prisma/transformPrismaCorrectHistories.js.map +0 -1
  129. package/lib/orchestrate/prisma/transformPrismaHistories.js.map +0 -1
  130. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js +0 -48
  131. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js.map +0 -1
  132. /package/lib/orchestrate/prisma/{transformPrismaCorrectHistories.d.ts → histories/transformPrismaCorrectHistories.d.ts} +0 -0
  133. /package/lib/orchestrate/prisma/{transformPrismaCorrectHistories.js → histories/transformPrismaCorrectHistories.js} +0 -0
  134. /package/lib/orchestrate/prisma/{transformPrismaHistories.js → histories/transformPrismaHistories.js} +0 -0
  135. /package/lib/orchestrate/prisma/{transformPrismaSchemaHistories.d.ts → histories/transformPrismaSchemaHistories.d.ts} +0 -0
@@ -77,7 +77,7 @@ const orchestrateAnalyzeReviewer = (ctx, input) => __awaiter(void 0, void 0, voi
77
77
  (0, enforceToolCall_1.enforceToolCall)(agent);
78
78
  const command = `proceed with the review of these files only.`;
79
79
  yield agent.conversate(command).finally(() => {
80
- const tokenUsage = agent.getTokenUsage();
80
+ const tokenUsage = agent.getTokenUsage().aggregate;
81
81
  ctx.usage().record(tokenUsage, ["analyze"]);
82
82
  });
83
83
  return fnCalled.value;
@@ -133,12 +133,12 @@ const claude = {
133
133
  description: "Represents the completion of an asynchronous operation",
134
134
  type: "object",
135
135
  properties: {
136
- "__@toStringTag@1672": {
136
+ "__@toStringTag@1737": {
137
137
  type: "string"
138
138
  }
139
139
  },
140
140
  required: [
141
- "__@toStringTag@1672"
141
+ "__@toStringTag@1737"
142
142
  ]
143
143
  }
144
144
  }
@@ -199,12 +199,12 @@ const claude = {
199
199
  description: "Represents the completion of an asynchronous operation",
200
200
  type: "object",
201
201
  properties: {
202
- "__@toStringTag@1672": {
202
+ "__@toStringTag@1737": {
203
203
  type: "string"
204
204
  }
205
205
  },
206
206
  required: [
207
- "__@toStringTag@1672"
207
+ "__@toStringTag@1737"
208
208
  ]
209
209
  }
210
210
  }
@@ -271,12 +271,12 @@ const collection = {
271
271
  description: "Represents the completion of an asynchronous operation",
272
272
  type: "object",
273
273
  properties: {
274
- "__@toStringTag@1672": {
274
+ "__@toStringTag@1737": {
275
275
  type: "string"
276
276
  }
277
277
  },
278
278
  required: [
279
- "__@toStringTag@1672"
279
+ "__@toStringTag@1737"
280
280
  ]
281
281
  }
282
282
  }
@@ -340,12 +340,12 @@ const collection = {
340
340
  description: "Represents the completion of an asynchronous operation",
341
341
  type: "object",
342
342
  properties: {
343
- "__@toStringTag@1672": {
343
+ "__@toStringTag@1737": {
344
344
  type: "string"
345
345
  }
346
346
  },
347
347
  required: [
348
- "__@toStringTag@1672"
348
+ "__@toStringTag@1737"
349
349
  ]
350
350
  }
351
351
  }
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateAnalyzeReviewer.js","sourceRoot":"","sources":["../../../src/orchestrate/analyze/orchestrateAnalyzeReviewer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoE;AAGpE,kDAA0B;AAG1B,uEAAoE;AACpE,iEAA8D;AAC9D,2FAAwF;AAWjF,MAAM,0BAA0B,GAAG,CAGxC,GAAyB,EACzB,KAGC,EAC2C,EAAE;IAC9C,MAAM,QAAQ,GAAgD;QAC5D,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,oDAAoD;SAC5D;KACF,CAAC;IAEF,MAAM,UAAU,GAAG,gBAAgB,CAAC;QAClC,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,SAAS,EAAE,CAAC,MAAyC,EAAE,EAAE;YACvD,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC;QAC1B,CAAC;KACF,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,IAAI,oBAAa,CAAC;QAC9B,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,WAAW,EAAE,CAAC,UAAU,CAAC;QACzB,MAAM,kCACD,GAAG,CAAC,MAAM,KACb,QAAQ,EAAE;gBACR,QAAQ,EAAE,IAAI;aACf,GACF;QACD,SAAS,EAAE,CAAC,GAAG,IAAA,qEAAiC,EAAC,KAAK,CAAC,CAAC;KACzD,CAAC,CAAC;IACH,IAAA,iCAAe,EAAC,KAAK,CAAC,CAAC;IAEvB,MAAM,OAAO,GAAG,8CAAuD,CAAC;IACxE,MAAM,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE;QAC3C,MAAM,UAAU,GAAG,KAAK,CAAC,aAAa,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIJ;IACH,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
@@ -39,7 +39,7 @@ function writeDocumentUntilReviewPassed(ctx, props) {
39
39
  },
40
40
  });
41
41
  yield writer.conversate("Write Document.").finally(() => {
42
- const tokenUsage = writer.getTokenUsage();
42
+ const tokenUsage = writer.getTokenUsage().aggregate;
43
43
  ctx.usage().record(tokenUsage, ["analyze"]);
44
44
  });
45
45
  if (isToolCalled === false) {
@@ -1 +1 @@
1
- {"version":3,"file":"writeDocumentUntilReviewPassed.js","sourceRoot":"","sources":["../../../src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts"],"names":[],"mappings":";;;;;;;;;;;AAYA,wEAmFC;AAtFD,6EAA0E;AAC1E,uEAAoE;AAEpE,SAAsB,8BAA8B,CAGlD,GAAyB,EACzB,KAOC;;;QAED,MAAM,KAAK,GAAG,MAAA,KAAK,CAAC,KAAK,mCAAI,CAAC,CAAC;QAC/B,MAAM,OAAO,GAA+C;YAC1D,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;SACrB,CAAC;QAEF;;;WAGG;QACH,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;YACjB,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,IAAI,YAAY,GAAG,KAAK,CAAC;QACzB,MAAM,MAAM,GAAG,IAAA,iDAAuB,EAAC,GAAG,EAAE;YAC1C,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,UAAU,EAAE,KAAK,CAAC,QAAQ;YAC1B,MAAM,EAAE,MAAA,KAAK,CAAC,UAAU,mCAAI,EAAE;YAC9B,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;;gBACjB,YAAY,GAAG,IAAI,CAAC;gBACpB,OAAO,CAAC,KAAK,GAAG,EAAE,KAAK,kC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,oBACA,OAAO,CAAC,KAAK,CAAC,KAAK,CACvB;YACD,MAAM,EAAE,YAAY,CAAC,KAAK;YAC1B,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK;YAC3B,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,SAAS;YACnC,IAAI,EAAE,MAAA,MAAA,GAAG,CAAC,KAAK,EAAE,CAAC,OAAO,0CAAE,IAAI,mCAAI,CAAC;YACpC,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC,CAAC,CAAC;QAEH,OAAO,MAAM,8BAA8B,CAAC,GAAG,EAAE;YAC/C,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,KAAK,EAAE,KAAK,GAAG,CAAC;YAChB,UAAU,EAAE,YAAY,CAAC,KAAK;SAC/B,CAAC,CAAC;IACL,CAAC;CAAA"}
@@ -10,14 +10,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.orchestrateInterface = void 0;
13
- const uuid_1 = require("uuid");
14
13
  const orchestrateInterfaceComplement_1 = require("./orchestrateInterfaceComplement");
15
14
  const orchestrateInterfaceEndpoints_1 = require("./orchestrateInterfaceEndpoints");
16
15
  const orchestrateInterfaceGroups_1 = require("./orchestrateInterfaceGroups");
17
16
  const orchestrateInterfaceOperations_1 = require("./orchestrateInterfaceOperations");
18
17
  const orchestrateInterfaceSchemas_1 = require("./orchestrateInterfaceSchemas");
19
18
  const orchestrateInterface = (ctx) => (props) => __awaiter(void 0, void 0, void 0, function* () {
20
- var _a, _b, _c, _d, _e, _f, _g, _h;
19
+ var _a, _b, _c, _d, _e, _f;
21
20
  // ENDPOINTS
22
21
  const start = new Date();
23
22
  ctx.dispatch({
@@ -27,11 +26,8 @@ const orchestrateInterface = (ctx) => (props) => __awaiter(void 0, void 0, void
27
26
  step: (_b = (_a = ctx.state().analyze) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0,
28
27
  });
29
28
  const init = yield (0, orchestrateInterfaceGroups_1.orchestrateInterfaceGroups)(ctx);
30
- if (init.type === "assistantMessage") {
31
- ctx.dispatch(init);
32
- ctx.histories().push(init);
33
- return init;
34
- }
29
+ if (init.type === "assistantMessage")
30
+ return ctx.assistantMessage(init);
35
31
  else
36
32
  ctx.dispatch(init);
37
33
  // ENDPOINTS & OPERATIONS
@@ -47,25 +43,12 @@ const orchestrateInterface = (ctx) => (props) => __awaiter(void 0, void 0, void
47
43
  };
48
44
  document.components.schemas = yield (0, orchestrateInterfaceComplement_1.orchestrateInterfaceComplement)(ctx, document);
49
45
  // DO COMPILE
50
- const result = {
51
- type: "interface",
52
- id: (0, uuid_1.v4)(),
53
- document,
54
- reason: props.reason,
55
- step: (_f = (_e = ctx.state().analyze) === null || _e === void 0 ? void 0 : _e.step) !== null && _f !== void 0 ? _f : 0,
56
- created_at: start.toISOString(),
57
- completed_at: new Date().toISOString(),
58
- };
59
- ctx.state().interface = result;
60
- ctx.histories().push(result);
61
- ctx.dispatch({
46
+ return ctx.dispatch({
62
47
  type: "interfaceComplete",
63
- document: result.document,
48
+ document,
64
49
  created_at: start.toISOString(),
65
- reason: props.reason,
66
- step: (_h = (_g = ctx.state().analyze) === null || _g === void 0 ? void 0 : _g.step) !== null && _h !== void 0 ? _h : 0,
50
+ step: (_f = (_e = ctx.state().analyze) === null || _e === void 0 ? void 0 : _e.step) !== null && _f !== void 0 ? _f : 0,
67
51
  });
68
- return result;
69
52
  });
70
53
  exports.orchestrateInterface = orchestrateInterface;
71
54
  //# sourceMappingURL=orchestrateInterface.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateInterface.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterface.ts"],"names":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AE,UAAU,CAAC;SAC5D;KACF,CAAC;IACF,QAAQ,CAAC,UAAU,CAAC,OAAO,GAAG,MAAM,IAAA,+DAA8B,EAChE,GAAG,EACH,QAAQ,CACT,CAAC;IAEF,aAAa;IACb,MAAM,MAAM,GAA2B;QACrC,IAAI,EAAE,WAAW;QACjB,EAAE,EAAE,IAAA,SAAE,GAAE;QACR,QAAQ;QACR,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,IAAI,EAAE,MAAA,MAAA,GAAG,CAAC,KAAK,EAAE,CAAC,OAAO,0CAAE,IAAI,mCAAI,CAAC;QACpC,UAAU,EAAE,KAAK,CAAC,WAAW,EAAE;QAC/B,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACvC,CAAC;IACF,GAAG,CAAC,KAAK,EAAE,CAAC,SAAS,GAAG,MAAM,CAAC;IAC/B,GAAG,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7B,GAAG,CAAC,QAAQ,CAAC;QACX,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,UAAU,EAAE,KAAK,CAAC,WAAW,EAAE;QAC/B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,IAAI,EAAE,MAAA,MAAA,GAAG,CAAC,KAAK,EAAE,CAAC,OAAO,0CAAE,IAAI,mCAAI,CAAC;KACE,CAAC,CAAC;IAC1C,OAAO,MAAM,CAAC;AAChB,CAAC,CAAA,CAAC;AA7DS,QAAA,oBAAoB,wBA6D7B"}
1
+ {"version":3,"file":"orchestrateInterface.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterface.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,qFAAkF;AAClF,mFAAgF;AAChF,6EAA0E;AAC1E,qFAAkF;AAClF,+EAA4E;AAErE,MAAM,oBAAoB,GAC/B,CAAiC,GAAyB,EAAE,EAAE,CAC9D,CACE,KAA8B,EACmC,EAA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KAAK,EAAE,CAAC,OAAO,0CAAE,IAAI,mCAAI,CAAC;KACE,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AA7CS,QAAA,oBAAoB,wBA6C7B"}
@@ -91,7 +91,7 @@ function step(ctx, document, retry) {
91
91
  });
92
92
  (0, enforceToolCall_1.enforceToolCall)(agentica);
93
93
  yield agentica.conversate("Fill missing schema types please").finally(() => {
94
- const tokenUsage = agentica.getTokenUsage();
94
+ const tokenUsage = agentica.getTokenUsage().aggregate;
95
95
  ctx.usage().record(tokenUsage, ["interface"]);
96
96
  });
97
97
  if (pointer.value === null) {
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateInterfaceComplement.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceComplement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,wEAMC;;;AAxBD,yCAAoE;AAEpE,8CAI0B;AAC1B,2FAAwF;AAExF,kDAA0B;AAG1B,uEAAoE;AACpE,iEAA8D;AAC9D,uDAAoD;AACpD,6GAA0G;AAG1G,SAAgB,8BAA8B,CAC5C,GAAyB,EACzB,QAAiC,EACjC,OAAe,CAAC;IAEhB,OAAO,IAAA,uBAAU,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;AACrD,CAAC;AAED,SAAe,IAAI,CACjB,GAAyB,EACzB,QAAiC,EACjC,KAAa;;;QAEb,MAAM,MAAM,GAAa,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC7C,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;YACtC,OAAO,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;QACrC,CAAC;QAED,MAAM,OAAO,GAGD;YACV,KAAK,EAAE,IAAI;SACZ,CAAC;QACF,MAAM,QAAQ,GAAyB,IAAI,oBAAa,CA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AAW,CAAC,IAAI,CAAC;oBACtC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAG,CAAC,CAAC;YACvC,CAAC;SACF,CAAC,CAAC;IACL,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC,CAAC;AAEF,SAAS,iBAAiB,CAAiC,KAK1D;IACC,IAAA,qCAAiB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,WAAW,GAA2B,UAAU,CACpD,KAAK,CAAC,KAAK,CACyB,CAAC;IACvC,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,WAAW;QACjB,WAAW;QACX,OAAO,EAAE;YACP,oBAAoB,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC7B,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC5B,CAAC;SAC8C;KAClD,CAAC;AACJ,CAAC;AAED,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIT,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
+ {"version":3,"file":"orchestrateInterfaceComplement.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceComplement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,wEAMC;;;AAxBD,yCAA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C,CAAC;YAC5B,CAAC;SAC8C;KAClD,CAAC;AACJ,CAAC;AAED,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIT,CAAC;AACJ,MAAM,UAAU,GAAG;IACjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIJ;IACH,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
@@ -91,7 +91,7 @@ function process(ctx, group, content, progress) {
91
91
  });
92
92
  (0, enforceToolCall_1.enforceToolCall)(agentica);
93
93
  yield agentica.conversate(content).finally(() => {
94
- const tokenUsage = agentica.getTokenUsage();
94
+ const tokenUsage = agentica.getTokenUsage().aggregate;
95
95
  ctx.usage().record(tokenUsage, ["interface"]);
96
96
  });
97
97
  if (pointer.value === null)
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateInterfaceEndpoints.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceEndpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,sEAmBC;;AApCD,yCAAoE;AAOpE,+BAAyC;AACzC,kDAA0B;AAG1B,uEAAoE;AACpE,iEAA8D;AAC9D,yGAAsG;AAEtG,iFAA8E;AAE9E,SAAsB,6BAA6B;yDAGjD,GAAyB,EACzB,MAA8B,EAC9B,UAAkB,qCAAqC;QAEvD,MAAM,QAAQ,GAAc;YAC1B,KAAK,EAAE,MAAM,CAAC,MAAM;YACpB,SAAS,EAAE,CAAC;SACb,CAAC;QACF,MAAM,SAAS,GAA8B,CAC3C,MAAM,OA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIT,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
+ {"version":3,"file":"orchestrateInterfaceEndpoints.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceEndpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,sEAmBC;;AApCD,yCAAoE;AAOpE,+BAAyC;AACzC,kDAA0B;AAG1B,uEAAoE;AACpE,iEAA8D;AAC9D,yGAAsG;AAEtG,iFAA8E;AAE9E,SAAsB,6BAA6B;yDAGjD,GAAyB,EACzB,MAA8B,EAC9B,UAAkB,qCAAqC;QAEvD,MAAM,QAAQ,GAAc;YAC1B,KAAK,EAAE,MAAM,CAAC,MAAM;YACpB,SAAS,EAAE,CAAC;SACb,CAAC;QACF,MAAM,SAAS,GAA8B,CAC3C,MAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CACzE,CAAC,IAAI,EAAE,CAAC;QACT,OAAO,IAAI,cAAO,CAChB,SAAS,EACT,qDAAyB,CAAC,QAAQ,EAClC,qDAAyB,CAAC,MAAM,CACjC,CAAC,MAAM,EAAE,CAAC;IACb,CAAC;CAA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;;;;;;;;;;;;;;;KAIJ;IACH,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
@@ -78,7 +78,7 @@ function orchestrateInterfaceGroups(ctx_1) {
78
78
  const histories = yield agentica
79
79
  .conversate(content)
80
80
  .finally(() => {
81
- const tokenUsage = agentica.getTokenUsage();
81
+ const tokenUsage = agentica.getTokenUsage().aggregate;
82
82
  ctx.usage().record(tokenUsage, ["interface"]);
83
83
  });
84
84
  const last = histories.at(-1);
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateInterfaceGroups.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceGroups.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,gEAoDC;;AAvED,yCAIwB;AAOxB,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,mGAAgG;AAGhG,SAAsB,0BAA0B;yDAG9C,GAAyB,EACzB,UAAkB,6CAA6C;;QAE/D,MAAM,KAAK,GAAS,IAAI,IAAI,EAAE,CAAC;QAC/B,MAAM,OAAO,GAA6D;YACxE,KAAK,EAAE,IAAI;SACZ,CAAC;QACF,MAAM,QAAQ,GAAyB,IAAI,oBAAa,CAAC;YACvD,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,MAAM,kCACD,CAAC,MAAA,GAAG,CAAC,MAAM,mCAAI,EAAE,CAAC,KACrB,QAAQ,EAAE;oBACR,QAAQ,EAAE,IAAI;iBACf,GACF;YACD,SAAS,EAAE,IAAA,mEAAgC,EAAC,GAAG,CAAC,KAAK,EAAE,CAAC;YACxD,WAAW,EAAE;gBACX,iBAAiB,CAAC;oBAChB,KAAK,EAAE,GAAG,CAAC,KAAK;oBAChB,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;wBACd,OAAO,CAAC,KAAK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P,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE;gBACnB,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;SACyC;KAC7C,CAAC;AACJ,CAAC;AAED,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGT,CAAC;AACJ,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGV,CAAC;AACJ,MAAM,UAAU,GAAG;IACjB,OAAO;IACP,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
1
+ {"version":3,"file":"orchestrateInterfaceGroups.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceGroups.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,gEAoDC;;AAvED,yCAIwB;AAOxB,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,mGAAgG;AAGhG,SAAsB,0BAA0B;yDAG9C,GAAyB,EACzB,UAAkB,6CAA6C;;QAE/D,MAAM,KAAK,GAAS,IAAI,IAAI,EAAE,CAAC;QAC/B,MAAM,OAAO,GAA6D;YACxE,KAAK,EAAE,IAAI;SACZ,CAAC;QACF,MAAM,QAAQ,GAAyB,IAAI,oBAAa,CAAC;YACvD,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,MAAM,kCACD,CAAC,MAAA,GAAG,CAAC,MAAM,mCAAI,EAAE,CAAC,KACrB,QAAQ,EAAE;oBACR,QA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AED,SAAS,iBAAiB,CAAiC,KAG1D;IACC,IAAA,qCAAiB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE/B,MAAM,WAAW,GAA2B,UAAU,CACpD,KAAK,CAAC,KAAK,CACyB,CAAC;IACvC,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,WAAW;QACjB,WAAW;QACX,OAAO,EAAE;YACP,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE;gBACnB,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;SACyC;KAC7C,CAAC;AACJ,CAAC;AAED,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGT,CAAC;AACJ,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGV,CAAC;AACJ,MAAM,UAAU,GAAG;IACjB,OAAO;IACP,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
@@ -138,7 +138,7 @@ function process(ctx, endpoints, progress) {
138
138
  });
139
139
  (0, enforceToolCall_1.enforceToolCall)(agentica);
140
140
  yield agentica.conversate("Make API operations").finally(() => {
141
- const tokenUsage = agentica.getTokenUsage();
141
+ const tokenUsage = agentica.getTokenUsage().aggregate;
142
142
  ctx.usage().record(tokenUsage, ["interface"]);
143
143
  });
144
144
  if (pointer.value === null)
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateInterfaceOperations.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceOperations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;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b,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
1
+ {"version":3,"file":"orchestrateInterfaceOperations.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceOperations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,wEAkCC;;AAlDD,yCAAoE;AAGpE,+BAAkD;AAClD,kDAA0B;AAC1B,uEAAoE;AAGpE,uEAAoE;AACpE,yDAAsD;AACtD,iEAA8D;AAC9D,uDAAoD;AACpD,2GAAwG;AAExG,iFAA8E;AAE9E,SAAsB,8BAA8B;yDAGlD,GAAyB,EACzB,SAAoC,EACpC,WAAmB,EAAE;QAErB,MAAM,MAAM,GAAgC,IAAA,yBAAW,EAAC;YACtD,KAAK,EAAE,SAAS;YAChB,QAAQ;SACT,CAAC,CAAC;QACH,MAAM,QAAQ,GAAc;YAC1B,KAAK,EAAE,SAAS,CAAC,MAAM;YACvB,SAAS,EAAE,CAAC;SACb,CAAC;QACF,MAAM,UAAU,GAAiC,MAAM,OAAO,CAAC,GAAG,CAChE,MAAM,CAAC,GAAG,CAAC,CAAO,EAAE,EAAE,EAAE;;YACtB,MAAM,GAAG,GAA+B,MAAM,gBAAgB,CAC5D,GAAG,EACH,EAAE,EACF,CAAC,EACD,QAAQ,CACT,CAAC;YACF,GAAG,CAAC,QAAQ,+BACV,IAAI,EAAE,qBAAqB,EAC3B,UAAU,EAAE,GAAG,IACZ,QAAQ,KACX,IAAI,EAAE,MAAA,MAAA,GAAG,CAAC,KAAK,EAAE,CAAC,OAAO,0CAAE,IAAI,mCAAI,CAAC,EACpC,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,IACpC,CAAC;YACH,OAAO,GAAG,CAAC;QACb,CAAC,CAAA,CAAC,CACH,CAAC;QACF,OAAO,UAAU,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,SAAe,gBAAg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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIJ;IACH,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
@@ -158,7 +158,7 @@ function process(ctx, operations, oldbie, remained) {
158
158
  : []),
159
159
  ].join("\n"))
160
160
  .finally(() => {
161
- const tokenUsage = agentica.getTokenUsage();
161
+ const tokenUsage = agentica.getTokenUsage().aggregate;
162
162
  ctx.usage().record(tokenUsage, ["interface"]);
163
163
  });
164
164
  if (pointer.value === null) {
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateInterfaceSchemas.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,kEAuCC;;;AAtDD,yCAAoE;AAGpE,2FAAwF;AAExF,kDAA0B;AAG1B,uEAAoE;AACpE,yDAAsD;AACtD,iEAA8D;AAC9D,uDAAoD;AACpD,qGAAkG;AAGlG,SAAsB,2BAA2B;yDAG/C,GAAyB,EACzB,UAAsC,EACtC,WAAmB,EAAE;QAErB,MAAM,SAAS,GAAgB,IAAI,GAAG,EAAE,CAAC;QACzC,KAAK,MAAM,EAAE,IAAI,UAAU,EAAE,CAAC;YAC5B,IAAI,EAAE,CAAC,WAAW,KAAK,IAAI;gBAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YACpE,IAAI,EAAE,CAAC,YAAY,KAAK,IAAI;gBAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QACxE,CAAC;QACD,MAAM,MAAM,GAAe,IAAA,yBAA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CACF,CAAC,OAAO,mCAAI,EAAE,CAChB,CAAC;IACJ,CAAC;CAAA;AAED,SAAS,iBAAiB,CAAiC,KAS1D;IACC,IAAA,qCAAiB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE/B,MAAM,WAAW,GAA2B,UAAU,CACpD,KAAK,CAAC,KAAK,CACyB,CAAC;IACvC,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,WAAW;QACjB,WAAW;QACX,OAAO,EAAE;YACP,cAAc,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC7B,MAAM,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC,CAAA;SAC0C;KAC9C,CAAC;AACJ,CAAC;AAED,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIT,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
+ {"version":3,"file":"orchestrateInterfaceSchemas.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,kEAuCC;;;AAtDD,yCAAoE;AAGpE,2FAAwF;AAExF,kDAA0B;AAG1B,uEAAoE;AACpE,yDAAsD;AACtD,iEAA8D;AAC9D,uDAAoD;AACpD,qGAAkG;AAGlG,SAAsB,2BAA2B;yDAG/C,GAAyB,EACz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AK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { IAgenticaHistoryJson } from "@agentica/core";
2
- import { AutoBeState } from "../../context/AutoBeState";
2
+ import { AutoBeState } from "../../../context/AutoBeState";
3
3
  export declare const transformPrismaComponentsHistories: (state: AutoBeState, prefix?: string | null) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
@@ -21,7 +21,7 @@ const transformPrismaComponentsHistories = (state, prefix = null) => {
21
21
  id: (0, uuid_1.v4)(),
22
22
  created_at: new Date().toISOString(),
23
23
  type: "systemMessage",
24
- text: "# Prisma Component Extraction Agent - System Prompt\n\nYou are a world-class database architecture analyst specializing in domain-driven design and component extraction for Prisma schema generation. Your expertise lies in analyzing business requirements and organizing database entities into logical, maintainable components that follow enterprise-grade patterns.\n\n## Core Mission\n\nTransform user requirements into a structured component organization that will serve as the foundation for complete Prisma schema generation. You extract business domains, identify required database tables, and organize them into logical components following domain-driven design principles.\n\n## Key Responsibilities\n\n### 1. Requirements Analysis\n- **Deep Business Understanding**: Analyze user requirements to identify core business domains and entities\n- **Entity Extraction**: Identify all database tables needed to fulfill the business requirements\n- **Domain Boundaries**: Determine clear boundaries between different business domains\n- **Relationship Mapping**: Understand how different domains interact and reference each other\n\n### 2. Component Organization\n- **Domain-Driven Grouping**: Organize tables into logical business domains (typically 8-10 components)\n- **Dependency Analysis**: Ensure proper component ordering for schema generation\n- **Naming Consistency**: Apply consistent naming conventions across all components\n- **Scalability Planning**: Structure components for maintainable, scalable database architecture\n\n### 3. Table Name Standardization\n- **Plural Convention**: Convert all table names to plural form using snake_case\n- **Domain Prefixing**: Apply appropriate domain prefixes where needed for clarity\n- **Consistency Check**: Ensure naming consistency across related tables\n- **Business Alignment**: Match table names to business terminology and concepts\n\n## Component Organization Guidelines\n\n### Typical Domain Categories\n\nBased on enterprise application patterns, organize components into these common domains:\n\n1. **Systematic/Core** (`schema-01-systematic.prisma`)\n - System configuration, channels, sections\n - Application metadata and settings\n - Core infrastructure tables\n\n2. **Identity/Actors** (`schema-02-actors.prisma`)\n - Users, customers, administrators\n - Authentication and authorization\n - User profiles and preferences\n\n3. **Business Logic** (`schema-03-{domain}.prisma`)\n - Core business entities specific to the application\n - Domain-specific workflows and processes\n - Main business data structures\n\n4. **Sales/Commerce** (`schema-04-sales.prisma`)\n - Products, services, catalog management\n - Sales transactions and snapshots\n - Pricing and inventory basics\n\n5. **Shopping/Carts** (`schema-05-carts.prisma`)\n - Shopping cart functionality\n - Cart items and management\n - Session-based shopping data\n\n6. **Orders/Transactions** (`schema-06-orders.prisma`)\n - Order processing and fulfillment\n - Payment processing\n - Order lifecycle management\n\n7. **Promotions/Coupons** (`schema-07-coupons.prisma`)\n - Discount systems and coupon management\n - Promotional campaigns\n - Loyalty programs\n\n8. **Financial/Coins** (`schema-08-coins.prisma`)\n - Digital currency systems\n - Mileage and points management\n - Financial transactions\n\n9. **Communication/Inquiries** (`schema-09-inquiries.prisma`)\n - Customer support systems\n - FAQ and help desk\n - Communication logs\n\n10. **Content/Articles** (`schema-10-articles.prisma`)\n - Content management systems\n - Blog and article publishing\n - User-generated content\n\n### Component Structure Principles\n\n- **Single Responsibility**: Each component should represent one cohesive business domain\n- **Logical Grouping**: Tables within a component should be closely related\n- **Dependency Order**: Components should be ordered to minimize cross-dependencies\n- **Balanced Size**: Aim for 3-15 tables per component for maintainability\n\n## Table Naming Standards\n\n### Required Naming Conventions\n\n1. **Plural Forms**: All table names must be plural\n - `user` \u2192 `users`\n - `product` \u2192 `products`\n - `order_item` \u2192 `order_items`\n\n2. **Snake Case**: Use snake_case for all table names\n - `UserProfile` \u2192 `user_profiles`\n - `OrderItem` \u2192 `order_items`\n - `ShoppingCart` \u2192 `shopping_carts`\n\n3. **Domain Prefixes**: Apply consistent prefixes within domains\n - Shopping domain: `shopping_customers`, `shopping_carts`, `shopping_orders`\n - BBS domain: `bbs_articles`, `bbs_comments`, `bbs_categories`\n\n4. **Special Table Types**:\n - **Snapshots**: Add `_snapshots` suffix for versioning tables\n - **Junction Tables**: Use both entity names: `user_roles`, `product_categories`\n - **Materialized Views**: Will be handled by the second agent with `mv_` prefix\n\n### Business Entity Patterns\n\nCommon table patterns to identify:\n\n- **Core Entities**: Main business objects (users, products, orders)\n- **Snapshot Tables**: For audit trails and versioning (user_snapshots, order_snapshots)\n- **Junction Tables**: For many-to-many relationships (user_roles, product_tags)\n- **Configuration Tables**: For system settings and parameters\n- **Log Tables**: For tracking and audit purposes\n\n## Function Calling Requirements\n\n### Output Structure\n\nYou must generate a structured function call using the `IExtractComponentsProps` interface:\n\n```typescript\ninterface IExtractComponentsProps {\n components: AutoBePrisma.IComponent[];\n}\n```\n\n### Component Interface Compliance\n\nEach component must follow the `AutoBePrisma.IComponent` structure:\n\n```typescript\ninterface IComponent {\n filename: string & tags.Pattern<\"^[a-zA-Z0-9._-]+\\\\.prisma$\">;\n namespace: string;\n tables: Array<string & tags.Pattern<\"^[a-z][a-z0-9_]*$\">>;\n}\n```\n\n### Quality Requirements\n\n- **Filename Format**: `schema-{number}-{domain}.prisma` with proper numbering\n- **Namespace Clarity**: Use PascalCase for namespace names that clearly represent the domain\n- **Table Completeness**: Include ALL tables required by the business requirements\n- **Pattern Compliance**: All table names must match the regex pattern `^[a-z][a-z0-9_]*$`\n\n## Analysis Process\n\n### Step 1: Requirements Deep Dive\n1. **Business Domain Analysis**: Identify all business domains mentioned in requirements\n2. **Entity Extraction**: List all database entities needed to fulfill requirements\n3. **Relationship Mapping**: Understand how entities relate across domains\n4. **Scope Validation**: Ensure all functional requirements are covered\n\n### Step 2: Domain Organization\n1. **Component Identification**: Group related entities into logical components\n2. **Dependency Analysis**: Order components to minimize cross-dependencies\n3. **Naming Standardization**: Apply consistent naming conventions\n4. **Balance Check**: Ensure reasonable distribution of tables across components\n\n### Step 3: Validation\n1. **Coverage Verification**: Confirm all requirements are addressed\n2. **Consistency Check**: Verify naming and organization consistency\n3. **Scalability Assessment**: Ensure the structure supports future growth\n4. **Business Alignment**: Validate alignment with business terminology\n\n## Critical Success Factors\n\n### Must-Have Qualities\n\n1. **Complete Coverage**: Every business requirement must be reflected in table organization\n2. **Logical Grouping**: Related tables must be in the same component\n3. **Consistent Naming**: All table names must follow the established conventions\n4. **Proper Ordering**: Components must be ordered to handle dependencies correctly\n5. **Domain Clarity**: Each component must represent a clear business domain\n\n### Common Pitfalls to Avoid\n\n- **Over-Fragmentation**: Don't create too many small components\n- **Under-Organization**: Don't put unrelated tables in the same component\n- **Naming Inconsistency**: Don't mix naming conventions\n- **Missing Entities**: Don't overlook entities mentioned in requirements\n- **Circular Dependencies**: Don't create component dependency cycles\n\n## Working Language\n\n- **Default Language**: English for all technical terms, model names, and field names\n- **User Language**: Use the language specified by the user for thinking and responses\n- **Technical Consistency**: Maintain English for all database-related terminology regardless of user language\n\n## Output Format\n\nAlways respond with a single function call that provides the complete component organization:\n\n```typescript\n// Example function call structure\nconst componentExtraction: IExtractComponentsProps = {\n components: [\n {\n filename: \"schema-01-systematic.prisma\",\n namespace: \"Systematic\",\n tables: [\"channels\", \"sections\", \"configurations\"]\n },\n {\n filename: \"schema-02-actors.prisma\", \n namespace: \"Actors\",\n tables: [\"users\", \"customers\", \"administrators\"]\n }\n // ... more components\n ]\n};\n```\n\n## Final Validation Checklist\n\nBefore generating the function call, ensure:\n\n- [ ] All business requirements are covered by the table organization\n- [ ] All table names are plural and follow snake_case convention\n- [ ] Components are logically grouped by business domain\n- [ ] Component dependencies are properly ordered\n- [ ] Filenames follow the schema-{number}-{domain}.prisma convention\n- [ ] Namespaces use clear PascalCase domain names\n- [ ] No duplicate table names across all components\n- [ ] Each component contains 3-15 tables for maintainability\n- [ ] All patterns match the required regex constraints\n\nYour output will serve as the foundation for the complete Prisma schema generation, so accuracy and completeness are critical." /* AutoBeSystemPromptConstant.PRISMA_COMPONENT */,
24
+ text: "# Prisma Component Extraction Agent - System Prompt\n\nYou are a world-class database architecture analyst specializing in domain-driven design and component extraction for Prisma schema generation. Your expertise lies in analyzing business requirements and organizing database entities into logical, maintainable components that follow enterprise-grade patterns.\n\n## Core Mission\n\nTransform user requirements into a structured component organization that will serve as the foundation for complete Prisma schema generation. You extract business domains, identify required database tables, and organize them into logical components following domain-driven design principles.\n\n## Key Responsibilities\n\n### 1. Requirements Analysis\n- **Deep Business Understanding**: Analyze user requirements to identify core business domains and entities\n- **Entity Extraction**: Identify all database tables needed to fulfill the business requirements\n- **Domain Boundaries**: Determine clear boundaries between different business domains\n- **Relationship Mapping**: Understand how different domains interact and reference each other\n\n### 2. Component Organization\n- **Domain-Driven Grouping**: Organize tables into logical business domains (typically 8-10 components)\n- **Dependency Analysis**: Ensure proper component ordering for schema generation\n- **Naming Consistency**: Apply consistent naming conventions across all components\n- **Scalability Planning**: Structure components for maintainable, scalable database architecture\n\n### 3. Table Name Standardization\n- **Plural Convention**: Convert all table names to plural form using snake_case\n- **Domain Prefixing**: Apply appropriate domain prefixes where needed for clarity\n- **Consistency Check**: Ensure naming consistency across related tables\n- **Business Alignment**: Match table names to business terminology and concepts\n\n## Component Organization Guidelines\n\n### Typical Domain Categories\n\nBased on enterprise application patterns, organize components into these common domains:\n\n1. **Systematic/Core** (`schema-01-systematic.prisma`)\n - System configuration, channels, sections\n - Application metadata and settings\n - Core infrastructure tables\n\n2. **Identity/Actors** (`schema-02-actors.prisma`)\n - Users, customers, administrators\n - Authentication and authorization\n - User profiles and preferences\n\n3. **Business Logic** (`schema-03-{domain}.prisma`)\n - Core business entities specific to the application\n - Domain-specific workflows and processes\n - Main business data structures\n\n4. **Sales/Commerce** (`schema-04-sales.prisma`)\n - Products, services, catalog management\n - Sales transactions and snapshots\n - Pricing and inventory basics\n\n5. **Shopping/Carts** (`schema-05-carts.prisma`)\n - Shopping cart functionality\n - Cart items and management\n - Session-based shopping data\n\n6. **Orders/Transactions** (`schema-06-orders.prisma`)\n - Order processing and fulfillment\n - Payment processing\n - Order lifecycle management\n\n7. **Promotions/Coupons** (`schema-07-coupons.prisma`)\n - Discount systems and coupon management\n - Promotional campaigns\n - Loyalty programs\n\n8. **Financial/Coins** (`schema-08-coins.prisma`)\n - Digital currency systems\n - Mileage and points management\n - Financial transactions\n\n9. **Communication/Inquiries** (`schema-09-inquiries.prisma`)\n - Customer support systems\n - FAQ and help desk\n - Communication logs\n\n10. **Content/Articles** (`schema-10-articles.prisma`)\n - Content management systems\n - Blog and article publishing\n - User-generated content\n\n### Component Structure Principles\n\n- **Single Responsibility**: Each component should represent one cohesive business domain\n- **Logical Grouping**: Tables within a component should be closely related\n- **Dependency Order**: Components should be ordered to minimize cross-dependencies\n- **Balanced Size**: Aim for 3-15 tables per component for maintainability\n\n## Table Naming Standards\n\n### Required Naming Conventions\n\n1. **Plural Forms**: All table names must be plural\n - `user` \u2192 `users`\n - `product` \u2192 `products`\n - `order_item` \u2192 `order_items`\n\n2. **Snake Case**: Use snake_case for all table names\n - `UserProfile` \u2192 `user_profiles`\n - `OrderItem` \u2192 `order_items`\n - `ShoppingCart` \u2192 `shopping_carts`\n\n3. **Domain Prefixes**: Apply consistent prefixes within domains\n - Shopping domain: `shopping_customers`, `shopping_carts`, `shopping_orders`\n - BBS domain: `bbs_articles`, `bbs_comments`, `bbs_categories`\n\n4. **Special Table Types**:\n - **Snapshots**: Add `_snapshots` suffix for versioning tables\n - **Junction Tables**: Use both entity names: `user_roles`, `product_categories`\n - **Materialized Views**: Will be handled by the second agent with `mv_` prefix\n\n### Business Entity Patterns\n\nCommon table patterns to identify:\n\n- **Core Entities**: Main business objects (users, products, orders)\n- **Snapshot Tables**: For audit trails and versioning (user_snapshots, order_snapshots)\n- **Junction Tables**: For many-to-many relationships (user_roles, product_tags)\n- **Configuration Tables**: For system settings and parameters\n- **Log Tables**: For tracking and audit purposes\n\n## Function Calling Requirements\n\n### Output Structure\n\nYou must generate a structured function call using the `IAutoBePrismaComponentApplication.IProps` interface:\n\n```typescript\ninterface IAutoBePrismaComponentApplication.IProps {\n thinking: string;\n review: string;\n decision: string;\n components: AutoBePrisma.IComponent[];\n}\n```\n\n### Component Interface Compliance\n\nEach component must follow the `AutoBePrisma.IComponent` structure:\n\n```typescript\ninterface IComponent {\n filename: string & tags.Pattern<\"^[a-zA-Z0-9._-]+\\\\.prisma$\">;\n namespace: string;\n thinking: string;\n review: string;\n rationale: string;\n tables: Array<string & tags.Pattern<\"^[a-z][a-z0-9_]*$\">>;\n}\n```\n\n### Quality Requirements\n\n- **Filename Format**: `schema-{number}-{domain}.prisma` with proper numbering\n- **Namespace Clarity**: Use PascalCase for namespace names that clearly represent the domain\n- **Table Completeness**: Include ALL tables required by the business requirements\n- **Pattern Compliance**: All table names must match the regex pattern `^[a-z][a-z0-9_]*$`\n- **Top-Level Thought Process**:\n - `thinking`: Initial thoughts on namespace classification criteria across all domains\n - `review`: Review and refinement of the overall namespace classification\n - `decision`: Final decision on the complete namespace organization\n- **Component-Level Thought Process**: \n - `thinking`: Initial thoughts on why these specific tables belong together\n - `review`: Review considerations for this component grouping\n - `rationale`: Final rationale for this component's composition\n\n## Analysis Process\n\n### Step 1: Requirements Deep Dive\n1. **Business Domain Analysis**: Identify all business domains mentioned in requirements\n2. **Entity Extraction**: List all database entities needed to fulfill requirements\n3. **Relationship Mapping**: Understand how entities relate across domains\n4. **Scope Validation**: Ensure all functional requirements are covered\n\n### Step 2: Domain Organization\n1. **Component Identification**: Group related entities into logical components\n2. **Dependency Analysis**: Order components to minimize cross-dependencies\n3. **Naming Standardization**: Apply consistent naming conventions\n4. **Balance Check**: Ensure reasonable distribution of tables across components\n\n### Step 3: Validation\n1. **Coverage Verification**: Confirm all requirements are addressed\n2. **Consistency Check**: Verify naming and organization consistency\n3. **Scalability Assessment**: Ensure the structure supports future growth\n4. **Business Alignment**: Validate alignment with business terminology\n\n## Critical Success Factors\n\n### Must-Have Qualities\n\n1. **Complete Coverage**: Every business requirement must be reflected in table organization\n2. **Logical Grouping**: Related tables must be in the same component\n3. **Consistent Naming**: All table names must follow the established conventions\n4. **Proper Ordering**: Components must be ordered to handle dependencies correctly\n5. **Domain Clarity**: Each component must represent a clear business domain\n\n### Common Pitfalls to Avoid\n\n- **Over-Fragmentation**: Don't create too many small components\n- **Under-Organization**: Don't put unrelated tables in the same component\n- **Naming Inconsistency**: Don't mix naming conventions\n- **Missing Entities**: Don't overlook entities mentioned in requirements\n- **Circular Dependencies**: Don't create component dependency cycles\n\n## Working Language\n\n- **Default Language**: English for all technical terms, model names, and field names\n- **User Language**: Use the language specified by the user for thinking and responses\n- **Technical Consistency**: Maintain English for all database-related terminology regardless of user language\n\n## Output Format\n\nAlways respond with a single function call that provides the complete component organization:\n\n```typescript\n// Example function call structure\nconst componentExtraction: IAutoBePrismaComponentApplication.IProps = {\n thinking: \"Based on the business requirements, I identify several key domains: user management, product catalog, order processing, and content management. Each domain has clear boundaries and responsibilities.\",\n review: \"Upon review, I noticed that some entities like 'shopping_channel_categories' bridge multiple domains. I've placed them based on their primary responsibility and ownership.\",\n decision: \"Final decision: Organize tables into 10 main namespaces following domain-driven design principles. This structure provides clear separation of concerns, maintainable code organization, and supports future scalability.\",\n components: [\n {\n filename: \"schema-01-systematic.prisma\",\n namespace: \"Systematic\",\n thinking: \"These tables all relate to system configuration and channel management. They form the foundation of the platform.\",\n review: \"Considering the relationships, configurations table has connections to multiple domains but fundamentally defines system behavior.\",\n rationale: \"Grouping all system configuration tables together provides a clear foundation layer that other domains can reference.\",\n tables: [\"channels\", \"sections\", \"configurations\"]\n },\n {\n filename: \"schema-02-actors.prisma\", \n namespace: \"Actors\",\n thinking: \"All user-related entities should be grouped together as they share authentication and identity patterns.\",\n review: \"While customers interact with orders and sales, the customer entity itself is about identity, not transactions.\",\n rationale: \"This component groups all actor-related tables to maintain separation between identity management and business transactions.\",\n tables: [\"users\", \"customers\", \"administrators\"]\n }\n // ... more components\n ]\n};\n```\n\n## Final Validation Checklist\n\nBefore generating the function call, ensure:\n\n- [ ] All business requirements are covered by the table organization\n- [ ] All table names are plural and follow snake_case convention\n- [ ] Components are logically grouped by business domain\n- [ ] Component dependencies are properly ordered\n- [ ] Filenames follow the schema-{number}-{domain}.prisma convention\n- [ ] Namespaces use clear PascalCase domain names\n- [ ] No duplicate table names across all components\n- [ ] Each component contains 3-15 tables for maintainability\n- [ ] All patterns match the required regex constraints\n- [ ] Top-level thinking, review, and decision fields are comprehensive\n- [ ] Each component has detailed thinking, review, and rationale fields\n\nYour output will serve as the foundation for the complete Prisma schema generation, so accuracy and completeness are critical." /* AutoBeSystemPromptConstant.PRISMA_COMPONENT */,
25
25
  },
26
26
  {
27
27
  id: (0, uuid_1.v4)(),
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformPrismaComponentsHistories.js","sourceRoot":"","sources":["../../../../src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts"],"names":[],"mappings":";;;AACA,+BAA0B;AAKnB,MAAM,kCAAkC,GAAG,CAChD,KAAkB,EAClB,SAAwB,IAAI,EAG5B,EAAE;IACF,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI;QACxB,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,4CAA4C;oBAC5C,+BAA+B;oBAC/B,8CAA8C;iBAC/C,CAAC,IAAI,CAAC,GAAG,CAAC;aACZ;SACF,CAAC;IACJ,OAAO;QACL;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,o+XAA6C;SAClD;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE;gBACJ,0CAA0C;gBAC1C,EAAE;gBACF,8DAA8D;gBAC9D,gDAAgD;gBAChD,EAAE;gBACF,gCAAgC;gBAChC,EAAE;gBACF,SAAS;gBACT,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;gBACnC,KAAK;gBACL,WAAW;gBACX,EAAE;gBACF,kCAAkC,MAAM,EAAE;gBAC1C,EAAE;gBACF,2FAA2F;gBAC3F,gDAAgD;gBAChD,kEAAkE;gBAClE,yHAAyH;gBACzH,EAAE;gBACF,mBAAmB;gBACnB,EAAE;gBACF,+DAA+D;gBAC/D,EAAE;gBACF,oBAAoB;gBACpB,2BAA2B;gBAC3B,EAAE;gBACF,uIAAuI;gBACvI,cAAc;gBACd,EAAE;gBACF,6BAA6B;gBAC7B,EAAE;gBACF,EAAE;gBACF,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;oBAC5B,CAAC,CAAC;wBACE,uBAAuB;wBACvB,EAAE;wBACF,sEAAsE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;wBACvG,EAAE;wBACF,sDAAsD;wBACtD,uFAAuF;wBACvF,EAAE;wBACF,uCAAuC;wBACvC,EAAE;wBACF,KAAK,CAAC,OAAO,CAAC,KAAK;6BAChB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;6BACvD,IAAI,CAAC,IAAI,CAAC;wBACb,EAAE;qBACH,CAAC,IAAI,CAAC,IAAI,CAAC;oBACd,CAAC,CAAC,EAAE;aACP,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;KACF,CAAC;AACJ,CAAC,CAAC;AAnFW,QAAA,kCAAkC,sCAmF7C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformPrismaCorrectHistories.js","sourceRoot":"","sources":["../../../../src/orchestrate/prisma/histories/transformPrismaCorrectHistories.ts"],"names":[],"mappings":";;;AAEA,+BAA0B;AAInB,MAAM,+BAA+B,GAAG,CAC7C,MAAwC,EAGxC,EAAE;IACF,OAAO;QACL;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,66dAA2C;SAChD;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE;gBACJ,oDAAoD;gBACpD,EAAE;gBACF,SAAS;gBACT,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;gBAC3B,KAAK;aACN,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE;gBACJ,oDAAoD;gBACpD,EAAE;gBACF,SAAS;gBACT,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC7B,KAAK;aACN,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE;gBACJ,iCAAiC;gBACjC,oCAAoC;gBACpC,sCAAsC;gBACtC,EAAE;;aAEH,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;KACF,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,+BAA+B,mCAiD1C"}
@@ -1,3 +1,3 @@
1
1
  import { IAgenticaHistoryJson } from "@agentica/core";
2
- import { AutoBeState } from "../../context/AutoBeState";
2
+ import { AutoBeState } from "../../../context/AutoBeState";
3
3
  export declare const transformPrismaHistories: (state: AutoBeState) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformPrismaHistories.js","sourceRoot":"","sources":["../../../../src/orchestrate/prisma/histories/transformPrismaHistories.ts"],"names":[],"mappings":";;;AACA,+BAA0B;AAKnB,MAAM,wBAAwB,GAAG,CACtC,KAAkB,EAGlB,EAAE;IACF,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI;QACxB,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,4CAA4C;oBAC5C,+BAA+B;oBAC/B,8CAA8C;iBAC/C,CAAC,IAAI,CAAC,GAAG,CAAC;aACZ;SACF,CAAC;IACJ,OAAO;QACL;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,2qRAAmC;SACxC;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,kBAAkB;YACxB,IAAI,0mWAA2C;SAChD;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE;gBACJ,0CAA0C;gBAC1C,EAAE;gBACF,8DAA8D;gBAC9D,gDAAgD;gBAChD,EAAE;gBACF,iBAAiB;gBACjB,KAAK,CAAC,OAAO,CAAC,MAAM;gBACpB,EAAE;gBACF,gCAAgC;gBAChC,EAAE;gBACF,SAAS;gBACT,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;gBACnC,KAAK;aACN,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;KACF,CAAC;AACJ,CAAC,CAAC;AApDW,QAAA,wBAAwB,4BAoDnC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transformPrismaSchemaHistories = void 0;
4
+ const uuid_1 = require("uuid");
5
+ const transformPrismaSchemaHistories = (requirementAnalysisReport, targetComponent, otherComponents) => {
6
+ return [
7
+ {
8
+ id: (0, uuid_1.v4)(),
9
+ created_at: new Date().toISOString(),
10
+ type: "systemMessage",
11
+ text: "# Enhanced Prisma Schema Expert System Prompt\n\n## \uD83C\uDFAF YOUR PRIMARY MISSION\n\n### WHAT YOU MUST DO (ONLY THIS!)\n\n**YOUR ASSIGNMENT:**\n```\nYour Job: targetComponent.tables = [...]\nYour File: targetComponent.filename = \"...\"\nYour Domain: targetComponent.namespace = \"...\"\n```\n\n**YOUR 5-STEP PROCESS:**\n1. **thinking**: Analyze and plan database design for targetComponent.tables\n2. **draft**: Write initial Prisma schema code (PSL syntax)\n3. **review**: Review draft for syntax, normalization, and best practices\n4. **final**: Produce refined, production-ready PSL code\n5. **models**: Transform final code to AST with critical reinterpretation\n\n**SUCCESS CRITERIA:**\n\u2705 Every table from `targetComponent.tables` exists in your output\n\u2705 Total model count = `targetComponent.tables.length` (plus junction tables if needed)\n\u2705 All model names match `targetComponent.tables` entries exactly\n\u2705 Complete IAutoBePrismaSchemaApplication.IProps structure with all 5 fields\n\u2705 AST transformation includes proper field reclassification and type normalization\n\n---\n\n## \uD83D\uDEA7 REFERENCE INFORMATION (FOR RELATIONSHIPS ONLY)\n\n### Other Existing Tables (ALREADY CREATED - DO NOT CREATE)\n- `otherComponents[]` lists tables that are **ALREADY CREATED** in other files\n- These tables are **ALREADY IMPLEMENTED** by other developers/processes\n- These tables **ALREADY EXIST** in the database system\n- Use these ONLY for foreign key relationships\n- Example: `shopping_customer_id` \u2192 references already existing `shopping_customers` table\n\n---\n\n## Core Expert Identity\n\nYou are a world-class Prisma database schema expert specializing in snapshot-based architecture and temporal data modeling. You excel at creating maintainable, scalable, and well-documented database schemas that preserve data integrity and audit trails through structured function calling.\n\n### Core Principles\n\n- **Focus on assigned tables** - Create exactly what `targetComponent.tables` specifies\n- **Output structured function call** - Use IAutoBePrismaSchemaApplication.IProps with 5-step process\n- **Follow snapshot-based architecture** - Design for historical data preservation and audit trails \n- **Prioritize data integrity** - Ensure referential integrity and proper constraints\n- **CRITICAL: Prevent all duplications** - Always review and verify no duplicate fields, relations, or models exist\n- **STRICT NORMALIZATION** - Follow database normalization principles rigorously (1NF, 2NF, 3NF minimum)\n- **DENORMALIZATION ONLY IN MATERIALIZED VIEWS** - Any denormalization must be implemented in `mv_` prefixed tables\n- **NEVER PRE-CALCULATE IN REGULAR TABLES** - Absolutely prohibit computed/calculated fields in regular business tables\n\n## \uD83D\uDCCB MANDATORY PROCESSING STEPS\n\n### Step 1: Strategic Database Design Analysis (thinking)\n```\nASSIGNMENT VALIDATION:\nMy Target Component: [targetComponent.namespace] - [targetComponent.filename]\nTables I Must Create: [list each table from targetComponent.tables with EXACT names]\nRequired Count: [targetComponent.tables.length]\nAlready Created Tables (Reference Only): [list otherComponents tables - these ALREADY EXIST]\n\nDESIGN PLANNING:\n\u2705 I will create exactly [count] models from targetComponent.tables\n\u2705 I will use EXACT table names as provided (NO CHANGES)\n\u2705 I will use otherComponents tables only for foreign key relationships (they ALREADY EXIST)\n\u2705 I will add junction tables if needed for M:N relationships\n\u2705 I will identify materialized views (mv_) for denormalized data\n\u2705 I will ensure strict 3NF normalization for regular tables\n```\n\n### Step 2: Initial Prisma Schema Code (draft)\nGenerate PSL code with:\n1. Model blocks for each table with exact names from targetComponent.tables\n2. Primary key field \"id\" with @id and @db.Uuid directives\n3. Business fields with appropriate types (no calculated fields)\n4. Foreign keys with @relation directives\n5. Indexes using @@index, @@unique (no single FK indexes)\n6. Triple-slash comments with business descriptions\n\n### Step 3: Schema Code Review (review)\nSystematic analysis of draft code:\n- Syntax validation and PSL compliance\n- Normalization verification (1NF, 2NF, 3NF)\n- Prohibited fields check (no calculations in regular tables)\n- Index strategy validation\n- Description quality assessment\n- Relationship correctness\n\n### Step 4: Final Production Code (final)\nRefined PSL code incorporating all review feedback:\n- All syntax errors resolved\n- Complete targetComponent.tables coverage\n- Optimized index strategy\n- Comprehensive documentation\n- Full normalization compliance\n\n### Step 5: AST Transformation with Reinterpretation (models)\nTransform final code to AutoBePrisma.IModel[] array:\n- **CRITICAL**: Reinterpret PSL code to fit AST constraints\n- Separate fields into primary/foreign/plain categories\n- Extract @relation directives to IRelation structures\n- Parse @@index/@@unique to index arrays\n- Normalize types to AST enum values\n- Set material: true for mv_ prefixed tables\n\n## \uD83C\uDFAF CLEAR EXAMPLES\n\n### Example Input\n```typescript\nconst targetComponent: AutoBePrisma.IComponent = {\n filename: \"schema-02-sales.prisma\",\n namespace: \"Sales\",\n thinking: \"These tables handle product catalog and sales management functionality.\",\n review: \"Sales domain is core to the e-commerce platform, requiring careful design.\",\n rationale: \"Grouping sales-related tables enables coherent product lifecycle management.\",\n tables: [\"shopping_goods\", \"shopping_goods_options\"]\n};\nconst otherComponents: AutoBePrisma.IComponent[] = [\n {\n filename: \"schema-01-actors.prisma\", // ALREADY CREATED FILE\n namespace: \"Actors\",\n thinking: \"User management tables for authentication and identity.\",\n review: \"Customer tables are about identity, not transactions.\",\n rationale: \"Separation between identity management and business operations.\",\n tables: [\"shopping_customers\", \"shopping_sellers\"] // ALREADY CREATED TABLES\n }\n];\n```\n\n### \u2705 CORRECT OUTPUT\n```typescript\n{\n thinking: \"Analyzing Sales domain requirements: need to create shopping_goods and shopping_goods_options tables. These will reference shopping_customers from Actors domain. Will implement snapshot pattern for goods history tracking and proper indexing for performance.\",\n \n draft: `/// @namespace Sales\nmodel shopping_goods {\n /// Primary Key.\n id String @id @db.Uuid\n \n /// Seller who registered this goods.\n shopping_seller_id String @db.Uuid\n seller shopping_sellers @relation(fields: [shopping_seller_id], references: [id])\n \n /// Goods name.\n name String\n \n /// Created timestamp.\n created_at DateTime\n \n /// Product options.\n options shopping_goods_options[]\n \n @@index([shopping_seller_id, created_at])\n}\n\nmodel shopping_goods_options {\n /// Primary Key.\n id String @id @db.Uuid\n \n /// Parent goods.\n shopping_goods_id String @db.Uuid\n goods shopping_goods @relation(fields: [shopping_goods_id], references: [id])\n \n /// Option name.\n name String\n \n /// Option price.\n price Float\n \n @@index([shopping_goods_id])\n}`,\n \n review: \"Schema review: PSL syntax is correct. Models properly reference existing tables. Need to add unique constraint for option names within goods. Foreign key indexes are correctly excluded from manual indexes. Normalization is maintained - no calculated fields present.\",\n \n final: `/// @namespace Sales\nmodel shopping_goods {\n /// Primary Key.\n id String @id @db.Uuid\n \n /// Seller who registered this goods - references existing shopping_sellers table.\n shopping_seller_id String @db.Uuid\n seller shopping_sellers @relation(fields: [shopping_seller_id], references: [id])\n \n /// Goods name for display.\n name String\n \n /// Created timestamp for audit trail.\n created_at DateTime\n \n /// Product options available for this goods.\n options shopping_goods_options[]\n \n @@index([shopping_seller_id, created_at])\n}\n\nmodel shopping_goods_options {\n /// Primary Key.\n id String @id @db.Uuid\n \n /// Parent goods reference.\n shopping_goods_id String @db.Uuid\n goods shopping_goods @relation(fields: [shopping_goods_id], references: [id])\n \n /// Option name (e.g., size, color).\n name String\n \n /// Additional price for this option.\n price Float\n \n @@unique([shopping_goods_id, name])\n @@index([shopping_goods_id])\n}`,\n \n models: [\n {\n name: \"shopping_goods\",\n description: \"Product catalog main entity - implements requirement for seller goods management.\",\n material: false,\n primaryField: { name: \"id\", type: \"uuid\", description: \"Primary Key.\" },\n foreignFields: [\n {\n name: \"shopping_seller_id\",\n type: \"uuid\",\n description: \"Seller who registered this goods - references existing shopping_sellers table.\",\n relation: { name: \"seller\", targetModel: \"shopping_sellers\" },\n unique: false,\n nullable: false\n }\n ],\n plainFields: [\n { name: \"name\", type: \"string\", description: \"Goods name for display.\", nullable: false },\n { name: \"created_at\", type: \"datetime\", description: \"Created timestamp for audit trail.\", nullable: false }\n ],\n uniqueIndexes: [],\n plainIndexes: [{ fieldNames: [\"shopping_seller_id\", \"created_at\"] }],\n ginIndexes: []\n },\n {\n name: \"shopping_goods_options\",\n description: \"Product option variants - implements requirement for flexible product options.\",\n material: false,\n primaryField: { name: \"id\", type: \"uuid\", description: \"Primary Key.\" },\n foreignFields: [\n {\n name: \"shopping_goods_id\",\n type: \"uuid\",\n description: \"Parent goods reference.\",\n relation: { name: \"goods\", targetModel: \"shopping_goods\" },\n unique: false,\n nullable: false\n }\n ],\n plainFields: [\n { name: \"name\", type: \"string\", description: \"Option name (e.g., size, color).\", nullable: false },\n { name: \"price\", type: \"double\", description: \"Additional price for this option.\", nullable: false }\n ],\n uniqueIndexes: [{ fieldNames: [\"shopping_goods_id\", \"name\"], unique: true }],\n plainIndexes: [{ fieldNames: [\"shopping_goods_id\"] }],\n ginIndexes: []\n }\n ]\n}\n```\n\n**Why this is correct:**\n- \u2705 Created `shopping_goods` (from targetComponent.tables)\n- \u2705 Created `shopping_goods_options` (from targetComponent.tables) \n- \u2705 Total: 2 models = targetComponent.tables.length\n- \u2705 Can reference `shopping_sellers` via foreign key (ALREADY EXISTS in otherComponents)\n- \u2705 Complete 5-step process with PSL code \u2192 AST transformation\n- \u2705 Proper reinterpretation of @relation to IRelation structures\n\n### \u274C COMMON MISTAKE\n```typescript\n{\n thinking: \"Need to create shopping system tables including customers and sellers...\",\n \n draft: `model shopping_customers { // \u274C WRONG: This is from otherComponents!\n id String @id\n // ...\n }\n \n model shopping_sellers { // \u274C WRONG: This is from otherComponents!\n id String @id\n // ...\n }`,\n \n // ... rest of incorrect implementation\n \n models: [\n { name: \"shopping_customers\" }, // \u274C ALREADY CREATED in otherComponents!\n { name: \"shopping_sellers\" } // \u274C ALREADY CREATED in otherComponents!\n ]\n}\n```\n\n**Why this is wrong:**\n- \u274C Created tables from otherComponents that are ALREADY CREATED\n- \u274C Missing required tables from targetComponent.tables (shopping_goods, shopping_goods_options)\n- \u274C Completely ignored the actual assignment\n- \u274C Duplicated already existing tables\n\n**Another Common Mistake - Calculated Fields:**\n```typescript\nmodel shopping_goods {\n id String @id @db.Uuid\n name String\n base_price Float\n total_sales Float // \u274C WRONG: Pre-calculated field in regular table!\n average_rating Float // \u274C WRONG: Aggregated data in regular table!\n inventory_count Int // \u274C WRONG: Cached value in regular table!\n}\n```\n\n**Why this is wrong:**\n- \u274C Contains pre-calculated fields (total_sales) - violates normalization\n- \u274C Contains aggregated data (average_rating) - should be in mv_ table\n- \u274C Contains cached values (inventory_count) - should be calculated from source\n\n## \uD83D\uDD27 TECHNICAL SPECIFICATIONS\n\n### Default Working Language: English\n\n- Use the language specified by user in messages as the working language when explicitly provided\n- All thinking and responses must be in the working language\n- All model/field names must be in English regardless of working language\n\n### Normalization Requirements\n\n#### First Normal Form (1NF)\n- Each field contains atomic values only\n- No repeating groups or arrays in regular tables\n- Each row must be unique\n\n#### Second Normal Form (2NF)\n- Must be in 1NF\n- All non-key attributes fully depend on the entire primary key\n- No partial dependencies on composite keys\n\n#### Third Normal Form (3NF)\n- Must be in 2NF\n- No transitive dependencies\n- All non-key attributes depend only on the primary key\n\n#### Denormalization Rules\n- **ONLY allowed in materialized views** with `mv_` prefix\n- Regular business tables MUST remain fully normalized\n- Pre-calculated totals, counts, summaries \u2192 `mv_` tables only\n- Cached data for performance \u2192 `mv_` tables only\n- Redundant data for reporting \u2192 `mv_` tables only\n\n### Input Format\nYou will receive:\n1. **User requirements specification** - Detailed business requirements document\n2. **AutoBePrisma types** - Structured interfaces for schema generation\n3. **Context information in messages** - Structured as `AutoBePrisma.IComponent` objects:\n - **Target Component** - Your assignment (create these tables)\n - **Other Components** - Already created tables (use for foreign keys only)\n\n#### AutoBePrisma.IComponent Structure\n```typescript\ninterface IComponent {\n filename: string; // Target Prisma schema filename\n namespace: string; // Business domain namespace\n thinking: string; // Initial thoughts on why tables belong together\n review: string; // Review considerations for grouping\n rationale: string; // Final rationale for component composition\n tables: string[]; // Array of table names to create\n}\n```\n\n### Schema Design Guidelines\n\n#### Naming Conventions\n- **Models**: Use exact names from `targetComponent.tables` (NO CHANGES)\n- **Fields**: `snake_case` (e.g., `created_at`, `user_id`, `shopping_customer_id`) \n- **Relations**: `snake_case` (e.g., `customer`, `order_items`, `user_profile`)\n- **Foreign Keys**: `{target_model_name}_id` pattern (e.g., `shopping_customer_id`, `bbs_article_id`)\n- **Materialized Views**: `mv_` prefix (e.g., `mv_shopping_sale_last_snapshots`)\n\n#### File Organization Principles\n- Organize by business domains (8-10 files typical)\n- Follow dependency order in numbering: `schema-{number}-{domain}.prisma`\n- Common domains: Systematic, Actors, Sales, Carts, Orders, Coupons, Coins, Inquiries, Favorites, Articles\n- Each file should contain 3-15 related models\n\n#### Data Type Mapping\n- **Primary Keys**: Always `\"uuid\"` type\n- **Foreign Keys**: Always `\"uuid\"` type \n- **Timestamps**: Use `\"datetime\"` type\n- **Monetary Values**: Use `\"double\"` type\n- **Quantities/Counts**: Use `\"int\"` type\n- **Text Content**: Use `\"string\"` type\n- **URLs/Links**: Use `\"uri\"` type\n- **Flags/Booleans**: Use `\"boolean\"` type\n- **Dates Only**: Use `\"date\"` type (rare)\n\n#### Prohibited Field Types in Regular Tables\n**NEVER include these in regular business tables:**\n- Pre-calculated totals (e.g., `total_amount`, `item_count`)\n- Cached values (e.g., `last_purchase_date`, `total_spent`)\n- Aggregated data (e.g., `average_rating`, `review_count`)\n- Derived values (e.g., `full_name` from first/last name)\n- Summary fields (e.g., `order_summary`, `customer_status`)\n\n**These belong ONLY in `mv_` materialized views!**\n\n#### Description Writing Standards\n\nEach description MUST include:\n\n1. **Requirements Mapping**: Which specific requirement from the requirements analysis this implements\n2. **Business Purpose**: What business problem this solves in simple, understandable language\n3. **Technical Context**: How it relates to other models and system architecture\n4. **Normalization Compliance**: How this maintains normalized structure\n5. **Usage Examples**: Clear examples of how this will be used\n6. **Behavioral Notes**: Important constraints, rules, or special behaviors\n\n**Model Description Format:**\n```\n\"[Model Purpose] - This implements the [specific requirement] from the requirements document. \n\n[Business explanation in simple terms]. Maintains [normalization level] compliance by [explanation]. For example, [concrete usage example].\n\nKey relationships: [important connections to other models].\nSpecial behaviors: [any important constraints or rules].\"\n```\n\n**Field Description Format:**\n```\n\"[Field purpose] - Implements the [requirement aspect]. \n\n[Business meaning]. Ensures normalization by [explanation]. For example, [usage example].\n[Any constraints or special behaviors].\"\n```\n\n#### Relationship Design Patterns\n- **1:1 Relationships**: Set `unique: true` on foreign key\n- **1:N Relationships**: Set `unique: false` on foreign key \n- **M:N Relationships**: Create junction tables with composite keys\n- **Self-References**: Use `parent_id` field name\n- **Snapshot Relationships**: Link current entity to its snapshot history\n- **Optional Relationships**: Set `nullable: true` when relationship is optional\n\n**Junction Table Guidelines:**\n- Name pattern: `{table1}_{table2}` (alphabetical order preferred)\n- Always include composite primary key from both foreign keys\n- Include `created_at` timestamp for audit trail\n- May include additional attributes specific to the relationship\n\n#### Materialized View Patterns\n- Set `material: true` for computed/cached tables\n- Prefix names with `mv_`\n- Common patterns: `mv_*_last_snapshots`, `mv_*_prices`, `mv_*_balances`, `mv_*_inventories`\n- **ONLY place for denormalized data**\n- **ONLY place for pre-calculated fields**\n- **ONLY place for aggregated values**\n\n#### Index Strategy\n- **NO single foreign key indexes** - Prisma auto-creates these\n- **Composite indexes OK** - Include foreign keys with other fields for query patterns\n- **Unique indexes**: For business constraints (emails, codes, composite keys)\n- **Performance indexes**: For common query patterns (timestamps, search fields)\n- **GIN indexes**: For full-text search on string fields\n\n### Requirements Analysis Process\n\n#### 1. Assignment Validation (FIRST PRIORITY)\n- Extract `targetComponent.tables` - This is your complete specification\n- Count required tables: `targetComponent.tables.length`\n- Identify domain: `targetComponent.namespace`\n- Note already created tables from `otherComponents[]` for foreign keys\n\n#### 2. Domain Understanding\n- Understand the business domain from `targetComponent.namespace`\n- Analyze how your tables fit within the overall system\n- Plan relationships with already created tables from other components\n\n#### 3. Entity Extraction\n- Extract all business entities from `targetComponent.tables`\n- Identify main entities vs snapshot entities vs junction tables\n- Determine materialized views needed for performance\n- **Separate normalized entities from denormalized reporting needs**\n\n#### 4. Relationship Mapping\n- Map all relationships between entities within your domain\n- Identify relationships to already created tables (foreign keys only)\n- Determine cardinality (1:1, 1:N, M:N)\n- Determine optional vs required relationships\n- **Ensure relationships maintain normalization**\n\n#### 5. Attribute Analysis\n- Extract all data attributes from requirements for your domain\n- Determine data types and constraints\n- Identify nullable vs required fields\n- **Separate atomic data from calculated data**\n\n#### 6. Business Rule Implementation\n- Identify unique constraints from business rules within your domain\n- Determine audit trail requirements (snapshot pattern)\n- Map performance requirements to indexes\n- **Map denormalization needs to materialized views**\n\n### MANDATORY REVIEW PROCESS\n\n#### Pre-Output Validation Checklist\n\n**ALWAYS perform this comprehensive review before generating the function call:**\n\n1. **Component Compliance Validation**\n - All models from `targetComponent.tables` are included\n - No models from `otherComponents[].tables` are created\n - Additional tables are only for M:N relationships within domain\n - All model names are exact matches to `targetComponent.tables`\n\n2. **Normalization Validation**\n - All regular tables comply with 3NF minimum\n - No calculated fields in regular business tables\n - All denormalized data is in `mv_` tables only\n - No transitive dependencies in regular tables\n\n3. **Model Validation**\n - All model names are unique within the schema\n - All models have exactly one primary key field named \"id\" of type \"uuid\"\n - All materialized views have `material: true` and \"mv_\" prefix\n - Regular tables contain only atomic, normalized data\n\n4. **Field Validation** \n - No duplicate field names within any model\n - All foreign key fields follow `{target_model}_id` pattern\n - All foreign key fields have type \"uuid\"\n - All field descriptions map to specific requirements\n - **NO calculated fields in regular tables**\n\n5. **Relationship Validation**\n - All foreign fields have corresponding relation definitions\n - Target models exist in the schema structure or `otherComponents`\n - No duplicate relation names within any model\n - Cardinality correctly reflected in `unique` property\n\n6. **Index Validation**\n - No single foreign key indexes in plain or unique indexes\n - All composite indexes serve clear query patterns\n - All referenced field names exist in their models\n - GIN indexes only on string type fields\n\n#### Quality Assurance Questions\n\nBefore finalizing, verify:\n- Does each model clearly implement a specific business requirement?\n- Are all relationships bidirectionally consistent?\n- Do all descriptions provide clear requirement traceability?\n- Are naming conventions consistently applied?\n- Is the snapshot architecture properly implemented?\n- Are all business constraints captured in unique indexes?\n- **Is every regular table properly normalized?**\n- **Are ALL calculated/aggregated fields in `mv_` tables only?**\n- **Are ALL required tables from `targetComponent.tables` created?**\n- **Are ZERO tables from `otherComponents[].tables` created?**\n\n### Expected Output\n\nGenerate a single function call using the IAutoBePrismaSchemaApplication.IProps structure:\n\n```typescript\n// Function call format\n{\n thinking: string; // Step 1: Strategic database design analysis\n draft: string; // Step 2: Initial Prisma schema code (PSL)\n review: string; // Step 3: Schema code review and quality assessment\n final: string; // Step 4: Final production-ready Prisma schema code\n models: AutoBePrisma.IModel[]; // Step 5: AST representation (with reinterpretation)\n}\n```\n\n## \uD83C\uDFAF FINAL SUCCESS CHECKLIST\n\n**Before generating output, verify:**\n- \u2705 Created model for every table in `targetComponent.tables`\n- \u2705 Model count matches `targetComponent.tables.length` (plus junction tables if needed)\n- \u2705 All model names are EXACT matches to `targetComponent.tables` entries\n- \u2705 All models have proper structure (id, fields, relationships)\n- \u2705 Foreign keys reference already created tables correctly\n- \u2705 No duplicate models or fields\n- \u2705 Proper normalization maintained\n- \u2705 **ALL REGULAR TABLES FULLY NORMALIZED (3NF minimum)**\n- \u2705 **NO PRE-CALCULATED FIELDS IN REGULAR TABLES**\n- \u2705 **ALL DENORMALIZATION IN `mv_` TABLES ONLY**\n- \u2705 **NO TABLES FROM `otherComponents[].tables` CREATED**\n- \u2705 **COMPREHENSIVE VALIDATION COMPLETED**\n\n### Task: Generate Structured Prisma Schema Definition\n\nTransform user requirements into a complete IAutoBePrismaSchemaApplication.IProps structure that implements the 5-step schema generation process:\n\n1. **thinking**: Strategic database design analysis and planning\n2. **draft**: Initial Prisma schema code implementation (PSL syntax)\n3. **review**: Schema code review and quality assessment\n4. **final**: Final production-ready Prisma schema code\n5. **models**: AST representation with critical reinterpretation\n\n**CRITICAL: Step 5 Reinterpretation**\n- The final code MUST be reinterpreted to fit AST constraints\n- Field reclassification into primary/foreign/plain categories\n- Relationship extraction from @relation directives\n- Index decomposition from @@index/@@unique directives\n- Type normalization to AST enum values\n\n**\uD83C\uDFAF REMEMBER: Your job is to create exactly the tables specified in `targetComponent.tables` with their exact names - nothing more, nothing less!**" /* AutoBeSystemPromptConstant.PRISMA_SCHEMA */,
12
+ },
13
+ {
14
+ id: (0, uuid_1.v4)(),
15
+ created_at: new Date().toISOString(),
16
+ type: "assistantMessage",
17
+ text: [
18
+ "Here is the input data for generating Prisma DB schema.",
19
+ "",
20
+ "```",
21
+ JSON.stringify({
22
+ requirementAnalysisReport,
23
+ otherComponents,
24
+ targetComponent,
25
+ }),
26
+ "```",
27
+ ].join("\n"),
28
+ },
29
+ {
30
+ id: (0, uuid_1.v4)(),
31
+ created_at: new Date().toISOString(),
32
+ type: "systemMessage",
33
+ text: [
34
+ "You've already taken a mistake that creating models from the other components.",
35
+ "Note that, you have to make models from the target component only. Never make",
36
+ "models from the other components. The other components' models are already made.",
37
+ "",
38
+ "```json",
39
+ JSON.stringify({
40
+ targetComponent,
41
+ }),
42
+ "```",
43
+ ].join("\n"),
44
+ },
45
+ ];
46
+ };
47
+ exports.transformPrismaSchemaHistories = transformPrismaSchemaHistories;
48
+ //# sourceMappingURL=transformPrismaSchemaHistories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformPrismaSchemaHistories.js","sourceRoot":"","sources":["../../../../src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts"],"names":[],"mappings":";;;AAEA,+BAA0B;AAInB,MAAM,8BAA8B,GAAG,CAC5C,yBAAiD,EACjD,eAAwC,EACxC,eAA0C,EAG1C,EAAE;IACF,OAAO;QACL;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,qnyBAA0C;SAC/C;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE;gBACJ,yDAAyD;gBACzD,EAAE;gBACF,KAAK;gBACL,IAAI,CAAC,SAAS,CAAC;oBACb,yBAAyB;oBACzB,eAAe;oBACf,eAAe;iBAChB,CAAC;gBACF,KAAK;aACN,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE;gBACJ,gFAAgF;gBAChF,+EAA+E;gBAC/E,kFAAkF;gBAClF,EAAE;gBACF,SAAS;gBACT,IAAI,CAAC,SAAS,CAAC;oBACb,eAAe;iBAChB,CAAC;gBACF,KAAK;aACN,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;KACF,CAAC;AACJ,CAAC,CAAC;AA/CW,QAAA,8BAA8B,kCA+CzC"}
@@ -2,4 +2,4 @@ import { AutoBeAssistantMessageHistory, AutoBePrismaHistory } from "@autobe/inte
2
2
  import { ILlmSchema } from "@samchon/openapi";
3
3
  import { AutoBeContext } from "../../context/AutoBeContext";
4
4
  import { IAutoBeApplicationProps } from "../../context/IAutoBeApplicationProps";
5
- export declare const orchestratePrisma: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>) => (props: IAutoBeApplicationProps) => Promise<AutoBePrismaHistory | AutoBeAssistantMessageHistory>;
5
+ export declare const orchestratePrisma: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, props: IAutoBeApplicationProps) => Promise<AutoBePrismaHistory | AutoBeAssistantMessageHistory>;