-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
264 lines (264 loc) · 8.86 KB
/
Copy pathpackage.json
File metadata and controls
264 lines (264 loc) · 8.86 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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
{
"name": "cycoda-extension",
"displayName": "Cycoda",
"description": "Cycoda setup and configuration extension",
"version": "0.0.1",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "cycoda",
"title": "Cycoda",
"icon": "resources/cycoda-icon.svg"
}
]
},
"views": {
"cycoda": [
{
"id": "cycodaSetup",
"name": "Setup",
"type": "webview",
"when": "!cycoda:showLogin"
},
{
"id": "cycodaWelcome",
"name": "Welcome",
"when": "!cycoda:showLogin"
},
{
"id": "cycodaPrototypes",
"name": "Try Other Approaches",
"when": "!cycoda:showLogin"
},
{
"id": "cycodaLogin",
"name": "Welcome",
"type": "webview",
"when": "cycoda:showLogin"
}
]
},
"viewsWelcome": [
{
"view": "cycodaWelcome",
"contents": "Welcome to Cycoda! 🚀\n\nGet started by setting up your development environment."
},
{
"view": "cycodaWelcome",
"contents": "$(terminal) Local Analysis\n\nGet instant feedback as you type by analyzing your code locally.\n\n[Install Cycoda CLI](command:cycoda.welcomeView.installCLI)",
"when": "!cycoda:localAnalysisInstalled"
},
{
"view": "cycodaWelcome",
"contents": "$(check) Local Analysis\n\nCycoda CLI installed. [Reset](command:cycoda.welcomeView.resetCLI)",
"when": "cycoda:localAnalysisInstalled && !cycoda:connected"
},
{
"view": "cycodaWelcome",
"contents": "$(check) Local Analysis\n\nCycoda CLI installed. Connected to Cycoda.",
"when": "cycoda:localAnalysisInstalled && cycoda:connected"
},
{
"view": "cycodaWelcome",
"contents": "$(shield) AI Guardrails\n\nSecure AI-generated code with guardrails.\n\n[Install MCP](command:cycoda.welcomeView.installMCP)",
"when": "!cycoda:mcpInstalled"
},
{
"view": "cycodaWelcome",
"contents": "$(check) AI Guardrails\n\nMCP setup complete. [Reset](command:cycoda.welcomeView.resetMCP)",
"when": "cycoda:mcpInstalled"
},
{
"view": "cycodaWelcome",
"contents": "$(link) Connect to Cycoda\n\nCustomize local analysis and keep your PRs up to standards.\n\n[Connect to Cycoda](command:cycoda.welcomeView.connect)",
"when": "!cycoda:connected"
},
{
"view": "cycodaWelcome",
"contents": "$(check) Connect to Cycoda\n\nConnected successfully. [Disconnect](command:cycoda.welcomeView.resetConnection)",
"when": "cycoda:connected"
},
{
"view": "cycodaPrototypes",
"contents": "ALTERNATIVE ONBOARDING APPROACHES\n\nTry different ways to set up Cycoda:\n\n[$(wand) Quick Pick Wizard](command:cycoda.launchQuickPickWizard)\nStep-by-step dropdown wizard (fastest)\n\n[$(book) Walkthrough Guide](command:cycoda.openWalkthrough)\nInteractive guide with educational content\n\n[$(account) Login Prototype](command:cycoda.showLoginPrototype)\nPreview an initial sign-in screen\n\n---\n\nCOMPARE:\n- Quick Pick: Instant, familiar (like Command Palette)\n- Walkthrough: Educational, shows on first install\n- Setup (above): Custom UI with progress tracking\n- Welcome (above): Simple native buttons\n- Login Prototype: First-run sign-in entry point\n\n---\n\nHELPER ACTIONS\n\n[$(sync) Reset All States](command:cycoda.welcomeView.resetAllStates)\nReset all installed items back to defaults (CLI, MCP, Connected)"
}
],
"commands": [
{
"command": "cycoda.refresh",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "cycoda.resetLocalAnalysis",
"title": "Cycoda: Reset Local Analysis"
},
{
"command": "cycoda.resetAIGuardrails",
"title": "Cycoda: Reset AI Guardrails"
},
{
"command": "cycoda.resetConnected",
"title": "Cycoda: Reset Connection"
},
{
"command": "cycoda.openWalkthrough",
"title": "Cycoda: Open Setup Walkthrough (Native Prototype)"
},
{
"command": "cycoda.launchQuickPickWizard",
"title": "Cycoda: Quick Pick Setup Wizard (Native Prototype)"
},
{
"command": "cycoda.login.connect",
"title": "Connect to Cycoda (Login View)"
},
{
"command": "cycoda.login.skip",
"title": "Continue Without Connecting (Login View)"
},
{
"command": "cycoda.showLoginPrototype",
"title": "Cycoda: Show Login Prototype (UI Preview)"
},
{
"command": "cycoda.resetWalkthroughFlag",
"title": "Cycoda: Reset First-Install Flag (Testing)"
},
{
"command": "cycoda.walkthrough.installCLI",
"title": "Install Cycoda CLI"
},
{
"command": "cycoda.walkthrough.installMCP",
"title": "Install MCP"
},
{
"command": "cycoda.walkthrough.connect",
"title": "Connect to Cycoda"
},
{
"command": "cycoda.welcomeView.installCLI",
"title": "Install Cycoda CLI (from Welcome View)"
},
{
"command": "cycoda.welcomeView.installMCP",
"title": "Install MCP (from Welcome View)"
},
{
"command": "cycoda.welcomeView.connect",
"title": "Connect to Cycoda (from Welcome View)"
},
{
"command": "cycoda.welcomeView.resetCLI",
"title": "Reset CLI Status (Welcome View)"
},
{
"command": "cycoda.welcomeView.resetMCP",
"title": "Reset MCP Status (Welcome View)"
},
{
"command": "cycoda.welcomeView.resetConnection",
"title": "Reset Connection Status (Welcome View)"
},
{
"command": "cycoda.welcomeView.resetAllStates",
"title": "Reset All States (CLI, MCP, Connected)"
},
{
"command": "cycoda.enableLocalScanning",
"title": "Enable Cycoda Local Scanning",
"category": "Cycoda",
"icon": "$(terminal)"
}
],
"menus": {
"editor/title": [
{
"command": "cycoda.enableLocalScanning",
"when": "resourceScheme == file && !cycoda:localAnalysisInstalled",
"group": "navigation@0"
}
],
"explorer/title": [
{
"command": "cycoda.enableLocalScanning",
"when": "!cycoda:localAnalysisInstalled",
"group": "navigation@1",
"icon": "$(terminal)"
}
],
"view/title": [
{
"command": "cycoda.enableLocalScanning",
"when": "view == workbench.explorer.fileView && !cycoda:localAnalysisInstalled",
"group": "navigation@1",
"icon": "$(terminal)"
}
]
},
"walkthroughs": [
{
"id": "cycodaSetupWalkthrough",
"title": "Get Started with Cycoda",
"description": "Set up Cycoda for local analysis and AI guardrails in just a few steps.",
"steps": [
{
"id": "localAnalysis",
"title": "Local Analysis",
"description": "Get instant feedback as you type by analyzing your code locally.\n\n[Install Cycoda CLI](command:cycoda.walkthrough.installCLI)\n\nThis will set everything up in your IDE, including any dependencies (like Node, Python, or Java).",
"media": {
"markdown": "resources/walkthrough/local-analysis.md"
},
"completionEvents": [
"onCommand:cycoda.walkthrough.installCLI"
]
},
{
"id": "aiGuardrails",
"title": "AI Guardrails",
"description": "Secure AI-Generated code with Cycoda Guardrails.\n\n[Install MCP](command:cycoda.walkthrough.installMCP)",
"media": {
"markdown": "resources/walkthrough/ai-guardrails.md"
},
"completionEvents": [
"onCommand:cycoda.walkthrough.installMCP"
]
},
{
"id": "connected",
"title": "Connect to Cycoda",
"description": "Customize local analysis, and keep your PRs up to standards in the IDE.\n\n[Connect →](command:cycoda.walkthrough.connect)",
"media": {
"markdown": "resources/walkthrough/connect.md"
},
"completionEvents": [
"onCommand:cycoda.walkthrough.connect"
]
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/vscode": "^1.74.0",
"@types/node": "16.x",
"typescript": "^4.9.4"
}
}