lightning-code-index 0.1.4__py3-none-win_amd64.whl

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.
Binary file
@@ -0,0 +1,206 @@
1
+ Metadata-Version: 2.4
2
+ Name: lightning-code-index
3
+ Version: 0.1.4
4
+ Summary: Lightning Code Index - Sub-millisecond semantic code search and analysis
5
+ License-Expression: MIT
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+
9
+ # LCI - Lightning Code Index
10
+
11
+ Lightning-fast code indexing and search for AI assistants.
12
+
13
+ [![CI](https://github.com/standardbeagle/lci/actions/workflows/ci.yml/badge.svg)](https://github.com/standardbeagle/lci/actions/workflows/ci.yml)
14
+ [![Go Report Card](https://goreportcard.com/badge/github.com/standardbeagle/lci)](https://goreportcard.com/report/github.com/standardbeagle/lci)
15
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
16
+
17
+ ## Features
18
+
19
+ - **Sub-millisecond search**: Trigram-based indexing with <5ms search guarantee
20
+ - **Multi-language support**: Go, TypeScript, JavaScript, Python, Rust, C#, PHP, and more
21
+ - **MCP integration**: Model Context Protocol server for AI assistant integration
22
+ - **Semantic search**: Natural language queries with intelligent matching
23
+ - **Call graph analysis**: Track function calls, references, and dependencies
24
+ - **Semantic annotations**: `@lci:` vocabulary for marking up code with metadata
25
+
26
+ ## Installation
27
+
28
+ ### npm (recommended)
29
+
30
+ ```bash
31
+ npm install -g @standardbeagle/lci
32
+ ```
33
+
34
+ ### pip
35
+
36
+ ```bash
37
+ pip install lightning-code-index
38
+ ```
39
+
40
+ ### Homebrew (coming soon)
41
+
42
+ ```bash
43
+ brew install standardbeagle/tap/lci
44
+ ```
45
+
46
+ ### From Source
47
+
48
+ ```bash
49
+ go install github.com/standardbeagle/lci/cmd/lci@latest
50
+ ```
51
+
52
+ ### From Releases
53
+
54
+ Download pre-built binaries from [GitHub Releases](https://github.com/standardbeagle/lci/releases).
55
+
56
+ ## Quick Start
57
+
58
+ ### CLI Usage
59
+
60
+ ```bash
61
+ # Index and search in current directory
62
+ lci search "handleRequest"
63
+
64
+ # Find symbol definitions
65
+ lci def UserService
66
+
67
+ # Find all references to a symbol
68
+ lci refs CreateUser
69
+
70
+ # Display function call hierarchy
71
+ lci tree main
72
+
73
+ # Fast grep-style search
74
+ lci grep "TODO|FIXME"
75
+
76
+ # List files that would be indexed
77
+ lci list
78
+ ```
79
+
80
+ ### MCP Server
81
+
82
+ Start the MCP server for AI assistant integration:
83
+
84
+ ```bash
85
+ lci mcp
86
+ ```
87
+
88
+ #### Claude Code Integration
89
+
90
+ Add to your `.mcp.json`:
91
+
92
+ ```json
93
+ {
94
+ "lci": {
95
+ "command": "lci",
96
+ "args": ["mcp"],
97
+ "env": {}
98
+ }
99
+ }
100
+ ```
101
+
102
+ ## Configuration
103
+
104
+ Create `.lci.kdl` in your project root:
105
+
106
+ ```kdl
107
+ project {
108
+ name "my-project"
109
+ root "."
110
+ }
111
+
112
+ index {
113
+ include "**/*.go" "**/*.ts" "**/*.py"
114
+ exclude "**/node_modules/**" "**/vendor/**"
115
+ }
116
+
117
+ search {
118
+ max-results 100
119
+ context-lines 3
120
+ }
121
+ ```
122
+
123
+ ## MCP Tools
124
+
125
+ When running as an MCP server, LCI exposes these tools:
126
+
127
+ | Tool | Description |
128
+ |------|-------------|
129
+ | `search` | Semantic code search with fuzzy matching |
130
+ | `get_context` | Get detailed context for a code symbol |
131
+ | `find_files` | Fast file path search with glob patterns |
132
+ | `code_insight` | Codebase intelligence and analysis |
133
+ | `context` | Save/load code context manifests |
134
+ | `semantic_annotations` | Query @lci: semantic labels |
135
+ | `side_effects` | Analyze function purity and side effects |
136
+
137
+ ## Semantic Annotations
138
+
139
+ Mark up your code with `@lci:` annotations for enhanced AI understanding:
140
+
141
+ ```go
142
+ // @lci:risk[high] @lci:public-api
143
+ // @lci:requires[env:DATABASE_URL]
144
+ func HandleUserLogin(w http.ResponseWriter, r *http.Request) {
145
+ // ...
146
+ }
147
+
148
+ // @lci:purpose[Validate user credentials against database]
149
+ // @lci:must[Return error for invalid credentials]
150
+ func ValidateCredentials(username, password string) error {
151
+ // ...
152
+ }
153
+ ```
154
+
155
+ ### Annotation Categories
156
+
157
+ - **Risk & Safety**: `@lci:risk[low|medium|high|critical]`, `@lci:safe-zone`, `@lci:stability`
158
+ - **Dependencies**: `@lci:requires[env:VAR]`, `@lci:requires[db:table]`, `@lci:requires[service:name]`
159
+ - **Conventions**: `@lci:convention[pattern]`, `@lci:idiom[name]`, `@lci:template[name]`
160
+ - **Contracts**: `@lci:must[behavior]`, `@lci:must-not[behavior]`, `@lci:invariant[condition]`
161
+ - **Purpose**: `@lci:purpose[description]`, `@lci:domain[area]`, `@lci:owner[team]`
162
+
163
+ ## Architecture
164
+
165
+ ```
166
+ lci/
167
+ ├── cmd/lci/ # CLI entry point
168
+ ├── internal/
169
+ │ ├── core/ # Trigram index, symbol store, reference tracker
170
+ │ ├── parser/ # Tree-sitter based multi-language parsing
171
+ │ ├── search/ # Search engine and scoring
172
+ │ ├── indexing/ # Master index and pipeline
173
+ │ ├── mcp/ # MCP server and tools
174
+ │ └── analysis/ # Code analysis and metrics
175
+ └── pkg/ # Public API
176
+ ```
177
+
178
+ ## Performance
179
+
180
+ LCI is designed for speed:
181
+
182
+ - **Indexing**: <5s for typical projects (<10k files)
183
+ - **Search**: <5ms for most queries
184
+ - **Memory**: <100MB for typical web projects
185
+ - **Startup**: Near-instant with persistent index
186
+
187
+ ## Development
188
+
189
+ ```bash
190
+ # Run tests
191
+ go test ./...
192
+
193
+ # Build
194
+ go build ./cmd/lci
195
+
196
+ # Run with race detector
197
+ go test -race ./...
198
+ ```
199
+
200
+ ## License
201
+
202
+ MIT License - see [LICENSE](LICENSE) for details.
203
+
204
+ ## Contributing
205
+
206
+ Contributions are welcome! Please read the contributing guidelines before submitting PRs.
@@ -0,0 +1,5 @@
1
+ lci/bin/lci_windows_amd64.exe,sha256=He3JIACh4f4n2VeXx4s-S1J5mtqMRZXIFg-LMHu7MgI,33640960
2
+ lightning_code_index-0.1.4.dist-info/METADATA,sha256=-5NXOfYDl7vqGHQGTwzzYA-TEljjDy32Rlh4j76oUFE,5009
3
+ lightning_code_index-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
4
+ lightning_code_index-0.1.4.dist-info/entry_points.txt,sha256=8urOZFt_NbS1BDu9lQnsDxqrUirEqEyVgnE1YGnkCjw,33
5
+ lightning_code_index-0.1.4.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ lci = lci:main