CodingCliInterface<C extends CliChatInterface<CliChatOptions> , O extends CliChatOptions> class
abstract
- Implementers
Constructors
Properties
-
activeSessions
→ List<
C> -
List of active chat sessions for cleanup
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addApiKeyToEnvironment(
String apiKey) → Future< void> - Adds the API key to the environment variables for the current process. This allows the CLI tool to authenticate without requiring login.
-
createNewChat(
{O? options, String? apiKey}) → C - Creates a new chat session with Codex
-
getSDKInfo(
) → Future< Map< String, dynamic> > - Gets information about the installed SDK
-
installCodexCLI(
{bool global = true}) → Future< void> - Installs the CLI using npm
-
isCodexCLIInstalled(
) → Future< bool> - Checks if the CLI is installed
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateToNewestVersionIfNeeded(
{bool global = true}) → Future< void> - Updates the CLI to the newest version if needed
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited