@bike4mind/cli 0.2.12-feat-secops-secrets.17399 → 0.2.12-feat-chat-completion-migration.17487
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 +21 -0
- package/dist/{ImageStore-RQZ7OF7P.js → ImageStore-MMUOUPI2.js} +0 -1
- package/dist/{artifactExtractor-F2VLARCK.js → artifactExtractor-32VRZFES.js} +1 -2
- package/dist/{chunk-BU5TP3BH.js → chunk-KG3EYFQJ.js} +2 -2
- package/dist/{chunk-RJFNIMVH.js → chunk-NYV5QDO4.js} +2 -2
- package/dist/{chunk-OHR7UCTC.js → chunk-O3O6NO7R.js} +15 -3
- package/dist/{chunk-AMDXHL6S.js → chunk-OCYRD7D6.js} +1 -1
- package/dist/{chunk-ID4NS6KF.js → chunk-QA2RCPTF.js} +2 -2
- package/dist/{chunk-ZHCX7BLB.js → chunk-XPNXIFHW.js} +2 -2
- package/dist/create-2LELHKRM.js +12 -0
- package/dist/{formatConverter-I7EIUVDY.js → formatConverter-5QEJDW24.js} +0 -1
- package/dist/index.js +560 -303
- package/dist/{llmMarkdownGenerator-AVPOXVE5.js → llmMarkdownGenerator-UQPSJDFD.js} +1 -2
- package/dist/{markdownGenerator-FBXMTP3B.js → markdownGenerator-6ZXAXYAU.js} +1 -2
- package/dist/mementoService-6G3ANT7X.js +12 -0
- package/dist/{notificationDeduplicator-UW7D75QS.js → notificationDeduplicator-UTHJHMSZ.js} +1 -2
- package/dist/{src-SYE7WXBJ.js → src-IR57MKLV.js} +1 -2
- package/dist/{src-YU4VN5YG.js → src-M3Q6EOMO.js} +3 -4
- package/dist/subtractCredits-C3KPVE7W.js +12 -0
- package/dist/{utils-JPMDGUBL.js → utils-JCHWDM4Z.js} +0 -1
- package/package.json +9 -7
- package/dist/chunk-PDX44BCA.js +0 -11
- package/dist/create-MXBWYABO.js +0 -13
- package/dist/mementoService-4WLVEWPZ.js +0 -13
- package/dist/subtractCredits-FGISXF2D.js +0 -13
package/README.md
CHANGED
|
@@ -9,8 +9,10 @@ Interactive command-line interface for Bike4Mind with ReAct agents.
|
|
|
9
9
|
- 💾 Session persistence
|
|
10
10
|
- 🛠️ B4M tools + MCP integration
|
|
11
11
|
- 🎨 Rich terminal UI with Ink
|
|
12
|
+
- 🖼️ Image paste and drag-and-drop support (iTerm2, Kitty)
|
|
12
13
|
- 🐛 Debug logging with `--verbose` flag
|
|
13
14
|
- 📄 Context file loading (CLAUDE.md, AGENTS.md, AI.md)
|
|
15
|
+
- 📁 File references with `@` autocomplete
|
|
14
16
|
|
|
15
17
|
## Installation
|
|
16
18
|
|
|
@@ -36,6 +38,25 @@ From the project root:
|
|
|
36
38
|
pnpm install
|
|
37
39
|
```
|
|
38
40
|
|
|
41
|
+
#### Build Requirements
|
|
42
|
+
|
|
43
|
+
The CLI uses native dependencies (`better-sqlite3` for image caching, `sharp` for image processing) that require compilation. These should build automatically during installation, but if you encounter errors:
|
|
44
|
+
|
|
45
|
+
**Prerequisites:**
|
|
46
|
+
- Python 3 (required by node-gyp)
|
|
47
|
+
- C++ compiler (Xcode Command Line Tools on macOS, build-essential on Linux, Visual Studio on Windows)
|
|
48
|
+
|
|
49
|
+
**Manual rebuild if needed:**
|
|
50
|
+
```bash
|
|
51
|
+
# If you see "Could not locate the bindings file" errors
|
|
52
|
+
pnpm rebuild better-sqlite3
|
|
53
|
+
|
|
54
|
+
# Or rebuild all native modules
|
|
55
|
+
pnpm rebuild
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Note:** The postinstall script will automatically rebuild `better-sqlite3` if the native bindings are missing, so manual intervention is rarely needed.
|
|
59
|
+
|
|
39
60
|
## Usage
|
|
40
61
|
|
|
41
62
|
### Start Interactive Session
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
CurationArtifactType
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-PDX44BCA.js";
|
|
4
|
+
} from "./chunk-O3O6NO7R.js";
|
|
6
5
|
|
|
7
6
|
// ../../b4m-core/packages/services/dist/src/notebookCurationService/artifactExtractor.js
|
|
8
7
|
var ARTIFACT_TAG_REGEX = /<artifact\s+(.*?)>([\s\S]*?)<\/artifact>/gi;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
Logger
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OCYRD7D6.js";
|
|
5
5
|
import {
|
|
6
6
|
BedrockEmbeddingModel,
|
|
7
7
|
ChatModels,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
dayjsConfig_default,
|
|
17
17
|
extractSnippetMeta,
|
|
18
18
|
settingsMap
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O3O6NO7R.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";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getSettingsMap,
|
|
8
8
|
getSettingsValue,
|
|
9
9
|
secureParameters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KG3EYFQJ.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O3O6NO7R.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/fabFileService/create.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -2104,7 +2104,9 @@ var SettingKeySchema = z19.enum([
|
|
|
2104
2104
|
// TIME MACHINE & NIGHT SKY SETTINGS
|
|
2105
2105
|
"EnableEnhancedDateTime",
|
|
2106
2106
|
"EnableHistoricalFeatures",
|
|
2107
|
-
"EnableAstronomyFeatures"
|
|
2107
|
+
"EnableAstronomyFeatures",
|
|
2108
|
+
// ARCHITECTURE TRANSITION
|
|
2109
|
+
"EnableArchitectureTransition"
|
|
2108
2110
|
]);
|
|
2109
2111
|
var CategoryOrder = [
|
|
2110
2112
|
"AI",
|
|
@@ -2463,7 +2465,8 @@ var API_SERVICE_GROUPS = {
|
|
|
2463
2465
|
{ key: "EnableRapidReply", order: 7 },
|
|
2464
2466
|
{ key: "EnableResearchEngine", order: 8 },
|
|
2465
2467
|
{ key: "EnableReactViewer", order: 9 },
|
|
2466
|
-
{ key: "EnableDeepResearch", order: 10 }
|
|
2468
|
+
{ key: "EnableDeepResearch", order: 10 },
|
|
2469
|
+
{ key: "EnableArchitectureTransition", order: 11 }
|
|
2467
2470
|
]
|
|
2468
2471
|
},
|
|
2469
2472
|
NOTEBOOK: {
|
|
@@ -3546,8 +3549,17 @@ var settingsMap = {
|
|
|
3546
3549
|
category: "Tools",
|
|
3547
3550
|
group: API_SERVICE_GROUPS.DATETIME_ASTRONOMY.id,
|
|
3548
3551
|
order: 3
|
|
3552
|
+
}),
|
|
3553
|
+
// Architecture Transition
|
|
3554
|
+
EnableArchitectureTransition: makeBooleanSetting({
|
|
3555
|
+
key: "EnableArchitectureTransition",
|
|
3556
|
+
name: "Enable Architecture Transition",
|
|
3557
|
+
defaultValue: false,
|
|
3558
|
+
description: "Enable the transition to the new Simplified Hexagonal Architecture pattern. When enabled, new features will use the core/infra separation pattern.",
|
|
3559
|
+
category: "Experimental",
|
|
3560
|
+
group: API_SERVICE_GROUPS.EXPERIMENTAL.id,
|
|
3561
|
+
order: 11
|
|
3549
3562
|
})
|
|
3550
|
-
// Add more settings as needed
|
|
3551
3563
|
};
|
|
3552
3564
|
|
|
3553
3565
|
// ../../b4m-core/packages/common/dist/src/schemas/zod.js
|
|
@@ -160,7 +160,7 @@ var notifyEventLogsToSlack = async ({ event, stage, slackUrl, throttlingSlackUrl
|
|
|
160
160
|
if (!allowedStages.includes(stage))
|
|
161
161
|
return;
|
|
162
162
|
const logEvents = logData.logEvents;
|
|
163
|
-
const { notificationDeduplicator: notificationDeduplicator2 } = await import("./notificationDeduplicator-
|
|
163
|
+
const { notificationDeduplicator: notificationDeduplicator2 } = await import("./notificationDeduplicator-UTHJHMSZ.js");
|
|
164
164
|
for (const logEvent of logEvents) {
|
|
165
165
|
try {
|
|
166
166
|
let message;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
BadRequestError,
|
|
4
4
|
secureParameters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KG3EYFQJ.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-O3O6NO7R.js";
|
|
14
14
|
|
|
15
15
|
// ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
|
|
16
16
|
import { z } from "zod";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KG3EYFQJ.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O3O6NO7R.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
|
|
17
17
|
import { z } from "zod";
|