@bike4mind/cli 0.2.31-update-default-agent-models.19589 → 0.2.31

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,6 +1,6 @@
1
1
  ---
2
2
  description: Fast codebase exploration and search
3
- model: claude-haiku-4-5-20251001
3
+ model: claude-3-5-haiku-20241022
4
4
  allowed-tools:
5
5
  - file_read
6
6
  - grep_search
@@ -18,9 +18,9 @@ denied-tools:
18
18
  - blog_edit
19
19
  - blog_draft
20
20
  max-iterations:
21
- quick: 4
22
- medium: 10
23
- very_thorough: 20
21
+ quick: 2
22
+ medium: 5
23
+ very_thorough: 10
24
24
  default-thoroughness: medium
25
25
  ---
26
26
 
@@ -52,7 +52,4 @@ Provide a clear summary including:
52
52
  2. Key insights or observations
53
53
  3. Relevant code locations with file:line references
54
54
 
55
- ## Iteration Budget
56
- You have **$MAX_ITERATIONS iterations** for this task (thoroughness: $THOROUGHNESS). Plan your tool usage to complete within this budget. Prioritize the most impactful actions first.
57
-
58
55
  Be thorough but concise. Your summary will be used by the main agent.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Task breakdown and implementation planning
3
- model: claude-opus-4-6
3
+ model: claude-3-5-haiku-20241022
4
4
  allowed-tools:
5
5
  - file_read
6
6
  - grep_search
@@ -15,9 +15,9 @@ denied-tools:
15
15
  - web_search
16
16
  - weather_info
17
17
  max-iterations:
18
- quick: 6
19
- medium: 14
20
- very_thorough: 24
18
+ quick: 3
19
+ medium: 7
20
+ very_thorough: 12
21
21
  default-thoroughness: medium
22
22
  ---
23
23
 
@@ -48,7 +48,4 @@ Provide a structured plan:
48
48
  ### Risks & Considerations
49
49
  - Potential issues to watch for
50
50
 
51
- ## Iteration Budget
52
- You have **$MAX_ITERATIONS iterations** for this task (thoroughness: $THOROUGHNESS). Plan your tool usage to complete within this budget. Prioritize the most impactful actions first.
53
-
54
51
  Be specific about files and locations. Your plan will be executed by the main agent.
@@ -14,9 +14,9 @@ denied-tools:
14
14
  - web_search
15
15
  - weather_info
16
16
  max-iterations:
17
- quick: 6
18
- medium: 16
19
- very_thorough: 30
17
+ quick: 3
18
+ medium: 8
19
+ very_thorough: 15
20
20
  default-thoroughness: medium
21
21
  ---
22
22
 
@@ -47,7 +47,4 @@ Provide actionable feedback:
47
47
  ### Positive Observations
48
48
  - What's done well (optional)
49
49
 
50
- ## Iteration Budget
51
- You have **$MAX_ITERATIONS iterations** for this task (thoroughness: $THOROUGHNESS). Plan your tool usage to complete within this budget. Prioritize the most impactful actions first.
52
-
53
50
  Be specific with file paths and line numbers. Focus on actionable feedback.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Run and analyze test suites, identify failures, suggest fixes
3
- model: claude-sonnet-4-5-20250929
3
+ model: claude-3-5-haiku-20241022
4
4
  allowed-tools:
5
5
  - bash_execute
6
6
  - file_read
@@ -17,9 +17,9 @@ denied-tools:
17
17
  - blog_edit
18
18
  - blog_draft
19
19
  max-iterations:
20
- quick: 4
21
- medium: 10
22
- very_thorough: 16
20
+ quick: 2
21
+ medium: 5
22
+ very_thorough: 8
23
23
  default-thoroughness: medium
24
24
  ---
25
25
 
@@ -53,7 +53,4 @@ Provide a structured summary:
53
53
  3. **Root Cause**: Likely cause of each failure
54
54
  4. **Suggested Fixes**: Concrete code changes to fix failures
55
55
 
56
- ## Iteration Budget
57
- You have **$MAX_ITERATIONS iterations** for this task (thoroughness: $THOROUGHNESS). Plan your tool usage to complete within this budget. Prioritize the most impactful actions first.
58
-
59
56
  Be precise with file:line references. Your summary will be used by the main agent.
@@ -7,7 +7,7 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-PV6PZFPC.js";
10
+ } from "./chunk-UAJBCJZ2.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
@@ -6,7 +6,7 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-PV6PZFPC.js";
9
+ } from "./chunk-UAJBCJZ2.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-PV6PZFPC.js";
5
+ } from "./chunk-UAJBCJZ2.js";
6
6
  import {
7
7
  CompletionApiUsageTransaction,
8
8
  GenericCreditDeductTransaction,
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@bike4mind/cli",
6
- version: "0.2.31-update-default-agent-models.19589+371275dde",
6
+ version: "0.2.31",
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-update-default-agent-models.19589+371275dde",
118
- "@bike4mind/mcp": "1.31.1-update-default-agent-models.19589+371275dde",
119
- "@bike4mind/services": "2.50.1-update-default-agent-models.19589+371275dde",
120
- "@bike4mind/utils": "2.7.1-update-default-agent-models.19589+371275dde",
117
+ "@bike4mind/common": "2.53.0",
118
+ "@bike4mind/mcp": "1.32.0",
119
+ "@bike4mind/services": "2.51.0",
120
+ "@bike4mind/utils": "2.8.0",
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: "371275ddeeac5e2fd4bc387b34af997850e56c6d"
141
+ gitHead: "cc6a4f1f1972a8d27722f11cae762e55fd47a912"
142
142
  };
143
143
 
144
144
  // src/utils/updateChecker.ts
@@ -3107,12 +3107,21 @@ IMPORTANT! Only when someone asks, remember that you are specifically the ${mode
3107
3107
  const content = response.content[i];
3108
3108
  if ("text" in content) {
3109
3109
  streamedText.push(content.text);
3110
+ this.logger.debug("[AnthropicBackend] Text block extracted", {
3111
+ blockIndex: i,
3112
+ textLength: content.text.length
3113
+ });
3110
3114
  } else if ("type" in content) {
3111
3115
  if (content.type === "tool_use") {
3112
3116
  func[i] ||= {};
3113
3117
  func[i].name = content.name;
3114
3118
  func[i].id = content.id;
3115
3119
  func[i].parameters = JSON.stringify(content.input || {});
3120
+ } else if (content.type === "thinking") {
3121
+ this.logger.warn("[AnthropicBackend] Unexpected thinking block in response", {
3122
+ blockIndex: i,
3123
+ thinkingLength: content.thinking?.length || 0
3124
+ });
3116
3125
  }
3117
3126
  }
3118
3127
  }
@@ -4073,12 +4082,9 @@ var AnthropicBedrockBackend = class extends BaseBedrockBackend {
4073
4082
  const modelIdentity = `IMPORTANT! Only when someone asks, remember that you are specifically the ${model} model.`;
4074
4083
  systemMessage = systemMessage ? `${systemMessage}
4075
4084
  ${modelIdentity}` : modelIdentity;
4076
- console.log(`[AnthropicBedrockBackend] Preparing payload for model: ${model}`);
4077
4085
  const hasVendorPrefix = model.includes(":") || model.startsWith("global.") || model.startsWith("us.");
4078
4086
  const modelId = hasVendorPrefix ? model : `anthropic.${model}`;
4079
- console.log(`[AnthropicBedrockBackend] Using modelId: ${modelId}`);
4080
4087
  const maxTokens = typeof options.maxTokens === "number" ? options.maxTokens : 4096;
4081
- console.log(`[AnthropicBedrockBackend] Using maxTokens: ${maxTokens}`);
4082
4088
  const body = {
4083
4089
  anthropic_version: "bedrock-2023-05-31",
4084
4090
  max_tokens: maxTokens,
@@ -4107,7 +4113,6 @@ ${modelIdentity}` : modelIdentity;
4107
4113
  type: "enabled",
4108
4114
  budget_tokens: thinkingBudget
4109
4115
  };
4110
- console.log(`[AnthropicBedrockBackend] Enabling thinking with budget: ${thinkingBudget}, max_tokens: ${body.max_tokens}, temperature: ${body.temperature}, top_p: ${body.top_p}`);
4111
4116
  }
4112
4117
  }
4113
4118
  if (options.questMaster && supportsThinking) {
@@ -4119,21 +4124,7 @@ ${modelIdentity}` : modelIdentity;
4119
4124
  type: "enabled",
4120
4125
  budget_tokens: thinkingBudget
4121
4126
  };
4122
- console.log(`[AnthropicBedrockBackend] QuestMaster enabled thinking with budget: ${thinkingBudget}, max_tokens: ${body.max_tokens}, temperature: ${body.temperature}, top_p: ${body.top_p}`);
4123
4127
  }
4124
- console.log(`[AnthropicBedrockBackend] Request payload: ${JSON.stringify({
4125
- modelId,
4126
- options: {
4127
- maxTokens,
4128
- messageCount: filteredMessages.length,
4129
- hasSystemMessage: !!systemMessage,
4130
- hasTools: !!options.tools,
4131
- temperature: options.temperature,
4132
- topP: options.topP
4133
- }
4134
- }, null, 2)}`);
4135
- const bodyStr = JSON.stringify(body);
4136
- console.log(`[AnthropicBedrockBackend] Request body: ${bodyStr.substring(0, 1e3)}${bodyStr.length > 1e3 ? "..." : ""}`);
4137
4128
  return {
4138
4129
  modelId,
4139
4130
  contentType: "application/json",
@@ -4191,6 +4182,13 @@ ${modelIdentity}` : modelIdentity;
4191
4182
  translateChunk(model, chunk) {
4192
4183
  try {
4193
4184
  const response = chunk;
4185
+ const thinkingBlocks = response.content.filter((c) => c.type === "thinking");
4186
+ if (thinkingBlocks.length > 0) {
4187
+ console.warn(`[AnthropicBedrockBackend] Unexpected thinking blocks in response`, {
4188
+ thinkingBlockCount: thinkingBlocks.length,
4189
+ thinkingLengths: thinkingBlocks.map((b) => b.thinking?.length || 0)
4190
+ });
4191
+ }
4194
4192
  const textContent = response.content.filter((item) => item.type === "text").map((item) => item.text || "").join("");
4195
4193
  const toolUseBlocks = response.content.filter((item) => item.type === "tool_use");
4196
4194
  let choice;
@@ -3,7 +3,7 @@ import {
3
3
  fetchLatestVersion,
4
4
  forceCheckForUpdate,
5
5
  package_default
6
- } from "../chunk-SB53O27R.js";
6
+ } from "../chunk-PAE3OMY2.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-SB53O27R.js";
5
+ } from "../chunk-PAE3OMY2.js";
6
6
 
7
7
  // src/commands/updateCommand.ts
8
8
  import { execSync } from "child_process";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-S6AUIWWB.js";
6
- import "./chunk-PV6PZFPC.js";
5
+ } from "./chunk-4R42FAEH.js";
6
+ import "./chunk-UAJBCJZ2.js";
7
7
  import "./chunk-PLA2VBQW.js";
8
8
  import "./chunk-PFBYGCOW.js";
9
9
  export {