@bike4mind/cli 0.2.5-feat-server-side-tool-execution.17096 → 0.2.5-feat-auto-context-customization.17096
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 +33 -29
- package/dist/{artifactExtractor-GXQ5YZF7.js → artifactExtractor-JPM5X4QR.js} +1 -1
- package/dist/{chunk-WR6YZRQV.js → chunk-2RFX62SX.js} +3 -1
- package/dist/{chunk-WNBKV4FX.js → chunk-55PRVW6C.js} +2 -2
- package/dist/{chunk-LEG2UM5Q.js → chunk-GXADX53I.js} +2 -2
- package/dist/{chunk-6AJODFPC.js → chunk-QFDR3XXO.js} +2 -2
- package/dist/{chunk-LYNNVNEC.js → chunk-RM2KFSVU.js} +1 -1
- package/dist/{create-LOAAI36O.js → create-YNOMI6YQ.js} +3 -3
- package/dist/index.js +207 -179
- package/dist/{llmMarkdownGenerator-4ZR3FLEQ.js → llmMarkdownGenerator-T3OBRBEL.js} +1 -1
- package/dist/{markdownGenerator-7WE7WKME.js → markdownGenerator-3CHNICAY.js} +1 -1
- package/dist/{mementoService-XGFAWC5F.js → mementoService-NXPL4ZYA.js} +3 -3
- package/dist/{src-32Z2VZMC.js → src-TKRGPJT4.js} +2 -2
- package/dist/{src-6J6LFPZ6.js → src-XWYCD3H6.js} +1 -1
- package/dist/{subtractCredits-VMGWNJS7.js → subtractCredits-KSYATBCK.js} +3 -3
- package/package.json +6 -8
- package/bin/b4m-mcp-proxy.mjs +0 -79
- package/dist/mcp-proxy/client.d.ts +0 -47
- package/dist/mcp-proxy/client.d.ts.map +0 -1
- package/dist/mcp-proxy/client.js +0 -124
- package/dist/mcp-proxy/client.js.map +0 -1
- package/dist/mcp-proxy/index.d.ts +0 -32
- package/dist/mcp-proxy/index.d.ts.map +0 -1
- package/dist/mcp-proxy/index.js +0 -187
- package/dist/mcp-proxy/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -135,38 +135,42 @@ Check your current API configuration:
|
|
|
135
135
|
/api-info
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
###
|
|
139
|
-
|
|
140
|
-
The CLI provides access to various tools that execute server-side using B4M company API keys:
|
|
141
|
-
|
|
142
|
-
**Local Tools (always available):**
|
|
143
|
-
- ✅ `dice_roll` - Roll dice with custom notation
|
|
144
|
-
- ✅ `math_evaluate` - Evaluate mathematical expressions
|
|
145
|
-
- ✅ `current_datetime` - Get current date and time
|
|
146
|
-
- ✅ `prompt_enhancement` - Improve prompts using LLM
|
|
147
|
-
- ✅ `file_read` - Read files from local filesystem
|
|
148
|
-
- ✅ `create_file` - Create or update files
|
|
149
|
-
- ✅ `glob_files` - Find files by pattern
|
|
150
|
-
- ✅ `grep_search` - Search file contents
|
|
151
|
-
- ✅ `delete_file` - Delete files
|
|
152
|
-
|
|
153
|
-
**B4M Server Tools (require authentication):**
|
|
154
|
-
- 🌐 `weather` - Get weather information worldwide (via OpenWeather)
|
|
155
|
-
- 🔍 `serper` - Search the web using Google (via Serper API)
|
|
156
|
-
- 🔬 `deep_research` - Perform in-depth research using web search
|
|
138
|
+
### Tool API Keys
|
|
157
139
|
|
|
158
|
-
|
|
159
|
-
|
|
140
|
+
Some built-in tools require API keys to function. Add them to `~/.bike4mind/config.json`:
|
|
141
|
+
|
|
142
|
+
```json
|
|
143
|
+
{
|
|
144
|
+
"toolApiKeys": {
|
|
145
|
+
"openweather": "your-openweather-key",
|
|
146
|
+
"serper": "your-serper-key"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Or use environment variables (config takes precedence):
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
export OPENWEATHER_API_KEY="your-key-here"
|
|
155
|
+
export SERPER_API_KEY="your-key-here"
|
|
156
|
+
```
|
|
160
157
|
|
|
161
|
-
|
|
158
|
+
**Available Tools:**
|
|
159
|
+
- ✅ `dice_roll` - No API key needed
|
|
160
|
+
- ✅ `math_evaluate` - No API key needed
|
|
161
|
+
- ✅ `current_datetime` - No API key needed
|
|
162
|
+
- ✅ `prompt_enhancement` - No API key needed
|
|
163
|
+
- 🔑 `weather_info` - Requires `toolApiKeys.openweather`
|
|
164
|
+
- 🔑 `web_search` - Requires `toolApiKeys.serper`
|
|
165
|
+
- 🔑 `deep_research` - Requires `toolApiKeys.serper`
|
|
162
166
|
|
|
163
|
-
|
|
167
|
+
**Get API Keys:**
|
|
168
|
+
- OpenWeather API: https://openweathermap.org/api
|
|
169
|
+
- Serper API: https://serper.dev/
|
|
164
170
|
|
|
165
|
-
|
|
166
|
-
The CLI includes a built-in B4M MCP server (`b4m-tools`) that provides server-side tool execution. This server is automatically configured when you authenticate with `/login`.
|
|
171
|
+
### Optional: MCP Servers
|
|
167
172
|
|
|
168
|
-
|
|
169
|
-
You can add optional MCP servers in `~/.bike4mind/config.json`:
|
|
173
|
+
MCP (Model Context Protocol) servers provide additional tools and capabilities. Configure them in `~/.bike4mind/config.json`:
|
|
170
174
|
|
|
171
175
|
```json
|
|
172
176
|
{
|
|
@@ -184,12 +188,12 @@ You can add optional MCP servers in `~/.bike4mind/config.json`:
|
|
|
184
188
|
}
|
|
185
189
|
```
|
|
186
190
|
|
|
187
|
-
**
|
|
191
|
+
**Available MCP Servers:**
|
|
188
192
|
- 🔧 **GitHub** - Repository management, issues, PRs (requires `GITHUB_ACCESS_TOKEN`)
|
|
189
193
|
- 🔧 **LinkedIn** - Post management, analytics (requires `LINKEDIN_ACCESS_TOKEN`, `COMPANY_NAME`)
|
|
190
194
|
- 🔧 **Atlassian** - Jira/Confluence integration (requires `ATLASSIAN_ACCESS_TOKEN`, `ATLASSIAN_CLOUD_ID`, `ATLASSIAN_SITE_URL`)
|
|
191
195
|
|
|
192
|
-
**Note:**
|
|
196
|
+
**Note:** 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.
|
|
193
197
|
|
|
194
198
|
## Session Storage
|
|
195
199
|
|
|
@@ -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
|
+
// Knowledge base search
|
|
235
|
+
"search_knowledge_base"
|
|
234
236
|
]);
|
|
235
237
|
var B4MLLMToolsList = b4mLLMTools.options.map((tool) => tool);
|
|
236
238
|
var RechartsChartTypeSchema = z3.enum([
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RM2KFSVU.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2RFX62SX.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-RM2KFSVU.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-2RFX62SX.js";
|
|
14
14
|
|
|
15
15
|
// ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
|
|
16
16
|
import { z } from "zod";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getSettingsMap,
|
|
8
8
|
getSettingsValue,
|
|
9
9
|
secureParameters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RM2KFSVU.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2RFX62SX.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/fabFileService/create.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
dayjsConfig_default,
|
|
17
17
|
extractSnippetMeta,
|
|
18
18
|
settingsMap
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2RFX62SX.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";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFabFile,
|
|
4
4
|
createFabFileSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-QFDR3XXO.js";
|
|
6
|
+
import "./chunk-RM2KFSVU.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-2RFX62SX.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
createFabFile,
|