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

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-ZSETXZO7.js";
4
+ } from "./chunk-QTWM5QME.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;
@@ -7,11 +7,11 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-RI5ANER7.js";
10
+ } from "./chunk-MM72FUS5.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-ZSETXZO7.js";
14
+ } from "./chunk-QTWM5QME.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  import { z } from "zod";
@@ -6,12 +6,12 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-RI5ANER7.js";
9
+ } from "./chunk-MM72FUS5.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-ZSETXZO7.js";
14
+ } from "./chunk-QTWM5QME.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-ZSETXZO7.js";
19
+ } from "./chunk-QTWM5QME.js";
20
20
  import {
21
21
  Logger
22
22
  } from "./chunk-OCYRD7D6.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-RI5ANER7.js";
5
+ } from "./chunk-MM72FUS5.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-ZSETXZO7.js";
15
+ } from "./chunk-QTWM5QME.js";
16
16
 
17
17
  // ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
18
18
  import { z } from "zod";
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-SAKSY6XZ.js";
6
- import "./chunk-RI5ANER7.js";
7
- import "./chunk-ZSETXZO7.js";
5
+ } from "./chunk-2LVXVL25.js";
6
+ import "./chunk-MM72FUS5.js";
7
+ import "./chunk-QTWM5QME.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-MOYWKG6Y.js";
8
+ } from "./chunk-EOKQSYUJ.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-KSNX4KWW.js";
19
- import "./chunk-SAKSY6XZ.js";
18
+ import "./chunk-PEA7J7AM.js";
19
+ import "./chunk-2LVXVL25.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-RI5ANER7.js";
31
+ } from "./chunk-MM72FUS5.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-ZSETXZO7.js";
87
+ } from "./chunk-QTWM5QME.js";
88
88
  import {
89
89
  Logger
90
90
  } from "./chunk-OCYRD7D6.js";
@@ -350,23 +350,9 @@ 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
- 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;
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) => {
368
354
  const args = cmd.args ? ` ${cmd.args}` : "";
369
- const isSelected = actualIndex === selectedIndex;
355
+ const isSelected = index === selectedIndex;
370
356
  const sourceIcon = cmd.source === "global" ? "\u{1F3E0} " : cmd.source === "project" ? "\u{1F4C1} " : cmd.source === "built-in" ? "\u{1F527} " : "";
371
357
  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));
372
358
  }));
@@ -1110,8 +1096,8 @@ function InputPrompt({
1110
1096
  useEffect3(() => {
1111
1097
  onBashModeChange?.(isBashMode);
1112
1098
  }, [isBashMode, onBashModeChange]);
1113
- const commandQuery = value.startsWith("/") ? value.slice(1) : "";
1114
- const shouldShowCommandAutocomplete = value.startsWith("/") && !disabled && !fileAutocomplete?.active && !looksLikeFilePath(value) && !pastedContent && !commandQuery.includes(" ");
1099
+ const shouldShowCommandAutocomplete = value.startsWith("/") && !disabled && !fileAutocomplete?.active && !looksLikeFilePath(value) && !pastedContent;
1100
+ const commandQuery = shouldShowCommandAutocomplete ? value.slice(1) : "";
1115
1101
  const filteredCommands = useMemo(() => {
1116
1102
  if (!shouldShowCommandAutocomplete) return [];
1117
1103
  return searchCommands(commandQuery, commands);
@@ -14715,7 +14701,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
14715
14701
  // package.json
14716
14702
  var package_default = {
14717
14703
  name: "@bike4mind/cli",
14718
- version: "0.2.31-feat-cli-scrollable-command-autocomplete.19335+f89f84982",
14704
+ version: "0.2.31-feat-github-service.19333+6b5c9ace1",
14719
14705
  type: "module",
14720
14706
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
14721
14707
  license: "UNLICENSED",
@@ -14826,10 +14812,10 @@ var package_default = {
14826
14812
  },
14827
14813
  devDependencies: {
14828
14814
  "@bike4mind/agents": "0.1.0",
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",
14815
+ "@bike4mind/common": "2.52.1-feat-github-service.19333+6b5c9ace1",
14816
+ "@bike4mind/mcp": "1.31.1-feat-github-service.19333+6b5c9ace1",
14817
+ "@bike4mind/services": "2.50.1-feat-github-service.19333+6b5c9ace1",
14818
+ "@bike4mind/utils": "2.7.1-feat-github-service.19333+6b5c9ace1",
14833
14819
  "@types/better-sqlite3": "^7.6.13",
14834
14820
  "@types/diff": "^5.0.9",
14835
14821
  "@types/jsonwebtoken": "^9.0.4",
@@ -14850,7 +14836,7 @@ var package_default = {
14850
14836
  optionalDependencies: {
14851
14837
  "@vscode/ripgrep": "^1.17.0"
14852
14838
  },
14853
- gitHead: "f89f849822c7bb0a86846aa3648f573559861aed"
14839
+ gitHead: "6b5c9ace13f445fd55df5a8ecd83c78d78982c71"
14854
14840
  };
14855
14841
 
14856
14842
  // src/agents/toolFilter.ts
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-ZSETXZO7.js";
4
+ } from "./chunk-QTWM5QME.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-ZSETXZO7.js";
4
+ } from "./chunk-QTWM5QME.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-MOYWKG6Y.js";
6
- import "./chunk-RI5ANER7.js";
7
- import "./chunk-ZSETXZO7.js";
5
+ } from "./chunk-EOKQSYUJ.js";
6
+ import "./chunk-MM72FUS5.js";
7
+ import "./chunk-QTWM5QME.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
10
10
  findMostSimilarMemento,
@@ -435,7 +435,7 @@ import {
435
435
  validateReactArtifactV2,
436
436
  validateSvgArtifactV2,
437
437
  wikiMarkupToAdf
438
- } from "./chunk-ZSETXZO7.js";
438
+ } from "./chunk-QTWM5QME.js";
439
439
  export {
440
440
  ALL_IMAGE_MODELS,
441
441
  ALL_IMAGE_SIZES,
@@ -134,12 +134,12 @@ import {
134
134
  validateMermaidSyntax,
135
135
  warmUpSettingsCache,
136
136
  withRetry
137
- } from "./chunk-RI5ANER7.js";
137
+ } from "./chunk-MM72FUS5.js";
138
138
  import {
139
139
  buildRateLimitLogEntry,
140
140
  isNearLimit,
141
141
  parseRateLimitHeaders
142
- } from "./chunk-ZSETXZO7.js";
142
+ } from "./chunk-QTWM5QME.js";
143
143
  import {
144
144
  Logger,
145
145
  NotificationDeduplicator,
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  SubtractCreditsSchema,
4
4
  subtractCredits
5
- } from "./chunk-KSNX4KWW.js";
6
- import "./chunk-RI5ANER7.js";
7
- import "./chunk-ZSETXZO7.js";
5
+ } from "./chunk-PEA7J7AM.js";
6
+ import "./chunk-MM72FUS5.js";
7
+ import "./chunk-QTWM5QME.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-cli-scrollable-command-autocomplete.19335+f89f84982",
3
+ "version": "0.2.31-feat-github-service.19333+6b5c9ace1",
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-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",
114
+ "@bike4mind/common": "2.52.1-feat-github-service.19333+6b5c9ace1",
115
+ "@bike4mind/mcp": "1.31.1-feat-github-service.19333+6b5c9ace1",
116
+ "@bike4mind/services": "2.50.1-feat-github-service.19333+6b5c9ace1",
117
+ "@bike4mind/utils": "2.7.1-feat-github-service.19333+6b5c9ace1",
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": "f89f849822c7bb0a86846aa3648f573559861aed"
138
+ "gitHead": "6b5c9ace13f445fd55df5a8ecd83c78d78982c71"
139
139
  }
File without changes