Skip to content

Commit f49629b

Browse files
committed
Remove remaining koding references
1 parent be7282e commit f49629b

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

examples/interruptible_tui.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ def show_help(self):
167167
help_table.add_row("[bold]Input Modes:[/bold]", "")
168168
help_table.add_row("> [text]", "Prompt mode - Chat with AI assistant")
169169
help_table.add_row("! [command]", "Bash mode - Execute shell commands")
170-
help_table.add_row("# [note]", "Koding mode - Add notes to AGENTS.md")
170+
help_table.add_row("# [note]", "Memory mode - Add notes to AGENTS.md")
171171
help_table.add_row("", "") # Separator
172-
help_table.add_row("[bold]Koding Mode Types:[/bold]", "")
172+
help_table.add_row("[bold]Memory Mode Types:[/bold]", "")
173173
help_table.add_row("# [simple note]", "Direct note (simple write)")
174174
help_table.add_row("# put/create/generate...", "AI processing with query_quick")
175175

@@ -242,8 +242,8 @@ def _detect_and_set_mode(self, user_input: str) -> tuple[InputMode, str]:
242242
self.current_mode = InputMode.BASH
243243
return InputMode.BASH, user_input[1:].strip()
244244
elif user_input.startswith("#"):
245-
self.current_mode = InputMode.KODING
246-
return InputMode.KODING, user_input[1:].strip()
245+
self.current_mode = InputMode.MEMORY
246+
return InputMode.MEMORY, user_input[1:].strip()
247247
else:
248248
self.current_mode = InputMode.PROMPT
249249
return InputMode.PROMPT, user_input
@@ -252,7 +252,7 @@ def _get_mode_indicator(self, mode: InputMode) -> str:
252252
"""Get colored mode indicator for display."""
253253
if mode == InputMode.BASH:
254254
return "[bold yellow]![/bold yellow]"
255-
elif mode == InputMode.KODING:
255+
elif mode == InputMode.MEMORY:
256256
return "[bold cyan]#[/bold cyan]"
257257
else:
258258
return "[bold green]>[/bold green]"
@@ -321,8 +321,8 @@ async def _handle_bash_mode(self, command: str):
321321
)
322322
self.console.print(error_panel)
323323

324-
async def _handle_koding_mode(self, note_content: str):
325-
"""Handle koding mode input - consistent with REPL logic."""
324+
async def _handle_memory_mode(self, note_content: str):
325+
"""Handle memory mode input - consistent with REPL logic."""
326326
if not note_content:
327327
self.console.print("❌ [bold red]Empty note content[/bold red]")
328328
return
@@ -331,7 +331,7 @@ async def _handle_koding_mode(self, note_content: str):
331331
# Show what note is being processed
332332
note_panel = Panel(
333333
f"[bold white]{note_content}[/bold white]",
334-
title=f"{self._get_mode_indicator(InputMode.KODING)} [bold cyan]Processing Koding Request[/bold cyan]",
334+
title=f"{self._get_mode_indicator(InputMode.MEMORY)} [bold cyan]Processing Memory Request[/bold cyan]",
335335
border_style="cyan",
336336
)
337337
self.console.print(note_panel)
@@ -344,21 +344,21 @@ async def _handle_koding_mode(self, note_content: str):
344344

345345
if is_action_request:
346346
# Handle as AI request using query_quick for lightweight processing
347-
await self._handle_koding_ai_request(note_content)
347+
await self._handle_memory_ai_request(note_content)
348348
else:
349349
# Handle as direct note to AGENTS.md (simple write)
350-
await self._handle_koding_note(note_content)
350+
await self._handle_memory_note(note_content)
351351

352352
except Exception as e:
353353
error_panel = Panel(
354-
f"❌ [bold red]Error processing koding request: {e}[/bold red]",
355-
title="[bold red]Koding Error[/bold red]",
354+
f"❌ [bold red]Error processing memory request: {e}[/bold red]",
355+
title="[bold red]Memory Error[/bold red]",
356356
border_style="red",
357357
)
358358
self.console.print(error_panel)
359359

360-
async def _handle_koding_ai_request(self, content: str):
361-
"""Handle AI request for koding mode using query_quick for lightweight processing."""
360+
async def _handle_memory_ai_request(self, content: str):
361+
"""Handle AI request for memory mode using query_quick for lightweight processing."""
362362
if not self.agent:
363363
self.console.print(
364364
"❌ [bold red]Agent not available for AI requests[/bold red]"
@@ -379,7 +379,7 @@ async def _handle_koding_ai_request(self, content: str):
379379

380380
# Create system prompt for AI content generation
381381
system_prompt = [
382-
"The user is using Koding mode. Format your response as a comprehensive,",
382+
"The user is using Memory mode. Format your response as a comprehensive,",
383383
"well-structured document suitable for adding to AGENTS.md. Use proper",
384384
"markdown formatting with headings, lists, code blocks, etc.",
385385
]
@@ -432,13 +432,13 @@ async def _handle_koding_ai_request(self, content: str):
432432
)
433433
self.console.print(error_panel)
434434

435-
async def _handle_koding_note(self, content: str):
435+
async def _handle_memory_note(self, content: str):
436436
"""Handle direct note to AGENTS.md - simple write without AI processing."""
437437
try:
438438
# Show what note is being added
439439
note_panel = Panel(
440440
f"[bold white]{content}[/bold white]",
441-
title=f"{self._get_mode_indicator(InputMode.KODING)} [bold cyan]Adding Direct Note[/bold cyan]",
441+
title=f"{self._get_mode_indicator(InputMode.MEMORY)} [bold cyan]Adding Direct Note[/bold cyan]",
442442
border_style="cyan",
443443
)
444444
self.console.print(note_panel)
@@ -532,8 +532,8 @@ async def process_input(self, user_input: str):
532532
if mode == InputMode.BASH:
533533
await self._handle_bash_mode(cleaned_input)
534534
return
535-
elif mode == InputMode.KODING:
536-
await self._handle_koding_mode(cleaned_input)
535+
elif mode == InputMode.MEMORY:
536+
await self._handle_memory_mode(cleaned_input)
537537
return
538538

539539
# Handle prompt mode (regular AI chat)

0 commit comments

Comments
 (0)