-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
219 lines (219 loc) · 6.76 KB
/
package.json
File metadata and controls
219 lines (219 loc) · 6.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
{
"name": "codoc",
"displayName": "CoDoc - Intelligent Code Documentation",
"description": "Lightweight CODOC editor with OpenCode and Claude Agent SDK integration for dependency-aware code generation",
"version": "0.1.0",
"publisher": "codoc",
"type": "module",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Programming Languages",
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "codoc.initCoDoc",
"title": "CoDoc: Init CoDoc",
"icon": "$(notebook)"
},
{
"command": "codoc.openEditor",
"title": "CoDoc: Open Editor",
"icon": "$(file-code)"
},
{
"command": "codoc.scanCodebase",
"title": "CoDoc: Scan Codebase"
},
{
"command": "codoc.generateWithOpenCode",
"title": "CoDoc: Generate Code"
},
{
"command": "codoc.openCodeInstall",
"title": "CoDoc: Install OpenCode CLI",
"description": "Run: npm install -g opencode-ai"
},
{
"command": "codoc.openCodeAuth",
"title": "CoDoc: Login to OpenCode",
"description": "Run: opencode auth login"
},
{
"command": "codoc.openCodeServe",
"title": "CoDoc: Start OpenCode Server",
"description": "Run: opencode serve -p 4096 --hostname 127.0.0.1"
},
{
"command": "codoc.setupOpenCode",
"title": "CoDoc: Setup OpenCode SDK",
"description": "Guide through OpenCode SDK setup (npm install, auth, serve)"
},
{
"command": "codoc.setupClaude",
"title": "CoDoc: Setup Claude Agent SDK",
"description": "Open settings to configure Claude API key"
},
{
"command": "codoc.configureApiKeys",
"title": "CoDoc: Configure API Keys"
}
],
"menus": {
"editor/title": [
{
"command": "codoc.openEditor",
"when": "resourceExtname == .codoc",
"group": "navigation"
}
]
},
"languages": [
{
"id": "codoc",
"aliases": [
"CoDoc",
"codoc"
],
"extensions": [
".codoc"
],
"configuration": "./language-configuration.json"
}
],
"customEditors": [
{
"viewType": "codoc.editor",
"displayName": "CoDoc Editor",
"selector": [
{
"filenamePattern": "*.codoc"
}
],
"priority": "default"
}
],
"configuration": [
{
"title": "SDK Provider Selection",
"properties": {
"codoc.sdkProvider": {
"type": "string",
"enum": ["opencode", "claude"],
"enumDescriptions": [
"Use OpenCode SDK (requires local server setup with 'opencode serve')",
"Use Claude Agent SDK (requires Anthropic API key)"
],
"default": "opencode",
"description": "Select the SDK provider for code generation",
"scope": "machine-overridable",
"order": 0
}
}
},
{
"title": "OpenCode SDK Setup",
"properties": {
"codoc.openCodeSetupStep1": {
"type": "boolean",
"default": false,
"description": "Step 1: Install OpenCode CLI globally (npm install -g opencode-ai)",
"scope": "machine-overridable",
"markdownDescription": "**Step 1: Install OpenCode CLI** - Run `npm install -g opencode-ai` in your terminal\n[Click to run in terminal](command:codoc.openCodeInstall)",
"order": 1
},
"codoc.openCodeSetupStep2": {
"type": "boolean",
"default": false,
"description": "Step 2: Login to OpenCode (opencode auth login) - Complete authentication in terminal",
"scope": "machine-overridable",
"markdownDescription": "**Step 2: OpenCode Authentication** - Run `opencode auth login` in terminal to login\n[Click to run in terminal](command:codoc.openCodeAuth)",
"order": 2
},
"codoc.openCodeSetupStep3": {
"type": "boolean",
"default": false,
"description": "Step 3: Start OpenCode server (opencode serve -p 4096 --hostname 127.0.0.1)",
"scope": "machine-overridable",
"markdownDescription": "**Step 3: Start OpenCode Server** - Run `opencode serve -p 4096 --hostname 127.0.0.1` in terminal\n[Click to run in terminal](command:codoc.openCodeServe)",
"order": 3
},
"codoc.openCodeServerUrl": {
"type": "string",
"default": "http://127.0.0.1:4096",
"description": "OpenCode server URL (auto-configured after setup)",
"scope": "machine-overridable",
"order": 4
}
}
},
{
"title": "Claude Agent SDK Setup",
"properties": {
"codoc.claudeApiKey": {
"type": "string",
"default": "",
"description": "Anthropic Claude API key for Claude Agent SDK",
"scope": "machine-overridable",
"markdownDescription": "**Claude API Key** - Paste your Anthropic API key here\n\nGet your key from: https://console.anthropic.com/keys",
"order": 1
}
}
},
{
"title": "Other Settings",
"properties": {
"codoc.openaiApiKey": {
"type": "string",
"default": "",
"description": "OpenAI API key for impact analysis and code generation features",
"scope": "machine-overridable",
"order": 1
},
"codoc.autoSync": {
"type": "boolean",
"default": true,
"description": "Automatically sync CoDoc file with codebase changes",
"order": 2
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"build:webview": "cd webview-ui && npm run build",
"dev:webview": "cd webview-ui && npm run dev",
"test-generate": "node test-generate.js",
"debug": "node debug.js"
},
"devDependencies": {
"@babel/traverse": "^7.28.5",
"@types/babel__generator": "^7.27.0",
"@types/babel__traverse": "^7.28.0",
"@types/node": "^24.10.1",
"@types/vscode": "^1.80.0",
"chevrotain": "^11.0.3",
"ts-node": "^10.9.2",
"typescript": "^5.9.3"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.55",
"@babel/parser": "^7.23.0",
"@babel/types": "^7.23.0",
"@opencode-ai/sdk": "^1.0.112",
"openai": "^6.9.1"
},
"keywords": [],
"author": "",
"license": "ISC"
}