codebakers 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscodeignore +18 -0
- package/LICENSE +21 -0
- package/README.md +88 -0
- package/codebakers-1.0.0.vsix +0 -0
- package/codebakers-1.0.10.vsix +0 -0
- package/codebakers-1.0.11.vsix +0 -0
- package/codebakers-1.0.12.vsix +0 -0
- package/codebakers-1.0.13.vsix +0 -0
- package/codebakers-1.0.14.vsix +0 -0
- package/codebakers-1.0.15.vsix +0 -0
- package/codebakers-1.0.16.vsix +0 -0
- package/codebakers-1.0.17.vsix +0 -0
- package/codebakers-1.0.18.vsix +0 -0
- package/codebakers-1.0.19.vsix +0 -0
- package/codebakers-1.0.20.vsix +0 -0
- package/codebakers-1.0.21.vsix +0 -0
- package/codebakers-1.0.22.vsix +0 -0
- package/codebakers-1.0.23.vsix +0 -0
- package/codebakers-1.0.24.vsix +0 -0
- package/codebakers-1.0.25.vsix +0 -0
- package/codebakers-1.0.26.vsix +0 -0
- package/codebakers-1.0.27.vsix +0 -0
- package/codebakers-1.0.28.vsix +0 -0
- package/codebakers-1.0.29.vsix +0 -0
- package/codebakers-1.0.30.vsix +0 -0
- package/codebakers-1.0.31.vsix +0 -0
- package/codebakers-1.0.32.vsix +0 -0
- package/codebakers-1.0.35.vsix +0 -0
- package/codebakers-1.0.36.vsix +0 -0
- package/codebakers-1.0.37.vsix +0 -0
- package/codebakers-1.0.38.vsix +0 -0
- package/codebakers-1.0.39.vsix +0 -0
- package/codebakers-1.0.40.vsix +0 -0
- package/codebakers-1.0.41.vsix +0 -0
- package/codebakers-1.0.42.vsix +0 -0
- package/codebakers-1.0.43.vsix +0 -0
- package/codebakers-1.0.44.vsix +0 -0
- package/codebakers-1.0.45.vsix +0 -0
- package/dist/extension.js +1394 -0
- package/esbuild.js +63 -0
- package/media/icon.png +0 -0
- package/media/icon.svg +7 -0
- package/nul +1 -0
- package/package.json +127 -0
- package/preview.html +547 -0
- package/src/ChatPanelProvider.ts +1815 -0
- package/src/ChatViewProvider.ts +749 -0
- package/src/CodeBakersClient.ts +1146 -0
- package/src/CodeValidator.ts +645 -0
- package/src/FileOperations.ts +410 -0
- package/src/ProjectContext.ts +526 -0
- package/src/extension.ts +332 -0
- package/tsconfig.json +19 -0
package/esbuild.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const esbuild = require('esbuild');
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
const production = process.argv.includes('--production');
|
|
6
|
+
const watch = process.argv.includes('--watch');
|
|
7
|
+
|
|
8
|
+
// Clean dist folder before build (keep only extension.js)
|
|
9
|
+
function cleanDist() {
|
|
10
|
+
const distDir = path.join(__dirname, 'dist');
|
|
11
|
+
if (fs.existsSync(distDir)) {
|
|
12
|
+
const files = fs.readdirSync(distDir);
|
|
13
|
+
for (const file of files) {
|
|
14
|
+
if (file !== 'extension.js') {
|
|
15
|
+
const filePath = path.join(distDir, file);
|
|
16
|
+
fs.unlinkSync(filePath);
|
|
17
|
+
console.log('Cleaned:', file);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
async function main() {
|
|
24
|
+
// Clean old TypeScript output files
|
|
25
|
+
cleanDist();
|
|
26
|
+
const ctx = await esbuild.context({
|
|
27
|
+
entryPoints: ['src/extension.ts'],
|
|
28
|
+
bundle: true,
|
|
29
|
+
format: 'cjs',
|
|
30
|
+
minify: production,
|
|
31
|
+
sourcemap: !production,
|
|
32
|
+
sourcesContent: false,
|
|
33
|
+
platform: 'node',
|
|
34
|
+
outfile: 'dist/extension.js',
|
|
35
|
+
external: ['vscode'], // vscode is provided by VS Code runtime
|
|
36
|
+
logLevel: 'info',
|
|
37
|
+
plugins: [
|
|
38
|
+
{
|
|
39
|
+
name: 'node-fetch-polyfill',
|
|
40
|
+
setup(build) {
|
|
41
|
+
// Handle node-fetch - bundle it inline
|
|
42
|
+
build.onResolve({ filter: /^node-fetch$/ }, args => {
|
|
43
|
+
return { path: require.resolve('node-fetch'), external: false };
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
if (watch) {
|
|
51
|
+
await ctx.watch();
|
|
52
|
+
console.log('Watching for changes...');
|
|
53
|
+
} else {
|
|
54
|
+
await ctx.rebuild();
|
|
55
|
+
await ctx.dispose();
|
|
56
|
+
console.log('Build complete!');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
main().catch(e => {
|
|
61
|
+
console.error(e);
|
|
62
|
+
process.exit(1);
|
|
63
|
+
});
|
package/media/icon.png
ADDED
|
Binary file
|
package/media/icon.svg
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2
|
+
<!-- Red rounded square background -->
|
|
3
|
+
<rect x="2" y="2" width="20" height="20" rx="4" fill="#E54D4D"/>
|
|
4
|
+
<!-- Code brackets < > -->
|
|
5
|
+
<path d="M9 8L5 12L9 16" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
6
|
+
<path d="M15 8L19 12L15 16" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
7
|
+
</svg>
|
package/nul
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/usr/bin/bash: line 1: del: command not found
|
package/package.json
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "codebakers",
|
|
3
|
+
"displayName": "CodeBakers - Production Code, First Time",
|
|
4
|
+
"description": "Stop fixing AI mistakes. Cursor and Claude Code ignore your standards — CodeBakers enforces them. Save 20+ hours per project with production-ready code the first time.",
|
|
5
|
+
"version": "1.0.45",
|
|
6
|
+
"publisher": "codebakers",
|
|
7
|
+
"engines": {
|
|
8
|
+
"vscode": "^1.85.0"
|
|
9
|
+
},
|
|
10
|
+
"categories": [
|
|
11
|
+
"Programming Languages",
|
|
12
|
+
"Snippets",
|
|
13
|
+
"Machine Learning",
|
|
14
|
+
"Other"
|
|
15
|
+
],
|
|
16
|
+
"keywords": [
|
|
17
|
+
"ai",
|
|
18
|
+
"claude",
|
|
19
|
+
"patterns",
|
|
20
|
+
"code generation",
|
|
21
|
+
"best practices",
|
|
22
|
+
"copilot"
|
|
23
|
+
],
|
|
24
|
+
"icon": "media/icon.png",
|
|
25
|
+
"activationEvents": [
|
|
26
|
+
"*"
|
|
27
|
+
],
|
|
28
|
+
"main": "./dist/extension.js",
|
|
29
|
+
"contributes": {
|
|
30
|
+
"commands": [
|
|
31
|
+
{
|
|
32
|
+
"command": "codebakers.openChat",
|
|
33
|
+
"title": "Open CodeBakers",
|
|
34
|
+
"category": "CodeBakers",
|
|
35
|
+
"icon": {
|
|
36
|
+
"light": "media/icon.svg",
|
|
37
|
+
"dark": "media/icon.svg"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"command": "codebakers.login",
|
|
42
|
+
"title": "Login to CodeBakers",
|
|
43
|
+
"category": "CodeBakers"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"command": "codebakers.logout",
|
|
47
|
+
"title": "Logout from CodeBakers",
|
|
48
|
+
"category": "CodeBakers"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"command": "codebakers.showPatterns",
|
|
52
|
+
"title": "Show Available Patterns",
|
|
53
|
+
"category": "CodeBakers"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"command": "codebakers.runAudit",
|
|
57
|
+
"title": "Run Code Audit",
|
|
58
|
+
"category": "CodeBakers"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"menus": {
|
|
62
|
+
"editor/title": [
|
|
63
|
+
{
|
|
64
|
+
"command": "codebakers.openChat",
|
|
65
|
+
"group": "navigation"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"commandPalette": [
|
|
69
|
+
{
|
|
70
|
+
"command": "codebakers.openChat"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"command": "codebakers.login"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"command": "codebakers.logout"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"keybindings": [
|
|
81
|
+
{
|
|
82
|
+
"command": "codebakers.openChat",
|
|
83
|
+
"key": "ctrl+alt+c",
|
|
84
|
+
"mac": "cmd+alt+c"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"configuration": {
|
|
88
|
+
"title": "CodeBakers",
|
|
89
|
+
"properties": {
|
|
90
|
+
"codebakers.apiEndpoint": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"default": "https://www.codebakers.ai",
|
|
93
|
+
"description": "CodeBakers API endpoint"
|
|
94
|
+
},
|
|
95
|
+
"codebakers.autoShowFooter": {
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"default": true,
|
|
98
|
+
"description": "Show CodeBakers footer after code generation"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"scripts": {
|
|
104
|
+
"vscode:prepublish": "npm run esbuild-base -- --production",
|
|
105
|
+
"compile": "npm run esbuild-base",
|
|
106
|
+
"esbuild-base": "node esbuild.js",
|
|
107
|
+
"esbuild-watch": "node esbuild.js --watch",
|
|
108
|
+
"watch": "npm run esbuild-watch",
|
|
109
|
+
"package": "vsce package",
|
|
110
|
+
"publish": "vsce publish"
|
|
111
|
+
},
|
|
112
|
+
"devDependencies": {
|
|
113
|
+
"@types/node": "^20.10.0",
|
|
114
|
+
"@types/vscode": "^1.85.0",
|
|
115
|
+
"@vscode/vsce": "^2.22.0",
|
|
116
|
+
"esbuild": "^0.27.2",
|
|
117
|
+
"typescript": "^5.3.0"
|
|
118
|
+
},
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"@anthropic-ai/sdk": "^0.32.0",
|
|
121
|
+
"node-fetch": "^2.7.0"
|
|
122
|
+
},
|
|
123
|
+
"repository": {
|
|
124
|
+
"type": "git",
|
|
125
|
+
"url": "https://github.com/codebakers/codebakers-extension"
|
|
126
|
+
}
|
|
127
|
+
}
|