@cgasgarth/opencode-for-rust 1.0.10-next.1 → 1.1.0-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/README.md +1 -1
- package/dist/index.js +139 -12486
- package/dist/lib/regex-extractor.d.ts +7 -0
- package/package.json +4 -9
- package/dist/lib/extractor.d.ts +0 -13
- package/dist/tree-sitter-rust.wasm +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExtractedType, TypeInjectionConfig } from './types';
|
|
2
|
+
export declare class RegexRustTypeExtractor {
|
|
3
|
+
private config;
|
|
4
|
+
constructor(config: TypeInjectionConfig);
|
|
5
|
+
extract(filePath: string, content?: string): Promise<ExtractedType[]>;
|
|
6
|
+
private extractFullBody;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgasgarth/opencode-for-rust",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0-next.1",
|
|
4
4
|
"description": "OpenCode plugin for Rust",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sisyphus",
|
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
"src/version.ts"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@opencode-ai/plugin": "1.0.85"
|
|
30
|
-
"web-tree-sitter": "^0.26.3"
|
|
29
|
+
"@opencode-ai/plugin": "1.0.85"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"@eslint/js": "^9.39.1",
|
|
@@ -42,7 +41,6 @@
|
|
|
42
41
|
"husky": "^9.1.7",
|
|
43
42
|
"lint-staged": "^16.2.7",
|
|
44
43
|
"prettier": "^3.3.3",
|
|
45
|
-
"tree-sitter-rust": "^0.24.0",
|
|
46
44
|
"typescript": "^5.9.3",
|
|
47
45
|
"typescript-eslint": "^8.47.0",
|
|
48
46
|
"vitest": "^3.2.4"
|
|
@@ -50,7 +48,7 @@
|
|
|
50
48
|
"scripts": {
|
|
51
49
|
"test": "bun test tests/",
|
|
52
50
|
"typecheck": "tsc --noEmit",
|
|
53
|
-
"build": "bun build ./src/index.ts --outdir dist --target
|
|
51
|
+
"build": "bun build ./src/index.ts --outdir dist --target node --external @opencode-ai/plugin && tsc --project tsconfig.build.json",
|
|
54
52
|
"lint": "eslint src --max-warnings 0",
|
|
55
53
|
"format": "prettier --check .",
|
|
56
54
|
"prepare": "husky"
|
|
@@ -64,8 +62,5 @@
|
|
|
64
62
|
"prettier --write"
|
|
65
63
|
]
|
|
66
64
|
},
|
|
67
|
-
"trustedDependencies": [
|
|
68
|
-
"tree-sitter",
|
|
69
|
-
"tree-sitter-rust"
|
|
70
|
-
]
|
|
65
|
+
"trustedDependencies": []
|
|
71
66
|
}
|
package/dist/lib/extractor.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ExtractedType, TypeInjectionConfig } from './types';
|
|
2
|
-
export declare class RustTypeExtractor {
|
|
3
|
-
private config;
|
|
4
|
-
private parser;
|
|
5
|
-
private language;
|
|
6
|
-
constructor(config: TypeInjectionConfig);
|
|
7
|
-
init(): Promise<void>;
|
|
8
|
-
extract(filePath: string, content?: string): Promise<ExtractedType[]>;
|
|
9
|
-
private mapNodeToKind;
|
|
10
|
-
private isExported;
|
|
11
|
-
private getDocComment;
|
|
12
|
-
private getSignature;
|
|
13
|
-
}
|
|
Binary file
|