codex_cli_sdk 1.2.0 copy "codex_cli_sdk: ^1.2.0" to clipboard
codex_cli_sdk: ^1.2.0 copied to clipboard

A powerful Dart SDK for interacting with OpenAI Codex CLI, providing seamless integration with AI-powered coding assistance through the Codex CLI tool.

Changelog #

1.2.0 #

Added #

  • Auto-Update Functionality: Added updateToNewestVersionIfNeeded() method
    • Automatically checks for CLI updates
    • Compares installed version with latest npm version
    • Updates to newest version if available
    • Falls back to reinstall if update fails

Improvements #

  • Better version management for Codex CLI
  • Automatic handling of outdated installations
  • Improved error handling during updates

1.1.0 #

Added #

  • Reasoning Effort Support
    • Added reasoningEffort field to CodexChatOptions for controlling model reasoning depth
    • Support for 'minimal', 'medium', and 'high' reasoning effort levels
    • Added changeModelWithEffort() method to change both model and reasoning effort
    • Automatically passes --reasoning-effort flag to Codex CLI when specified

Enhanced #

  • Better support for GPT-5 and GPT-OSS-120B models with configurable reasoning effort
  • Improved model switching capabilities with reasoning effort control

1.0.0 #

Initial Release #

  • Core Features

    • Complete SDK for interacting with OpenAI Codex CLI
    • Full support for text, file, and bytes content types
    • Session management with resume and continue capabilities
    • Structured responses with JSON schema support
  • Chat Functionality

    • Multiple operation modes: suggest, auto-edit, full-auto
    • Streaming response support
    • Session persistence and conversation continuity
    • Custom system prompts and model selection
  • MCP (Model Context Protocol) Support

    • Install and manage MCP servers
    • Support for popular MCP servers (filesystem, GitHub, PostgreSQL, etc.)
    • Custom MCP server configuration
    • TOML configuration file management
  • Installation & Setup

    • Auto-detection of Codex CLI installation
    • Built-in installer for Codex CLI via npm
    • API key management with environment variable support
  • Developer Experience

    • Comprehensive error handling with specific exception types
    • Extensive unit test coverage
    • Rich examples for all major features
    • Type-safe schema building with nullable control
    • Automatic resource cleanup and disposal
  • Documentation

    • Complete API documentation
    • Usage examples for all features
    • Troubleshooting guide
    • pub.flutter-io.cn compliant package structure
0
likes
150
points
162
downloads

Publisher

unverified uploader

Weekly Downloads

A powerful Dart SDK for interacting with OpenAI Codex CLI, providing seamless integration with AI-powered coding assistance through the Codex CLI tool.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

path, uuid

More

Packages that depend on codex_cli_sdk