@autobe/agent 0.29.1 → 0.29.2

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 (38) hide show
  1. package/lib/AutoBeAgent.d.ts +2 -1
  2. package/lib/AutoBeAgent.js +13 -4
  3. package/lib/AutoBeAgent.js.map +1 -1
  4. package/lib/AutoBeAgentBase.d.ts +2 -3
  5. package/lib/AutoBeAgentBase.js +1 -8
  6. package/lib/AutoBeAgentBase.js.map +1 -1
  7. package/lib/AutoBeMockAgent.js +13 -4
  8. package/lib/AutoBeMockAgent.js.map +1 -1
  9. package/lib/factory/getAutoBeGenerated.d.ts +7 -1
  10. package/lib/factory/getAutoBeGenerated.js +138 -33
  11. package/lib/factory/getAutoBeGenerated.js.map +1 -1
  12. package/lib/factory/getAutoBeRealizeGenerated.js +2 -2
  13. package/lib/factory/getAutoBeRealizeGenerated.js.map +1 -1
  14. package/lib/factory/getCriticalCompiler.js +2 -4
  15. package/lib/factory/getCriticalCompiler.js.map +1 -1
  16. package/lib/index.mjs +136 -75
  17. package/lib/index.mjs.map +1 -1
  18. package/lib/orchestrate/realize/internal/compileRealizeFiles.js +2 -1
  19. package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -1
  20. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +2 -1
  21. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js.map +1 -1
  22. package/lib/orchestrate/realize/utils/getRealizeWriteDto.js +1 -1
  23. package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -1
  24. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js +1 -1
  25. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -1
  26. package/lib/orchestrate/test/orchestrateTestCorrect.js +1 -1
  27. package/package.json +5 -5
  28. package/src/AutoBeAgent.ts +15 -4
  29. package/src/AutoBeAgentBase.ts +3 -12
  30. package/src/AutoBeMockAgent.ts +15 -4
  31. package/src/factory/getAutoBeGenerated.ts +203 -42
  32. package/src/factory/getAutoBeRealizeGenerated.ts +0 -1
  33. package/src/factory/getCriticalCompiler.ts +3 -5
  34. package/src/orchestrate/realize/internal/compileRealizeFiles.ts +4 -4
  35. package/src/orchestrate/realize/orchestrateRealizeAuthorizationWrite.ts +2 -1
  36. package/src/orchestrate/realize/utils/getRealizeWriteDto.ts +1 -2
  37. package/src/orchestrate/test/compile/getTestScenarioArtifacts.ts +1 -1
  38. package/src/orchestrate/test/orchestrateTestCorrect.ts +1 -1
@@ -46,7 +46,8 @@ export async function orchestrateRealizeAuthorizationWrite<
46
46
  };
47
47
  const templates: Record<string, string> = await (
48
48
  await ctx.compiler()
49
- ).realize.getTemplate({
49
+ ).getTemplate({
50
+ phase: "realize",
50
51
  dbms: "sqlite",
51
52
  });
52
53
  const authorizations: AutoBeRealizeAuthorization[] = await executeCachedBatch(
@@ -14,7 +14,7 @@ export async function getRealizeWriteDto<Model extends ILlmSchema.Model>(
14
14
 
15
15
  const compiler: IAutoBeCompiler = await ctx.compiler();
16
16
  const entries: [string, string][] = Object.entries(
17
- await compiler.interface.write(document),
17
+ await compiler.interface.write(document, []),
18
18
  );
19
19
 
20
20
  const filter = (prefix: string, exclude?: string) => {
@@ -27,7 +27,6 @@ export async function getRealizeWriteDto<Model extends ILlmSchema.Model>(
27
27
  : result,
28
28
  );
29
29
  };
30
-
31
30
  const dto: Record<string, string> = filter("src/api/structures");
32
31
  return dto;
33
32
  }
@@ -22,7 +22,7 @@ export async function getTestScenarioArtifacts<Model extends ILlmSchema.Model>(
22
22
  ctx.state().interface!.document,
23
23
  );
24
24
  const entries: [string, string][] = Object.entries(
25
- await compiler.interface.write(document),
25
+ await compiler.interface.write(document, []),
26
26
  );
27
27
  const filter = (prefix: string, exclude?: string) => {
28
28
  const result: [string, string][] = entries.filter(
@@ -192,7 +192,7 @@ const correct = async <Model extends ILlmSchema.Model>(
192
192
 
193
193
  ctx.dispatch({
194
194
  type: "testCorrect",
195
- kind: "casting",
195
+ kind: "overall",
196
196
  id: v7(),
197
197
  created_at: new Date().toISOString(),
198
198
  file: props.validate.file,