-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathpackage.json
More file actions
156 lines (156 loc) · 5.73 KB
/
Copy pathpackage.json
File metadata and controls
156 lines (156 loc) · 5.73 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"name": "opencode-codebase-index",
"version": "0.23.0",
"description": "Host-neutral semantic codebase search with embeddings, symbol discovery, and call-graph tooling",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"bin": {
"opencode-codebase-index-mcp": "dist/cli.js"
},
"license": "MIT",
"author": "Kenneth",
"repository": {
"type": "git",
"url": "https://github.com/Helweg/open-codebase-index"
},
"keywords": [
"semantic-search",
"codebase-indexing",
"vector-search",
"embeddings",
"tree-sitter",
"ai-coding",
"agent-extensions",
"pi-package",
"pi"
],
"engines": {
"node": ">=20.0.0"
},
"scripts": {
"build": "npm run build:ts && npm run build:native",
"build:ts": "tsup && node scripts/smoke-test-built-cli.mjs",
"smoke:package": "node scripts/smoke-test-packed-cli.mjs",
"build:native": "cd native && cargo build --release && napi build --release --platform",
"build:native:all": "cd native && napi build --release --platform --target x86_64-apple-darwin --target aarch64-apple-darwin --target x86_64-unknown-linux-gnu --target aarch64-unknown-linux-gnu --target x86_64-pc-windows-msvc",
"visualize": "node dist/cli.js visualize",
"dev": "tsup --watch",
"eval": "npx tsx src/cli.ts eval run",
"eval:agent": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/agent-context.json",
"eval:pre-edit": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/pre-edit-context.json",
"eval:representative": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/representative.json",
"eval:representative:ollama": "npx tsx src/cli.ts eval run --config .github/eval-ollama-full-config.json --reindex --dataset benchmarks/golden/representative.json --budget benchmarks/budgets/representative.json",
"eval:agent:ci": "npx tsx src/cli.ts eval run --dataset benchmarks/golden/agent-context.json --reindex --ci --budget benchmarks/budgets/agent-context.json",
"eval:pre-edit:ci": "npx tsx src/cli.ts eval run --config .github/eval-config.json --reindex --dataset benchmarks/golden/pre-edit-context.json --ci --budget benchmarks/budgets/pre-edit.json",
"eval:smoke": "npx tsx src/cli.ts eval run --config .github/eval-config.json --reindex --dataset benchmarks/golden/small.json",
"eval:ci": "npx tsx src/cli.ts eval run --reindex --ci --budget benchmarks/budgets/default.json --against benchmarks/baselines/eval-baseline-summary.json",
"eval:ci:ollama": "npx tsx src/cli.ts eval run --config .github/eval-ollama-config.json --reindex --ci --budget benchmarks/budgets/default.json --against benchmarks/baselines/eval-baseline-summary.json",
"eval:compare": "npx tsx src/cli.ts eval compare",
"eval:effectiveness": "npx tsx scripts/effectiveness-report.ts",
"benchmark:indexing-memory": "npx tsx benchmarks/indexing-memory.ts",
"benchmark:watcher": "npx tsx benchmarks/watcher.ts",
"benchmark:cross-repo:check": "npx vitest run tests/cross-repo-benchmark-dataset-dir.test.ts tests/cross-repo-codegraph.test.ts tests/cross-repo-codebase-memory.test.ts",
"benchmark:cross-repo:sources:check": "npx tsx scripts/validate-cross-repo-cohort.ts --cohort-dir benchmarks/golden/expanded-cross-repo --work-dir ./.tmp/cross-repo-sources",
"dev:link-mcp": "node scripts/link-local-mcp-bin.mjs",
"test": "vitest",
"pretest:run": "node scripts/run-build-native-with-rustflags.mjs && npm run build:ts",
"test:run": "vitest run",
"pretest:coverage": "node scripts/run-build-native-with-rustflags.mjs && npm run build:ts",
"test:coverage": "vitest run --coverage",
"lint": "eslint src/",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run build"
},
"files": [
"dist",
"THIRD_PARTY_LICENSES.md",
"native/*.node",
"skill",
"commands",
"scripts/link-local-mcp-bin.mjs",
".codex-plugin",
".claude-plugin",
".mcp.json",
"skills",
"hooks"
],
"napi": {
"binaryName": "codebase-index-native",
"targets": [
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"x86_64-pc-windows-msvc"
]
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
"@opencode-ai/plugin": "^1.0.0",
"chokidar": "^5.0.0",
"ignore": "^7.0.5",
"p-queue": "^9.1.1",
"p-retry": "^7.1.1",
"tiktoken": "^1.0.15",
"typebox": "^1.3.2",
"unicode-case-folding": "1.1.1",
"zod": "^4.4.3"
},
"devDependencies": {
"@earendil-works/pi-coding-agent": "^0.84.0",
"@eslint/js": "^9.39.4",
"@napi-rs/cli": "^3.6.0",
"@types/node": "^25.5.2",
"@vitest/coverage-v8": "^4.1.2",
"eslint": "^9.39.4",
"tsup": "^8.1.0",
"tsx": "^4.23.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.58.0",
"vitest": "^4.1.2"
},
"overrides": {
"@eslint/config-array": "0.23.5",
"@hono/node-server": "2.0.10",
"brace-expansion": "5.0.9",
"express-rate-limit": "8.5.2",
"fast-uri": "3.1.5",
"hono": "4.12.34",
"ip-address": "10.4.0",
"postcss": "8.5.26",
"qs": "6.15.2",
"vite": "8.0.16",
"esbuild": "0.28.1",
"body-parser": "2.3.0",
"js-yaml": "4.3.1",
"undici": "8.10.0"
},
"peerDependencies": {
"@earendil-works/pi-coding-agent": "*",
"@opencode-ai/plugin": "^1.0.0"
},
"peerDependenciesMeta": {
"@opencode-ai/plugin": {
"optional": true
},
"@earendil-works/pi-coding-agent": {
"optional": true
}
},
"pi": {
"extensions": [
"./dist/pi-extension.js"
],
"skills": [
"./skills"
]
}
}