@cgasgarth/opencode-for-rust 1.0.5 → 1.0.9-next.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/dist/lib/extractor.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { ExtractedType, TypeInjectionConfig } from './types';
|
|
|
2
2
|
export declare class RustTypeExtractor {
|
|
3
3
|
private config;
|
|
4
4
|
private parser;
|
|
5
|
+
private language;
|
|
5
6
|
constructor(config: TypeInjectionConfig);
|
|
7
|
+
init(): Promise<void>;
|
|
6
8
|
extract(filePath: string, content?: string): Promise<ExtractedType[]>;
|
|
7
9
|
private mapNodeToKind;
|
|
8
10
|
private isExported;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgasgarth/opencode-for-rust",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9-next.1",
|
|
4
4
|
"description": "OpenCode plugin for Rust",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sisyphus",
|
|
@@ -27,21 +27,22 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@opencode-ai/plugin": "1.0.85",
|
|
30
|
-
"tree-sitter": "^0.
|
|
31
|
-
"tree-sitter-rust": "^0.24.0"
|
|
30
|
+
"web-tree-sitter": "^0.26.3"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
33
|
"@eslint/js": "^9.39.1",
|
|
35
|
-
"@types/
|
|
34
|
+
"@types/bun": "latest",
|
|
35
|
+
"@types/node": "^20.12.7",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "8.47.0",
|
|
37
37
|
"@typescript-eslint/parser": "8.47.0",
|
|
38
38
|
"bun-types": "latest",
|
|
39
39
|
"eslint": "^9.39.1",
|
|
40
40
|
"eslint-config-prettier": "10.1.8",
|
|
41
|
-
"eslint-plugin-prettier": "^5.1
|
|
41
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
42
42
|
"husky": "^9.1.7",
|
|
43
43
|
"lint-staged": "^16.2.7",
|
|
44
|
-
"prettier": "^3.
|
|
44
|
+
"prettier": "^3.3.3",
|
|
45
|
+
"tree-sitter-rust": "^0.24.0",
|
|
45
46
|
"typescript": "^5.9.3",
|
|
46
47
|
"typescript-eslint": "^8.47.0",
|
|
47
48
|
"vitest": "^3.2.4"
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"scripts": {
|
|
50
51
|
"test": "bun test tests/",
|
|
51
52
|
"typecheck": "tsc --noEmit",
|
|
52
|
-
"build": "bun build ./src/index.ts --outdir dist --target bun &&
|
|
53
|
+
"build": "bun build ./src/index.ts --outdir dist --target bun --external web-tree-sitter && cp node_modules/tree-sitter-rust/tree-sitter-rust.wasm dist/ && tsc --project tsconfig.build.json",
|
|
53
54
|
"lint": "eslint src --max-warnings 0",
|
|
54
55
|
"format": "prettier --check .",
|
|
55
56
|
"prepare": "husky"
|
|
Binary file
|