@polka-codes/core 0.7.0 → 0.7.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 +27 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15072,7 +15072,7 @@ ${agents}`;
15072
15072
  content: userMessage
15073
15073
  });
15074
15074
  let currentAssistantMessage = "";
15075
- const retryCount = 3;
15075
+ const retryCount = 5;
15076
15076
  for (let i = 0;i < retryCount; i++) {
15077
15077
  currentAssistantMessage = "";
15078
15078
  const stream = this.ai.send(this.config.systemPrompt, this.messages);
@@ -15848,14 +15848,38 @@ var prompt = `You are an AiTool designed to assist users in creating new project
15848
15848
  - ".env.*"
15849
15849
  \`\`\`
15850
15850
 
15851
- 5. **Handover to Coder Agent:**
15851
+ 5. **Generate Essential Project Files:**
15852
+ - Create a .gitattributes file with appropriate configurations:
15853
+ - Mark lock files as generated and exclude them from diffs
15854
+ - Example for different package managers:
15855
+
15856
+ # For Bun
15857
+ bun.lock linguist-generated=true
15858
+ bun.lock -diff
15859
+
15860
+ # For npm
15861
+ package-lock.json linguist-generated=true
15862
+ package-lock.json -diff
15863
+
15864
+ # For Yarn
15865
+ yarn.lock linguist-generated=true
15866
+ yarn.lock -diff
15867
+
15868
+ # For pnpm
15869
+ pnpm-lock.yaml linguist-generated=true
15870
+ pnpm-lock.yaml -diff
15871
+
15872
+ - Include other common configurations as needed based on project type
15873
+
15874
+ 6. **Handover to Coder Agent:**
15852
15875
  - Once all required information is collected and validated by the user, compile:
15853
15876
  1. The final project specifications
15854
15877
  2. The .polkacodes.yml configuration content
15855
15878
  - Clearly hand over these details to the coder agent, instructing them to:
15856
15879
  1. Create the new project based on the confirmed specifications
15857
15880
  2. Include the .polkacodes.yml file in the project root
15858
- 3. Ensure all specified tools and configurations are properly set up`;
15881
+ 3. Include the .gitattributes file with appropriate configurations
15882
+ 4. Ensure all specified tools and configurations are properly set up`;
15859
15883
  var createNewProject_default = {
15860
15884
  name: "createNewProject",
15861
15885
  description: "Creates a new project",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/core",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",