@bike4mind/cli 0.2.28 → 0.2.29-fix-dall-e-3-legacy-model-fallback.18760

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-XJRPAAUS.js";
4
+ } from "./chunk-V432FC2W.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;
@@ -15,7 +15,7 @@ import {
15
15
  dayjsConfig_default,
16
16
  extractSnippetMeta,
17
17
  settingsMap
18
- } from "./chunk-XJRPAAUS.js";
18
+ } from "./chunk-V432FC2W.js";
19
19
  import {
20
20
  Logger
21
21
  } from "./chunk-OCYRD7D6.js";
@@ -7,11 +7,11 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-UNOJBVD2.js";
10
+ } from "./chunk-2RR3K566.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-XJRPAAUS.js";
14
+ } from "./chunk-V432FC2W.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  import { z } from "zod";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-UNOJBVD2.js";
5
+ } from "./chunk-2RR3K566.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-XJRPAAUS.js";
15
+ } from "./chunk-V432FC2W.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-UNOJBVD2.js";
9
+ } from "./chunk-2RR3K566.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-XJRPAAUS.js";
14
+ } from "./chunk-V432FC2W.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
17
17
  import { z } from "zod";
@@ -1982,9 +1982,13 @@ var OPENAI_IMAGE_QUALITIES = ["standard", "hd", "low", "medium", "high"];
1982
1982
  var OpenAIImageQualitySchema = z16.enum(OPENAI_IMAGE_QUALITIES);
1983
1983
  var OPENAI_IMAGE_STYLES = ["vivid", "natural"];
1984
1984
  var OpenAIImageStyleSchema = z16.enum(OPENAI_IMAGE_STYLES);
1985
+ var LEGACY_IMAGE_MODEL_MAP = {
1986
+ "dall-e-3": ImageModels.GPT_IMAGE_1,
1987
+ "dall-e-2": ImageModels.GPT_IMAGE_1
1988
+ };
1985
1989
  var OpenAIImageGenerationInput = z16.object({
1986
1990
  prompt: z16.string(),
1987
- model: z16.enum(ALL_IMAGE_MODELS),
1991
+ 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)),
1988
1992
  n: z16.number().min(1).max(10).optional(),
1989
1993
  quality: OpenAIImageQualitySchema.optional(),
1990
1994
  response_format: z16.enum(["b64_json", "url"]).optional(),
@@ -7957,6 +7961,7 @@ export {
7957
7961
  OpenAIImageQualitySchema,
7958
7962
  OPENAI_IMAGE_STYLES,
7959
7963
  OpenAIImageStyleSchema,
7964
+ LEGACY_IMAGE_MODEL_MAP,
7960
7965
  OpenAIImageGenerationInput,
7961
7966
  PASSWORD_RULES,
7962
7967
  PASSWORD_ERROR_MESSAGES,
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-ZEMWV6IR.js";
6
- import "./chunk-UNOJBVD2.js";
7
- import "./chunk-XJRPAAUS.js";
5
+ } from "./chunk-G2NUY7AR.js";
6
+ import "./chunk-2RR3K566.js";
7
+ import "./chunk-V432FC2W.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-VGYTNJXN.js";
8
+ } from "./chunk-QJHHIL6V.js";
9
9
  import {
10
10
  ConfigStore
11
11
  } from "./chunk-23T2XGSZ.js";
@@ -13,8 +13,8 @@ import {
13
13
  selectActiveBackgroundAgents,
14
14
  useCliStore
15
15
  } from "./chunk-TVW4ZESU.js";
16
- import "./chunk-JJBDHUGY.js";
17
- import "./chunk-ZEMWV6IR.js";
16
+ import "./chunk-OEKPLUG2.js";
17
+ import "./chunk-G2NUY7AR.js";
18
18
  import {
19
19
  BFLImageService,
20
20
  BaseStorage,
@@ -26,7 +26,7 @@ import {
26
26
  OpenAIBackend,
27
27
  OpenAIImageService,
28
28
  XAIImageService
29
- } from "./chunk-UNOJBVD2.js";
29
+ } from "./chunk-2RR3K566.js";
30
30
  import {
31
31
  AiEvents,
32
32
  ApiKeyEvents,
@@ -82,7 +82,7 @@ import {
82
82
  XAI_IMAGE_MODELS,
83
83
  b4mLLMTools,
84
84
  getMcpProviderMetadata
85
- } from "./chunk-XJRPAAUS.js";
85
+ } from "./chunk-V432FC2W.js";
86
86
  import {
87
87
  Logger
88
88
  } from "./chunk-OCYRD7D6.js";
@@ -13801,7 +13801,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
13801
13801
  // package.json
13802
13802
  var package_default = {
13803
13803
  name: "@bike4mind/cli",
13804
- version: "0.2.28",
13804
+ version: "0.2.29-fix-dall-e-3-legacy-model-fallback.18760+26707f3fb",
13805
13805
  type: "module",
13806
13806
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
13807
13807
  license: "UNLICENSED",
@@ -13909,10 +13909,10 @@ var package_default = {
13909
13909
  },
13910
13910
  devDependencies: {
13911
13911
  "@bike4mind/agents": "0.1.0",
13912
- "@bike4mind/common": "2.50.0",
13913
- "@bike4mind/mcp": "1.29.0",
13914
- "@bike4mind/services": "2.48.0",
13915
- "@bike4mind/utils": "2.5.0",
13912
+ "@bike4mind/common": "2.50.1-fix-dall-e-3-legacy-model-fallback.18760+26707f3fb",
13913
+ "@bike4mind/mcp": "1.29.1-fix-dall-e-3-legacy-model-fallback.18760+26707f3fb",
13914
+ "@bike4mind/services": "2.48.1-fix-dall-e-3-legacy-model-fallback.18760+26707f3fb",
13915
+ "@bike4mind/utils": "2.5.1-fix-dall-e-3-legacy-model-fallback.18760+26707f3fb",
13916
13916
  "@types/better-sqlite3": "^7.6.13",
13917
13917
  "@types/diff": "^5.0.9",
13918
13918
  "@types/jsonwebtoken": "^9.0.4",
@@ -13929,7 +13929,7 @@ var package_default = {
13929
13929
  optionalDependencies: {
13930
13930
  "@vscode/ripgrep": "^1.17.0"
13931
13931
  },
13932
- gitHead: "28d4afd2bd097efcd751a14cbda1eee68cae2ad2"
13932
+ gitHead: "26707f3fb10a53beaf276741d494610aea76c9a3"
13933
13933
  };
13934
13934
 
13935
13935
  // src/config/constants.ts
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-XJRPAAUS.js";
4
+ } from "./chunk-V432FC2W.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-XJRPAAUS.js";
4
+ } from "./chunk-V432FC2W.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-VGYTNJXN.js";
6
- import "./chunk-UNOJBVD2.js";
7
- import "./chunk-XJRPAAUS.js";
5
+ } from "./chunk-QJHHIL6V.js";
6
+ import "./chunk-2RR3K566.js";
7
+ import "./chunk-V432FC2W.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
10
10
  findMostSimilarMemento,
@@ -112,6 +112,7 @@ import {
112
112
  JIRA_MAX_ATTACHMENT_SIZE,
113
113
  JiraApi,
114
114
  KnowledgeType,
115
+ LEGACY_IMAGE_MODEL_MAP,
115
116
  LIVEOPS_TRIAGE_VALIDATION_LIMITS,
116
117
  LLMApiRequestBodySchema,
117
118
  LLMEvents,
@@ -339,7 +340,7 @@ import {
339
340
  validateReactArtifactV2,
340
341
  validateSvgArtifactV2,
341
342
  wikiMarkupToAdf
342
- } from "./chunk-XJRPAAUS.js";
343
+ } from "./chunk-V432FC2W.js";
343
344
  export {
344
345
  ALL_IMAGE_MODELS,
345
346
  ALL_IMAGE_SIZES,
@@ -454,6 +455,7 @@ export {
454
455
  JIRA_MAX_ATTACHMENT_SIZE,
455
456
  JiraApi,
456
457
  KnowledgeType,
458
+ LEGACY_IMAGE_MODEL_MAP,
457
459
  LIVEOPS_TRIAGE_VALIDATION_LIMITS,
458
460
  LLMApiRequestBodySchema,
459
461
  LLMEvents,
@@ -133,8 +133,8 @@ import {
133
133
  validateMermaidSyntax,
134
134
  warmUpSettingsCache,
135
135
  withRetry
136
- } from "./chunk-UNOJBVD2.js";
137
- import "./chunk-XJRPAAUS.js";
136
+ } from "./chunk-2RR3K566.js";
137
+ import "./chunk-V432FC2W.js";
138
138
  import {
139
139
  Logger,
140
140
  NotificationDeduplicator,
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  SubtractCreditsSchema,
4
4
  subtractCredits
5
- } from "./chunk-JJBDHUGY.js";
6
- import "./chunk-UNOJBVD2.js";
7
- import "./chunk-XJRPAAUS.js";
5
+ } from "./chunk-OEKPLUG2.js";
6
+ import "./chunk-2RR3K566.js";
7
+ import "./chunk-V432FC2W.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.28",
3
+ "version": "0.2.29-fix-dall-e-3-legacy-model-fallback.18760+26707f3fb",
4
4
  "type": "module",
5
5
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
6
6
  "license": "UNLICENSED",
@@ -108,10 +108,10 @@
108
108
  },
109
109
  "devDependencies": {
110
110
  "@bike4mind/agents": "0.1.0",
111
- "@bike4mind/common": "2.50.0",
112
- "@bike4mind/mcp": "1.29.0",
113
- "@bike4mind/services": "2.48.0",
114
- "@bike4mind/utils": "2.5.0",
111
+ "@bike4mind/common": "2.50.1-fix-dall-e-3-legacy-model-fallback.18760+26707f3fb",
112
+ "@bike4mind/mcp": "1.29.1-fix-dall-e-3-legacy-model-fallback.18760+26707f3fb",
113
+ "@bike4mind/services": "2.48.1-fix-dall-e-3-legacy-model-fallback.18760+26707f3fb",
114
+ "@bike4mind/utils": "2.5.1-fix-dall-e-3-legacy-model-fallback.18760+26707f3fb",
115
115
  "@types/better-sqlite3": "^7.6.13",
116
116
  "@types/diff": "^5.0.9",
117
117
  "@types/jsonwebtoken": "^9.0.4",
@@ -128,5 +128,5 @@
128
128
  "optionalDependencies": {
129
129
  "@vscode/ripgrep": "^1.17.0"
130
130
  },
131
- "gitHead": "28d4afd2bd097efcd751a14cbda1eee68cae2ad2"
131
+ "gitHead": "26707f3fb10a53beaf276741d494610aea76c9a3"
132
132
  }