@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.
- package/lib/AutoBeAgent.d.ts +2 -1
- package/lib/AutoBeAgent.js +13 -4
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeAgentBase.d.ts +2 -3
- package/lib/AutoBeAgentBase.js +1 -8
- package/lib/AutoBeAgentBase.js.map +1 -1
- package/lib/AutoBeMockAgent.js +13 -4
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/factory/getAutoBeGenerated.d.ts +7 -1
- package/lib/factory/getAutoBeGenerated.js +138 -33
- package/lib/factory/getAutoBeGenerated.js.map +1 -1
- package/lib/factory/getAutoBeRealizeGenerated.js +2 -2
- package/lib/factory/getAutoBeRealizeGenerated.js.map +1 -1
- package/lib/factory/getCriticalCompiler.js +2 -4
- package/lib/factory/getCriticalCompiler.js.map +1 -1
- package/lib/index.mjs +136 -75
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/realize/internal/compileRealizeFiles.js +2 -1
- package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +2 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.js +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -1
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js +1 -1
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +1 -1
- package/package.json +5 -5
- package/src/AutoBeAgent.ts +15 -4
- package/src/AutoBeAgentBase.ts +3 -12
- package/src/AutoBeMockAgent.ts +15 -4
- package/src/factory/getAutoBeGenerated.ts +203 -42
- package/src/factory/getAutoBeRealizeGenerated.ts +0 -1
- package/src/factory/getCriticalCompiler.ts +3 -5
- package/src/orchestrate/realize/internal/compileRealizeFiles.ts +4 -4
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationWrite.ts +2 -1
- package/src/orchestrate/realize/utils/getRealizeWriteDto.ts +1 -2
- package/src/orchestrate/test/compile/getTestScenarioArtifacts.ts +1 -1
- 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
|
-
).
|
|
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(
|