@auto-engineer/component-implementer 0.11.15 → 0.11.17

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/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/message-bus": "0.11.15",
23
- "@auto-engineer/ai-gateway": "0.11.15"
22
+ "@auto-engineer/ai-gateway": "0.11.17",
23
+ "@auto-engineer/message-bus": "0.11.17"
24
24
  },
25
25
  "devDependencies": {
26
26
  "playwright": "^1.54.1",
27
- "@auto-engineer/cli": "0.11.15"
27
+ "@auto-engineer/cli": "0.11.17"
28
28
  },
29
- "version": "0.11.15",
29
+ "version": "0.11.17",
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, options?: { temperature?: number; maxTokens?: number }) {
119
- const temperature = options?.temperature ?? 0.2;
120
- const maxTokens = options?.maxTokens ?? 4000 * 3;
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);