mirror of
https://gh-proxy.org/https://github.com/klinsmaya/new-api.git
synced 2026-11-08 01:17:09 +08:00
Task plugins now run on github.com/Calcium-Ion/moejs v0.1.0-alpha.3 instead of Sobek, and the host utils are ported to it. The plugin API is unchanged. Code compiled from strings is no longer allowed: eval and the Function constructors throw an EvalError. Hooks receive host values without defensive copies. The engine converts an object or array when the hook first reads it and never writes JavaScript changes back to the host value. Stored protocol state and task views are passed as raw JSON and parsed inside the runtime instead of being decoded into Go maps first. An idle runtime drops its references to the last call's arguments. Whether an optional hook is exported is decided once when the plugin loads, so checking for it no longer takes an execution slot. Usage validation returns the normalized facts in a new map instead of writing into the hook result, so a hook that returns the request body no longer changes it. The request descriptor is copied instead of being round-tripped through JSON.
175 lines
6.8 KiB
AMPL
175 lines
6.8 KiB
AMPL
module github.com/QuantumNous/new-api
|
|
|
|
// +heroku goVersion go1.18
|
|
go 1.25.1
|
|
|
|
require (
|
|
github.com/Calcium-Ion/go-epay v0.0.4
|
|
github.com/abema/go-mp4 v1.4.1
|
|
github.com/andybalholm/brotli v1.2.0
|
|
github.com/anknown/ahocorasick v0.0.0-20190904063843-d75dbd5169c0
|
|
github.com/aws/aws-sdk-go-v2 v1.41.5
|
|
github.com/aws/aws-sdk-go-v2/credentials v1.19.10
|
|
github.com/aws/aws-sdk-go-v2/service/bedrockruntime v1.50.4
|
|
github.com/aws/smithy-go v1.24.2
|
|
github.com/bytedance/gopkg v0.1.3
|
|
github.com/casbin/casbin/v2 v2.135.0
|
|
github.com/coreos/go-oidc/v3 v3.21.0
|
|
github.com/gin-contrib/cors v1.7.2
|
|
github.com/gin-contrib/gzip v0.0.6
|
|
github.com/gin-contrib/static v0.0.1
|
|
github.com/gin-gonic/gin v1.9.1
|
|
github.com/glebarez/sqlite v1.11.0
|
|
github.com/go-audio/aiff v1.1.0
|
|
github.com/go-audio/wav v1.1.0
|
|
github.com/go-playground/validator/v10 v10.20.0
|
|
github.com/go-redis/redis/v8 v8.11.5
|
|
github.com/go-webauthn/webauthn v0.14.0
|
|
github.com/golang-jwt/jwt/v5 v5.3.0
|
|
github.com/google/uuid v1.6.0
|
|
github.com/gorilla/websocket v1.5.0
|
|
github.com/grafana/pyroscope-go v1.2.7
|
|
github.com/jfreymuth/oggvorbis v1.0.5
|
|
github.com/jinzhu/copier v0.4.0
|
|
github.com/joho/godotenv v1.5.1
|
|
github.com/klauspost/compress v1.18.3
|
|
github.com/mewkiz/flac v1.0.13
|
|
github.com/nicksnyder/go-i18n/v2 v2.6.1
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/pquerna/otp v1.5.0
|
|
github.com/samber/hot v0.11.0
|
|
github.com/samber/lo v1.53.0
|
|
github.com/shirou/gopsutil v3.21.11+incompatible
|
|
github.com/shopspring/decimal v1.4.0
|
|
github.com/stretchr/testify v1.12.1
|
|
github.com/stripe/stripe-go/v81 v81.4.0
|
|
github.com/tcolgate/mp3 v0.0.0-20170426193717-e79c5a46d300
|
|
github.com/thanhpk/randstr v1.0.6
|
|
github.com/tidwall/gjson v1.19.0
|
|
github.com/tidwall/sjson v1.2.5
|
|
github.com/tiktoken-go/tokenizer v0.6.2
|
|
github.com/waffo-com/waffo-go v1.3.2
|
|
github.com/yapingcat/gomedia v0.0.0-20240906162731-17feea57090c
|
|
golang.org/x/crypto v0.52.0
|
|
golang.org/x/image v0.41.0
|
|
golang.org/x/net v0.55.0
|
|
golang.org/x/oauth2 v0.36.0
|
|
golang.org/x/sync v0.20.0
|
|
golang.org/x/sys v0.45.0
|
|
golang.org/x/text v0.37.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
gorm.io/driver/mysql v1.5.7
|
|
gorm.io/driver/postgres v1.5.9
|
|
gorm.io/gorm v1.25.12
|
|
)
|
|
|
|
require (
|
|
github.com/waffo-com/waffo-pancake-sdk-go v0.3.1
|
|
gorm.io/driver/clickhouse v0.6.0
|
|
)
|
|
|
|
require (
|
|
github.com/ClickHouse/ch-go v0.71.0 // indirect
|
|
github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect
|
|
github.com/casbin/govaluate v1.10.0 // indirect
|
|
github.com/go-faster/city v1.0.1 // indirect
|
|
github.com/go-faster/errors v0.7.1 // indirect
|
|
github.com/go-jose/go-jose/v4 v4.1.4 // indirect
|
|
github.com/hashicorp/go-version v1.8.0 // indirect
|
|
github.com/paulmach/orb v0.12.0 // indirect
|
|
github.com/pierrec/lz4/v4 v4.1.25 // indirect
|
|
github.com/rogpeppe/go-internal v1.13.1 // indirect
|
|
github.com/segmentio/asm v1.2.1 // indirect
|
|
github.com/yuin/gopher-lua v1.1.1 // indirect
|
|
go.opentelemetry.io/otel v1.41.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.41.0 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.5 // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/Azure/go-ntlmssp v0.1.1
|
|
github.com/alicebob/miniredis/v2 v2.38.0
|
|
github.com/openai/openai-go v1.12.0
|
|
)
|
|
|
|
require (
|
|
github.com/DmitriyVTitov/size v1.5.0 // indirect
|
|
github.com/anknown/darts v0.0.0-20151216065714-83ff685239e6 // indirect
|
|
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.8
|
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.21 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.21 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/boombuler/barcode v1.1.0 // indirect
|
|
github.com/bytedance/sonic v1.14.1 // indirect
|
|
github.com/bytedance/sonic/loader v0.3.0 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/cloudwego/base64x v0.1.6 // indirect
|
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
|
github.com/dlclark/regexp2 v1.11.5 // indirect
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/expr-lang/expr v1.17.8
|
|
github.com/fxamacker/cbor/v2 v2.9.0
|
|
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
|
|
github.com/gin-contrib/sse v0.1.0 // indirect
|
|
github.com/glebarez/go-sqlite v1.21.2
|
|
github.com/go-audio/audio v1.0.0 // indirect
|
|
github.com/go-audio/riff v1.0.0 // indirect
|
|
github.com/go-ole/go-ole v1.2.6 // indirect
|
|
github.com/go-playground/locales v0.14.1 // indirect
|
|
github.com/go-playground/universal-translator v0.18.1 // indirect
|
|
github.com/go-sql-driver/mysql v1.7.0
|
|
github.com/go-webauthn/x v0.1.25 // indirect
|
|
github.com/goccy/go-json v0.10.2 // indirect
|
|
github.com/google/go-tpm v0.9.5 // indirect
|
|
github.com/grafana/pyroscope-go/godeltaprof v0.1.9 // indirect
|
|
github.com/icza/bitio v1.1.0 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/jackc/pgx/v5 v5.9.2
|
|
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
|
github.com/jfreymuth/vorbis v1.0.2 // indirect
|
|
github.com/jinzhu/inflection v1.0.0 // indirect
|
|
github.com/jinzhu/now v1.1.5 // indirect
|
|
github.com/json-iterator/go v1.1.12
|
|
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
|
|
github.com/leodido/go-urn v1.4.0 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/mewkiz/pkg v0.0.0-20250417130911-3f050ff8c56d // indirect
|
|
github.com/mewpkg/term v0.0.0-20241026122259-37a80af23985 // indirect
|
|
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
|
github.com/ncruces/go-strftime v0.1.9 // indirect
|
|
github.com/pelletier/go-toml/v2 v2.2.1 // indirect
|
|
github.com/prometheus/client_golang v1.22.0 // indirect
|
|
github.com/prometheus/client_model v0.6.1 // indirect
|
|
github.com/prometheus/common v0.62.0
|
|
github.com/prometheus/procfs v0.15.1 // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
github.com/samber/go-singleflightx v0.3.2 // indirect
|
|
github.com/tidwall/match v1.1.1 // indirect
|
|
github.com/tidwall/pretty v1.2.1 // indirect
|
|
github.com/tklauser/go-sysconf v0.3.12 // indirect
|
|
github.com/tklauser/numcpus v0.6.1 // indirect
|
|
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
|
github.com/ugorji/go/codec v1.2.12 // indirect
|
|
github.com/x448/float16 v0.8.4 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
|
golang.org/x/arch v0.21.0 // indirect
|
|
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b // indirect
|
|
google.golang.org/protobuf v1.36.5 // indirect
|
|
modernc.org/libc v1.66.10 // indirect
|
|
modernc.org/mathutil v1.7.1 // indirect
|
|
modernc.org/memory v1.11.0 // indirect
|
|
modernc.org/sqlite v1.40.1 // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/Calcium-Ion/moejs v0.1.0-alpha.3
|
|
github.com/ClickHouse/clickhouse-go/v2 v2.46.0
|
|
github.com/QuantumNous/new-api/relaykit v0.0.0
|
|
)
|
|
|
|
replace github.com/QuantumNous/new-api/relaykit => ./relaykit
|