@stratadb/core 0.6.0
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/.github/workflows/release.yml +125 -0
- package/Cargo.lock +1169 -0
- package/Cargo.toml +25 -0
- package/LICENSE +21 -0
- package/README.md +255 -0
- package/__tests__/strata.test.js +217 -0
- package/build.rs +5 -0
- package/index.d.ts +536 -0
- package/index.js +236 -0
- package/jest.config.js +5 -0
- package/npm/darwin-arm64/README.md +3 -0
- package/npm/darwin-arm64/package.json +41 -0
- package/npm/darwin-x64/README.md +3 -0
- package/npm/darwin-x64/package.json +41 -0
- package/npm/linux-arm64-gnu/README.md +3 -0
- package/npm/linux-arm64-gnu/package.json +44 -0
- package/npm/linux-arm64-musl/README.md +3 -0
- package/npm/linux-arm64-musl/package.json +44 -0
- package/npm/linux-x64-gnu/README.md +3 -0
- package/npm/linux-x64-gnu/package.json +44 -0
- package/npm/linux-x64-musl/README.md +3 -0
- package/npm/linux-x64-musl/package.json +44 -0
- package/npm/win32-x64-msvc/README.md +3 -0
- package/npm/win32-x64-msvc/package.json +41 -0
- package/package.json +67 -0
- package/src/lib.rs +775 -0
package/index.js
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* auto-generated by NAPI-RS */
|
|
3
|
+
|
|
4
|
+
const { existsSync, readFileSync } = require('fs')
|
|
5
|
+
const { join } = require('path')
|
|
6
|
+
|
|
7
|
+
const { platform, arch } = process
|
|
8
|
+
|
|
9
|
+
let nativeBinding = null
|
|
10
|
+
let localFileExisted = false
|
|
11
|
+
let loadError = null
|
|
12
|
+
|
|
13
|
+
function isMusl() {
|
|
14
|
+
// For Node 10
|
|
15
|
+
if (!process.report || typeof process.report.getReport !== 'function') {
|
|
16
|
+
try {
|
|
17
|
+
const lddPath = require('child_process').execSync('which ldd').toString().trim()
|
|
18
|
+
return readFileSync(lddPath, 'utf8').includes('musl')
|
|
19
|
+
} catch (e) {
|
|
20
|
+
return true
|
|
21
|
+
}
|
|
22
|
+
} else {
|
|
23
|
+
const { glibcVersionRuntime } = process.report.getReport().header
|
|
24
|
+
return !glibcVersionRuntime
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
switch (platform) {
|
|
29
|
+
case 'android':
|
|
30
|
+
switch (arch) {
|
|
31
|
+
case 'arm64':
|
|
32
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.android-arm64.node'))
|
|
33
|
+
try {
|
|
34
|
+
if (localFileExisted) {
|
|
35
|
+
nativeBinding = require('./stratadb.android-arm64.node')
|
|
36
|
+
} else {
|
|
37
|
+
nativeBinding = require('stratadb-android-arm64')
|
|
38
|
+
}
|
|
39
|
+
} catch (e) {
|
|
40
|
+
loadError = e
|
|
41
|
+
}
|
|
42
|
+
break
|
|
43
|
+
case 'arm':
|
|
44
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.android-arm-eabi.node'))
|
|
45
|
+
try {
|
|
46
|
+
if (localFileExisted) {
|
|
47
|
+
nativeBinding = require('./stratadb.android-arm-eabi.node')
|
|
48
|
+
} else {
|
|
49
|
+
nativeBinding = require('stratadb-android-arm-eabi')
|
|
50
|
+
}
|
|
51
|
+
} catch (e) {
|
|
52
|
+
loadError = e
|
|
53
|
+
}
|
|
54
|
+
break
|
|
55
|
+
default:
|
|
56
|
+
throw new Error(`Unsupported architecture on Android ${arch}`)
|
|
57
|
+
}
|
|
58
|
+
break
|
|
59
|
+
case 'win32':
|
|
60
|
+
switch (arch) {
|
|
61
|
+
case 'x64':
|
|
62
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.win32-x64-msvc.node'))
|
|
63
|
+
try {
|
|
64
|
+
if (localFileExisted) {
|
|
65
|
+
nativeBinding = require('./stratadb.win32-x64-msvc.node')
|
|
66
|
+
} else {
|
|
67
|
+
nativeBinding = require('stratadb-win32-x64-msvc')
|
|
68
|
+
}
|
|
69
|
+
} catch (e) {
|
|
70
|
+
loadError = e
|
|
71
|
+
}
|
|
72
|
+
break
|
|
73
|
+
case 'ia32':
|
|
74
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.win32-ia32-msvc.node'))
|
|
75
|
+
try {
|
|
76
|
+
if (localFileExisted) {
|
|
77
|
+
nativeBinding = require('./stratadb.win32-ia32-msvc.node')
|
|
78
|
+
} else {
|
|
79
|
+
nativeBinding = require('stratadb-win32-ia32-msvc')
|
|
80
|
+
}
|
|
81
|
+
} catch (e) {
|
|
82
|
+
loadError = e
|
|
83
|
+
}
|
|
84
|
+
break
|
|
85
|
+
case 'arm64':
|
|
86
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.win32-arm64-msvc.node'))
|
|
87
|
+
try {
|
|
88
|
+
if (localFileExisted) {
|
|
89
|
+
nativeBinding = require('./stratadb.win32-arm64-msvc.node')
|
|
90
|
+
} else {
|
|
91
|
+
nativeBinding = require('stratadb-win32-arm64-msvc')
|
|
92
|
+
}
|
|
93
|
+
} catch (e) {
|
|
94
|
+
loadError = e
|
|
95
|
+
}
|
|
96
|
+
break
|
|
97
|
+
default:
|
|
98
|
+
throw new Error(`Unsupported architecture on Windows: ${arch}`)
|
|
99
|
+
}
|
|
100
|
+
break
|
|
101
|
+
case 'darwin':
|
|
102
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.darwin-universal.node'))
|
|
103
|
+
try {
|
|
104
|
+
if (localFileExisted) {
|
|
105
|
+
nativeBinding = require('./stratadb.darwin-universal.node')
|
|
106
|
+
} else {
|
|
107
|
+
nativeBinding = require('stratadb-darwin-universal')
|
|
108
|
+
}
|
|
109
|
+
break
|
|
110
|
+
} catch {}
|
|
111
|
+
switch (arch) {
|
|
112
|
+
case 'x64':
|
|
113
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.darwin-x64.node'))
|
|
114
|
+
try {
|
|
115
|
+
if (localFileExisted) {
|
|
116
|
+
nativeBinding = require('./stratadb.darwin-x64.node')
|
|
117
|
+
} else {
|
|
118
|
+
nativeBinding = require('stratadb-darwin-x64')
|
|
119
|
+
}
|
|
120
|
+
} catch (e) {
|
|
121
|
+
loadError = e
|
|
122
|
+
}
|
|
123
|
+
break
|
|
124
|
+
case 'arm64':
|
|
125
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.darwin-arm64.node'))
|
|
126
|
+
try {
|
|
127
|
+
if (localFileExisted) {
|
|
128
|
+
nativeBinding = require('./stratadb.darwin-arm64.node')
|
|
129
|
+
} else {
|
|
130
|
+
nativeBinding = require('stratadb-darwin-arm64')
|
|
131
|
+
}
|
|
132
|
+
} catch (e) {
|
|
133
|
+
loadError = e
|
|
134
|
+
}
|
|
135
|
+
break
|
|
136
|
+
default:
|
|
137
|
+
throw new Error(`Unsupported architecture on macOS: ${arch}`)
|
|
138
|
+
}
|
|
139
|
+
break
|
|
140
|
+
case 'freebsd':
|
|
141
|
+
if (arch !== 'x64') {
|
|
142
|
+
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`)
|
|
143
|
+
}
|
|
144
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.freebsd-x64.node'))
|
|
145
|
+
try {
|
|
146
|
+
if (localFileExisted) {
|
|
147
|
+
nativeBinding = require('./stratadb.freebsd-x64.node')
|
|
148
|
+
} else {
|
|
149
|
+
nativeBinding = require('stratadb-freebsd-x64')
|
|
150
|
+
}
|
|
151
|
+
} catch (e) {
|
|
152
|
+
loadError = e
|
|
153
|
+
}
|
|
154
|
+
break
|
|
155
|
+
case 'linux':
|
|
156
|
+
switch (arch) {
|
|
157
|
+
case 'x64':
|
|
158
|
+
if (isMusl()) {
|
|
159
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.linux-x64-musl.node'))
|
|
160
|
+
try {
|
|
161
|
+
if (localFileExisted) {
|
|
162
|
+
nativeBinding = require('./stratadb.linux-x64-musl.node')
|
|
163
|
+
} else {
|
|
164
|
+
nativeBinding = require('stratadb-linux-x64-musl')
|
|
165
|
+
}
|
|
166
|
+
} catch (e) {
|
|
167
|
+
loadError = e
|
|
168
|
+
}
|
|
169
|
+
} else {
|
|
170
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.linux-x64-gnu.node'))
|
|
171
|
+
try {
|
|
172
|
+
if (localFileExisted) {
|
|
173
|
+
nativeBinding = require('./stratadb.linux-x64-gnu.node')
|
|
174
|
+
} else {
|
|
175
|
+
nativeBinding = require('stratadb-linux-x64-gnu')
|
|
176
|
+
}
|
|
177
|
+
} catch (e) {
|
|
178
|
+
loadError = e
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
break
|
|
182
|
+
case 'arm64':
|
|
183
|
+
if (isMusl()) {
|
|
184
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.linux-arm64-musl.node'))
|
|
185
|
+
try {
|
|
186
|
+
if (localFileExisted) {
|
|
187
|
+
nativeBinding = require('./stratadb.linux-arm64-musl.node')
|
|
188
|
+
} else {
|
|
189
|
+
nativeBinding = require('stratadb-linux-arm64-musl')
|
|
190
|
+
}
|
|
191
|
+
} catch (e) {
|
|
192
|
+
loadError = e
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.linux-arm64-gnu.node'))
|
|
196
|
+
try {
|
|
197
|
+
if (localFileExisted) {
|
|
198
|
+
nativeBinding = require('./stratadb.linux-arm64-gnu.node')
|
|
199
|
+
} else {
|
|
200
|
+
nativeBinding = require('stratadb-linux-arm64-gnu')
|
|
201
|
+
}
|
|
202
|
+
} catch (e) {
|
|
203
|
+
loadError = e
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
break
|
|
207
|
+
case 'arm':
|
|
208
|
+
localFileExisted = existsSync(join(__dirname, 'stratadb.linux-arm-gnueabihf.node'))
|
|
209
|
+
try {
|
|
210
|
+
if (localFileExisted) {
|
|
211
|
+
nativeBinding = require('./stratadb.linux-arm-gnueabihf.node')
|
|
212
|
+
} else {
|
|
213
|
+
nativeBinding = require('stratadb-linux-arm-gnueabihf')
|
|
214
|
+
}
|
|
215
|
+
} catch (e) {
|
|
216
|
+
loadError = e
|
|
217
|
+
}
|
|
218
|
+
break
|
|
219
|
+
default:
|
|
220
|
+
throw new Error(`Unsupported architecture on Linux: ${arch}`)
|
|
221
|
+
}
|
|
222
|
+
break
|
|
223
|
+
default:
|
|
224
|
+
throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`)
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (!nativeBinding) {
|
|
228
|
+
if (loadError) {
|
|
229
|
+
throw loadError
|
|
230
|
+
}
|
|
231
|
+
throw new Error(`Failed to load native binding`)
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const { Strata } = nativeBinding
|
|
235
|
+
|
|
236
|
+
module.exports.Strata = Strata
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stratadb/core-darwin-arm64",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"os": [
|
|
5
|
+
"darwin"
|
|
6
|
+
],
|
|
7
|
+
"cpu": [
|
|
8
|
+
"arm64"
|
|
9
|
+
],
|
|
10
|
+
"main": "stratadb.darwin-arm64.node",
|
|
11
|
+
"files": [
|
|
12
|
+
"stratadb.darwin-arm64.node"
|
|
13
|
+
],
|
|
14
|
+
"description": "Node.js SDK for StrataDB - an embedded database for AI agents",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"stratadb",
|
|
17
|
+
"database",
|
|
18
|
+
"embedded",
|
|
19
|
+
"ai",
|
|
20
|
+
"agents",
|
|
21
|
+
"vector",
|
|
22
|
+
"kv-store",
|
|
23
|
+
"napi-rs"
|
|
24
|
+
],
|
|
25
|
+
"author": "StrataDB Labs",
|
|
26
|
+
"homepage": "https://stratadb.org",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">= 16"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/stratadb-labs/strata-node.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/stratadb-labs/strata-node/issues"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stratadb/core-darwin-x64",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"os": [
|
|
5
|
+
"darwin"
|
|
6
|
+
],
|
|
7
|
+
"cpu": [
|
|
8
|
+
"x64"
|
|
9
|
+
],
|
|
10
|
+
"main": "stratadb.darwin-x64.node",
|
|
11
|
+
"files": [
|
|
12
|
+
"stratadb.darwin-x64.node"
|
|
13
|
+
],
|
|
14
|
+
"description": "Node.js SDK for StrataDB - an embedded database for AI agents",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"stratadb",
|
|
17
|
+
"database",
|
|
18
|
+
"embedded",
|
|
19
|
+
"ai",
|
|
20
|
+
"agents",
|
|
21
|
+
"vector",
|
|
22
|
+
"kv-store",
|
|
23
|
+
"napi-rs"
|
|
24
|
+
],
|
|
25
|
+
"author": "StrataDB Labs",
|
|
26
|
+
"homepage": "https://stratadb.org",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">= 16"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/stratadb-labs/strata-node.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/stratadb-labs/strata-node/issues"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stratadb/core-linux-arm64-gnu",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"os": [
|
|
5
|
+
"linux"
|
|
6
|
+
],
|
|
7
|
+
"cpu": [
|
|
8
|
+
"arm64"
|
|
9
|
+
],
|
|
10
|
+
"main": "stratadb.linux-arm64-gnu.node",
|
|
11
|
+
"files": [
|
|
12
|
+
"stratadb.linux-arm64-gnu.node"
|
|
13
|
+
],
|
|
14
|
+
"description": "Node.js SDK for StrataDB - an embedded database for AI agents",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"stratadb",
|
|
17
|
+
"database",
|
|
18
|
+
"embedded",
|
|
19
|
+
"ai",
|
|
20
|
+
"agents",
|
|
21
|
+
"vector",
|
|
22
|
+
"kv-store",
|
|
23
|
+
"napi-rs"
|
|
24
|
+
],
|
|
25
|
+
"author": "StrataDB Labs",
|
|
26
|
+
"homepage": "https://stratadb.org",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">= 16"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/stratadb-labs/strata-node.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/stratadb-labs/strata-node/issues"
|
|
40
|
+
},
|
|
41
|
+
"libc": [
|
|
42
|
+
"glibc"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stratadb/core-linux-arm64-musl",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"os": [
|
|
5
|
+
"linux"
|
|
6
|
+
],
|
|
7
|
+
"cpu": [
|
|
8
|
+
"arm64"
|
|
9
|
+
],
|
|
10
|
+
"main": "stratadb.linux-arm64-musl.node",
|
|
11
|
+
"files": [
|
|
12
|
+
"stratadb.linux-arm64-musl.node"
|
|
13
|
+
],
|
|
14
|
+
"description": "Node.js SDK for StrataDB - an embedded database for AI agents",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"stratadb",
|
|
17
|
+
"database",
|
|
18
|
+
"embedded",
|
|
19
|
+
"ai",
|
|
20
|
+
"agents",
|
|
21
|
+
"vector",
|
|
22
|
+
"kv-store",
|
|
23
|
+
"napi-rs"
|
|
24
|
+
],
|
|
25
|
+
"author": "StrataDB Labs",
|
|
26
|
+
"homepage": "https://stratadb.org",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">= 16"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/stratadb-labs/strata-node.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/stratadb-labs/strata-node/issues"
|
|
40
|
+
},
|
|
41
|
+
"libc": [
|
|
42
|
+
"musl"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stratadb/core-linux-x64-gnu",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"os": [
|
|
5
|
+
"linux"
|
|
6
|
+
],
|
|
7
|
+
"cpu": [
|
|
8
|
+
"x64"
|
|
9
|
+
],
|
|
10
|
+
"main": "stratadb.linux-x64-gnu.node",
|
|
11
|
+
"files": [
|
|
12
|
+
"stratadb.linux-x64-gnu.node"
|
|
13
|
+
],
|
|
14
|
+
"description": "Node.js SDK for StrataDB - an embedded database for AI agents",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"stratadb",
|
|
17
|
+
"database",
|
|
18
|
+
"embedded",
|
|
19
|
+
"ai",
|
|
20
|
+
"agents",
|
|
21
|
+
"vector",
|
|
22
|
+
"kv-store",
|
|
23
|
+
"napi-rs"
|
|
24
|
+
],
|
|
25
|
+
"author": "StrataDB Labs",
|
|
26
|
+
"homepage": "https://stratadb.org",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">= 16"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/stratadb-labs/strata-node.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/stratadb-labs/strata-node/issues"
|
|
40
|
+
},
|
|
41
|
+
"libc": [
|
|
42
|
+
"glibc"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stratadb/core-linux-x64-musl",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"os": [
|
|
5
|
+
"linux"
|
|
6
|
+
],
|
|
7
|
+
"cpu": [
|
|
8
|
+
"x64"
|
|
9
|
+
],
|
|
10
|
+
"main": "stratadb.linux-x64-musl.node",
|
|
11
|
+
"files": [
|
|
12
|
+
"stratadb.linux-x64-musl.node"
|
|
13
|
+
],
|
|
14
|
+
"description": "Node.js SDK for StrataDB - an embedded database for AI agents",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"stratadb",
|
|
17
|
+
"database",
|
|
18
|
+
"embedded",
|
|
19
|
+
"ai",
|
|
20
|
+
"agents",
|
|
21
|
+
"vector",
|
|
22
|
+
"kv-store",
|
|
23
|
+
"napi-rs"
|
|
24
|
+
],
|
|
25
|
+
"author": "StrataDB Labs",
|
|
26
|
+
"homepage": "https://stratadb.org",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">= 16"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/stratadb-labs/strata-node.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/stratadb-labs/strata-node/issues"
|
|
40
|
+
},
|
|
41
|
+
"libc": [
|
|
42
|
+
"musl"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stratadb/core-win32-x64-msvc",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"os": [
|
|
5
|
+
"win32"
|
|
6
|
+
],
|
|
7
|
+
"cpu": [
|
|
8
|
+
"x64"
|
|
9
|
+
],
|
|
10
|
+
"main": "stratadb.win32-x64-msvc.node",
|
|
11
|
+
"files": [
|
|
12
|
+
"stratadb.win32-x64-msvc.node"
|
|
13
|
+
],
|
|
14
|
+
"description": "Node.js SDK for StrataDB - an embedded database for AI agents",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"stratadb",
|
|
17
|
+
"database",
|
|
18
|
+
"embedded",
|
|
19
|
+
"ai",
|
|
20
|
+
"agents",
|
|
21
|
+
"vector",
|
|
22
|
+
"kv-store",
|
|
23
|
+
"napi-rs"
|
|
24
|
+
],
|
|
25
|
+
"author": "StrataDB Labs",
|
|
26
|
+
"homepage": "https://stratadb.org",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">= 16"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/stratadb-labs/strata-node.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/stratadb-labs/strata-node/issues"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stratadb/core",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Node.js SDK for StrataDB - an embedded database for AI agents",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"artifacts": "napi artifacts",
|
|
9
|
+
"build": "napi build --platform --release",
|
|
10
|
+
"build:debug": "napi build --platform",
|
|
11
|
+
"test": "jest",
|
|
12
|
+
"universal": "napi universal"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/stratadb-labs/strata-node.git"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"stratadb",
|
|
20
|
+
"database",
|
|
21
|
+
"embedded",
|
|
22
|
+
"ai",
|
|
23
|
+
"agents",
|
|
24
|
+
"vector",
|
|
25
|
+
"kv-store",
|
|
26
|
+
"napi-rs"
|
|
27
|
+
],
|
|
28
|
+
"author": "StrataDB Labs",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/stratadb-labs/strata-node/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://stratadb.org",
|
|
34
|
+
"napi": {
|
|
35
|
+
"name": "stratadb",
|
|
36
|
+
"triples": {
|
|
37
|
+
"defaults": true,
|
|
38
|
+
"additional": [
|
|
39
|
+
"x86_64-unknown-linux-musl",
|
|
40
|
+
"aarch64-unknown-linux-gnu",
|
|
41
|
+
"aarch64-apple-darwin",
|
|
42
|
+
"aarch64-unknown-linux-musl"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@napi-rs/cli": "^2.18.0",
|
|
48
|
+
"@types/jest": "^29.5.0",
|
|
49
|
+
"jest": "^29.7.0",
|
|
50
|
+
"ts-jest": "^29.1.0",
|
|
51
|
+
"typescript": "^5.0.0"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">= 16"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"optionalDependencies": {
|
|
60
|
+
"@stratadb/core-darwin-arm64": "0.6.0",
|
|
61
|
+
"@stratadb/core-darwin-x64": "0.6.0",
|
|
62
|
+
"@stratadb/core-linux-arm64-gnu": "0.6.0",
|
|
63
|
+
"@stratadb/core-linux-arm64-musl": "0.6.0",
|
|
64
|
+
"@stratadb/core-linux-x64-gnu": "0.6.0",
|
|
65
|
+
"@stratadb/core-linux-x64-musl": "0.6.0"
|
|
66
|
+
}
|
|
67
|
+
}
|