kollabor 0.4.9__py3-none-any.whl → 0.4.15__py3-none-any.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.
Files changed (192) hide show
  1. agents/__init__.py +2 -0
  2. agents/coder/__init__.py +0 -0
  3. agents/coder/agent.json +4 -0
  4. agents/coder/api-integration.md +2150 -0
  5. agents/coder/cli-pretty.md +765 -0
  6. agents/coder/code-review.md +1092 -0
  7. agents/coder/database-design.md +1525 -0
  8. agents/coder/debugging.md +1102 -0
  9. agents/coder/dependency-management.md +1397 -0
  10. agents/coder/git-workflow.md +1099 -0
  11. agents/coder/refactoring.md +1454 -0
  12. agents/coder/security-hardening.md +1732 -0
  13. agents/coder/system_prompt.md +1448 -0
  14. agents/coder/tdd.md +1367 -0
  15. agents/creative-writer/__init__.py +0 -0
  16. agents/creative-writer/agent.json +4 -0
  17. agents/creative-writer/character-development.md +1852 -0
  18. agents/creative-writer/dialogue-craft.md +1122 -0
  19. agents/creative-writer/plot-structure.md +1073 -0
  20. agents/creative-writer/revision-editing.md +1484 -0
  21. agents/creative-writer/system_prompt.md +690 -0
  22. agents/creative-writer/worldbuilding.md +2049 -0
  23. agents/data-analyst/__init__.py +30 -0
  24. agents/data-analyst/agent.json +4 -0
  25. agents/data-analyst/data-visualization.md +992 -0
  26. agents/data-analyst/exploratory-data-analysis.md +1110 -0
  27. agents/data-analyst/pandas-data-manipulation.md +1081 -0
  28. agents/data-analyst/sql-query-optimization.md +881 -0
  29. agents/data-analyst/statistical-analysis.md +1118 -0
  30. agents/data-analyst/system_prompt.md +928 -0
  31. agents/default/__init__.py +0 -0
  32. agents/default/agent.json +4 -0
  33. agents/default/dead-code.md +794 -0
  34. agents/default/explore-agent-system.md +585 -0
  35. agents/default/system_prompt.md +1448 -0
  36. agents/kollabor/__init__.py +0 -0
  37. agents/kollabor/analyze-plugin-lifecycle.md +175 -0
  38. agents/kollabor/analyze-terminal-rendering.md +388 -0
  39. agents/kollabor/code-review.md +1092 -0
  40. agents/kollabor/debug-mcp-integration.md +521 -0
  41. agents/kollabor/debug-plugin-hooks.md +547 -0
  42. agents/kollabor/debugging.md +1102 -0
  43. agents/kollabor/dependency-management.md +1397 -0
  44. agents/kollabor/git-workflow.md +1099 -0
  45. agents/kollabor/inspect-llm-conversation.md +148 -0
  46. agents/kollabor/monitor-event-bus.md +558 -0
  47. agents/kollabor/profile-performance.md +576 -0
  48. agents/kollabor/refactoring.md +1454 -0
  49. agents/kollabor/system_prompt copy.md +1448 -0
  50. agents/kollabor/system_prompt.md +757 -0
  51. agents/kollabor/trace-command-execution.md +178 -0
  52. agents/kollabor/validate-config.md +879 -0
  53. agents/research/__init__.py +0 -0
  54. agents/research/agent.json +4 -0
  55. agents/research/architecture-mapping.md +1099 -0
  56. agents/research/codebase-analysis.md +1077 -0
  57. agents/research/dependency-audit.md +1027 -0
  58. agents/research/performance-profiling.md +1047 -0
  59. agents/research/security-review.md +1359 -0
  60. agents/research/system_prompt.md +492 -0
  61. agents/technical-writer/__init__.py +0 -0
  62. agents/technical-writer/agent.json +4 -0
  63. agents/technical-writer/api-documentation.md +2328 -0
  64. agents/technical-writer/changelog-management.md +1181 -0
  65. agents/technical-writer/readme-writing.md +1360 -0
  66. agents/technical-writer/style-guide.md +1410 -0
  67. agents/technical-writer/system_prompt.md +653 -0
  68. agents/technical-writer/tutorial-creation.md +1448 -0
  69. core/__init__.py +0 -2
  70. core/application.py +343 -88
  71. core/cli.py +229 -10
  72. core/commands/menu_renderer.py +463 -59
  73. core/commands/registry.py +14 -9
  74. core/commands/system_commands.py +2461 -14
  75. core/config/loader.py +151 -37
  76. core/config/service.py +18 -6
  77. core/events/bus.py +29 -9
  78. core/events/executor.py +205 -75
  79. core/events/models.py +27 -8
  80. core/fullscreen/command_integration.py +20 -24
  81. core/fullscreen/components/__init__.py +10 -1
  82. core/fullscreen/components/matrix_components.py +1 -2
  83. core/fullscreen/components/space_shooter_components.py +654 -0
  84. core/fullscreen/plugin.py +5 -0
  85. core/fullscreen/renderer.py +52 -13
  86. core/fullscreen/session.py +52 -15
  87. core/io/__init__.py +29 -5
  88. core/io/buffer_manager.py +6 -1
  89. core/io/config_status_view.py +7 -29
  90. core/io/core_status_views.py +267 -347
  91. core/io/input/__init__.py +25 -0
  92. core/io/input/command_mode_handler.py +711 -0
  93. core/io/input/display_controller.py +128 -0
  94. core/io/input/hook_registrar.py +286 -0
  95. core/io/input/input_loop_manager.py +421 -0
  96. core/io/input/key_press_handler.py +502 -0
  97. core/io/input/modal_controller.py +1011 -0
  98. core/io/input/paste_processor.py +339 -0
  99. core/io/input/status_modal_renderer.py +184 -0
  100. core/io/input_errors.py +5 -1
  101. core/io/input_handler.py +211 -2452
  102. core/io/key_parser.py +7 -0
  103. core/io/layout.py +15 -3
  104. core/io/message_coordinator.py +111 -2
  105. core/io/message_renderer.py +129 -4
  106. core/io/status_renderer.py +147 -607
  107. core/io/terminal_renderer.py +97 -51
  108. core/io/terminal_state.py +21 -4
  109. core/io/visual_effects.py +816 -165
  110. core/llm/agent_manager.py +1063 -0
  111. core/llm/api_adapters/__init__.py +44 -0
  112. core/llm/api_adapters/anthropic_adapter.py +432 -0
  113. core/llm/api_adapters/base.py +241 -0
  114. core/llm/api_adapters/openai_adapter.py +326 -0
  115. core/llm/api_communication_service.py +167 -113
  116. core/llm/conversation_logger.py +322 -16
  117. core/llm/conversation_manager.py +556 -30
  118. core/llm/file_operations_executor.py +84 -32
  119. core/llm/llm_service.py +934 -103
  120. core/llm/mcp_integration.py +541 -57
  121. core/llm/message_display_service.py +135 -18
  122. core/llm/plugin_sdk.py +1 -2
  123. core/llm/profile_manager.py +1183 -0
  124. core/llm/response_parser.py +274 -56
  125. core/llm/response_processor.py +16 -3
  126. core/llm/tool_executor.py +6 -1
  127. core/logging/__init__.py +2 -0
  128. core/logging/setup.py +34 -6
  129. core/models/resume.py +54 -0
  130. core/plugins/__init__.py +4 -2
  131. core/plugins/base.py +127 -0
  132. core/plugins/collector.py +23 -161
  133. core/plugins/discovery.py +37 -3
  134. core/plugins/factory.py +6 -12
  135. core/plugins/registry.py +5 -17
  136. core/ui/config_widgets.py +128 -28
  137. core/ui/live_modal_renderer.py +2 -1
  138. core/ui/modal_actions.py +5 -0
  139. core/ui/modal_overlay_renderer.py +0 -60
  140. core/ui/modal_renderer.py +268 -7
  141. core/ui/modal_state_manager.py +29 -4
  142. core/ui/widgets/base_widget.py +7 -0
  143. core/updates/__init__.py +10 -0
  144. core/updates/version_check_service.py +348 -0
  145. core/updates/version_comparator.py +103 -0
  146. core/utils/config_utils.py +685 -526
  147. core/utils/plugin_utils.py +1 -1
  148. core/utils/session_naming.py +111 -0
  149. fonts/LICENSE +21 -0
  150. fonts/README.md +46 -0
  151. fonts/SymbolsNerdFont-Regular.ttf +0 -0
  152. fonts/SymbolsNerdFontMono-Regular.ttf +0 -0
  153. fonts/__init__.py +44 -0
  154. {kollabor-0.4.9.dist-info → kollabor-0.4.15.dist-info}/METADATA +54 -4
  155. kollabor-0.4.15.dist-info/RECORD +228 -0
  156. {kollabor-0.4.9.dist-info → kollabor-0.4.15.dist-info}/top_level.txt +2 -0
  157. plugins/agent_orchestrator/__init__.py +39 -0
  158. plugins/agent_orchestrator/activity_monitor.py +181 -0
  159. plugins/agent_orchestrator/file_attacher.py +77 -0
  160. plugins/agent_orchestrator/message_injector.py +135 -0
  161. plugins/agent_orchestrator/models.py +48 -0
  162. plugins/agent_orchestrator/orchestrator.py +403 -0
  163. plugins/agent_orchestrator/plugin.py +976 -0
  164. plugins/agent_orchestrator/xml_parser.py +191 -0
  165. plugins/agent_orchestrator_plugin.py +9 -0
  166. plugins/enhanced_input/box_styles.py +1 -0
  167. plugins/enhanced_input/color_engine.py +19 -4
  168. plugins/enhanced_input/config.py +2 -2
  169. plugins/enhanced_input_plugin.py +61 -11
  170. plugins/fullscreen/__init__.py +6 -2
  171. plugins/fullscreen/example_plugin.py +1035 -222
  172. plugins/fullscreen/setup_wizard_plugin.py +592 -0
  173. plugins/fullscreen/space_shooter_plugin.py +131 -0
  174. plugins/hook_monitoring_plugin.py +436 -78
  175. plugins/query_enhancer_plugin.py +66 -30
  176. plugins/resume_conversation_plugin.py +1494 -0
  177. plugins/save_conversation_plugin.py +98 -32
  178. plugins/system_commands_plugin.py +70 -56
  179. plugins/tmux_plugin.py +154 -78
  180. plugins/workflow_enforcement_plugin.py +94 -92
  181. system_prompt/default.md +952 -886
  182. core/io/input_mode_manager.py +0 -402
  183. core/io/modal_interaction_handler.py +0 -315
  184. core/io/raw_input_processor.py +0 -946
  185. core/storage/__init__.py +0 -5
  186. core/storage/state_manager.py +0 -84
  187. core/ui/widget_integration.py +0 -222
  188. core/utils/key_reader.py +0 -171
  189. kollabor-0.4.9.dist-info/RECORD +0 -128
  190. {kollabor-0.4.9.dist-info → kollabor-0.4.15.dist-info}/WHEEL +0 -0
  191. {kollabor-0.4.9.dist-info → kollabor-0.4.15.dist-info}/entry_points.txt +0 -0
  192. {kollabor-0.4.9.dist-info → kollabor-0.4.15.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,178 @@
1
+ <!-- Traces slash command execution from input to handler completion -->
2
+
3
+ trace-command-execution skill
4
+
5
+ purpose:
6
+ trace the complete execution path of slash commands from user input
7
+ through parsing, registry lookup, handler execution, and result display.
8
+ helps debug why commands fail or behave unexpectedly.
9
+
10
+
11
+ when to use:
12
+ - a slash command fails with "unknown command" error
13
+ - command handler is not being called
14
+ - need to find which plugin registered a command
15
+ - command executes but produces wrong output
16
+ - need to understand command execution flow
17
+ - debugging command alias conflicts
18
+
19
+
20
+ methodology:
21
+ 1. verify command parsing - check raw input is parsed correctly
22
+ 2. check registry state - verify command is registered
23
+ 3. trace handler lookup - find which handler will execute
24
+ 4. follow execution path - track through executor
25
+ 5. inspect result - verify command result is correct
26
+
27
+
28
+ tools and commands:
29
+
30
+ list all registered commands:
31
+ <read><file>core/commands/registry.py</file></read>
32
+ <terminal>grep -r "register_command" core/ plugins/ --include="*.py"</terminal>
33
+
34
+ check specific command registration:
35
+ <terminal>grep -r "name=\"help\"" core/ plugins/ --include="*.py"</terminal>
36
+ <terminal>grep -r "CommandDefinition" core/commands/ --include="*.py" -A 5</terminal>
37
+
38
+ trace parser behavior:
39
+ <read><file>core/commands/parser.py</file></read>
40
+ <terminal>python -c "from core.commands.parser import SlashCommandParser; p = SlashCommandParser(); print(p.parse_command('/help test'))"</terminal>
41
+
42
+ inspect executor flow:
43
+ <read><file>core/commands/executor.py</file></read>
44
+ <terminal>grep -A 10 "execute_command" core/commands/executor.py</terminal>
45
+
46
+ view plugin command registration:
47
+ <read><file>plugins/system_commands_plugin.py</file></read>
48
+ <terminal>grep -r "def register_commands" plugins/ --include="*.py" -A 20</terminal>
49
+
50
+ check event types for command lifecycle:
51
+ <read><file>core/events/models.py</file><lines>80-90</lines></read>
52
+ <terminal>grep -E "SLASH_COMMAND|COMMAND_" core/events/models.py</terminal>
53
+
54
+ find handler for a specific command:
55
+ <terminal>grep -r "handle_help" core/ --include="*.py"</terminal>
56
+ <terminal>grep -r "def handle_" core/commands/ --include="*.py"</terminal>
57
+
58
+
59
+ example workflow:
60
+
61
+ scenario: /mycommand returns "unknown command"
62
+
63
+ step 1 - verify parsing:
64
+ <terminal>python3 -c "
65
+ from core.commands.parser import SlashCommandParser
66
+ parser = SlashCommandParser()
67
+ cmd = parser.parse_command('/mycommand arg1 arg2')
68
+ if cmd:
69
+ print(f'parsed: name={cmd.name}, args={cmd.args}')
70
+ else:
71
+ print('parse failed')
72
+ "</terminal>
73
+
74
+ step 2 - check registry:
75
+ <terminal>python3 -c "
76
+ from core.commands.registry import SlashCommandRegistry
77
+ registry = SlashCommandRegistry()
78
+ cmd_def = registry.get_command('mycommand')
79
+ if cmd_def:
80
+ print(f'found: plugin={cmd_def.plugin_name}, enabled={cmd_def.enabled}')
81
+ else:
82
+ print('command not in registry')
83
+ "</terminal>
84
+
85
+ step 3 - find where command should be registered:
86
+ <terminal>grep -r "mycommand" plugins/ --include="*.py"</terminal>
87
+ <terminal>grep -r "name=\"mycommand\"" . --include="*.py"</terminal>
88
+
89
+ step 4 - check plugin initialization:
90
+ <read><file>plugins/system_commands_plugin.py</file><lines>40-60</lines></read>
91
+ <terminal>grep "register_commands" plugins/*.py</terminal>
92
+
93
+ step 5 - trace execution if registered:
94
+ <terminal>grep -A 30 "async def execute_command" core/commands/executor.py</terminal>
95
+
96
+
97
+ scenario: command executes but returns wrong result
98
+
99
+ step 1 - find handler:
100
+ <terminal>grep -r "handle_mycommand" . --include="*.py"</terminal>
101
+
102
+ step 2 - inspect handler logic:
103
+ <read><file>path/to/handler_file.py</file><lines>start-end</lines></read>
104
+
105
+ step 3 - add debug logging:
106
+ in handler, add: logger.info(f"[TRACE] mycommand called with args={command.args}")
107
+
108
+ step 4 - check command result structure:
109
+ <read><file>core/events/models.py</file><lines>253-262</lines></read>
110
+
111
+
112
+ expected output:
113
+
114
+ successful trace shows:
115
+ [ok] parser: /help -> SlashCommand(name='help', args=[], raw_input='/help')
116
+ [ok] registry: found command 'help' in plugin 'system'
117
+ [ok] executor: handler=handle_help, mode=INSTANT, enabled=True
118
+ [ok] result: CommandResult(success=True, message='...')
119
+
120
+
121
+ troubleshooting tips:
122
+
123
+ command not found:
124
+ - check plugin is loaded (grep plugin name in plugins/)
125
+ - verify register_command() was called
126
+ - check command name matches (case-sensitive)
127
+ - look for registration errors in logs
128
+
129
+ handler not executing:
130
+ - verify handler is callable (async def or def)
131
+ - check command.enabled is True
132
+ - look for exceptions in executor.py logs
133
+ - verify event bus is working
134
+
135
+ wrong output:
136
+ - check handler return value is CommandResult
137
+ - verify display_type is one of: info, success, warning, error
138
+ - inspect message field construction
139
+
140
+ alias not working:
141
+ - verify alias is in aliases list during registration
142
+ - check for alias conflicts in registry
143
+ - test with primary command name
144
+
145
+ modal not showing:
146
+ - verify ui_config.type is set correctly
147
+ - check modal_config is populated
148
+ - verify event bus emits MODAL_TRIGGER event
149
+
150
+
151
+ key files to understand command system:
152
+
153
+ core/commands/parser.py - parses /command from user input
154
+ core/commands/registry.py - stores all command definitions
155
+ core/commands/executor.py - executes command handlers
156
+ core/events/models.py - CommandDefinition, SlashCommand, CommandResult
157
+ plugins/system_commands_plugin.py - example of command registration
158
+
159
+
160
+ quick reference - command lifecycle:
161
+
162
+ 1. user types "/help topic"
163
+ 2. SlashCommandParser.parse_command() -> SlashCommand(name='help', args=['topic'])
164
+ 3. SlashCommandExecutor.execute_command() called
165
+ 4. emits SLASH_COMMAND_DETECTED event
166
+ 5. registry.get_command('help') -> CommandDefinition
167
+ 6. checks command.enabled
168
+ 7. emits SLASH_COMMAND_EXECUTE event
169
+ 8. calls handler(SlashCommand) -> CommandResult
170
+ 9. emits SLASH_COMMAND_COMPLETE event
171
+ 10. displays result via COMMAND_OUTPUT_DISPLAY event
172
+
173
+
174
+ status tags:
175
+ [ok] - command found and will execute
176
+ [warn] - command found but may have issues
177
+ [error] - command not found or registration failed
178
+ [todo] - investigation step needed