@bike4mind/cli 0.2.31-b4m-cli-undo-command.19534 → 0.2.31-b4m-cli-undo-command.19598

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-NI22LIK3.js";
4
+ } from "./chunk-PLA2VBQW.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-3SPW5FYJ.js";
5
+ } from "./chunk-PV6PZFPC.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-NI22LIK3.js";
15
+ } from "./chunk-PLA2VBQW.js";
16
16
 
17
17
  // ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
18
18
  import { z } from "zod";
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@bike4mind/cli",
6
- version: "0.2.31-b4m-cli-undo-command.19534+db45140bb",
6
+ version: "0.2.31-b4m-cli-undo-command.19598+2815ad285",
7
7
  type: "module",
8
8
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
9
9
  license: "UNLICENSED",
@@ -114,10 +114,10 @@ var package_default = {
114
114
  },
115
115
  devDependencies: {
116
116
  "@bike4mind/agents": "0.1.0",
117
- "@bike4mind/common": "2.52.1-b4m-cli-undo-command.19534+db45140bb",
118
- "@bike4mind/mcp": "1.31.1-b4m-cli-undo-command.19534+db45140bb",
119
- "@bike4mind/services": "2.50.1-b4m-cli-undo-command.19534+db45140bb",
120
- "@bike4mind/utils": "2.7.1-b4m-cli-undo-command.19534+db45140bb",
117
+ "@bike4mind/common": "2.52.1-b4m-cli-undo-command.19598+2815ad285",
118
+ "@bike4mind/mcp": "1.31.1-b4m-cli-undo-command.19598+2815ad285",
119
+ "@bike4mind/services": "2.50.1-b4m-cli-undo-command.19598+2815ad285",
120
+ "@bike4mind/utils": "2.7.1-b4m-cli-undo-command.19598+2815ad285",
121
121
  "@types/better-sqlite3": "^7.6.13",
122
122
  "@types/diff": "^5.0.9",
123
123
  "@types/jsonwebtoken": "^9.0.4",
@@ -138,7 +138,7 @@ var package_default = {
138
138
  optionalDependencies: {
139
139
  "@vscode/ripgrep": "^1.17.0"
140
140
  },
141
- gitHead: "db45140bb943bbc4dbccd53c99a8e305cb792d88"
141
+ gitHead: "2815ad28569ac7a5ae4c74e8fbf14aa5f0046840"
142
142
  };
143
143
 
144
144
  // src/utils/updateChecker.ts
@@ -6,12 +6,12 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-3SPW5FYJ.js";
9
+ } from "./chunk-PV6PZFPC.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-NI22LIK3.js";
14
+ } from "./chunk-PLA2VBQW.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
17
17
  import { z } from "zod";
@@ -133,6 +133,7 @@ var ChatModels;
133
133
  ChatModels2["CLAUDE_4_5_SONNET_BEDROCK"] = "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
134
134
  ChatModels2["CLAUDE_4_5_HAIKU_BEDROCK"] = "us.anthropic.claude-haiku-4-5-20251001-v1:0";
135
135
  ChatModels2["CLAUDE_4_5_OPUS_BEDROCK"] = "global.anthropic.claude-opus-4-5-20251101-v1:0";
136
+ ChatModels2["CLAUDE_4_6_SONNET_BEDROCK"] = "anthropic.claude-sonnet-4-6";
136
137
  ChatModels2["CLAUDE_4_6_OPUS_BEDROCK"] = "global.anthropic.claude-opus-4-6-v1";
137
138
  ChatModels2["CLAUDE_3_OPUS"] = "claude-3-opus-20240229";
138
139
  ChatModels2["CLAUDE_3_5_HAIKU_ANTHROPIC"] = "claude-3-5-haiku-20241022";
@@ -144,6 +145,7 @@ var ChatModels;
144
145
  ChatModels2["CLAUDE_4_5_SONNET"] = "claude-sonnet-4-5-20250929";
145
146
  ChatModels2["CLAUDE_4_5_HAIKU"] = "claude-haiku-4-5-20251001";
146
147
  ChatModels2["CLAUDE_4_5_OPUS"] = "claude-opus-4-5-20251101";
148
+ ChatModels2["CLAUDE_4_6_SONNET"] = "claude-sonnet-4-6";
147
149
  ChatModels2["CLAUDE_4_6_OPUS"] = "claude-opus-4-6";
148
150
  ChatModels2["JURASSIC2_ULTRA"] = "ai21.j2-ultra-v1";
149
151
  ChatModels2["JURASSIC2_MID"] = "ai21.j2-mid-v1";
@@ -1459,7 +1461,12 @@ var StreamedChatCompletionAction = z10.object({
1459
1461
  endTime: z10.number().optional()
1460
1462
  }).optional(),
1461
1463
  // Add fallback info to support backend fallback mechanism
1462
- fallbackInfo: FallbackInfoSchema.optional()
1464
+ fallbackInfo: FallbackInfoSchema.optional(),
1465
+ // UI side-effects dispatched on the client when streaming completes
1466
+ uiSideEffects: z10.array(z10.object({
1467
+ type: z10.string(),
1468
+ payload: z10.unknown()
1469
+ })).optional()
1463
1470
  }).partial().nullable()
1464
1471
  });
1465
1472
  var StreamedRapidReplyAction = z10.object({
@@ -2828,7 +2835,12 @@ var LT = LIVEOPS_TRIAGE_VALIDATION_LIMITS;
2828
2835
  var LiveopsTriageConfigSchema = z21.object({
2829
2836
  // General settings
2830
2837
  enabled: z21.boolean().default(false),
2838
+ slackWorkspaceId: z21.string().optional(),
2839
+ // MongoDB ObjectId of the Slack workspace to use
2831
2840
  slackChannelId: z21.string(),
2841
+ // Source channel - where errors are read from
2842
+ slackOutputChannelId: z21.string().optional(),
2843
+ // Output channel - where summaries are posted (defaults to slackChannelId if not set)
2832
2844
  githubOwner: z21.string(),
2833
2845
  githubRepo: z21.string(),
2834
2846
  // Model configuration
@@ -16,7 +16,7 @@ import {
16
16
  dayjsConfig_default,
17
17
  extractSnippetMeta,
18
18
  settingsMap
19
- } from "./chunk-NI22LIK3.js";
19
+ } from "./chunk-PLA2VBQW.js";
20
20
  import {
21
21
  Logger
22
22
  } from "./chunk-PFBYGCOW.js";
@@ -2250,6 +2250,7 @@ var TEMPERATURE_ONLY_MODELS = [
2250
2250
  ChatModels.CLAUDE_4_1_OPUS,
2251
2251
  ChatModels.CLAUDE_4_5_HAIKU,
2252
2252
  ChatModels.CLAUDE_4_5_OPUS,
2253
+ ChatModels.CLAUDE_4_6_SONNET,
2253
2254
  ChatModels.CLAUDE_4_6_OPUS
2254
2255
  ];
2255
2256
  var INITIAL_TIMEOUT_MS = 3e4;
@@ -2585,6 +2586,32 @@ var AnthropicBackend = class {
2585
2586
  releaseDate: "2025-11-25",
2586
2587
  description: "Claude 4.5 Opus with Anthropic. Top-tier extended thinking model with excellent performance for complex reasoning, coding, and creative tasks."
2587
2588
  },
2589
+ {
2590
+ id: ChatModels.CLAUDE_4_6_SONNET,
2591
+ type: "text",
2592
+ name: "Claude 4.6 Sonnet",
2593
+ backend: ModelBackend.Anthropic,
2594
+ contextWindow: 2e5,
2595
+ max_tokens: 16384,
2596
+ can_stream: true,
2597
+ can_think: true,
2598
+ pricing: {
2599
+ 2e5: {
2600
+ input: 3 / 1e6,
2601
+ // $3 per 1M input tokens
2602
+ output: 15 / 1e6
2603
+ // $15 per 1M output tokens
2604
+ }
2605
+ },
2606
+ supportsVision: true,
2607
+ supportsTools: true,
2608
+ supportsImageVariation: false,
2609
+ logoFile: "Anthropic_logo.png",
2610
+ rank: 0,
2611
+ trainingCutoff: "2025-10-01",
2612
+ releaseDate: "2026-02-19",
2613
+ description: "Anthropic's newest Claude 4.6 Sonnet model. Delivers enhanced performance across coding, analysis, and complex reasoning tasks with improved speed and efficiency."
2614
+ },
2588
2615
  {
2589
2616
  id: ChatModels.CLAUDE_4_6_OPUS,
2590
2617
  type: "text",
@@ -3713,6 +3740,7 @@ var TEMPERATURE_ONLY_MODELS2 = [
3713
3740
  ChatModels.CLAUDE_4_5_SONNET_BEDROCK,
3714
3741
  ChatModels.CLAUDE_4_5_HAIKU_BEDROCK,
3715
3742
  ChatModels.CLAUDE_4_5_OPUS_BEDROCK,
3743
+ ChatModels.CLAUDE_4_6_SONNET_BEDROCK,
3716
3744
  ChatModels.CLAUDE_4_6_OPUS_BEDROCK
3717
3745
  ];
3718
3746
  var AnthropicBedrockBackend = class extends BaseBedrockBackend {
@@ -3962,6 +3990,32 @@ var AnthropicBedrockBackend = class extends BaseBedrockBackend {
3962
3990
  releaseDate: "2025-11-25",
3963
3991
  description: "Claude 4.5 Opus via AWS Bedrock. Top-tier extended thinking model with excellent performance for complex reasoning, coding, and creative tasks."
3964
3992
  },
3993
+ {
3994
+ id: ChatModels.CLAUDE_4_6_SONNET_BEDROCK,
3995
+ type: "text",
3996
+ name: "Claude 4.6 Sonnet",
3997
+ backend: ModelBackend.Bedrock,
3998
+ contextWindow: 2e5,
3999
+ max_tokens: 16384,
4000
+ can_stream: true,
4001
+ can_think: true,
4002
+ pricing: {
4003
+ 2e5: {
4004
+ input: 3 / 1e6,
4005
+ // $3 per 1M input tokens
4006
+ output: 15 / 1e6
4007
+ // $15 per 1M output tokens
4008
+ }
4009
+ },
4010
+ supportsVision: true,
4011
+ supportsTools: true,
4012
+ supportsImageVariation: false,
4013
+ logoFile: "Anthropic_logo.png",
4014
+ rank: 0,
4015
+ trainingCutoff: "2025-10-01",
4016
+ releaseDate: "2026-02-19",
4017
+ description: "Anthropic's newest Claude 4.6 Sonnet model via AWS Bedrock. Delivers enhanced performance across coding, analysis, and complex reasoning tasks with improved speed and efficiency."
4018
+ },
3965
4019
  {
3966
4020
  id: ChatModels.CLAUDE_4_6_OPUS_BEDROCK,
3967
4021
  type: "text",
@@ -7659,6 +7713,7 @@ function getLlmByModel(apiKeyTable, options) {
7659
7713
  case ChatModels.CLAUDE_4_5_SONNET_BEDROCK:
7660
7714
  case ChatModels.CLAUDE_4_5_HAIKU_BEDROCK:
7661
7715
  case ChatModels.CLAUDE_4_5_OPUS_BEDROCK:
7716
+ case ChatModels.CLAUDE_4_6_SONNET_BEDROCK:
7662
7717
  case ChatModels.CLAUDE_4_6_OPUS_BEDROCK:
7663
7718
  return new AnthropicBedrockBackend();
7664
7719
  case ChatModels.LLAMA3_INSTRUCT_8B_V1:
@@ -11757,9 +11812,16 @@ function findAutomaticFallback(originalModel, availableModels, apiKeyTable, logg
11757
11812
  "gemini-2.5-flash-preview-05-20": ["claude-3-5-haiku-20241022", "gpt-4o-mini", "claude-3-haiku-20240307"],
11758
11813
  "gemini-1.5-pro": ["claude-3-5-sonnet-20241022", "gpt-4o", "claude-3-opus-20240229"],
11759
11814
  "gemini-1.5-flash": ["claude-3-5-haiku-20241022", "gpt-4o-mini", "claude-3-haiku-20240307"],
11760
- // Claude 4.5/4.6 Opus models fallback to Sonnet 4.5
11761
- "claude-opus-4-5-20251101": ["claude-sonnet-4-5-20250929", "gpt-5", "claude-haiku-4-5-20251001"],
11762
- "claude-opus-4-6": ["claude-sonnet-4-5-20250929", "gpt-5", "claude-haiku-4-5-20251001"],
11815
+ // Claude 4.5/4.6 models fallback hierarchy
11816
+ "claude-opus-4-5-20251101": [
11817
+ "claude-sonnet-4-6",
11818
+ "claude-sonnet-4-5-20250929",
11819
+ "gpt-5",
11820
+ "claude-haiku-4-5-20251001"
11821
+ ],
11822
+ "claude-opus-4-6": ["claude-sonnet-4-6", "claude-sonnet-4-5-20250929", "gpt-5", "claude-haiku-4-5-20251001"],
11823
+ "claude-sonnet-4-6": ["claude-sonnet-4-5-20250929", "claude-opus-4-5-20251101", "gpt-5"],
11824
+ "claude-sonnet-4-5-20250929": ["claude-sonnet-4-6", "claude-haiku-4-5-20251001", "gpt-5"],
11763
11825
  // Claude models fallback to other Claude models or GPT
11764
11826
  "claude-3-5-sonnet-20241022": ["claude-3-opus-20240229", "gpt-4o", "claude-3-sonnet-20240229"],
11765
11827
  "claude-3-opus-20240229": ["claude-3-5-sonnet-20241022", "gpt-4o", "claude-3-sonnet-20240229"],
@@ -11769,7 +11831,7 @@ function findAutomaticFallback(originalModel, availableModels, apiKeyTable, logg
11769
11831
  };
11770
11832
  const preferences = fallbackPreferences[originalModel.id] || [];
11771
11833
  if (preferences.length === 0) {
11772
- preferences.push("claude-sonnet-4-5-20250929", "gpt-5", "claude-haiku-4-5-20251001");
11834
+ preferences.push("claude-sonnet-4-6", "claude-sonnet-4-5-20250929", "gpt-5", "claude-haiku-4-5-20251001");
11773
11835
  }
11774
11836
  for (const modelId of preferences) {
11775
11837
  const fallbackModel = availableModels.find((m) => m.id === modelId);
@@ -7,11 +7,11 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-3SPW5FYJ.js";
10
+ } from "./chunk-PV6PZFPC.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-NI22LIK3.js";
14
+ } from "./chunk-PLA2VBQW.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  import { z } from "zod";
@@ -3,7 +3,7 @@ import {
3
3
  fetchLatestVersion,
4
4
  forceCheckForUpdate,
5
5
  package_default
6
- } from "../chunk-WVFOWKNW.js";
6
+ } from "../chunk-BXNVLTPU.js";
7
7
 
8
8
  // src/commands/doctorCommand.ts
9
9
  import { execSync } from "child_process";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  forceCheckForUpdate,
4
4
  package_default
5
- } from "../chunk-WVFOWKNW.js";
5
+ } from "../chunk-BXNVLTPU.js";
6
6
 
7
7
  // src/commands/updateCommand.ts
8
8
  import { execSync } from "child_process";
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-ERV5G6MX.js";
6
- import "./chunk-3SPW5FYJ.js";
7
- import "./chunk-NI22LIK3.js";
5
+ } from "./chunk-S6AUIWWB.js";
6
+ import "./chunk-PV6PZFPC.js";
7
+ import "./chunk-PLA2VBQW.js";
8
8
  import "./chunk-PFBYGCOW.js";
9
9
  export {
10
10
  createFabFile,