@ebowwa/claudecodehistory 1.5.1 → 1.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/dist/history-service.d.ts.map +1 -1
- package/dist/history-service.js +2 -2
- package/dist/history-service.js.map +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -1
- package/package.json +32 -9
- package/rust/Cargo.lock +1955 -0
- package/rust/Cargo.toml +90 -0
- package/rust/build.rs +4 -0
- package/rust/claudecodehistory.darwin-arm64.node +0 -0
- package/rust/index.d.ts +0 -0
- package/rust/package.json +69 -0
- package/rust/src/lib.rs +800 -0
- package/rust/src/parser.rs +261 -0
- package/rust/src/search/index.rs +206 -0
- package/rust/src/search/mod.rs +291 -0
- package/rust/src/search/query.rs +458 -0
- package/rust/src/search/schema.rs +115 -0
- package/rust/src/types.rs +248 -0
- package/rust/src/utils.rs +210 -0
- package/typescript/dist/history-service.d.ts +187 -0
- package/typescript/dist/history-service.d.ts.map +1 -0
- package/typescript/dist/history-service.js +739 -0
- package/typescript/dist/history-service.js.map +1 -0
- package/typescript/dist/index.d.ts +3 -0
- package/typescript/dist/index.d.ts.map +1 -0
- package/typescript/dist/index.js +2 -0
- package/typescript/dist/index.js.map +1 -0
package/rust/Cargo.toml
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "claudecodehistory-rs"
|
|
3
|
+
version = "1.6.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
authors = ["Ebowwa Labs <labs@ebowwa.com>"]
|
|
6
|
+
description = "High-performance Rust implementation of Claude Code conversation history parser with native Node.js/Bun bindings"
|
|
7
|
+
license = "MIT"
|
|
8
|
+
repository = "https://github.com/ebowwa/codespaces"
|
|
9
|
+
keywords = ["claude-code", "history", "jsonl", "parser", "mcp"]
|
|
10
|
+
categories = ["parser-implementations", "web-programming"]
|
|
11
|
+
|
|
12
|
+
[lib]
|
|
13
|
+
name = "claudecodehistory_rs"
|
|
14
|
+
path = "src/lib.rs"
|
|
15
|
+
crate-type = ["cdylib", "rlib"]
|
|
16
|
+
|
|
17
|
+
[[bin]]
|
|
18
|
+
name = "claudecodehistory-cli"
|
|
19
|
+
path = "src/bin/cli.rs"
|
|
20
|
+
required-features = ["cli"]
|
|
21
|
+
|
|
22
|
+
[features]
|
|
23
|
+
default = []
|
|
24
|
+
napi = ["napi-derive", "napi-sys", "napi-build"]
|
|
25
|
+
cli = ["clap", "env_logger"]
|
|
26
|
+
|
|
27
|
+
[dependencies]
|
|
28
|
+
# NAPI-RS for Node.js/Bun bindings
|
|
29
|
+
napi-derive = { version = "2", optional = true }
|
|
30
|
+
napi-sys = { version = "2", optional = true }
|
|
31
|
+
|
|
32
|
+
# Serialization
|
|
33
|
+
serde = { version = "1.0", features = ["derive"] }
|
|
34
|
+
serde_json = "1.0"
|
|
35
|
+
|
|
36
|
+
# Async runtime
|
|
37
|
+
tokio = { version = "1", features = ["rt-multi-thread", "fs", "io-util", "sync", "time"] }
|
|
38
|
+
|
|
39
|
+
# Date/time handling
|
|
40
|
+
chrono = { version = "0.4", features = ["serde"] }
|
|
41
|
+
|
|
42
|
+
# Parallel processing
|
|
43
|
+
rayon = "1.10"
|
|
44
|
+
|
|
45
|
+
# Memory-mapped file I/O
|
|
46
|
+
memmap2 = "0.9"
|
|
47
|
+
|
|
48
|
+
# File system traversal
|
|
49
|
+
walkdir = "2.5"
|
|
50
|
+
|
|
51
|
+
# Home directory detection
|
|
52
|
+
dirs = "5.0"
|
|
53
|
+
|
|
54
|
+
# Error handling
|
|
55
|
+
thiserror = "1.0"
|
|
56
|
+
anyhow = "1.0"
|
|
57
|
+
|
|
58
|
+
# System calls (optional, for process detection)
|
|
59
|
+
libc = { version = "0.2", optional = true }
|
|
60
|
+
|
|
61
|
+
# CLI (optional)
|
|
62
|
+
clap = { version = "4", features = ["derive"], optional = true }
|
|
63
|
+
env_logger = { version = "0.11", optional = true }
|
|
64
|
+
|
|
65
|
+
# Regex for search
|
|
66
|
+
regex = "1.10"
|
|
67
|
+
|
|
68
|
+
# Full-text search engine
|
|
69
|
+
tantivy = "0.22"
|
|
70
|
+
|
|
71
|
+
# SIMD-accelerated JSON parsing (optional, for maximum speed)
|
|
72
|
+
# simd-json = "0.13"
|
|
73
|
+
|
|
74
|
+
[build-dependencies]
|
|
75
|
+
napi-build = { version = "2", optional = true }
|
|
76
|
+
|
|
77
|
+
[dev-dependencies]
|
|
78
|
+
tempfile = "3"
|
|
79
|
+
|
|
80
|
+
[profile.release]
|
|
81
|
+
lto = "thin"
|
|
82
|
+
codegen-units = 1
|
|
83
|
+
opt-level = 3
|
|
84
|
+
strip = "symbols"
|
|
85
|
+
|
|
86
|
+
[profile.dev]
|
|
87
|
+
opt-level = 1
|
|
88
|
+
|
|
89
|
+
[package.metadata.napi]
|
|
90
|
+
name = "claudecodehistory"
|
package/rust/build.rs
ADDED
|
Binary file
|
package/rust/index.d.ts
ADDED
|
File without changes
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ebowwa/claudecodehistory-rs",
|
|
3
|
+
"version": "1.6.0",
|
|
4
|
+
"description": "High-performance Rust implementation of Claude Code conversation history parser with native Node.js/Bun bindings",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./index.js",
|
|
11
|
+
"types": "./index.d.ts",
|
|
12
|
+
"bun": "./bun.index.js",
|
|
13
|
+
"node": "./index.js",
|
|
14
|
+
"default": "./index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "cargo build --release && napi build --release --platform --js index.js --dts index.d.ts",
|
|
19
|
+
"build:debug": "cargo build && napi build --platform",
|
|
20
|
+
"test": "cargo test",
|
|
21
|
+
"bench": "cargo bench",
|
|
22
|
+
"prepublishOnly": "npm run build"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"claude-code",
|
|
26
|
+
"history",
|
|
27
|
+
"jsonl",
|
|
28
|
+
"parser",
|
|
29
|
+
"rust",
|
|
30
|
+
"napi",
|
|
31
|
+
"bun",
|
|
32
|
+
"high-performance"
|
|
33
|
+
],
|
|
34
|
+
"author": "Ebowwa Labs <labs@ebowwa.com>",
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/ebowwa/codespaces.git",
|
|
39
|
+
"directory": "packages/src/third-party/claudecode/claudecodehistory/rust"
|
|
40
|
+
},
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/ebowwa/codespaces/issues"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18.0.0"
|
|
46
|
+
},
|
|
47
|
+
"napi": {
|
|
48
|
+
"name": "claudecodehistory",
|
|
49
|
+
"triples": {
|
|
50
|
+
"defaults": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@napi-rs/cli": "^2.18.0"
|
|
55
|
+
},
|
|
56
|
+
"optionalDependencies": {
|
|
57
|
+
"@ebowwa/claudecodehistory-rs-darwin-arm64": "1.6.0",
|
|
58
|
+
"@ebowwa/claudecodehistory-rs-darwin-x64": "1.6.0",
|
|
59
|
+
"@ebowwa/claudecodehistory-rs-linux-x64-gnu": "1.6.0",
|
|
60
|
+
"@ebowwa/claudecodehistory-rs-linux-arm64-gnu": "1.6.0",
|
|
61
|
+
"@ebowwa/claudecodehistory-rs-win32-x64-msvc": "1.6.0"
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"index.js",
|
|
65
|
+
"index.d.ts",
|
|
66
|
+
"*.node",
|
|
67
|
+
"*.wasm"
|
|
68
|
+
]
|
|
69
|
+
}
|