erosolar-cli 2.1.164 → 2.1.166
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/core/agent.d.ts.map +1 -1
- package/dist/core/agent.js +28 -7
- package/dist/core/agent.js.map +1 -1
- package/dist/core/reliabilityPrompt.d.ts +9 -0
- package/dist/core/reliabilityPrompt.d.ts.map +1 -0
- package/dist/core/reliabilityPrompt.js +30 -0
- package/dist/core/reliabilityPrompt.js.map +1 -0
- package/dist/runtime/agentSession.d.ts.map +1 -1
- package/dist/runtime/agentSession.js +2 -1
- package/dist/runtime/agentSession.js.map +1 -1
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +5 -3
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/shell/systemPrompt.d.ts.map +1 -1
- package/dist/shell/systemPrompt.js +4 -24
- package/dist/shell/systemPrompt.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systemPrompt.d.ts","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"systemPrompt.d.ts","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG/D;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,EAAE,EAChC,YAAY,CAAC,EAAE,MAAM,GACpB,MAAM,CAOR"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { applyReliabilityDirectives } from '../core/reliabilityPrompt.js';
|
|
1
2
|
/**
|
|
2
3
|
* Builds a lean, effective system prompt for the interactive shell.
|
|
3
4
|
*
|
|
@@ -10,29 +11,8 @@
|
|
|
10
11
|
export function buildInteractiveSystemPrompt(basePrompt, profileLabel, _tools, workspaceDir) {
|
|
11
12
|
const name = profileLabel || 'Agent';
|
|
12
13
|
const workspace = workspaceDir || process.cwd();
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
COMPLETE THE TASK. Do not stop until you have concrete results to show.
|
|
17
|
-
|
|
18
|
-
CRITICAL RULES:
|
|
19
|
-
1. NEVER stop after calling a tool if the task isn't done. Keep going.
|
|
20
|
-
2. NEVER say "I need to do X" and then stop. Actually DO X in the same response.
|
|
21
|
-
3. Call multiple tools in a single response. Don't wait between steps.
|
|
22
|
-
4. Only stop when you have file:line citations and code snippets to present.
|
|
23
|
-
5. NEVER call the same tool with identical arguments twice in a row. If a tool returned results, use them.
|
|
24
|
-
6. ALWAYS acknowledge the user's request BEFORE your first tool call. Start with a brief message like "I'll check..." or "Let me look into..." THEN call tools. Never call tools without first outputting acknowledgement text.
|
|
25
|
-
|
|
26
|
-
WRONG: Call grep_search → output "I found 33 matches. I need to examine them." → STOP
|
|
27
|
-
RIGHT: Call grep_search → call read_file on top matches → present findings with code → STOP
|
|
28
|
-
|
|
29
|
-
For exploratory requests, continue calling tools until you have examined 5-10 files with concrete findings.
|
|
30
|
-
|
|
31
|
-
Read before edit. Show real code, not summaries.`;
|
|
32
|
-
// Only include base prompt if non-empty
|
|
33
|
-
if (basePrompt.trim()) {
|
|
34
|
-
return `${basePrompt.trim()}\n\n${coreRules}`;
|
|
35
|
-
}
|
|
36
|
-
return coreRules;
|
|
14
|
+
const header = `You are ${name}, a coding agent in ${workspace}.`;
|
|
15
|
+
const merged = [basePrompt.trim(), header].filter(Boolean).join('\n\n').trim();
|
|
16
|
+
return applyReliabilityDirectives(merged);
|
|
37
17
|
}
|
|
38
18
|
//# sourceMappingURL=systemPrompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systemPrompt.js","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"systemPrompt.js","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;;;;;;GAQG;AACH,MAAM,UAAU,4BAA4B,CAC1C,UAAkB,EAClB,YAAoB,EACpB,MAAgC,EAChC,YAAqB;IAErB,MAAM,IAAI,GAAG,YAAY,IAAI,OAAO,CAAC;IACrC,MAAM,SAAS,GAAG,YAAY,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAEhD,MAAM,MAAM,GAAG,WAAW,IAAI,uBAAuB,SAAS,GAAG,CAAC;IAClE,MAAM,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/E,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAC;AAC5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "erosolar-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.166",
|
|
4
4
|
"description": "Unified AI agent framework for the command line - Multi-provider support with schema-driven tools, code intelligence, and transparent reasoning",
|
|
5
5
|
"main": "dist/bin/erosolar.js",
|
|
6
6
|
"type": "module",
|