@bike4mind/cli 0.2.41 → 0.2.42-feat-7023-kb-citations.20440
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/{artifactExtractor-ZQB4NSAB.js → artifactExtractor-35BJBKKL.js} +1 -1
- package/dist/{chunk-LASSRSY5.js → chunk-54GZBCAT.js} +2 -2
- package/dist/{chunk-PQUTFN3I.js → chunk-CNJCCHZZ.js} +2 -2
- package/dist/{chunk-QGRINUOQ.js → chunk-CWPNFAMO.js} +26 -4
- package/dist/{chunk-2XYM57Z2.js → chunk-E6CAL22Z.js} +6 -6
- package/dist/{chunk-VLJPDKBB.js → chunk-EIYLHGFX.js} +2 -2
- package/dist/{chunk-5LAMXWSG.js → chunk-LSGK2ME7.js} +1 -1
- package/dist/{chunk-CQBMTJ5R.js → chunk-XO4KZXR3.js} +2 -2
- package/dist/{chunk-QXTMFSVQ.js → chunk-ZSXUTP5A.js} +1 -1
- package/dist/commands/doctorCommand.js +1 -1
- package/dist/commands/headlessCommand.js +7 -7
- package/dist/commands/mcpCommand.js +2 -2
- package/dist/commands/updateCommand.js +1 -1
- package/dist/{create-FJWP2YIT.js → create-TILTFHIP.js} +3 -3
- package/dist/index.js +8 -8
- package/dist/{llmMarkdownGenerator-5QHYSVLF.js → llmMarkdownGenerator-U4MPDJOF.js} +1 -1
- package/dist/{markdownGenerator-HB37JRW5.js → markdownGenerator-2VXZR3NZ.js} +1 -1
- package/dist/{mementoService-AJAEKKPJ.js → mementoService-XTPHY7PC.js} +3 -3
- package/dist/{src-T2DTVVY6.js → src-KBESBNDY.js} +2 -2
- package/dist/{src-522U3GBK.js → src-WUPDSI4P.js} +1 -1
- package/dist/{subtractCredits-VD5YQ5EX.js → subtractCredits-JP7FBTMZ.js} +3 -3
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
CurationArtifactType
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XO4KZXR3.js";
|
|
5
5
|
|
|
6
6
|
// ../../b4m-core/packages/services/dist/src/notebookCurationService/artifactExtractor.js
|
|
7
7
|
var ARTIFACT_TAG_REGEX = /<artifact\s+(.*?)>([\s\S]*?)<\/artifact>/gi;
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZSXUTP5A.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XO4KZXR3.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getSettingsMap,
|
|
8
8
|
getSettingsValue,
|
|
9
9
|
secureParameters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZSXUTP5A.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XO4KZXR3.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/fabFileService/create.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getOpenWeatherKey,
|
|
5
5
|
getSerperKey,
|
|
6
6
|
getWolframAlphaKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-54GZBCAT.js";
|
|
8
8
|
import {
|
|
9
9
|
BFLImageService,
|
|
10
10
|
BaseStorage,
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
OpenAIBackend,
|
|
17
17
|
OpenAIImageService,
|
|
18
18
|
XAIImageService
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZSXUTP5A.js";
|
|
20
20
|
import {
|
|
21
21
|
Logger
|
|
22
22
|
} from "./chunk-PFBYGCOW.js";
|
|
23
23
|
import {
|
|
24
24
|
ConfigStore,
|
|
25
25
|
logger
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LSGK2ME7.js";
|
|
27
27
|
import {
|
|
28
28
|
ALERT_THRESHOLDS,
|
|
29
29
|
AiEvents,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
getViewById,
|
|
85
85
|
resolveNavigationIntents,
|
|
86
86
|
sanitizeTelemetryError
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-XO4KZXR3.js";
|
|
88
88
|
|
|
89
89
|
// src/utils/fileSearch.ts
|
|
90
90
|
import * as fs from "fs";
|
|
@@ -8753,6 +8753,27 @@ var knowledgeBaseSearchTool = {
|
|
|
8753
8753
|
// Include data lake files user has access to
|
|
8754
8754
|
});
|
|
8755
8755
|
context.logger.log("\u{1F4DA} Knowledge Base Search: Found", searchResults.data.length, "of", searchResults.total, "results. Files:", searchResults.data.map((f) => f.fileName));
|
|
8756
|
+
if (searchResults.data.length > 0) {
|
|
8757
|
+
const citables = searchResults.data.map((file, index) => {
|
|
8758
|
+
const fileTags = (file.tags?.map((t) => t.name) || []).filter((t) => !t.startsWith("datalake:")).slice(0, 4).join(", ");
|
|
8759
|
+
return {
|
|
8760
|
+
id: file.id,
|
|
8761
|
+
type: "document",
|
|
8762
|
+
title: file.fileName,
|
|
8763
|
+
url: `/opti?mode=datalake&article=${file.id}`,
|
|
8764
|
+
description: fileTags || void 0,
|
|
8765
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8766
|
+
status: "complete",
|
|
8767
|
+
metadata: {
|
|
8768
|
+
sourceSystem: "knowledge_base",
|
|
8769
|
+
tags: file.tags?.map((t) => t.name) || [],
|
|
8770
|
+
relevanceScore: 1 - index * 0.1
|
|
8771
|
+
}
|
|
8772
|
+
};
|
|
8773
|
+
});
|
|
8774
|
+
await context.statusUpdate({ promptMeta: { citables } }, "Knowledge base search results");
|
|
8775
|
+
context.logger.log(`\u{1F4DA} Knowledge Base Search: Stored ${citables.length} citables`);
|
|
8776
|
+
}
|
|
8756
8777
|
return formatSearchResults(searchResults.data);
|
|
8757
8778
|
} catch (error) {
|
|
8758
8779
|
context.logger.error("\u274C Knowledge Base Search: Error during search:", error);
|
|
@@ -8880,6 +8901,7 @@ Chunks: ${chunks.length} | Characters: ${charLabel}
|
|
|
8880
8901
|
id: file.id,
|
|
8881
8902
|
type: "document",
|
|
8882
8903
|
title: file.fileName,
|
|
8904
|
+
url: `/opti?mode=datalake&article=${file.id}`,
|
|
8883
8905
|
description: fileTags || void 0,
|
|
8884
8906
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8885
8907
|
status: "complete",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@bike4mind/cli",
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.42-feat-7023-kb-citations.20440+eccda8309",
|
|
7
7
|
type: "module",
|
|
8
8
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
9
9
|
license: "UNLICENSED",
|
|
@@ -117,10 +117,10 @@ var package_default = {
|
|
|
117
117
|
},
|
|
118
118
|
devDependencies: {
|
|
119
119
|
"@bike4mind/agents": "0.1.0",
|
|
120
|
-
"@bike4mind/common": "2.61.
|
|
121
|
-
"@bike4mind/mcp": "1.33.
|
|
122
|
-
"@bike4mind/services": "2.57.
|
|
123
|
-
"@bike4mind/utils": "2.12.
|
|
120
|
+
"@bike4mind/common": "2.61.2-feat-7023-kb-citations.20440+eccda8309",
|
|
121
|
+
"@bike4mind/mcp": "1.33.4-feat-7023-kb-citations.20440+eccda8309",
|
|
122
|
+
"@bike4mind/services": "2.57.2-feat-7023-kb-citations.20440+eccda8309",
|
|
123
|
+
"@bike4mind/utils": "2.12.4-feat-7023-kb-citations.20440+eccda8309",
|
|
124
124
|
"@types/better-sqlite3": "^7.6.13",
|
|
125
125
|
"@types/diff": "^5.0.9",
|
|
126
126
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -138,7 +138,7 @@ var package_default = {
|
|
|
138
138
|
optionalDependencies: {
|
|
139
139
|
"@vscode/ripgrep": "^1.17.0"
|
|
140
140
|
},
|
|
141
|
-
gitHead: "
|
|
141
|
+
gitHead: "eccda83090d437721ac575992ae55ac4b5465da8"
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
// src/utils/updateChecker.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
BadRequestError,
|
|
4
4
|
secureParameters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZSXUTP5A.js";
|
|
6
6
|
import {
|
|
7
7
|
CompletionApiUsageTransaction,
|
|
8
8
|
GenericCreditDeductTransaction,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
ToolUsageTransaction,
|
|
14
14
|
TransferCreditTransaction,
|
|
15
15
|
VideoGenerationUsageTransaction
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XO4KZXR3.js";
|
|
17
17
|
|
|
18
18
|
// ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
|
|
19
19
|
import { z } from "zod";
|
|
@@ -10912,8 +10912,8 @@ var VIEW_REGISTRY = [
|
|
|
10912
10912
|
section: "global",
|
|
10913
10913
|
label: "Knowledge Base",
|
|
10914
10914
|
description: "Browse uploaded files and documents in your knowledge base",
|
|
10915
|
-
navigationType: "
|
|
10916
|
-
target: "
|
|
10915
|
+
navigationType: "action",
|
|
10916
|
+
target: "file_browser",
|
|
10917
10917
|
keywords: ["knowledge", "files", "documents", "uploads", "library"]
|
|
10918
10918
|
},
|
|
10919
10919
|
{
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
extractSnippetMeta,
|
|
21
21
|
isGPTImageModel,
|
|
22
22
|
settingsMap
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XO4KZXR3.js";
|
|
24
24
|
|
|
25
25
|
// ../../b4m-core/packages/utils/dist/src/storage/S3Storage.js
|
|
26
26
|
import { S3Client, PutObjectCommand, DeleteObjectCommand, GetObjectCommand, HeadObjectCommand } from "@aws-sdk/client-s3";
|
|
@@ -36,20 +36,20 @@ import {
|
|
|
36
36
|
isReadOnlyTool,
|
|
37
37
|
loadContextFiles,
|
|
38
38
|
setWebSocketToolExecutor
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-CWPNFAMO.js";
|
|
40
40
|
import "../chunk-BDQBOLYG.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-54GZBCAT.js";
|
|
42
42
|
import "../chunk-GQGOWACU.js";
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-EIYLHGFX.js";
|
|
44
|
+
import "../chunk-CNJCCHZZ.js";
|
|
45
|
+
import "../chunk-ZSXUTP5A.js";
|
|
46
46
|
import "../chunk-PFBYGCOW.js";
|
|
47
47
|
import "../chunk-BPFEGDC7.js";
|
|
48
48
|
import {
|
|
49
49
|
ConfigStore,
|
|
50
50
|
logger
|
|
51
|
-
} from "../chunk-
|
|
52
|
-
import "../chunk-
|
|
51
|
+
} from "../chunk-LSGK2ME7.js";
|
|
52
|
+
import "../chunk-XO4KZXR3.js";
|
|
53
53
|
import {
|
|
54
54
|
DEFAULT_SANDBOX_CONFIG
|
|
55
55
|
} from "../chunk-4BIBE3J7.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFabFile,
|
|
4
4
|
createFabFileSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-CNJCCHZZ.js";
|
|
6
|
+
import "./chunk-ZSXUTP5A.js";
|
|
7
7
|
import "./chunk-PFBYGCOW.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-XO4KZXR3.js";
|
|
9
9
|
export {
|
|
10
10
|
createFabFile,
|
|
11
11
|
createFabFileSchema
|
package/dist/index.js
CHANGED
|
@@ -46,23 +46,23 @@ import {
|
|
|
46
46
|
setWebSocketToolExecutor,
|
|
47
47
|
substituteArguments,
|
|
48
48
|
warmFileCache
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-CWPNFAMO.js";
|
|
50
50
|
import "./chunk-BDQBOLYG.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-54GZBCAT.js";
|
|
52
52
|
import "./chunk-GQGOWACU.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-EIYLHGFX.js";
|
|
54
|
+
import "./chunk-CNJCCHZZ.js";
|
|
55
|
+
import "./chunk-ZSXUTP5A.js";
|
|
56
56
|
import "./chunk-PFBYGCOW.js";
|
|
57
57
|
import "./chunk-BPFEGDC7.js";
|
|
58
58
|
import {
|
|
59
59
|
ConfigStore,
|
|
60
60
|
logger
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-LSGK2ME7.js";
|
|
62
62
|
import {
|
|
63
63
|
checkForUpdate,
|
|
64
64
|
package_default
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-E6CAL22Z.js";
|
|
66
66
|
import {
|
|
67
67
|
selectActiveBackgroundAgents,
|
|
68
68
|
useCliStore
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
import {
|
|
71
71
|
CREDIT_DEDUCT_TRANSACTION_TYPES,
|
|
72
72
|
ChatModels
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-XO4KZXR3.js";
|
|
74
74
|
import "./chunk-4BIBE3J7.js";
|
|
75
75
|
|
|
76
76
|
// src/index.tsx
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findMostSimilarMemento,
|
|
4
4
|
getRelevantMementos
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-54GZBCAT.js";
|
|
6
|
+
import "./chunk-ZSXUTP5A.js";
|
|
7
7
|
import "./chunk-PFBYGCOW.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-XO4KZXR3.js";
|
|
9
9
|
export {
|
|
10
10
|
findMostSimilarMemento,
|
|
11
11
|
getRelevantMementos
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
validateUrlForFetch,
|
|
141
141
|
warmUpSettingsCache,
|
|
142
142
|
withRetry
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-ZSXUTP5A.js";
|
|
144
144
|
import {
|
|
145
145
|
Logger,
|
|
146
146
|
NotificationDeduplicator,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
buildRateLimitLogEntry,
|
|
154
154
|
isNearLimit,
|
|
155
155
|
parseRateLimitHeaders
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-XO4KZXR3.js";
|
|
157
157
|
export {
|
|
158
158
|
AIVideoService,
|
|
159
159
|
AWSBackend,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SubtractCreditsSchema,
|
|
4
4
|
subtractCredits
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-EIYLHGFX.js";
|
|
6
|
+
import "./chunk-ZSXUTP5A.js";
|
|
7
7
|
import "./chunk-PFBYGCOW.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-XO4KZXR3.js";
|
|
9
9
|
export {
|
|
10
10
|
SubtractCreditsSchema,
|
|
11
11
|
subtractCredits
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.42-feat-7023-kb-citations.20440+eccda8309",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -114,10 +114,10 @@
|
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@bike4mind/agents": "0.1.0",
|
|
117
|
-
"@bike4mind/common": "2.61.
|
|
118
|
-
"@bike4mind/mcp": "1.33.
|
|
119
|
-
"@bike4mind/services": "2.57.
|
|
120
|
-
"@bike4mind/utils": "2.12.
|
|
117
|
+
"@bike4mind/common": "2.61.2-feat-7023-kb-citations.20440+eccda8309",
|
|
118
|
+
"@bike4mind/mcp": "1.33.4-feat-7023-kb-citations.20440+eccda8309",
|
|
119
|
+
"@bike4mind/services": "2.57.2-feat-7023-kb-citations.20440+eccda8309",
|
|
120
|
+
"@bike4mind/utils": "2.12.4-feat-7023-kb-citations.20440+eccda8309",
|
|
121
121
|
"@types/better-sqlite3": "^7.6.13",
|
|
122
122
|
"@types/diff": "^5.0.9",
|
|
123
123
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"optionalDependencies": {
|
|
136
136
|
"@vscode/ripgrep": "^1.17.0"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "eccda83090d437721ac575992ae55ac4b5465da8"
|
|
139
139
|
}
|