mirror of
https://gh-proxy.org/https://github.com/klinsmaya/CLIProxyAPI.git
synced 2026-11-09 18:06:50 +08:00
- Introduced `applyRequestAfterAuthInterceptor` to modify requests after credential selection and before executor translation. - Added `InterceptRequestAfterAuth` method across plugin adapters with corresponding tests for context validation. - Enhanced format resolution logic (`requestToFormat`) to support additional providers and formats. - Updated JavaScript handler to include a new `on_after_auth_request` hook for post-auth request handling. - Refactored interceptor methods for clarity and better encapsulation of request/response lifecycles.
21 lines
593 B
AMPL
21 lines
593 B
AMPL
module github.com/router-for-me/CLIProxyAPIPlugins/jshandler
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/dop251/goja v0.0.0-20260607120635-348e6bea910d
|
|
github.com/router-for-me/CLIProxyAPI/v7 v7.1.55
|
|
github.com/sirupsen/logrus v1.9.4
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
github.com/dlclark/regexp2/v2 v2.2.1 // indirect
|
|
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
|
|
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
|
|
golang.org/x/sys v0.38.0 // indirect
|
|
golang.org/x/text v0.31.0 // indirect
|
|
)
|
|
|
|
replace github.com/router-for-me/CLIProxyAPI/v7 => ../../..
|