-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathpackage.json
More file actions
96 lines (96 loc) · 5.38 KB
/
Copy pathpackage.json
File metadata and controls
96 lines (96 loc) · 5.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"name": "@qvac/vla-ggml",
"version": "0.23.0",
"description": "VLA vision-language-action inference addon for QVAC (ggml backend)",
"addon": true,
"engines": {
"bare": ">=1.24.0"
},
"scripts": {
"build": "npm run build:ts && npm run build:native",
"build:native": "bare-make generate && bare-make build && bare-make install",
"build:ts": "tsc -p tsconfig.build.json",
"build:pack": "npm run build:ts && mkdir -p dist && npm pack --pack-destination dist",
"check:generated": "npm run build:ts && git diff --exit-code -- index.js addon.js index.d.ts addon.d.ts lib/error.js lib/error.d.ts",
"typecheck": "tsc --noEmit -p tsconfig.json",
"mobile:copy-prebuilds": "cp -r prebuilds/android-arm64 prebuilds/android-ia32 || echo 'Warning: Failed to copy vla prebuilds to android-ia32'; cp -r prebuilds/android-arm64 prebuilds/android-arm || echo 'Warning: Failed to copy vla prebuilds to android-arm'; cp -r prebuilds/android-arm64 prebuilds/android-x64 || echo 'Warning: Failed to copy vla prebuilds to android-x64'; cp -r prebuilds/ios-arm64 prebuilds/ios-arm64-simulator 2>/dev/null || echo 'iOS prebuilds already present'; cp -r prebuilds/ios-arm64 prebuilds/ios-x64-simulator 2>/dev/null || echo 'iOS prebuilds already present'",
"lint": "npm run lint:js && npm run lint:ts",
"lint:js": "prettier --check \"**/*.{js,cjs,mjs}\" && lunte",
"lint:ts": "eslint \"src/**/*.ts\" --max-warnings=0",
"lint:ts:fix": "eslint \"src/**/*.ts\" --fix",
"format": "prettier --write \"**/*.{js,cjs,mjs}\"",
"lint:cpp": "clang-tidy -p build $(find addon -name '*.cpp')",
"test": "npm run lint && npm run test:types && npm run test:unit && npm run test:integration",
"test:integration": "npm run build:ts && npm run test:integration:generate && bare test/integration/all.js --exit",
"test:integration:generate": "brittle -r test/integration/all.js test/integration/*.test.js && npm run test:mobile:generate",
"test:unit:generate": "brittle -r test/unit/all.js test/unit/*.test.js",
"test:unit": "npm run build:ts && npm run test:unit:generate && bare test/unit/all.js --exit && npm run test:prestage && npm run test:mobile:groups && npm run test:mobile:validate",
"test:prestage": "node --test scripts/__tests__/generate-prestage-block.test.js",
"test:mobile:groups": "node --test scripts/__tests__/mobile-test-groups.test.js",
"test:cpp:build": "bare-make generate -D BUILD_TESTING=ON && bare-make build --target addon-test",
"test:cpp:run": "cd build/test/unit/ && ./addon-test --gtest_output=xml:cpp-test-results.xml",
"test:cpp": "npm run test:cpp:build && npm run test:cpp:run",
"coverage:cpp:build": "bare-make generate -D BUILD_TESTING=ON -D ENABLE_COVERAGE=ON && bare-make build --target addon-test",
"coverage:cpp:run": "cd build/test/unit/ && LLVM_PROFILE_FILE=default.profraw ./addon-test --gtest_output=xml:cpp-test-results.xml",
"coverage:cpp:summary": "cd build/test/unit && llvm-cov report ./addon-test --instr-profile=coverage.profdata -ignore-filename-regex='(tests|build|node_modules|gtest|gmock|\\.vcpkg|/usr)/' > coverage-summary.txt",
"coverage:cpp:report": "cd build/test/unit/ && ls -lha && llvm-profdata merge -sparse default.profraw -o coverage.profdata && llvm-cov show ./addon-test -instr-profile=coverage.profdata -format=html -output-dir=coverage-html -ignore-filename-regex='(tests|build|node_modules|gtest|gmock|\\.vcpkg|/usr)/' && llvm-cov export ./addon-test -instr-profile=coverage.profdata -format=lcov -ignore-filename-regex='(tests|build|node_modules|gtest|gmock|\\.vcpkg|/usr)/' > lcov.info && npm run coverage:cpp:summary",
"coverage:cpp": "npm run coverage:cpp:build && npm run coverage:cpp:run && npm run coverage:cpp:report",
"test:all": "npm run test:unit && npm run test:integration && npm run test:cpp",
"test:mobile:generate": "bare ./scripts/generate-mobile-integration-tests.js",
"test:mobile:validate": "node scripts/validate-mobile-tests.js",
"test:types": "npm run typecheck && npm run check:generated && npm run test:types:consumer",
"test:types:consumer": "tsc --noEmit -p test/types/tsconfig.cjs.json && tsc --noEmit -p test/types/tsconfig.esm.json",
"test:dts": "npm run test:types"
},
"files": [
"addon.js",
"addon.d.ts",
"binding.js",
"index.js",
"index.d.ts",
"lib",
"prebuilds",
"LICENSE",
"NOTICE"
],
"repository": {
"type": "git",
"url": "git+https://github.com/tetherto/qvac.git",
"directory": "packages/vla-ggml"
},
"author": "Tether",
"license": "Apache-2.0",
"bugs": "https://github.com/tetherto/qvac/issues",
"homepage": "https://qvac.tether.io",
"dependencies": {
"@qvac/error": "^0.1.0",
"@qvac/infer-base": "^0.6.2",
"@qvac/logging": "^0.1.0",
"bare-fs": "^4.5.1",
"bare-path": "^3.0.0"
},
"devDependencies": {
"@types/node": "^24.2.1",
"brittle": "^3.16.5",
"cmake-bare": "^1.7.5",
"cmake-vcpkg": "^1.1.0",
"eslint": "^9.39.4",
"eslint-import-resolver-typescript": "^4.4.5",
"eslint-plugin-import": "^2.32.0",
"lunte": "^1.8.0",
"prettier": "^3.6.2",
"prettier-config-holepunch": "^2.0.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.63.0"
},
"exports": {
"./package": "./package.json",
".": {
"types": "./index.d.ts",
"default": "./index.js"
},
"./binding.js": "./binding.js"
},
"main": "index.js",
"types": "index.d.ts"
}