@opticlm/connector 2.0.0 → 2.0.1
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/README.md +2 -8
- package/package.json +25 -14
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @opticlm/connector
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Provides an abstract interface that allows LLMs to connect to fact sources such as LSPs, code diagnostics, symbol definitions/references, links, and frontmatter; currently includes an MCP implementation.
|
|
4
4
|
|
|
5
5
|
## Table of Contents
|
|
6
6
|
|
|
@@ -18,12 +18,6 @@ A TypeScript SDK that bridges Language Server Protocol (LSP) capabilities with t
|
|
|
18
18
|
- [Requirements](#requirements)
|
|
19
19
|
- [License](#license)
|
|
20
20
|
|
|
21
|
-
## Core Philosophy
|
|
22
|
-
|
|
23
|
-
- **Fuzzy-to-Exact Resolution**: LLMs interact via semantic anchors (`symbolName`, `lineHint`), and the SDK resolves them to precise coordinates
|
|
24
|
-
- **Disk-Based Truth**: All read operations reflect the state of files on disk, ignoring unsaved IDE buffers
|
|
25
|
-
- **High Abstraction**: Beyond LSP, it also provides functionality related to something like dual chains (graph capability) and metadata (frontmatter capability).
|
|
26
|
-
|
|
27
21
|
## Installation
|
|
28
22
|
|
|
29
23
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opticlm/connector",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Provides an abstract interface that allows LLMs to connect to fact sources such as LSPs, code diagnostics, symbol definitions/references, links, and frontmatter",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"types": "dist/index.d.ts",
|
|
6
7
|
"exports": {
|
|
@@ -17,18 +18,19 @@
|
|
|
17
18
|
"default": "./dist/mcp/index.js"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
|
-
"files": [
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
"files": [
|
|
22
|
+
"dist/**/*.js",
|
|
23
|
+
"dist/**/*.d.ts",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"mcp",
|
|
28
|
+
"lsp",
|
|
29
|
+
"language-server",
|
|
30
|
+
"ide",
|
|
31
|
+
"vscode",
|
|
32
|
+
"jetbrains"
|
|
33
|
+
],
|
|
32
34
|
"author": "EFLKumo",
|
|
33
35
|
"license": "MIT",
|
|
34
36
|
"repository": {
|
|
@@ -54,5 +56,14 @@
|
|
|
54
56
|
},
|
|
55
57
|
"engines": {
|
|
56
58
|
"node": ">=18.0.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "tsup",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"test:watch": "vitest",
|
|
64
|
+
"test:coverage": "vitest run --coverage",
|
|
65
|
+
"lint": "biome check .",
|
|
66
|
+
"lint:fix": "biome check --write .",
|
|
67
|
+
"format": "biome format --write ."
|
|
57
68
|
}
|
|
58
|
-
}
|
|
69
|
+
}
|