Skip to content
Open
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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ require (
github.com/clipperhouse/displaywidth v0.9.0 // indirect
github.com/clipperhouse/stringish v0.1.1 // indirect
github.com/clipperhouse/uax29/v2 v2.5.0 // indirect
github.com/cloudflare/circl v1.6.1 // indirect
github.com/cloudflare/circl v1.6.3 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ github.com/clipperhouse/stringish v0.1.1 h1:+NSqMOr3GR6k1FdRhhnXrLfztGzuG+VuFDfa
github.com/clipperhouse/stringish v0.1.1/go.mod h1:v/WhFtE1q0ovMta2+m+UbpZ+2/HEXNWYXQgCt4hdOzA=
github.com/clipperhouse/uax29/v2 v2.5.0 h1:x7T0T4eTHDONxFJsL94uKNKPHrclyFI0lm7+w94cO8U=
github.com/clipperhouse/uax29/v2 v2.5.0/go.mod h1:Wn1g7MK6OoeDT0vL+Q0SQLDz/KpfsVRgg6W7ihQeh4g=
github.com/cloudflare/circl v1.6.1 h1:zqIqSPIndyBh1bjLVVDHMPpVKqp8Su/V+6MeDzzQBQ0=
github.com/cloudflare/circl v1.6.1/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs=
github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8=
github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4=
github.com/cloudwego/base64x v0.1.4 h1:jwCgWpFanWmN8xoIUHa2rtzmkd5J2plF/dnLS6Xd/0Y=
github.com/cloudwego/base64x v0.1.4/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w=
github.com/cloudwego/iasm v0.2.0 h1:1KNIy1I1H9hNNFEEH3DVnI4UujN+1zjpuk6gwHLTssg=
Expand Down
19 changes: 19 additions & 0 deletions sdk/exec/antigravity.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Package exec provides SDK wrappers for CLIProxyAPI executor functionality.
// This package exposes internal executor implementations for external use.
package exec

import (
"github.com/router-for-me/CLIProxyAPI/v6/internal/config"
internal "github.com/router-for-me/CLIProxyAPI/v6/internal/runtime/executor"

// Import builtin to register translators (claude -> antigravity, etc.)
_ "github.com/router-for-me/CLIProxyAPI/v6/sdk/translator/builtin"
)

// AntigravityExecutor is a type alias for the internal AntigravityExecutor.
type AntigravityExecutor = internal.AntigravityExecutor

// NewAntigravityExecutor creates a new AntigravityExecutor instance.
func NewAntigravityExecutor() *AntigravityExecutor {
return internal.NewAntigravityExecutor(&config.Config{})
}
18 changes: 18 additions & 0 deletions sdk/exec/codex.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Package exec provides SDK wrappers for CLIProxyAPI executor functionality.
// This file exposes the internal CodexExecutor for external use.
// Token management (access_token refresh) is the caller's responsibility;
// the caller should set auth.Metadata["access_token"] before calling Execute/ExecuteStream.
package exec

import (
"github.com/router-for-me/CLIProxyAPI/v6/internal/config"
internal "github.com/router-for-me/CLIProxyAPI/v6/internal/runtime/executor"
)

// CodexExecutor is a type alias for the internal CodexExecutor.
type CodexExecutor = internal.CodexExecutor

// NewCodexExecutor creates a new CodexExecutor instance.
func NewCodexExecutor() *CodexExecutor {
return internal.NewCodexExecutor(&config.Config{})
}