@involvex/super-agent-cli 0.0.79 → 0.0.81

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.
@@ -0,0 +1,444 @@
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ body {
8
+ font-family:
9
+ -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
10
+ Cantarell, sans-serif;
11
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
12
+ min-height: 100vh;
13
+ overflow: hidden;
14
+ }
15
+
16
+ .update-banner {
17
+ position: fixed;
18
+ top: 0;
19
+ left: 0;
20
+ right: 0;
21
+ background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
22
+ color: white;
23
+ padding: 12px 20px;
24
+ display: flex;
25
+ justify-content: space-between;
26
+ align-items: center;
27
+ z-index: 1000;
28
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
29
+ animation: slideDown 0.3s ease;
30
+ }
31
+
32
+ @keyframes slideDown {
33
+ from {
34
+ transform: translateY(-100%);
35
+ }
36
+ to {
37
+ transform: translateY(0);
38
+ }
39
+ }
40
+
41
+ .update-banner button {
42
+ background: rgba(255, 255, 255, 0.2);
43
+ border: none;
44
+ color: white;
45
+ padding: 5px 10px;
46
+ border-radius: 5px;
47
+ cursor: pointer;
48
+ font-weight: bold;
49
+ }
50
+
51
+ .update-banner button:hover {
52
+ background: rgba(255, 255, 255, 0.3);
53
+ }
54
+
55
+ .app-layout {
56
+ display: flex;
57
+ height: 100vh;
58
+ padding: 20px;
59
+ gap: 20px;
60
+ }
61
+
62
+ .sidebar {
63
+ width: 280px;
64
+ background: white;
65
+ border-radius: 20px;
66
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
67
+ overflow: hidden;
68
+ display: flex;
69
+ flex-direction: column;
70
+ }
71
+
72
+ .sidebar-header {
73
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
74
+ color: white;
75
+ padding: 20px;
76
+ display: flex;
77
+ justify-content: space-between;
78
+ align-items: center;
79
+ }
80
+
81
+ .sidebar-header h3 {
82
+ font-size: 1.1rem;
83
+ margin: 0;
84
+ }
85
+
86
+ .sidebar-section {
87
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
88
+ color: white;
89
+ padding: 15px 20px;
90
+ display: flex;
91
+ justify-content: space-between;
92
+ align-items: center;
93
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
94
+ }
95
+
96
+ .sidebar-section h3 {
97
+ font-size: 1rem;
98
+ margin: 0;
99
+ }
100
+
101
+ .icon-btn {
102
+ background: rgba(255, 255, 255, 0.2);
103
+ border: none;
104
+ color: white;
105
+ width: 30px;
106
+ height: 30px;
107
+ border-radius: 50%;
108
+ cursor: pointer;
109
+ font-size: 1rem;
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+ transition: background 0.2s;
114
+ }
115
+
116
+ .icon-btn:hover {
117
+ background: rgba(255, 255, 255, 0.3);
118
+ }
119
+
120
+ .file-tree,
121
+ .sessions-list {
122
+ flex: 1;
123
+ overflow-y: auto;
124
+ padding: 10px;
125
+ }
126
+
127
+ .file-item,
128
+ .session-item {
129
+ padding: 10px 15px;
130
+ border-radius: 8px;
131
+ margin-bottom: 5px;
132
+ cursor: pointer;
133
+ transition: background 0.2s;
134
+ font-size: 0.9rem;
135
+ }
136
+
137
+ .file-item:hover,
138
+ .session-item:hover {
139
+ background: #f0f0f0;
140
+ }
141
+
142
+ .file-item.directory {
143
+ font-weight: 600;
144
+ color: #667eea;
145
+ }
146
+
147
+ .session-item {
148
+ border-left: 3px solid #667eea;
149
+ }
150
+
151
+ .session-name {
152
+ font-weight: 600;
153
+ margin-bottom: 4px;
154
+ }
155
+
156
+ .session-meta {
157
+ font-size: 0.8rem;
158
+ color: #666;
159
+ }
160
+
161
+ .empty-state {
162
+ text-align: center;
163
+ color: #999;
164
+ padding: 20px;
165
+ font-size: 0.9rem;
166
+ }
167
+
168
+ .main-content {
169
+ flex: 1;
170
+ display: flex;
171
+ flex-direction: column;
172
+ background: white;
173
+ border-radius: 20px;
174
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
175
+ overflow: hidden;
176
+ }
177
+
178
+ header {
179
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
180
+ color: white;
181
+ padding: 30px;
182
+ text-align: center;
183
+ }
184
+
185
+ header h1 {
186
+ font-size: 2.5rem;
187
+ margin-bottom: 10px;
188
+ }
189
+
190
+ .subtitle {
191
+ opacity: 0.9;
192
+ font-size: 1.1rem;
193
+ }
194
+
195
+ #chat-container {
196
+ flex: 1;
197
+ overflow-y: auto;
198
+ padding: 30px;
199
+ background: #f8f9fa;
200
+ }
201
+
202
+ #messages {
203
+ display: flex;
204
+ flex-direction: column;
205
+ gap: 15px;
206
+ }
207
+
208
+ .message {
209
+ padding: 15px 20px;
210
+ border-radius: 15px;
211
+ max-width: 80%;
212
+ animation: slideIn 0.3s ease;
213
+ white-space: pre-wrap;
214
+ }
215
+
216
+ @keyframes slideIn {
217
+ from {
218
+ opacity: 0;
219
+ transform: translateY(10px);
220
+ }
221
+ to {
222
+ opacity: 1;
223
+ transform: translateY(0);
224
+ }
225
+ }
226
+
227
+ .message.user {
228
+ background: #667eea;
229
+ color: white;
230
+ align-self: flex-end;
231
+ margin-left: auto;
232
+ }
233
+
234
+ .message.assistant {
235
+ background: white;
236
+ color: #333;
237
+ align-self: flex-start;
238
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
239
+ }
240
+
241
+ .message.tool {
242
+ background: #fff3cd;
243
+ color: #856404;
244
+ align-self: flex-start;
245
+ font-size: 0.9rem;
246
+ font-family: monospace;
247
+ }
248
+
249
+ .message.error {
250
+ background: #f8d7da;
251
+ color: #721c24;
252
+ align-self: flex-start;
253
+ }
254
+
255
+ .input-container {
256
+ padding: 20px;
257
+ background: white;
258
+ border-top: 1px solid #e9ecef;
259
+ position: relative;
260
+ }
261
+
262
+ .autocomplete {
263
+ position: absolute;
264
+ bottom: 100%;
265
+ left: 20px;
266
+ right: 20px;
267
+ background: white;
268
+ border: 2px solid #667eea;
269
+ border-radius: 10px;
270
+ box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
271
+ max-height: 200px;
272
+ overflow-y: auto;
273
+ margin-bottom: 10px;
274
+ }
275
+
276
+ .autocomplete.hidden {
277
+ display: none;
278
+ }
279
+
280
+ .autocomplete-item {
281
+ padding: 12px 15px;
282
+ cursor: pointer;
283
+ transition: background 0.2s;
284
+ border-bottom: 1px solid #f0f0f0;
285
+ }
286
+
287
+ .autocomplete-item:last-child {
288
+ border-bottom: none;
289
+ }
290
+
291
+ .autocomplete-item:hover {
292
+ background: #f8f9fa;
293
+ }
294
+
295
+ .autocomplete-item strong {
296
+ color: #667eea;
297
+ font-size: 0.95rem;
298
+ }
299
+
300
+ .input-container > div:not(.autocomplete) {
301
+ display: flex;
302
+ gap: 15px;
303
+ }
304
+
305
+ #prompt-input {
306
+ flex: 1;
307
+ padding: 15px;
308
+ border: 2px solid #e9ecef;
309
+ border-radius: 10px;
310
+ font-size: 1rem;
311
+ font-family: inherit;
312
+ resize: none;
313
+ transition: border-color 0.3s;
314
+ }
315
+
316
+ #prompt-input:focus {
317
+ outline: none;
318
+ border-color: #667eea;
319
+ }
320
+
321
+ #send-btn {
322
+ padding: 15px 30px;
323
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
324
+ color: white;
325
+ border: none;
326
+ border-radius: 10px;
327
+ font-size: 1rem;
328
+ font-weight: 600;
329
+ cursor: pointer;
330
+ transition:
331
+ transform 0.2s,
332
+ box-shadow 0.2s;
333
+ }
334
+
335
+ #send-btn:hover {
336
+ transform: translateY(-2px);
337
+ box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
338
+ }
339
+
340
+ #send-btn:active {
341
+ transform: translateY(0);
342
+ }
343
+
344
+ #send-btn:disabled {
345
+ opacity: 0.5;
346
+ cursor: not-allowed;
347
+ }
348
+
349
+ .status {
350
+ padding: 10px 20px;
351
+ text-align: center;
352
+ font-size: 0.9rem;
353
+ color: #6c757d;
354
+ background: #e9ecef;
355
+ }
356
+
357
+ .status.connected {
358
+ background: #d4edda;
359
+ color: #155724;
360
+ }
361
+
362
+ .status.disconnected {
363
+ background: #f8d7da;
364
+ color: #721c24;
365
+ }
366
+
367
+ /* Disconnected banner styles */
368
+ .disconnected-banner {
369
+ position: fixed;
370
+ top: 0;
371
+ left: 0;
372
+ right: 0;
373
+ background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
374
+ border-bottom: 2px solid #ffc107;
375
+ color: #856404;
376
+ padding: 20px;
377
+ z-index: 1000;
378
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
379
+ animation: slideDown 0.3s ease;
380
+ }
381
+
382
+ .disconnected-banner .banner-content {
383
+ max-width: 800px;
384
+ margin: 0 auto;
385
+ }
386
+
387
+ .disconnected-banner strong {
388
+ display: block;
389
+ font-size: 1.2rem;
390
+ margin-bottom: 10px;
391
+ }
392
+
393
+ .disconnected-banner p {
394
+ margin: 8px 0;
395
+ line-height: 1.5;
396
+ }
397
+
398
+ .disconnected-banner ol {
399
+ margin: 10px 0;
400
+ padding-left: 25px;
401
+ }
402
+
403
+ .disconnected-banner li {
404
+ margin: 8px 0;
405
+ }
406
+
407
+ .disconnected-banner code {
408
+ background: rgba(0, 0, 0, 0.1);
409
+ padding: 3px 8px;
410
+ border-radius: 4px;
411
+ font-family: monospace;
412
+ font-size: 0.95rem;
413
+ }
414
+
415
+ .disconnected-banner a {
416
+ color: #667eea;
417
+ font-weight: 600;
418
+ text-decoration: none;
419
+ }
420
+
421
+ .disconnected-banner a:hover {
422
+ text-decoration: underline;
423
+ }
424
+
425
+ .disconnected-banner .note {
426
+ font-size: 0.9rem;
427
+ opacity: 0.8;
428
+ margin-top: 12px;
429
+ }
430
+
431
+ .disconnected-banner .dismiss-btn {
432
+ float: right;
433
+ padding: 6px 12px;
434
+ background: rgba(0, 0, 0, 0.1);
435
+ border: 1px solid rgba(0, 0, 0, 0.2);
436
+ border-radius: 6px;
437
+ cursor: pointer;
438
+ font-weight: 500;
439
+ transition: background 0.2s;
440
+ }
441
+
442
+ .disconnected-banner .dismiss-btn:hover {
443
+ background: rgba(0, 0, 0, 0.2);
444
+ }
package/eslint.config.mjs CHANGED
@@ -10,6 +10,7 @@ export default [
10
10
  "@plugins/templates/*/dist/*.js",
11
11
  "@plugins/examples/*/dist/*.js.map",
12
12
  "@plugins/templates/*/dist/*.js.map",
13
+ "vscode-extension/out/**",
13
14
  ],
14
15
  },
15
16
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@involvex/super-agent-cli",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "description": "An open-source AI agent that brings the power of Super Agent directly into your terminal.",
5
5
  "keywords": [
6
6
  "cli",
@@ -28,20 +28,23 @@
28
28
  },
29
29
  "main": "dist/index.js",
30
30
  "bin": {
31
- "super-agent": "dist/index.js"
31
+ "super-agent": "super-agent.js"
32
32
  },
33
33
  "workspaces": [
34
34
  "@plugins/templates/*",
35
- "@plugins/examples/*"
35
+ "@plugins/examples/*",
36
+ "vscode-extension"
36
37
  ],
37
38
  "scripts": {
38
39
  "prebuild": "bun run format && bun run lint:fix && bun run typecheck",
39
- "build": "bun build src/index.ts --outdir ./dist --target node --packages external --format esm",
40
+ "build": "bun build src/index.ts --outdir ./dist --target node --packages external --format esm && bun run copy-bin && bun run build:web",
40
41
  "build:bun": "bun build src/index.ts --outdir ./dist --target node --packages external --format esm",
41
42
  "build:plugins": "bun run -F @involvex/super-agent\\* build",
43
+ "build:vscode": "bun run -F super-agent-vscode build",
42
44
  "build:web": "bun run scripts/build-web.ts",
43
45
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
44
46
  "compile": "bun run prebuild && bun build --compile src/index.ts --outfile ./dist/super-agent-cli.exe --config bunfig.toml",
47
+ "copy-bin": "cp super-agent.js dist/super-agent.js",
45
48
  "dev": "bun run --watch src/index.ts",
46
49
  "dev:node": "tsx src/index.ts",
47
50
  "format": "prettier --write .",
@@ -49,8 +52,9 @@
49
52
  "install:bun": "bun install",
50
53
  "lint": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-pattern dist",
51
54
  "lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix --ignore-pattern dist",
52
- "start": "node dist/index.js",
53
- "start:bun": "bun run dist/index.js",
55
+ "package:vscode": "bun run -F super-agent-vscode package",
56
+ "start": "bun run dist/index.js",
57
+ "start:node": "node dist/index.js",
54
58
  "test": "vitest run",
55
59
  "test:coverage": "vitest run --coverage",
56
60
  "test:integration": "vitest run src/tests/integration",
package/super-agent.js ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env bun
2
+ // Super Agent CLI wrapper script
3
+ // This ensures the bundled code runs with bun for proper module resolution
4
+
5
+ import { dirname, join } from "path";
6
+ import { fileURLToPath } from "url";
7
+
8
+ const __filename = fileURLToPath(import.meta.url);
9
+ const __dirname = dirname(__filename);
10
+
11
+ // Import and run the bundled CLI
12
+ import(join(__dirname, "dist", "index.js"));
@@ -0,0 +1,39 @@
1
+ # Source files
2
+ src/
3
+ *.ts
4
+ !**/out/**/*.js
5
+ tsconfig.json
6
+
7
+ # Build files
8
+ build.js
9
+ bun.lock
10
+ bun.lockb
11
+
12
+ # Config files
13
+ .eslintrc*
14
+ .prettierrc*
15
+ .eslintrc.json
16
+ .prettierignore
17
+
18
+ # Development files
19
+ .vscode/
20
+ .vscode-test/
21
+
22
+ # Git files
23
+ .git*
24
+ .gitignore
25
+
26
+ # Test files
27
+ **/*.test.ts
28
+ **/*.spec.ts
29
+ test/
30
+ tests/
31
+
32
+ # Documentation
33
+ CHANGELOG.md
34
+ docs/
35
+
36
+ # Lock files (ws dependency will be bundled automatically)
37
+ package-lock.json
38
+ yarn.lock
39
+ pnpm-lock.yaml
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 involvex
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -62,6 +62,8 @@ You can:
62
62
 
63
63
  ## Development
64
64
 
65
+ **Note**: This extension uses `npm` for dependency management (required by `vsce` packaging tool), while the root project uses `bun`.
66
+
65
67
  ```bash
66
68
  # Install dependencies
67
69
  npm install
@@ -9,10 +9,10 @@ if (!fs.existsSync(outDir)) {
9
9
  fs.mkdirSync(outDir, { recursive: true });
10
10
  }
11
11
 
12
- // Copy CSS and TypeScript files
13
- const filesToCopy = ["chat.css", "chat.ts"];
12
+ // Copy webview assets (these are plain JS/CSS files that run in the browser)
13
+ const assetsToCopy = ["chat.js", "chat.css"];
14
14
 
15
- for (const file of filesToCopy) {
15
+ for (const file of assetsToCopy) {
16
16
  const srcPath = path.join(srcDir, file);
17
17
  const outPath = path.join(outDir, file);
18
18
 
@@ -20,6 +20,39 @@ for (const file of filesToCopy) {
20
20
  fs.copyFileSync(srcPath, outPath);
21
21
  console.log(`Copied ${file} to out/`);
22
22
  } else {
23
- console.error(`Source file not found: ${srcPath}`);
23
+ console.warn(`Source file not found: ${srcPath}`);
24
24
  }
25
25
  }
26
+
27
+ // Copy ws dependency to out/node_modules for packaging
28
+ const wsSrc = path.join(__dirname, "node_modules", "ws");
29
+ const wsDest = path.join(outDir, "node_modules", "ws");
30
+
31
+ if (fs.existsSync(wsSrc)) {
32
+ // Copy recursively
33
+ copyDirectory(wsSrc, wsDest);
34
+ console.log("Copied ws to out/node_modules/");
35
+ } else {
36
+ console.warn("ws not found in node_modules");
37
+ }
38
+
39
+ function copyDirectory(src, dest) {
40
+ if (!fs.existsSync(dest)) {
41
+ fs.mkdirSync(dest, { recursive: true });
42
+ }
43
+
44
+ const entries = fs.readdirSync(src, { withFileTypes: true });
45
+
46
+ for (const entry of entries) {
47
+ const srcPath = path.join(src, entry.name);
48
+ const destPath = path.join(dest, entry.name);
49
+
50
+ if (entry.isDirectory()) {
51
+ copyDirectory(srcPath, destPath);
52
+ } else {
53
+ fs.copyFileSync(srcPath, destPath);
54
+ }
55
+ }
56
+ }
57
+
58
+ // Note: icon.png is already in the extension root, no need to copy
Binary file
@@ -8,14 +8,35 @@
8
8
  "Other",
9
9
  "Programming Languages"
10
10
  ],
11
+ "homepage": "https://involvex.github.io/super-agent-cli/",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/involvex/super-agent-cli.git"
15
+ },
16
+ "license": "MIT",
11
17
  "publisher": "involvex",
12
18
  "main": "./out/extension.js",
19
+ "scripts": {
20
+ "build": "npm run compile && npm run copy-assets",
21
+ "compile": "tsc -p ./",
22
+ "copy-assets": "node build.js",
23
+ "lint": "eslint src --ext ts",
24
+ "package": "vsce package --no-dependencies",
25
+ "typecheck": "tsc --noEmit",
26
+ "vscode:prepublish": "npm run compile && npm run copy-assets",
27
+ "watch": "tsc -w -p ./"
28
+ },
13
29
  "contributes": {
14
30
  "commands": [
15
31
  {
16
32
  "command": "super-agent.openChat",
17
33
  "title": "Open Super Agent Chat",
18
- "icon": "assets/icon.svg"
34
+ "icon": "icon.png"
35
+ },
36
+ {
37
+ "command": "super-agent.reconnect",
38
+ "title": "Reconnect to CLI",
39
+ "icon": "icon.png"
19
40
  },
20
41
  {
21
42
  "command": "super-agent.mentionFile",
@@ -31,7 +52,8 @@
31
52
  {
32
53
  "type": "webview",
33
54
  "id": "super-agent.chat",
34
- "name": "Chat"
55
+ "name": "Chat",
56
+ "icon": "icon.png"
35
57
  }
36
58
  ]
37
59
  },
@@ -40,7 +62,7 @@
40
62
  {
41
63
  "id": "super-agent-sidebar",
42
64
  "title": "Super Agent",
43
- "icon": "assets/icon.svg"
65
+ "icon": "icon.png"
44
66
  }
45
67
  ]
46
68
  }
@@ -48,9 +70,20 @@
48
70
  "activationEvents": [
49
71
  "onStartupFinished"
50
72
  ],
73
+ "dependencies": {
74
+ "ws": "^8.19.0"
75
+ },
76
+ "devDependencies": {
77
+ "@types/node": "^20.17.6",
78
+ "@types/vscode": "^1.80.0",
79
+ "@types/ws": "^8.5.13",
80
+ "@vscode/vsce": "^3.2.1",
81
+ "typescript": "^5.7.2"
82
+ },
51
83
  "engines": {
52
84
  "vscode": "^1.80.0"
53
85
  },
86
+ "icon": "icon.png",
54
87
  "configuration": {
55
88
  "title": "Super Agent",
56
89
  "properties": {