@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 +128 -61
- package/dist/index.js +45368 -4362
- package/dist/rezi_ui_native.darwin-arm64-xhnnex3m.node +0 -0
- package/dist/rezi_ui_native.darwin-x64-eqdka8v8.node +0 -0
- package/dist/rezi_ui_native.linux-arm64-gnu-tdtr0q84.node +0 -0
- package/dist/rezi_ui_native.linux-x64-gnu-w49c1xpp.node +0 -0
- package/dist/rezi_ui_native.win32-arm64-msvc-gzx8450t.node +0 -0
- package/dist/rezi_ui_native.win32-x64-msvc-gjkcr5w3.node +0 -0
- package/package.json +65 -55
package/README.md
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
# flux-cap
|
|
2
2
|
|
|
3
|
-
|
|
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
|
+
[](https://www.npmjs.com/package/@dev_desh/flux-cap)
|
|
17
|
+
[](https://www.npmjs.com/package/@dev_desh/flux-cap)
|
|
18
|
+
[](LICENSE)
|
|
7
19
|
|
|
8
|
-
|
|
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
|
-
###
|
|
11
|
-
- **
|
|
12
|
-
- **v0.
|
|
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
|
|
42
|
-
flux
|
|
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
|
|
46
|
-
flux
|
|
47
|
-
flux
|
|
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
|
+

|
|
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
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
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
|
+

|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Interactive TUI
|
|
109
|
+

|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Search Comparison
|
|
113
|
+

|
|
57
114
|
|
|
58
|
-

|
|
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
|
|
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
|
|
113
|
-
| `flux
|
|
114
|
-
| `flux
|
|
115
|
-
| `flux
|
|
116
|
-
| `flux
|
|
117
|
-
| `flux
|
|
118
|
-
| `flux
|
|
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
|
|
138
|
-
flux
|
|
139
|
-
flux
|
|
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
|
|
143
|
-
flux
|
|
144
|
-
flux
|
|
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
|
|
152
|
-
flux
|
|
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
|
|
156
|
-
flux
|
|
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
|
|
160
|
-
flux
|
|
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
|
|
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
|
|
233
|
+
flux d -t "was working on user auth, next: add validation to login form"
|
|
172
234
|
|
|
173
235
|
# After interruption
|
|
174
|
-
flux
|
|
175
|
-
flux
|
|
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
|
|
182
|
-
flux
|
|
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
|
|
186
|
-
flux
|
|
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
|
|
197
|
-
flux
|
|
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
|
|
201
|
-
flux
|
|
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/
|
|
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
|
-
###
|
|
346
|
-
- [
|
|
347
|
-
- [
|
|
348
|
-
- [
|
|
349
|
-
- [
|
|
350
|
-
- [
|
|
351
|
-
|
|
352
|
-
|
|
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.
|