@dev_desh/flux-cap 0.8.0 → 0.10.1

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/README.md CHANGED
@@ -1,15 +1,29 @@
1
1
  # flux-cap
2
2
 
3
- **A git-aware CLI context manager for ADHD developers**
3
+ > Loosing your train of thought often? flux-cap is a git-aware brain dump CLI for developers who context-switch with intelligent search and a lazygit-inspired TUI built in.
4
+
5
+ ---
6
+
7
+ ### How this was built
8
+
9
+ flux-cap is a personal project built incrementally over several weeks — not generated in one shot. The search algorithm (`searchV2Helper`) was designed from first principles: Fuse.js scores are inverted and weighted, recency uses exponential decay (`e^(-days/7)`), and git context gets a dynamic boost multiplier when you have uncommitted changes. The TUI was built twice — once in Ink, once in Rezi — to compare performance and ergonomics firsthand.
10
+
11
+ The commit history tells the story better than this paragraph.
12
+
13
+ ---
4
14
 
5
- > *Never lose track of what you were coding after interruptions again. Now with intelligent, context-aware search.*
6
15
 
16
+ [![npm version](https://img.shields.io/npm/v/@dev_desh/flux-cap)](https://www.npmjs.com/package/@dev_desh/flux-cap)
17
+ [![npm downloads](https://img.shields.io/npm/dm/@dev_desh/flux-cap)](https://www.npmjs.com/package/@dev_desh/flux-cap)
18
+ [![license](https://img.shields.io/npm/l/@dev_desh/flux-cap)](LICENSE)
7
19
 
8
- flux-cap is a terminal-native tool that captures your thoughts, tracks your context, and integrates seamlessly with your git workflow. Built specifically for developers who context-switch frequently.
20
+ **Now at v1.0.0** with Search 2.0 multi-signal ranking, Ink-powered interactive TUI, and a Rezi-based lazygit-style interface.
9
21
 
10
- ### Recent Releases:
11
- - **v0.8.0:** Search 2.0 - Intelligent multi-signal ranking with context awareness
12
- - **v0.7.0:** Batch searches with combinedQuery and result sorting
22
+ ### What's new:
23
+ - **v1.0.0:** First stable release
24
+ - **v0.10.0:** Rezi-based lazygit-style TUI (`flux u`)
25
+ - **v0.9.0:** Ink-powered interactive search TUI (`flux ui-ink`)
26
+ - **v0.8.0:** Search 2.0 — multi-signal ranking with git context awareness
13
27
 
14
28
 
15
29
  ## Installation
@@ -38,24 +52,66 @@ flux init
38
52
  ### 2. Start capturing thoughts with tags
39
53
  ```bash
40
54
  # Basic brain dumps
41
- flux dump "remember to add error handling to auth module"
42
- flux dump "bug in user validation - check line 42"
55
+ flux d "remember to add error handling to auth module"
56
+ flux d "bug in user validation - check line 42"
43
57
 
44
58
  # Tagged brain dumps for better organization
45
- flux dump -i "add dark mode toggle" # Ideas
46
- flux dump -n "team meeting at 3pm tomorrow" # Notes
47
- flux dump -t "refactor payment processing logic" # Tasks
59
+ flux d -i "add dark mode toggle" # Ideas
60
+ flux d -n "team meeting at 3pm tomorrow" # Notes
61
+ flux d -t "refactor payment processing logic" # Tasks
62
+ ```
63
+ ## 3. **New TUI Section** (add after Commands)
64
+
65
+ ## Interactive TUI
66
+
67
+ Flux-Cap includes a terminal user interface for interactive searching:
68
+
69
+ ![TUI Interface](https://github.com/kaustubh285/flux-cap/blob/main/images/v0.10-rezi-interactive.png)
70
+
71
+ ### Features
72
+ - **Real-time Search**: Results update as you type
73
+ - **SearchV2 Integration**: Same scoring system as CLI search
74
+ - **Professional Layout**: Fixed table format matching CLI output
75
+ - **Context Tags**: Visual indicators for recent, same-branch, same-dir
76
+ - **Stable Interface**: Fixed height prevents layout jumps
77
+ - **Slash Commands**: Type `/exit` to quit cleanly
78
+
79
+ ### Usage
80
+ ```bash
81
+ # Start interactive search
82
+ flux u
83
+
84
+ # Search and navigate
85
+ # Type query -> See results instantly
86
+ # /exit -> Quit cleanly
48
87
  ```
49
88
 
50
89
  ### 3. Search your brain dumps with intelligent ranking
51
90
 
52
91
  flux-cap now features **Search 2.0** - intelligent, context-aware search that prioritizes:
53
- - 🔥 **Recent dumps** (exponential decay scoring)
54
- - **Same git branch** as your current work
55
- - 📁 **Same working directory** context
56
- - 🏷️ **Exact tag matches** (coming in v0.8.0)
92
+ - **Recent dumps** (exponential decay scoring)
93
+ - **Same git branch** as your current work
94
+ - **Same working directory** context
95
+ - **Exact tag matches** search for specific tag/branch
96
+ - **Quick Brain Dumps**: Capture thoughts instantly with git context
97
+ - **SearchV2**: Multi-signal ranking (fuzzy + recency + git context)
98
+ - **Interactive TUI**: Real-time search with professional interface
99
+ - **Smart Scoring**: See relevance scores and context indicators
100
+
101
+
102
+ ## 📸 Screenshots
103
+
104
+ ### CLI Search
105
+ ![CLI Search](https://github.com/kaustubh285/flux-cap/blob/main/images/v0.8-search-v2-demo.png)
106
+
107
+
108
+ ### Interactive TUI
109
+ ![TUI Interface](https://github.com/kaustubh285/flux-cap/blob/main/images/v0.10-rezi-interactive.png)
110
+
111
+
112
+ ### Search Comparison
113
+ ![TUI Demo](https://github.com/kaustubh285/flux-cap/blob/main/images/v0.10-rezi-interactive.gif)
57
114
 
58
- ![Search 2.0 Demo - Context-aware ranking](https://github.com/kaustubh285/flux-cap/blob/main/images/v0.8-search-v2-demo.png)
59
115
 
60
116
  ```bash
61
117
  # Smart context-aware search (NEW in v0.8.0!)
@@ -71,7 +127,7 @@ flux notes # All note-tagged dumps
71
127
  ## Features
72
128
 
73
129
  ### Brain Dump System with Smart Tags
74
- - Instantly capture thoughts without breaking flow: `flux dump "fix auth validation bug"`
130
+ - Instantly capture thoughts without breaking flow: `flux d fix auth validation bug`
75
131
  - **Tag system** for better organization: `-i` for ideas, `-n` for notes, `-t` for tasks
76
132
  - Git-aware context tracking (branch, working directory, uncommitted changes)
77
133
  - Monthly file organization for easy browsing
@@ -85,6 +141,12 @@ flux notes # All note-tagged dumps
85
141
  - **Flexible filtering**: `--all`, `--since`, `--branch` flags override smart defaults
86
142
  - **Fast & local**: No external APIs, blazing fast search results
87
143
 
144
+ ### Interactive Search
145
+ ```bash
146
+ flux u # Open interactive TUI search
147
+ flux ui # Same as above (alias)
148
+ ```
149
+
88
150
  ### Privacy Controls
89
151
  - Choose what information to track during setup
90
152
  - Hide working directory paths, branch names, or git status
@@ -108,18 +170,18 @@ flux notes # All note-tagged dumps
108
170
  | Command | Description | Example |
109
171
  |---------|-------------|---------|
110
172
  | `flux init` | Initialize flux-cap with privacy setup | `flux init` |
173
+ | `flux d <message...>` | Capture a brain dump | `flux dump "fix the bug in auth.ts"` |
111
174
  | `flux dump <message...>` | Capture a brain dump | `flux dump "fix the bug in auth.ts"` |
112
- | `flux dump -i <message...>` | Capture important | `flux dump -i "add keyboard shortcuts"` |
113
- | `flux dump -d <message...>` | Capture an idea | `flux dump -d "a new cli tool project"` |
114
- | `flux dump -l <message...>` | Capture a link | `flux dump -l "https://github.com/kaustubh285/flux-cap"` |
115
- | `flux dump -b <message...>` | Capture a bug | `flux dump -b "tsconfig mismatch"` |
116
- | `flux dump -n <message...>` | Capture a note | `flux dump -n "meeting notes from standup"` |
117
- | `flux dump -t <message...>` | Capture a task | `flux dump -t "refactor user authentication"` |
118
- | `flux dump -m` | Multiline input mode | `flux dump -m` |
175
+ | `flux d -i <message...>` | Capture important | `flux dump -i "add keyboard shortcuts"` |
176
+ | `flux d -d <message...>` | Capture an idea | `flux dump -d "a new cli tool project"` |
177
+ | `flux d -l <message...>` | Capture a link | `flux dump -l "https://github.com/kaustubh285/flux-cap"` |
178
+ | `flux d -b <message...>` | Capture a bug | `flux dump -b "tsconfig mismatch"` |
179
+ | `flux d -n <message...>` | Capture a note | `flux dump -n "meeting notes from standup"` |
180
+ | `flux d -t <message...>` | Capture a task | `flux dump -t "refactor user authentication"` |
181
+ | `flux d -m` | Multiline input mode | `flux dump -m` |
182
+ | `flux s [query...]` | Search brain dumps or list recent ones | `flux search "authentication"` |
119
183
  | `flux search [query...]` | Search brain dumps or list recent ones | `flux search "authentication"` |
120
184
  | `flux config [field] [value]` | View or update configuration | `flux config search.resultLimit 20` |
121
- | `flux config --add-tag <tag>` | Add custom tags to configuration | `flux config --add-tag "bug"` |
122
- | `flux config --remove-tag <tag>` | Remove tags from configuration | `flux config --remove-tag "old-tag"` |
123
185
  | `flux reset` | Complete reset (deletes all data) | `flux reset` |
124
186
 
125
187
  ## Tag System
@@ -134,33 +196,33 @@ flux-cap comes with three built-in tag shortcuts:
134
196
  Extend your tagging system by adding custom tags for brain dumps:
135
197
  ```bash
136
198
  # Built-in shortcuts (current)
137
- flux dump -i "idea message"
138
- flux dump -n "note message"
139
- flux dump -t "task message"
199
+ flux d -i "idea message"
200
+ flux d -n "note message"
201
+ flux d -t "task message"
140
202
 
141
203
  # Generic tag option (new)
142
- flux dump --tag thought "my message"
143
- flux dump --tag bug "found an issue"
144
- flux dump --tag meeting "standup notes"
204
+ flux d --tag thought "my message"
205
+ flux d --tag bug "found an issue"
206
+ flux d --tag meeting "standup notes"
145
207
  ```
146
208
 
147
209
 
148
210
  ### Tag Examples
149
211
  ```bash
150
212
  # Ideas for future features
151
- flux dump -i "add real-time collaboration to the editor"
152
- flux dump -i "implement auto-save every 30 seconds"
213
+ flux d -i "add real-time collaboration to the editor"
214
+ flux d -i "implement auto-save every 30 seconds"
153
215
 
154
216
  # Meeting notes and reminders
155
- flux dump -n "team decided to use TypeScript for new components"
156
- flux dump -n "remember to update documentation before release"
217
+ flux d -n "team decided to use TypeScript for new components"
218
+ flux d -n "remember to update documentation before release"
157
219
 
158
220
  # Task tracking
159
- flux dump -t "fix memory leak in image processor"
160
- flux dump -t "write unit tests for authentication module"
221
+ flux d -t "fix memory leak in image processor"
222
+ flux d -t "write unit tests for authentication module"
161
223
 
162
224
  # Combine with multiline for detailed entries
163
- flux dump -t -m # Opens editor for detailed task description
225
+ flux d -t -m # Opens editor for detailed task description
164
226
  ```
165
227
 
166
228
  ## Use Cases
@@ -168,22 +230,22 @@ flux dump -t -m # Opens editor for detailed task description
168
230
  ### Context Switching
169
231
  ```bash
170
232
  # Before switching tasks
171
- flux dump -t "was working on user auth, next: add validation to login form"
233
+ flux d -t "was working on user auth, next: add validation to login form"
172
234
 
173
235
  # After interruption
174
- flux search "auth" # Quickly find where you left off
175
- flux search "tasks" # Find your pending tasks
236
+ flux s "auth" # Quickly find where you left off
237
+ flux s "tasks" # Find your pending tasks
176
238
  ```
177
239
 
178
240
  ### Bug Tracking & Ideas
179
241
  ```bash
180
242
  # Track bugs and investigations
181
- flux dump -n "weird bug in payment flow - users can't checkout"
182
- flux dump -n "bug seems related to session timeout - check Redis config"
243
+ flux d -n "weird bug in payment flow - users can't checkout"
244
+ flux d -n "bug seems related to session timeout - check Redis config"
183
245
 
184
246
  # Capture ideas as they come
185
- flux dump -i "add keyboard shortcuts to dashboard"
186
- flux dump -i "maybe use React.memo for performance optimization"
247
+ flux d -i "add keyboard shortcuts to dashboard"
248
+ flux d -i "maybe use React.memo for performance optimization"
187
249
 
188
250
  # Later...
189
251
  flux search "payment bug"
@@ -193,12 +255,12 @@ flux search "ideas"
193
255
  ### Meeting Notes & Task Management
194
256
  ```bash
195
257
  # Capture meeting outcomes
196
- flux dump -n "team standup: focus on performance this sprint"
197
- flux dump -t "implement caching layer for API responses"
258
+ flux d -n "team standup: focus on performance this sprint"
259
+ flux d -t "implement caching layer for API responses"
198
260
 
199
261
  # Track follow-up tasks
200
- flux dump -t "review Sarah's PR for authentication changes"
201
- flux dump -t "update deployment documentation"
262
+ flux d -t "review Sarah's PR for authentication changes"
263
+ flux d -t "update deployment documentation"
202
264
  ```
203
265
 
204
266
  ## Configuration
@@ -308,7 +370,7 @@ Want to contribute or run locally?
308
370
 
309
371
  ```bash
310
372
  # Clone and setup
311
- git clone https://github.com/yourusername/flux-cap
373
+ git clone https://github.com/kaustubh285/flux-cap
312
374
  cd flux-cap
313
375
  bun install
314
376
 
@@ -325,6 +387,7 @@ Built with:
325
387
  - **TypeScript** - Type safety
326
388
  - **Commander.js** - CLI parsing
327
389
  - **Fuse.js** - Fuzzy search
390
+ - **Rezi** - Terminal UI components
328
391
 
329
392
  ### Project Structure
330
393
  ```
@@ -332,6 +395,7 @@ src/
332
395
  ├── commands/ # Command implementations
333
396
  │ ├── dump.command.ts
334
397
  │ ├── search.command.ts
398
+ │ ├── ui.command.ts
335
399
  │ └── init.command.ts
336
400
  ├── utils/ # Shared utilities
337
401
  │ ├── privacy.ts # Git integration
@@ -342,14 +406,19 @@ src/
342
406
 
343
407
  ## Roadmap
344
408
 
345
- ### Phase 2 (v0.8.0 - Coming Soon)
346
- - [ ] Convenience search commands (`flux recent`, `flux here`, `flux notes`)
347
- - [ ] Tag match scoring integration
348
- - [ ] Grouped result display by relevance
349
- - [ ] Enhanced tag-based search filtering
350
- - [ ] ASCII Pomodoro timer with themes
351
- - [ ] Visual focus mode display
352
- - [ ] Theme rotation system
409
+ ### Shipped
410
+ - [x] SearchV2 multi-signal ranking (fuzzy + recency + git context)
411
+ - [x] Interactive TUI with Ink (`flux u`)
412
+ - [x] Lazygit-style Rezi TUI (`flux u --rezi`)
413
+ - [x] Custom tag support (`--tag`)
414
+ - [x] Parent directory `.flux` discovery
415
+
416
+ ### Coming next
417
+ - [ ] Convenience commands (`flux recent`, `flux here`, `flux notes`)
418
+ - [ ] Tag match scoring in SearchV2
419
+ - [ ] AI export format (`flux ai`)
420
+ - [ ] Todo scanning from codebase (`flux t --scan`)
421
+
353
422
 
354
423
  ### Phase 3 (Future)
355
424
  - [ ] Advanced git context switching
@@ -397,5 +466,3 @@ The system will now only auto-detect major bumps with very explicit indicators l
397
466
  MIT
398
467
 
399
468
  ---
400
-
401
- Built for developers who think fast, context-switch often, and never want to lose a good idea.