| 1 | pub mod app_mode; |
| 2 | pub mod auth_source; |
| 3 | pub mod auto_model; |
| 4 | pub mod catalog; |
| 5 | pub mod cloud_facts; |
| 6 | mod config_document; |
| 7 | pub mod credentials; |
| 8 | pub mod descriptors; |
| 9 | pub mod device_code; |
| 10 | pub mod extension_host; |
| 11 | pub mod external_credentials; |
| 12 | pub mod hooks; |
| 13 | pub mod instruction_budget; |
| 14 | pub mod legacy_root; |
| 15 | pub mod local_reasoning; |
| 16 | pub mod model_reference; |
| 17 | pub mod models_dev; |
| 18 | pub mod notifications; |
| 19 | mod opencode_go; |
| 20 | pub mod persistence; |
| 21 | pub mod pricing; |
| 22 | pub mod private_directory; |
| 23 | pub mod provider; |
| 24 | mod provider_defaults; |
| 25 | mod provider_kind; |
| 26 | pub mod redaction; |
| 27 | pub mod resolve; |
| 28 | pub mod responses_dialect; |
| 29 | pub mod route; |
| 30 | pub mod settings_schema; |
| 31 | pub mod setup_state; |
| 32 | pub mod suggest; |
| 33 | pub mod user_constitution; |
| 34 | #[cfg(windows)] |
| 35 | pub mod windows_identity; |
| 36 | mod xai_credentials; |
| 37 | pub use app_mode::AppMode; |
| 38 | pub use auth_source::{AuthSourceKind, ProviderAuthSourceToml}; |
| 39 | pub use codewhale_execpolicy::ToolAskRule; |
| 40 | pub use codewhale_paths::{CODEWHALE_APP_DIR, LEGACY_APP_DIR}; |
| 41 | pub use codewhale_secrets::Secrets; |
| 42 | pub use config_document::{ |
| 43 | ConfigDocumentUndo, create_config_document, migrate_legacy_root_config, mutate_config_document, |
| 44 | mutate_config_document_undoable, mutate_config_document_undoable_with_migration, |
| 45 | mutate_config_document_with_migration, preview_legacy_root_config, |
| 46 | replace_config_document_if_unchanged, set_config_document_value, unset_config_document_value, |
| 47 | with_config_write_lock, |
| 48 | }; |
| 49 | pub use external_credentials::{ |
| 50 | EXTERNAL_CREDENTIAL_CONSENT_VERSION, EXTERNAL_CREDENTIAL_READ_ONLY_SEMANTICS, |
| 51 | ExternalCredentialAccess, ExternalCredentialConsentStatus, ExternalCredentialConsentToml, |
| 52 | ExternalCredentialReadGrant, ExternalCredentialSource, default_dsh_credentials_path, |
| 53 | external_credential_consent_status, quote_os_path, resolve_external_credential_path, |
| 54 | }; |
| 55 | pub use model_reference::{Modality, ModelReferenceCard, ModelReferenceDatabase}; |
| 56 | pub use opencode_go::{ |
| 57 | opencode_go_dispatch_base_url, opencode_go_endpoint_key, opencode_go_listing_base_url, |
| 58 | opencode_go_model_id, opencode_go_models, |
| 59 | }; |
| 60 | pub(crate) use provider_defaults::*; |
| 61 | pub use provider_kind::ProviderKind; |
| 62 | pub use route::ProviderId; |
| 63 | pub use settings_schema::{ |
| 64 | SETTINGS_SCHEMA, SettingDef, SettingKind, SettingOption, SettingUi, schema_groups, schema_rows, |
| 65 | schema_tabs, setting, setting_index, |
| 66 | }; |
| 67 | pub use setup_state::{ |
| 68 | ConstitutionAuthoring, ConstitutionChoice, ConstitutionSource, ConstitutionValidity, |
| 69 | InheritedConfigFacts, RuntimePostureSource, SetupState, SetupStep, StepEntry, StepStatus, |
| 70 | TELEMETRY_NOTICE_VERSION, |
| 71 | }; |
| 72 | pub use user_constitution::{ |
| 73 | APPROX_BYTES_PER_TOKEN, AutonomyPreference, CacheProjection, ClauseOrigin, ClauseStatus, |
| 74 | ConstitutionClause, ConstitutionRecommendation, MigrationOutcome, MigrationReceipt, |
| 75 | MigrationRejection, Ratification, RatificationError, RecommendationParse, |
| 76 | USER_CONSTITUTION_SCHEMA_VERSION, USER_CONSTITUTION_SCHEMA_VERSION_V1, UntrustedDraftParse, |
| 77 | UserConstitution, UserConstitutionLoad, |
| 78 | }; |
| 79 | pub use xai_credentials::{ |
| 80 | CHATGPT_HOST_FILE_NAME, CHATGPT_OAUTH_GENERATION_PREFIX, CHATGPT_OAUTH_GENERATION_SUFFIX, |
| 81 | CLAUDE_OAUTH_GENERATION_PREFIX, CLAUDE_OAUTH_GENERATION_SUFFIX, LEGACY_CHATGPT_OAUTH_FILE_NAME, |
| 82 | LEGACY_CLAUDE_OAUTH_FILE_NAME, LEGACY_XAI_OAUTH_FILE_NAME, XAI_OAUTH_GENERATION_PREFIX, |
| 83 | XAI_OAUTH_GENERATION_SUFFIX, XaiOAuthCredentialStore, XaiOAuthRevocation, |
| 84 | chatgpt_oauth_generation_path, clear_all_chatgpt_oauth_credentials, |
| 85 | clear_all_chatgpt_oauth_credentials_locked, clear_all_claude_oauth_credentials_locked, |
| 86 | clear_all_xai_oauth_credentials, is_valid_chatgpt_oauth_generation, |
| 87 | is_valid_claude_oauth_generation, is_valid_xai_oauth_generation, legacy_chatgpt_oauth_path, |
| 88 | legacy_xai_oauth_path, remove_chatgpt_oauth_generation, remove_xai_oauth_generation, |
| 89 | validate_chatgpt_oauth_generation, validate_xai_oauth_generation, |
| 90 | with_xai_oauth_lifecycle_lock, with_xai_oauth_revocation_transaction, |
| 91 | xai_oauth_credentials_dir, xai_oauth_generation_path, |
| 92 | }; |
| 93 | mod base_url_resolution; |
| 94 | mod config_backup; |
| 95 | mod config_migration; |
| 96 | mod config_resolve; |
| 97 | mod config_store; |
| 98 | mod config_toml; |
| 99 | mod display_redaction; |
| 100 | mod env_overrides; |
| 101 | mod extension_toml; |
| 102 | mod fleet; |
| 103 | mod hotbar; |
| 104 | mod model_normalization; |
| 105 | mod path_io; |
| 106 | mod permissions; |
| 107 | mod project_config; |
| 108 | mod provider_chain; |
| 109 | mod provider_config_keys; |
| 110 | mod provider_toml; |
| 111 | mod runtime_options; |
| 112 | mod service_toml; |
| 113 | mod state_dirs; |
| 114 | mod stream_timeouts; |
| 115 | mod telemetry; |
| 116 | |
| 117 | pub use base_url_resolution::*; |
| 118 | pub use config_backup::*; |
| 119 | pub use config_migration::*; |
| 120 | pub use config_resolve::{ |
| 121 | ConfiguredModelInputs, ConfiguredModelSelection, format_configured_model_error, |
| 122 | resolve_configured_model, resolve_model_for_configured_route, |
| 123 | }; |
| 124 | pub use config_store::*; |
| 125 | pub use config_toml::*; |
| 126 | pub use display_redaction::*; |
| 127 | pub use extension_toml::*; |
| 128 | pub use fleet::*; |
| 129 | pub use hotbar::*; |
| 130 | pub use model_normalization::*; |
| 131 | pub use path_io::*; |
| 132 | pub use permissions::*; |
| 133 | pub use project_config::*; |
| 134 | pub use provider_chain::*; |
| 135 | pub use provider_toml::*; |
| 136 | pub use runtime_options::*; |
| 137 | pub use service_toml::*; |
| 138 | pub use state_dirs::*; |
| 139 | pub use stream_timeouts::*; |
| 140 | pub use telemetry::*; |
| 141 | |
| 142 | #[cfg(test)] |
| 143 | mod tests; |
| 144 |