@bike4mind/cli 0.2.31-update-default-agent-models.19588 → 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.
- package/dist/agents/defaults/explore.md +4 -7
- package/dist/agents/defaults/plan.md +4 -7
- package/dist/agents/defaults/review.md +3 -6
- package/dist/agents/defaults/test.md +4 -7
- package/dist/{chunk-S6AUIWWB.js → chunk-4R42FAEH.js} +1 -1
- package/dist/{chunk-DQHCE3TN.js → chunk-BD56DFFM.js} +1 -1
- package/dist/{chunk-4P27WV34.js → chunk-C7LKV7P2.js} +1 -1
- package/dist/{chunk-SXJBXHDD.js → chunk-PAE3OMY2.js} +6 -6
- package/dist/{chunk-PV6PZFPC.js → chunk-UAJBCJZ2.js} +16 -18
- package/dist/commands/doctorCommand.js +1 -1
- package/dist/commands/updateCommand.js +1 -1
- package/dist/{create-PVJSCD5H.js → create-3D6BIWBM.js} +2 -2
- package/dist/index.js +744 -208
- package/dist/{mementoService-RDPCVXWF.js → mementoService-3GQOTWXQ.js} +2 -2
- package/dist/{src-DCF72PTU.js → src-FO2GDFVW.js} +1 -1
- package/dist/{subtractCredits-K4PWRUF4.js → subtractCredits-DXBZDEAF.js} +2 -2
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Fast codebase exploration and search
|
|
3
|
-
model: claude-
|
|
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:
|
|
22
|
-
medium:
|
|
23
|
-
very_thorough:
|
|
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-
|
|
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:
|
|
19
|
-
medium:
|
|
20
|
-
very_thorough:
|
|
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:
|
|
18
|
-
medium:
|
|
19
|
-
very_thorough:
|
|
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-
|
|
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:
|
|
21
|
-
medium:
|
|
22
|
-
very_thorough:
|
|
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.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@bike4mind/cli",
|
|
6
|
-
version: "0.2.31
|
|
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.
|
|
118
|
-
"@bike4mind/mcp": "1.
|
|
119
|
-
"@bike4mind/services": "2.
|
|
120
|
-
"@bike4mind/utils": "2.
|
|
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: "
|
|
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;
|