erosolar-cli 2.1.136 → 2.1.138

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,CA0BR"}
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 - critical rules only
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
- TOOLS IN EVERY RESPONSE: You can plan, but always execute tools alongside your plan.
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
- RULES:
21
- 1. DEEP INVESTIGATION: For exploratory requests ("find junk", "any unused code", "cleanup"):
22
- - Use grep_search for patterns: TODO, FIXME, unused, deprecated
23
- - Use list_files to explore directories
24
- - Use read_file to examine promising files
25
- - Examine at least 5-10 files before concluding
26
- 2. Call tools in EVERY response until you have concrete findings with file:line citations.
27
- 3. Read before edit. Show actual code snippets in your findings.`;
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,2CAA2C;IAC3C,MAAM,SAAS,GAAG,WAAW,IAAI,uBAAuB,SAAS;;;;;;;;;;;;;iEAaF,CAAC;IAEhE,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"}
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.136",
3
+ "version": "2.1.138",
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",