Ferrell Synthetic Intelligence commited on
Commit
493a8d2
·
1 Parent(s): cf06504

Connect live LSP JSON-RPC protocol

Browse files
Files changed (3) hide show
  1. app.js +4 -0
  2. package-lock.json +7 -348
  3. package.json +4 -2
app.js CHANGED
@@ -275,6 +275,10 @@ async function startTool(kind, id, label) {
275
  if (!response.ok) throw new Error(result.error || `${label} failed`);
276
  $('#tool-status').textContent = `${label}: ${result.status}`;
277
  appendLog('TOOLCHAIN', `${label} ${result.status}.`);
 
 
 
 
278
  } catch (error) {
279
  $('#tool-status').textContent = `${label}: unavailable`;
280
  appendLog('TOOLCHAIN', `${label} unavailable: ${error.message}`, 'warning');
 
275
  if (!response.ok) throw new Error(result.error || `${label} failed`);
276
  $('#tool-status').textContent = `${label}: ${result.status}`;
277
  appendLog('TOOLCHAIN', `${label} ${result.status}.`);
278
+ if (kind === 'lsp') {
279
+ const init = await fetch('http://127.0.0.1:4777/api/lsp/request', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ id, message: { method: 'initialize', params: { processId: null, rootUri: null, capabilities: {} } } }) });
280
+ appendLog('LSP', init.ok ? 'initialize response received.' : 'initialize request failed.', init.ok ? '' : 'warning');
281
+ }
282
  } catch (error) {
283
  $('#tool-status').textContent = `${label}: unavailable`;
284
  appendLog('TOOLCHAIN', `${label} unavailable: ${error.message}`, 'warning');
package-lock.json CHANGED
@@ -9,7 +9,7 @@
9
  "version": "0.1.0-preflight",
10
  "license": "Apache-2.0",
11
  "dependencies": {
12
- "typescript": "^7.0.2",
13
  "typescript-language-server": "^5.3.0"
14
  },
15
  "devDependencies": {
@@ -236,358 +236,17 @@
236
  "node": ">= 10"
237
  }
238
  },
239
- "node_modules/@typescript/typescript-aix-ppc64": {
240
- "version": "7.0.2",
241
- "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz",
242
- "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==",
243
- "cpu": [
244
- "ppc64"
245
- ],
246
- "license": "Apache-2.0",
247
- "optional": true,
248
- "os": [
249
- "aix"
250
- ],
251
- "engines": {
252
- "node": ">=16.20.0"
253
- }
254
- },
255
- "node_modules/@typescript/typescript-darwin-arm64": {
256
- "version": "7.0.2",
257
- "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz",
258
- "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==",
259
- "cpu": [
260
- "arm64"
261
- ],
262
- "license": "Apache-2.0",
263
- "optional": true,
264
- "os": [
265
- "darwin"
266
- ],
267
- "engines": {
268
- "node": ">=16.20.0"
269
- }
270
- },
271
- "node_modules/@typescript/typescript-darwin-x64": {
272
- "version": "7.0.2",
273
- "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz",
274
- "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==",
275
- "cpu": [
276
- "x64"
277
- ],
278
- "license": "Apache-2.0",
279
- "optional": true,
280
- "os": [
281
- "darwin"
282
- ],
283
- "engines": {
284
- "node": ">=16.20.0"
285
- }
286
- },
287
- "node_modules/@typescript/typescript-freebsd-arm64": {
288
- "version": "7.0.2",
289
- "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz",
290
- "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==",
291
- "cpu": [
292
- "arm64"
293
- ],
294
- "license": "Apache-2.0",
295
- "optional": true,
296
- "os": [
297
- "freebsd"
298
- ],
299
- "engines": {
300
- "node": ">=16.20.0"
301
- }
302
- },
303
- "node_modules/@typescript/typescript-freebsd-x64": {
304
- "version": "7.0.2",
305
- "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz",
306
- "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==",
307
- "cpu": [
308
- "x64"
309
- ],
310
- "license": "Apache-2.0",
311
- "optional": true,
312
- "os": [
313
- "freebsd"
314
- ],
315
- "engines": {
316
- "node": ">=16.20.0"
317
- }
318
- },
319
- "node_modules/@typescript/typescript-linux-arm": {
320
- "version": "7.0.2",
321
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz",
322
- "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==",
323
- "cpu": [
324
- "arm"
325
- ],
326
- "license": "Apache-2.0",
327
- "optional": true,
328
- "os": [
329
- "linux"
330
- ],
331
- "engines": {
332
- "node": ">=16.20.0"
333
- }
334
- },
335
- "node_modules/@typescript/typescript-linux-arm64": {
336
- "version": "7.0.2",
337
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz",
338
- "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==",
339
- "cpu": [
340
- "arm64"
341
- ],
342
- "license": "Apache-2.0",
343
- "optional": true,
344
- "os": [
345
- "linux"
346
- ],
347
- "engines": {
348
- "node": ">=16.20.0"
349
- }
350
- },
351
- "node_modules/@typescript/typescript-linux-loong64": {
352
- "version": "7.0.2",
353
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz",
354
- "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==",
355
- "cpu": [
356
- "loong64"
357
- ],
358
- "license": "Apache-2.0",
359
- "optional": true,
360
- "os": [
361
- "linux"
362
- ],
363
- "engines": {
364
- "node": ">=16.20.0"
365
- }
366
- },
367
- "node_modules/@typescript/typescript-linux-mips64el": {
368
- "version": "7.0.2",
369
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz",
370
- "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==",
371
- "cpu": [
372
- "mips64el"
373
- ],
374
- "license": "Apache-2.0",
375
- "optional": true,
376
- "os": [
377
- "linux"
378
- ],
379
- "engines": {
380
- "node": ">=16.20.0"
381
- }
382
- },
383
- "node_modules/@typescript/typescript-linux-ppc64": {
384
- "version": "7.0.2",
385
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz",
386
- "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==",
387
- "cpu": [
388
- "ppc64"
389
- ],
390
- "license": "Apache-2.0",
391
- "optional": true,
392
- "os": [
393
- "linux"
394
- ],
395
- "engines": {
396
- "node": ">=16.20.0"
397
- }
398
- },
399
- "node_modules/@typescript/typescript-linux-riscv64": {
400
- "version": "7.0.2",
401
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz",
402
- "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==",
403
- "cpu": [
404
- "riscv64"
405
- ],
406
- "license": "Apache-2.0",
407
- "optional": true,
408
- "os": [
409
- "linux"
410
- ],
411
- "engines": {
412
- "node": ">=16.20.0"
413
- }
414
- },
415
- "node_modules/@typescript/typescript-linux-s390x": {
416
- "version": "7.0.2",
417
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz",
418
- "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==",
419
- "cpu": [
420
- "s390x"
421
- ],
422
- "license": "Apache-2.0",
423
- "optional": true,
424
- "os": [
425
- "linux"
426
- ],
427
- "engines": {
428
- "node": ">=16.20.0"
429
- }
430
- },
431
- "node_modules/@typescript/typescript-linux-x64": {
432
- "version": "7.0.2",
433
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz",
434
- "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==",
435
- "cpu": [
436
- "x64"
437
- ],
438
- "license": "Apache-2.0",
439
- "optional": true,
440
- "os": [
441
- "linux"
442
- ],
443
- "engines": {
444
- "node": ">=16.20.0"
445
- }
446
- },
447
- "node_modules/@typescript/typescript-netbsd-arm64": {
448
- "version": "7.0.2",
449
- "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz",
450
- "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==",
451
- "cpu": [
452
- "arm64"
453
- ],
454
- "license": "Apache-2.0",
455
- "optional": true,
456
- "os": [
457
- "netbsd"
458
- ],
459
- "engines": {
460
- "node": ">=16.20.0"
461
- }
462
- },
463
- "node_modules/@typescript/typescript-netbsd-x64": {
464
- "version": "7.0.2",
465
- "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz",
466
- "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==",
467
- "cpu": [
468
- "x64"
469
- ],
470
- "license": "Apache-2.0",
471
- "optional": true,
472
- "os": [
473
- "netbsd"
474
- ],
475
- "engines": {
476
- "node": ">=16.20.0"
477
- }
478
- },
479
- "node_modules/@typescript/typescript-openbsd-arm64": {
480
- "version": "7.0.2",
481
- "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz",
482
- "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==",
483
- "cpu": [
484
- "arm64"
485
- ],
486
- "license": "Apache-2.0",
487
- "optional": true,
488
- "os": [
489
- "openbsd"
490
- ],
491
- "engines": {
492
- "node": ">=16.20.0"
493
- }
494
- },
495
- "node_modules/@typescript/typescript-openbsd-x64": {
496
- "version": "7.0.2",
497
- "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz",
498
- "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==",
499
- "cpu": [
500
- "x64"
501
- ],
502
- "license": "Apache-2.0",
503
- "optional": true,
504
- "os": [
505
- "openbsd"
506
- ],
507
- "engines": {
508
- "node": ">=16.20.0"
509
- }
510
- },
511
- "node_modules/@typescript/typescript-sunos-x64": {
512
- "version": "7.0.2",
513
- "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz",
514
- "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==",
515
- "cpu": [
516
- "x64"
517
- ],
518
- "license": "Apache-2.0",
519
- "optional": true,
520
- "os": [
521
- "sunos"
522
- ],
523
- "engines": {
524
- "node": ">=16.20.0"
525
- }
526
- },
527
- "node_modules/@typescript/typescript-win32-arm64": {
528
- "version": "7.0.2",
529
- "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz",
530
- "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==",
531
- "cpu": [
532
- "arm64"
533
- ],
534
- "license": "Apache-2.0",
535
- "optional": true,
536
- "os": [
537
- "win32"
538
- ],
539
- "engines": {
540
- "node": ">=16.20.0"
541
- }
542
- },
543
- "node_modules/@typescript/typescript-win32-x64": {
544
- "version": "7.0.2",
545
- "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz",
546
- "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==",
547
- "cpu": [
548
- "x64"
549
- ],
550
- "license": "Apache-2.0",
551
- "optional": true,
552
- "os": [
553
- "win32"
554
- ],
555
- "engines": {
556
- "node": ">=16.20.0"
557
- }
558
- },
559
  "node_modules/typescript": {
560
- "version": "7.0.2",
561
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz",
562
- "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==",
563
  "license": "Apache-2.0",
564
  "bin": {
565
- "tsc": "bin/tsc"
 
566
  },
567
  "engines": {
568
- "node": ">=16.20.0"
569
- },
570
- "optionalDependencies": {
571
- "@typescript/typescript-aix-ppc64": "7.0.2",
572
- "@typescript/typescript-darwin-arm64": "7.0.2",
573
- "@typescript/typescript-darwin-x64": "7.0.2",
574
- "@typescript/typescript-freebsd-arm64": "7.0.2",
575
- "@typescript/typescript-freebsd-x64": "7.0.2",
576
- "@typescript/typescript-linux-arm": "7.0.2",
577
- "@typescript/typescript-linux-arm64": "7.0.2",
578
- "@typescript/typescript-linux-loong64": "7.0.2",
579
- "@typescript/typescript-linux-mips64el": "7.0.2",
580
- "@typescript/typescript-linux-ppc64": "7.0.2",
581
- "@typescript/typescript-linux-riscv64": "7.0.2",
582
- "@typescript/typescript-linux-s390x": "7.0.2",
583
- "@typescript/typescript-linux-x64": "7.0.2",
584
- "@typescript/typescript-netbsd-arm64": "7.0.2",
585
- "@typescript/typescript-netbsd-x64": "7.0.2",
586
- "@typescript/typescript-openbsd-arm64": "7.0.2",
587
- "@typescript/typescript-openbsd-x64": "7.0.2",
588
- "@typescript/typescript-sunos-x64": "7.0.2",
589
- "@typescript/typescript-win32-arm64": "7.0.2",
590
- "@typescript/typescript-win32-x64": "7.0.2"
591
  }
592
  },
593
  "node_modules/typescript-language-server": {
 
9
  "version": "0.1.0-preflight",
10
  "license": "Apache-2.0",
11
  "dependencies": {
12
+ "typescript": "^5.9.3",
13
  "typescript-language-server": "^5.3.0"
14
  },
15
  "devDependencies": {
 
236
  "node": ">= 10"
237
  }
238
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  "node_modules/typescript": {
240
+ "version": "5.9.3",
241
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
242
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
243
  "license": "Apache-2.0",
244
  "bin": {
245
+ "tsc": "bin/tsc",
246
+ "tsserver": "bin/tsserver"
247
  },
248
  "engines": {
249
+ "node": ">=14.17"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  }
251
  },
252
  "node_modules/typescript-language-server": {
package.json CHANGED
@@ -23,9 +23,11 @@
23
  "url": "https://github.com/anonymousnomad/aide-sovereign-workbench.git"
24
  },
25
  "homepage": "https://huggingface.co/FerrellSyntheticIntelligence/aide-sovereign-workbench",
26
- "bugs": {"url": "https://github.com/anonymousnomad/aide-sovereign-workbench/issues"},
 
 
27
  "dependencies": {
28
- "typescript": "^7.0.2",
29
  "typescript-language-server": "^5.3.0"
30
  },
31
  "devDependencies": {
 
23
  "url": "https://github.com/anonymousnomad/aide-sovereign-workbench.git"
24
  },
25
  "homepage": "https://huggingface.co/FerrellSyntheticIntelligence/aide-sovereign-workbench",
26
+ "bugs": {
27
+ "url": "https://github.com/anonymousnomad/aide-sovereign-workbench/issues"
28
+ },
29
  "dependencies": {
30
+ "typescript": "^5.9.3",
31
  "typescript-language-server": "^5.3.0"
32
  },
33
  "devDependencies": {