@bike4mind/cli 0.2.31-feat-github-service.19328 → 0.2.31-feat-cli-scrollable-command-autocomplete.19335

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-QTWM5QME.js";
4
+ } from "./chunk-ZSETXZO7.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;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-MM72FUS5.js";
5
+ } from "./chunk-RI5ANER7.js";
6
6
  import {
7
7
  CompletionApiUsageTransaction,
8
8
  GenericCreditDeductTransaction,
@@ -12,7 +12,7 @@ import {
12
12
  TextGenerationUsageTransaction,
13
13
  TransferCreditTransaction,
14
14
  VideoGenerationUsageTransaction
15
- } from "./chunk-QTWM5QME.js";
15
+ } from "./chunk-ZSETXZO7.js";
16
16
 
17
17
  // ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
18
18
  import { z } from "zod";
@@ -6,12 +6,12 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-MM72FUS5.js";
9
+ } from "./chunk-RI5ANER7.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-QTWM5QME.js";
14
+ } from "./chunk-ZSETXZO7.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/apiKeyService/get.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-QTWM5QME.js";
19
+ } from "./chunk-ZSETXZO7.js";
20
20
  import {
21
21
  Logger
22
22
  } from "./chunk-OCYRD7D6.js";
@@ -7,11 +7,11 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-MM72FUS5.js";
10
+ } from "./chunk-RI5ANER7.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-QTWM5QME.js";
14
+ } from "./chunk-ZSETXZO7.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  import { z } from "zod";
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-2LVXVL25.js";
6
- import "./chunk-MM72FUS5.js";
7
- import "./chunk-QTWM5QME.js";
5
+ } from "./chunk-SAKSY6XZ.js";
6
+ import "./chunk-RI5ANER7.js";
7
+ import "./chunk-ZSETXZO7.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
10
10
  createFabFile,
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  getEffectiveApiKey,
6
6
  getOpenWeatherKey,
7
7
  getSerperKey
8
- } from "./chunk-EOKQSYUJ.js";
8
+ } from "./chunk-MOYWKG6Y.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-BYXFQJYT.js";
18
- import "./chunk-PEA7J7AM.js";
19
- import "./chunk-2LVXVL25.js";
18
+ import "./chunk-KSNX4KWW.js";
19
+ import "./chunk-SAKSY6XZ.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-MM72FUS5.js";
31
+ } from "./chunk-RI5ANER7.js";
32
32
  import {
33
33
  AiEvents,
34
34
  ApiKeyEvents,
@@ -84,7 +84,7 @@ import {
84
84
  XAI_IMAGE_MODELS,
85
85
  b4mLLMTools,
86
86
  getMcpProviderMetadata
87
- } from "./chunk-QTWM5QME.js";
87
+ } from "./chunk-ZSETXZO7.js";
88
88
  import {
89
89
  Logger
90
90
  } from "./chunk-OCYRD7D6.js";
@@ -350,9 +350,23 @@ function CommandAutocomplete({ commands, selectedIndex }) {
350
350
  if (commands.length === 0) {
351
351
  return /* @__PURE__ */ React3.createElement(Box2, { marginLeft: 2, marginTop: 1 }, /* @__PURE__ */ React3.createElement(Text3, { dimColor: true }, "No matching commands"));
352
352
  }
353
- return /* @__PURE__ */ React3.createElement(Box2, { flexDirection: "column", marginLeft: 2, marginTop: 1 }, /* @__PURE__ */ React3.createElement(Box2, { marginBottom: 1 }, /* @__PURE__ */ React3.createElement(Text3, { dimColor: true }, commands.length === 1 ? "1 command" : `${commands.length} commands`, " \u2022 Use \u2191\u2193 to navigate, Enter to select")), commands.map((cmd, index) => {
353
+ const VIEWPORT_SIZE = 6;
354
+ const totalCommands = commands.length;
355
+ let startIndex = 0;
356
+ let endIndex = Math.min(VIEWPORT_SIZE, totalCommands);
357
+ if (totalCommands > VIEWPORT_SIZE) {
358
+ const halfViewport = Math.floor(VIEWPORT_SIZE / 2);
359
+ startIndex = Math.max(0, selectedIndex - halfViewport);
360
+ endIndex = Math.min(totalCommands, startIndex + VIEWPORT_SIZE);
361
+ if (endIndex === totalCommands) {
362
+ startIndex = Math.max(0, totalCommands - VIEWPORT_SIZE);
363
+ }
364
+ }
365
+ const visibleCommands = commands.slice(startIndex, endIndex);
366
+ 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) => {
367
+ const actualIndex = startIndex + viewportIndex;
354
368
  const args = cmd.args ? ` ${cmd.args}` : "";
355
- const isSelected = index === selectedIndex;
369
+ const isSelected = actualIndex === selectedIndex;
356
370
  const sourceIcon = cmd.source === "global" ? "\u{1F3E0} " : cmd.source === "project" ? "\u{1F4C1} " : cmd.source === "built-in" ? "\u{1F527} " : "";
357
371
  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));
358
372
  }));
@@ -1096,8 +1110,8 @@ function InputPrompt({
1096
1110
  useEffect3(() => {
1097
1111
  onBashModeChange?.(isBashMode);
1098
1112
  }, [isBashMode, onBashModeChange]);
1099
- const shouldShowCommandAutocomplete = value.startsWith("/") && !disabled && !fileAutocomplete?.active && !looksLikeFilePath(value) && !pastedContent;
1100
- const commandQuery = shouldShowCommandAutocomplete ? value.slice(1) : "";
1113
+ const commandQuery = value.startsWith("/") ? value.slice(1) : "";
1114
+ const shouldShowCommandAutocomplete = value.startsWith("/") && !disabled && !fileAutocomplete?.active && !looksLikeFilePath(value) && !pastedContent && !commandQuery.includes(" ");
1101
1115
  const filteredCommands = useMemo(() => {
1102
1116
  if (!shouldShowCommandAutocomplete) return [];
1103
1117
  return searchCommands(commandQuery, commands);
@@ -14701,7 +14715,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
14701
14715
  // package.json
14702
14716
  var package_default = {
14703
14717
  name: "@bike4mind/cli",
14704
- version: "0.2.31-feat-github-service.19328+02dca3cd6",
14718
+ version: "0.2.31-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
14705
14719
  type: "module",
14706
14720
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
14707
14721
  license: "UNLICENSED",
@@ -14812,10 +14826,10 @@ var package_default = {
14812
14826
  },
14813
14827
  devDependencies: {
14814
14828
  "@bike4mind/agents": "0.1.0",
14815
- "@bike4mind/common": "2.52.1-feat-github-service.19328+02dca3cd6",
14816
- "@bike4mind/mcp": "1.31.1-feat-github-service.19328+02dca3cd6",
14817
- "@bike4mind/services": "2.50.1-feat-github-service.19328+02dca3cd6",
14818
- "@bike4mind/utils": "2.7.1-feat-github-service.19328+02dca3cd6",
14829
+ "@bike4mind/common": "2.52.1-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
14830
+ "@bike4mind/mcp": "1.31.1-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
14831
+ "@bike4mind/services": "2.50.1-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
14832
+ "@bike4mind/utils": "2.7.1-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
14819
14833
  "@types/better-sqlite3": "^7.6.13",
14820
14834
  "@types/diff": "^5.0.9",
14821
14835
  "@types/jsonwebtoken": "^9.0.4",
@@ -14836,7 +14850,7 @@ var package_default = {
14836
14850
  optionalDependencies: {
14837
14851
  "@vscode/ripgrep": "^1.17.0"
14838
14852
  },
14839
- gitHead: "02dca3cd6b39430dc12d1911aed38107dc53ee80"
14853
+ gitHead: "f89f849822c7bb0a86846aa3648f573559861aed"
14840
14854
  };
14841
14855
 
14842
14856
  // src/agents/toolFilter.ts
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-QTWM5QME.js";
4
+ } from "./chunk-ZSETXZO7.js";
5
5
 
6
6
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/llmMarkdownGenerator.js
7
7
  var DEFAULT_OPTIONS = {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-QTWM5QME.js";
4
+ } from "./chunk-ZSETXZO7.js";
5
5
 
6
6
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/markdownGenerator.js
7
7
  var DEFAULT_OPTIONS = {
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  findMostSimilarMemento,
4
4
  getRelevantMementos
5
- } from "./chunk-EOKQSYUJ.js";
6
- import "./chunk-MM72FUS5.js";
7
- import "./chunk-QTWM5QME.js";
5
+ } from "./chunk-MOYWKG6Y.js";
6
+ import "./chunk-RI5ANER7.js";
7
+ import "./chunk-ZSETXZO7.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
10
10
  findMostSimilarMemento,
@@ -134,12 +134,12 @@ import {
134
134
  validateMermaidSyntax,
135
135
  warmUpSettingsCache,
136
136
  withRetry
137
- } from "./chunk-MM72FUS5.js";
137
+ } from "./chunk-RI5ANER7.js";
138
138
  import {
139
139
  buildRateLimitLogEntry,
140
140
  isNearLimit,
141
141
  parseRateLimitHeaders
142
- } from "./chunk-QTWM5QME.js";
142
+ } from "./chunk-ZSETXZO7.js";
143
143
  import {
144
144
  Logger,
145
145
  NotificationDeduplicator,
@@ -435,7 +435,7 @@ import {
435
435
  validateReactArtifactV2,
436
436
  validateSvgArtifactV2,
437
437
  wikiMarkupToAdf
438
- } from "./chunk-QTWM5QME.js";
438
+ } from "./chunk-ZSETXZO7.js";
439
439
  export {
440
440
  ALL_IMAGE_MODELS,
441
441
  ALL_IMAGE_SIZES,
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  SubtractCreditsSchema,
4
4
  subtractCredits
5
- } from "./chunk-PEA7J7AM.js";
6
- import "./chunk-MM72FUS5.js";
7
- import "./chunk-QTWM5QME.js";
5
+ } from "./chunk-KSNX4KWW.js";
6
+ import "./chunk-RI5ANER7.js";
7
+ import "./chunk-ZSETXZO7.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
10
10
  SubtractCreditsSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "0.2.31-feat-github-service.19328+02dca3cd6",
3
+ "version": "0.2.31-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
4
4
  "type": "module",
5
5
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
6
6
  "license": "UNLICENSED",
@@ -111,10 +111,10 @@
111
111
  },
112
112
  "devDependencies": {
113
113
  "@bike4mind/agents": "0.1.0",
114
- "@bike4mind/common": "2.52.1-feat-github-service.19328+02dca3cd6",
115
- "@bike4mind/mcp": "1.31.1-feat-github-service.19328+02dca3cd6",
116
- "@bike4mind/services": "2.50.1-feat-github-service.19328+02dca3cd6",
117
- "@bike4mind/utils": "2.7.1-feat-github-service.19328+02dca3cd6",
114
+ "@bike4mind/common": "2.52.1-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
115
+ "@bike4mind/mcp": "1.31.1-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
116
+ "@bike4mind/services": "2.50.1-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
117
+ "@bike4mind/utils": "2.7.1-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
118
118
  "@types/better-sqlite3": "^7.6.13",
119
119
  "@types/diff": "^5.0.9",
120
120
  "@types/jsonwebtoken": "^9.0.4",
@@ -135,5 +135,5 @@
135
135
  "optionalDependencies": {
136
136
  "@vscode/ripgrep": "^1.17.0"
137
137
  },
138
- "gitHead": "02dca3cd6b39430dc12d1911aed38107dc53ee80"
138
+ "gitHead": "f89f849822c7bb0a86846aa3648f573559861aed"
139
139
  }
File without changes