Skip to content

Commit 219ec41

Browse files
committed
🔒️ Fix HTTP tunneling for MCP/function calls
Before this commit, due to the use of FRP for tunneling, Anyquery was flagged by Windows Defender. The feature was completely rewritten from scratch to use a new server and WebSocket. Latency has now been reduced, and tunnels are now encrypted for additional security.
1 parent 6a04726 commit 219ec41

File tree

21 files changed

+1946
-661
lines changed

21 files changed

+1946
-661
lines changed

controller/llm.go

Lines changed: 469 additions & 530 deletions
Large diffs are not rendered by default.

go.mod

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,51 @@ replace github.com/mattn/go-sqlite3 => github.com/julien040/go-sqlite3-anyquery
77
replace github.com/runreveal/pql => github.com/julien040/pql-anyquery v0.2.1
88

99
require (
10-
github.com/BurntSushi/toml v1.4.0
10+
github.com/BurntSushi/toml v1.5.0
1111
github.com/GuilhermeCaruso/kair v0.0.0-20200618030634-2cbc3ec356d4
12-
github.com/Masterminds/semver/v3 v3.3.0
13-
github.com/PuerkitoBio/goquery v1.10.0
12+
github.com/Masterminds/semver/v3 v3.3.1
13+
github.com/PuerkitoBio/goquery v1.10.2
1414
github.com/adrg/xdg v0.5.3
15-
github.com/andybalholm/cascadia v1.3.2
15+
github.com/andybalholm/cascadia v1.3.3
1616
github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de
1717
github.com/bcicen/go-units v1.0.5
18-
github.com/briandowns/spinner v1.23.1
18+
github.com/briandowns/spinner v1.23.2
1919
github.com/charmbracelet/huh v0.6.0
20-
github.com/charmbracelet/lipgloss v1.0.0
21-
github.com/charmbracelet/log v0.4.0
22-
github.com/dgraph-io/badger/v4 v4.4.0
20+
github.com/charmbracelet/lipgloss v1.1.0
21+
github.com/charmbracelet/log v0.4.1
22+
github.com/dgraph-io/badger/v4 v4.6.0
2323
github.com/edsrzf/mmap-go v1.2.0
2424
github.com/elk-language/go-prompt v1.1.5
2525
github.com/fatedier/frp v0.61.1
2626
github.com/gammazero/deque v1.0.0
2727
github.com/go-sql-driver/mysql v1.9.0
2828
github.com/goccy/go-json v0.10.5
29-
github.com/google/cel-go v0.23.2
29+
github.com/google/cel-go v0.24.1
30+
github.com/gorilla/websocket v1.5.3
3031
github.com/hashicorp/go-getter v1.7.8
3132
github.com/hashicorp/go-hclog v1.6.3
3233
github.com/hashicorp/go-plugin v1.6.3
3334
github.com/hjson/hjson-go/v4 v4.4.0
3435
github.com/huandu/go-sqlbuilder v1.32.0
3536
github.com/jackc/pgx/v5 v5.7.2
3637
github.com/jmoiron/sqlx v1.4.0
37-
github.com/julien040/go-ternary v1.0.0
38-
github.com/mark3labs/mcp-go v0.8.3
38+
github.com/julien040/go-ternary v1.0.1
39+
github.com/mark3labs/mcp-go v0.14.1
3940
github.com/mattn/go-sqlite3 v1.14.24
4041
github.com/olekukonko/tablewriter v0.0.5
41-
github.com/parquet-go/parquet-go v0.24.0
42+
github.com/parquet-go/parquet-go v0.25.0
4243
github.com/runreveal/pql v0.1.0
4344
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
4445
github.com/spf13/cobra v1.9.1
4546
github.com/spf13/pflag v1.0.6
4647
github.com/stretchr/testify v1.10.0
4748
github.com/trivago/grok v1.0.0
4849
github.com/twpayne/go-geom v1.5.7
49-
golang.org/x/crypto v0.33.0
50+
golang.org/x/crypto v0.36.0
5051
golang.org/x/exp v0.0.0-20241204233417-43b7b7cde48d
51-
golang.org/x/mod v0.22.0
52-
golang.org/x/net v0.35.0
53-
golang.org/x/term v0.29.0
52+
golang.org/x/mod v0.24.0
53+
golang.org/x/net v0.37.0
54+
golang.org/x/term v0.30.0
5455
gopkg.in/yaml.v3 v3.0.1
5556
vitess.io/vitess v0.21.0
5657
)
@@ -79,14 +80,16 @@ require (
7980
github.com/cespare/xxhash/v2 v2.3.0 // indirect
8081
github.com/charmbracelet/bubbles v0.20.0 // indirect
8182
github.com/charmbracelet/bubbletea v1.1.0 // indirect
82-
github.com/charmbracelet/x/ansi v0.4.2 // indirect
83+
github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc // indirect
84+
github.com/charmbracelet/x/ansi v0.8.0 // indirect
85+
github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd // indirect
8386
github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 // indirect
84-
github.com/charmbracelet/x/term v0.2.0 // indirect
87+
github.com/charmbracelet/x/term v0.2.1 // indirect
8588
github.com/coreos/go-oidc/v3 v3.10.0 // indirect
8689
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
8790
github.com/dave/jennifer v1.7.1 // indirect
8891
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
89-
github.com/dgraph-io/ristretto/v2 v2.0.0 // indirect
92+
github.com/dgraph-io/ristretto/v2 v2.1.0 // indirect
9093
github.com/dustin/go-humanize v1.0.1 // indirect
9194
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
9295
github.com/fatedier/golib v0.5.0 // indirect
@@ -97,12 +100,11 @@ require (
97100
github.com/go-logr/logr v1.4.2 // indirect
98101
github.com/go-logr/stdr v1.2.2 // indirect
99102
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
100-
github.com/gogo/protobuf v1.3.2 // indirect
101103
github.com/golang/glog v1.2.2 // indirect
102104
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
103105
github.com/golang/protobuf v1.5.4 // indirect
104106
github.com/golang/snappy v0.0.4 // indirect
105-
github.com/google/flatbuffers v24.3.25+incompatible // indirect
107+
github.com/google/flatbuffers v25.2.10+incompatible // indirect
106108
github.com/google/pprof v0.0.0-20241206021119-61a79c692802 // indirect
107109
github.com/google/s2a-go v0.1.8 // indirect
108110
github.com/google/uuid v1.6.0 // indirect
@@ -120,7 +122,7 @@ require (
120122
github.com/jackc/puddle/v2 v2.2.2 // indirect
121123
github.com/jhump/protoreflect v1.16.0 // indirect
122124
github.com/jmespath/go-jmespath v0.4.0 // indirect
123-
github.com/klauspost/compress v1.17.11 // indirect
125+
github.com/klauspost/compress v1.18.0 // indirect
124126
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
125127
github.com/klauspost/reedsolomon v1.12.0 // indirect
126128
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
@@ -134,7 +136,7 @@ require (
134136
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
135137
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
136138
github.com/muesli/cancelreader v0.2.2 // indirect
137-
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a // indirect
139+
github.com/muesli/termenv v0.16.0 // indirect
138140
github.com/oklog/run v1.0.0 // indirect
139141
github.com/onsi/ginkgo/v2 v2.22.0 // indirect
140142
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
@@ -159,26 +161,29 @@ require (
159161
github.com/tjfoc/gmsm v1.4.1 // indirect
160162
github.com/trivago/tgo v1.0.7 // indirect
161163
github.com/ulikunitz/xz v0.5.10 // indirect
164+
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
162165
github.com/xtaci/kcp-go/v5 v5.6.13 // indirect
166+
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
163167
go.opencensus.io v0.24.0 // indirect
168+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
164169
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0 // indirect
165170
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0 // indirect
166-
go.opentelemetry.io/otel v1.30.0 // indirect
167-
go.opentelemetry.io/otel/metric v1.30.0 // indirect
168-
go.opentelemetry.io/otel/trace v1.30.0 // indirect
171+
go.opentelemetry.io/otel v1.34.0 // indirect
172+
go.opentelemetry.io/otel/metric v1.34.0 // indirect
173+
go.opentelemetry.io/otel/trace v1.34.0 // indirect
169174
go.uber.org/mock v0.5.0 // indirect
170175
golang.org/x/oauth2 v0.23.0 // indirect
171-
golang.org/x/sync v0.11.0 // indirect
172-
golang.org/x/sys v0.30.0 // indirect
173-
golang.org/x/text v0.22.0 // indirect
176+
golang.org/x/sync v0.12.0 // indirect
177+
golang.org/x/sys v0.31.0 // indirect
178+
golang.org/x/text v0.23.0 // indirect
174179
golang.org/x/time v0.6.0 // indirect
175180
golang.org/x/tools v0.28.0 // indirect
176181
google.golang.org/api v0.197.0 // indirect
177182
google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1 // indirect
178183
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect
179184
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
180185
google.golang.org/grpc v1.66.2 // indirect
181-
google.golang.org/protobuf v1.36.1 // indirect
186+
google.golang.org/protobuf v1.36.5 // indirect
182187
gopkg.in/ini.v1 v1.67.0 // indirect
183188
k8s.io/apimachinery v0.28.8 // indirect
184189
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect

0 commit comments

Comments
 (0)