@polka-codes/core 0.5.3 → 0.6.0
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/dist/index.js +6 -8
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -10273,6 +10273,9 @@ class MultiAgent {
|
|
|
10273
10273
|
const exitReason = await this.#agents[this.#agents.length - 1].continueTask(userMessage);
|
|
10274
10274
|
return await this.#handleTaskResult(exitReason);
|
|
10275
10275
|
}
|
|
10276
|
+
get hasActiveAgent() {
|
|
10277
|
+
return this.#agents.length > 0;
|
|
10278
|
+
}
|
|
10276
10279
|
}
|
|
10277
10280
|
|
|
10278
10281
|
// src/Agent/index.ts
|
|
@@ -10303,7 +10306,7 @@ var prompt = `You are an AiTool designed to assist users in creating new project
|
|
|
10303
10306
|
- Based on the collected information, generate a .polkacodes.yml configuration file that includes:
|
|
10304
10307
|
- scripts section with common development commands (test, format, check, etc.)
|
|
10305
10308
|
- rules section reflecting project conventions and tools
|
|
10306
|
-
- excludeFiles section for sensitive
|
|
10309
|
+
- excludeFiles section for sensitive files only
|
|
10307
10310
|
- Example structure:
|
|
10308
10311
|
\`\`\`yaml
|
|
10309
10312
|
scripts:
|
|
@@ -10535,7 +10538,6 @@ var prompt4 = `You are an analyzer agent responsible for examining project files
|
|
|
10535
10538
|
- Code style tools and rules
|
|
10536
10539
|
- Project structure and conventions
|
|
10537
10540
|
- Common development workflows
|
|
10538
|
-
- .gitignore patterns and sensitive/generated files
|
|
10539
10541
|
|
|
10540
10542
|
2. Generate a YAML configuration that captures:
|
|
10541
10543
|
- scripts section based on package.json scripts and CI workflows. If applicable, generate following scripts:
|
|
@@ -10544,7 +10546,7 @@ var prompt4 = `You are an analyzer agent responsible for examining project files
|
|
|
10544
10546
|
- test: Run tests using a test runner tool
|
|
10545
10547
|
- include other relevant scripts based on project conventions, tools, and patterns
|
|
10546
10548
|
- rules section based on project conventions, tools, and patterns
|
|
10547
|
-
- excludeFiles section for
|
|
10549
|
+
- excludeFiles section for sensitive files
|
|
10548
10550
|
|
|
10549
10551
|
3. Use tool_attempt_completion to return the final configuration in this format:
|
|
10550
10552
|
|
|
@@ -10568,10 +10570,6 @@ excludeFiles:
|
|
|
10568
10570
|
- ".env"
|
|
10569
10571
|
- ".env.*"
|
|
10570
10572
|
- ".npmrc"
|
|
10571
|
-
# Generated files
|
|
10572
|
-
- "package-lock.json"
|
|
10573
|
-
- "yarn.lock"
|
|
10574
|
-
- "pnpm-lock.yaml"
|
|
10575
10573
|
</tool_parameter_result>
|
|
10576
10574
|
</tool_attempt_completion>
|
|
10577
10575
|
|
|
@@ -10599,7 +10597,7 @@ var generateProjectConfig_default = {
|
|
|
10599
10597
|
return "";
|
|
10600
10598
|
},
|
|
10601
10599
|
parseOutput: (output) => {
|
|
10602
|
-
return output
|
|
10600
|
+
return output;
|
|
10603
10601
|
},
|
|
10604
10602
|
agent: "analyzer"
|
|
10605
10603
|
};
|