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
4 changes: 2 additions & 2 deletions internal/agentplugin/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const (
// install says which release a report comes from.
PluginVersionFloor = "0.13.0"
// PluginVersionCeiling is the first release past the newest contract this
// lich implements (0.20), and the first one it cannot vouch for.
PluginVersionCeiling = "0.21.0"
// lich implements (0.21), and the first one it cannot vouch for.
PluginVersionCeiling = "0.22.0"
// ModAnswerRelease is the first release whose mod answers a subagent
// worker's errand itself (docs/hooks/mod-answer.md).
ModAnswerRelease = "0.17.0"
Expand Down
7 changes: 4 additions & 3 deletions internal/agentplugin/compat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ func TestCompatible(t *testing.T) {
"0.18.0": true,
"0.19.0": true,
"0.20.0": true,
"0.21.0": false,
"0.21.0": true,
"0.22.0": false,
"1.0.0": false,
"": false,
"not-a-semver": false,
Expand All @@ -36,9 +37,9 @@ func TestNewestCompatible(t *testing.T) {
tags []string
want string
}{
{"newest in range wins over a newer one past it", []string{"0.21.0", "0.13.2", "0.13.10", "0.12.9"}, "0.13.10"},
{"newest in range wins over a newer one past it", []string{"0.22.0", "0.13.2", "0.13.10", "0.12.9"}, "0.13.10"},
{"order does not matter", []string{"0.13.0", "0.13.1"}, "0.13.1"},
{"nothing in range", []string{"0.21.0", "0.12.0"}, ""},
{"nothing in range", []string{"0.22.0", "0.12.0"}, ""},
{"no releases", nil, ""},
}
for _, tc := range tests {
Expand Down
Loading