-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 3.13 KB
/
Copy pathpackage.json
File metadata and controls
94 lines (94 loc) · 3.13 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
{
"name": "@nguyenthdat/opencode-memory",
"version": "0.3.3",
"description": "Local-first persistent memory for OpenCode with a Rust, zvec, and llama.cpp sidecar",
"type": "module",
"packageManager": "bun@1.3.14",
"engines": {
"bun": ">=1.3.0",
"opencode": ">=1.18.4"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./server": {
"types": "./dist/server.d.ts",
"import": "./dist/server.js",
"default": "./dist/server.js"
}
},
"files": [
"dist",
"rules/flow.md",
"README.md",
"LICENSE",
"THIRD_PARTY_NOTICES.md",
"notices"
],
"scripts": {
"clean": "rm -rf dist",
"generate:protocol": "protoc --plugin=protoc-gen-es=./node_modules/.bin/protoc-gen-es --es_out=opencode-memory/src/generated --es_opt=target=ts,import_extension=js -I schema schema/opencode/memory/v1/memory.proto",
"generate:protocol:check": "bun run generate:protocol && git diff --exit-code -- opencode-memory/src/generated",
"lint:proto": "buf lint",
"typecheck": "tsc -p tsconfig.json --noEmit",
"build:ts": "tsc -p tsconfig.build.json",
"build": "bun run clean && bun run typecheck && bun run build:ts",
"build:native": "cargo build --locked && bun scripts/stage-native.ts --profile debug --runtime --destination target/debug",
"build:native:release": "cargo build --release --locked && bun scripts/stage-native.ts --profile release --runtime --destination target/release",
"test:ts": "bun test opencode-memory/src tests/ts",
"test:rust": "cargo test --locked --lib",
"test:protocol": "bun scripts/test-protocol-e2e.ts",
"test": "bun run test:ts && bun run test:rust",
"lint": "bun run typecheck && cargo clippy --all-targets --locked -- -D warnings",
"format": "prettier --write . && cargo fmt",
"format:check": "prettier --check . && cargo fmt --check",
"versions:check": "bun scripts/check-versions.ts",
"pack:check": "bun scripts/verify-package.ts",
"prepack": "bun run build"
},
"dependencies": {
"@bufbuild/protobuf": "2.13.0",
"yaml": "^2.9.0"
},
"peerDependencies": {
"@opencode-ai/plugin": ">=1.18.4 <2"
},
"optionalDependencies": {
"@nguyenthdat/opencode-memory-darwin-arm64": "0.3.3",
"@nguyenthdat/opencode-memory-linux-arm64-gnu": "0.3.3",
"@nguyenthdat/opencode-memory-linux-x64-gnu": "0.3.3"
},
"devDependencies": {
"@opencode-ai/plugin": "^1.18.4",
"@bufbuild/protoc-gen-es": "2.13.0",
"@types/bun": "^1.3.14",
"@types/node": "^22.20.1",
"prettier": "^3.9.0",
"typescript": "^5.9.3"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nguyenthdat/opencode-native-memory.git"
},
"homepage": "https://github.com/nguyenthdat/opencode-native-memory#readme",
"bugs": {
"url": "https://github.com/nguyenthdat/opencode-native-memory/issues"
},
"keywords": [
"opencode",
"memory",
"llama.cpp",
"huggingface",
"protobuf",
"zvec"
],
"author": "Dat Nguyen",
"license": "MIT"
}