@tecet/ollm 0.1.4 → 0.1.5
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/cli.js +20 -14
- package/dist/cli.js.map +3 -3
- package/dist/services/documentService.d.ts.map +1 -1
- package/dist/services/documentService.js +12 -2
- package/dist/services/documentService.js.map +1 -1
- package/dist/ui/components/docs/DocsPanel.d.ts.map +1 -1
- package/dist/ui/components/docs/DocsPanel.js +1 -1
- package/dist/ui/components/docs/DocsPanel.js.map +1 -1
- package/dist/ui/components/launch/VersionBanner.js +1 -1
- package/dist/ui/components/launch/VersionBanner.js.map +1 -1
- package/dist/ui/components/layout/KeybindsLegend.d.ts.map +1 -1
- package/dist/ui/components/layout/KeybindsLegend.js +1 -1
- package/dist/ui/components/layout/KeybindsLegend.js.map +1 -1
- package/dist/ui/components/tabs/BugReportTab.js +1 -1
- package/dist/ui/components/tabs/BugReportTab.js.map +1 -1
- package/dist/ui/services/docsService.d.ts +12 -27
- package/dist/ui/services/docsService.d.ts.map +1 -1
- package/dist/ui/services/docsService.js +40 -67
- package/dist/ui/services/docsService.js.map +1 -1
- package/docs/README.md +3 -410
- package/package.json +10 -7
- package/scripts/copy-docs-to-user.cjs +34 -0
- package/docs/Context/CheckpointFlowDiagram.md +0 -673
- package/docs/Context/ContextArchitecture.md +0 -898
- package/docs/Context/ContextCompression.md +0 -1102
- package/docs/Context/ContextManagment.md +0 -750
- package/docs/Context/Index.md +0 -209
- package/docs/Context/README.md +0 -390
- package/docs/DevelopmentRoadmap/Index.md +0 -238
- package/docs/DevelopmentRoadmap/OLLM-CLI_Releases.md +0 -419
- package/docs/DevelopmentRoadmap/PlanedFeatures.md +0 -448
- package/docs/DevelopmentRoadmap/README.md +0 -174
- package/docs/DevelopmentRoadmap/Roadmap.md +0 -572
- package/docs/DevelopmentRoadmap/RoadmapVisual.md +0 -372
- package/docs/Hooks/Architecture.md +0 -885
- package/docs/Hooks/Index.md +0 -244
- package/docs/Hooks/KeyboardShortcuts.md +0 -248
- package/docs/Hooks/Protocol.md +0 -817
- package/docs/Hooks/README.md +0 -403
- package/docs/Hooks/UserGuide.md +0 -1483
- package/docs/Hooks/VisualGuide.md +0 -598
- package/docs/Index.md +0 -506
- package/docs/Installation.md +0 -586
- package/docs/Introduction.md +0 -367
- package/docs/LLM Models/Index.md +0 -239
- package/docs/LLM Models/LLM_GettingStarted.md +0 -748
- package/docs/LLM Models/LLM_Index.md +0 -701
- package/docs/LLM Models/LLM_MemorySystem.md +0 -337
- package/docs/LLM Models/LLM_ModelCompatibility.md +0 -499
- package/docs/LLM Models/LLM_ModelsArchitecture.md +0 -933
- package/docs/LLM Models/LLM_ModelsCommands.md +0 -839
- package/docs/LLM Models/LLM_ModelsConfiguration.md +0 -1094
- package/docs/LLM Models/LLM_ModelsList.md +0 -1071
- package/docs/LLM Models/LLM_ModelsList.md.backup +0 -400
- package/docs/LLM Models/README.md +0 -355
- package/docs/MCP/MCP_Architecture.md +0 -1086
- package/docs/MCP/MCP_Commands.md +0 -1111
- package/docs/MCP/MCP_GettingStarted.md +0 -590
- package/docs/MCP/MCP_Index.md +0 -524
- package/docs/MCP/MCP_Integration.md +0 -866
- package/docs/MCP/MCP_Marketplace.md +0 -160
- package/docs/MCP/README.md +0 -415
- package/docs/Prompts System/Architecture.md +0 -760
- package/docs/Prompts System/Index.md +0 -223
- package/docs/Prompts System/PromptsRouting.md +0 -1047
- package/docs/Prompts System/PromptsTemplates.md +0 -1102
- package/docs/Prompts System/README.md +0 -389
- package/docs/Prompts System/SystemPrompts.md +0 -856
- package/docs/Quickstart.md +0 -535
- package/docs/Tools/Architecture.md +0 -884
- package/docs/Tools/GettingStarted.md +0 -624
- package/docs/Tools/Index.md +0 -216
- package/docs/Tools/ManifestReference.md +0 -141
- package/docs/Tools/README.md +0 -440
- package/docs/Tools/UserGuide.md +0 -773
- package/docs/Troubleshooting.md +0 -1265
- package/docs/UI&Settings/Architecture.md +0 -729
- package/docs/UI&Settings/ColorASCII.md +0 -34
- package/docs/UI&Settings/Commands.md +0 -755
- package/docs/UI&Settings/Configuration.md +0 -872
- package/docs/UI&Settings/Index.md +0 -293
- package/docs/UI&Settings/Keybinds.md +0 -372
- package/docs/UI&Settings/README.md +0 -278
- package/docs/UI&Settings/Terminal.md +0 -637
- package/docs/UI&Settings/Themes.md +0 -604
- package/docs/UI&Settings/UIGuide.md +0 -550
|
@@ -1,598 +0,0 @@
|
|
|
1
|
-
# Hooks Panel - Visual Guide
|
|
2
|
-
|
|
3
|
-
**Visual examples and screenshots of the Hooks Panel UI**
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Table of Contents
|
|
8
|
-
|
|
9
|
-
1. [Panel Overview](#panel-overview)
|
|
10
|
-
2. [Navigation States](#navigation-states)
|
|
11
|
-
3. [Hook States](#hook-states)
|
|
12
|
-
4. [Dialogs](#dialogs)
|
|
13
|
-
5. [Visual Indicators](#visual-indicators)
|
|
14
|
-
6. [Common Scenarios](#common-scenarios)
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## Panel Overview
|
|
19
|
-
|
|
20
|
-
### Full Panel Layout
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
24
|
-
│ 🎣 Hooks Configuration ↑↓:Nav ➕A:Add ✏️E:Edit 🗑️D:Del 🧪T:Test ⬅️0/Esc:Exit │
|
|
25
|
-
├──────────────────────┬──────────────────────────────────────────────────────┤
|
|
26
|
-
│ │ │
|
|
27
|
-
│ ⬅️ Exit │ 🎯 format-on-save │
|
|
28
|
-
│ │ │
|
|
29
|
-
│ ───────────────── │ ID: format-on-save │
|
|
30
|
-
│ │ │
|
|
31
|
-
│ 📝 File Events │ ──────────────────────────────────── │
|
|
32
|
-
│ ● format-on-save │ │
|
|
33
|
-
│ ○ lint-on-save │ 💻 Command: │
|
|
34
|
-
│ ● test-on-change │ prettier │
|
|
35
|
-
│ │ │
|
|
36
|
-
│ 💬 Prompt Events │ 📋 Arguments: │
|
|
37
|
-
│ ○ validate-input │ --write {file} │
|
|
38
|
-
│ ● log-prompt │ │
|
|
39
|
-
│ │ ──────────────────────────────────── │
|
|
40
|
-
│ 👤 User Triggered │ │
|
|
41
|
-
│ ● custom-hook-1 │ 📦 Source: user │
|
|
42
|
-
│ ○ custom-hook-2 │ │
|
|
43
|
-
│ │ ──────────────────────────────────── │
|
|
44
|
-
│ ▼ More below │ │
|
|
45
|
-
│ │ ┌────────────────┐ │
|
|
46
|
-
│ │ │ ✓ Enabled │ │
|
|
47
|
-
│ │ └────────────────┘ │
|
|
48
|
-
│ │ │
|
|
49
|
-
└──────────────────────┴──────────────────────────────────────────────────────┘
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Panel Components
|
|
53
|
-
|
|
54
|
-
**Left Column (30%):**
|
|
55
|
-
|
|
56
|
-
- Exit item at top
|
|
57
|
-
- Category headers with icons
|
|
58
|
-
- Hook items with status indicators
|
|
59
|
-
- Scroll indicators (when needed)
|
|
60
|
-
|
|
61
|
-
**Right Column (70%):**
|
|
62
|
-
|
|
63
|
-
- Hook name (bold, yellow)
|
|
64
|
-
- Hook ID
|
|
65
|
-
- Command and arguments
|
|
66
|
-
- Source information
|
|
67
|
-
- Status box (enabled/disabled)
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## Navigation States
|
|
72
|
-
|
|
73
|
-
### Browse Mode (Panel Not Focused)
|
|
74
|
-
|
|
75
|
-
```
|
|
76
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
77
|
-
│ Chat Tools [Hooks] Settings │ ← Navigation bar
|
|
78
|
-
└─────────────────────────────────────────────────────────────┘
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
- "Hooks" is highlighted in navigation bar
|
|
82
|
-
- Press **Enter** to activate panel
|
|
83
|
-
|
|
84
|
-
### Active Mode (Panel Focused)
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
88
|
-
│ 🎣 Hooks Configuration ↑↓:Nav Enter:Toggle│ ← Panel header
|
|
89
|
-
├──────────────────────┬──────────────────────────────────────┤
|
|
90
|
-
│ │ │
|
|
91
|
-
│ ⬅️ Exit │ Hook Details │ ← Cyan border
|
|
92
|
-
│ │ │
|
|
93
|
-
│ 📝 File Events │ │
|
|
94
|
-
│ ● format-on-save │ (when focused) │
|
|
95
|
-
│ │ │
|
|
96
|
-
└──────────────────────┴──────────────────────────────────────┘
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
- Panel border is cyan
|
|
100
|
-
- Selected hook is highlighted in yellow
|
|
101
|
-
- Keyboard shortcuts active
|
|
102
|
-
|
|
103
|
-
### Exit Item Selected
|
|
104
|
-
|
|
105
|
-
```
|
|
106
|
-
┌──────────────────────┐
|
|
107
|
-
│ │
|
|
108
|
-
│ ⬅️ Exit │ ← Yellow highlight
|
|
109
|
-
│ │
|
|
110
|
-
│ ───────────────── │
|
|
111
|
-
│ │
|
|
112
|
-
│ 📝 File Events │
|
|
113
|
-
│ ● format-on-save │
|
|
114
|
-
└──────────────────────┘
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
- Exit item highlighted in yellow
|
|
118
|
-
- Press **Enter** to exit panel
|
|
119
|
-
- Or press **Esc** or **0**
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
## Hook States
|
|
124
|
-
|
|
125
|
-
### Enabled Hook
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
┌──────────────────────┐
|
|
129
|
-
│ 📝 File Events │
|
|
130
|
-
│ ● format-on-save │ ← Green ● indicator
|
|
131
|
-
│ ○ lint-on-save │
|
|
132
|
-
└──────────────────────┘
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
- Green ● indicator
|
|
136
|
-
- Hook will execute on trigger
|
|
137
|
-
- Status box shows "✓ Enabled"
|
|
138
|
-
|
|
139
|
-
### Disabled Hook
|
|
140
|
-
|
|
141
|
-
```
|
|
142
|
-
┌──────────────────────┐
|
|
143
|
-
│ 📝 File Events │
|
|
144
|
-
│ ● format-on-save │
|
|
145
|
-
│ ○ lint-on-save │ ← Gray ○ indicator
|
|
146
|
-
└──────────────────────┘
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
- Gray ○ indicator
|
|
150
|
-
- Hook won't execute
|
|
151
|
-
- Status box shows "✗ Disabled"
|
|
152
|
-
|
|
153
|
-
### Selected Hook (Focused)
|
|
154
|
-
|
|
155
|
-
```
|
|
156
|
-
┌──────────────────────┐
|
|
157
|
-
│ 📝 File Events │
|
|
158
|
-
│ ● format-on-save │ ← Yellow highlight
|
|
159
|
-
│ ○ lint-on-save │
|
|
160
|
-
└──────────────────────┘
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
- Yellow text highlight
|
|
164
|
-
- Bold text
|
|
165
|
-
- Details shown in right panel
|
|
166
|
-
|
|
167
|
-
### Selected Hook (Not Focused)
|
|
168
|
-
|
|
169
|
-
```
|
|
170
|
-
┌──────────────────────┐
|
|
171
|
-
│ 📝 File Events │
|
|
172
|
-
│ ● format-on-save │ ← Normal text
|
|
173
|
-
│ ○ lint-on-save │
|
|
174
|
-
└──────────────────────┘
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
- Normal text color
|
|
178
|
-
- Not bold
|
|
179
|
-
- Panel border is not cyan
|
|
180
|
-
|
|
181
|
-
---
|
|
182
|
-
|
|
183
|
-
## Dialogs
|
|
184
|
-
|
|
185
|
-
### Add Hook Dialog
|
|
186
|
-
|
|
187
|
-
```
|
|
188
|
-
┌────────────────────────────────────┐
|
|
189
|
-
│ Add New Hook │
|
|
190
|
-
├────────────────────────────────────┤
|
|
191
|
-
│ │
|
|
192
|
-
│ Name: [________________] │
|
|
193
|
-
│ │
|
|
194
|
-
│ Command: [________________] │
|
|
195
|
-
│ │
|
|
196
|
-
│ Arguments: [________________] │
|
|
197
|
-
│ │
|
|
198
|
-
│ ┌──────┐ ┌──────┐ │
|
|
199
|
-
│ │ Save │ │Cancel│ │
|
|
200
|
-
│ └──────┘ └──────┘ │
|
|
201
|
-
│ │
|
|
202
|
-
│ S:Save C/Esc:Cancel │
|
|
203
|
-
└────────────────────────────────────┘
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
- Centered on screen
|
|
207
|
-
- Form fields for hook details
|
|
208
|
-
- Save (S) and Cancel (C/Esc) buttons
|
|
209
|
-
|
|
210
|
-
### Edit Hook Dialog
|
|
211
|
-
|
|
212
|
-
```
|
|
213
|
-
┌────────────────────────────────────┐
|
|
214
|
-
│ Edit Hook: format-on-save │
|
|
215
|
-
├────────────────────────────────────┤
|
|
216
|
-
│ │
|
|
217
|
-
│ Name: [format-on-save____] │
|
|
218
|
-
│ │
|
|
219
|
-
│ Command: [prettier_______] │
|
|
220
|
-
│ │
|
|
221
|
-
│ Arguments: [--write {file}] │
|
|
222
|
-
│ │
|
|
223
|
-
│ ┌──────┐ ┌──────┐ │
|
|
224
|
-
│ │ Save │ │Cancel│ │
|
|
225
|
-
│ └──────┘ └──────┘ │
|
|
226
|
-
│ │
|
|
227
|
-
│ S:Save C/Esc:Cancel │
|
|
228
|
-
└────────────────────────────────────┘
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
- Pre-populated with current values
|
|
232
|
-
- Same layout as Add dialog
|
|
233
|
-
- Only available for user hooks
|
|
234
|
-
|
|
235
|
-
### Delete Confirmation Dialog
|
|
236
|
-
|
|
237
|
-
```
|
|
238
|
-
┌────────────────────────────────────┐
|
|
239
|
-
│ Delete Hook? │
|
|
240
|
-
├────────────────────────────────────┤
|
|
241
|
-
│ │
|
|
242
|
-
│ Are you sure you want to delete │
|
|
243
|
-
│ "format-on-save"? │
|
|
244
|
-
│ │
|
|
245
|
-
│ ⚠️ This action cannot be undone. │
|
|
246
|
-
│ │
|
|
247
|
-
│ ┌──────┐ ┌──────┐ │
|
|
248
|
-
│ │Delete│ │Cancel│ │
|
|
249
|
-
│ └──────┘ └──────┘ │
|
|
250
|
-
│ │
|
|
251
|
-
│ D:Delete C/Esc:Cancel │
|
|
252
|
-
└────────────────────────────────────┘
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
- Warning message
|
|
256
|
-
- Confirmation required
|
|
257
|
-
- Only available for user hooks
|
|
258
|
-
|
|
259
|
-
### Test Hook Dialog
|
|
260
|
-
|
|
261
|
-
```
|
|
262
|
-
┌────────────────────────────────────┐
|
|
263
|
-
│ Test Hook: format-on-save │
|
|
264
|
-
├────────────────────────────────────┤
|
|
265
|
-
│ │
|
|
266
|
-
│ ⏳ Testing hook... │
|
|
267
|
-
│ │
|
|
268
|
-
│ Simulating: fileEdited event │
|
|
269
|
-
│ Pattern: *.ts │
|
|
270
|
-
│ │
|
|
271
|
-
│ ✓ Test passed │
|
|
272
|
-
│ │
|
|
273
|
-
│ Hook executed successfully │
|
|
274
|
-
│ │
|
|
275
|
-
│ ┌──────┐ │
|
|
276
|
-
│ │Close │ │
|
|
277
|
-
│ └──────┘ │
|
|
278
|
-
│ │
|
|
279
|
-
│ Enter/Esc:Close │
|
|
280
|
-
└────────────────────────────────────┘
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
- Shows test progress
|
|
284
|
-
- Displays results (success/failure)
|
|
285
|
-
- Close button to dismiss
|
|
286
|
-
|
|
287
|
-
---
|
|
288
|
-
|
|
289
|
-
## Visual Indicators
|
|
290
|
-
|
|
291
|
-
### Status Indicators
|
|
292
|
-
|
|
293
|
-
```
|
|
294
|
-
● Green = Enabled hook
|
|
295
|
-
○ Gray = Disabled hook
|
|
296
|
-
🎯 Yellow = Selected hook name
|
|
297
|
-
⬅️ Icon = Exit item
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
### Category Icons
|
|
301
|
-
|
|
302
|
-
```
|
|
303
|
-
📝 File Events - Hooks for file changes
|
|
304
|
-
💬 Prompt Events - Hooks for prompt submission
|
|
305
|
-
👤 User Triggered - Manually triggered hooks
|
|
306
|
-
🔄 Session Events - Session lifecycle hooks
|
|
307
|
-
🤖 Agent Events - Agent operation hooks
|
|
308
|
-
🧠 Model Events - Model operation hooks
|
|
309
|
-
🔧 Tool Events - Tool execution hooks
|
|
310
|
-
📦 Compression Events - Context compression hooks
|
|
311
|
-
🔔 Notifications - Notification hooks
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
### Action Icons
|
|
315
|
-
|
|
316
|
-
```
|
|
317
|
-
➕ A = Add new hook
|
|
318
|
-
✏️ E = Edit hook
|
|
319
|
-
🗑️ D = Delete hook
|
|
320
|
-
🧪 T = Test hook
|
|
321
|
-
🔄 Enter = Toggle hook
|
|
322
|
-
⬅️ 0/Esc = Exit panel
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
### Scroll Indicators
|
|
326
|
-
|
|
327
|
-
```
|
|
328
|
-
┌──────────────────────┐
|
|
329
|
-
│ ▲ More above │ ← Scroll up indicator
|
|
330
|
-
│ │
|
|
331
|
-
│ 📝 File Events │
|
|
332
|
-
│ ● hook-1 │
|
|
333
|
-
│ ● hook-2 │
|
|
334
|
-
│ │
|
|
335
|
-
│ ▼ More below │ ← Scroll down indicator
|
|
336
|
-
└──────────────────────┘
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
### Border Colors
|
|
340
|
-
|
|
341
|
-
```
|
|
342
|
-
Cyan border = Panel has focus
|
|
343
|
-
Gray border = Panel not focused
|
|
344
|
-
Yellow text = Selected item
|
|
345
|
-
Green text = Enabled status
|
|
346
|
-
Red text = Disabled status
|
|
347
|
-
```
|
|
348
|
-
|
|
349
|
-
---
|
|
350
|
-
|
|
351
|
-
## Common Scenarios
|
|
352
|
-
|
|
353
|
-
### Scenario 1: Browsing Hooks
|
|
354
|
-
|
|
355
|
-
```
|
|
356
|
-
Step 1: Navigate to Hooks
|
|
357
|
-
┌─────────────────────────────────────┐
|
|
358
|
-
│ Chat Tools [Hooks] Settings │ ← Press Tab
|
|
359
|
-
└─────────────────────────────────────┘
|
|
360
|
-
|
|
361
|
-
Step 2: Enter Panel
|
|
362
|
-
┌─────────────────────────────────────┐
|
|
363
|
-
│ 🎣 Hooks Configuration │ ← Press Enter
|
|
364
|
-
├──────────────────────┬──────────────┤
|
|
365
|
-
│ ⬅️ Exit │ │
|
|
366
|
-
│ │ │
|
|
367
|
-
│ 📝 File Events │ │
|
|
368
|
-
└──────────────────────┴──────────────┘
|
|
369
|
-
|
|
370
|
-
Step 3: Navigate Hooks
|
|
371
|
-
┌──────────────────────┐
|
|
372
|
-
│ 📝 File Events │
|
|
373
|
-
│ ● format-on-save │ ← Press ↓
|
|
374
|
-
│ ○ lint-on-save │
|
|
375
|
-
└──────────────────────┘
|
|
376
|
-
```
|
|
377
|
-
|
|
378
|
-
### Scenario 2: Toggling a Hook
|
|
379
|
-
|
|
380
|
-
```
|
|
381
|
-
Step 1: Select Hook
|
|
382
|
-
┌──────────────────────┐
|
|
383
|
-
│ 📝 File Events │
|
|
384
|
-
│ ● format-on-save │ ← Selected (yellow)
|
|
385
|
-
│ ○ lint-on-save │
|
|
386
|
-
└──────────────────────┘
|
|
387
|
-
|
|
388
|
-
Step 2: Toggle
|
|
389
|
-
┌──────────────────────┐
|
|
390
|
-
│ 📝 File Events │
|
|
391
|
-
│ ○ format-on-save │ ← Press Enter (now disabled)
|
|
392
|
-
│ ○ lint-on-save │
|
|
393
|
-
└──────────────────────┘
|
|
394
|
-
|
|
395
|
-
Step 3: Verify Status
|
|
396
|
-
┌────────────────────────────────┐
|
|
397
|
-
│ Status: │
|
|
398
|
-
│ ┌────────────────┐ │
|
|
399
|
-
│ │ ✗ Disabled │ │
|
|
400
|
-
│ └────────────────┘ │
|
|
401
|
-
└────────────────────────────────┘
|
|
402
|
-
```
|
|
403
|
-
|
|
404
|
-
### Scenario 3: Adding a Hook
|
|
405
|
-
|
|
406
|
-
```
|
|
407
|
-
Step 1: Open Add Dialog
|
|
408
|
-
Press A
|
|
409
|
-
┌────────────────────────────────────┐
|
|
410
|
-
│ Add New Hook │
|
|
411
|
-
├────────────────────────────────────┤
|
|
412
|
-
│ Name: [________________] │
|
|
413
|
-
│ Command: [________________] │
|
|
414
|
-
│ Arguments: [________________] │
|
|
415
|
-
└────────────────────────────────────┘
|
|
416
|
-
|
|
417
|
-
Step 2: Fill Form
|
|
418
|
-
┌────────────────────────────────────┐
|
|
419
|
-
│ Add New Hook │
|
|
420
|
-
├────────────────────────────────────┤
|
|
421
|
-
│ Name: [lint-on-save____] │
|
|
422
|
-
│ Command: [eslint_______] │
|
|
423
|
-
│ Arguments: [--fix {file}] │
|
|
424
|
-
└────────────────────────────────────┘
|
|
425
|
-
|
|
426
|
-
Step 3: Save
|
|
427
|
-
Press S
|
|
428
|
-
┌──────────────────────┐
|
|
429
|
-
│ 📝 File Events │
|
|
430
|
-
│ ● format-on-save │
|
|
431
|
-
│ ● lint-on-save │ ← New hook added
|
|
432
|
-
└──────────────────────┘
|
|
433
|
-
```
|
|
434
|
-
|
|
435
|
-
### Scenario 4: Testing a Hook
|
|
436
|
-
|
|
437
|
-
```
|
|
438
|
-
Step 1: Select Hook
|
|
439
|
-
┌──────────────────────┐
|
|
440
|
-
│ 📝 File Events │
|
|
441
|
-
│ ● format-on-save │ ← Selected
|
|
442
|
-
│ ○ lint-on-save │
|
|
443
|
-
└──────────────────────┘
|
|
444
|
-
|
|
445
|
-
Step 2: Open Test Dialog
|
|
446
|
-
Press T
|
|
447
|
-
┌────────────────────────────────────┐
|
|
448
|
-
│ Test Hook: format-on-save │
|
|
449
|
-
├────────────────────────────────────┤
|
|
450
|
-
│ ⏳ Testing hook... │
|
|
451
|
-
└────────────────────────────────────┘
|
|
452
|
-
|
|
453
|
-
Step 3: View Results
|
|
454
|
-
┌────────────────────────────────────┐
|
|
455
|
-
│ Test Hook: format-on-save │
|
|
456
|
-
├────────────────────────────────────┤
|
|
457
|
-
│ ✓ Test passed │
|
|
458
|
-
│ Hook executed successfully │
|
|
459
|
-
└────────────────────────────────────┘
|
|
460
|
-
```
|
|
461
|
-
|
|
462
|
-
### Scenario 5: Scrolling Long Lists
|
|
463
|
-
|
|
464
|
-
```
|
|
465
|
-
Top of List
|
|
466
|
-
┌──────────────────────┐
|
|
467
|
-
│ ⬅️ Exit │
|
|
468
|
-
│ │
|
|
469
|
-
│ 📝 File Events │
|
|
470
|
-
│ ● hook-1 │
|
|
471
|
-
│ ● hook-2 │
|
|
472
|
-
│ ● hook-3 │
|
|
473
|
-
│ │
|
|
474
|
-
│ ▼ More below │ ← Scroll indicator
|
|
475
|
-
└──────────────────────┘
|
|
476
|
-
|
|
477
|
-
Middle of List
|
|
478
|
-
┌──────────────────────┐
|
|
479
|
-
│ ▲ More above │ ← Scroll indicator
|
|
480
|
-
│ │
|
|
481
|
-
│ 💬 Prompt Events │
|
|
482
|
-
│ ● hook-10 │
|
|
483
|
-
│ ● hook-11 │
|
|
484
|
-
│ ● hook-12 │
|
|
485
|
-
│ │
|
|
486
|
-
│ ▼ More below │ ← Scroll indicator
|
|
487
|
-
└──────────────────────┘
|
|
488
|
-
|
|
489
|
-
Bottom of List
|
|
490
|
-
┌──────────────────────┐
|
|
491
|
-
│ ▲ More above │ ← Scroll indicator
|
|
492
|
-
│ │
|
|
493
|
-
│ 👤 User Triggered │
|
|
494
|
-
│ ● hook-48 │
|
|
495
|
-
│ ● hook-49 │
|
|
496
|
-
│ ● hook-50 │
|
|
497
|
-
└──────────────────────┘
|
|
498
|
-
```
|
|
499
|
-
|
|
500
|
-
---
|
|
501
|
-
|
|
502
|
-
## Error States
|
|
503
|
-
|
|
504
|
-
### Corrupted Hooks Warning
|
|
505
|
-
|
|
506
|
-
```
|
|
507
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
508
|
-
│ 🎣 Hooks Configuration │
|
|
509
|
-
├─────────────────────────────────────────────────────────────┤
|
|
510
|
-
│ │
|
|
511
|
-
│ ┌──────────────────────────────────────────────────────┐ │
|
|
512
|
-
│ │ ⚠️ 2 corrupted hook(s) found │ │
|
|
513
|
-
│ └──────────────────────────────────────────────────────┘ │
|
|
514
|
-
│ │
|
|
515
|
-
├──────────────────────┬──────────────────────────────────────┤
|
|
516
|
-
│ ⬅️ Exit │ │
|
|
517
|
-
│ │ │
|
|
518
|
-
│ 📝 File Events │ │
|
|
519
|
-
└──────────────────────┴──────────────────────────────────────┘
|
|
520
|
-
```
|
|
521
|
-
|
|
522
|
-
### No Hooks Available
|
|
523
|
-
|
|
524
|
-
```
|
|
525
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
526
|
-
│ 🎣 Hooks Configuration │
|
|
527
|
-
├─────────────────────────────────────────────────────────────┤
|
|
528
|
-
│ │
|
|
529
|
-
│ │
|
|
530
|
-
│ ┌──────────────────────┐ │
|
|
531
|
-
│ │ 📭 No hooks available│ │
|
|
532
|
-
│ └──────────────────────┘ │
|
|
533
|
-
│ │
|
|
534
|
-
│ Press A to add a new hook │
|
|
535
|
-
│ │
|
|
536
|
-
│ │
|
|
537
|
-
└─────────────────────────────────────────────────────────────┘
|
|
538
|
-
```
|
|
539
|
-
|
|
540
|
-
### Loading State
|
|
541
|
-
|
|
542
|
-
```
|
|
543
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
544
|
-
│ 🎣 Hooks Configuration │
|
|
545
|
-
├─────────────────────────────────────────────────────────────┤
|
|
546
|
-
│ │
|
|
547
|
-
│ │
|
|
548
|
-
│ ┌──────────────────────┐ │
|
|
549
|
-
│ │ ⏳ Loading hooks... │ │
|
|
550
|
-
│ └──────────────────────┘ │
|
|
551
|
-
│ │
|
|
552
|
-
│ │
|
|
553
|
-
└─────────────────────────────────────────────────────────────┘
|
|
554
|
-
```
|
|
555
|
-
|
|
556
|
-
---
|
|
557
|
-
|
|
558
|
-
## Tips for Visual Navigation
|
|
559
|
-
|
|
560
|
-
### Color Coding
|
|
561
|
-
|
|
562
|
-
- **Yellow** = Current selection (where you are)
|
|
563
|
-
- **Green** = Enabled (will execute)
|
|
564
|
-
- **Gray** = Disabled (won't execute)
|
|
565
|
-
- **Cyan** = Panel focus (active)
|
|
566
|
-
- **Red** = Error or disabled status
|
|
567
|
-
|
|
568
|
-
### Icon Recognition
|
|
569
|
-
|
|
570
|
-
Learn the category icons to quickly find hooks:
|
|
571
|
-
|
|
572
|
-
- 📝 = Files
|
|
573
|
-
- 💬 = Prompts
|
|
574
|
-
- 👤 = User actions
|
|
575
|
-
- 🔄 = Sessions
|
|
576
|
-
|
|
577
|
-
### Layout Memory
|
|
578
|
-
|
|
579
|
-
Remember the layout:
|
|
580
|
-
|
|
581
|
-
- Left = List (what's available)
|
|
582
|
-
- Right = Details (what's selected)
|
|
583
|
-
- Top = Exit (quick way out)
|
|
584
|
-
- Bottom = Scroll indicator (more content)
|
|
585
|
-
|
|
586
|
-
---
|
|
587
|
-
|
|
588
|
-
## See Also
|
|
589
|
-
|
|
590
|
-
- [Keyboard Shortcuts](keyboard-shortcuts.md) - Quick reference for all shortcuts
|
|
591
|
-
- [User Guide](3%20projects/OLLM%20CLI/Hooks/user-guide.md) - Complete hooks documentation
|
|
592
|
-
- [Troubleshooting](3%20projects/OLLM%20CLI/Hooks/user-guide.md#troubleshooting) - Common issues and solutions
|
|
593
|
-
|
|
594
|
-
---
|
|
595
|
-
|
|
596
|
-
**Last Updated:** 2026-01-18
|
|
597
|
-
**Version:** 0.1.0
|
|
598
|
-
**Feature:** Hooks Panel UI
|