erosolar-cli 2.1.123 → 2.1.125
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/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +10 -0
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/shell/systemPrompt.d.ts.map +1 -1
- package/dist/shell/systemPrompt.js +6 -14
- 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;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,CAmBR"}
|
|
@@ -11,21 +11,13 @@ export function buildInteractiveSystemPrompt(basePrompt, profileLabel, _tools, w
|
|
|
11
11
|
const name = profileLabel || 'Agent';
|
|
12
12
|
const workspace = workspaceDir || process.cwd();
|
|
13
13
|
// Lean system prompt - critical rules only
|
|
14
|
-
const coreRules = `You are ${name}, a coding agent in ${workspace}.
|
|
14
|
+
const coreRules = `You are ${name}, a coding agent in ${workspace}. Use tools to investigate and act.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
2. search_files/grep_search for patterns (TODO, FIXME, unused, dead code)
|
|
22
|
-
3. read_file to inspect suspicious files
|
|
23
|
-
4. Repeat until 5-10+ files examined
|
|
24
|
-
|
|
25
|
-
WRONG: set_status("Thinking") or just output thinking
|
|
26
|
-
RIGHT: list_files(".") AND search_files("TODO") AND read_file("package.json")
|
|
27
|
-
|
|
28
|
-
Read before edit. Cite file:line in responses.`;
|
|
16
|
+
RULES:
|
|
17
|
+
1. Use tools (list_files, read_file, search_files, grep_search) to explore.
|
|
18
|
+
2. For "find X" requests: examine 5+ files before answering.
|
|
19
|
+
3. Read before edit. Cite file:line.
|
|
20
|
+
4. After investigation, summarize what you found clearly.`;
|
|
29
21
|
// Only include base prompt if non-empty
|
|
30
22
|
if (basePrompt.trim()) {
|
|
31
23
|
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
|
|
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;;;;;;0DAMT,CAAC;IAEzD,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.125",
|
|
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",
|