Skip to content

Commit b8bdf61

Browse files
mini2sxiaojingmingxjm
authored
Update product name (#588)
* feat: rename costrict to CoStrict (#574) Co-authored-by: xjm <[email protected]> * docs: normalize CoStrict branding in docs, UI, and logs; refactor encoding util to remove redundant log * feat(terminal): improve shell encoding handling and integration * refactor(shell): simplify terminal detection and version retrieval * fix(terminal): improve shell detection, encoding, and process control * feat(core): improve shell encoding handling and UTF-8 support * test(terminal): add vscode mocks to isolate unit tests --------- Co-authored-by: xiaojingming <[email protected]> Co-authored-by: xjm <[email protected]>
1 parent cdcd1d4 commit b8bdf61

File tree

173 files changed

+1483
-1458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+1483
-1458
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ body:
108108
attributes:
109109
label: API Provider (optional)
110110
options:
111-
- Costrict
111+
- CoStrict
112112
- Anthropic
113113
- AWS Bedrock
114114
- Chutes AI

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ blank_issues_enabled: false
22
contact_links:
33
- name: Feature Request
44
url: https://github.com/zgsm-ai/costrict/discussions/categories/feature-requests
5-
about: Share and vote on feature requests for Costrict
5+
about: Share and vote on feature requests for CoStrict
66
- name: Leave a Review
77
url: https://marketplace.visualstudio.com/items?itemName=zgsm-ai.zgsm&ssr=false#review-details
8-
about: Enjoying Costrict? Leave a review here!
8+
about: Enjoying CoStrict? Leave a review here!

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body:
66
- type: markdown
77
attributes:
88
value: |
9-
Thank you for helping improve Costrict!
9+
Thank you for helping improve CoStrict!
1010
Please focus on the problem and the desired behavior in plain language.
1111
1212
- type: textarea

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Thank you for contributing to Costrict!
2+
Thank you for contributing to CoStrict!
33
44
Before submitting your PR, please ensure:
55
- It's linked to an approved GitHub Issue.

.github/workflows/code-qa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Code QA Costrict
1+
name: Code QA CoStrict
22

33
on:
44
workflow_dispatch:

.roo/rules-issue-fixer/9_pr_template.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<pr_template_instructions>
22
<overview>
3-
This file contains the official Costrict PR template that must be used when creating pull requests.
3+
This file contains the official CoStrict PR template that must be used when creating pull requests.
44
All PRs must follow this exact format to ensure consistency and proper documentation.
55
</overview>
66

77
<pr_body_template>
88
<description>
9-
The PR body must follow this exact Costrict PR template with all required sections.
9+
The PR body must follow this exact CoStrict PR template with all required sections.
1010
Replace placeholder content in square brackets with actual information.
1111
</description>
1212
<template><![CDATA[
1313
<!--
14-
Thank you for contributing to Costrict!
14+
Thank you for contributing to CoStrict!
1515
1616
Before submitting your PR, please ensure:
1717
- It's linked to an approved GitHub Issue.
@@ -24,10 +24,10 @@ Before submitting your PR, please ensure:
2424
2525
Closes: #[ISSUE_NUMBER] <!-- Replace with the issue number, e.g., Closes: #123 -->
2626
27-
### Costrict Task Context (Optional)
27+
### CoStrict Task Context (Optional)
2828
2929
<!--
30-
If you used Costrict to help create this PR, you can share public task links here.
30+
If you used CoStrict to help create this PR, you can share public task links here.
3131
This helps reviewers understand your development process and provides additional context.
3232
Example: https://costrict.ai/share/task-id
3333
-->
@@ -162,9 +162,9 @@ gh repo fork [owner]/[repo] --clone=false
162162
<example>123</example>
163163
</placeholder>
164164
<placeholder name="TASK_CONTEXT">
165-
<description>Optional Costrict task links if used during development</description>
165+
<description>Optional CoStrict task links if used during development</description>
166166
<example>https://costrict.ai/share/task-abc123</example>
167-
<default>_No Costrict task context for this PR_</default>
167+
<default>_No CoStrict task context for this PR_</default>
168168
</placeholder>
169169
<placeholder name="DESCRIPTION_CONTENT">
170170
<description>Detailed explanation of implementation approach</description>

.roomodes

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ customModes:
22
- slug: test
33
name: 🧪 Test
44
roleDefinition: |-
5-
You are Costrict, a Vitest testing specialist with deep expertise in: - Writing and maintaining Vitest test suites - Test-driven development (TDD) practices - Mocking and stubbing with Vitest - Integration testing strategies - TypeScript testing patterns - Code coverage analysis - Test performance optimization
5+
You are CoStrict, a Vitest testing specialist with deep expertise in: - Writing and maintaining Vitest test suites - Test-driven development (TDD) practices - Mocking and stubbing with Vitest - Integration testing strategies - TypeScript testing patterns - Code coverage analysis - Test performance optimization
66
Your focus is on maintaining high test quality and coverage across the codebase, working primarily with: - Test files in __tests__ directories - Mock implementations in __mocks__ - Test utilities and helpers - Vitest configuration and setup
77
You ensure tests are: - Well-structured and maintainable - Following Vitest best practices - Properly typed with TypeScript - Providing meaningful coverage - Using appropriate mocking strategies
88
whenToUse: Use this mode when you need to write, modify, or maintain tests for the codebase.
@@ -28,7 +28,7 @@ customModes:
2828
- Tests must be run from the same directory as the `package.json` file that specifies `vitest` in `devDependencies`
2929
- slug: design-engineer
3030
name: 🎨 Design Engineer
31-
roleDefinition: "You are Costrict, an expert Design Engineer focused on VSCode Extension development. Your expertise includes: - Implementing UI designs with high fidelity using React, Shadcn, Tailwind and TypeScript. - Ensuring interfaces are responsive and adapt to different screen sizes. - Collaborating with team members to translate broad directives into robust and detailed designs capturing edge cases. - Maintaining uniformity and consistency across the user interface."
31+
roleDefinition: "You are CoStrict, an expert Design Engineer focused on VSCode Extension development. Your expertise includes: - Implementing UI designs with high fidelity using React, Shadcn, Tailwind and TypeScript. - Ensuring interfaces are responsive and adapt to different screen sizes. - Collaborating with team members to translate broad directives into robust and detailed designs capturing edge cases. - Maintaining uniformity and consistency across the user interface."
3232
whenToUse: Implement UI designs and ensure consistency.
3333
description: Implement UI designs; ensure consistency.
3434
groups:
@@ -43,7 +43,7 @@ customModes:
4343
source: project
4444
- slug: translate
4545
name: 🌐 Translate
46-
roleDefinition: You are Costrict, a linguistic specialist focused on translating and managing localization files. Your responsibility is to help maintain and update translation files for the application, ensuring consistency and accuracy across all language resources.
46+
roleDefinition: You are CoStrict, a linguistic specialist focused on translating and managing localization files. Your responsibility is to help maintain and update translation files for the application, ensuring consistency and accuracy across all language resources.
4747
whenToUse: Translate and manage localization files.
4848
description: Translate and manage localization files.
4949
groups:
@@ -76,8 +76,8 @@ customModes:
7676
- slug: integration-tester
7777
name: 🧪 Integration Tester
7878
roleDefinition: |-
79-
You are Costrict, an integration testing specialist focused on VSCode E2E tests with expertise in: - Writing and maintaining integration tests using Mocha and VSCode Test framework - Testing Costrict API interactions and event-driven workflows - Creating complex multi-step task scenarios and mode switching sequences - Validating message formats, API responses, and event emission patterns - Test data generation and fixture management - Coverage analysis and test scenario identification
80-
Your focus is on ensuring comprehensive integration test coverage for the Costrict extension, working primarily with: - E2E test files in apps/vscode-e2e/src/suite/ - Test utilities and helpers - API type definitions in packages/types/ - Extension API testing patterns
79+
You are CoStrict, an integration testing specialist focused on VSCode E2E tests with expertise in: - Writing and maintaining integration tests using Mocha and VSCode Test framework - Testing CoStrict API interactions and event-driven workflows - Creating complex multi-step task scenarios and mode switching sequences - Validating message formats, API responses, and event emission patterns - Test data generation and fixture management - Coverage analysis and test scenario identification
80+
Your focus is on ensuring comprehensive integration test coverage for the CoStrict extension, working primarily with: - E2E test files in apps/vscode-e2e/src/suite/ - Test utilities and helpers - API type definitions in packages/types/ - Extension API testing patterns
8181
You ensure integration tests are: - Comprehensive and cover critical user workflows - Following established Mocha TDD patterns - Using async/await with proper timeout handling - Validating both success and failure scenarios - Properly typed with TypeScript
8282
whenToUse: Write, modify, or maintain integration tests.
8383
description: Write and maintain integration tests.
@@ -91,7 +91,7 @@ customModes:
9191
- slug: docs-extractor
9292
name: 📚 Docs Extractor
9393
roleDefinition: |-
94-
You are Costrict, a documentation analysis specialist with two primary functions:
94+
You are CoStrict, a documentation analysis specialist with two primary functions:
9595
1. Extract comprehensive technical and non-technical details about features to provide to documentation teams
9696
2. Verify existing documentation for factual accuracy against the codebase
9797

@@ -111,7 +111,7 @@ customModes:
111111
- mcp
112112
- slug: pr-fixer
113113
name: 🛠️ PR Fixer
114-
roleDefinition: "You are Costrict, a pull request resolution specialist. Your focus is on addressing feedback and resolving issues within existing pull requests. Your expertise includes: - Analyzing PR review comments to understand required changes. - Checking CI/CD workflow statuses to identify failing tests. - Fetching and analyzing test logs to diagnose failures. - Identifying and resolving merge conflicts. - Guiding the user through the resolution process."
114+
roleDefinition: "You are CoStrict, a pull request resolution specialist. Your focus is on addressing feedback and resolving issues within existing pull requests. Your expertise includes: - Analyzing PR review comments to understand required changes. - Checking CI/CD workflow statuses to identify failing tests. - Fetching and analyzing test logs to diagnose failures. - Identifying and resolving merge conflicts. - Guiding the user through the resolution process."
115115
whenToUse: Use this mode to fix pull requests. It can analyze PR feedback from GitHub, check for failing tests, and help resolve merge conflicts before applying the necessary code changes.
116116
description: Fix pull requests.
117117
groups:
@@ -121,7 +121,7 @@ customModes:
121121
- mcp
122122
- slug: issue-investigator
123123
name: 🕵️ Issue Investigator
124-
roleDefinition: You are Costrict, a GitHub issue investigator. Your purpose is to analyze GitHub issues, investigate the probable causes using extensive codebase searches, and propose well-reasoned, theoretical solutions. You methodically track your investigation using a todo list, attempting to disprove initial theories to ensure a thorough analysis. Your final output is a human-like, conversational comment for the GitHub issue.
124+
roleDefinition: You are CoStrict, a GitHub issue investigator. Your purpose is to analyze GitHub issues, investigate the probable causes using extensive codebase searches, and propose well-reasoned, theoretical solutions. You methodically track your investigation using a todo list, attempting to disprove initial theories to ensure a thorough analysis. Your final output is a human-like, conversational comment for the GitHub issue.
125125
whenToUse: Use this mode when you need to investigate a GitHub issue to understand its root cause and propose a solution. This mode is ideal for triaging issues, providing initial analysis, and suggesting fixes before implementation begins. It uses the `gh` CLI for issue interaction.
126126
description: Investigates GitHub issues
127127
groups:
@@ -132,7 +132,7 @@ customModes:
132132
- slug: merge-resolver
133133
name: 🔀 Merge Resolver
134134
roleDefinition: |-
135-
You are Costrict, a merge conflict resolution specialist with expertise in:
135+
You are CoStrict, a merge conflict resolution specialist with expertise in:
136136
- Analyzing pull request merge conflicts using git blame and commit history
137137
- Understanding code intent through commit messages and diffs
138138
- Making intelligent decisions about which changes to keep, merge, or discard
@@ -208,7 +208,7 @@ customModes:
208208
- slug: mode-writer
209209
name: ✍️ Mode Writer
210210
roleDefinition: |-
211-
You are Costrict, a mode creation and editing specialist focused on designing, implementing, and enhancing custom modes for the Costrict project. Your expertise includes:
211+
You are CoStrict, a mode creation and editing specialist focused on designing, implementing, and enhancing custom modes for the CoStrict project. Your expertise includes:
212212
- Understanding the mode system architecture and configuration
213213
- Creating well-structured mode definitions with clear roles and responsibilities
214214
- Editing and enhancing existing modes while maintaining consistency

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Costrict Change Log
1+
# CoStrict Change Log
22

33
## [2.0.4]
44

@@ -51,7 +51,7 @@
5151
- Improve type definitions and global settings
5252
- Add AI-assisted review suggestion
5353
- Add commit model setting
54-
- Optimization costrict provider api performance
54+
- Optimization CoStrict provider api performance
5555
- Fix known issues
5656

5757
## [1.6.19]
@@ -122,7 +122,7 @@
122122

123123
## [1.6.11]
124124

125-
- Adds models refresh for costrict provider
125+
- Adds models refresh for CoStrict provider
126126
- Add line navigation for file jumps in chat interface
127127
- Implement chat cancellation and improve search functionality
128128
- Enhance metrics loading and pushing logic in PrometheusTelemetryClient
@@ -345,7 +345,7 @@
345345

346346
## [1.4.2]
347347

348-
- Update Costrict provider and error handling improvements
348+
- Update CoStrict provider and error handling improvements
349349
- Update vscode engine requirement to ^1.86.2
350350

351351
## [1.4.1]

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
</sub>
77
</div>
88

9-
# Contributing to Costrict
9+
# Contributing to CoStrict
1010

11-
Costrict is a community-driven project, and we deeply value every contribution. To streamline collaboration, we operate on an [Issue-First](#issue-first-approach) basis, meaning all [Pull Requests (PRs)](#submitting-a-pull-request) must first be linked to a GitHub Issue. Please review this guide carefully.
11+
CoStrict is a community-driven project, and we deeply value every contribution. To streamline collaboration, we operate on an [Issue-First](#issue-first-approach) basis, meaning all [Pull Requests (PRs)](#submitting-a-pull-request) must first be linked to a GitHub Issue. Please review this guide carefully.
1212

1313
## Table of Contents
1414

@@ -47,7 +47,7 @@ Our roadmap guides the project's direction. Align your contributions with these
4747

4848
Mention alignment with these areas in your PRs.
4949

50-
### 3. Join the Costrict Community
50+
### 3. Join the CoStrict Community
5151

5252
- **Alternative:** Experienced contributors can engage directly via [GitHub Projects](https://github.com/zgsm-ai/costrict/projects).
5353

@@ -74,7 +74,7 @@ All contributions must begin with a GitHub Issue.
7474
### Deciding What to Work On
7575

7676
- Check the [GitHub Project](https://github.com/zgsm-ai/costrict/projects) for unassigned "Good First Issues."
77-
- For docs, visit [Costrict Docs](https://docs.costrict.ai/).
77+
- For docs, visit [CoStrict Docs](https://docs.costrict.ai/).
7878

7979
### Reporting Bugs
8080

@@ -129,4 +129,4 @@ pnpm install
129129

130130
## Legal
131131

132-
By contributing, you agree your contributions will be licensed under the Apache 2.0 License, consistent with Costrict's licensing.
132+
By contributing, you agree your contributions will be licensed under the Apache 2.0 License, consistent with CoStrict's licensing.

0 commit comments

Comments
 (0)