erosolar-cli 1.7.72 → 1.7.74

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,69 +1,17 @@
1
1
  export function buildInteractiveSystemPrompt(basePrompt, profileLabel, tools, workspaceDir) {
2
- const name = profileLabel || 'Active Agent';
3
- const toolSummary = formatToolSummary(tools, { maxDescriptionLength: 80 });
2
+ const name = profileLabel || 'Agent';
3
+ const toolNames = tools.map(t => t.name).join(', ');
4
4
  const workspace = workspaceDir || process.cwd();
5
- const identityBlock = `
6
- CRITICAL IDENTITY: You ARE ${name}, an autonomous coding agent running INSIDE the erosolar-cli tool.
7
- You have FULL ACCESS to the workspace at: ${workspace}
8
- You are NOT a chatbot - you are an agent with tools. When users ask you to modify code, UI, or features, you CAN and MUST do so using your tools.
9
- The erosolar-cli IS your codebase. When users ask to change "the UI" or "this tool", they mean this workspace.
10
- `;
11
- const capabilityLines = [
12
- '✓ Full file system read/write access',
13
- '✓ Bash command execution (including git commands)',
14
- '✓ Git operations: status, diff, add, commit, push, branch management',
15
- '✓ Advanced code search and analysis',
16
- '✓ Workspace snapshot is guaranteed and immutable',
17
- '✓ Tool usage is narrated to the operator in real time',
18
- ];
19
- const behaviorGuidelines = [
20
- 'AMBIGUOUS REQUESTS: If user input is vague, single-word, or could mean multiple things (e.g., "typing", "fix it", "help", "update"), ASK for clarification FIRST before doing any exploration. Do NOT guess. Example response: "I can help with that. Could you clarify what you mean by [X]? For example: [option A], [option B], or [option C]?"',
21
- 'Keep responses CONCISE - avoid lengthy explanations, bullet lists, and markdown headers unless explicitly asked',
22
- 'Execute continuously until complete: analyze → plan → implement → report',
23
- 'Use README, package.json, and workspace context as evidence',
24
- 'Read before editing; re-read after to confirm',
25
- 'VALIDATION: Do NOT run type-check, build, test, health-check, lint, or quality-gate after each tool. Complete ALL edits first, run ONE validation at the end only if needed',
26
- 'GIT EFFICIENCY: Do NOT run redundant git commands. Use single combined commands: "git add -A && git commit -m msg && git push" instead of separate status/add/status/commit/push calls',
27
- 'NPM PUBLISH: When user says "push update npm" or similar, run: npm version patch && npm run build && npm publish && git push (single command chain)',
28
- ];
29
- const behaviorSection = behaviorGuidelines
30
- .map((line, index) => `${index + 1}. ${line}`)
31
- .join('\n');
5
+ // Minimal prompt - direct action, minimal explanation
32
6
  return `${basePrompt}
33
- ${identityBlock}
34
- You are ${name}, running in an interactive shell with full capabilities:
35
7
 
36
- AVAILABLE TOOLS:
37
- ${toolSummary}
8
+ You are ${name}. Workspace: ${workspace}
9
+ Tools: ${toolNames}
38
10
 
39
- CAPABILITIES:
40
- ${capabilityLines.join('\n')}
41
-
42
- BEHAVIOR GUIDELINES:
43
- ${behaviorSection}
44
-
45
- Remember: answer truthfully, ground everything in the workspace, and let the logs show what you actually did. You CAN modify this codebase.`;
46
- }
47
- function formatToolSummary(tools, options = {}) {
48
- if (!tools.length) {
49
- return '- (no tools are registered in this session)';
50
- }
51
- return tools
52
- .map((tool) => {
53
- const description = tool.description ? sanitizeWhitespace(tool.description) : 'No description provided.';
54
- const summary = truncate(description, options.maxDescriptionLength);
55
- return `- ${tool.name}: ${summary}`;
56
- })
57
- .join('\n');
58
- }
59
- function sanitizeWhitespace(value) {
60
- return value.replace(/\s+/g, ' ').trim();
61
- }
62
- function truncate(value, maxLength) {
63
- if (!maxLength || value.length <= maxLength) {
64
- return value;
65
- }
66
- const safeLength = Math.max(0, maxLength - 3);
67
- return `${value.slice(0, safeLength).trimEnd()}...`;
11
+ CRITICAL: Act immediately. No preamble. No "I'll help you with..." or "Let me...". Just do it.
12
+ - Execute tools directly, don't narrate intentions
13
+ - One short sentence max before tool calls
14
+ - Only ask questions if truly ambiguous (single words like "fix" or "help")
15
+ - Read before edit, combine commands`;
68
16
  }
69
17
  //# sourceMappingURL=systemPrompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"systemPrompt.js","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AAEA,MAAM,UA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;;;;;qCAMmB,CAAC;AACtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erosolar-cli",
3
- "version": "1.7.72",
3
+ "version": "1.7.74",
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",