Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Sources/CodexBarCore/Providers/ProviderFetchPlan.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ public enum ProviderFetchError: LocalizedError, Sendable {
public var errorDescription: String? {
switch self {
case let .noAvailableStrategy(provider):
"No available fetch strategy for \(provider.rawValue)."
if provider == .kiro {
return "Kiro usage requires the Kiro CLI. Install it from https://kiro.dev/docs/cli/ and run 'kiro-cli login' first."
}
return "No available fetch strategy for \(provider.rawValue)."
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions Tests/CodexBarTests/ProviderFetchErrorTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Testing
@testable import CodexBarCore

struct ProviderFetchErrorTests {
@Test
func `missing kiro strategy explains cli requirement`() {
let message = ProviderFetchError.noAvailableStrategy(.kiro).localizedDescription

#expect(message.contains("Kiro CLI"))
#expect(message.contains("kiro-cli login"))
}
}