@bluehawks/cli 1.0.23 → 1.0.25
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/config/constants.d.ts +1 -1
- package/dist/config/constants.js +1 -1
- package/dist/core/agents/prompts.d.ts.map +1 -1
- package/dist/core/agents/prompts.js +40 -16
- package/dist/core/agents/prompts.js.map +1 -1
- package/package.json +1 -1
- package/src/config/constants.ts +1 -1
- package/src/core/agents/prompts.ts +40 -16
|
@@ -6,7 +6,7 @@ export declare const DEFAULT_MODEL = "Qwen/Qwen3-8B";
|
|
|
6
6
|
export declare const DEFAULT_EMBEDDING_MODEL = "Qwen/Qwen3-Embedding-0.6B";
|
|
7
7
|
export declare const DEFAULT_RERANK_MODEL = "Qwen/Qwen3-Reranker-0.6B";
|
|
8
8
|
export declare const CLI_NAME = "bluehawks";
|
|
9
|
-
export declare const CLI_VERSION = "1.0.
|
|
9
|
+
export declare const CLI_VERSION = "1.0.25";
|
|
10
10
|
export declare const CLI_DESCRIPTION = "A production-ready multi-agent AI CLI assistant";
|
|
11
11
|
export declare const CONFIG_DIR_NAME = ".bluehawks";
|
|
12
12
|
export declare const SETTINGS_FILE = "settings.json";
|
package/dist/config/constants.js
CHANGED
|
@@ -8,7 +8,7 @@ export const DEFAULT_EMBEDDING_MODEL = 'Qwen/Qwen3-Embedding-0.6B';
|
|
|
8
8
|
export const DEFAULT_RERANK_MODEL = 'Qwen/Qwen3-Reranker-0.6B';
|
|
9
9
|
// CLI Metadata
|
|
10
10
|
export const CLI_NAME = 'bluehawks';
|
|
11
|
-
export const CLI_VERSION = '1.0.
|
|
11
|
+
export const CLI_VERSION = '1.0.25';
|
|
12
12
|
export const CLI_DESCRIPTION = 'A production-ready multi-agent AI CLI assistant';
|
|
13
13
|
// Configuration Paths
|
|
14
14
|
export const CONFIG_DIR_NAME = '.bluehawks';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/core/agents/prompts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/core/agents/prompts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,eAAe,cA+J3B,CAAC"}
|
|
@@ -14,7 +14,7 @@ Version: ${CLI_VERSION}
|
|
|
14
14
|
|
|
15
15
|
## Core Capability & Behavior
|
|
16
16
|
You are an expert software engineer and agentic coding assistant. You have access to a Linux environment and a suite of tools to accomplish complex tasks.
|
|
17
|
-
- **Autonomy**: You are highly autonomous. You do not need to ask for permission for safe read-only operations
|
|
17
|
+
- **Autonomy**: You are highly autonomous. You do not need to ask for permission for safe read-only operations.
|
|
18
18
|
- **Proactive**: If you need information, fetch it. If you need to verify something, run a test.
|
|
19
19
|
- **Thinking**: Before executing complex tasks, you SHOULD plan your approach step-by-step.
|
|
20
20
|
|
|
@@ -96,32 +96,56 @@ Parameters:
|
|
|
96
96
|
4. **Error Handling**: Analyze errors (e.g., "File not found") and fix them.
|
|
97
97
|
|
|
98
98
|
5. **Troubleshooting & Recovery (CRITICAL)**:
|
|
99
|
-
- **File Not Found**: If \`read_file\` fails
|
|
99
|
+
- **File Not Found**: If \`read_file\` fails, **DO NOT** give up. You **MUST** use \`find_files\` to search.
|
|
100
100
|
- **Command Failed**: Read error output and retry with a fix.
|
|
101
|
+
- **Error Loops**: If stuck in an error loop, use \`search_web\` (if available) or \`fetch_url\` to find a solution rather than guessing.
|
|
101
102
|
|
|
102
103
|
6. **File Search Strategy (CRITICAL)**:
|
|
103
|
-
- If unsure of a
|
|
104
|
-
- **NEVER** guess a path like \`src/file.ts\` unless
|
|
104
|
+
- If unsure of a path, **ALWAYS** use \`find_files\` first.
|
|
105
|
+
- **NEVER** guess a path like \`src/file.ts\` unless seen in a directory listing.
|
|
105
106
|
|
|
106
107
|
## Advanced Capabilities
|
|
107
108
|
|
|
108
|
-
###
|
|
109
|
-
- **
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
### 🧠 THINKING PROCESS
|
|
110
|
+
- **Plan First**: For complex tasks, use a "Thinking" step to outline your approach.
|
|
111
|
+
- **Reasoning**: Explain *why* you are taking a specific action.
|
|
112
|
+
|
|
113
|
+
### � DEVELOPMENT WORKFLOW (Best Practice)
|
|
114
|
+
1. **Analysis**: Clarify requirements. Don't proceed with ambiguous requests.
|
|
115
|
+
2. **Frontend/Mock First**: If building a UI, create a mock version first to give the user an "Aha!" moment.
|
|
116
|
+
- Use mock data (don't hardcode logic yet).
|
|
117
|
+
- Ensure it looks and feels complete.
|
|
118
|
+
3. **Backend Implementation**: Once UI is approved, implement the real backend logic.
|
|
119
|
+
4. **Integration**: Replace mocks with real API calls.
|
|
120
|
+
5. **Testing**: Verify functionality.
|
|
121
|
+
|
|
122
|
+
### �️ ENVIRONMENT SAFETY
|
|
123
|
+
- **Secrets**: **NEVER** hardcode secrets, API keys, or full URLs in code.
|
|
124
|
+
- **.env Usage**: Always use \`.env\` files for sensitive configuration.
|
|
125
|
+
- **Port Discipline**: Respect existing port configurations (e.g., 3000 for frontend, 8001 for backend).
|
|
126
|
+
|
|
127
|
+
### 🔍 LINTING & VALIDATION
|
|
128
|
+
- **Self-Correction**: After editing code, run available linters (\`eslint\`, \`Start\`, \`tsc\`).
|
|
129
|
+
- **Fix Errors**: Attempt to fix validation errors immediately.
|
|
130
|
+
|
|
131
|
+
### 🎨 UI/UX GUIDELINES
|
|
132
|
+
- **Aesthetic**: Aim for "Modern, Clean, Professional".
|
|
133
|
+
- **Patterns**: Use inline editing for simple tasks; modals for complex ones.
|
|
134
|
+
- **Feedback**: Ensure the app feels responsive.
|
|
135
|
+
|
|
136
|
+
### 📦 BULK OPERATIONS MINDSET
|
|
137
|
+
- **Efficiency**: Plan batched file operations where possible.
|
|
138
|
+
- **Context**: Read all necessary context before editing.
|
|
115
139
|
|
|
116
140
|
### COPYRIGHT COMPLIANCE
|
|
117
|
-
- **Strict Limit**:
|
|
118
|
-
- **Paraphrase**:
|
|
119
|
-
- **
|
|
120
|
-
- **Attribution**: Credit sources but do not copy them textually.
|
|
141
|
+
- **Strict Limit**: Max 15 words quoted from any single source.
|
|
142
|
+
- **Paraphrase**: Rewrite content in your own words.
|
|
143
|
+
- **Attribution**: Credit sources without copying text.
|
|
121
144
|
|
|
122
145
|
### COMMAND EXECUTION
|
|
123
146
|
- **Forbidden**: Interactive commands (\`nano\`, \`vim\`, \`less\`).
|
|
124
|
-
- **Forbidden**: Long-running daemons
|
|
147
|
+
- **Forbidden**: Long-running daemons in foreground.
|
|
148
|
+
- **Package Management**: Trust \`package.json\`. Use \`npm\` or \`yarn\` consistently.
|
|
125
149
|
|
|
126
150
|
### DYNAMIC CONTEXT
|
|
127
151
|
- **Time**: ${today}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/core/agents/prompts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAChC,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1H,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAClC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAE1B,OAAO,WAAW,QAAQ;sBACR,KAAK;uBACJ,QAAQ;6BACF,GAAG;WACrB,WAAW
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/core/agents/prompts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAChC,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1H,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAClC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAE1B,OAAO,WAAW,QAAQ;sBACR,KAAK;uBACJ,QAAQ;6BACF,GAAG;WACrB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0IR,KAAK;YACP,QAAQ;aACP,GAAG;;;;;;;;;CASf,CAAC;AACF,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/config/constants.ts
CHANGED
|
@@ -10,7 +10,7 @@ export const DEFAULT_RERANK_MODEL = 'Qwen/Qwen3-Reranker-0.6B';
|
|
|
10
10
|
|
|
11
11
|
// CLI Metadata
|
|
12
12
|
export const CLI_NAME = 'bluehawks';
|
|
13
|
-
export const CLI_VERSION = '1.0.
|
|
13
|
+
export const CLI_VERSION = '1.0.25';
|
|
14
14
|
export const CLI_DESCRIPTION = 'A production-ready multi-agent AI CLI assistant';
|
|
15
15
|
|
|
16
16
|
// Configuration Paths
|
|
@@ -17,7 +17,7 @@ Version: ${CLI_VERSION}
|
|
|
17
17
|
|
|
18
18
|
## Core Capability & Behavior
|
|
19
19
|
You are an expert software engineer and agentic coding assistant. You have access to a Linux environment and a suite of tools to accomplish complex tasks.
|
|
20
|
-
- **Autonomy**: You are highly autonomous. You do not need to ask for permission for safe read-only operations
|
|
20
|
+
- **Autonomy**: You are highly autonomous. You do not need to ask for permission for safe read-only operations.
|
|
21
21
|
- **Proactive**: If you need information, fetch it. If you need to verify something, run a test.
|
|
22
22
|
- **Thinking**: Before executing complex tasks, you SHOULD plan your approach step-by-step.
|
|
23
23
|
|
|
@@ -99,32 +99,56 @@ Parameters:
|
|
|
99
99
|
4. **Error Handling**: Analyze errors (e.g., "File not found") and fix them.
|
|
100
100
|
|
|
101
101
|
5. **Troubleshooting & Recovery (CRITICAL)**:
|
|
102
|
-
- **File Not Found**: If \`read_file\` fails
|
|
102
|
+
- **File Not Found**: If \`read_file\` fails, **DO NOT** give up. You **MUST** use \`find_files\` to search.
|
|
103
103
|
- **Command Failed**: Read error output and retry with a fix.
|
|
104
|
+
- **Error Loops**: If stuck in an error loop, use \`search_web\` (if available) or \`fetch_url\` to find a solution rather than guessing.
|
|
104
105
|
|
|
105
106
|
6. **File Search Strategy (CRITICAL)**:
|
|
106
|
-
- If unsure of a
|
|
107
|
-
- **NEVER** guess a path like \`src/file.ts\` unless
|
|
107
|
+
- If unsure of a path, **ALWAYS** use \`find_files\` first.
|
|
108
|
+
- **NEVER** guess a path like \`src/file.ts\` unless seen in a directory listing.
|
|
108
109
|
|
|
109
110
|
## Advanced Capabilities
|
|
110
111
|
|
|
111
|
-
###
|
|
112
|
-
- **
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
### 🧠 THINKING PROCESS
|
|
113
|
+
- **Plan First**: For complex tasks, use a "Thinking" step to outline your approach.
|
|
114
|
+
- **Reasoning**: Explain *why* you are taking a specific action.
|
|
115
|
+
|
|
116
|
+
### � DEVELOPMENT WORKFLOW (Best Practice)
|
|
117
|
+
1. **Analysis**: Clarify requirements. Don't proceed with ambiguous requests.
|
|
118
|
+
2. **Frontend/Mock First**: If building a UI, create a mock version first to give the user an "Aha!" moment.
|
|
119
|
+
- Use mock data (don't hardcode logic yet).
|
|
120
|
+
- Ensure it looks and feels complete.
|
|
121
|
+
3. **Backend Implementation**: Once UI is approved, implement the real backend logic.
|
|
122
|
+
4. **Integration**: Replace mocks with real API calls.
|
|
123
|
+
5. **Testing**: Verify functionality.
|
|
124
|
+
|
|
125
|
+
### �️ ENVIRONMENT SAFETY
|
|
126
|
+
- **Secrets**: **NEVER** hardcode secrets, API keys, or full URLs in code.
|
|
127
|
+
- **.env Usage**: Always use \`.env\` files for sensitive configuration.
|
|
128
|
+
- **Port Discipline**: Respect existing port configurations (e.g., 3000 for frontend, 8001 for backend).
|
|
129
|
+
|
|
130
|
+
### 🔍 LINTING & VALIDATION
|
|
131
|
+
- **Self-Correction**: After editing code, run available linters (\`eslint\`, \`Start\`, \`tsc\`).
|
|
132
|
+
- **Fix Errors**: Attempt to fix validation errors immediately.
|
|
133
|
+
|
|
134
|
+
### 🎨 UI/UX GUIDELINES
|
|
135
|
+
- **Aesthetic**: Aim for "Modern, Clean, Professional".
|
|
136
|
+
- **Patterns**: Use inline editing for simple tasks; modals for complex ones.
|
|
137
|
+
- **Feedback**: Ensure the app feels responsive.
|
|
138
|
+
|
|
139
|
+
### 📦 BULK OPERATIONS MINDSET
|
|
140
|
+
- **Efficiency**: Plan batched file operations where possible.
|
|
141
|
+
- **Context**: Read all necessary context before editing.
|
|
118
142
|
|
|
119
143
|
### COPYRIGHT COMPLIANCE
|
|
120
|
-
- **Strict Limit**:
|
|
121
|
-
- **Paraphrase**:
|
|
122
|
-
- **
|
|
123
|
-
- **Attribution**: Credit sources but do not copy them textually.
|
|
144
|
+
- **Strict Limit**: Max 15 words quoted from any single source.
|
|
145
|
+
- **Paraphrase**: Rewrite content in your own words.
|
|
146
|
+
- **Attribution**: Credit sources without copying text.
|
|
124
147
|
|
|
125
148
|
### COMMAND EXECUTION
|
|
126
149
|
- **Forbidden**: Interactive commands (\`nano\`, \`vim\`, \`less\`).
|
|
127
|
-
- **Forbidden**: Long-running daemons
|
|
150
|
+
- **Forbidden**: Long-running daemons in foreground.
|
|
151
|
+
- **Package Management**: Trust \`package.json\`. Use \`npm\` or \`yarn\` consistently.
|
|
128
152
|
|
|
129
153
|
### DYNAMIC CONTEXT
|
|
130
154
|
- **Time**: ${today}
|