Skip to content

Commit e985f48

Browse files
committed
Expand "Edit Context" capabilities to include multi-file creation and deletion, and overhaul UI components through refactoring and removals
1 parent 939d6a2 commit e985f48

42 files changed

Lines changed: 825 additions & 686 deletions

Some content is hidden

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

‎README.md‎

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
<a href="https://marketplace.visualstudio.com/items?itemName=robertpiosik.gemini-coder" target="_blank"><img src="https://img.shields.io/badge/Install-VS_Code_Marketplace-blue" alt="Get from Visual Studio Code Marketplace" /></a> <a href="https://open-vsx.org/extension/robertpiosik/gemini-coder" target="_blank"><img src="https://img.shields.io/badge/Install-Open_VSX_Registry-a60ee5" alt="Get from Open VSX Registry" /></a> <a href="https://github.com/robertpiosik/CodeWebChat/blob/dev/LICENSE" target="_blank"><img src="https://img.shields.io/badge/License-GPL--3.0-green.svg" alt="License: GPL-3.0" /></a>
44

5-
Code Web Chat is a versatile, free and open-source (FOSS) AI coding tool that connects VS Code with ChatGPT, AI Studio, DeepSeek, and 10+ other free chatbots.
5+
Code Web Chat is a community-driven, free and open-source (FOSS) AI coding tool that connects VS Code with ChatGPT, AI Studio, DeepSeek, and 10+ other free chatbots in your favorite browser.
66

77
✅ **Save money**—use generous free tiers and subscription-based billing \
8-
✅ **Save time**—finish tasks in seconds, not minutes
8+
✅ **Save time**—get multi-file edits from a single response
99

1010
Available in <a href="https://marketplace.visualstudio.com/items?itemName=robertpiosik.gemini-coder" target="_blank">VS Code</a>, <a href="https://open-vsx.org/extension/robertpiosik/gemini-coder" target="_blank">Cursor, and other forks</a>.
1111

@@ -17,7 +17,11 @@ Available in <a href="https://marketplace.visualstudio.com/items?itemName=robert
1717

1818
Select folders and files for context, type instructions, and pick your favorite chatbot—to continue in the browser, or call a model provider of choice—to stay in the editor.
1919

20-
Once the response is ready, multi-file suggested changes can be applied to the codebase after you review them in a transparent and safe way.
20+
Once the response is ready, suggested multi-file changes can be applied to the codebase after you review them in a transparent and safe way.
21+
22+
**Non-agentic nature**
23+
24+
CWC works solely on hand-picked context. This design choice doesn't try to remove You from coding and gives you full control over the model's outputs, making as accurate and predictable as possible.
2125

2226
**Guiding principles**
2327

@@ -32,11 +36,13 @@ Once the response is ready, multi-file suggested changes can be applied to the c
3236

3337
## <span style="background-color: #fbb100; color: black; padding: 0.2em 0.6em; border-radius: 999px">Chatbot initialization</span>
3438

35-
Install the Connector browser extension and never copy&paste again.
39+
Install an [open-source](https://github.com/robertpiosik/CodeWebChat/tree/dev/packages/browser) browser extension and never copy&paste again.
3640

3741
- [Chrome Web Store](https://chromewebstore.google.com/detail/code-web-chat-connector/ljookipcanaglfaocjbgdicfbdhhjffp)
3842
- [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/code-web-chat-connector/)
3943

44+
The browser extension uses a simple [content script](https://github.com/robertpiosik/CodeWebChat/blob/dev/packages/browser/src/content-scripts/send-prompt-content-script/send-prompt-content-script.ts) to change model, and other settings on your behalf.
45+
4046
**Supported chatbots:**
4147

4248
- AI Studio
@@ -56,14 +62,14 @@ Install the Connector browser extension and never copy&paste again.
5662
- Yuanbao
5763
- Z.AI
5864

59-
> <small>**Legal Disclaimer:** The extension does only basic web interactions to start a new conversation. The injected _Apply response with CWC_ button is not a means of automatic output extraction, it's an alias for the original _copy to clipboard_ button.</small>
65+
> <small>**Legal disclaimer:** The injected _Apply response with CWC_ button is not a means of automatic output extraction, it's an alias for the original _copy to clipboard_ button.</small>
6066
6167
## <span style="background-color: #fbb100; color: black; padding: 0.2em 0.6em; border-radius: 999px">API Tools</span>
6268

63-
CWC is not limited to chatbot initializations. To use built-in API tools, bring your own keys (BYOK) for any OpenAI-API compatible model provider.
69+
CWC is not limited to chatbot initializations. To use built-in API tools, bring your own key (BYOK) for any OpenAI-API compatible model provider.
6470

6571
**🛠️ Edit Context** \
66-
Modify files based on natural language instructions.
72+
Modify, create or delete files based on natural language instructions.
6773

6874
**🛠️ Code Completions** \
6975
Get accurate code-at-cursor from state-of-the-art reasoning models.
@@ -101,15 +107,15 @@ The tool **does not** collect telemetry.
101107

102108
## <span style="background-color: #fbb100; color: black; padding: 0.2em 0.6em; border-radius: 999px">Community</span>
103109

104-
If you have a question about CWC, or want to help others, you're always welcome to join the conversation:
110+
If you have a question, or want to help others, you're always welcome to join the community:
105111

106-
- [GitHub Discussions](https://github.com/robertpiosik/CodeWebChat/discussions)
107112
- [Discord](https://discord.gg/KJySXsrSX5)
108113
- [Reddit](https://www.reddit.com/r/CodeWebChat)
114+
- [Discussions](https://github.com/robertpiosik/CodeWebChat/discussions)
109115

110116
## <span style="background-color: #fbb100; color: black; padding: 0.2em 0.6em; border-radius: 999px">Donations</span>
111117

112-
[Buy me a coffee](https://buymeacoffee.com/robertpiosik)
118+
If you enjoy using Code Web Chat, [buying a $3 coffee](https://buymeacoffee.com/robertpiosik) is a great way to show your support for the project.
113119

114120
**BTC:** bc1qfzajl0fc4347knr6n5hhuk52ufr4sau04su5te
115121

‎docs/api-tools/context-edit.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Context edit
33
sidebar_position: 2
44
---
55

6-
Modify files based on natural language instructions.
6+
Modify, create or delete files based on natural language instructions.
77

88
✓ Multi-file updates in a single API call \
99
✓ Efficient in output tokens—requests diffs

‎docs/api-tools/index.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Get accurate code-at-cursor from state-of-the-art reasoning models.
1313

1414
### [Context edit](./context-edit)
1515

16-
Modify files based on natural language instructions.
16+
Modify, create or delete files based on natural language instructions.
1717

1818
### [Intelligent update](./intelligent-update)
1919

‎packages/browser/src/views/popup/Popup.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useState } from 'react'
1+
import { useEffect, useState } from 'react'
22
import browser from 'webextension-polyfill'
33
import { HtmlParser } from '../../utils/html-parser'
44
import { StoredWebsite, use_websites_store } from './hooks/use-websites-store'

‎packages/shared/src/constants/dictionary.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export const dictionary = {
310310
'Get accurate code-at-cursor from state-of-the-art reasoning models.',
311311
EDIT_CONTEXT_LABEL: 'Edit Context',
312312
EDIT_CONTEXT_SUBTITLE:
313-
'Modify files based on natural language instructions.',
313+
'Modify, create or delete files based on natural language instructions.',
314314
INTELLIGENT_UPDATE_LABEL: 'Intelligent Update',
315315
INTELLIGENT_UPDATE_SUBTITLE:
316316
'Integrate truncated code blocks and fix malformed diffs.',

‎packages/ui/.storybook/variables.css‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,30 @@
2121
--vscode-list-hoverBackground: #e8e8e8;
2222
--vscode-list-inactiveSelectionBackground: #e4e6f1;
2323
--vscode-button-separator: #808080;
24+
--vscode-inputOption-activeBackground: #cce5ff;
25+
--vscode-inputOption-activeForeground: #000;
26+
--vscode-button-secondaryForeground: #333;
27+
--vscode-button-secondaryBackground: #f3f3f3;
28+
--vscode-button-secondaryHoverBackground: #e0e0e0;
29+
--vscode-gitDecoration-untrackedResourceForeground: #3fb950;
30+
--vscode-gitDecoration-deletedResourceForeground: #f85149;
31+
--vscode-gitDecoration-addedResourceForeground: #3fb950;
32+
--vscode-activityWarningBadge-foreground: #fff;
33+
--vscode-activityWarningBadge-background: #f9a825;
34+
--vscode-checkbox-background: #fff;
35+
--vscode-checkbox-border: #ccc;
36+
--vscode-inputOption-activeBorder: #007fd4;
37+
--vscode-dropdown-border: #ccc;
38+
--vscode-dropdown-background: #fff;
39+
--vscode-menu-foreground: #616161;
40+
--vscode-menu-selectionBackground: #007fd4;
41+
--vscode-menu-selectionForeground: #fff;
42+
--vscode-input-placeholderForeground: #a0a0a0;
43+
--vscode-menu-background: #fff;
44+
--vscode-menu-border: #ccc;
45+
--vscode-widget-shadow: rgba(0, 0, 0, 0.16);
46+
--vscode-scrollbar-shadow: rgba(0, 0, 0, 0.5);
47+
--vscode-editorGroup-border: #ccc;
48+
--vscode-list-activeSelectionBackground: #094771;
49+
--vscode-list-activeSelectionForeground: #fff;
2450
}

‎packages/ui/src/components/editor/ApiTool/ApiTool.module.scss‎

Lines changed: 0 additions & 74 deletions
This file was deleted.

‎packages/ui/src/components/editor/ApiTool/ApiTool.stories.tsx‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎packages/ui/src/components/editor/ApiTool/ApiTool.tsx‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎packages/ui/src/components/editor/ApiTool/index.ts‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)