@bike4mind/cli 0.2.29-fix-paste-hang-indicator.18841 → 0.2.29-fix-6635-allow-explicit-absolute-paths.18826

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-5GSDPBTM.js";
4
+ } from "./chunk-MPSPHOIZ.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-S7BPPS33.js";
10
+ } from "./chunk-MDOLASLI.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-5GSDPBTM.js";
14
+ } from "./chunk-MPSPHOIZ.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  import { z } from "zod";
@@ -15,7 +15,7 @@ import {
15
15
  dayjsConfig_default,
16
16
  extractSnippetMeta,
17
17
  settingsMap
18
- } from "./chunk-5GSDPBTM.js";
18
+ } from "./chunk-MPSPHOIZ.js";
19
19
  import {
20
20
  Logger
21
21
  } from "./chunk-OCYRD7D6.js";
@@ -1285,14 +1285,11 @@ async function processFabFilesServer(embeddingFactory, fabFiles, userPrompt, max
1285
1285
  }
1286
1286
  switch (modelInfo?.backend) {
1287
1287
  case ModelBackend.OpenAI:
1288
- case ModelBackend.XAI: {
1289
- const openaiImageBuffer = await storage.download(file.filePath);
1290
- const { mime: openaiMimeType } = await getFileType(openaiImageBuffer, file.fileName, file.mimeType);
1291
- const openaiBase64 = openaiImageBuffer.toString("base64");
1288
+ case ModelBackend.XAI:
1292
1289
  imageContent.push({
1293
1290
  type: "image_url",
1294
1291
  image_url: {
1295
- url: `data:${openaiMimeType};base64,${openaiBase64}`
1292
+ url: fileUrl
1296
1293
  }
1297
1294
  });
1298
1295
  imageContent.push({
@@ -1300,7 +1297,6 @@ async function processFabFilesServer(embeddingFactory, fabFiles, userPrompt, max
1300
1297
  text: `Image URL: ${fileUrl}`
1301
1298
  });
1302
1299
  break;
1303
- }
1304
1300
  case ModelBackend.Anthropic:
1305
1301
  case ModelBackend.Gemini:
1306
1302
  case ModelBackend.Bedrock:
@@ -6893,24 +6889,6 @@ var XAIBackend = class {
6893
6889
  }
6894
6890
  async getModelInfo() {
6895
6891
  return [
6896
- {
6897
- id: ChatModels.GROK_4,
6898
- type: "text",
6899
- name: "Grok 4",
6900
- backend: ModelBackend.XAI,
6901
- contextWindow: 256e3,
6902
- max_tokens: 16384,
6903
- can_stream: true,
6904
- pricing: {
6905
- // $3.00 / 1M Input tokens, $15.00 / 1M Output tokens. @see https://docs.x.ai/developers/models
6906
- 256e3: { input: 3 / 1e6, output: 15 / 1e6 }
6907
- },
6908
- can_think: true,
6909
- supportsVision: true,
6910
- supportsTools: true,
6911
- supportsImageVariation: false,
6912
- description: "xAI's most capable reasoning model. Excels at complex problem-solving, coding, math, and multimodal understanding with 256K context window."
6913
- },
6914
6892
  {
6915
6893
  id: ChatModels.GROK_3,
6916
6894
  type: "text",
@@ -165,7 +165,6 @@ var ChatModels;
165
165
  ChatModels2["GROK_3_MINI_FAST"] = "grok-3-mini-fast";
166
166
  ChatModels2["GROK_2"] = "grok-2-1212";
167
167
  ChatModels2["GROK_2_VISION"] = "grok-2-vision-1212";
168
- ChatModels2["GROK_4"] = "grok-4-0709";
169
168
  ChatModels2["GROK_BETA"] = "grok-beta";
170
169
  ChatModels2["GROK_VISION_BETA"] = "grok-vision-beta";
171
170
  })(ChatModels || (ChatModels = {}));
@@ -1983,13 +1982,9 @@ var OPENAI_IMAGE_QUALITIES = ["standard", "hd", "low", "medium", "high"];
1983
1982
  var OpenAIImageQualitySchema = z16.enum(OPENAI_IMAGE_QUALITIES);
1984
1983
  var OPENAI_IMAGE_STYLES = ["vivid", "natural"];
1985
1984
  var OpenAIImageStyleSchema = z16.enum(OPENAI_IMAGE_STYLES);
1986
- var LEGACY_IMAGE_MODEL_MAP = {
1987
- "dall-e-3": ImageModels.GPT_IMAGE_1,
1988
- "dall-e-2": ImageModels.GPT_IMAGE_1
1989
- };
1990
1985
  var OpenAIImageGenerationInput = z16.object({
1991
1986
  prompt: z16.string(),
1992
- model: z16.preprocess((val) => typeof val === "string" && Object.prototype.hasOwnProperty.call(LEGACY_IMAGE_MODEL_MAP, val) ? LEGACY_IMAGE_MODEL_MAP[val] : val, z16.enum(ALL_IMAGE_MODELS)),
1987
+ model: z16.enum(ALL_IMAGE_MODELS),
1993
1988
  n: z16.number().min(1).max(10).optional(),
1994
1989
  quality: OpenAIImageQualitySchema.optional(),
1995
1990
  response_format: z16.enum(["b64_json", "url"]).optional(),
@@ -7976,7 +7971,6 @@ export {
7976
7971
  OpenAIImageQualitySchema,
7977
7972
  OPENAI_IMAGE_STYLES,
7978
7973
  OpenAIImageStyleSchema,
7979
- LEGACY_IMAGE_MODEL_MAP,
7980
7974
  OpenAIImageGenerationInput,
7981
7975
  PASSWORD_RULES,
7982
7976
  PASSWORD_ERROR_MESSAGES,
@@ -6,12 +6,12 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-S7BPPS33.js";
9
+ } from "./chunk-MDOLASLI.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-5GSDPBTM.js";
14
+ } from "./chunk-MPSPHOIZ.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
17
17
  import { z } from "zod";
@@ -49,16 +49,7 @@ var useCliStore = create((set) => ({
49
49
  // Input state (for Ctrl+C clearing)
50
50
  inputValue: "",
51
51
  setInputValue: (value) => set({ inputValue: value }),
52
- clearInput: () => set({ inputValue: "", pastedContent: null, pastedLineCount: 0 }),
53
- // Paste state
54
- pastedContent: null,
55
- pastedLineCount: 0,
56
- setPastedContent: (content, lineCount) => set({
57
- pastedContent: content,
58
- pastedLineCount: lineCount,
59
- inputValue: content
60
- }),
61
- clearPaste: () => set({ pastedContent: null, pastedLineCount: 0, inputValue: "" }),
52
+ clearInput: () => set({ inputValue: "" }),
62
53
  // Permission prompt queue
63
54
  permissionPrompt: null,
64
55
  permissionQueue: [],
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-S7BPPS33.js";
5
+ } from "./chunk-MDOLASLI.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-5GSDPBTM.js";
15
+ } from "./chunk-MPSPHOIZ.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-ELTTBWAQ.js";
6
- import "./chunk-S7BPPS33.js";
7
- import "./chunk-5GSDPBTM.js";
5
+ } from "./chunk-LM4PJCVX.js";
6
+ import "./chunk-MDOLASLI.js";
7
+ import "./chunk-MPSPHOIZ.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
10
10
  createFabFile,