// Copyright (c) 2026 Storm Dragon // SPDX-License-Identifier: GPL-3.0-or-later package tentacle func (spec Spec) protocol() Version { if spec.SessionEvents { return Version{Major: 1, Minor: 1} } return Version{Major: 1, Minor: 0} } func (spec Spec) apis(legacy []string) []string { apis := append([]string(nil), legacy...) if spec.SessionEvents { apis = append(apis, "session-events") } if len(spec.RemoteGrants) > 0 { apis = append(apis, "remote-access") } return apis } func (spec Spec) capabilities(legacy []string) []string { if !spec.SessionEvents { return legacy } return append(append([]string{}, legacy[1:]...), spec.RemoteGrants...) }