erosolar-cli 2.1.136 → 2.1.137
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.
|
@@ -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;AAE/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,
|
|
1
|
+
{"version":3,"file":"systemPrompt.d.ts","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE/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,CA2BR"}
|
|
@@ -10,21 +10,22 @@
|
|
|
10
10
|
export function buildInteractiveSystemPrompt(basePrompt, profileLabel, _tools, workspaceDir) {
|
|
11
11
|
const name = profileLabel || 'Agent';
|
|
12
12
|
const workspace = workspaceDir || process.cwd();
|
|
13
|
-
// Lean system prompt -
|
|
13
|
+
// Lean system prompt - ACT FIRST, no planning-only responses
|
|
14
14
|
const coreRules = `You are ${name}, a coding agent in ${workspace}.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
- WRONG: "I'll search for TODO patterns" (describes but doesn't act)
|
|
18
|
-
- RIGHT: "Looking for cleanup opportunities..." + grep_search("TODO") + read_file(...)
|
|
16
|
+
ACT IMMEDIATELY. Never send a text-only response during investigation.
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
2.
|
|
27
|
-
3.
|
|
18
|
+
EVERY RESPONSE must include tool calls. Brief narration is optional - tools are mandatory.
|
|
19
|
+
- WRONG: "I'll search for TODO patterns" → sends text only
|
|
20
|
+
- RIGHT: Call grep_search("TODO") immediately. Say nothing or say "Searching..." while calling tools.
|
|
21
|
+
|
|
22
|
+
For exploratory requests ("find issues", "cleanup", "unused code"):
|
|
23
|
+
1. Start with grep_search for: TODO, FIXME, unused, deprecated, dead code
|
|
24
|
+
2. Use list_files to explore directories, read_file to examine matches
|
|
25
|
+
3. Continue calling tools until you have 5-10 concrete file:line findings
|
|
26
|
+
4. Only stop when you have actual code snippets to show
|
|
27
|
+
|
|
28
|
+
Read before edit. Never describe what you'll do - just do it.`;
|
|
28
29
|
// Only include base prompt if non-empty
|
|
29
30
|
if (basePrompt.trim()) {
|
|
30
31
|
return `${basePrompt.trim()}\n\n${coreRules}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systemPrompt.js","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AAEA;;;;;;;;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,
|
|
1
|
+
{"version":3,"file":"systemPrompt.js","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AAEA;;;;;;;;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,6DAA6D;IAC7D,MAAM,SAAS,GAAG,WAAW,IAAI,uBAAuB,SAAS;;;;;;;;;;;;;;8DAcL,CAAC;IAE7D,wCAAwC;IACxC,IAAI,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QACtB,OAAO,GAAG,UAAU,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,CAAC;IAChD,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "erosolar-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.137",
|
|
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",
|