@bike4mind/cli 0.2.11 → 0.2.12-ja-fix-slack-github-repo-matching.17406

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.
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -536,6 +536,15 @@ var AnthropicBackend = class {
536
536
  };
537
537
  if (options.tools?.length) {
538
538
  apiParams.tools = this.formatTools(options.tools);
539
+ if (options.tool_choice) {
540
+ if (options.tool_choice === "auto") {
541
+ apiParams.tool_choice = { type: "auto" };
542
+ } else if (options.tool_choice === "required") {
543
+ apiParams.tool_choice = { type: "any" };
544
+ } else if (typeof options.tool_choice === "object" && options.tool_choice.function?.name) {
545
+ apiParams.tool_choice = { type: "tool", name: options.tool_choice.function.name };
546
+ }
547
+ }
539
548
  }
540
549
  const modelInfo = await this.getModelInfo();
541
550
  const currentModelInfo = modelInfo.find((m) => m.id === model);
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-BU5TP3BH.js";
5
+ } from "./chunk-DYKGIB6P.js";
6
6
  import {
7
7
  GenericCreditDeductTransaction,
8
8
  ImageEditUsageTransaction,
@@ -7,7 +7,7 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-BU5TP3BH.js";
10
+ } from "./chunk-DYKGIB6P.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
File without changes
File without changes
@@ -6,7 +6,7 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-BU5TP3BH.js";
9
+ } from "./chunk-DYKGIB6P.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-RJFNIMVH.js";
6
- import "./chunk-BU5TP3BH.js";
5
+ } from "./chunk-NSMA3BD2.js";
6
+ import "./chunk-DYKGIB6P.js";
7
7
  import "./chunk-AMDXHL6S.js";
8
8
  import "./chunk-OHR7UCTC.js";
9
9
  import "./chunk-PDX44BCA.js";
File without changes
package/dist/index.js CHANGED
@@ -4,9 +4,9 @@ import {
4
4
  getEffectiveApiKey,
5
5
  getOpenWeatherKey,
6
6
  getSerperKey
7
- } from "./chunk-ZHCX7BLB.js";
8
- import "./chunk-ID4NS6KF.js";
9
- import "./chunk-RJFNIMVH.js";
7
+ } from "./chunk-SRTCGY6B.js";
8
+ import "./chunk-E62KBSGA.js";
9
+ import "./chunk-NSMA3BD2.js";
10
10
  import {
11
11
  BFLImageService,
12
12
  BaseStorage,
@@ -15,7 +15,7 @@ import {
15
15
  OpenAIBackend,
16
16
  OpenAIImageService,
17
17
  XAIImageService
18
- } from "./chunk-BU5TP3BH.js";
18
+ } from "./chunk-DYKGIB6P.js";
19
19
  import {
20
20
  Logger
21
21
  } from "./chunk-AMDXHL6S.js";
@@ -3106,7 +3106,8 @@ ${options.context}` : this.getSystemPrompt()
3106
3106
  stream: false,
3107
3107
  tools: this.context.tools,
3108
3108
  maxTokens,
3109
- temperature
3109
+ temperature,
3110
+ tool_choice: this.context.toolChoice
3110
3111
  },
3111
3112
  async (texts, completionInfo) => {
3112
3113
  for (const text of texts) {
@@ -11658,7 +11659,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
11658
11659
  // package.json
11659
11660
  var package_default = {
11660
11661
  name: "@bike4mind/cli",
11661
- version: "0.2.11",
11662
+ version: "0.2.12-ja-fix-slack-github-repo-matching.17406+5d49240d5",
11662
11663
  type: "module",
11663
11664
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
11664
11665
  license: "UNLICENSED",
@@ -11761,11 +11762,11 @@ var package_default = {
11761
11762
  zustand: "^4.5.4"
11762
11763
  },
11763
11764
  devDependencies: {
11764
- "@bike4mind/agents": "workspace:*",
11765
- "@bike4mind/common": "workspace:*",
11766
- "@bike4mind/mcp": "workspace:*",
11767
- "@bike4mind/services": "workspace:*",
11768
- "@bike4mind/utils": "workspace:*",
11765
+ "@bike4mind/agents": "0.1.0",
11766
+ "@bike4mind/common": "2.41.1-ja-fix-slack-github-repo-matching.17406+5d49240d5",
11767
+ "@bike4mind/mcp": "1.21.1-ja-fix-slack-github-repo-matching.17406+5d49240d5",
11768
+ "@bike4mind/services": "2.36.1-ja-fix-slack-github-repo-matching.17406+5d49240d5",
11769
+ "@bike4mind/utils": "2.1.6-ja-fix-slack-github-repo-matching.17406+5d49240d5",
11769
11770
  "@types/better-sqlite3": "^7.6.13",
11770
11771
  "@types/diff": "^5.0.9",
11771
11772
  "@types/jsonwebtoken": "^9.0.4",
@@ -11777,7 +11778,8 @@ var package_default = {
11777
11778
  tsx: "^4.21.0",
11778
11779
  typescript: "^5.9.3",
11779
11780
  vitest: "^3.2.4"
11780
- }
11781
+ },
11782
+ gitHead: "5d49240d53420bd5d87da8bb61429bff7817a455"
11781
11783
  };
11782
11784
 
11783
11785
  // src/config/constants.ts
File without changes
File without changes
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  findMostSimilarMemento,
4
4
  getRelevantMementos
5
- } from "./chunk-ZHCX7BLB.js";
6
- import "./chunk-BU5TP3BH.js";
5
+ } from "./chunk-SRTCGY6B.js";
6
+ import "./chunk-DYKGIB6P.js";
7
7
  import "./chunk-AMDXHL6S.js";
8
8
  import "./chunk-OHR7UCTC.js";
9
9
  import "./chunk-PDX44BCA.js";
File without changes
@@ -120,7 +120,7 @@ import {
120
120
  validateMermaidSyntax,
121
121
  warmUpSettingsCache,
122
122
  withRetry
123
- } from "./chunk-BU5TP3BH.js";
123
+ } from "./chunk-DYKGIB6P.js";
124
124
  import {
125
125
  Logger,
126
126
  NotificationDeduplicator,
File without changes
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  SubtractCreditsSchema,
4
4
  subtractCredits
5
- } from "./chunk-ID4NS6KF.js";
6
- import "./chunk-BU5TP3BH.js";
5
+ } from "./chunk-E62KBSGA.js";
6
+ import "./chunk-DYKGIB6P.js";
7
7
  import "./chunk-AMDXHL6S.js";
8
8
  import "./chunk-OHR7UCTC.js";
9
9
  import "./chunk-PDX44BCA.js";
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "0.2.11",
3
+ "version": "0.2.12-ja-fix-slack-github-repo-matching.17406+5d49240d5",
4
4
  "type": "module",
5
5
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
6
6
  "license": "UNLICENSED",
@@ -30,6 +30,15 @@
30
30
  "dist",
31
31
  "bin"
32
32
  ],
33
+ "scripts": {
34
+ "dev": "tsx src/index.tsx",
35
+ "build": "tsup",
36
+ "typecheck": "tsc --noEmit",
37
+ "test": "vitest run",
38
+ "test:watch": "vitest",
39
+ "start": "node dist/index.js",
40
+ "prepublishOnly": "pnpm build"
41
+ },
33
42
  "dependencies": {
34
43
  "@anthropic-ai/sdk": "^0.22.0",
35
44
  "@aws-sdk/client-apigatewaymanagementapi": "3.654.0",
@@ -94,6 +103,11 @@
94
103
  "zustand": "^4.5.4"
95
104
  },
96
105
  "devDependencies": {
106
+ "@bike4mind/agents": "0.1.0",
107
+ "@bike4mind/common": "2.41.1-ja-fix-slack-github-repo-matching.17406+5d49240d5",
108
+ "@bike4mind/mcp": "1.21.1-ja-fix-slack-github-repo-matching.17406+5d49240d5",
109
+ "@bike4mind/services": "2.36.1-ja-fix-slack-github-repo-matching.17406+5d49240d5",
110
+ "@bike4mind/utils": "2.1.6-ja-fix-slack-github-repo-matching.17406+5d49240d5",
97
111
  "@types/better-sqlite3": "^7.6.13",
98
112
  "@types/diff": "^5.0.9",
99
113
  "@types/jsonwebtoken": "^9.0.4",
@@ -104,19 +118,7 @@
104
118
  "tsup": "^8.5.1",
105
119
  "tsx": "^4.21.0",
106
120
  "typescript": "^5.9.3",
107
- "vitest": "^3.2.4",
108
- "@bike4mind/agents": "0.1.0",
109
- "@bike4mind/common": "2.41.0",
110
- "@bike4mind/mcp": "1.21.0",
111
- "@bike4mind/services": "2.36.0",
112
- "@bike4mind/utils": "2.1.5"
121
+ "vitest": "^3.2.4"
113
122
  },
114
- "scripts": {
115
- "dev": "tsx src/index.tsx",
116
- "build": "tsup",
117
- "typecheck": "tsc --noEmit",
118
- "test": "vitest run",
119
- "test:watch": "vitest",
120
- "start": "node dist/index.js"
121
- }
122
- }
123
+ "gitHead": "5d49240d53420bd5d87da8bb61429bff7817a455"
124
+ }