Skip to content

Commit 415ab1b

Browse files
committed
Merge branch 'dev'
2 parents 8873e04 + 8d23bdf commit 415ab1b

9 files changed

Lines changed: 31 additions & 104 deletions

File tree

‎README.md‎

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,24 @@
44

55
Blazing fast AI pair programming for production-grade code. Select context as you go for pro accuracy and game-changing speed.
66

7-
Works with **VS Code**, **Cursor**, **Windsurf**, **VSCodium**, and others.
7+
Works with **VS Code**, and forks like **Cursor**, **Windsurf**, **VSCodium**, etc.
88

9-
✅ **Sends prompts anywhere**
9+
✅ **Sends prompts everywhere**
1010

11-
- Chatbots—ChatGPT, Claude, Gemini, AI Studio, Qwen, etc.
12-
- Model providers—Gemini API, OpenRouter, local Ollama, etc.
11+
- Chatbots—_ChatGPT, Claude, Gemini, AI Studio, Qwen, etc._
12+
- Model providers—_Gemini API, OpenRouter, local Ollama, etc._
1313

1414
✅ **Applies responses**—multi-file changes integration with easy rollback \
15-
🔋 **Batteries included**—code completions, commit messages, etc. \
15+
🔋 **Batteries included**—code completions, commit messages, checkpoints... \
1616
❤️ **Free and open-source**—released under the GPL-3.0 license \
17-
🔒️ **Privacy focused**—operates 100% on your local machine
17+
🔒️ **Total privacy**—operates 100% on your local machine
1818

1919
<p>
2020
<img src="https://github.com/robertpiosik/CodeWebChat/raw/HEAD/packages/shared/src/media/demo.gif" alt="Walkthrough" />
2121
</p>
2222

2323
## Introduction
2424

25-
👨‍⚖️ **In respect to Terms of Use**
26-
27-
Code Web Chat only starts new conversations. This idea is borrowed from [Firefox](https://support.mozilla.org/en-US/kb/ai-chatbot) and is not against any of the supported chatbots Terms of Use. Contributors should not submit pull requests implementing further chat automations of any kind, as these will be rejected.
28-
29-
> [!NOTE]
30-
> The _Apply response_ button placed under responses is not a means of automatic output extraction, it's an alias for the original _copy to clipboard_ button.
31-
3225
🧑‍💻 **Guide the model with context**
3326

3427
Large language models (LLMs) are trained on vast datasets targeting many use cases. For code generation, a model's training involves analyzing millions of simulated problem-solving flows, such as arriving at the accepted answer from a given StackOverflow question. For the purpose of agentic coding, models are trained on an additional layer of data that simulates gathering context and planning its next steps.
@@ -76,7 +69,7 @@ Install the [open-source](https://github.com/robertpiosik/CodeWebChat/blob/dev/p
7669
- [Chrome Web Store](https://chromewebstore.google.com/detail/code-web-chat-connector/ljookipcanaglfaocjbgdicfbdhhjffp)
7770
- [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/code-web-chat-connector/)
7871

79-
**Supported chatbots (A-Z)**
72+
**Supported chatbots**
8073

8174
- AI Studio
8275
- ChatGPT
@@ -99,12 +92,16 @@ Install the [open-source](https://github.com/robertpiosik/CodeWebChat/blob/dev/p
9992
- Yuanbao
10093
- Z
10194

102-
> [!NOTE]
103-
> All web page interactions of submitting the message are handled by the following [content script](https://github.com/robertpiosik/CodeWebChat/blob/dev/packages/browser/src/content-scripts/send-prompt-content-script/send-prompt-content-script.ts).
104-
10595
> [!TIP]
10696
> With the browser extension you can include markdown-parsed websites in context. Go to target website, click the extension's icon in the browser's toolbar and click _Enable for context_.
10797
98+
👨‍⚖️ **With respect to Terms of Use**
99+
100+
The automations are limited changing chatbot settings (like the selected model), entering prompt, and optionally submitting. This idea is borrowed from [Firefox](https://support.mozilla.org/en-US/kb/ai-chatbot) and is not against any of the supported chatbots' Terms of Use. Contributors should not submit pull requests implementing further chat automations of any kind, as these will be kindly rejected.
101+
102+
> [!NOTE]
103+
> The _Apply response_ button placed under responses is not a means of automatic output extraction, it's an alias for the original _copy to clipboard_ button. Review the [content script](https://github.com/robertpiosik/CodeWebChat/blob/dev/packages/browser/src/content-scripts/send-prompt-content-script/send-prompt-content-script.ts) for implementation details.
104+
108105
## API Tools
109106

110107
Anything CWC can do in chatbots, it can do calling model providers directly from the editor.

‎packages/vscode/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "Blazing fast AI pair programming for production-grade code. Select context as you go for pro accuracy and game-changing speed. (CWC)",
5-
"version": "1.496.0",
5+
"version": "1.498.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

‎packages/vscode/src/commands/checkpoints-command/actions/copy-workspace-to-dir.ts‎

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

‎packages/vscode/src/commands/checkpoints-command/actions/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export * from './copy-workspace-to-dir'
21
export * from './create-checkpoint'
32
export * from './create-temporary-checkpoint'
43
export * from './delete-checkpoint'

‎packages/vscode/src/commands/checkpoints-command/actions/restore-checkpoint.ts‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { Checkpoint } from '../types'
55
import { create_temporary_checkpoint } from './create-temporary-checkpoint'
66
import { delete_checkpoint } from './delete-checkpoint'
77
import { sync_workspace_from_dir } from './sync-workspace-from-dir'
8-
import { get_checkpoint_path } from '../utils'
8+
import { get_checkpoint_path, sync_directory } from '../utils'
99
import { apply_git_diff } from '../utils/git-utils'
1010
import * as path from 'path'
1111

@@ -103,10 +103,19 @@ export const restore_checkpoint = async (params: {
103103
throw err
104104
}
105105
} else {
106-
await sync_workspace_from_dir({
107-
source_dir_uri: checkpoint_dir_uri,
108-
workspace_provider: params.workspace_provider
109-
})
106+
const source_folder_uri =
107+
workspace_folders.length > 1
108+
? vscode.Uri.joinPath(checkpoint_dir_uri, folder.name)
109+
: checkpoint_dir_uri
110+
try {
111+
await vscode.workspace.fs.stat(source_folder_uri)
112+
await sync_directory({
113+
source_dir: source_folder_uri,
114+
dest_dir: folder.uri,
115+
root_path: folder.uri.fsPath,
116+
workspace_provider: params.workspace_provider
117+
})
118+
} catch {}
110119
}
111120
}
112121
} else {

‎packages/vscode/src/commands/checkpoints-command/actions/sync-workspace-from-dir.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as vscode from 'vscode'
22
import { WorkspaceProvider } from '../../../context/providers/workspace-provider'
3-
import { clean_directory, sync_directory } from '../utils'
3+
import { sync_directory } from '../utils'
44

55
export const sync_workspace_from_dir = async (params: {
66
source_dir_uri: vscode.Uri
@@ -27,11 +27,6 @@ export const sync_workspace_from_dir = async (params: {
2727
workspace_provider: params.workspace_provider
2828
})
2929
} else {
30-
await clean_directory({
31-
dir_uri: folder.uri,
32-
root_path: folder.uri.fsPath,
33-
workspace_provider: params.workspace_provider
34-
})
3530
}
3631
}
3732
} else {

‎packages/vscode/src/commands/checkpoints-command/utils/clean-directory.ts‎

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

‎packages/vscode/src/commands/checkpoints-command/utils/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export * from './clean-directory'
21
export * from './copy-optimised-recursively'
32
export * from './get-checkpoint-path'
43
export * from './get-incremented-description'

‎packages/vscode/src/context/providers/workspace-provider.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class WorkspaceProvider
107107
vscode.window.withProgress(
108108
{
109109
location: vscode.ProgressLocation.Notification,
110-
title: 'Please wait, calculating token counts in the workspace...',
110+
title: 'Please wait, crunching token counts...',
111111
cancellable: false
112112
},
113113
async (_progress) => {

0 commit comments

Comments
 (0)