Skip to content

Commit 28b681d

Browse files
committed
feat: release version 2.0.26 with enhanced features
1 parent 6433c58 commit 28b681d

18 files changed

Lines changed: 865 additions & 1175 deletions

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
# CoStrict Change Log
22

3+
## [2.0.26]
4+
5+
- Add multiple-choice question tool for structured user input collection
6+
- Enhance CoStrict provider with parallel tool calls support
7+
- Add MCP support to workflow modes (requirements, design, tasks, testing, code)
8+
- Improve terminal running state detection with platform-specific delays
9+
- Update architect mode instructions to use /plans directory
10+
- Add plans directory to .gitignore
11+
- Fix Gemini transformer to gracefully skip unsupported content blocks
12+
- Update system prompts and localization for multiple-choice feature
13+
- Update apply_diff BUFFER_LINES
14+
- Sync roocode [last commit](https://github.com/zgsm-ai/costrict/commit/24eb6ae984cf2fb4300839f4e615393bd90918ff)
15+
316
## [2.0.25]
417

518
- Refactor auto-completion
619
- Sync roocode [last commit](https://github.com/zgsm-ai/costrict/commit/c103a4a639c54c67fb3e0210a0fe338c18496154)
7-
- Fix known issues
820

921
## [2.0.24]
1022

src/api/providers/zgsm.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ export class ZgsmAiHandler extends BaseProvider implements SingleCompletionHandl
418418
content: systemPrompt,
419419
}
420420

421-
const requestOptions: OpenAI.Chat.Completions.ChatCompletionCreateParamsNonStreaming = {
421+
const requestOptions: OpenAI.Chat.Completions.ChatCompletionCreateParamsNonStreaming & { extra_body: any } = {
422422
model: modelId,
423423
messages: isDeepseekReasoner
424424
? convertToR1Format([{ role: "user", content: systemPrompt }, ...messages])
@@ -430,6 +430,9 @@ export class ZgsmAiHandler extends BaseProvider implements SingleCompletionHandl
430430
...(metadata?.toolProtocol === "native" && {
431431
parallel_tool_calls: metadata.parallelToolCalls ?? false,
432432
}),
433+
extra_body: {
434+
prompt_mode: metadata?.mode,
435+
},
433436
}
434437

435438
this.addMaxTokensIfNeeded(requestOptions, modelInfo)

src/core/diff/strategies/multi-file-search-replace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { addLineNumbers, everyLineHasLineNumbers, stripLineNumbers } from "../..
55
import { ToolUse, DiffStrategy, DiffResult } from "../../../shared/tools"
66
import { normalizeString } from "../../../utils/text-normalization"
77

8-
const BUFFER_LINES = 40 // Number of extra context lines to show before and after matches
8+
const BUFFER_LINES = 1000 // Number of extra context lines to show before and after matches
99

1010
function getSimilarity(original: string, search: string): number {
1111
// Empty searches are no longer supported

src/core/diff/strategies/multi-search-replace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { addLineNumbers, everyLineHasLineNumbers, stripLineNumbers } from "../..
88
import { ToolUse, DiffStrategy, DiffResult } from "../../../shared/tools"
99
import { normalizeString } from "../../../utils/text-normalization"
1010

11-
const BUFFER_LINES = 40 // Number of extra context lines to show before and after matches
11+
const BUFFER_LINES = 1000 // Number of extra context lines to show before and after matches
1212

1313
function getSimilarity(original: string, search: string): number {
1414
// Empty searches are no longer supported

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/architect-mode-prompt.snap

Lines changed: 65 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)