@bike4mind/cli 0.2.29-fix-paste-hang-indicator.18877 → 0.2.29-fix-user-stats.18910

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-FKJTU7KU.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;
@@ -6,12 +6,12 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-S7BPPS33.js";
9
+ } from "./chunk-RMXZWMAY.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-5GSDPBTM.js";
14
+ } from "./chunk-FKJTU7KU.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
17
17
  import { z } from "zod";
@@ -7781,6 +7781,12 @@ function buildSSEEvent(text, info) {
7781
7781
  outputTokens: info.outputTokens
7782
7782
  };
7783
7783
  }
7784
+ if (info?.creditsUsed !== void 0 || info?.usdCost !== void 0) {
7785
+ event.credits = {
7786
+ used: info.creditsUsed,
7787
+ usdCost: info.usdCost
7788
+ };
7789
+ }
7784
7790
  if (info?.thinking && info.thinking.length > 0) {
7785
7791
  event.thinking = info.thinking;
7786
7792
  }
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-S7BPPS33.js";
5
+ } from "./chunk-RMXZWMAY.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-FKJTU7KU.js";
16
16
 
17
17
  // ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
18
18
  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-FKJTU7KU.js";
19
19
  import {
20
20
  Logger
21
21
  } from "./chunk-OCYRD7D6.js";
@@ -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: [],
@@ -7,11 +7,11 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-S7BPPS33.js";
10
+ } from "./chunk-RMXZWMAY.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-5GSDPBTM.js";
14
+ } from "./chunk-FKJTU7KU.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-ELTTBWAQ.js";
6
- import "./chunk-S7BPPS33.js";
7
- import "./chunk-5GSDPBTM.js";
5
+ } from "./chunk-XOTWLDQT.js";
6
+ import "./chunk-RMXZWMAY.js";
7
+ import "./chunk-FKJTU7KU.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
10
10
  createFabFile,