kiari 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kiari-0.1.0/.gitignore +17 -0
- kiari-0.1.0/CHANGELOG.md +15 -0
- kiari-0.1.0/LICENSE +21 -0
- kiari-0.1.0/PKG-INFO +181 -0
- kiari-0.1.0/README.md +76 -0
- kiari-0.1.0/kiari/README.md +31 -0
- kiari-0.1.0/kiari/__init__.py +46 -0
- kiari-0.1.0/kiari/__main__.py +9 -0
- kiari-0.1.0/kiari/cli/__init__.py +29 -0
- kiari-0.1.0/kiari/cli/_constants/common_option_groups.py +129 -0
- kiari-0.1.0/kiari/cli/_decorators/common_options.py +188 -0
- kiari-0.1.0/kiari/cli/_helpers/build_cli_args.py +70 -0
- kiari-0.1.0/kiari/cli/_helpers/render_bootstrap_message.py +37 -0
- kiari-0.1.0/kiari/cli/_helpers/run.py +18 -0
- kiari-0.1.0/kiari/cli/_helpers/setup_profile.py +24 -0
- kiari-0.1.0/kiari/cli/_i18n.py +197 -0
- kiari-0.1.0/kiari/cli/_schemas/cli_args.py +15 -0
- kiari-0.1.0/kiari/cli/_types/extra_args.py +3 -0
- kiari-0.1.0/kiari/cli/_types/save_mode.py +3 -0
- kiari-0.1.0/kiari/cli/_utils/graceful_shutdown.py +35 -0
- kiari-0.1.0/kiari/cli/admin/clear_cache/cli.py +101 -0
- kiari-0.1.0/kiari/cli/admin/cli.py +30 -0
- kiari-0.1.0/kiari/cli/admin/init/cli.py +75 -0
- kiari-0.1.0/kiari/cli/admin/wipe_data/cli.py +102 -0
- kiari-0.1.0/kiari/cli/batch/_constants/batch_option_group.py +11 -0
- kiari-0.1.0/kiari/cli/batch/_decorators/batch_options.py +22 -0
- kiari-0.1.0/kiari/cli/batch/_i18n.py +22 -0
- kiari-0.1.0/kiari/cli/batch/_operations/run_batch.py +28 -0
- kiari-0.1.0/kiari/cli/batch/batch_handler/__init__.py +25 -0
- kiari-0.1.0/kiari/cli/batch/batch_handler/_models/base_batch_handler.py +114 -0
- kiari-0.1.0/kiari/cli/batch/batch_handler/_schemas/batch_request.py +8 -0
- kiari-0.1.0/kiari/cli/batch/batch_handler/_schemas/batch_session.py +38 -0
- kiari-0.1.0/kiari/cli/batch/batch_handler/_services/batch_handler_registry.py +27 -0
- kiari-0.1.0/kiari/cli/batch/batch_handler/_settings.py +27 -0
- kiari-0.1.0/kiari/cli/batch/batch_handler/_types/batch_handler.py +24 -0
- kiari-0.1.0/kiari/cli/batch/batch_handler/_types/batch_handler_name.py +3 -0
- kiari-0.1.0/kiari/cli/batch/batch_handler/_types/batch_handler_specifier.py +12 -0
- kiari-0.1.0/kiari/cli/batch/cli.py +103 -0
- kiari-0.1.0/kiari/cli/cli.py +95 -0
- kiari-0.1.0/kiari/cli/console/_constants/console_option_group.py +20 -0
- kiari-0.1.0/kiari/cli/console/_decorators/console_options.py +65 -0
- kiari-0.1.0/kiari/cli/console/_i18n.py +43 -0
- kiari-0.1.0/kiari/cli/console/_operations/run_console.py +269 -0
- kiari-0.1.0/kiari/cli/console/_services/console_completer.py +80 -0
- kiari-0.1.0/kiari/cli/console/cli.py +105 -0
- kiari-0.1.0/kiari/cli/console/console_handler/__init__.py +25 -0
- kiari-0.1.0/kiari/cli/console/console_handler/_models/base_console_handler.py +214 -0
- kiari-0.1.0/kiari/cli/console/console_handler/_schemas/console_request.py +8 -0
- kiari-0.1.0/kiari/cli/console/console_handler/_schemas/console_session.py +69 -0
- kiari-0.1.0/kiari/cli/console/console_handler/_services/console_handler_registry.py +27 -0
- kiari-0.1.0/kiari/cli/console/console_handler/_settings.py +27 -0
- kiari-0.1.0/kiari/cli/console/console_handler/_types/console_handler.py +34 -0
- kiari-0.1.0/kiari/cli/console/console_handler/_types/console_handler_name.py +3 -0
- kiari-0.1.0/kiari/cli/console/console_handler/_types/console_handler_specifier.py +12 -0
- kiari-0.1.0/kiari/cli/console/console_renderer/__init__.py +8 -0
- kiari-0.1.0/kiari/cli/console/console_renderer/_helpers/render_console_hint.py +11 -0
- kiari-0.1.0/kiari/cli/console/console_renderer/_helpers/render_console_status.py +492 -0
- kiari-0.1.0/kiari/cli/console/console_state/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/console_state/_types/console_state.py +3 -0
- kiari-0.1.0/kiari/cli/console/console_text/__init__.py +7 -0
- kiari-0.1.0/kiari/cli/console/console_text/_helpers/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/console_text/_helpers/parse_console_text.py +71 -0
- kiari-0.1.0/kiari/cli/console/console_text/_schemas/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/console_text/_schemas/console_text.py +8 -0
- kiari-0.1.0/kiari/cli/console/slash_command/__init__.py +20 -0
- kiari-0.1.0/kiari/cli/console/slash_command/_models/base_slash_command.py +49 -0
- kiari-0.1.0/kiari/cli/console/slash_command/_services/slash_command_registry.py +27 -0
- kiari-0.1.0/kiari/cli/console/slash_command/_settings.py +58 -0
- kiari-0.1.0/kiari/cli/console/slash_command/_types/slash_command.py +23 -0
- kiari-0.1.0/kiari/cli/console/slash_command/_types/slash_command_name.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command/_types/slash_command_specifier.py +12 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/attach/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/attach/_i18n.py +35 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/attach/_models/attach_slash_command.py +183 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/back/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/back/_i18n.py +17 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/back/_models/back_slash_command.py +102 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/chat_model/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/chat_model/_i18n.py +16 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/chat_model/_models/chat_model_slash_command.py +106 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/clear/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/clear/_i18n.py +14 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/clear/_models/clear_slash_command.py +102 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/copy/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/copy/_i18n.py +20 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/copy/_models/copy_slash_command.py +117 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/event/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/event/_i18n.py +42 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/event/_models/event_slash_command.py +249 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/file_info/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/file_info/_i18n.py +40 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/file_info/_models/file_info_slash_command.py +290 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/help/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/help/_i18n.py +9 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/help/_models/help_slash_command.py +90 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/metadata/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/metadata/_i18n.py +59 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/metadata/_models/metadata_slash_command.py +267 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/run/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/run/_i18n.py +27 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/run/_models/run_slash_command.py +151 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/show/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/show/_i18n.py +18 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/show/_models/show_slash_command.py +105 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/stt/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/stt/_i18n.py +13 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/stt/_models/stt_slash_command.py +44 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tool/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tool/_i18n.py +29 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tool/_models/tool_slash_command.py +250 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tool_choice/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tool_choice/_i18n.py +17 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tool_choice/_models/tool_choice_slash_command.py +76 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tool_info/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tool_info/_i18n.py +55 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tool_info/_models/tool_info_slash_command.py +360 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tts/__init__.py +3 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tts/_i18n.py +13 -0
- kiari-0.1.0/kiari/cli/console/slash_command_impl/tts/_models/tts_slash_command.py +44 -0
- kiari-0.1.0/kiari/cli/ext/_operations/run_ext.py +21 -0
- kiari-0.1.0/kiari/cli/ext/cli.py +96 -0
- kiari-0.1.0/kiari/cli/ext/extension_command/__init__.py +23 -0
- kiari-0.1.0/kiari/cli/ext/extension_command/_models/base_extension_command.py +29 -0
- kiari-0.1.0/kiari/cli/ext/extension_command/_schemas/extension_command_context.py +8 -0
- kiari-0.1.0/kiari/cli/ext/extension_command/_services/extension_command_registry.py +26 -0
- kiari-0.1.0/kiari/cli/ext/extension_command/_settings.py +20 -0
- kiari-0.1.0/kiari/cli/ext/extension_command/_types/extension_command.py +16 -0
- kiari-0.1.0/kiari/cli/ext/extension_command/_types/extension_command_name.py +3 -0
- kiari-0.1.0/kiari/cli/ext/extension_command/_types/extension_command_specifier.py +5 -0
- kiari-0.1.0/kiari/cli/fastapi/cli.py +8 -0
- kiari-0.1.0/kiari/cli/profile/cli.py +29 -0
- kiari-0.1.0/kiari/cli/profile/copy/cli.py +86 -0
- kiari-0.1.0/kiari/cli/profile/delete/cli.py +89 -0
- kiari-0.1.0/kiari/cli/profile/list/cli.py +252 -0
- kiari-0.1.0/kiari/cli/profile/new/cli.py +67 -0
- kiari-0.1.0/kiari/cli/profile/set/cli.py +68 -0
- kiari-0.1.0/kiari/cli/profile/use/cli.py +57 -0
- kiari-0.1.0/kiari/cli/schedule/_constants/schedule_option_group.py +11 -0
- kiari-0.1.0/kiari/cli/schedule/_decorators/schedule_options.py +18 -0
- kiari-0.1.0/kiari/cli/schedule/_operations/run_schedule.py +76 -0
- kiari-0.1.0/kiari/cli/schedule/cli.py +55 -0
- kiari-0.1.0/kiari/cli/schedule/schedule_handler/__init__.py +18 -0
- kiari-0.1.0/kiari/cli/schedule/schedule_handler/_models/base_schedule_handler.py +261 -0
- kiari-0.1.0/kiari/cli/schedule/schedule_handler/_schemas/schedule_session.py +72 -0
- kiari-0.1.0/kiari/cli/schedule/schedule_handler/_services/schedule_handler_registry.py +27 -0
- kiari-0.1.0/kiari/cli/schedule/schedule_handler/_settings.py +27 -0
- kiari-0.1.0/kiari/cli/schedule/schedule_handler/_types/schedule_handler.py +42 -0
- kiari-0.1.0/kiari/cli/schedule/schedule_handler/_types/schedule_handler_name.py +3 -0
- kiari-0.1.0/kiari/cli/schedule/schedule_handler/_types/schedule_handler_specifier.py +3 -0
- kiari-0.1.0/kiari/cli/schedule/scheduler/__init__.py +11 -0
- kiari-0.1.0/kiari/cli/schedule/scheduler/_helpers/create_scheduler.py +34 -0
- kiari-0.1.0/kiari/cli/schedule/scheduler/_schemas/scheduler.py +11 -0
- kiari-0.1.0/kiari/cli/schedule/scheduler/_types/schedule_type.py +3 -0
- kiari-0.1.0/kiari/cli/schedule/scheduler/_utils/parse_duration.py +13 -0
- kiari-0.1.0/kiari/cli/streamlit/cli.py +8 -0
- kiari-0.1.0/kiari/cli/watch/_constants/watch_option_group.py +11 -0
- kiari-0.1.0/kiari/cli/watch/_decorators/watch_options.py +18 -0
- kiari-0.1.0/kiari/cli/watch/_operations/run_watch.py +111 -0
- kiari-0.1.0/kiari/cli/watch/cli.py +46 -0
- kiari-0.1.0/kiari/cli/watch/watch_handler/__init__.py +18 -0
- kiari-0.1.0/kiari/cli/watch/watch_handler/_models/base_watch_handler.py +134 -0
- kiari-0.1.0/kiari/cli/watch/watch_handler/_schemas/watch_session.py +41 -0
- kiari-0.1.0/kiari/cli/watch/watch_handler/_services/watch_handler_registry.py +27 -0
- kiari-0.1.0/kiari/cli/watch/watch_handler/_settings.py +28 -0
- kiari-0.1.0/kiari/cli/watch/watch_handler/_types/watch_handler.py +25 -0
- kiari-0.1.0/kiari/cli/watch/watch_handler/_types/watch_handler_name.py +3 -0
- kiari-0.1.0/kiari/cli/watch/watch_handler/_types/watch_handler_specifier.py +5 -0
- kiari-0.1.0/kiari/core/__init__.py +0 -0
- kiari-0.1.0/kiari/core/editor/__init__.py +11 -0
- kiari-0.1.0/kiari/core/editor/_helpers/edit_text.py +64 -0
- kiari-0.1.0/kiari/core/editor/_helpers/edit_text_with_validation.py +68 -0
- kiari-0.1.0/kiari/core/editor/_i18n.py +8 -0
- kiari-0.1.0/kiari/core/editor/_schemas/validation_result.py +17 -0
- kiari-0.1.0/kiari/core/exchange_rate/__init__.py +9 -0
- kiari-0.1.0/kiari/core/exchange_rate/_exceptions/exchange_rate_not_loaded_error.py +2 -0
- kiari-0.1.0/kiari/core/exchange_rate/_services/exchange_rate_store.py +62 -0
- kiari-0.1.0/kiari/core/file_info_source/__init__.py +9 -0
- kiari-0.1.0/kiari/core/file_info_source/_helpers/resolve_file_info_specifiers.py +57 -0
- kiari-0.1.0/kiari/core/file_info_source/_types/file_info_source.py +24 -0
- kiari-0.1.0/kiari/core/file_resolver/__init__.py +7 -0
- kiari-0.1.0/kiari/core/file_resolver/_helpers/resolve_file_paths.py +73 -0
- kiari-0.1.0/kiari/core/file_resolver/_types/file_path_pattern.py +7 -0
- kiari-0.1.0/kiari/core/finalizer/__init__.py +23 -0
- kiari-0.1.0/kiari/core/finalizer/_helpers/run_finalizers.py +20 -0
- kiari-0.1.0/kiari/core/finalizer/_models/base_finalizer.py +29 -0
- kiari-0.1.0/kiari/core/finalizer/_services/finalizer_registry.py +26 -0
- kiari-0.1.0/kiari/core/finalizer/_settings.py +26 -0
- kiari-0.1.0/kiari/core/finalizer/_types/finalizer.py +10 -0
- kiari-0.1.0/kiari/core/finalizer/_types/finalizer_name.py +3 -0
- kiari-0.1.0/kiari/core/finalizer/_types/finalizer_specifier.py +13 -0
- kiari-0.1.0/kiari/core/github/__init__.py +22 -0
- kiari-0.1.0/kiari/core/github/_helpers/fetch_github_dir.py +128 -0
- kiari-0.1.0/kiari/core/github/_helpers/fetch_github_file.py +69 -0
- kiari-0.1.0/kiari/core/github/_helpers/verify_github_trust.py +123 -0
- kiari-0.1.0/kiari/core/github/_i18n.py +20 -0
- kiari-0.1.0/kiari/core/github/_models/github_path_spec.py +99 -0
- kiari-0.1.0/kiari/core/github/_services/github_trusted_source_store.py +25 -0
- kiari-0.1.0/kiari/core/github/_settings.py +17 -0
- kiari-0.1.0/kiari/core/github/_types/github_path_pattern.py +23 -0
- kiari-0.1.0/kiari/core/logging/__init__.py +12 -0
- kiari-0.1.0/kiari/core/logging/_helpers/setup_logger.py +24 -0
- kiari-0.1.0/kiari/core/logging/_models/rich_log_handler.py +60 -0
- kiari-0.1.0/kiari/core/logging/_types/log_level.py +3 -0
- kiari-0.1.0/kiari/core/paths/__init__.py +25 -0
- kiari-0.1.0/kiari/core/paths/_utils/get_config_file_path.py +7 -0
- kiari-0.1.0/kiari/core/paths/_utils/get_github_cache_dir_path.py +7 -0
- kiari-0.1.0/kiari/core/paths/_utils/get_github_trusted_sources_file_path.py +7 -0
- kiari-0.1.0/kiari/core/paths/_utils/get_profile_config_file_path.py +7 -0
- kiari-0.1.0/kiari/core/paths/_utils/get_profile_dir_path.py +7 -0
- kiari-0.1.0/kiari/core/paths/_utils/get_profile_run_spec_file_path.py +7 -0
- kiari-0.1.0/kiari/core/paths/_utils/get_profiles_dir_path.py +7 -0
- kiari-0.1.0/kiari/core/paths/_utils/get_profiles_file_path.py +7 -0
- kiari-0.1.0/kiari/core/paths/_utils/get_prompt_session_history_file_path.py +7 -0
- kiari-0.1.0/kiari/core/plugin/__init__.py +3 -0
- kiari-0.1.0/kiari/core/plugin/_helpers/load_plugin.py +61 -0
- kiari-0.1.0/kiari/core/plugin/_i18n.py +7 -0
- kiari-0.1.0/kiari/core/plugin/_settings.py +14 -0
- kiari-0.1.0/kiari/core/profile/__init__.py +16 -0
- kiari-0.1.0/kiari/core/profile/_schemas/profile.py +11 -0
- kiari-0.1.0/kiari/core/profile/_schemas/run_options.py +127 -0
- kiari-0.1.0/kiari/core/profile/_services/profile_store.py +243 -0
- kiari-0.1.0/kiari/core/profile/_types/profile_name.py +13 -0
- kiari-0.1.0/kiari/core/profile/_types/run_spec.py +3 -0
- kiari-0.1.0/kiari/core/rich/__init__.py +24 -0
- kiari-0.1.0/kiari/core/rich/_helpers/render_content.py +63 -0
- kiari-0.1.0/kiari/core/rich/_helpers/render_display_content.py +98 -0
- kiari-0.1.0/kiari/core/rich/_helpers/render_event.py +50 -0
- kiari-0.1.0/kiari/core/rich/_helpers/render_file_info.py +24 -0
- kiari-0.1.0/kiari/core/rich/_helpers/render_message.py +143 -0
- kiari-0.1.0/kiari/core/rich/_helpers/render_tool_call.py +30 -0
- kiari-0.1.0/kiari/core/rich/_services/console_registry.py +19 -0
- kiari-0.1.0/kiari/core/rich/_utils/join_renderables.py +34 -0
- kiari-0.1.0/kiari/core/rich/_utils/render_status_block.py +41 -0
- kiari-0.1.0/kiari/core/runtime/__init__.py +9 -0
- kiari-0.1.0/kiari/core/runtime/_helpers/create_agi_options.py +96 -0
- kiari-0.1.0/kiari/core/runtime/_helpers/setup_history.py +94 -0
- kiari-0.1.0/kiari/core/runtime/_helpers/setup_runtime.py +302 -0
- kiari-0.1.0/kiari/core/terminal/__init__.py +16 -0
- kiari-0.1.0/kiari/core/terminal/_helpers/has_interactive_tty.py +7 -0
- kiari-0.1.0/kiari/core/terminal/_helpers/stop_asyncio_on_enter.py +34 -0
- kiari-0.1.0/kiari/core/terminal/_helpers/stop_threading_on_enter.py +34 -0
- kiari-0.1.0/kiari/core/terminal/_services/prompt_session_registry.py +40 -0
- kiari-0.1.0/kiari/core/terminal/_utils/create_prompt_toolkit_io.py +19 -0
- kiari-0.1.0/kiari/fastapi/__init__.py +0 -0
- kiari-0.1.0/kiari/impl/batch_handler_impl/vanilla/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/batch_handler_impl/vanilla/_models/vanilla_batch_handler.py +5 -0
- kiari-0.1.0/kiari/impl/chat_logger_impl/default/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/chat_logger_impl/default/_models/default_chat_logger.py +205 -0
- kiari-0.1.0/kiari/impl/console_handler_impl/vanilla/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/console_handler_impl/vanilla/_models/vanilla_console_handler.py +5 -0
- kiari-0.1.0/kiari/impl/cost_logger_impl/default/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/cost_logger_impl/default/_models/default_cost_logger.py +63 -0
- kiari-0.1.0/kiari/impl/finalizer_impl/__init__.py +1 -0
- kiari-0.1.0/kiari/impl/finalizer_impl/chrome/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/finalizer_impl/chrome/_models/chrome_finalizer.py +7 -0
- kiari-0.1.0/kiari/impl/finalizer_impl/null/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/finalizer_impl/null/_models/null_finalizer.py +5 -0
- kiari-0.1.0/kiari/impl/finalizer_impl/subprocess/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/finalizer_impl/subprocess/_models/subprocess_finalizer.py +7 -0
- kiari-0.1.0/kiari/impl/history_repository_impl/in_memory/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/history_repository_impl/in_memory/_models/in_memory_history_repository.py +34 -0
- kiari-0.1.0/kiari/impl/history_repository_impl/local/__init__.py +13 -0
- kiari-0.1.0/kiari/impl/history_repository_impl/local/_helpers/create_local_history_repository.py +15 -0
- kiari-0.1.0/kiari/impl/history_repository_impl/local/_models/local_history_repository.py +42 -0
- kiari-0.1.0/kiari/impl/history_repository_impl/local/_settings.py +14 -0
- kiari-0.1.0/kiari/impl/history_repository_impl/null/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/history_repository_impl/null/_models/null_history_repository.py +5 -0
- kiari-0.1.0/kiari/impl/schedule_handler_impl/__init__.py +1 -0
- kiari-0.1.0/kiari/impl/schedule_handler_impl/vanilla/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/schedule_handler_impl/vanilla/_models/vanilla_schedule_handler.py +5 -0
- kiari-0.1.0/kiari/impl/tool_impl/__init__.py +0 -0
- kiari-0.1.0/kiari/impl/tool_impl/audio_file_view/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/tool_impl/audio_file_view/_i18n.py +13 -0
- kiari-0.1.0/kiari/impl/tool_impl/audio_file_view/_models/audio_file_view.py +34 -0
- kiari-0.1.0/kiari/impl/tool_impl/audio_file_view/_schemas/audio_file_view_schema.py +33 -0
- kiari-0.1.0/kiari/impl/tool_impl/change_directory/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/tool_impl/change_directory/_i18n.py +8 -0
- kiari-0.1.0/kiari/impl/tool_impl/change_directory/_models/change_directory.py +30 -0
- kiari-0.1.0/kiari/impl/tool_impl/change_directory/_schemas/change_directory_schema.py +9 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_i18n.py +50 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_models/gui.py +78 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_operations/keyboard_hotkey.py +22 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_operations/keyboard_press.py +22 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_operations/keyboard_write.py +22 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_operations/mouse_click.py +25 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_operations/mouse_down.py +25 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_operations/mouse_move.py +27 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_operations/mouse_up.py +25 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_operations/screenshot.py +15 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_schemas/gui_schema.py +114 -0
- kiari-0.1.0/kiari/impl/tool_impl/gui/_types/action.py +12 -0
- kiari-0.1.0/kiari/impl/tool_impl/image_file_view/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/tool_impl/image_file_view/_i18n.py +13 -0
- kiari-0.1.0/kiari/impl/tool_impl/image_file_view/_models/image_file_view.py +28 -0
- kiari-0.1.0/kiari/impl/tool_impl/image_file_view/_schemas/image_file_view_schema.py +14 -0
- kiari-0.1.0/kiari/impl/tool_impl/pdf_file_view/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/tool_impl/pdf_file_view/_i18n.py +12 -0
- kiari-0.1.0/kiari/impl/tool_impl/pdf_file_view/_models/pdf_file_view.py +34 -0
- kiari-0.1.0/kiari/impl/tool_impl/pdf_file_view/_schemas/pdf_file_view_schema.py +33 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/_i18n.py +68 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/_models/subprocess.py +50 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/_operations/cancel.py +64 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/_operations/get_list.py +65 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/_operations/get_output.py +58 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/_operations/run.py +61 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/_operations/run_background.py +37 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/_schemas/subprocess_schema.py +145 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/_types/action.py +9 -0
- kiari-0.1.0/kiari/impl/tool_impl/subprocess/_utils/create_output_file.py +39 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_i18n.py +49 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_models/text_file_edit.py +42 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_operations/create.py +33 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_operations/line_replace.py +118 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_operations/str_replace.py +72 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_operations/update.py +36 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_schemas/text_file_edit_schema.py +92 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_types/action.py +8 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_utils/build_result.py +46 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_utils/replace_str.py +72 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_utils/resolve_path.py +7 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_edit/_utils/write_file.py +34 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_view/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_view/_i18n.py +14 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_view/_models/text_file_view.py +81 -0
- kiari-0.1.0/kiari/impl/tool_impl/text_file_view/_schemas/text_file_view_schema.py +26 -0
- kiari-0.1.0/kiari/impl/tool_impl/video_file_view/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/tool_impl/video_file_view/_i18n.py +13 -0
- kiari-0.1.0/kiari/impl/tool_impl/video_file_view/_models/video_file_view.py +34 -0
- kiari-0.1.0/kiari/impl/tool_impl/video_file_view/_schemas/video_file_view_schema.py +33 -0
- kiari-0.1.0/kiari/impl/tool_logger_impl/default/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/tool_logger_impl/default/_models/default_tool_logger.py +104 -0
- kiari-0.1.0/kiari/impl/watch_handler_impl/__init__.py +1 -0
- kiari-0.1.0/kiari/impl/watch_handler_impl/slack/__init__.py +8 -0
- kiari-0.1.0/kiari/impl/watch_handler_impl/slack/_models/slack_watch_handler.py +259 -0
- kiari-0.1.0/kiari/impl/watch_handler_impl/slack/_settings.py +19 -0
- kiari-0.1.0/kiari/impl/watch_handler_impl/slack/_utils/convert_markdown_to_mrkdwn.py +23 -0
- kiari-0.1.0/kiari/impl/watch_handler_impl/slack/_utils/get_bot_token.py +34 -0
- kiari-0.1.0/kiari/impl/watch_handler_impl/vanilla/__init__.py +3 -0
- kiari-0.1.0/kiari/impl/watch_handler_impl/vanilla/_models/vanilla_watch_handler.py +5 -0
- kiari-0.1.0/kiari/impl/watcher_impl/__init__.py +1 -0
- kiari-0.1.0/kiari/impl/watcher_impl/file/__init__.py +18 -0
- kiari-0.1.0/kiari/impl/watcher_impl/file/_helpers/create_file_watcher.py +13 -0
- kiari-0.1.0/kiari/impl/watcher_impl/file/_models/file_watcher.py +88 -0
- kiari-0.1.0/kiari/impl/watcher_impl/file/_schemas/file_change.py +8 -0
- kiari-0.1.0/kiari/impl/watcher_impl/file/_schemas/file_watch_event.py +24 -0
- kiari-0.1.0/kiari/impl/watcher_impl/file/_schemas/file_watch_payload.py +10 -0
- kiari-0.1.0/kiari/impl/watcher_impl/file/_settings.py +37 -0
- kiari-0.1.0/kiari/impl/watcher_impl/file/_types/change_type.py +3 -0
- kiari-0.1.0/kiari/impl/watcher_impl/pubsub/__init__.py +14 -0
- kiari-0.1.0/kiari/impl/watcher_impl/pubsub/_helpers/create_pubsub_watcher.py +13 -0
- kiari-0.1.0/kiari/impl/watcher_impl/pubsub/_models/pubsub_watcher.py +99 -0
- kiari-0.1.0/kiari/impl/watcher_impl/pubsub/_schemas/pubsub_watch_event.py +48 -0
- kiari-0.1.0/kiari/impl/watcher_impl/pubsub/_schemas/pubsub_watch_payload.py +11 -0
- kiari-0.1.0/kiari/impl/watcher_impl/pubsub/_settings.py +18 -0
- kiari-0.1.0/kiari/impl/watcher_impl/rtdb/__init__.py +16 -0
- kiari-0.1.0/kiari/impl/watcher_impl/rtdb/_helpers/create_rtdb_watcher.py +13 -0
- kiari-0.1.0/kiari/impl/watcher_impl/rtdb/_models/rtdb_watcher.py +48 -0
- kiari-0.1.0/kiari/impl/watcher_impl/rtdb/_schemas/rtdb_watch_event.py +42 -0
- kiari-0.1.0/kiari/impl/watcher_impl/rtdb/_schemas/rtdb_watch_payload.py +10 -0
- kiari-0.1.0/kiari/impl/watcher_impl/rtdb/_services/file_token_cache.py +21 -0
- kiari-0.1.0/kiari/impl/watcher_impl/rtdb/_settings.py +17 -0
- kiari-0.1.0/kiari/impl/watcher_impl/slack/__init__.py +14 -0
- kiari-0.1.0/kiari/impl/watcher_impl/slack/_helpers/create_slack_watcher.py +13 -0
- kiari-0.1.0/kiari/impl/watcher_impl/slack/_models/slack_watcher.py +335 -0
- kiari-0.1.0/kiari/impl/watcher_impl/slack/_schemas/slack_watch_event.py +63 -0
- kiari-0.1.0/kiari/impl/watcher_impl/slack/_schemas/slack_watch_payload.py +13 -0
- kiari-0.1.0/kiari/impl/watcher_impl/slack/_settings.py +33 -0
- kiari-0.1.0/kiari/lib/audio_utils/__init__.py +24 -0
- kiari-0.1.0/kiari/lib/audio_utils/_utils/load_audio_samples.py +11 -0
- kiari-0.1.0/kiari/lib/audio_utils/_utils/play_audio.py +72 -0
- kiari-0.1.0/kiari/lib/chrome/__init__.py +44 -0
- kiari-0.1.0/kiari/lib/chrome/_helpers/get_chrome.py +15 -0
- kiari-0.1.0/kiari/lib/chrome/_helpers/terminate_chrome.py +15 -0
- kiari-0.1.0/kiari/lib/chrome/_models/chrome.py +201 -0
- kiari-0.1.0/kiari/lib/chrome/_settings.py +67 -0
- kiari-0.1.0/kiari/lib/chrome/_types/chrome_boot_state.py +9 -0
- kiari-0.1.0/kiari/lib/chrome/_utils/get_chrome_executable_path.py +14 -0
- kiari-0.1.0/kiari/lib/chrome/_utils/is_port_open.py +21 -0
- kiari-0.1.0/kiari/lib/chrome/_utils/kill_process.py +24 -0
- kiari-0.1.0/kiari/lib/cwd/__init__.py +7 -0
- kiari-0.1.0/kiari/lib/cwd/_helpers/create_cwd_manager.py +7 -0
- kiari-0.1.0/kiari/lib/cwd/_models/cwd_manager.py +77 -0
- kiari-0.1.0/kiari/lib/cwd/_schemas/cwd_state.py +7 -0
- kiari-0.1.0/kiari/lib/gui/__init__.py +19 -0
- kiari-0.1.0/kiari/lib/gui/_services/gui.py +34 -0
- kiari-0.1.0/kiari/lib/history_repository/__init__.py +20 -0
- kiari-0.1.0/kiari/lib/history_repository/_models/base_history_repository.py +51 -0
- kiari-0.1.0/kiari/lib/history_repository/_services/__init__.py +3 -0
- kiari-0.1.0/kiari/lib/history_repository/_services/history_repository_registry.py +27 -0
- kiari-0.1.0/kiari/lib/history_repository/_settings.py +29 -0
- kiari-0.1.0/kiari/lib/history_repository/_types/history_repository.py +15 -0
- kiari-0.1.0/kiari/lib/history_repository/_types/history_repository_name.py +3 -0
- kiari-0.1.0/kiari/lib/history_repository/_types/history_repository_specifier.py +12 -0
- kiari-0.1.0/kiari/lib/keyboard/__init__.py +31 -0
- kiari-0.1.0/kiari/lib/keyboard/_models/keyboard.py +64 -0
- kiari-0.1.0/kiari/lib/keyboard/_types/keyboard_key.py +101 -0
- kiari-0.1.0/kiari/lib/keyboard/_utils/normalize_key.py +10 -0
- kiari-0.1.0/kiari/lib/keyboard/_utils/normalize_keys.py +10 -0
- kiari-0.1.0/kiari/lib/monitor/__init__.py +51 -0
- kiari-0.1.0/kiari/lib/monitor/_constants/max_scaling_targets.py +16 -0
- kiari-0.1.0/kiari/lib/monitor/_models/monitor.py +70 -0
- kiari-0.1.0/kiari/lib/monitor/_operations/calc_physical_size.py +17 -0
- kiari-0.1.0/kiari/lib/monitor/_operations/calc_scale_factor.py +11 -0
- kiari-0.1.0/kiari/lib/monitor/_operations/calc_scale_ratio.py +30 -0
- kiari-0.1.0/kiari/lib/monitor/_operations/capture_monitor.py +37 -0
- kiari-0.1.0/kiari/lib/monitor/_operations/get_image.py +26 -0
- kiari-0.1.0/kiari/lib/monitor/_operations/get_offset_vector.py +15 -0
- kiari-0.1.0/kiari/lib/monitor/_operations/get_screenshot.py +21 -0
- kiari-0.1.0/kiari/lib/monitor/_schemas/monitor_snapshot.py +16 -0
- kiari-0.1.0/kiari/lib/monitor/_schemas/multiple_monitor_capture.py +34 -0
- kiari-0.1.0/kiari/lib/monitor/_schemas/point.py +8 -0
- kiari-0.1.0/kiari/lib/monitor/_schemas/rect.py +59 -0
- kiari-0.1.0/kiari/lib/monitor/_schemas/size.py +12 -0
- kiari-0.1.0/kiari/lib/monitor/_types/monitor_index.py +3 -0
- kiari-0.1.0/kiari/lib/monitor/_views/monitor_info.py +14 -0
- kiari-0.1.0/kiari/lib/mouse/__init__.py +29 -0
- kiari-0.1.0/kiari/lib/mouse/_models/mouse.py +50 -0
- kiari-0.1.0/kiari/lib/mouse/_types/mouse_button.py +3 -0
- kiari-0.1.0/kiari/lib/subprocess/__init__.py +32 -0
- kiari-0.1.0/kiari/lib/subprocess/_enums/subprocess_status.py +15 -0
- kiari-0.1.0/kiari/lib/subprocess/_helpers/get_subprocess_manager.py +13 -0
- kiari-0.1.0/kiari/lib/subprocess/_helpers/terminate_all_sessions.py +6 -0
- kiari-0.1.0/kiari/lib/subprocess/_models/subprocess_manager.py +179 -0
- kiari-0.1.0/kiari/lib/subprocess/_models/subprocess_session.py +162 -0
- kiari-0.1.0/kiari/lib/subprocess/_operations/cancel_subprocess.py +171 -0
- kiari-0.1.0/kiari/lib/subprocess/_operations/run_subprocess.py +158 -0
- kiari-0.1.0/kiari/lib/subprocess/_settings.py +27 -0
- kiari-0.1.0/kiari/lib/subprocess/_types/cancel_options.py +21 -0
- kiari-0.1.0/kiari/lib/subprocess/_types/run_id.py +3 -0
- kiari-0.1.0/kiari/lib/subprocess/_types/subprocess_event.py +7 -0
- kiari-0.1.0/kiari/lib/subprocess/_utils/clean_ansi.py +65 -0
- kiari-0.1.0/kiari/lib/subprocess/_views/background_event.py +10 -0
- kiari-0.1.0/kiari/lib/subprocess/_views/finish_event.py +13 -0
- kiari-0.1.0/kiari/lib/subprocess/_views/stream_event.py +11 -0
- kiari-0.1.0/kiari/lib/watcher/__init__.py +23 -0
- kiari-0.1.0/kiari/lib/watcher/_models/base_watcher.py +30 -0
- kiari-0.1.0/kiari/lib/watcher/_schemas/watch_event.py +16 -0
- kiari-0.1.0/kiari/lib/watcher/_services/watcher_registry.py +26 -0
- kiari-0.1.0/kiari/lib/watcher/_settings.py +27 -0
- kiari-0.1.0/kiari/lib/watcher/_types/watcher.py +13 -0
- kiari-0.1.0/kiari/lib/watcher/_types/watcher_name.py +3 -0
- kiari-0.1.0/kiari/lib/watcher/_types/watcher_specifier.py +12 -0
- kiari-0.1.0/kiari/py.typed +1 -0
- kiari-0.1.0/kiari/resources/__init__.py +0 -0
- kiari-0.1.0/kiari/resources/i18n/__init__.py +0 -0
- kiari-0.1.0/kiari/resources/i18n/en.yaml +0 -0
- kiari-0.1.0/kiari/resources/i18n/ja.yaml +0 -0
- kiari-0.1.0/kiari/streamlit/__init__.py +0 -0
- kiari-0.1.0/pyproject.toml +218 -0
- kiari-0.1.0/tests/__init__.py +0 -0
- kiari-0.1.0/tests/cli/__init__.py +0 -0
- kiari-0.1.0/tests/cli/_decorators/__init__.py +1 -0
- kiari-0.1.0/tests/cli/_decorators/test_common_options.py +109 -0
- kiari-0.1.0/tests/cli/_helpers/__init__.py +1 -0
- kiari-0.1.0/tests/cli/_helpers/test_build_cli_args.py +54 -0
- kiari-0.1.0/tests/cli/_helpers/test_render_bootstrap_message.py +41 -0
- kiari-0.1.0/tests/cli/_helpers/test_run.py +21 -0
- kiari-0.1.0/tests/cli/_helpers/test_setup_profile.py +34 -0
- kiari-0.1.0/tests/cli/admin/__init__.py +0 -0
- kiari-0.1.0/tests/cli/admin/_operations/__init__.py +0 -0
- kiari-0.1.0/tests/cli/admin/clear_cache/__init__.py +1 -0
- kiari-0.1.0/tests/cli/admin/clear_cache/test_cli.py +68 -0
- kiari-0.1.0/tests/cli/admin/init/__init__.py +1 -0
- kiari-0.1.0/tests/cli/admin/init/test_cli.py +21 -0
- kiari-0.1.0/tests/cli/admin/wipe_data/__init__.py +1 -0
- kiari-0.1.0/tests/cli/admin/wipe_data/test_cli.py +68 -0
- kiari-0.1.0/tests/cli/batch/__init__.py +0 -0
- kiari-0.1.0/tests/cli/batch/_operations/__init__.py +1 -0
- kiari-0.1.0/tests/cli/batch/_operations/test_run_batch.py +16 -0
- kiari-0.1.0/tests/cli/batch/batch_handler/__init__.py +0 -0
- kiari-0.1.0/tests/cli/batch/batch_handler/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/batch/batch_handler/_models/test_base_batch_handler.py +37 -0
- kiari-0.1.0/tests/cli/batch/test_cli.py +68 -0
- kiari-0.1.0/tests/cli/console/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/_decorators/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/_decorators/test_console_options.py +43 -0
- kiari-0.1.0/tests/cli/console/_operations/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/_operations/test_run_console.py +12 -0
- kiari-0.1.0/tests/cli/console/_services/test_console_completer.py +59 -0
- kiari-0.1.0/tests/cli/console/conftest.py +22 -0
- kiari-0.1.0/tests/cli/console/console_handler/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/console_handler/_models/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/console_handler/_models/test_base_console_handler.py +41 -0
- kiari-0.1.0/tests/cli/console/console_handler/_schemas/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/console_handler/_schemas/test_console_session.py +53 -0
- kiari-0.1.0/tests/cli/console/console_renderer/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/console_renderer/_helpers/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/console_renderer/_helpers/test_render_console_hint.py +13 -0
- kiari-0.1.0/tests/cli/console/console_renderer/_helpers/test_render_console_status.py +175 -0
- kiari-0.1.0/tests/cli/console/console_text/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/console_text/_helpers/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/console_text/_helpers/test_parse_console_text.py +39 -0
- kiari-0.1.0/tests/cli/console/slash_command/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/slash_command/_models/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/slash_command/_models/test_base_slash_command.py +26 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/attach/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/attach/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/attach/_models/test_attach_slash_command.py +165 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/back/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/back/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/back/_models/test_back_slash_command.py +155 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/chat_model/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/chat_model/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/chat_model/_models/test_chat_model_slash_command.py +65 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/clear/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/clear/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/clear/_models/test_clear_slash_command.py +107 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/copy/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/copy/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/copy/_models/test_copy_slash_command.py +109 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/event/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/event/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/event/_models/test_event_slash_command.py +291 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/file_info/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/file_info/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/file_info/_models/test_file_info_slash_command.py +334 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/help/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/help/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/help/_models/test_help_slash_command.py +48 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/metadata/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/metadata/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/metadata/_models/test_metadata_slash_command.py +378 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/run/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/run/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/run/_models/test_run_slash_command.py +147 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/show/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/show/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/show/_models/test_show_slash_command.py +162 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/stt/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/stt/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/stt/_models/test_stt_slash_command.py +59 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tool/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tool/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tool/_models/test_tool_slash_command.py +158 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tool_choice/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tool_choice/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tool_choice/_models/test_tool_choice_slash_command.py +83 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tool_info/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tool_info/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tool_info/_models/test_tool_info_slash_command.py +421 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tts/__init__.py +1 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tts/_models/__init__.py +0 -0
- kiari-0.1.0/tests/cli/console/slash_command_impl/tts/_models/test_tts_slash_command.py +57 -0
- kiari-0.1.0/tests/cli/console/test_cli.py +68 -0
- kiari-0.1.0/tests/cli/ext/__init__.py +1 -0
- kiari-0.1.0/tests/cli/ext/_operations/__init__.py +1 -0
- kiari-0.1.0/tests/cli/ext/_operations/test_run_ext.py +46 -0
- kiari-0.1.0/tests/cli/ext/test_cli.py +51 -0
- kiari-0.1.0/tests/cli/profile/__init__.py +1 -0
- kiari-0.1.0/tests/cli/profile/copy/__init__.py +1 -0
- kiari-0.1.0/tests/cli/profile/copy/test_cli.py +24 -0
- kiari-0.1.0/tests/cli/profile/delete/__init__.py +1 -0
- kiari-0.1.0/tests/cli/profile/delete/test_cli.py +29 -0
- kiari-0.1.0/tests/cli/profile/list/__init__.py +1 -0
- kiari-0.1.0/tests/cli/profile/list/test_cli.py +117 -0
- kiari-0.1.0/tests/cli/profile/new/__init__.py +1 -0
- kiari-0.1.0/tests/cli/profile/new/test_cli.py +18 -0
- kiari-0.1.0/tests/cli/profile/set/__init__.py +1 -0
- kiari-0.1.0/tests/cli/profile/set/test_cli.py +20 -0
- kiari-0.1.0/tests/cli/profile/use/__init__.py +1 -0
- kiari-0.1.0/tests/cli/profile/use/test_cli.py +19 -0
- kiari-0.1.0/tests/cli/schedule/__init__.py +0 -0
- kiari-0.1.0/tests/cli/schedule/_operations/test_run_schedule.py +131 -0
- kiari-0.1.0/tests/cli/schedule/schedule_handler/__init__.py +0 -0
- kiari-0.1.0/tests/cli/schedule/schedule_handler/_models/test_base_schedule_handler.py +112 -0
- kiari-0.1.0/tests/cli/schedule/test_cli.py +58 -0
- kiari-0.1.0/tests/cli/test_cli.py +83 -0
- kiari-0.1.0/tests/cli/watch/_operations/test_run_watch.py +108 -0
- kiari-0.1.0/tests/cli/watch/test_cli.py +30 -0
- kiari-0.1.0/tests/cli/watch/watch_handler/_models/test_base_watch_handler.py +39 -0
- kiari-0.1.0/tests/conftest.py +153 -0
- kiari-0.1.0/tests/core/__init__.py +0 -0
- kiari-0.1.0/tests/core/editor/__init__.py +0 -0
- kiari-0.1.0/tests/core/editor/_helpers/__init__.py +0 -0
- kiari-0.1.0/tests/core/editor/_helpers/test_edit_text.py +59 -0
- kiari-0.1.0/tests/core/editor/_helpers/test_edit_text_with_validation.py +81 -0
- kiari-0.1.0/tests/core/editor/_schemas/__init__.py +0 -0
- kiari-0.1.0/tests/core/editor/conftest.py +0 -0
- kiari-0.1.0/tests/core/exchange_rate/__init__.py +0 -0
- kiari-0.1.0/tests/core/exchange_rate/_services/__init__.py +0 -0
- kiari-0.1.0/tests/core/exchange_rate/_services/test_exchange_rate_store.py +99 -0
- kiari-0.1.0/tests/core/file_info_source/__init__.py +0 -0
- kiari-0.1.0/tests/core/file_info_source/_helpers/__init__.py +0 -0
- kiari-0.1.0/tests/core/file_info_source/_helpers/test_resolve_file_info_specifiers.py +34 -0
- kiari-0.1.0/tests/core/file_resolver/__init__.py +1 -0
- kiari-0.1.0/tests/core/file_resolver/_helpers/__init__.py +1 -0
- kiari-0.1.0/tests/core/file_resolver/_helpers/test_resolve_file_paths.py +47 -0
- kiari-0.1.0/tests/core/finalizer/__init__.py +1 -0
- kiari-0.1.0/tests/core/finalizer/_helpers/__init__.py +1 -0
- kiari-0.1.0/tests/core/finalizer/_helpers/test_run_finalizers.py +38 -0
- kiari-0.1.0/tests/core/github/__init__.py +0 -0
- kiari-0.1.0/tests/core/github/_helpers/__init__.py +0 -0
- kiari-0.1.0/tests/core/github/_helpers/test_fetch_github_dir.py +35 -0
- kiari-0.1.0/tests/core/github/_helpers/test_fetch_github_file.py +33 -0
- kiari-0.1.0/tests/core/github/_helpers/test_verify_github_trust.py +90 -0
- kiari-0.1.0/tests/core/github/_models/__init__.py +1 -0
- kiari-0.1.0/tests/core/github/_models/test_github_path.py +26 -0
- kiari-0.1.0/tests/core/github/_services/__init__.py +1 -0
- kiari-0.1.0/tests/core/github/_services/test_github_trusted_source_store.py +18 -0
- kiari-0.1.0/tests/core/logging/__init__.py +0 -0
- kiari-0.1.0/tests/core/logging/_helpers/__init__.py +0 -0
- kiari-0.1.0/tests/core/logging/_helpers/test_setup_logger.py +8 -0
- kiari-0.1.0/tests/core/plugin/__init__.py +0 -0
- kiari-0.1.0/tests/core/plugin/_helpers/__init__.py +0 -0
- kiari-0.1.0/tests/core/plugin/_helpers/test_load_plugin.py +18 -0
- kiari-0.1.0/tests/core/profile/__init__.py +1 -0
- kiari-0.1.0/tests/core/profile/_services/__init__.py +1 -0
- kiari-0.1.0/tests/core/profile/_services/test_profile_store.py +164 -0
- kiari-0.1.0/tests/core/rich/__init__.py +0 -0
- kiari-0.1.0/tests/core/rich/_helpers/test_render_content.py +24 -0
- kiari-0.1.0/tests/core/rich/_helpers/test_render_display_content.py +87 -0
- kiari-0.1.0/tests/core/rich/_helpers/test_render_event.py +28 -0
- kiari-0.1.0/tests/core/rich/_helpers/test_render_file_info.py +13 -0
- kiari-0.1.0/tests/core/rich/_helpers/test_render_message.py +84 -0
- kiari-0.1.0/tests/core/rich/_helpers/test_render_tool_call.py +27 -0
- kiari-0.1.0/tests/core/rich/_utils/__init__.py +0 -0
- kiari-0.1.0/tests/core/rich/_utils/test_join_renderables.py +51 -0
- kiari-0.1.0/tests/core/rich/_utils/test_render_status_block.py +34 -0
- kiari-0.1.0/tests/core/rich/conftest.py +7 -0
- kiari-0.1.0/tests/core/runtime/__init__.py +0 -0
- kiari-0.1.0/tests/core/runtime/_helpers/__init__.py +0 -0
- kiari-0.1.0/tests/core/runtime/_helpers/test_create_options.py +49 -0
- kiari-0.1.0/tests/core/runtime/_helpers/test_setup_history.py +60 -0
- kiari-0.1.0/tests/core/runtime/_helpers/test_setup_runtime.py +45 -0
- kiari-0.1.0/tests/core/terminal/__init__.py +1 -0
- kiari-0.1.0/tests/core/terminal/_helpers/__init__.py +1 -0
- kiari-0.1.0/tests/core/terminal/_helpers/test_stop_asyncio_on_enter.py +55 -0
- kiari-0.1.0/tests/core/terminal/_helpers/test_stop_threading_on_enter.py +55 -0
- kiari-0.1.0/tests/data/asr/multi_speaker_audio.mp3 +0 -0
- kiari-0.1.0/tests/data/asr/multi_speaker_audio_16000.mp3 +0 -0
- kiari-0.1.0/tests/data/asr/multi_speaker_audio_16k.wav +0 -0
- kiari-0.1.0/tests/data/asr/reference_voice_1.mp3 +0 -0
- kiari-0.1.0/tests/data/asr/reference_voice_2.mp3 +0 -0
- kiari-0.1.0/tests/data/audio/1.mp3 +0 -0
- kiari-0.1.0/tests/data/audio/2.mp3 +0 -0
- kiari-0.1.0/tests/data/audio/3.mp3 +0 -0
- kiari-0.1.0/tests/data/audio/4.mp3 +0 -0
- kiari-0.1.0/tests/data/csv/1.csv +13 -0
- kiari-0.1.0/tests/data/csv/2.csv +11 -0
- kiari-0.1.0/tests/data/csv/3.csv +11 -0
- kiari-0.1.0/tests/data/csv/4.csv +11 -0
- kiari-0.1.0/tests/data/html/hello.html +6 -0
- kiari-0.1.0/tests/data/image_detection/1.png +0 -0
- kiari-0.1.0/tests/data/jpg/1.jpg +0 -0
- kiari-0.1.0/tests/data/jpg/2.jpg +0 -0
- kiari-0.1.0/tests/data/jpg/3.jpg +0 -0
- kiari-0.1.0/tests/data/jpg/4096x4096.jpg +0 -0
- kiari-0.1.0/tests/data/jpg/large.jpg +0 -0
- kiari-0.1.0/tests/data/json/dict.json +1 -0
- kiari-0.1.0/tests/data/json/list.json +1 -0
- kiari-0.1.0/tests/data/json/user.json +52 -0
- kiari-0.1.0/tests/data/markdown/how-to-use-pydantic-settings-manager.md +688 -0
- kiari-0.1.0/tests/data/markdown/no-yaml-front-matter.md +1 -0
- kiari-0.1.0/tests/data/markdown/with-yaml-front-matter.md +6 -0
- kiari-0.1.0/tests/data/miineko.png +0 -0
- kiari-0.1.0/tests/data/mime/sample.csv +4 -0
- kiari-0.1.0/tests/data/mime/sample.docx +0 -0
- kiari-0.1.0/tests/data/mime/sample.docx.pdf +0 -0
- kiari-0.1.0/tests/data/mime/sample.json +52 -0
- kiari-0.1.0/tests/data/mime/sample.mp3 +0 -0
- kiari-0.1.0/tests/data/mime/sample.mp4 +0 -0
- kiari-0.1.0/tests/data/mime/sample.pdf +180 -0
- kiari-0.1.0/tests/data/mime/sample.png +0 -0
- kiari-0.1.0/tests/data/mime/sample.pptx +0 -0
- kiari-0.1.0/tests/data/mime/sample.pptx.pdf +0 -0
- kiari-0.1.0/tests/data/mime/sample.txt +3 -0
- kiari-0.1.0/tests/data/mime/sample.xlsx +0 -0
- kiari-0.1.0/tests/data/mime/sample_large.txt +688 -0
- kiari-0.1.0/tests/data/nginx.conf +31 -0
- kiari-0.1.0/tests/data/pdf/1.pdf +180 -0
- kiari-0.1.0/tests/data/pdf/100p.pdf +1958 -0
- kiari-0.1.0/tests/data/pdf/101p.pdf +1978 -0
- kiari-0.1.0/tests/data/pdf/10p.pdf +252 -0
- kiari-0.1.0/tests/data/pdf/2.pdf +0 -0
- kiari-0.1.0/tests/data/pdf/3.pdf +0 -0
- kiari-0.1.0/tests/data/png/1.png +0 -0
- kiari-0.1.0/tests/data/python/mcp_server_math.py +19 -0
- kiari-0.1.0/tests/data/redisearch/content.md +1 -0
- kiari-0.1.0/tests/data/redisearch/content_vector.json +3074 -0
- kiari-0.1.0/tests/data/redisearch/content_vector.pkl +0 -0
- kiari-0.1.0/tests/data/redisearch/metadata.json +5 -0
- kiari-0.1.0/tests/data/search/1.txt +1 -0
- kiari-0.1.0/tests/data/search/2.txt +0 -0
- kiari-0.1.0/tests/data/search/3.md +0 -0
- kiari-0.1.0/tests/data/search/README.md +3 -0
- kiari-0.1.0/tests/data/search/app.js +2 -0
- kiari-0.1.0/tests/data/search/app.log.2024-01-01 +2 -0
- kiari-0.1.0/tests/data/search/backup.bak +1 -0
- kiari-0.1.0/tests/data/search/child/4.md +0 -0
- kiari-0.1.0/tests/data/search/file123.txt +1 -0
- kiari-0.1.0/tests/data/search/main.ts +3 -0
- kiari-0.1.0/tests/data/search/other/models/product.py +5 -0
- kiari-0.1.0/tests/data/search/readme.txt +3 -0
- kiari-0.1.0/tests/data/search/src/main.py +3 -0
- kiari-0.1.0/tests/data/search/src/models/user.py +4 -0
- kiari-0.1.0/tests/data/search/temp_data.json +1 -0
- kiari-0.1.0/tests/data/search/test_config.py +2 -0
- kiari-0.1.0/tests/data/search/test_example.py +3 -0
- kiari-0.1.0/tests/data/sensor/speech1.wav +0 -0
- kiari-0.1.0/tests/data/sitemap/1.xml +81 -0
- kiari-0.1.0/tests/data/sitemap/2.xml +84 -0
- kiari-0.1.0/tests/data/small.pdf +180 -0
- kiari-0.1.0/tests/data/test.txt +1 -0
- kiari-0.1.0/tests/data/text/1.txt +1 -0
- kiari-0.1.0/tests/data/vad/.gitignore +1 -0
- kiari-0.1.0/tests/data/vad/speech1.wav +0 -0
- kiari-0.1.0/tests/data/video/1.mp4 +0 -0
- kiari-0.1.0/tests/data/video/2.mp4 +0 -0
- kiari-0.1.0/tests/data/video/3.mp4 +0 -0
- kiari-0.1.0/tests/data/video/4.mp4 +0 -0
- kiari-0.1.0/tests/data/web/about.html +13 -0
- kiari-0.1.0/tests/data/web/asset/miineko.png +0 -0
- kiari-0.1.0/tests/data/web/index.html +15 -0
- kiari-0.1.0/tests/data/web/overflow.html +571 -0
- kiari-0.1.0/tests/data/web/state/fire.html +11 -0
- kiari-0.1.0/tests/data/web/state/hoge.html +11 -0
- kiari-0.1.0/tests/data/web/state/index.html +11 -0
- kiari-0.1.0/tests/data/yaml/dict.yaml +1 -0
- kiari-0.1.0/tests/data/yaml/list.yaml +2 -0
- kiari-0.1.0/tests/impl/__init__.py +0 -0
- kiari-0.1.0/tests/impl/chat_logger_impl/__init__.py +0 -0
- kiari-0.1.0/tests/impl/chat_logger_impl/default/__init__.py +0 -0
- kiari-0.1.0/tests/impl/chat_logger_impl/default/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/chat_logger_impl/default/_models/test_default_chat_logger.py +33 -0
- kiari-0.1.0/tests/impl/cost_logger_impl/__init__.py +0 -0
- kiari-0.1.0/tests/impl/cost_logger_impl/default/__init__.py +0 -0
- kiari-0.1.0/tests/impl/cost_logger_impl/default/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/cost_logger_impl/default/_models/test_default_cost_logger.py +50 -0
- kiari-0.1.0/tests/impl/history_repository_impl/__init__.py +1 -0
- kiari-0.1.0/tests/impl/history_repository_impl/in_memory/__init__.py +1 -0
- kiari-0.1.0/tests/impl/history_repository_impl/in_memory/_models/__init__.py +1 -0
- kiari-0.1.0/tests/impl/history_repository_impl/in_memory/_models/test_in_memory_history_repository.py +18 -0
- kiari-0.1.0/tests/impl/history_repository_impl/local/__init__.py +1 -0
- kiari-0.1.0/tests/impl/history_repository_impl/local/_models/__init__.py +1 -0
- kiari-0.1.0/tests/impl/history_repository_impl/local/_models/test_local_history_repository.py +17 -0
- kiari-0.1.0/tests/impl/tool_impl/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/audio_file_view/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/audio_file_view/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/audio_file_view/_models/test_audio_file_view.py +71 -0
- kiari-0.1.0/tests/impl/tool_impl/change_directory/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/change_directory/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/change_directory/_models/test_change_directory.py +110 -0
- kiari-0.1.0/tests/impl/tool_impl/gui/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/gui/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/gui/_models/test_gui.py +211 -0
- kiari-0.1.0/tests/impl/tool_impl/gui/conftest.py +79 -0
- kiari-0.1.0/tests/impl/tool_impl/image_file_view/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/image_file_view/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/image_file_view/_models/test_image_file_view.py +71 -0
- kiari-0.1.0/tests/impl/tool_impl/pdf_file_view/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/pdf_file_view/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/pdf_file_view/_models/test_pdf_file_view.py +85 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/_models/test_subprocess.py +19 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/_operations/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/_operations/test_cancel.py +85 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/_operations/test_get_list.py +43 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/_operations/test_get_output.py +84 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/_operations/test_run.py +63 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/_operations/test_run_background.py +18 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/_utils/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/subprocess/conftest.py +59 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_edit/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_edit/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_edit/_models/test_text_file_edit.py +25 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_edit/_operations/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_edit/_operations/test_create.py +72 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_edit/_operations/test_line_replace.py +192 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_edit/_operations/test_str_replace.py +145 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_edit/_operations/test_update.py +69 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_edit/conftest.py +40 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_view/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_view/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/text_file_view/_models/test_text_file_view.py +119 -0
- kiari-0.1.0/tests/impl/tool_impl/video_file_view/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/video_file_view/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_impl/video_file_view/_models/test_video_file_view.py +71 -0
- kiari-0.1.0/tests/impl/tool_logger_impl/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_logger_impl/default/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_logger_impl/default/_models/__init__.py +0 -0
- kiari-0.1.0/tests/impl/tool_logger_impl/default/_models/test_default_tool_logger.py +51 -0
- kiari-0.1.0/tests/impl/watch_handler_impl/__init__.py +1 -0
- kiari-0.1.0/tests/impl/watch_handler_impl/slack/_models/test_slack_watch_handler.py +169 -0
- kiari-0.1.0/tests/impl/watch_handler_impl/slack/_utils/test_convert_markdown_to_mrkdwn.py +14 -0
- kiari-0.1.0/tests/impl/watch_handler_impl/vanilla/__init__.py +1 -0
- kiari-0.1.0/tests/impl/watch_handler_impl/vanilla/_models/test_vanilla_watch_handler.py +5 -0
- kiari-0.1.0/tests/impl/watcher_impl/__init__.py +1 -0
- kiari-0.1.0/tests/impl/watcher_impl/file/__init__.py +1 -0
- kiari-0.1.0/tests/impl/watcher_impl/file/_helpers/test_create_file_watcher.py +21 -0
- kiari-0.1.0/tests/impl/watcher_impl/file/_models/test_file_watcher.py +73 -0
- kiari-0.1.0/tests/impl/watcher_impl/pubsub/__init__.py +1 -0
- kiari-0.1.0/tests/impl/watcher_impl/pubsub/_helpers/test_create_pubsub_watcher.py +9 -0
- kiari-0.1.0/tests/impl/watcher_impl/pubsub/_schemas/test_pubsub_watch_event.py +32 -0
- kiari-0.1.0/tests/impl/watcher_impl/rtdb/__init__.py +1 -0
- kiari-0.1.0/tests/impl/watcher_impl/rtdb/_helpers/test_create_rtdb_watcher.py +9 -0
- kiari-0.1.0/tests/impl/watcher_impl/rtdb/_schemas/test_rtdb_watch_event.py +28 -0
- kiari-0.1.0/tests/impl/watcher_impl/slack/__init__.py +1 -0
- kiari-0.1.0/tests/impl/watcher_impl/slack/_helpers/test_create_slack_watcher.py +15 -0
- kiari-0.1.0/tests/impl/watcher_impl/slack/_models/test_slack_watcher.py +25 -0
- kiari-0.1.0/tests/impl/watcher_impl/slack/_schemas/test_slack_watch_event.py +42 -0
- kiari-0.1.0/tests/lib/__init__.py +0 -0
- kiari-0.1.0/tests/lib/audio_utils/__init__.py +0 -0
- kiari-0.1.0/tests/lib/audio_utils/_utils/__init__.py +0 -0
- kiari-0.1.0/tests/lib/audio_utils/_utils/test_load_audio_samples.py +18 -0
- kiari-0.1.0/tests/lib/audio_utils/_utils/test_play_audio.py +42 -0
- kiari-0.1.0/tests/lib/gui/__init__.py +0 -0
- kiari-0.1.0/tests/lib/gui/_services/__init__.py +0 -0
- kiari-0.1.0/tests/lib/gui/_services/test_gui.py +9 -0
- kiari-0.1.0/tests/lib/history_repository/__init__.py +1 -0
- kiari-0.1.0/tests/lib/history_repository/_models/__init__.py +1 -0
- kiari-0.1.0/tests/lib/history_repository/_models/test_base_history_repository.py +19 -0
- kiari-0.1.0/tests/lib/history_repository/_services/test_history_repository_registry.py +24 -0
- kiari-0.1.0/tests/lib/watcher/__init__.py +1 -0
- kiari-0.1.0/tests/lib/watcher/_models/test_base_watcher.py +24 -0
kiari-0.1.0/.gitignore
ADDED
kiari-0.1.0/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.1.0] - 2026-07-10
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Extracted kiari from myaikit2 as an independent package.
|
|
14
|
+
- Renamed the Python namespace from `kiari2` to `kiari`.
|
|
15
|
+
- Added GitHub Actions CI and PyPI Trusted Publishing release workflow.
|
kiari-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Aki
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
kiari-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: kiari
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A CLI tool for developing and experimenting with qualia-oriented LLM agents
|
|
5
|
+
Project-URL: homepage, https://github.com/kiarina/kiari
|
|
6
|
+
Project-URL: repository, https://github.com/kiarina/kiari
|
|
7
|
+
Project-URL: documentation, https://github.com/kiarina/kiari
|
|
8
|
+
Author-email: kiarina <kiarinadawa@gmail.com>
|
|
9
|
+
License: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: agent,automation,cli,llm
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Requires-Python: <3.14,>=3.12
|
|
21
|
+
Requires-Dist: aiofiles<26,>=25.1.0
|
|
22
|
+
Requires-Dist: aiohttp<4,>=3.12.0
|
|
23
|
+
Requires-Dist: aiotools<3,>=2.0.1
|
|
24
|
+
Requires-Dist: anthropic<1,>=0.84.0
|
|
25
|
+
Requires-Dist: asyncpg<1,>=0.31.0
|
|
26
|
+
Requires-Dist: atlassian-python-api<5,>=4.0.4
|
|
27
|
+
Requires-Dist: audioop-lts>=0.2.2; python_full_version >= '3.13'
|
|
28
|
+
Requires-Dist: authlib<2,>=1.6.6
|
|
29
|
+
Requires-Dist: beautifulsoup4<5,>=4.13.4
|
|
30
|
+
Requires-Dist: chardet<6,>=5.2.0
|
|
31
|
+
Requires-Dist: click<9,>=8.2.1
|
|
32
|
+
Requires-Dist: colorama<1,>=0.4.6
|
|
33
|
+
Requires-Dist: croniter<7,>=6.0.0
|
|
34
|
+
Requires-Dist: cryptography<47,>=46.0.2
|
|
35
|
+
Requires-Dist: fastapi<1,>=0.133.0
|
|
36
|
+
Requires-Dist: filelock<4,>=3.18.0
|
|
37
|
+
Requires-Dist: firebase-admin<8,>=7.1.0
|
|
38
|
+
Requires-Dist: gitignore-parser<1,>=0.1.12
|
|
39
|
+
Requires-Dist: google-api-python-client<3,>=2.178.0
|
|
40
|
+
Requires-Dist: google-auth-oauthlib<2,>=1.2.2
|
|
41
|
+
Requires-Dist: google-cloud-firestore<3,>=2.23.0
|
|
42
|
+
Requires-Dist: google-cloud-pubsub<3,>=2.31.1
|
|
43
|
+
Requires-Dist: google-genai<3,>=1.65.0
|
|
44
|
+
Requires-Dist: grpcio<2,>=1.74.0
|
|
45
|
+
Requires-Dist: gunicorn<26,>=25.0.0
|
|
46
|
+
Requires-Dist: httpx<1.0.0,>=0.28.1
|
|
47
|
+
Requires-Dist: jaxtyping<1,>=0.3.3
|
|
48
|
+
Requires-Dist: kiarina>=2.14.0
|
|
49
|
+
Requires-Dist: langchain-anthropic<2,>=1.0.0
|
|
50
|
+
Requires-Dist: langchain-community>=0.4
|
|
51
|
+
Requires-Dist: langchain-core<2,>=1.0.0
|
|
52
|
+
Requires-Dist: langchain-google-community<4,>=3.0.0
|
|
53
|
+
Requires-Dist: langchain-google-genai<5,>=4.0.0
|
|
54
|
+
Requires-Dist: langchain-google-vertexai<4,>=3.0.0
|
|
55
|
+
Requires-Dist: langchain-mcp-adapters<1,>=0.2.1
|
|
56
|
+
Requires-Dist: langchain-openai<2,>=1.0.0
|
|
57
|
+
Requires-Dist: langchain<2,>=1.0.0
|
|
58
|
+
Requires-Dist: markdownify<2,>=1.2.0
|
|
59
|
+
Requires-Dist: moviepy<3,>=2.2.1
|
|
60
|
+
Requires-Dist: mss<11,>=10.0.0
|
|
61
|
+
Requires-Dist: natsort<9,>=8.4.0
|
|
62
|
+
Requires-Dist: neo4j<7,>=6.0.2
|
|
63
|
+
Requires-Dist: numpy<3,>=2.0
|
|
64
|
+
Requires-Dist: onnxruntime>=1.25.1
|
|
65
|
+
Requires-Dist: openai<3,>=2.0.1
|
|
66
|
+
Requires-Dist: opencv-python<5,>=4.12.0
|
|
67
|
+
Requires-Dist: pandas<3,>=2.3.1
|
|
68
|
+
Requires-Dist: pillow<12,>=11.3.0
|
|
69
|
+
Requires-Dist: platformdirs<5,>=4.3.8
|
|
70
|
+
Requires-Dist: playwright<2,>=1.54.0
|
|
71
|
+
Requires-Dist: prettytable<4,>=3.16.0
|
|
72
|
+
Requires-Dist: prompt-toolkit<4,>=3.0.51
|
|
73
|
+
Requires-Dist: psutil<8,>=7.0.0
|
|
74
|
+
Requires-Dist: ptyprocess<1,>=0.7.0
|
|
75
|
+
Requires-Dist: puremagic<2,>=1.30
|
|
76
|
+
Requires-Dist: pyautogui<1,>=0.9.54
|
|
77
|
+
Requires-Dist: pydantic-settings-manager>=2.5.1
|
|
78
|
+
Requires-Dist: pydantic-settings<3,>=2.10.1
|
|
79
|
+
Requires-Dist: pydantic<3,>=2.11.7
|
|
80
|
+
Requires-Dist: pydub<1,>=0.25.1
|
|
81
|
+
Requires-Dist: pyfzf<1,>=0.3.1
|
|
82
|
+
Requires-Dist: pymupdf<2,>=1.26.3
|
|
83
|
+
Requires-Dist: pypdf<7,>=6.7.4
|
|
84
|
+
Requires-Dist: pyperclip<2,>=1.9.0
|
|
85
|
+
Requires-Dist: pyte<1,>=0.8.2
|
|
86
|
+
Requires-Dist: pyyaml<7,>=6.0.2
|
|
87
|
+
Requires-Dist: questionary<3,>=2.1.1
|
|
88
|
+
Requires-Dist: redis<8,>=7.0.0
|
|
89
|
+
Requires-Dist: rich-click>=1.9.7
|
|
90
|
+
Requires-Dist: rich<15,>=14.1.0
|
|
91
|
+
Requires-Dist: setuptools<83,>=82.0.0
|
|
92
|
+
Requires-Dist: slack-bolt<2,>=1.23.0
|
|
93
|
+
Requires-Dist: slack-sdk<4,>=3.36.0
|
|
94
|
+
Requires-Dist: sounddevice<1,>=0.5.3
|
|
95
|
+
Requires-Dist: soundfile>=0.13.1
|
|
96
|
+
Requires-Dist: streamlit-aggrid<2,>=1.1.7
|
|
97
|
+
Requires-Dist: streamlit<2,>=1.48.1
|
|
98
|
+
Requires-Dist: toml<1,>=0.10.2
|
|
99
|
+
Requires-Dist: tzlocal<6,>=5.3.1
|
|
100
|
+
Requires-Dist: ulid-py<2,>=1.1.0
|
|
101
|
+
Requires-Dist: uvicorn<1,>=0.35.0
|
|
102
|
+
Requires-Dist: watchdog<7,>=6.0.0
|
|
103
|
+
Requires-Dist: watchfiles<2,>=1.1.1
|
|
104
|
+
Description-Content-Type: text/markdown
|
|
105
|
+
|
|
106
|
+
# kiari
|
|
107
|
+
|
|
108
|
+
`kiari` is a CLI tool for developing and experimenting with qualia-oriented LLM agents.
|
|
109
|
+
|
|
110
|
+
## Installation
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
pip install kiari
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Usage
|
|
117
|
+
|
|
118
|
+
Start the interactive console:
|
|
119
|
+
|
|
120
|
+
```sh
|
|
121
|
+
kiari
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Run a one-shot batch prompt:
|
|
125
|
+
|
|
126
|
+
```sh
|
|
127
|
+
kiari "hello"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Manage profiles:
|
|
131
|
+
|
|
132
|
+
```sh
|
|
133
|
+
kiari profile list
|
|
134
|
+
kiari profile new
|
|
135
|
+
kiari profile use
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Watch Mode
|
|
139
|
+
|
|
140
|
+
Watch file changes:
|
|
141
|
+
|
|
142
|
+
```sh
|
|
143
|
+
kiari watch "file?paths=.&include_patterns=*.md"
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Watch Pub/Sub:
|
|
147
|
+
|
|
148
|
+
```sh
|
|
149
|
+
kiari ext pubsub create-topic --project-id kiarina --topic-id tmp
|
|
150
|
+
kiari ext pubsub create-subscription --project-id kiarina --topic-id tmp --subscription-id tmp
|
|
151
|
+
kiari watch "pubsub?project_id=kiarina&subscription_id=tmp"
|
|
152
|
+
kiari ext pubsub publish-message --project-id kiarina --topic-id tmp --attribute hoge=fuga "hello"
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Watch Realtime Database:
|
|
156
|
+
|
|
157
|
+
```sh
|
|
158
|
+
DATABASE_URL=https://kiarina-python.firebaseio.com/
|
|
159
|
+
kiari watch "rtdb?database_url=$DATABASE_URL&path=/posts/kiarina"
|
|
160
|
+
kiari ext rtdb set --database-url $DATABASE_URL --path /posts/kiarina '{"message":"hello"}'
|
|
161
|
+
kiari ext rtdb get --database-url $DATABASE_URL --path /posts/kiarina
|
|
162
|
+
kiari ext rtdb watch --database-url $DATABASE_URL --path /posts/kiarina
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Watch Slack:
|
|
166
|
+
|
|
167
|
+
```sh
|
|
168
|
+
CHANNEL_ID=C077QKNDCUR
|
|
169
|
+
kiari watch "slack?"
|
|
170
|
+
kiari watch --watch-handler slack "slack?"
|
|
171
|
+
kiari ext slack post-message --channel $CHANNEL_ID "hello"
|
|
172
|
+
kiari ext -v slack get-channel-messages --channel $CHANNEL_ID --limit 1
|
|
173
|
+
kiari ext slack watch-channel --channel $CHANNEL_ID
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Development
|
|
177
|
+
|
|
178
|
+
```sh
|
|
179
|
+
mise run setup
|
|
180
|
+
mise run ci
|
|
181
|
+
```
|
kiari-0.1.0/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# kiari
|
|
2
|
+
|
|
3
|
+
`kiari` is a CLI tool for developing and experimenting with qualia-oriented LLM agents.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pip install kiari
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Start the interactive console:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
kiari
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Run a one-shot batch prompt:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
kiari "hello"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Manage profiles:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
kiari profile list
|
|
29
|
+
kiari profile new
|
|
30
|
+
kiari profile use
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Watch Mode
|
|
34
|
+
|
|
35
|
+
Watch file changes:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
kiari watch "file?paths=.&include_patterns=*.md"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Watch Pub/Sub:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
kiari ext pubsub create-topic --project-id kiarina --topic-id tmp
|
|
45
|
+
kiari ext pubsub create-subscription --project-id kiarina --topic-id tmp --subscription-id tmp
|
|
46
|
+
kiari watch "pubsub?project_id=kiarina&subscription_id=tmp"
|
|
47
|
+
kiari ext pubsub publish-message --project-id kiarina --topic-id tmp --attribute hoge=fuga "hello"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Watch Realtime Database:
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
DATABASE_URL=https://kiarina-python.firebaseio.com/
|
|
54
|
+
kiari watch "rtdb?database_url=$DATABASE_URL&path=/posts/kiarina"
|
|
55
|
+
kiari ext rtdb set --database-url $DATABASE_URL --path /posts/kiarina '{"message":"hello"}'
|
|
56
|
+
kiari ext rtdb get --database-url $DATABASE_URL --path /posts/kiarina
|
|
57
|
+
kiari ext rtdb watch --database-url $DATABASE_URL --path /posts/kiarina
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Watch Slack:
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
CHANNEL_ID=C077QKNDCUR
|
|
64
|
+
kiari watch "slack?"
|
|
65
|
+
kiari watch --watch-handler slack "slack?"
|
|
66
|
+
kiari ext slack post-message --channel $CHANNEL_ID "hello"
|
|
67
|
+
kiari ext -v slack get-channel-messages --channel $CHANNEL_ID --limit 1
|
|
68
|
+
kiari ext slack watch-channel --channel $CHANNEL_ID
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Development
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
mise run setup
|
|
75
|
+
mise run ci
|
|
76
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
## watch モード
|
|
2
|
+
|
|
3
|
+
```sh
|
|
4
|
+
# ファイルの変更を監視
|
|
5
|
+
kiari watch "file?paths=.&include_patterns=*.md"
|
|
6
|
+
|
|
7
|
+
# PubSub を監視
|
|
8
|
+
kiari ext pubsub create-topic --project-id kiarina --topic-id tmp
|
|
9
|
+
kiari ext pubsub create-subscription --project-id kiarina --topic-id tmp --subscription-id tmp
|
|
10
|
+
kiari watch "pubsub?project_id=kiarina&subscription_id=tmp"
|
|
11
|
+
kiari ext pubsub publish-message --project-id kiarina --topic-id tmp --attribute hoge=fuga "hello"
|
|
12
|
+
|
|
13
|
+
# Realtime Database を監視
|
|
14
|
+
DATABASE_URL=https://kiarina-python.firebaseio.com/
|
|
15
|
+
kiari watch "rtdb?database_url=$DATABASE_URL&path=/posts/kiarina"
|
|
16
|
+
# - 複数のパスを監視
|
|
17
|
+
kiari watch \
|
|
18
|
+
"rtdb?database_url=$DATABASE_URL&path=/posts/kiarina" \
|
|
19
|
+
"rtdb?database_url=$DATABASE_URL&path=/status/kiarina"
|
|
20
|
+
kiari ext rtdb set --database-url $DATABASE_URL --path /posts/kiarina '{"message":"hello"}'
|
|
21
|
+
kiari ext rtdb get --database-url $DATABASE_URL --path /posts/kiarina
|
|
22
|
+
kiari ext rtdb watch --database-url $DATABASE_URL --path /posts/kiarina
|
|
23
|
+
|
|
24
|
+
# Slack を監視
|
|
25
|
+
CHANNEL_ID=C077QKNDCUR
|
|
26
|
+
kiari watch "slack?"
|
|
27
|
+
kiari watch --watch-handler slack "slack?"
|
|
28
|
+
kiari ext slack post-message --channel $CHANNEL_ID "hello"
|
|
29
|
+
kiari ext -v slack get-channel-messages --channel $CHANNEL_ID --limit 1
|
|
30
|
+
kiari ext slack watch-channel --channel $CHANNEL_ID
|
|
31
|
+
```
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
from importlib import import_module
|
|
2
|
+
from typing import TYPE_CHECKING
|
|
3
|
+
|
|
4
|
+
if TYPE_CHECKING:
|
|
5
|
+
from kiarina.agi.agent import BaseAgent as Agent
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
# --------------------------------------------------
|
|
9
|
+
# kiarina_agi
|
|
10
|
+
# --------------------------------------------------
|
|
11
|
+
# kiarina.agi.agent
|
|
12
|
+
"Agent",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __getattr__(name: str) -> object:
|
|
17
|
+
if name not in __all__: # pragma: no cover
|
|
18
|
+
raise AttributeError(f"module {__name__} has no attribute {name}")
|
|
19
|
+
|
|
20
|
+
# Map attribute names to their module paths
|
|
21
|
+
# Format: "name": "module_path" or "name": ("module_path", "attr_name")
|
|
22
|
+
# fmg: off
|
|
23
|
+
module_map: dict[str, str | tuple[str, str]] = {
|
|
24
|
+
# --------------------------------------------------
|
|
25
|
+
# kiarina_agi
|
|
26
|
+
# --------------------------------------------------
|
|
27
|
+
# kiarina.agi.agent
|
|
28
|
+
"Agent": ("kiarina.agi.agent", "BaseAgent"),
|
|
29
|
+
}
|
|
30
|
+
# fmt: on
|
|
31
|
+
|
|
32
|
+
module_info = module_map[name]
|
|
33
|
+
|
|
34
|
+
if isinstance(module_info, tuple):
|
|
35
|
+
# Tuple format: (module_path, attr_name)
|
|
36
|
+
module_path, attr_name = module_info
|
|
37
|
+
module = import_module(module_path)
|
|
38
|
+
attr = getattr(module, attr_name)
|
|
39
|
+
else:
|
|
40
|
+
# String format: module_path (attr_name is the same as name)
|
|
41
|
+
module_path = module_info
|
|
42
|
+
module = import_module(module_path)
|
|
43
|
+
attr = getattr(module, name)
|
|
44
|
+
|
|
45
|
+
globals()[name] = attr
|
|
46
|
+
return attr
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from ._constants.common_option_groups import COMMON_OPTION_GROUPS
|
|
2
|
+
from ._decorators.common_options import common_options
|
|
3
|
+
from ._helpers.build_cli_args import build_cli_args
|
|
4
|
+
from ._helpers.render_bootstrap_message import render_bootstrap_message
|
|
5
|
+
from ._helpers.run import run
|
|
6
|
+
from ._helpers.setup_profile import setup_profile
|
|
7
|
+
from ._schemas.cli_args import CLIArgs
|
|
8
|
+
from ._types.extra_args import ExtraArgs
|
|
9
|
+
from ._types.save_mode import SaveMode
|
|
10
|
+
from ._utils.graceful_shutdown import graceful_shutdown
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
# ._constants
|
|
14
|
+
"COMMON_OPTION_GROUPS",
|
|
15
|
+
# ._decorators
|
|
16
|
+
"common_options",
|
|
17
|
+
# ._helpers
|
|
18
|
+
"build_cli_args",
|
|
19
|
+
"render_bootstrap_message",
|
|
20
|
+
"run",
|
|
21
|
+
"setup_profile",
|
|
22
|
+
# ._schemas
|
|
23
|
+
"CLIArgs",
|
|
24
|
+
# ._types
|
|
25
|
+
"ExtraArgs",
|
|
26
|
+
"SaveMode",
|
|
27
|
+
# ._utils
|
|
28
|
+
"graceful_shutdown",
|
|
29
|
+
]
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
from rich_click.utils import OptionGroupDict
|
|
2
|
+
|
|
3
|
+
COMMON_OPTION_GROUPS: list[OptionGroupDict] = [
|
|
4
|
+
{
|
|
5
|
+
"name": "History Repository",
|
|
6
|
+
"options": [
|
|
7
|
+
"--history-repository",
|
|
8
|
+
"--stateless",
|
|
9
|
+
"--no-load",
|
|
10
|
+
"--no-save",
|
|
11
|
+
"--allow-active-missing-tools",
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "History",
|
|
16
|
+
"options": [
|
|
17
|
+
"--event",
|
|
18
|
+
"--file-info",
|
|
19
|
+
"--tool-info",
|
|
20
|
+
"--default-tool-state",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "Agent",
|
|
25
|
+
"options": [
|
|
26
|
+
"--agent",
|
|
27
|
+
"--file-limits",
|
|
28
|
+
"--max-iterations",
|
|
29
|
+
"--until-end",
|
|
30
|
+
"--until-tool-call",
|
|
31
|
+
"--until-tool-run",
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Tool",
|
|
36
|
+
"options": [
|
|
37
|
+
"--tool",
|
|
38
|
+
"--pre-hook",
|
|
39
|
+
"--post-hook",
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Workflow",
|
|
44
|
+
"options": [
|
|
45
|
+
"--workflow",
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "Prompt",
|
|
50
|
+
"options": [
|
|
51
|
+
"--prompt",
|
|
52
|
+
"--prompt-limits",
|
|
53
|
+
"--system-message",
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "Chat",
|
|
58
|
+
"options": [
|
|
59
|
+
"--chat-model",
|
|
60
|
+
"--openai",
|
|
61
|
+
"--anthropic",
|
|
62
|
+
"--google",
|
|
63
|
+
"--tool-choice",
|
|
64
|
+
"--parallel-tool-calls",
|
|
65
|
+
"--streaming",
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "Cost Recorder",
|
|
70
|
+
"options": [
|
|
71
|
+
"--cost-recorder",
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "Observability",
|
|
76
|
+
"options": [
|
|
77
|
+
"--request-logger",
|
|
78
|
+
"--cost-logger",
|
|
79
|
+
"--chat-logger",
|
|
80
|
+
"--tool-logger",
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "Run Context",
|
|
85
|
+
"options": [
|
|
86
|
+
"--organization-id",
|
|
87
|
+
"--user-id",
|
|
88
|
+
"--agent-id",
|
|
89
|
+
"--runner-id",
|
|
90
|
+
"--language",
|
|
91
|
+
"--time-zone",
|
|
92
|
+
"--currency",
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "GitHub",
|
|
97
|
+
"options": [
|
|
98
|
+
"--github-ignore-cache",
|
|
99
|
+
"--github-trusted-username",
|
|
100
|
+
"--github-skip-trust-verification",
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "Config",
|
|
105
|
+
"options": [
|
|
106
|
+
"--i18n-catalog",
|
|
107
|
+
"--config",
|
|
108
|
+
"--config-var",
|
|
109
|
+
"--plugin",
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "Profile",
|
|
114
|
+
"options": [
|
|
115
|
+
"--profile",
|
|
116
|
+
"--set-profile",
|
|
117
|
+
"--reset-profile",
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "Logging",
|
|
122
|
+
"options": [
|
|
123
|
+
"--logger-name",
|
|
124
|
+
"--log-level",
|
|
125
|
+
"--verbose",
|
|
126
|
+
"--quiet",
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
]
|