@bike4mind/cli 0.2.8-fix-cli-type-error.17148 → 0.2.10-dowgrade-mcp-sdk.17228
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/README.md +48 -0
- package/dist/{artifactExtractor-DNE5C6DY.js → artifactExtractor-JAGU7QRL.js} +1 -1
- package/dist/{chunk-YXHQN7SK.js → chunk-AQBZVAYO.js} +2 -2
- package/dist/{chunk-H6SHASMZ.js → chunk-DJPXSSP4.js} +13 -1
- package/dist/{chunk-DNSBC3LO.js → chunk-GCVIRGIN.js} +1 -1
- package/dist/{chunk-3CCBDIFR.js → chunk-GO75FMLY.js} +2 -2
- package/dist/{chunk-LIRY24M5.js → chunk-VZU4Z7WI.js} +2 -2
- package/dist/{create-PNU64QSF.js → create-ZDOTF7XD.js} +3 -3
- package/dist/index.js +760 -88
- package/dist/{llmMarkdownGenerator-UQXKK2AS.js → llmMarkdownGenerator-LXUGJ7QH.js} +1 -1
- package/dist/{markdownGenerator-FLLZFXMT.js → markdownGenerator-IMDG6OX6.js} +1 -1
- package/dist/{mementoService-LVFQ5XAW.js → mementoService-TURUS3OH.js} +3 -3
- package/dist/{src-OH5AAQEW.js → src-6ZRXGE5J.js} +2 -2
- package/dist/{src-OYQXRLTM.js → src-YNY32ELR.js} +3 -1
- package/dist/{subtractCredits-75VT7HP2.js → subtractCredits-GOVKM3IR.js} +3 -3
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@ Interactive command-line interface for Bike4Mind with ReAct agents.
|
|
|
10
10
|
- 🛠️ B4M tools + MCP integration
|
|
11
11
|
- 🎨 Rich terminal UI with Ink
|
|
12
12
|
- 🐛 Debug logging with `--verbose` flag
|
|
13
|
+
- 📄 Context file loading (CLAUDE.md, AGENTS.md, AI.md)
|
|
13
14
|
|
|
14
15
|
## Installation
|
|
15
16
|
|
|
@@ -160,6 +161,7 @@ export SERPER_API_KEY="your-key-here"
|
|
|
160
161
|
- ✅ `math_evaluate` - No API key needed
|
|
161
162
|
- ✅ `current_datetime` - No API key needed
|
|
162
163
|
- ✅ `prompt_enhancement` - No API key needed
|
|
164
|
+
- ✅ `bash_execute` - No API key needed
|
|
163
165
|
- 🔑 `weather_info` - Requires `toolApiKeys.openweather`
|
|
164
166
|
- 🔑 `web_search` - Requires `toolApiKeys.serper`
|
|
165
167
|
- 🔑 `deep_research` - Requires `toolApiKeys.serper`
|
|
@@ -241,6 +243,51 @@ You can also run any MCP server via npx or custom executables:
|
|
|
241
243
|
|
|
242
244
|
**Note:** Internal MCP servers must be built and available in the `b4m-core/packages/mcp/dist/src/` directory. The CLI will automatically find them if you're running from the monorepo. For Docker-based servers, ensure Docker is installed and the image is accessible.
|
|
243
245
|
|
|
246
|
+
## Context Files
|
|
247
|
+
|
|
248
|
+
The CLI supports loading project-specific instructions from context files, similar to CLAUDE.md in Claude Code. These files provide persistent instructions that are automatically included in the agent's system prompt.
|
|
249
|
+
|
|
250
|
+
### Supported Files
|
|
251
|
+
|
|
252
|
+
**Project-level** (in your project directory, checked in priority order):
|
|
253
|
+
1. `CLAUDE.local.md` - Personal/gitignored instructions (highest priority)
|
|
254
|
+
2. `CLAUDE.md` - Project instructions
|
|
255
|
+
3. `AGENTS.md` - Cross-tool standard
|
|
256
|
+
4. `AI.local.md` - Personal/gitignored instructions
|
|
257
|
+
5. `AI.md` - Project instructions
|
|
258
|
+
6. `INSTRUCTIONS.md` - Project instructions (lowest priority)
|
|
259
|
+
|
|
260
|
+
**Global** (in `~/.bike4mind/`):
|
|
261
|
+
1. `AI.local.md` - Personal global instructions
|
|
262
|
+
2. `AI.md` - Global instructions
|
|
263
|
+
|
|
264
|
+
### How It Works
|
|
265
|
+
|
|
266
|
+
- The CLI loads the **first matching file** from each layer (global and project)
|
|
267
|
+
- Project files take precedence over global files
|
|
268
|
+
- `.local.md` variants are intended to be gitignored for personal preferences
|
|
269
|
+
- Files must be under 100KB
|
|
270
|
+
- Symlinks are rejected for security
|
|
271
|
+
|
|
272
|
+
### Example
|
|
273
|
+
|
|
274
|
+
Create a `CLAUDE.md` in your project:
|
|
275
|
+
|
|
276
|
+
```markdown
|
|
277
|
+
# Project Instructions
|
|
278
|
+
|
|
279
|
+
- Always use TypeScript strict mode
|
|
280
|
+
- Prefer functional components with hooks
|
|
281
|
+
- Run tests before committing
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
On startup, you'll see:
|
|
285
|
+
```
|
|
286
|
+
📄 Project context: CLAUDE.md
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
The agent will follow these instructions for all interactions in that project.
|
|
290
|
+
|
|
244
291
|
## Session Storage
|
|
245
292
|
|
|
246
293
|
Sessions are saved to `~/.bike4mind/sessions/`
|
|
@@ -338,6 +385,7 @@ Current implementation includes:
|
|
|
338
385
|
✅ B4M tools integration
|
|
339
386
|
✅ MCP tools support
|
|
340
387
|
✅ Debug logging with --verbose flag
|
|
388
|
+
✅ Context file loading (CLAUDE.md, AGENTS.md, AI.md)
|
|
341
389
|
|
|
342
390
|
Coming soon:
|
|
343
391
|
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getSettingsMap,
|
|
8
8
|
getSettingsValue,
|
|
9
9
|
secureParameters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GCVIRGIN.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DJPXSSP4.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/fabFileService/create.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -230,7 +230,9 @@ var b4mLLMTools = z3.enum([
|
|
|
230
230
|
"create_file",
|
|
231
231
|
"glob_files",
|
|
232
232
|
"grep_search",
|
|
233
|
-
"delete_file"
|
|
233
|
+
"delete_file",
|
|
234
|
+
// Shell execution
|
|
235
|
+
"bash_execute"
|
|
234
236
|
]);
|
|
235
237
|
var B4MLLMToolsList = b4mLLMTools.options.map((tool) => tool);
|
|
236
238
|
var RechartsChartTypeSchema = z3.enum([
|
|
@@ -4038,6 +4040,15 @@ var UserApiKeyEvents;
|
|
|
4038
4040
|
UserApiKeyEvents2["DELETED"] = "User API Key Deleted";
|
|
4039
4041
|
})(UserApiKeyEvents || (UserApiKeyEvents = {}));
|
|
4040
4042
|
|
|
4043
|
+
// ../../b4m-core/packages/common/dist/src/schemas/analytics/events/slack.js
|
|
4044
|
+
var SlackEvents;
|
|
4045
|
+
(function(SlackEvents2) {
|
|
4046
|
+
SlackEvents2["SLACK_COMMAND_RECEIVED"] = "Slack Command Received";
|
|
4047
|
+
SlackEvents2["SLACK_COMMAND_COMPLETED"] = "Slack Command Completed";
|
|
4048
|
+
SlackEvents2["SLACK_MCP_TOOL_INVOKED"] = "Slack MCP Tool Invoked";
|
|
4049
|
+
SlackEvents2["SLACK_BULK_OPERATION"] = "Slack Bulk Operation Executed";
|
|
4050
|
+
})(SlackEvents || (SlackEvents = {}));
|
|
4051
|
+
|
|
4041
4052
|
// ../../b4m-core/packages/common/dist/src/schemas/team.js
|
|
4042
4053
|
import { z as z22 } from "zod";
|
|
4043
4054
|
var InternalTeamMemberSchema = z22.object({
|
|
@@ -6114,6 +6125,7 @@ export {
|
|
|
6114
6125
|
FriendshipEvents,
|
|
6115
6126
|
OrganizationEvents,
|
|
6116
6127
|
UserApiKeyEvents,
|
|
6128
|
+
SlackEvents,
|
|
6117
6129
|
InternalTeamMemberSchema,
|
|
6118
6130
|
InternalTeamMemberListSchema,
|
|
6119
6131
|
PREDEFINED_USER_TAGS,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
dayjsConfig_default,
|
|
17
17
|
extractSnippetMeta,
|
|
18
18
|
settingsMap
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DJPXSSP4.js";
|
|
20
20
|
|
|
21
21
|
// ../../b4m-core/packages/utils/dist/src/storage/S3Storage.js
|
|
22
22
|
import { S3Client, PutObjectCommand, DeleteObjectCommand, GetObjectCommand, HeadObjectCommand } from "@aws-sdk/client-s3";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GCVIRGIN.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DJPXSSP4.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
BadRequestError,
|
|
4
4
|
secureParameters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GCVIRGIN.js";
|
|
6
6
|
import {
|
|
7
7
|
GenericCreditDeductTransaction,
|
|
8
8
|
ImageEditUsageTransaction,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
RealtimeVoiceUsageTransaction,
|
|
11
11
|
TextGenerationUsageTransaction,
|
|
12
12
|
TransferCreditTransaction
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DJPXSSP4.js";
|
|
14
14
|
|
|
15
15
|
// ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
|
|
16
16
|
import { z } from "zod";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFabFile,
|
|
4
4
|
createFabFileSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-AQBZVAYO.js";
|
|
6
|
+
import "./chunk-GCVIRGIN.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-DJPXSSP4.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
createFabFile,
|