mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
3fd688ac37
Add regex/parser-based analyzers for: Markdown, YAML, JSON, TOML, Env, Dockerfile, SQL, GraphQL, Protobuf, Terraform, Makefile, Shell. Each implements AnalyzerPlugin with analyzeFile() and optional extractReferences(). Uses `yaml` npm package for YAML parsing, built-in JSON.parse for JSON, regex for all others. Add registerAllParsers() helper to register all parsers at once. Add comprehensive test suite with 35 tests covering all parsers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"name": "@understand-anything/core",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./search": {
|
|
"types": "./dist/search.d.ts",
|
|
"default": "./dist/search.js"
|
|
},
|
|
"./types": {
|
|
"types": "./dist/types.d.ts",
|
|
"default": "./dist/types.js"
|
|
},
|
|
"./schema": {
|
|
"types": "./dist/schema.d.ts",
|
|
"default": "./dist/schema.js"
|
|
},
|
|
"./languages": {
|
|
"types": "./dist/languages/index.d.ts",
|
|
"default": "./dist/languages/index.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.5.0",
|
|
"@vitest/coverage-v8": "3.2.4",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^3.1.0"
|
|
},
|
|
"dependencies": {
|
|
"fuse.js": "^7.1.0",
|
|
"tree-sitter-javascript": "^0.25.0",
|
|
"tree-sitter-typescript": "^0.23.2",
|
|
"web-tree-sitter": "^0.26.6",
|
|
"yaml": "^2.8.3",
|
|
"zod": "^4.3.6"
|
|
}
|
|
}
|