@intlayer/lsp 9.7.0 → 9.7.2
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/dist/esm/_virtual/_rolldown/runtime.mjs +5 -6
- package/dist/esm/callers/editorCallers.mjs +1 -2
- package/dist/esm/callers/index.mjs +2 -3
- package/dist/esm/callers/patterns.mjs +2 -3
- package/dist/esm/dictionaryUtils.mjs +1 -2
- package/dist/esm/findFieldDeclaration.mjs +2 -3
- package/dist/esm/findFieldInFile.mjs +1 -2
- package/dist/esm/findKeyAtOffset.mjs +1 -2
- package/dist/esm/findKeyInContentFile.mjs +1 -2
- package/dist/esm/findTCallAtOffset.mjs +1 -2
- package/dist/esm/findUsageFieldAtOffset.mjs +1 -2
- package/dist/esm/index.mjs +9 -10
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/oxcUtils.mjs +1 -2
- package/dist/esm/oxcUtils.mjs.map +1 -1
- package/dist/esm/protocol.mjs +1 -2
- package/dist/esm/resolveDictionaryTarget.mjs +1 -2
- package/dist/esm/usageAnalyzer.mjs +2 -3
- package/dist/esm/usageAnalyzer.mjs.map +1 -1
- package/dist/esm/utils.mjs +7 -7
- package/dist/types/callers/editorCallers.d.ts +0 -2
- package/dist/types/callers/editorCallers.d.ts.map +1 -1
- package/dist/types/callers/index.d.ts +12 -1
- package/dist/types/callers/index.d.ts.map +1 -1
- package/dist/types/callers/patterns.d.ts +0 -2
- package/dist/types/callers/patterns.d.ts.map +1 -1
- package/dist/types/dictionaryUtils.d.ts +0 -2
- package/dist/types/dictionaryUtils.d.ts.map +1 -1
- package/dist/types/findFieldDeclaration.d.ts +0 -2
- package/dist/types/findFieldDeclaration.d.ts.map +1 -1
- package/dist/types/findFieldInFile.d.ts +0 -2
- package/dist/types/findFieldInFile.d.ts.map +1 -1
- package/dist/types/findKeyAtOffset.d.ts +0 -2
- package/dist/types/findKeyAtOffset.d.ts.map +1 -1
- package/dist/types/findKeyInContentFile.d.ts +1 -2
- package/dist/types/findKeyInContentFile.d.ts.map +1 -1
- package/dist/types/findTCallAtOffset.d.ts +0 -2
- package/dist/types/findTCallAtOffset.d.ts.map +1 -1
- package/dist/types/findUsageFieldAtOffset.d.ts +0 -2
- package/dist/types/findUsageFieldAtOffset.d.ts.map +1 -1
- package/dist/types/oxcUtils.d.ts +0 -2
- package/dist/types/oxcUtils.d.ts.map +1 -1
- package/dist/types/protocol.d.ts +0 -2
- package/dist/types/protocol.d.ts.map +1 -1
- package/dist/types/resolveDictionaryTarget.d.ts +1 -2
- package/dist/types/resolveDictionaryTarget.d.ts.map +1 -1
- package/dist/types/usageAnalyzer.d.ts +0 -2
- package/dist/types/usageAnalyzer.d.ts.map +1 -1
- package/package.json +42 -42
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/resolveDictionaryTarget.d.ts
|
|
2
1
|
/** A dictionary and the path of a field inside its content. */
|
|
3
2
|
export type DictionaryTarget = {
|
|
4
3
|
dictionaryKey: string;
|
|
@@ -55,5 +54,5 @@ export declare const getUsageTargetCandidates: ({ dictionaryKey, fieldPath, libr
|
|
|
55
54
|
* @param loadDictionaries - Built dictionaries by key.
|
|
56
55
|
*/
|
|
57
56
|
export declare const resolveDictionaryTarget: <TDictionary extends DictionaryWithContent>(target: UsageTarget, loadDictionaries: DictionaryLoader<TDictionary>) => Promise<ResolvedDictionaryTarget<TDictionary> | null>;
|
|
58
|
-
|
|
57
|
+
export {};
|
|
59
58
|
//# sourceMappingURL=resolveDictionaryTarget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveDictionaryTarget.d.ts","names":[],"sources":["../../src/resolveDictionaryTarget.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveDictionaryTarget.d.ts","names":[],"sources":["../../src/resolveDictionaryTarget.ts"],"mappings":";YAGY;EACV;EACA;;;YAIU,cAAc;;EAExB;;;YAIU,yBAAyB,eAAe;;EAElD,cAAc;;;;;EAKd;;;;;KAYG;EAA0B;;;;;YAKnB,iBAAiB,gBAC3B,0BAEE,mCAGA,QAAQ;;;;;;;;qBAwBC,kBACX,kBACA;;;;;;;;;qBA+BW,6BACX,eACA,WACA,WACC,gBAAc;;;;;;;;;qBAwCJ,0BACX,oBAAoB,uBAEpB,QAAQ,aACR,kBAAkB,iBAAiB,iBAClC,QAAQ,yBAAyB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { index_d_exports } from "./callers/index.js";
|
|
2
2
|
import { OxcNode } from "./oxcUtils.js";
|
|
3
|
-
//#region src/usageAnalyzer.d.ts
|
|
4
3
|
/** How a message usage appears in source code. */
|
|
5
4
|
export type MessageUsageKind = "call" | "member" | "destructure" | "jsx" | "tagged-template" | "namespace";
|
|
6
5
|
/**
|
|
@@ -142,5 +141,4 @@ export declare const collectCallerBindings: (text: string) => CallerVariableBind
|
|
|
142
141
|
* @param offset - Cursor offset in `text`.
|
|
143
142
|
*/
|
|
144
143
|
export declare const findMessageUsageAtOffset: (text: string, offset: number) => MessageUsage | null;
|
|
145
|
-
//#endregion
|
|
146
144
|
//# sourceMappingURL=usageAnalyzer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usageAnalyzer.d.ts","names":[],"sources":["../../src/usageAnalyzer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usageAnalyzer.d.ts","names":["CallerDescriptor"],"sources":["../../src/usageAnalyzer.ts"],"mappings":";;;YAyBY;;;;;YAkBA;;EAEV;;;;;EAKA;;;;;;EAMA;IAAe;IAAe;;;EAE9B;;EAEA;EACA,MAAM;;EAEN;;EAEA;;EAEA;;;;;;;EAOA;;;;;;qBA+NW,8BACX,SAASA,gBAAAA;;;;;;;;;;;;qBAymCE,uBAAwB,iBAAe;;;;;;;;;qBAsCvC,qBAAsB,UAAU;;;;;;YAgCjC;EACV;EACA;EACA;;EAEA;EACA;;EAEA;EACA;;EAEA;EACA;;;;;;;;;;;;qBAwCW,6BACX,iBACC;;;;;;YA8DS;;EAEV;;EAEA;;;;;EAKA;;EAEA;;EAEA;EACA;;;;;;;;;qBAUW,wBACX,iBACC;;;;;;;;;;;;;;qBA8DU,2BACX,cACA,mBACC"}
|
package/package.json
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/lsp",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer Language Server. Handle LSP to help IDE and AI agent to use Intlayer",
|
|
6
6
|
"keywords": [
|
|
7
|
+
"agent",
|
|
8
|
+
"ai",
|
|
9
|
+
"ide",
|
|
7
10
|
"intlayer",
|
|
8
11
|
"lsp",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"agent",
|
|
12
|
-
"mcp-lsp",
|
|
13
|
-
"mcp-language-server"
|
|
12
|
+
"mcp-language-server",
|
|
13
|
+
"mcp-lsp"
|
|
14
14
|
],
|
|
15
15
|
"homepage": "https://intlayer.org",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/aymericzip/intlayer/issues"
|
|
18
18
|
},
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/aymericzip/intlayer.git"
|
|
22
|
-
},
|
|
23
19
|
"license": "Apache-2.0",
|
|
24
20
|
"author": {
|
|
25
21
|
"name": "Aymeric PINEAU",
|
|
@@ -32,19 +28,18 @@
|
|
|
32
28
|
"url": "https://github.com/aymericzip"
|
|
33
29
|
}
|
|
34
30
|
],
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"types": "./dist/types/index.d.ts",
|
|
39
|
-
"import": "./dist/esm/index.mjs"
|
|
40
|
-
},
|
|
41
|
-
"./utils": {
|
|
42
|
-
"types": "./dist/types/utils.d.ts",
|
|
43
|
-
"import": "./dist/esm/utils.mjs",
|
|
44
|
-
"default": "./dist/esm/utils.mjs"
|
|
45
|
-
},
|
|
46
|
-
"./package.json": "./package.json"
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/aymericzip/intlayer.git"
|
|
47
34
|
},
|
|
35
|
+
"bin": {
|
|
36
|
+
"intlayer-lsp": "./dist/esm/index.mjs"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"./dist",
|
|
40
|
+
"./package.json"
|
|
41
|
+
],
|
|
42
|
+
"sideEffects": false,
|
|
48
43
|
"main": "dist/esm/index.mjs",
|
|
49
44
|
"module": "dist/esm/index.mjs",
|
|
50
45
|
"types": "dist/types/index.d.ts",
|
|
@@ -61,22 +56,27 @@
|
|
|
61
56
|
]
|
|
62
57
|
}
|
|
63
58
|
},
|
|
64
|
-
"
|
|
65
|
-
"
|
|
59
|
+
"exports": {
|
|
60
|
+
".": {
|
|
61
|
+
"types": "./dist/types/index.d.ts",
|
|
62
|
+
"import": "./dist/esm/index.mjs"
|
|
63
|
+
},
|
|
64
|
+
"./utils": {
|
|
65
|
+
"types": "./dist/types/utils.d.ts",
|
|
66
|
+
"import": "./dist/esm/utils.mjs",
|
|
67
|
+
"default": "./dist/esm/utils.mjs"
|
|
68
|
+
},
|
|
69
|
+
"./package.json": "./package.json"
|
|
66
70
|
},
|
|
67
|
-
"files": [
|
|
68
|
-
"./dist",
|
|
69
|
-
"./package.json"
|
|
70
|
-
],
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "bun --bun tsdown --config tsdown.config.ts",
|
|
73
73
|
"build:ci": "bun --bun tsdown --config tsdown.config.ts",
|
|
74
74
|
"clean": "bun --bun rimraf ./dist .turbo",
|
|
75
75
|
"dev": "bun --bun tsdown --config tsdown.config.ts --watch",
|
|
76
|
-
"format": "
|
|
77
|
-
"format:fix": "
|
|
78
|
-
"lint": "
|
|
79
|
-
"lint:fix": "
|
|
76
|
+
"format": "oxfmt --check .",
|
|
77
|
+
"format:fix": "oxfmt .",
|
|
78
|
+
"lint": "oxlint .",
|
|
79
|
+
"lint:fix": "oxlint --fix .",
|
|
80
80
|
"prepublish": "cp -f ../../../README.md ./README.md",
|
|
81
81
|
"publish": "bun publish || true",
|
|
82
82
|
"publish:canary": "bun publish --access public --tag canary || true",
|
|
@@ -87,23 +87,23 @@
|
|
|
87
87
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@intlayer/config": "9.
|
|
91
|
-
"@intlayer/dictionaries-entry": "9.
|
|
92
|
-
"@intlayer/engine": "9.7.
|
|
93
|
-
"@intlayer/types": "9.7.
|
|
94
|
-
"oxc-parser": "0.
|
|
95
|
-
"vscode-languageserver": "
|
|
96
|
-
"vscode-languageserver-textdocument": "1.0.
|
|
90
|
+
"@intlayer/config": "9.7.2",
|
|
91
|
+
"@intlayer/dictionaries-entry": "9.7.2",
|
|
92
|
+
"@intlayer/engine": "9.7.2",
|
|
93
|
+
"@intlayer/types": "9.7.2",
|
|
94
|
+
"oxc-parser": "0.157.0",
|
|
95
|
+
"vscode-languageserver": "11.0.0",
|
|
96
|
+
"vscode-languageserver-textdocument": "1.0.16"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@types/node": "^26",
|
|
100
100
|
"@utils/ts-config": "1.0.4",
|
|
101
101
|
"@utils/ts-config-types": "1.0.4",
|
|
102
102
|
"@utils/tsdown-config": "1.0.4",
|
|
103
|
-
"rimraf": "6.1.
|
|
104
|
-
"tsdown": "0.23.
|
|
103
|
+
"rimraf": "6.1.4",
|
|
104
|
+
"tsdown": "0.23.7",
|
|
105
105
|
"typescript": "7.0.2",
|
|
106
|
-
"vitest": "5.0
|
|
106
|
+
"vitest": "5.1.0"
|
|
107
107
|
},
|
|
108
108
|
"engines": {
|
|
109
109
|
"node": ">=14.18"
|