File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ // Package exec provides SDK wrappers for CLIProxyAPI executor functionality.
2+ // This package exposes internal executor implementations for external use.
3+ package exec
4+
5+ import (
6+ "github.com/router-for-me/CLIProxyAPI/v6/internal/config"
7+ internal "github.com/router-for-me/CLIProxyAPI/v6/internal/runtime/executor"
8+
9+ // Import builtin to register translators (claude -> antigravity, etc.)
10+ _ "github.com/router-for-me/CLIProxyAPI/v6/sdk/translator/builtin"
11+ )
12+
13+ // AntigravityExecutor is a type alias for the internal AntigravityExecutor.
14+ type AntigravityExecutor = internal.AntigravityExecutor
15+
16+ // NewAntigravityExecutor creates a new AntigravityExecutor instance.
17+ func NewAntigravityExecutor () * AntigravityExecutor {
18+ return internal .NewAntigravityExecutor (& config.Config {})
19+ }
Original file line number Diff line number Diff line change 1+ // Package exec provides SDK wrappers for CLIProxyAPI executor functionality.
2+ // This file exposes the internal CodexExecutor for external use.
3+ // Token management (access_token refresh) is the caller's responsibility;
4+ // the caller should set auth.Metadata["access_token"] before calling Execute/ExecuteStream.
5+ package exec
6+
7+ import (
8+ "github.com/router-for-me/CLIProxyAPI/v6/internal/config"
9+ internal "github.com/router-for-me/CLIProxyAPI/v6/internal/runtime/executor"
10+ )
11+
12+ // CodexExecutor is a type alias for the internal CodexExecutor.
13+ type CodexExecutor = internal.CodexExecutor
14+
15+ // NewCodexExecutor creates a new CodexExecutor instance.
16+ func NewCodexExecutor () * CodexExecutor {
17+ return internal .NewCodexExecutor (& config.Config {})
18+ }
You can’t perform that action at this time.
0 commit comments