Skip to content

Commit 362efcc

Browse files
authored
feat: clean up branding and descriptions, optimize prompt, fix slash command context detection, update docs (#1330)
1 parent 841db2a commit 362efcc

21 files changed

Lines changed: 134 additions & 118 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ _Free • Open Source • Private Deployment_
4848
<table>
4949
<tr>
5050
<td align="center" width="25%">
51-
<b>🌟 CoStrict Cloud (Experimental)</b><br><br>
51+
<b>🌟 CoStrict Cloud</b><br><br>
5252
<a href="https://docs.costrict.ai/cli/product-characteristics/cloud">
5353
<img src="https://img.shields.io/badge/Cloud-Documentation-blue?style=for-the-badge" alt="Cloud Docs">
5454
</a>

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ English | [简体中文](./README.zh-CN.md)
4848
<table>
4949
<tr>
5050
<td align="center" width="25%">
51-
<b>🌟 CoStrict Cloud(实验性)</b><br><br>
51+
<b>🌟 CoStrict Cloud</b><br><br>
5252
<a href="https://docs.costrict.ai/cli/product-characteristics/cloud">
5353
<img src="https://img.shields.io/badge/Cloud-Documentation-blue?style=for-the-badge" alt="Cloud Docs">
5454
</a>

apps/vscode-nightly/package.nls.nightly.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extension.displayName": "CoStrict Nightly",
3-
"extension.displayName.long": "CoStrict Nightly (prev. Cline / RooCode with Code Review AI Coding Agent)",
4-
"extension.description": "CoStrict Nightly (prev. Cline / RooCode with Code Review AI Coding Agent)",
3+
"extension.displayName.long": "CoStrict Nightly",
4+
"extension.description": "CoStrict Nightly - strict AI coder for enterprises, quality first, including AI Agent, AI CodeReview, AI Completion.",
55
"views.contextMenu.label": "CoStrict Nightly",
66
"views.terminalMenu.label": "CoStrict Nightly",
77
"views.activitybar.title": "CoStrict Nightly",

src/__tests__/make-nightly-vsix.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ describe("make-nightly-vsix patchPackageJson", () => {
8585
<PackageManifest>
8686
<Metadata>
8787
<Identity Language="en-US" Id="zgsm-nightly" Version="3.0.0" Publisher="zgsm-ai" />
88-
<DisplayName>CoStrict (prev. Cline / RooCode with Code Review AI Coding Agent)</DisplayName>
89-
<Description xml:space="preserve">CoStrict (prev. Cline / RooCode with Code Review AI Coding Agent)</Description>
88+
<DisplayName>CoStrict</DisplayName>
89+
<Description xml:space="preserve">CoStrict - strict AI coder for enterprises, quality first, including AI Agent, AI CodeReview, AI Completion.</Description>
9090
</Metadata>
9191
</PackageManifest>`,
9292
)
@@ -95,13 +95,13 @@ describe("make-nightly-vsix patchPackageJson", () => {
9595

9696
const patchedManifest = fs.readFileSync(manifestPath, "utf8")
9797
expect(patchedManifest).toContain(
98-
"<DisplayName>CoStrict Nightly (prev. Cline / RooCode with Code Review AI Coding Agent)</DisplayName>",
98+
"<DisplayName>CoStrict Nightly</DisplayName>",
9999
)
100100
expect(patchedManifest).toContain(
101-
'<Description xml:space="preserve">CoStrict Nightly (prev. Cline / RooCode with Code Review AI Coding Agent)</Description>',
101+
'<Description xml:space="preserve">CoStrict Nightly - strict AI coder for enterprises, quality first, including AI Agent, AI CodeReview, AI Completion.</Description>',
102102
)
103103
expect(patchedManifest).not.toContain(
104-
"<DisplayName>CoStrict (prev. Cline / RooCode with Code Review AI Coding Agent)</DisplayName>",
104+
"<DisplayName>CoStrict</DisplayName>",
105105
)
106106
})
107107

src/api/providers/costrict.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class CostrictAiHandler extends BaseProvider implements SingleCompletionH
180180
}
181181
} catch (error) {
182182
this.logger.info(
183-
`[createMessage] getting new tokens failed \n\nuse old tokens: ${this.client?.apiKey} \n\n${error.message}`,
183+
`[createMessage] getting new tokens failed \n\nuse old tokens: ${(this.client?.apiKey || "").slice(0, 8)}******** \n\n${error.message}`,
184184
)
185185
}
186186
let requestOptions
@@ -216,7 +216,7 @@ export class CostrictAiHandler extends BaseProvider implements SingleCompletionH
216216
let responseIdTimestamp: number | undefined
217217
try {
218218
requestIdTimestamp = Date.now()
219-
this.logger.debug(`[RequestID ${requestOptions.model}]:`, requestId)
219+
this.logger.info(`[RequestID ${requestOptions.model}]:`, requestId)
220220

221221
if (metadata?.onRequestHeadersReady && typeof metadata.onRequestHeadersReady === "function") {
222222
metadata.onRequestHeadersReady(_headers)
@@ -231,7 +231,7 @@ export class CostrictAiHandler extends BaseProvider implements SingleCompletionH
231231
}),
232232
)
233233
.withResponse()
234-
this.logger.debug(`[ResponseID ${requestOptions.model}]:`, response.headers.get("x-request-id"))
234+
this.logger.info(`[ResponseID ${requestOptions.model}]:`, response.headers.get("x-request-id"))
235235
responseIdTimestamp = Date.now()
236236
if (isAuto) {
237237
selectedLLM = response.headers.get("x-select-llm") || ""
@@ -255,7 +255,7 @@ export class CostrictAiHandler extends BaseProvider implements SingleCompletionH
255255
}
256256

257257
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
258-
isDev && this.logger.info(`[ResponseID ${requestOptions.model} sse render start]:`, requestId)
258+
this.logger.info(`[ResponseID ${requestOptions.model} sse render start]:`, requestId)
259259

260260
// 6. Optimize stream processing - use batch processing and buffer
261261
yield* this.handleOptimizedStream(
@@ -339,7 +339,7 @@ export class CostrictAiHandler extends BaseProvider implements SingleCompletionH
339339
}
340340
}
341341
} finally {
342-
this.logger.debug(`[ResponseID ${requestOptions?.model ?? modelId} sse createMessage end]:`, requestId)
342+
this.logger.info(`[ResponseID ${requestOptions?.model ?? modelId} sse createMessage end]:`, requestId)
343343
}
344344
}
345345

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

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

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

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

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-disabled.snap

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

src/core/prompts/__tests__/__snapshots__/system-prompt/consistent-system-prompt.snap

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

src/core/prompts/__tests__/__snapshots__/system-prompt/with-mcp-hub-provided.snap

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

0 commit comments

Comments
 (0)