(currentInput: string)
| 72 | } |
| 73 | |
| 74 | navigateUp(currentInput: string): string | null { |
| 75 | if (this.history.length === 0) return null; |
| 76 | |
| 77 | // Store original input on first navigation |
| 78 | if (this.currentIndex === -1) { |
| 79 | this.originalInput = currentInput; |
| 80 | this.currentIndex = 0; |
| 81 | } else if (this.currentIndex < this.history.length - 1) { |
| 82 | this.currentIndex++; |
| 83 | } |
| 84 | |
| 85 | return this.history[this.currentIndex]?.text || null; |
| 86 | } |
| 87 | |
| 88 | navigateDown(): string | null { |
| 89 | if (this.currentIndex === -1) return null; |
no outgoing calls
no test coverage detected