@auto-engineer/component-implementer 0.11.14 → 0.11.16
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/src/agent.d.ts +1 -1
- package/dist/src/agent.d.ts.map +1 -1
- package/dist/src/agent.js +3 -3
- package/dist/src/agent.js.map +1 -1
- package/dist/src/commands/implement-component.d.ts +8 -0
- package/dist/src/commands/implement-component.d.ts.map +1 -1
- package/dist/src/commands/implement-component.js +927 -215
- package/dist/src/commands/implement-component.js.map +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/agent.ts +3 -3
- package/src/commands/implement-component.ts +1258 -237
package/package.json
CHANGED
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"openai": "^5.7.0",
|
|
20
20
|
"vite": "^5.4.1",
|
|
21
21
|
"zod": "^3.25.67",
|
|
22
|
-
"@auto-engineer/ai-gateway": "0.11.
|
|
23
|
-
"@auto-engineer/message-bus": "0.11.
|
|
22
|
+
"@auto-engineer/ai-gateway": "0.11.16",
|
|
23
|
+
"@auto-engineer/message-bus": "0.11.16"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"playwright": "^1.54.1",
|
|
27
|
-
"@auto-engineer/cli": "0.11.
|
|
27
|
+
"@auto-engineer/cli": "0.11.16"
|
|
28
28
|
},
|
|
29
|
-
"version": "0.11.
|
|
29
|
+
"version": "0.11.16",
|
|
30
30
|
"scripts": {
|
|
31
31
|
"start": "tsx src/index.ts",
|
|
32
32
|
"build": "tsc && tsx ../../scripts/fix-esm-imports.ts && cp src/*.html dist/src/ 2>/dev/null || true",
|
package/src/agent.ts
CHANGED
|
@@ -115,9 +115,9 @@ function extractJsonArray(text: string): string {
|
|
|
115
115
|
return text;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export async function callAI(prompt: string,
|
|
119
|
-
const temperature =
|
|
120
|
-
const maxTokens =
|
|
118
|
+
export async function callAI(prompt: string, aiOptions?: { temperature?: number; maxTokens?: number }) {
|
|
119
|
+
const temperature = aiOptions?.temperature ?? 0.2;
|
|
120
|
+
const maxTokens = aiOptions?.maxTokens ?? 2000;
|
|
121
121
|
debugAI('Calling AI with prompt length: %d, temperature: %f, maxTokens: %d', prompt.length, temperature, maxTokens);
|
|
122
122
|
const result = await generateTextWithAI(prompt, { provider, temperature, maxTokens });
|
|
123
123
|
debugAI('AI response received, length: %d', result.length);
|