@bike4mind/cli 0.2.30-feat-secops-weekly-scan.19184 → 0.2.30-feat-cli-scrollable-command-autocomplete.19203
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/{chunk-NY6YY63Z.js → chunk-5HA4JEOV.js} +2 -2
- package/dist/{chunk-MJGOJAIN.js → chunk-65DLNQY2.js} +1 -1
- package/dist/{chunk-RIY2NQGV.js → chunk-B7Z2QQMD.js} +1 -1
- package/dist/{chunk-SPS5BXKS.js → chunk-BYLWQZ5S.js} +1 -1
- package/dist/{create-VXYVONXM.js → create-IDGWY5LO.js} +2 -2
- package/dist/index.js +29 -15
- package/dist/{mementoService-2BQSPMM6.js → mementoService-34S5SRX4.js} +2 -2
- package/dist/{src-74RDUV7M.js → src-MDS22ESD.js} +1 -1
- package/dist/{subtractCredits-TYV6YSAW.js → subtractCredits-6CK3FPNG.js} +2 -2
- package/package.json +9 -9
|
@@ -5913,12 +5913,12 @@ var GPT5_MODELS = [
|
|
|
5913
5913
|
var GPT5_1_MODELS = [ChatModels.GPT5_1, ChatModels.GPT5_1_CHAT_LATEST];
|
|
5914
5914
|
var GPT5_2_MODELS = [ChatModels.GPT5_2, ChatModels.GPT5_2_CHAT_LATEST];
|
|
5915
5915
|
var effortMap = {
|
|
5916
|
-
simple: "
|
|
5916
|
+
simple: "low",
|
|
5917
5917
|
contextual: "low",
|
|
5918
5918
|
complex: "medium"
|
|
5919
5919
|
};
|
|
5920
5920
|
var effortMap_GPT5_1_2 = {
|
|
5921
|
-
simple: "
|
|
5921
|
+
simple: "low",
|
|
5922
5922
|
contextual: "low",
|
|
5923
5923
|
complex: "medium"
|
|
5924
5924
|
};
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getEffectiveApiKey,
|
|
6
6
|
getOpenWeatherKey,
|
|
7
7
|
getSerperKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-65DLNQY2.js";
|
|
9
9
|
import "./chunk-RUI6HNLO.js";
|
|
10
10
|
import {
|
|
11
11
|
ConfigStore,
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
selectActiveBackgroundAgents,
|
|
16
16
|
useCliStore
|
|
17
17
|
} from "./chunk-TVW4ZESU.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-BYLWQZ5S.js";
|
|
19
|
+
import "./chunk-B7Z2QQMD.js";
|
|
20
20
|
import {
|
|
21
21
|
BFLImageService,
|
|
22
22
|
BaseStorage,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
OpenAIBackend,
|
|
29
29
|
OpenAIImageService,
|
|
30
30
|
XAIImageService
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5HA4JEOV.js";
|
|
32
32
|
import {
|
|
33
33
|
AiEvents,
|
|
34
34
|
ApiKeyEvents,
|
|
@@ -316,9 +316,23 @@ function CommandAutocomplete({ commands, selectedIndex }) {
|
|
|
316
316
|
if (commands.length === 0) {
|
|
317
317
|
return /* @__PURE__ */ React3.createElement(Box2, { marginLeft: 2, marginTop: 1 }, /* @__PURE__ */ React3.createElement(Text3, { dimColor: true }, "No matching commands"));
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
const VIEWPORT_SIZE = 6;
|
|
320
|
+
const totalCommands = commands.length;
|
|
321
|
+
let startIndex = 0;
|
|
322
|
+
let endIndex = Math.min(VIEWPORT_SIZE, totalCommands);
|
|
323
|
+
if (totalCommands > VIEWPORT_SIZE) {
|
|
324
|
+
const halfViewport = Math.floor(VIEWPORT_SIZE / 2);
|
|
325
|
+
startIndex = Math.max(0, selectedIndex - halfViewport);
|
|
326
|
+
endIndex = Math.min(totalCommands, startIndex + VIEWPORT_SIZE);
|
|
327
|
+
if (endIndex === totalCommands) {
|
|
328
|
+
startIndex = Math.max(0, totalCommands - VIEWPORT_SIZE);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
const visibleCommands = commands.slice(startIndex, endIndex);
|
|
332
|
+
return /* @__PURE__ */ React3.createElement(Box2, { flexDirection: "column", marginLeft: 2, marginTop: 1 }, /* @__PURE__ */ React3.createElement(Box2, { marginBottom: 1 }, /* @__PURE__ */ React3.createElement(Text3, { dimColor: true }, totalCommands === 1 ? "1 command" : `${totalCommands} commands`, totalCommands > VIEWPORT_SIZE && ` (${selectedIndex + 1}/${totalCommands})`, " \u2022 Use \u2191\u2193 to navigate, Enter to select")), visibleCommands.map((cmd, viewportIndex) => {
|
|
333
|
+
const actualIndex = startIndex + viewportIndex;
|
|
320
334
|
const args = cmd.args ? ` ${cmd.args}` : "";
|
|
321
|
-
const isSelected =
|
|
335
|
+
const isSelected = actualIndex === selectedIndex;
|
|
322
336
|
const sourceIcon = cmd.source === "global" ? "\u{1F3E0} " : cmd.source === "project" ? "\u{1F4C1} " : cmd.source === "built-in" ? "\u{1F527} " : "";
|
|
323
337
|
return /* @__PURE__ */ React3.createElement(Box2, { key: cmd.name, marginLeft: 1 }, /* @__PURE__ */ React3.createElement(Text3, { color: isSelected ? "cyan" : void 0, bold: isSelected }, isSelected ? "\u25B8 " : " ", sourceIcon, "/", cmd.name, args, " - ", cmd.description));
|
|
324
338
|
}));
|
|
@@ -14636,7 +14650,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
14636
14650
|
// package.json
|
|
14637
14651
|
var package_default = {
|
|
14638
14652
|
name: "@bike4mind/cli",
|
|
14639
|
-
version: "0.2.30-feat-
|
|
14653
|
+
version: "0.2.30-feat-cli-scrollable-command-autocomplete.19203+b74387251",
|
|
14640
14654
|
type: "module",
|
|
14641
14655
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
14642
14656
|
license: "UNLICENSED",
|
|
@@ -14707,13 +14721,10 @@ var package_default = {
|
|
|
14707
14721
|
diff: "^8.0.2",
|
|
14708
14722
|
dotenv: "^16.3.1",
|
|
14709
14723
|
"eventsource-parser": "^3.0.6",
|
|
14710
|
-
fdir: "^6.5.0",
|
|
14711
14724
|
"file-type": "^18.7.0",
|
|
14712
14725
|
"fuse.js": "^7.1.0",
|
|
14713
|
-
fzf: "^0.5.2",
|
|
14714
14726
|
glob: "^13.0.0",
|
|
14715
14727
|
"gray-matter": "^4.0.3",
|
|
14716
|
-
ignore: "^7.0.5",
|
|
14717
14728
|
ink: "^6.5.1",
|
|
14718
14729
|
"ink-select-input": "^6.2.0",
|
|
14719
14730
|
"ink-spinner": "^5.0.0",
|
|
@@ -14750,10 +14761,10 @@ var package_default = {
|
|
|
14750
14761
|
},
|
|
14751
14762
|
devDependencies: {
|
|
14752
14763
|
"@bike4mind/agents": "0.1.0",
|
|
14753
|
-
"@bike4mind/common": "2.51.1-feat-
|
|
14754
|
-
"@bike4mind/mcp": "1.30.1-feat-
|
|
14755
|
-
"@bike4mind/services": "2.49.1-feat-
|
|
14756
|
-
"@bike4mind/utils": "2.6.1-feat-
|
|
14764
|
+
"@bike4mind/common": "2.51.1-feat-cli-scrollable-command-autocomplete.19203+b74387251",
|
|
14765
|
+
"@bike4mind/mcp": "1.30.1-feat-cli-scrollable-command-autocomplete.19203+b74387251",
|
|
14766
|
+
"@bike4mind/services": "2.49.1-feat-cli-scrollable-command-autocomplete.19203+b74387251",
|
|
14767
|
+
"@bike4mind/utils": "2.6.1-feat-cli-scrollable-command-autocomplete.19203+b74387251",
|
|
14757
14768
|
"@types/better-sqlite3": "^7.6.13",
|
|
14758
14769
|
"@types/diff": "^5.0.9",
|
|
14759
14770
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -14762,6 +14773,9 @@ var package_default = {
|
|
|
14762
14773
|
"@types/react": "^19.2.7",
|
|
14763
14774
|
"@types/uuid": "^9.0.7",
|
|
14764
14775
|
"@types/yargs": "^17.0.32",
|
|
14776
|
+
fdir: "^6.5.0",
|
|
14777
|
+
fzf: "^0.5.2",
|
|
14778
|
+
ignore: "^7.0.5",
|
|
14765
14779
|
"ink-testing-library": "^4.0.0",
|
|
14766
14780
|
tsup: "^8.5.1",
|
|
14767
14781
|
tsx: "^4.21.0",
|
|
@@ -14771,7 +14785,7 @@ var package_default = {
|
|
|
14771
14785
|
optionalDependencies: {
|
|
14772
14786
|
"@vscode/ripgrep": "^1.17.0"
|
|
14773
14787
|
},
|
|
14774
|
-
gitHead: "
|
|
14788
|
+
gitHead: "b74387251e07e79e94b8720e6d4b1c8e16bde324"
|
|
14775
14789
|
};
|
|
14776
14790
|
|
|
14777
14791
|
// src/config/constants.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.30-feat-
|
|
3
|
+
"version": "0.2.30-feat-cli-scrollable-command-autocomplete.19203+b74387251",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -71,13 +71,10 @@
|
|
|
71
71
|
"diff": "^8.0.2",
|
|
72
72
|
"dotenv": "^16.3.1",
|
|
73
73
|
"eventsource-parser": "^3.0.6",
|
|
74
|
-
"fdir": "^6.5.0",
|
|
75
74
|
"file-type": "^18.7.0",
|
|
76
75
|
"fuse.js": "^7.1.0",
|
|
77
|
-
"fzf": "^0.5.2",
|
|
78
76
|
"glob": "^13.0.0",
|
|
79
77
|
"gray-matter": "^4.0.3",
|
|
80
|
-
"ignore": "^7.0.5",
|
|
81
78
|
"ink": "^6.5.1",
|
|
82
79
|
"ink-select-input": "^6.2.0",
|
|
83
80
|
"ink-spinner": "^5.0.0",
|
|
@@ -114,10 +111,10 @@
|
|
|
114
111
|
},
|
|
115
112
|
"devDependencies": {
|
|
116
113
|
"@bike4mind/agents": "0.1.0",
|
|
117
|
-
"@bike4mind/common": "2.51.1-feat-
|
|
118
|
-
"@bike4mind/mcp": "1.30.1-feat-
|
|
119
|
-
"@bike4mind/services": "2.49.1-feat-
|
|
120
|
-
"@bike4mind/utils": "2.6.1-feat-
|
|
114
|
+
"@bike4mind/common": "2.51.1-feat-cli-scrollable-command-autocomplete.19203+b74387251",
|
|
115
|
+
"@bike4mind/mcp": "1.30.1-feat-cli-scrollable-command-autocomplete.19203+b74387251",
|
|
116
|
+
"@bike4mind/services": "2.49.1-feat-cli-scrollable-command-autocomplete.19203+b74387251",
|
|
117
|
+
"@bike4mind/utils": "2.6.1-feat-cli-scrollable-command-autocomplete.19203+b74387251",
|
|
121
118
|
"@types/better-sqlite3": "^7.6.13",
|
|
122
119
|
"@types/diff": "^5.0.9",
|
|
123
120
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -126,6 +123,9 @@
|
|
|
126
123
|
"@types/react": "^19.2.7",
|
|
127
124
|
"@types/uuid": "^9.0.7",
|
|
128
125
|
"@types/yargs": "^17.0.32",
|
|
126
|
+
"fdir": "^6.5.0",
|
|
127
|
+
"fzf": "^0.5.2",
|
|
128
|
+
"ignore": "^7.0.5",
|
|
129
129
|
"ink-testing-library": "^4.0.0",
|
|
130
130
|
"tsup": "^8.5.1",
|
|
131
131
|
"tsx": "^4.21.0",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"optionalDependencies": {
|
|
136
136
|
"@vscode/ripgrep": "^1.17.0"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "b74387251e07e79e94b8720e6d4b1c8e16bde324"
|
|
139
139
|
}
|