@bike4mind/cli 0.2.29-ja-fix-github-slack-notify-non-subscriber-filtering.18913 → 0.2.29-ja-feat-slack-direct-react-agent.18921

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.
@@ -7,7 +7,7 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-RMXZWMAY.js";
10
+ } from "./chunk-I6UMBQ3N.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
@@ -6843,6 +6843,24 @@ var OpenAIBackend = class {
6843
6843
  tool_calls: msg.tool_calls
6844
6844
  };
6845
6845
  }
6846
+ if (msg.role === "assistant" && Array.isArray(msg.content)) {
6847
+ const contentTypes = msg.content.map((b) => b.type);
6848
+ if (contentTypes.includes("tool_use")) {
6849
+ this.logger.error("[OpenAI formatMessages] Anthropic tool_use blocks detected \u2014 will cause 400 error", {
6850
+ model,
6851
+ contentTypes
6852
+ });
6853
+ }
6854
+ }
6855
+ if (msg.role === "user" && Array.isArray(msg.content)) {
6856
+ const contentTypes = msg.content.map((b) => b.type);
6857
+ if (contentTypes.includes("tool_result")) {
6858
+ this.logger.error("[OpenAI formatMessages] Anthropic tool_result blocks detected \u2014 will cause 400 error", {
6859
+ model,
6860
+ contentTypes
6861
+ });
6862
+ }
6863
+ }
6846
6864
  return msg;
6847
6865
  });
6848
6866
  return isO1Model ? formattedMessages : [systemMessage, ...formattedMessages];
@@ -6,7 +6,7 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-RMXZWMAY.js";
9
+ } from "./chunk-I6UMBQ3N.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-RMXZWMAY.js";
5
+ } from "./chunk-I6UMBQ3N.js";
6
6
  import {
7
7
  CompletionApiUsageTransaction,
8
8
  GenericCreditDeductTransaction,
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-XOTWLDQT.js";
6
- import "./chunk-RMXZWMAY.js";
5
+ } from "./chunk-5QW6NKWM.js";
6
+ import "./chunk-I6UMBQ3N.js";
7
7
  import "./chunk-FKJTU7KU.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  getEffectiveApiKey,
6
6
  getOpenWeatherKey,
7
7
  getSerperKey
8
- } from "./chunk-533OGVA7.js";
8
+ } from "./chunk-ZJTOVY35.js";
9
9
  import {
10
10
  ConfigStore,
11
11
  logger
@@ -14,8 +14,8 @@ import {
14
14
  selectActiveBackgroundAgents,
15
15
  useCliStore
16
16
  } from "./chunk-TVW4ZESU.js";
17
- import "./chunk-HXRGW67O.js";
18
- import "./chunk-XOTWLDQT.js";
17
+ import "./chunk-ZZ2U2DXH.js";
18
+ import "./chunk-5QW6NKWM.js";
19
19
  import {
20
20
  BFLImageService,
21
21
  BaseStorage,
@@ -27,7 +27,7 @@ import {
27
27
  OpenAIBackend,
28
28
  OpenAIImageService,
29
29
  XAIImageService
30
- } from "./chunk-RMXZWMAY.js";
30
+ } from "./chunk-I6UMBQ3N.js";
31
31
  import {
32
32
  AiEvents,
33
33
  ApiKeyEvents,
@@ -3630,6 +3630,11 @@ Remember: You are an autonomous AGENT. Act independently and solve problems proa
3630
3630
  appendToolMessages(messages, toolUse, observation, thinkingBlocks) {
3631
3631
  const params = this.parseToolArguments(toolUse.arguments);
3632
3632
  const msgToolCallId = `${toolUse.name}_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
3633
+ this.context.logger.info("[ReActAgent] appendToolMessages \u2014 using Anthropic tool_use format", {
3634
+ model: this.context.model,
3635
+ toolName: toolUse.name,
3636
+ toolCallId: msgToolCallId
3637
+ });
3633
3638
  const assistantContent = [
3634
3639
  ...thinkingBlocks,
3635
3640
  {
@@ -13800,7 +13805,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
13800
13805
  // package.json
13801
13806
  var package_default = {
13802
13807
  name: "@bike4mind/cli",
13803
- version: "0.2.29-ja-fix-github-slack-notify-non-subscriber-filtering.18913+ba6c13dda",
13808
+ version: "0.2.29-ja-feat-slack-direct-react-agent.18921+e32d7600b",
13804
13809
  type: "module",
13805
13810
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
13806
13811
  license: "UNLICENSED",
@@ -13914,10 +13919,10 @@ var package_default = {
13914
13919
  },
13915
13920
  devDependencies: {
13916
13921
  "@bike4mind/agents": "0.1.0",
13917
- "@bike4mind/common": "2.50.1-ja-fix-github-slack-notify-non-subscriber-filtering.18913+ba6c13dda",
13918
- "@bike4mind/mcp": "1.29.1-ja-fix-github-slack-notify-non-subscriber-filtering.18913+ba6c13dda",
13919
- "@bike4mind/services": "2.48.1-ja-fix-github-slack-notify-non-subscriber-filtering.18913+ba6c13dda",
13920
- "@bike4mind/utils": "2.5.1-ja-fix-github-slack-notify-non-subscriber-filtering.18913+ba6c13dda",
13922
+ "@bike4mind/common": "2.50.1-ja-feat-slack-direct-react-agent.18921+e32d7600b",
13923
+ "@bike4mind/mcp": "1.29.1-ja-feat-slack-direct-react-agent.18921+e32d7600b",
13924
+ "@bike4mind/services": "2.48.1-ja-feat-slack-direct-react-agent.18921+e32d7600b",
13925
+ "@bike4mind/utils": "2.5.1-ja-feat-slack-direct-react-agent.18921+e32d7600b",
13921
13926
  "@types/better-sqlite3": "^7.6.13",
13922
13927
  "@types/diff": "^5.0.9",
13923
13928
  "@types/jsonwebtoken": "^9.0.4",
@@ -13935,7 +13940,7 @@ var package_default = {
13935
13940
  optionalDependencies: {
13936
13941
  "@vscode/ripgrep": "^1.17.0"
13937
13942
  },
13938
- gitHead: "ba6c13dda8decbcec22ad18c1dbf088b98363cf8"
13943
+ gitHead: "e32d7600b097c4b768cd48d876dcd292434fd8e3"
13939
13944
  };
13940
13945
 
13941
13946
  // src/config/constants.ts
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  findMostSimilarMemento,
4
4
  getRelevantMementos
5
- } from "./chunk-533OGVA7.js";
6
- import "./chunk-RMXZWMAY.js";
5
+ } from "./chunk-ZJTOVY35.js";
6
+ import "./chunk-I6UMBQ3N.js";
7
7
  import "./chunk-FKJTU7KU.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
@@ -134,7 +134,7 @@ import {
134
134
  validateMermaidSyntax,
135
135
  warmUpSettingsCache,
136
136
  withRetry
137
- } from "./chunk-RMXZWMAY.js";
137
+ } from "./chunk-I6UMBQ3N.js";
138
138
  import "./chunk-FKJTU7KU.js";
139
139
  import {
140
140
  Logger,
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  SubtractCreditsSchema,
4
4
  subtractCredits
5
- } from "./chunk-HXRGW67O.js";
6
- import "./chunk-RMXZWMAY.js";
5
+ } from "./chunk-ZZ2U2DXH.js";
6
+ import "./chunk-I6UMBQ3N.js";
7
7
  import "./chunk-FKJTU7KU.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "0.2.29-ja-fix-github-slack-notify-non-subscriber-filtering.18913+ba6c13dda",
3
+ "version": "0.2.29-ja-feat-slack-direct-react-agent.18921+e32d7600b",
4
4
  "type": "module",
5
5
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
6
6
  "license": "UNLICENSED",
@@ -114,10 +114,10 @@
114
114
  },
115
115
  "devDependencies": {
116
116
  "@bike4mind/agents": "0.1.0",
117
- "@bike4mind/common": "2.50.1-ja-fix-github-slack-notify-non-subscriber-filtering.18913+ba6c13dda",
118
- "@bike4mind/mcp": "1.29.1-ja-fix-github-slack-notify-non-subscriber-filtering.18913+ba6c13dda",
119
- "@bike4mind/services": "2.48.1-ja-fix-github-slack-notify-non-subscriber-filtering.18913+ba6c13dda",
120
- "@bike4mind/utils": "2.5.1-ja-fix-github-slack-notify-non-subscriber-filtering.18913+ba6c13dda",
117
+ "@bike4mind/common": "2.50.1-ja-feat-slack-direct-react-agent.18921+e32d7600b",
118
+ "@bike4mind/mcp": "1.29.1-ja-feat-slack-direct-react-agent.18921+e32d7600b",
119
+ "@bike4mind/services": "2.48.1-ja-feat-slack-direct-react-agent.18921+e32d7600b",
120
+ "@bike4mind/utils": "2.5.1-ja-feat-slack-direct-react-agent.18921+e32d7600b",
121
121
  "@types/better-sqlite3": "^7.6.13",
122
122
  "@types/diff": "^5.0.9",
123
123
  "@types/jsonwebtoken": "^9.0.4",
@@ -135,5 +135,5 @@
135
135
  "optionalDependencies": {
136
136
  "@vscode/ripgrep": "^1.17.0"
137
137
  },
138
- "gitHead": "ba6c13dda8decbcec22ad18c1dbf088b98363cf8"
138
+ "gitHead": "e32d7600b097c4b768cd48d876dcd292434fd8e3"
139
139
  }