@intend-it/core 2.0.0 → 2.0.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 (2) hide show
  1. package/dist/index.js +11 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -169616,10 +169616,19 @@ class AICodeGenerator {
169616
169616
  console.log(` Retrying with AI auto-correction...`);
169617
169617
  prompt += `
169618
169618
 
169619
- The previous implementation had the following TypeScript errors:
169619
+ Validation Failed (Attempt ${attempts}/${limit}).
169620
+ ` + `The code you generated caused errors:
169621
+ \`\`\`typescript
169622
+ ${cleanCode}
169623
+ \`\`\`
169624
+
169625
+ ` + `Errors encountered:
169620
169626
  ${errorMsg}
169621
169627
 
169622
- Please fix these errors and return the corrected implementation (body only).`;
169628
+ ` + `CRITICAL INSTRUCTION: Don't just patch the code.
169629
+ ` + `1. First, analyze WHY this error occurred (e.g., mismatching types, undefined variable).
169630
+ ` + `2. Then, generate the completely fixed function body wrapped in a \`\`\`typescript block.
169631
+ `;
169623
169632
  } else {
169624
169633
  console.warn(` ❌ Validation failed for ${functionName} after ${limit} attempts.`);
169625
169634
  await this.explainFailure(functionName, updatedCode, errors);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intend-it/core",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Core compiler and AI integration for the Intend programming language",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@intend-it/parser": "^1.1.0",
38
+ "@intend-it/parser": "^1.1.1",
39
39
  "@google/generative-ai": "^0.21.0"
40
40
  },
41
41
  "devDependencies": {
@@ -43,6 +43,6 @@
43
43
  "typescript": "^5.0.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@intend-it/parser": ">=1.1.0"
46
+ "@intend-it/parser": ">=1.1.1"
47
47
  }
48
48
  }