squad-kit 0.9.0 → 0.9.1
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/CHANGELOG.md +7 -0
- package/dist/cli.js +13 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.9.1] — 2026-05-04
|
|
11
|
+
|
|
12
|
+
### Bug fixes
|
|
13
|
+
|
|
14
|
+
- Anthropic scout and draft attach extended thinking so Opus 4.7+ avoids
|
|
15
|
+
failed calls when the SDK would send incompatible temperature overrides.
|
|
16
|
+
|
|
10
17
|
## [0.9.0] — 2026-05-04
|
|
11
18
|
|
|
12
19
|
### What's new
|
package/dist/cli.js
CHANGED
|
@@ -4218,6 +4218,7 @@ var ScoutOutputSchema = z4.object({
|
|
|
4218
4218
|
});
|
|
4219
4219
|
async function runScout(input5) {
|
|
4220
4220
|
const maxTokens = input5.maxTokens ?? 2048;
|
|
4221
|
+
const anthropicThinking = input5.provider === "anthropic" ? { anthropic: { thinking: { type: "enabled", budgetTokens: 1024 } } } : void 0;
|
|
4221
4222
|
let attempt = 0;
|
|
4222
4223
|
while (true) {
|
|
4223
4224
|
try {
|
|
@@ -4227,7 +4228,8 @@ async function runScout(input5) {
|
|
|
4227
4228
|
prompt: input5.userPrompt,
|
|
4228
4229
|
schema: ScoutOutputSchema,
|
|
4229
4230
|
maxTokens,
|
|
4230
|
-
abortSignal: input5.abort
|
|
4231
|
+
abortSignal: input5.abort,
|
|
4232
|
+
...anthropicThinking ? { providerOptions: anthropicThinking } : {}
|
|
4231
4233
|
});
|
|
4232
4234
|
const u = usageFromLanguageModelStep(usage, providerMetadata);
|
|
4233
4235
|
input5.budget.recordUsage(u);
|
|
@@ -4982,6 +4984,15 @@ async function runDraftStage(input5) {
|
|
|
4982
4984
|
maxRetries: 0,
|
|
4983
4985
|
maxTokens: maxOut.current,
|
|
4984
4986
|
abortSignal: input5.abort,
|
|
4987
|
+
// ai@4.x defaults `temperature: 0` (prepareCallSettings) and @ai-sdk/anthropic@1.x
|
|
4988
|
+
// always passes it to the wire unless extended thinking is on. Anthropic Opus 4.7+
|
|
4989
|
+
// rejects temperature entirely. Enabling thinking on Anthropic strips temperature
|
|
4990
|
+
// via the adapter and gives the planner reasoning budget for free.
|
|
4991
|
+
...input5.provider === "anthropic" && {
|
|
4992
|
+
providerOptions: {
|
|
4993
|
+
anthropic: { thinking: { type: "enabled", budgetTokens: 2048 } }
|
|
4994
|
+
}
|
|
4995
|
+
},
|
|
4985
4996
|
onChunk: ({ chunk }) => {
|
|
4986
4997
|
if (chunk.type === "text-delta") {
|
|
4987
4998
|
accumulatedText += chunk.textDelta;
|
|
@@ -5192,6 +5203,7 @@ async function runPlanner(input5) {
|
|
|
5192
5203
|
try {
|
|
5193
5204
|
const scoutRes = await runScout({
|
|
5194
5205
|
model: scoutModel,
|
|
5206
|
+
provider: input5.provider,
|
|
5195
5207
|
systemPrompt: input5.scoutSystemPrompt,
|
|
5196
5208
|
userPrompt: input5.userPrompt,
|
|
5197
5209
|
budget: input5.budget,
|