infiniloom-node 0.6.1 → 0.6.3
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/index.d.ts +1604 -853
- package/index.js +22 -18
- package/infiniloom.darwin-arm64.node +0 -0
- package/infiniloom.darwin-x64.node +0 -0
- package/infiniloom.linux-arm64-gnu.node +0 -0
- package/infiniloom.linux-x64-gnu.node +0 -0
- package/package.json +42 -9
- package/schemas.ts +691 -0
- package/tsconfig.json +40 -0
- package/types.ts +588 -0
- package/infiniloom.win32-x64-msvc.node +0 -0
package/index.js
CHANGED
|
@@ -310,18 +310,16 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const {
|
|
313
|
+
const { scanSecurity, scan, scanWithOptions, countTokens, chunk, pack, isGitRepo, GitRepo, buildIndex, indexStatus, findSymbol, getCallers, getCallees, getReferences, findSymbolFiltered, getCallersFiltered, getCalleesFiltered, getReferencesFiltered, findSymbolFilteredAsync, getCallersFilteredAsync, getCalleesFilteredAsync, getReferencesFilteredAsync, getCallGraph, findSymbolAsync, getCallersAsync, getCalleesAsync, getReferencesAsync, getCallGraphAsync, findCircularDependencies, findCircularDependenciesAsync, getExportedSymbols, getExportedSymbolsAsync, getSymbolsInFile, getSymbolSource, getChangedSymbols, getTestsForFile, getCallSites, getChangedSymbolsFiltered, getTransitiveCallers, getCallSitesWithContext, getSymbolsInFileAsync, getSymbolSourceAsync, getChangedSymbolsAsync, getTestsForFileAsync, getCallSitesAsync, getChangedSymbolsFilteredAsync, getTransitiveCallersAsync, getCallSitesWithContextAsync, getDiffContext, analyzeImpact, embed, embedAsync, loadEmbedManifest, loadEmbedManifestAsync, deleteEmbedManifest, deleteEmbedManifestAsync, extractDocumentation, extractDocumentationAsync, detectDeadCode, detectDeadCodeAsync, detectBreakingChanges, detectBreakingChangesAsync, version, packAsync, scanAsync, buildIndexAsync, chunkAsync, analyzeImpactAsync, getDiffContextAsync, Infiniloom, semanticCompress } = nativeBinding
|
|
314
314
|
|
|
315
|
-
module.exports.
|
|
316
|
-
module.exports.pack = pack
|
|
315
|
+
module.exports.scanSecurity = scanSecurity
|
|
317
316
|
module.exports.scan = scan
|
|
318
317
|
module.exports.scanWithOptions = scanWithOptions
|
|
319
318
|
module.exports.countTokens = countTokens
|
|
320
|
-
module.exports.
|
|
321
|
-
module.exports.
|
|
319
|
+
module.exports.chunk = chunk
|
|
320
|
+
module.exports.pack = pack
|
|
322
321
|
module.exports.isGitRepo = isGitRepo
|
|
323
322
|
module.exports.GitRepo = GitRepo
|
|
324
|
-
module.exports.scanSecurity = scanSecurity
|
|
325
323
|
module.exports.buildIndex = buildIndex
|
|
326
324
|
module.exports.indexStatus = indexStatus
|
|
327
325
|
module.exports.findSymbol = findSymbol
|
|
@@ -342,31 +340,28 @@ module.exports.getCallersAsync = getCallersAsync
|
|
|
342
340
|
module.exports.getCalleesAsync = getCalleesAsync
|
|
343
341
|
module.exports.getReferencesAsync = getReferencesAsync
|
|
344
342
|
module.exports.getCallGraphAsync = getCallGraphAsync
|
|
345
|
-
module.exports.
|
|
346
|
-
module.exports.
|
|
347
|
-
module.exports.
|
|
348
|
-
module.exports.
|
|
349
|
-
module.exports.scanAsync = scanAsync
|
|
350
|
-
module.exports.buildIndexAsync = buildIndexAsync
|
|
351
|
-
module.exports.chunkAsync = chunkAsync
|
|
352
|
-
module.exports.analyzeImpactAsync = analyzeImpactAsync
|
|
353
|
-
module.exports.getDiffContextAsync = getDiffContextAsync
|
|
343
|
+
module.exports.findCircularDependencies = findCircularDependencies
|
|
344
|
+
module.exports.findCircularDependenciesAsync = findCircularDependenciesAsync
|
|
345
|
+
module.exports.getExportedSymbols = getExportedSymbols
|
|
346
|
+
module.exports.getExportedSymbolsAsync = getExportedSymbolsAsync
|
|
354
347
|
module.exports.getSymbolsInFile = getSymbolsInFile
|
|
355
348
|
module.exports.getSymbolSource = getSymbolSource
|
|
356
349
|
module.exports.getChangedSymbols = getChangedSymbols
|
|
357
350
|
module.exports.getTestsForFile = getTestsForFile
|
|
358
351
|
module.exports.getCallSites = getCallSites
|
|
352
|
+
module.exports.getChangedSymbolsFiltered = getChangedSymbolsFiltered
|
|
353
|
+
module.exports.getTransitiveCallers = getTransitiveCallers
|
|
354
|
+
module.exports.getCallSitesWithContext = getCallSitesWithContext
|
|
359
355
|
module.exports.getSymbolsInFileAsync = getSymbolsInFileAsync
|
|
360
356
|
module.exports.getSymbolSourceAsync = getSymbolSourceAsync
|
|
361
357
|
module.exports.getChangedSymbolsAsync = getChangedSymbolsAsync
|
|
362
358
|
module.exports.getTestsForFileAsync = getTestsForFileAsync
|
|
363
359
|
module.exports.getCallSitesAsync = getCallSitesAsync
|
|
364
|
-
module.exports.getChangedSymbolsFiltered = getChangedSymbolsFiltered
|
|
365
|
-
module.exports.getTransitiveCallers = getTransitiveCallers
|
|
366
|
-
module.exports.getCallSitesWithContext = getCallSitesWithContext
|
|
367
360
|
module.exports.getChangedSymbolsFilteredAsync = getChangedSymbolsFilteredAsync
|
|
368
361
|
module.exports.getTransitiveCallersAsync = getTransitiveCallersAsync
|
|
369
362
|
module.exports.getCallSitesWithContextAsync = getCallSitesWithContextAsync
|
|
363
|
+
module.exports.getDiffContext = getDiffContext
|
|
364
|
+
module.exports.analyzeImpact = analyzeImpact
|
|
370
365
|
module.exports.embed = embed
|
|
371
366
|
module.exports.embedAsync = embedAsync
|
|
372
367
|
module.exports.loadEmbedManifest = loadEmbedManifest
|
|
@@ -379,3 +374,12 @@ module.exports.detectDeadCode = detectDeadCode
|
|
|
379
374
|
module.exports.detectDeadCodeAsync = detectDeadCodeAsync
|
|
380
375
|
module.exports.detectBreakingChanges = detectBreakingChanges
|
|
381
376
|
module.exports.detectBreakingChangesAsync = detectBreakingChangesAsync
|
|
377
|
+
module.exports.version = version
|
|
378
|
+
module.exports.packAsync = packAsync
|
|
379
|
+
module.exports.scanAsync = scanAsync
|
|
380
|
+
module.exports.buildIndexAsync = buildIndexAsync
|
|
381
|
+
module.exports.chunkAsync = chunkAsync
|
|
382
|
+
module.exports.analyzeImpactAsync = analyzeImpactAsync
|
|
383
|
+
module.exports.getDiffContextAsync = getDiffContextAsync
|
|
384
|
+
module.exports.Infiniloom = Infiniloom
|
|
385
|
+
module.exports.semanticCompress = semanticCompress
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infiniloom-node",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Node.js bindings for Infiniloom - AST-aware code context engine for RAG and vector databases. Tree-sitter parsing, PageRank ranking, BLAKE3 content-addressable chunks, 27+ tokenizers.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"napi": {
|
|
8
8
|
"name": "infiniloom",
|
|
9
9
|
"triples": {
|
|
10
|
-
"defaults":
|
|
10
|
+
"defaults": false,
|
|
11
11
|
"additional": [
|
|
12
|
+
"x86_64-unknown-linux-gnu",
|
|
12
13
|
"x86_64-unknown-linux-musl",
|
|
13
14
|
"aarch64-unknown-linux-gnu",
|
|
14
|
-
"armv7-unknown-linux-gnueabihf",
|
|
15
|
-
"aarch64-apple-darwin",
|
|
16
|
-
"aarch64-linux-android",
|
|
17
|
-
"x86_64-unknown-freebsd",
|
|
18
15
|
"aarch64-unknown-linux-musl",
|
|
19
|
-
"
|
|
16
|
+
"x86_64-apple-darwin",
|
|
17
|
+
"aarch64-apple-darwin"
|
|
20
18
|
]
|
|
21
19
|
}
|
|
22
20
|
},
|
|
@@ -66,18 +64,53 @@
|
|
|
66
64
|
"artifacts": "napi artifacts",
|
|
67
65
|
"build": "napi build --platform --release",
|
|
68
66
|
"build:debug": "napi build --platform",
|
|
69
|
-
"
|
|
67
|
+
"build:types": "tsc -p tsconfig.json --declaration --emitDeclarationOnly --outDir .",
|
|
68
|
+
"prepublishOnly": "napi prepublish -t npm && npm run build:types",
|
|
70
69
|
"test": "node --test",
|
|
70
|
+
"typecheck": "tsc --noEmit",
|
|
71
71
|
"version": "napi version"
|
|
72
72
|
},
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"zod": "^3.23.0"
|
|
75
|
+
},
|
|
73
76
|
"devDependencies": {
|
|
74
|
-
"@napi-rs/cli": "^2.18.0"
|
|
77
|
+
"@napi-rs/cli": "^2.18.0",
|
|
78
|
+
"typescript": "^5.3.0"
|
|
75
79
|
},
|
|
76
80
|
"files": [
|
|
77
81
|
"index.js",
|
|
78
82
|
"index.d.ts",
|
|
83
|
+
"types.ts",
|
|
84
|
+
"types.d.ts",
|
|
85
|
+
"schemas.ts",
|
|
86
|
+
"schemas.d.ts",
|
|
87
|
+
"schemas.js",
|
|
88
|
+
"tsconfig.json",
|
|
79
89
|
"*.node"
|
|
80
90
|
],
|
|
91
|
+
"exports": {
|
|
92
|
+
".": {
|
|
93
|
+
"types": "./index.d.ts",
|
|
94
|
+
"require": "./index.js",
|
|
95
|
+
"import": "./index.js"
|
|
96
|
+
},
|
|
97
|
+
"./types": {
|
|
98
|
+
"types": "./types.d.ts",
|
|
99
|
+
"require": "./types.js",
|
|
100
|
+
"import": "./types.js"
|
|
101
|
+
},
|
|
102
|
+
"./schemas": {
|
|
103
|
+
"types": "./schemas.d.ts",
|
|
104
|
+
"require": "./schemas.js",
|
|
105
|
+
"import": "./schemas.js"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"typesVersions": {
|
|
109
|
+
"*": {
|
|
110
|
+
"types": ["./types.d.ts"],
|
|
111
|
+
"schemas": ["./schemas.d.ts"]
|
|
112
|
+
}
|
|
113
|
+
},
|
|
81
114
|
"bugs": {
|
|
82
115
|
"url": "https://github.com/Topos-Labs/infiniloom/issues"
|
|
83
116
|
},
|