2026-02-13 07:05:16 +00:00
|
|
|
// Package constants provides shared constants across the codebase.
|
|
|
|
|
package constants
|
|
|
|
|
|
2026-02-19 10:48:17 +00:00
|
|
|
// internalChannels defines channels that are used for internal communication
|
2026-02-13 07:05:16 +00:00
|
|
|
// and should not be exposed to external users or recorded as last active channel.
|
2026-02-19 10:48:17 +00:00
|
|
|
var internalChannels = map[string]struct{}{
|
|
|
|
|
"cli": {},
|
|
|
|
|
"system": {},
|
|
|
|
|
"subagent": {},
|
2026-02-13 07:05:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsInternalChannel returns true if the channel is an internal channel.
|
|
|
|
|
func IsInternalChannel(channel string) bool {
|
2026-02-19 10:48:17 +00:00
|
|
|
_, found := internalChannels[channel]
|
|
|
|
|
return found
|
2026-02-13 07:05:16 +00:00
|
|
|
}
|