Skip to content

Commit 4bb5063

Browse files
M09Icclaude
andcommitted
chore: remove bridge_agent_proto build tag
Remove conditional compilation for bridge agent feature. The feature is now enabled by default since proto definitions are stable and no heavy dependencies are required. Changes: - Delete stub files (agent_stub.go, provider_stub.go, rpc-bridge-agent_stub.go) - Remove build tags from implementation files - Update test inventory to remove obsolete test case - Clean up unused dependencies in go.mod Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2499983 commit 4bb5063

11 files changed

Lines changed: 0 additions & 81 deletions

File tree

client/command/agent/agent.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build bridge_agent_proto
2-
// +build bridge_agent_proto
3-
41
package agent
52

63
import (

client/command/agent/agent_stub.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

go.mod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ require (
164164
github.com/jinzhu/now v1.1.5 // indirect
165165
github.com/json-iterator/go v1.1.13-0.20220915233716-71ac16282d12 // indirect
166166
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
167-
github.com/klauspost/reedsolomon v1.12.0 // indirect
168167
github.com/lib/pq v1.10.9 // indirect
169168
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
170169
github.com/mailru/easyjson v0.7.7 // indirect
@@ -200,8 +199,6 @@ require (
200199
github.com/shadowsocks/go-shadowsocks2 v0.1.5 // indirect
201200
github.com/spf13/cast v1.7.1 // indirect
202201
github.com/technoweenie/multipartstreamer v1.0.1 // indirect
203-
github.com/templexxx/cpu v0.1.1 // indirect
204-
github.com/templexxx/xorsimd v0.4.3 // indirect
205202
github.com/tengattack/gluacrypto v0.0.0-20240324200146-54b58c95c255 // indirect
206203
github.com/tjfoc/gmsm v1.4.1 // indirect
207204
github.com/twmb/murmur3 v1.1.8 // indirect

scripts/testinventory/inventory_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ func TestDetectLayer(t *testing.T) {
4444
relDir: "helper/utils/output",
4545
want: "unit",
4646
},
47-
{
48-
name: "other build tag",
49-
path: filepath.Join(root, "server", "internal", "llm", "provider_test.go"),
50-
content: "//go:build bridge_agent_proto\n\npackage llm\n",
51-
relDir: "server/internal/llm",
52-
want: "tagged",
53-
},
5447
}
5548

5649
for _, tt := range tests {

server/internal/llm/live_test_helper_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build bridge_agent_proto
2-
// +build bridge_agent_proto
3-
41
package llm
52

63
import (

server/internal/llm/provider.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build bridge_agent_proto
2-
// +build bridge_agent_proto
3-
41
package llm
52

63
import (

server/internal/llm/provider_stub.go

Lines changed: 0 additions & 12 deletions
This file was deleted.

server/internal/llm/provider_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build bridge_agent_proto
2-
// +build bridge_agent_proto
3-
41
package llm
52

63
import (

server/internal/llm/react_agent_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build bridge_agent_proto
2-
// +build bridge_agent_proto
3-
41
package llm
52

63
import (

server/rpc/rpc-bridge-agent.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build bridge_agent_proto
2-
// +build bridge_agent_proto
3-
41
package rpc
52

63
import (

0 commit comments

Comments
 (0)