Files
Jarvis/packages/Logging/Sources/JarvisLogging/JarvisLogChannel.swift
james.maes 384ec5b3ef feat(05-05): add JarvisLogChannel.mcp for AGENT-11 timeout warning
ConfirmingToolDispatcher needs to emit a WARNING log line on broker timeout
(AGENT-11). The plan specifies the log lands in JarvisLogChannel.mcp, but
that case did not yet exist in the enum.

Adds .mcp (rawValue 'mcp') to the channel enum and updates the two
case-count tests (ChannelTests + LoggingTests) to expect 8 cases.
2026-04-25 14:17:35 -05:00

18 lines
608 B
Swift

import Foundation
public enum JarvisLogChannel: String, Sendable, CaseIterable {
case agent
case tools
case ui
case system
case bus
// Added in Plan 04-03 for the on-disk replay log + DevOverlay (Plan 04-05).
case replay
case devoverlay
// Added in Plan 05-05 for the JarvisMCP layer's confirmation broker / dispatcher
// WARNING log lines (AGENT-11 timeout-as-deny). Mirrors the existing
// `MCPLogChannel.logger(label:)` factory by giving a stable channel rawValue
// ("mcp") so call sites can `Logger(label: JarvisLogChannel.mcp.rawValue)`.
case mcp
}