@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.
Files changed (86) hide show
  1. package/dist/cli.js +20 -14
  2. package/dist/cli.js.map +3 -3
  3. package/dist/services/documentService.d.ts.map +1 -1
  4. package/dist/services/documentService.js +12 -2
  5. package/dist/services/documentService.js.map +1 -1
  6. package/dist/ui/components/docs/DocsPanel.d.ts.map +1 -1
  7. package/dist/ui/components/docs/DocsPanel.js +1 -1
  8. package/dist/ui/components/docs/DocsPanel.js.map +1 -1
  9. package/dist/ui/components/launch/VersionBanner.js +1 -1
  10. package/dist/ui/components/launch/VersionBanner.js.map +1 -1
  11. package/dist/ui/components/layout/KeybindsLegend.d.ts.map +1 -1
  12. package/dist/ui/components/layout/KeybindsLegend.js +1 -1
  13. package/dist/ui/components/layout/KeybindsLegend.js.map +1 -1
  14. package/dist/ui/components/tabs/BugReportTab.js +1 -1
  15. package/dist/ui/components/tabs/BugReportTab.js.map +1 -1
  16. package/dist/ui/services/docsService.d.ts +12 -27
  17. package/dist/ui/services/docsService.d.ts.map +1 -1
  18. package/dist/ui/services/docsService.js +40 -67
  19. package/dist/ui/services/docsService.js.map +1 -1
  20. package/docs/README.md +3 -410
  21. package/package.json +10 -7
  22. package/scripts/copy-docs-to-user.cjs +34 -0
  23. package/docs/Context/CheckpointFlowDiagram.md +0 -673
  24. package/docs/Context/ContextArchitecture.md +0 -898
  25. package/docs/Context/ContextCompression.md +0 -1102
  26. package/docs/Context/ContextManagment.md +0 -750
  27. package/docs/Context/Index.md +0 -209
  28. package/docs/Context/README.md +0 -390
  29. package/docs/DevelopmentRoadmap/Index.md +0 -238
  30. package/docs/DevelopmentRoadmap/OLLM-CLI_Releases.md +0 -419
  31. package/docs/DevelopmentRoadmap/PlanedFeatures.md +0 -448
  32. package/docs/DevelopmentRoadmap/README.md +0 -174
  33. package/docs/DevelopmentRoadmap/Roadmap.md +0 -572
  34. package/docs/DevelopmentRoadmap/RoadmapVisual.md +0 -372
  35. package/docs/Hooks/Architecture.md +0 -885
  36. package/docs/Hooks/Index.md +0 -244
  37. package/docs/Hooks/KeyboardShortcuts.md +0 -248
  38. package/docs/Hooks/Protocol.md +0 -817
  39. package/docs/Hooks/README.md +0 -403
  40. package/docs/Hooks/UserGuide.md +0 -1483
  41. package/docs/Hooks/VisualGuide.md +0 -598
  42. package/docs/Index.md +0 -506
  43. package/docs/Installation.md +0 -586
  44. package/docs/Introduction.md +0 -367
  45. package/docs/LLM Models/Index.md +0 -239
  46. package/docs/LLM Models/LLM_GettingStarted.md +0 -748
  47. package/docs/LLM Models/LLM_Index.md +0 -701
  48. package/docs/LLM Models/LLM_MemorySystem.md +0 -337
  49. package/docs/LLM Models/LLM_ModelCompatibility.md +0 -499
  50. package/docs/LLM Models/LLM_ModelsArchitecture.md +0 -933
  51. package/docs/LLM Models/LLM_ModelsCommands.md +0 -839
  52. package/docs/LLM Models/LLM_ModelsConfiguration.md +0 -1094
  53. package/docs/LLM Models/LLM_ModelsList.md +0 -1071
  54. package/docs/LLM Models/LLM_ModelsList.md.backup +0 -400
  55. package/docs/LLM Models/README.md +0 -355
  56. package/docs/MCP/MCP_Architecture.md +0 -1086
  57. package/docs/MCP/MCP_Commands.md +0 -1111
  58. package/docs/MCP/MCP_GettingStarted.md +0 -590
  59. package/docs/MCP/MCP_Index.md +0 -524
  60. package/docs/MCP/MCP_Integration.md +0 -866
  61. package/docs/MCP/MCP_Marketplace.md +0 -160
  62. package/docs/MCP/README.md +0 -415
  63. package/docs/Prompts System/Architecture.md +0 -760
  64. package/docs/Prompts System/Index.md +0 -223
  65. package/docs/Prompts System/PromptsRouting.md +0 -1047
  66. package/docs/Prompts System/PromptsTemplates.md +0 -1102
  67. package/docs/Prompts System/README.md +0 -389
  68. package/docs/Prompts System/SystemPrompts.md +0 -856
  69. package/docs/Quickstart.md +0 -535
  70. package/docs/Tools/Architecture.md +0 -884
  71. package/docs/Tools/GettingStarted.md +0 -624
  72. package/docs/Tools/Index.md +0 -216
  73. package/docs/Tools/ManifestReference.md +0 -141
  74. package/docs/Tools/README.md +0 -440
  75. package/docs/Tools/UserGuide.md +0 -773
  76. package/docs/Troubleshooting.md +0 -1265
  77. package/docs/UI&Settings/Architecture.md +0 -729
  78. package/docs/UI&Settings/ColorASCII.md +0 -34
  79. package/docs/UI&Settings/Commands.md +0 -755
  80. package/docs/UI&Settings/Configuration.md +0 -872
  81. package/docs/UI&Settings/Index.md +0 -293
  82. package/docs/UI&Settings/Keybinds.md +0 -372
  83. package/docs/UI&Settings/README.md +0 -278
  84. package/docs/UI&Settings/Terminal.md +0 -637
  85. package/docs/UI&Settings/Themes.md +0 -604
  86. package/docs/UI&Settings/UIGuide.md +0 -550
@@ -1,389 +0,0 @@
1
- # Prompts System Documentation
2
-
3
- **Last Updated:** January 26, 2026
4
-
5
- Welcome to the Prompts System documentation for OLLM CLI. This section covers system prompts, prompt templates, and prompt routing.
6
-
7
- ---
8
-
9
- ## 📚 Documentation Overview
10
-
11
- ### Core Documentation
12
-
13
- - **[Architecture](Architecture.md)** - System architecture and design (Coming Soon)
14
- - **[System Prompts](SystemPrompts.md)** - System prompt construction
15
- - **[Prompt Templates](PromptsTemplates.md)** - Template system
16
- - **[Prompt Routing](PromptsRouting.md)** - Routing and modes
17
-
18
- ---
19
-
20
- ## 🎯 What is the Prompts System?
21
-
22
- The **Prompts System** manages how instructions are sent to the LLM, including system prompts, templates, and routing:
23
-
24
- ### 1. **System Prompts**
25
-
26
- Core instructions that define LLM behavior:
27
-
28
- - Identity and capabilities
29
- - Tool usage instructions
30
- - Context management rules
31
- - Response formatting
32
- - Safety guidelines
33
-
34
- ### 2. **Prompt Templates**
35
-
36
- Reusable prompt patterns:
37
-
38
- - Task-specific templates
39
- - Variable substitution
40
- - Template composition
41
- - Template library
42
-
43
- ### 3. **Prompt Routing**
44
-
45
- Intelligent prompt selection:
46
-
47
- - Mode-based routing (chat, code, planning)
48
- - Context-aware selection
49
- - Dynamic prompt assembly
50
- - Optimization strategies
51
-
52
- ---
53
-
54
- ## 📖 Documentation Structure
55
-
56
- ```
57
- docs/Prompts System/
58
- ├── README.md ← You are here
59
- ├── Index.md Quick reference with links
60
- ├── Architecture.md System architecture (Coming Soon)
61
- ├── SystemPrompts.md System prompt construction
62
- ├── PromptsTemplates.md Template system
63
- └── PromptsRouting.md Routing and modes
64
- ```
65
-
66
- ---
67
-
68
- ## 🎓 Key Concepts
69
-
70
- ### System Prompt Construction
71
-
72
- System prompts are built from multiple components:
73
-
74
- **Core Components:**
75
-
76
- - **Identity** - Who the assistant is
77
- - **Capabilities** - What it can do
78
- - **Tools** - Available tools and usage
79
- - **Context** - Current context information
80
- - **Rules** - Behavioral guidelines
81
-
82
- **Assembly Process:**
83
-
84
- 1. Load base system prompt
85
- 2. Add tool descriptions
86
- 3. Inject context information
87
- 4. Add mode-specific instructions
88
- 5. Apply optimizations
89
-
90
- **See:** [System Prompts](SystemPrompts.md)
91
-
92
- ### Prompt Templates
93
-
94
- Reusable patterns for common tasks:
95
-
96
- **Template Types:**
97
-
98
- - **Task Templates** - Specific tasks (code review, debugging)
99
- - **Mode Templates** - Mode-specific prompts
100
- - **Workflow Templates** - Multi-step workflows
101
- - **Custom Templates** - User-defined templates
102
-
103
- **Template Features:**
104
-
105
- - Variable substitution (`{{variable}}`)
106
- - Conditional sections
107
- - Template inheritance
108
- - Composition
109
-
110
- **See:** [Prompt Templates](PromptsTemplates.md)
111
-
112
- ### Prompt Routing
113
-
114
- Intelligent selection of prompts:
115
-
116
- **Routing Modes:**
117
-
118
- - **Chat Mode** - General conversation
119
- - **Code Mode** - Code-focused assistance
120
- - **Planning Mode** - Task planning and breakdown
121
- - **Review Mode** - Code review and analysis
122
-
123
- **Routing Logic:**
124
-
125
- 1. Detect user intent
126
- 2. Select appropriate mode
127
- 3. Load mode-specific prompt
128
- 4. Apply context
129
- 5. Optimize for model
130
-
131
- **See:** [Prompt Routing](PromptsRouting.md)
132
-
133
- ---
134
-
135
- ## 💡 Common Use Cases
136
-
137
- ### Using System Prompts
138
-
139
- ```bash
140
- # View current system prompt
141
- /prompt show
142
-
143
- # Reload system prompt
144
- /prompt reload
145
-
146
- # View prompt stats
147
- /prompt stats
148
- ```
149
-
150
- ### Using Templates
151
-
152
- ```bash
153
- # List available templates
154
- /template list
155
-
156
- # Use a template
157
- /template use code-review
158
-
159
- # Create custom template
160
- /template create my-template
161
- ```
162
-
163
- ### Switching Modes
164
-
165
- ```bash
166
- # Switch to code mode
167
- /mode code
168
-
169
- # Switch to planning mode
170
- /mode planning
171
-
172
- # Return to chat mode
173
- /mode chat
174
- ```
175
-
176
- **Learn more:** [Commands](../UI&Settings/Commands.md#prompt-commands)
177
-
178
- ---
179
-
180
- ## 🛠️ Configuration
181
-
182
- ### System Prompt Settings
183
-
184
- ```yaml
185
- prompts:
186
- # System prompt file
187
- systemPromptFile: system-prompt.md
188
-
189
- # Enable dynamic optimization
190
- dynamicOptimization: true
191
-
192
- # Include tool descriptions
193
- includeTools: true
194
-
195
- # Include context information
196
- includeContext: true
197
- ```
198
-
199
- ### Template Settings
200
-
201
- ```yaml
202
- templates:
203
- # Template directories
204
- directories:
205
- - .ollm/templates/ # Workspace templates
206
- - ~/.ollm/templates/ # User templates
207
-
208
- # Enable template caching
209
- cacheTemplates: true
210
- ```
211
-
212
- ### Routing Settings
213
-
214
- ```yaml
215
- routing:
216
- # Default mode
217
- defaultMode: chat
218
-
219
- # Enable auto-detection
220
- autoDetectMode: true
221
-
222
- # Mode-specific settings
223
- modes:
224
- code:
225
- temperature: 0.3
226
- planning:
227
- temperature: 0.7
228
- ```
229
-
230
- **Learn more:** [Configuration](../UI&Settings/Configuration.md)
231
-
232
- ---
233
-
234
- ## 🔍 Troubleshooting
235
-
236
- ### Common Issues
237
-
238
- **System prompt not loading:**
239
-
240
- - Check file exists: `system-prompt.md`
241
- - Verify file permissions
242
- - Check syntax errors
243
- - Reload: `/prompt reload`
244
-
245
- **Template not found:**
246
-
247
- - List templates: `/template list`
248
- - Check template directory
249
- - Verify template name
250
- - Check file extension (.md)
251
-
252
- **Mode not switching:**
253
-
254
- - Check mode exists: `/mode list`
255
- - Verify mode configuration
256
- - Check for errors: `/mode status`
257
- - Reset to default: `/mode chat`
258
-
259
- **Prompt too long:**
260
-
261
- - Enable optimization: `/config set prompts.dynamicOptimization true`
262
- - Reduce context: `/context compact`
263
- - Use shorter templates
264
- - Disable unnecessary sections
265
-
266
- **See:** [Troubleshooting Guide](../Troubleshooting.md)
267
-
268
- ---
269
-
270
- ## 📊 Implementation Status
271
-
272
- ### Current (v0.1.0)
273
-
274
- - ✅ System Prompt Construction
275
- - ✅ Tool Description Injection
276
- - ✅ Context Information Injection
277
- - ✅ Basic Template System
278
- - ✅ Mode Switching (chat, code, planning)
279
- - ✅ Prompt Commands
280
-
281
- ### Planned (v0.2.0)
282
-
283
- - ⏳ Advanced Template System
284
- - ⏳ Template Marketplace
285
- - ⏳ Auto Mode Detection
286
- - ⏳ Prompt Analytics
287
-
288
- ### Planned (v0.3.0)
289
-
290
- - ⏳ Prompt Optimization
291
- - ⏳ A/B Testing
292
- - ⏳ Prompt Versioning
293
-
294
- ---
295
-
296
- ## 🤝 Related Documentation
297
-
298
- ### Core Systems
299
-
300
- - [Context Management](../Context/ContextManagment.md) - Context system
301
- - [Tools System](../Tools/README.md) - Tool execution
302
- - [Model Management](../LLM%20Models/README.md) - Model selection
303
-
304
- ### Commands
305
-
306
- - [Prompt Commands](../UI&Settings/Commands.md#prompt-commands) - CLI commands
307
- - [Template Commands](../UI&Settings/Commands.md#template-commands) - Template management
308
- - [Mode Commands](../UI&Settings/Commands.md#mode-commands) - Mode switching
309
-
310
- ### Developer Resources
311
-
312
- - Knowledge DB: `dev_PromptSystem.md` - Prompt system architecture
313
-
314
- ---
315
-
316
- ## 🎯 Quick Start
317
-
318
- ### For New Users
319
-
320
- 1. **View System Prompt**
321
-
322
- ```bash
323
- /prompt show
324
- ```
325
-
326
- 2. **List Templates**
327
-
328
- ```bash
329
- /template list
330
- ```
331
-
332
- 3. **Try Different Modes**
333
- ```bash
334
- /mode code
335
- /mode planning
336
- /mode chat
337
- ```
338
-
339
- ### For Advanced Users
340
-
341
- 1. **Create Custom Template**
342
-
343
- ```bash
344
- /template create my-workflow
345
- ```
346
-
347
- 2. **Optimize Prompts**
348
-
349
- ```bash
350
- /config set prompts.dynamicOptimization true
351
- ```
352
-
353
- 3. **Configure Modes**
354
- ```bash
355
- /config set routing.modes.code.temperature 0.2
356
- ```
357
-
358
- ---
359
-
360
- ## 📈 Best Practices
361
-
362
- ### System Prompts
363
-
364
- 1. **Keep It Focused** - Clear, specific instructions
365
- 2. **Include Examples** - Show desired behavior
366
- 3. **Update Regularly** - Refine based on usage
367
- 4. **Test Thoroughly** - Verify behavior with different models
368
- 5. **Version Control** - Track changes over time
369
-
370
- ### Templates
371
-
372
- 1. **Descriptive Names** - Clear, meaningful names
373
- 2. **Good Documentation** - Explain template purpose
374
- 3. **Use Variables** - Make templates reusable
375
- 4. **Test Variations** - Try different inputs
376
- 5. **Share Useful Templates** - Contribute to community
377
-
378
- ### Modes
379
-
380
- 1. **Choose Appropriate Mode** - Match mode to task
381
- 2. **Customize Settings** - Adjust temperature, etc.
382
- 3. **Create Custom Modes** - For specific workflows
383
- 4. **Monitor Performance** - Track mode effectiveness
384
-
385
- ---
386
-
387
- **Last Updated:** January 26, 2026
388
- **Version:** 0.1.0
389
- **Status:** Active Development