yumi-agent 0.0.1__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.
- yumi_agent-0.0.1/CHANGELOG.md +242 -0
- yumi_agent-0.0.1/CODE_OF_CONDUCT.md +42 -0
- yumi_agent-0.0.1/COMMERCIAL.md +15 -0
- yumi_agent-0.0.1/CONTRIBUTING.md +123 -0
- yumi_agent-0.0.1/LICENSE +201 -0
- yumi_agent-0.0.1/MANIFEST.in +23 -0
- yumi_agent-0.0.1/NOTICE +22 -0
- yumi_agent-0.0.1/PKG-INFO +288 -0
- yumi_agent-0.0.1/README.md +221 -0
- yumi_agent-0.0.1/SECURITY.md +34 -0
- yumi_agent-0.0.1/assets/social-preview.png +0 -0
- yumi_agent-0.0.1/assets/you-me-vector-logo-yumi-first-preview.png +0 -0
- yumi_agent-0.0.1/assets/you-me-vector-logo-yumi-first-transparent.png +0 -0
- yumi_agent-0.0.1/assets/you-me-vector-logo-yumi-first.svg +51 -0
- yumi_agent-0.0.1/assets/yumi-nexus-logo-transparent.png +0 -0
- yumi_agent-0.0.1/assets/yumi-nexus-logo.svg +40 -0
- yumi_agent-0.0.1/assets/yumi-nexus-mark-transparent.png +0 -0
- yumi_agent-0.0.1/assets/yumi-nexus-mark.svg +30 -0
- yumi_agent-0.0.1/docs/ARCHITECTURE.md +257 -0
- yumi_agent-0.0.1/docs/CONFIGURATION.md +511 -0
- yumi_agent-0.0.1/docs/DEPLOYMENT.md +78 -0
- yumi_agent-0.0.1/docs/EDGE_TOOLS.md +310 -0
- yumi_agent-0.0.1/docs/GETTING_STARTED.md +218 -0
- yumi_agent-0.0.1/docs/HTTP_API.md +177 -0
- yumi_agent-0.0.1/docs/MEMORY.md +80 -0
- yumi_agent-0.0.1/docs/MIGRATION_PLATFORM_FEATURES.md +72 -0
- yumi_agent-0.0.1/docs/TESTING.md +62 -0
- yumi_agent-0.0.1/docs/TOOL_REGISTRATION.md +181 -0
- yumi_agent-0.0.1/docs/UPGRADING_TO_ENTERPRISE.md +113 -0
- yumi_agent-0.0.1/llms.txt +39 -0
- yumi_agent-0.0.1/pyproject.toml +212 -0
- yumi_agent-0.0.1/setup.cfg +4 -0
- yumi_agent-0.0.1/tests/test_api_factory.py +7 -0
- yumi_agent-0.0.1/tests/test_api_schemas.py +23 -0
- yumi_agent-0.0.1/tests/test_architecture_boundaries.py +100 -0
- yumi_agent-0.0.1/tests/test_bridge_scope.py +43 -0
- yumi_agent-0.0.1/tests/test_bridge_voice_reply.py +50 -0
- yumi_agent-0.0.1/tests/test_chat_api.py +30 -0
- yumi_agent-0.0.1/tests/test_chat_debug_api.py +46 -0
- yumi_agent-0.0.1/tests/test_chat_debug_trace.py +41 -0
- yumi_agent-0.0.1/tests/test_chat_turn_service.py +245 -0
- yumi_agent-0.0.1/tests/test_cli_commands.py +95 -0
- yumi_agent-0.0.1/tests/test_cli_environment.py +355 -0
- yumi_agent-0.0.1/tests/test_config_cleanup.py +68 -0
- yumi_agent-0.0.1/tests/test_config_env_overrides.py +111 -0
- yumi_agent-0.0.1/tests/test_config_model.py +105 -0
- yumi_agent-0.0.1/tests/test_config_model_api.py +338 -0
- yumi_agent-0.0.1/tests/test_discord_bot.py +170 -0
- yumi_agent-0.0.1/tests/test_discord_notify.py +50 -0
- yumi_agent-0.0.1/tests/test_dispatch_confirmation.py +122 -0
- yumi_agent-0.0.1/tests/test_dispatch_dispatcher.py +152 -0
- yumi_agent-0.0.1/tests/test_dispatch_normalizer.py +57 -0
- yumi_agent-0.0.1/tests/test_dispatch_usage.py +56 -0
- yumi_agent-0.0.1/tests/test_edge_tool_validation_consistency.py +56 -0
- yumi_agent-0.0.1/tests/test_edge_websocket.py +191 -0
- yumi_agent-0.0.1/tests/test_edge_workspace.py +78 -0
- yumi_agent-0.0.1/tests/test_feature_install.py +79 -0
- yumi_agent-0.0.1/tests/test_gemini_edge_tool_names.py +40 -0
- yumi_agent-0.0.1/tests/test_gemini_tool_sequence_sanitize.py +179 -0
- yumi_agent-0.0.1/tests/test_health_endpoint.py +13 -0
- yumi_agent-0.0.1/tests/test_http_config.py +42 -0
- yumi_agent-0.0.1/tests/test_l1_content_boundaries.py +94 -0
- yumi_agent-0.0.1/tests/test_line_client_helpers.py +33 -0
- yumi_agent-0.0.1/tests/test_line_flex_builders.py +76 -0
- yumi_agent-0.0.1/tests/test_line_postback_confirm.py +24 -0
- yumi_agent-0.0.1/tests/test_line_signature.py +24 -0
- yumi_agent-0.0.1/tests/test_line_webhook_in_core.py +134 -0
- yumi_agent-0.0.1/tests/test_local_tool_timeout.py +39 -0
- yumi_agent-0.0.1/tests/test_memory_structured.py +129 -0
- yumi_agent-0.0.1/tests/test_memory_tool_persist.py +92 -0
- yumi_agent-0.0.1/tests/test_memory_tool_window.py +150 -0
- yumi_agent-0.0.1/tests/test_monitor_api.py +28 -0
- yumi_agent-0.0.1/tests/test_package_import.py +55 -0
- yumi_agent-0.0.1/tests/test_plugins_registry.py +230 -0
- yumi_agent-0.0.1/tests/test_proactive_messaging.py +647 -0
- yumi_agent-0.0.1/tests/test_prompt_http_bridge.py +46 -0
- yumi_agent-0.0.1/tests/test_provider_diagnostics_filename.py +97 -0
- yumi_agent-0.0.1/tests/test_provider_diagnostics_helpers.py +115 -0
- yumi_agent-0.0.1/tests/test_provider_error_classify.py +109 -0
- yumi_agent-0.0.1/tests/test_provider_factory_credentials.py +165 -0
- yumi_agent-0.0.1/tests/test_provider_usage_order.py +60 -0
- yumi_agent-0.0.1/tests/test_runtime_state.py +49 -0
- yumi_agent-0.0.1/tests/test_sdk_contract.py +231 -0
- yumi_agent-0.0.1/tests/test_sdk_register_mode.py +53 -0
- yumi_agent-0.0.1/tests/test_server_bind.py +48 -0
- yumi_agent-0.0.1/tests/test_setup_flow.py +1023 -0
- yumi_agent-0.0.1/tests/test_sqlite_store.py +202 -0
- yumi_agent-0.0.1/tests/test_stream_event.py +21 -0
- yumi_agent-0.0.1/tests/test_stt_api.py +171 -0
- yumi_agent-0.0.1/tests/test_stt_cloud_providers.py +85 -0
- yumi_agent-0.0.1/tests/test_telegram_timer_commands.py +23 -0
- yumi_agent-0.0.1/tests/test_timer_callback_tools.py +23 -0
- yumi_agent-0.0.1/tests/test_timer_routes.py +38 -0
- yumi_agent-0.0.1/tests/test_timer_tools.py +37 -0
- yumi_agent-0.0.1/tests/test_tool_args_normalize.py +26 -0
- yumi_agent-0.0.1/tests/test_tool_call_normalize.py +74 -0
- yumi_agent-0.0.1/tests/test_tool_name_validation.py +29 -0
- yumi_agent-0.0.1/tests/test_tool_routing.py +333 -0
- yumi_agent-0.0.1/tests/test_tool_trace.py +85 -0
- yumi_agent-0.0.1/tests/test_tts_cloud_providers.py +188 -0
- yumi_agent-0.0.1/tests/test_tts_dashscope.py +78 -0
- yumi_agent-0.0.1/tests/test_tts_phase1.py +84 -0
- yumi_agent-0.0.1/tests/test_tts_playback.py +92 -0
- yumi_agent-0.0.1/tests/test_tts_qwen.py +133 -0
- yumi_agent-0.0.1/tests/test_upload_filetool_boundaries.py +58 -0
- yumi_agent-0.0.1/tests/test_vision_fallback.py +32 -0
- yumi_agent-0.0.1/tests/test_voice_cloud_providers.py +195 -0
- yumi_agent-0.0.1/tests/test_voice_tts.py +34 -0
- yumi_agent-0.0.1/tests/test_web_ui_backend.py +149 -0
- yumi_agent-0.0.1/yumi/__init__.py +130 -0
- yumi_agent-0.0.1/yumi/chat.py +6 -0
- yumi_agent-0.0.1/yumi/cli/__init__.py +306 -0
- yumi_agent-0.0.1/yumi/cli/commands.py +609 -0
- yumi_agent-0.0.1/yumi/cli/registry.py +118 -0
- yumi_agent-0.0.1/yumi/cli/runners.py +1502 -0
- yumi_agent-0.0.1/yumi/cli/terminal_chat.py +412 -0
- yumi_agent-0.0.1/yumi/core/api/__init__.py +39 -0
- yumi_agent-0.0.1/yumi/core/api/__main__.py +18 -0
- yumi_agent-0.0.1/yumi/core/api/app_factory.py +320 -0
- yumi_agent-0.0.1/yumi/core/api/http_helpers.py +21 -0
- yumi_agent-0.0.1/yumi/core/api/line_webhook.py +49 -0
- yumi_agent-0.0.1/yumi/core/assets_check.py +42 -0
- yumi_agent-0.0.1/yumi/core/chatbot.py +231 -0
- yumi_agent-0.0.1/yumi/core/features/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/features/chat/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/features/chat/context.py +22 -0
- yumi_agent-0.0.1/yumi/core/features/chat/debug_trace.py +191 -0
- yumi_agent-0.0.1/yumi/core/features/chat/pipeline.py +78 -0
- yumi_agent-0.0.1/yumi/core/features/chat/router.py +68 -0
- yumi_agent-0.0.1/yumi/core/features/chat/service.py +453 -0
- yumi_agent-0.0.1/yumi/core/features/chat/trace_sink.py +120 -0
- yumi_agent-0.0.1/yumi/core/features/config/__init__.py +153 -0
- yumi_agent-0.0.1/yumi/core/features/config/connection.py +15 -0
- yumi_agent-0.0.1/yumi/core/features/config/credentials.py +263 -0
- yumi_agent-0.0.1/yumi/core/features/config/discord.py +40 -0
- yumi_agent-0.0.1/yumi/core/features/config/feature_install.py +90 -0
- yumi_agent-0.0.1/yumi/core/features/config/lan.py +15 -0
- yumi_agent-0.0.1/yumi/core/features/config/legacy.py +18 -0
- yumi_agent-0.0.1/yumi/core/features/config/line.py +74 -0
- yumi_agent-0.0.1/yumi/core/features/config/model.py +244 -0
- yumi_agent-0.0.1/yumi/core/features/config/paths.py +97 -0
- yumi_agent-0.0.1/yumi/core/features/config/router.py +382 -0
- yumi_agent-0.0.1/yumi/core/features/config/setup_wizard.py +2014 -0
- yumi_agent-0.0.1/yumi/core/features/config/store.py +358 -0
- yumi_agent-0.0.1/yumi/core/features/config/telegram.py +40 -0
- yumi_agent-0.0.1/yumi/core/features/edge/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/features/edge/api.py +313 -0
- yumi_agent-0.0.1/yumi/core/features/edge/peers.py +27 -0
- yumi_agent-0.0.1/yumi/core/features/edge/router.py +20 -0
- yumi_agent-0.0.1/yumi/core/features/health/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/features/health/router.py +23 -0
- yumi_agent-0.0.1/yumi/core/features/memory/__init__.py +0 -0
- yumi_agent-0.0.1/yumi/core/features/memory/backend.py +109 -0
- yumi_agent-0.0.1/yumi/core/features/memory/constants.py +10 -0
- yumi_agent-0.0.1/yumi/core/features/memory/context.py +244 -0
- yumi_agent-0.0.1/yumi/core/features/memory/embedding_runner.py +273 -0
- yumi_agent-0.0.1/yumi/core/features/memory/embedding_state.py +53 -0
- yumi_agent-0.0.1/yumi/core/features/memory/memory.py +750 -0
- yumi_agent-0.0.1/yumi/core/features/memory/models.py +62 -0
- yumi_agent-0.0.1/yumi/core/features/memory/prune.py +13 -0
- yumi_agent-0.0.1/yumi/core/features/memory/repos/__init__.py +26 -0
- yumi_agent-0.0.1/yumi/core/features/memory/repos/long_term.py +153 -0
- yumi_agent-0.0.1/yumi/core/features/memory/repos/messages.py +440 -0
- yumi_agent-0.0.1/yumi/core/features/memory/repos/observations.py +93 -0
- yumi_agent-0.0.1/yumi/core/features/memory/repos/sessions.py +346 -0
- yumi_agent-0.0.1/yumi/core/features/memory/repos/summaries.py +60 -0
- yumi_agent-0.0.1/yumi/core/features/memory/retrieval.py +163 -0
- yumi_agent-0.0.1/yumi/core/features/memory/router.py +162 -0
- yumi_agent-0.0.1/yumi/core/features/memory/sessions.py +26 -0
- yumi_agent-0.0.1/yumi/core/features/memory/storage.py +60 -0
- yumi_agent-0.0.1/yumi/core/features/memory/store.py +22 -0
- yumi_agent-0.0.1/yumi/core/features/memory/tool_replay.py +44 -0
- yumi_agent-0.0.1/yumi/core/features/memory/transcript.py +110 -0
- yumi_agent-0.0.1/yumi/core/features/memory/writer.py +114 -0
- yumi_agent-0.0.1/yumi/core/features/monitor/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/features/monitor/router.py +56 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/__init__.py +5 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/interaction.py +118 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/planner.py +203 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/profiles.py +45 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/prompt.py +78 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/router.py +54 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/scheduler.py +108 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/service.py +247 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/state.py +159 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/timer_tools.py +518 -0
- yumi_agent-0.0.1/yumi/core/features/proactive/tools.py +51 -0
- yumi_agent-0.0.1/yumi/core/features/prompts/__init__.py +14 -0
- yumi_agent-0.0.1/yumi/core/features/prompts/composer.py +204 -0
- yumi_agent-0.0.1/yumi/core/features/prompts/defaults.py +89 -0
- yumi_agent-0.0.1/yumi/core/features/prompts/http_bridge.py +74 -0
- yumi_agent-0.0.1/yumi/core/features/prompts/store.py +123 -0
- yumi_agent-0.0.1/yumi/core/features/stats/__init__.py +5 -0
- yumi_agent-0.0.1/yumi/core/features/stats/router.py +18 -0
- yumi_agent-0.0.1/yumi/core/features/stats/service.py +124 -0
- yumi_agent-0.0.1/yumi/core/features/stt/__init__.py +17 -0
- yumi_agent-0.0.1/yumi/core/features/stt/audio.py +65 -0
- yumi_agent-0.0.1/yumi/core/features/stt/base.py +27 -0
- yumi_agent-0.0.1/yumi/core/features/stt/dashscope_provider.py +157 -0
- yumi_agent-0.0.1/yumi/core/features/stt/factory.py +93 -0
- yumi_agent-0.0.1/yumi/core/features/stt/gemini_provider.py +98 -0
- yumi_agent-0.0.1/yumi/core/features/stt/grok_provider.py +63 -0
- yumi_agent-0.0.1/yumi/core/features/stt/openai_provider.py +65 -0
- yumi_agent-0.0.1/yumi/core/features/stt/router.py +32 -0
- yumi_agent-0.0.1/yumi/core/features/stt/types.py +14 -0
- yumi_agent-0.0.1/yumi/core/features/stt/whisper_provider.py +207 -0
- yumi_agent-0.0.1/yumi/core/features/tools/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/features/tools/router.py +118 -0
- yumi_agent-0.0.1/yumi/core/features/tts/__init__.py +13 -0
- yumi_agent-0.0.1/yumi/core/features/tts/base.py +27 -0
- yumi_agent-0.0.1/yumi/core/features/tts/dashscope_provider.py +114 -0
- yumi_agent-0.0.1/yumi/core/features/tts/factory.py +55 -0
- yumi_agent-0.0.1/yumi/core/features/tts/gemini_provider.py +143 -0
- yumi_agent-0.0.1/yumi/core/features/tts/grok_provider.py +73 -0
- yumi_agent-0.0.1/yumi/core/features/tts/openai_provider.py +82 -0
- yumi_agent-0.0.1/yumi/core/features/tts/playback.py +98 -0
- yumi_agent-0.0.1/yumi/core/features/tts/qwen_provider.py +132 -0
- yumi_agent-0.0.1/yumi/core/features/tts/reply_mode.py +26 -0
- yumi_agent-0.0.1/yumi/core/features/tts/router.py +38 -0
- yumi_agent-0.0.1/yumi/core/features/tts/system_provider.py +119 -0
- yumi_agent-0.0.1/yumi/core/features/tts/types.py +16 -0
- yumi_agent-0.0.1/yumi/core/features/uploads/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/features/uploads/multimodal/__init__.py +5 -0
- yumi_agent-0.0.1/yumi/core/features/uploads/router.py +23 -0
- yumi_agent-0.0.1/yumi/core/features/uploads/service.py +192 -0
- yumi_agent-0.0.1/yumi/core/platform/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/platform/dispatch/__init__.py +46 -0
- yumi_agent-0.0.1/yumi/core/platform/dispatch/confirmation.py +157 -0
- yumi_agent-0.0.1/yumi/core/platform/dispatch/context.py +70 -0
- yumi_agent-0.0.1/yumi/core/platform/dispatch/dispatcher.py +315 -0
- yumi_agent-0.0.1/yumi/core/platform/dispatch/edge.py +86 -0
- yumi_agent-0.0.1/yumi/core/platform/dispatch/limits.py +8 -0
- yumi_agent-0.0.1/yumi/core/platform/dispatch/local.py +35 -0
- yumi_agent-0.0.1/yumi/core/platform/dispatch/normalizer.py +75 -0
- yumi_agent-0.0.1/yumi/core/platform/dispatch/usage.py +99 -0
- yumi_agent-0.0.1/yumi/core/platform/env_load.py +18 -0
- yumi_agent-0.0.1/yumi/core/platform/exceptions.py +46 -0
- yumi_agent-0.0.1/yumi/core/platform/http/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/platform/http/dependencies.py +30 -0
- yumi_agent-0.0.1/yumi/core/platform/http/docs_middleware.py +39 -0
- yumi_agent-0.0.1/yumi/core/platform/http/events.py +129 -0
- yumi_agent-0.0.1/yumi/core/platform/http/http_errors.py +51 -0
- yumi_agent-0.0.1/yumi/core/platform/http/schemas.py +125 -0
- yumi_agent-0.0.1/yumi/core/platform/http/stream_consumer.py +108 -0
- yumi_agent-0.0.1/yumi/core/platform/http/task_logging.py +22 -0
- yumi_agent-0.0.1/yumi/core/platform/plugins/__init__.py +106 -0
- yumi_agent-0.0.1/yumi/core/platform/plugins/discovery.py +68 -0
- yumi_agent-0.0.1/yumi/core/platform/plugins/identity.py +55 -0
- yumi_agent-0.0.1/yumi/core/platform/plugins/ports.py +213 -0
- yumi_agent-0.0.1/yumi/core/platform/plugins/registry.py +163 -0
- yumi_agent-0.0.1/yumi/core/platform/plugins/single_user.py +221 -0
- yumi_agent-0.0.1/yumi/core/platform/providers/__init__.py +74 -0
- yumi_agent-0.0.1/yumi/core/platform/providers/base.py +54 -0
- yumi_agent-0.0.1/yumi/core/platform/providers/claude_provider.py +199 -0
- yumi_agent-0.0.1/yumi/core/platform/providers/diagnostics.py +293 -0
- yumi_agent-0.0.1/yumi/core/platform/providers/error_classify.py +56 -0
- yumi_agent-0.0.1/yumi/core/platform/providers/fastembed_provider.py +63 -0
- yumi_agent-0.0.1/yumi/core/platform/providers/gemini_provider.py +510 -0
- yumi_agent-0.0.1/yumi/core/platform/providers/ollama_provider.py +154 -0
- yumi_agent-0.0.1/yumi/core/platform/providers/openai_provider.py +253 -0
- yumi_agent-0.0.1/yumi/core/platform/runtime/__init__.py +21 -0
- yumi_agent-0.0.1/yumi/core/platform/runtime/accessors.py +171 -0
- yumi_agent-0.0.1/yumi/core/platform/runtime/bootstrap.py +10 -0
- yumi_agent-0.0.1/yumi/core/platform/runtime/edge_naming.py +112 -0
- yumi_agent-0.0.1/yumi/core/platform/runtime/edge_registry.py +35 -0
- yumi_agent-0.0.1/yumi/core/platform/runtime/session_locks.py +30 -0
- yumi_agent-0.0.1/yumi/core/platform/runtime/state.py +49 -0
- yumi_agent-0.0.1/yumi/core/platform/runtime/timer_registry.py +27 -0
- yumi_agent-0.0.1/yumi/core/platform/runtime/tool_catalog.py +53 -0
- yumi_agent-0.0.1/yumi/core/platform/runtime/tool_policy.py +15 -0
- yumi_agent-0.0.1/yumi/core/platform/security/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/platform/security/audit.py +14 -0
- yumi_agent-0.0.1/yumi/core/platform/security/auth.py +135 -0
- yumi_agent-0.0.1/yumi/core/platform/security/connection.py +99 -0
- yumi_agent-0.0.1/yumi/core/platform/security/http_config.py +61 -0
- yumi_agent-0.0.1/yumi/core/platform/storage/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/platform/storage/sqlite_store.py +1320 -0
- yumi_agent-0.0.1/yumi/core/platform/streaming/__init__.py +5 -0
- yumi_agent-0.0.1/yumi/core/platform/streaming/think_parser.py +83 -0
- yumi_agent-0.0.1/yumi/core/platform/timezone.py +78 -0
- yumi_agent-0.0.1/yumi/core/platform/tools/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/core/platform/tools/context_prefetch.py +128 -0
- yumi_agent-0.0.1/yumi/core/platform/tools/normalize.py +202 -0
- yumi_agent-0.0.1/yumi/core/platform/tools/routing.py +574 -0
- yumi_agent-0.0.1/yumi/core/platform/tools/tool.py +210 -0
- yumi_agent-0.0.1/yumi/core/platform/tools/trace.py +213 -0
- yumi_agent-0.0.1/yumi/core/platform/tools/validation.py +19 -0
- yumi_agent-0.0.1/yumi/demo/__init__.py +7 -0
- yumi_agent-0.0.1/yumi/demo/launcher.py +74 -0
- yumi_agent-0.0.1/yumi/demo/planner/__init__.py +13 -0
- yumi_agent-0.0.1/yumi/demo/planner/__main__.py +41 -0
- yumi_agent-0.0.1/yumi/demo/planner/app.py +650 -0
- yumi_agent-0.0.1/yumi/demo/planner/bootstrap.py +44 -0
- yumi_agent-0.0.1/yumi/demo/smart_home/__init__.py +13 -0
- yumi_agent-0.0.1/yumi/demo/smart_home/__main__.py +32 -0
- yumi_agent-0.0.1/yumi/demo/smart_home/app.py +589 -0
- yumi_agent-0.0.1/yumi/demo/smart_home/bootstrap.py +48 -0
- yumi_agent-0.0.1/yumi/discord/__init__.py +6 -0
- yumi_agent-0.0.1/yumi/discord/bot.py +619 -0
- yumi_agent-0.0.1/yumi/discord/bridge.py +16 -0
- yumi_agent-0.0.1/yumi/discord/notify.py +144 -0
- yumi_agent-0.0.1/yumi/edge/__init__.py +0 -0
- yumi_agent-0.0.1/yumi/edge/client.py +290 -0
- yumi_agent-0.0.1/yumi/edge/template/env.template +8 -0
- yumi_agent-0.0.1/yumi/edge/template/gitignore.template +16 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/README.md +88 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/cpp/README.md +116 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/cpp/yumi_setup.cpp +71 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/csharp/Program.cs +16 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/csharp/README.md +85 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/csharp/YumiSetup.cs +45 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/dart/README.md +27 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/dart/bin/yumi_edge.dart +10 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/dart/lib/yumi_setup.dart +29 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/dart/pubspec.yaml +12 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/go/README.md +83 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/go/main.go +18 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/go/yumi_setup.go +63 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/java/README.md +97 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/java/YumiEdgeMain.java +14 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/java/YumiSetup.java +44 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/kotlin/README.md +26 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/kotlin/build.gradle.kts +24 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/kotlin/settings.gradle.kts +1 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/kotlin/src/main/kotlin/io/yumi/edge/Main.kt +7 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/kotlin/src/main/kotlin/io/yumi/edge/YumiSetup.kt +32 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/python/README.md +94 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/python/__init__.py +1 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/python/yumi_sdk/__init__.py +3 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/python/yumi_setup.py +68 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/rust/Cargo.toml +12 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/rust/README.md +27 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/rust/src/main.rs +8 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/rust/src/yumi_setup.rs +39 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/swift/README.md +82 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/swift/YumiSetup.swift +49 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/swift/bundle-env.example +14 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/typescript/README.md +104 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/typescript/yumiSetup.ts +68 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/ue5/README.md +69 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/ue5/YumiSetup.cpp +33 -0
- yumi_agent-0.0.1/yumi/edge/template/yumi_tools/ue5/YumiSetup.h +22 -0
- yumi_agent-0.0.1/yumi/line/__init__.py +3 -0
- yumi_agent-0.0.1/yumi/line/bridge.py +14 -0
- yumi_agent-0.0.1/yumi/line/client.py +124 -0
- yumi_agent-0.0.1/yumi/line/flex_builders.py +318 -0
- yumi_agent-0.0.1/yumi/line/handlers.py +941 -0
- yumi_agent-0.0.1/yumi/line/notify.py +88 -0
- yumi_agent-0.0.1/yumi/line/pending.py +15 -0
- yumi_agent-0.0.1/yumi/line/server.py +61 -0
- yumi_agent-0.0.1/yumi/logging_config.py +38 -0
- yumi_agent-0.0.1/yumi/sdk/AGENTS.md +579 -0
- yumi_agent-0.0.1/yumi/sdk/README.md +86 -0
- yumi_agent-0.0.1/yumi/sdk/__init__.py +3 -0
- yumi_agent-0.0.1/yumi/sdk/cpp/CMakeLists.txt +52 -0
- yumi_agent-0.0.1/yumi/sdk/cpp/include/yumi/tool_arguments.hpp +6 -0
- yumi_agent-0.0.1/yumi/sdk/cpp/include/yumi/tool_parameter.hpp +6 -0
- yumi_agent-0.0.1/yumi/sdk/cpp/include/yumi/yumi_agent.h +94 -0
- yumi_agent-0.0.1/yumi/sdk/cpp/include/yumi/yumi_agent.hpp +1140 -0
- yumi_agent-0.0.1/yumi/sdk/cpp/src/c_api.cpp +83 -0
- yumi_agent-0.0.1/yumi/sdk/csharp/Auth.cs +143 -0
- yumi_agent-0.0.1/yumi/sdk/csharp/Connection.cs +66 -0
- yumi_agent-0.0.1/yumi/sdk/csharp/EnvParser.cs +55 -0
- yumi_agent-0.0.1/yumi/sdk/csharp/RegisterOptions.cs +78 -0
- yumi_agent-0.0.1/yumi/sdk/csharp/SchemaBuilder.cs +71 -0
- yumi_agent-0.0.1/yumi/sdk/csharp/ToolArguments.cs +49 -0
- yumi_agent-0.0.1/yumi/sdk/csharp/ToolHandler.cs +6 -0
- yumi_agent-0.0.1/yumi/sdk/csharp/ToolParameter.cs +20 -0
- yumi_agent-0.0.1/yumi/sdk/csharp/YumiAgent.cs +391 -0
- yumi_agent-0.0.1/yumi/sdk/csharp/YumiSDK.csproj +14 -0
- yumi_agent-0.0.1/yumi/sdk/dart/lib/src/agent.dart +233 -0
- yumi_agent-0.0.1/yumi/sdk/dart/lib/src/app_connect.dart +414 -0
- yumi_agent-0.0.1/yumi/sdk/dart/lib/src/auth.dart +105 -0
- yumi_agent-0.0.1/yumi/sdk/dart/lib/src/connection.dart +73 -0
- yumi_agent-0.0.1/yumi/sdk/dart/lib/src/env.dart +38 -0
- yumi_agent-0.0.1/yumi/sdk/dart/lib/src/schema.dart +74 -0
- yumi_agent-0.0.1/yumi/sdk/dart/lib/src/types.dart +124 -0
- yumi_agent-0.0.1/yumi/sdk/dart/lib/yumi_sdk.dart +5 -0
- yumi_agent-0.0.1/yumi/sdk/dart/pubspec.lock +389 -0
- yumi_agent-0.0.1/yumi/sdk/dart/pubspec.yaml +14 -0
- yumi_agent-0.0.1/yumi/sdk/dart/test/app_connect_test.dart +183 -0
- yumi_agent-0.0.1/yumi/sdk/go/agent.go +417 -0
- yumi_agent-0.0.1/yumi/sdk/go/auth.go +179 -0
- yumi_agent-0.0.1/yumi/sdk/go/connection.go +78 -0
- yumi_agent-0.0.1/yumi/sdk/go/env.go +43 -0
- yumi_agent-0.0.1/yumi/sdk/go/go.mod +5 -0
- yumi_agent-0.0.1/yumi/sdk/go/go.sum +2 -0
- yumi_agent-0.0.1/yumi/sdk/go/schema.go +88 -0
- yumi_agent-0.0.1/yumi/sdk/go/types.go +144 -0
- yumi_agent-0.0.1/yumi/sdk/java/pom.xml +41 -0
- yumi_agent-0.0.1/yumi/sdk/java/src/main/java/io/yumi/Auth.java +157 -0
- yumi_agent-0.0.1/yumi/sdk/java/src/main/java/io/yumi/Connection.java +66 -0
- yumi_agent-0.0.1/yumi/sdk/java/src/main/java/io/yumi/EnvParser.java +63 -0
- yumi_agent-0.0.1/yumi/sdk/java/src/main/java/io/yumi/RegisterOptions.java +108 -0
- yumi_agent-0.0.1/yumi/sdk/java/src/main/java/io/yumi/SchemaBuilder.java +65 -0
- yumi_agent-0.0.1/yumi/sdk/java/src/main/java/io/yumi/ToolArguments.java +45 -0
- yumi_agent-0.0.1/yumi/sdk/java/src/main/java/io/yumi/ToolHandler.java +9 -0
- yumi_agent-0.0.1/yumi/sdk/java/src/main/java/io/yumi/ToolParameter.java +27 -0
- yumi_agent-0.0.1/yumi/sdk/java/src/main/java/io/yumi/YumiAgent.java +382 -0
- yumi_agent-0.0.1/yumi/sdk/kotlin/build.gradle.kts +24 -0
- yumi_agent-0.0.1/yumi/sdk/kotlin/settings.gradle.kts +1 -0
- yumi_agent-0.0.1/yumi/sdk/kotlin/src/main/kotlin/io/yumi/sdk/Auth.kt +91 -0
- yumi_agent-0.0.1/yumi/sdk/kotlin/src/main/kotlin/io/yumi/sdk/Connection.kt +52 -0
- yumi_agent-0.0.1/yumi/sdk/kotlin/src/main/kotlin/io/yumi/sdk/Env.kt +39 -0
- yumi_agent-0.0.1/yumi/sdk/kotlin/src/main/kotlin/io/yumi/sdk/Schema.kt +50 -0
- yumi_agent-0.0.1/yumi/sdk/kotlin/src/main/kotlin/io/yumi/sdk/Types.kt +55 -0
- yumi_agent-0.0.1/yumi/sdk/kotlin/src/main/kotlin/io/yumi/sdk/YumiAgent.kt +278 -0
- yumi_agent-0.0.1/yumi/sdk/python/__init__.py +3 -0
- yumi_agent-0.0.1/yumi/sdk/python/agent_client.py +861 -0
- yumi_agent-0.0.1/yumi/sdk/rust/Cargo.toml +19 -0
- yumi_agent-0.0.1/yumi/sdk/rust/src/agent.rs +382 -0
- yumi_agent-0.0.1/yumi/sdk/rust/src/auth.rs +151 -0
- yumi_agent-0.0.1/yumi/sdk/rust/src/connection.rs +88 -0
- yumi_agent-0.0.1/yumi/sdk/rust/src/env.rs +32 -0
- yumi_agent-0.0.1/yumi/sdk/rust/src/lib.rs +46 -0
- yumi_agent-0.0.1/yumi/sdk/rust/src/schema.rs +79 -0
- yumi_agent-0.0.1/yumi/sdk/rust/src/types.rs +124 -0
- yumi_agent-0.0.1/yumi/sdk/swift/Package.swift +19 -0
- yumi_agent-0.0.1/yumi/sdk/swift/Sources/YumiSDK/ToolArguments.swift +57 -0
- yumi_agent-0.0.1/yumi/sdk/swift/Sources/YumiSDK/ToolSchema.swift +119 -0
- yumi_agent-0.0.1/yumi/sdk/swift/Sources/YumiSDK/YumiAgent.swift +558 -0
- yumi_agent-0.0.1/yumi/sdk/swift/Sources/YumiSDK/YumiAuth.swift +165 -0
- yumi_agent-0.0.1/yumi/sdk/swift/Sources/YumiSDK/YumiConnection.swift +98 -0
- yumi_agent-0.0.1/yumi/sdk/typescript/package-lock.json +83 -0
- yumi_agent-0.0.1/yumi/sdk/typescript/package.json +35 -0
- yumi_agent-0.0.1/yumi/sdk/typescript/src/YumiAgent.ts +564 -0
- yumi_agent-0.0.1/yumi/sdk/typescript/src/auth.ts +150 -0
- yumi_agent-0.0.1/yumi/sdk/typescript/src/connection.ts +62 -0
- yumi_agent-0.0.1/yumi/sdk/typescript/src/index.ts +5 -0
- yumi_agent-0.0.1/yumi/sdk/typescript/src/runtime.ts +40 -0
- yumi_agent-0.0.1/yumi/sdk/typescript/src/schema.ts +71 -0
- yumi_agent-0.0.1/yumi/sdk/typescript/src/types.ts +91 -0
- yumi_agent-0.0.1/yumi/sdk/typescript/tsconfig.json +16 -0
- yumi_agent-0.0.1/yumi/sdk/ue5/YumiSDK/Private/YumiAgent.cpp +527 -0
- yumi_agent-0.0.1/yumi/sdk/ue5/YumiSDK/Private/YumiAuth.cpp +241 -0
- yumi_agent-0.0.1/yumi/sdk/ue5/YumiSDK/Private/YumiConnection.cpp +140 -0
- yumi_agent-0.0.1/yumi/sdk/ue5/YumiSDK/Private/YumiSDKModule.cpp +3 -0
- yumi_agent-0.0.1/yumi/sdk/ue5/YumiSDK/Public/YumiAgent.h +142 -0
- yumi_agent-0.0.1/yumi/sdk/ue5/YumiSDK/Public/YumiAuth.h +44 -0
- yumi_agent-0.0.1/yumi/sdk/ue5/YumiSDK/Public/YumiConnection.h +39 -0
- yumi_agent-0.0.1/yumi/sdk/ue5/YumiSDK/YumiSDK.Build.cs +24 -0
- yumi_agent-0.0.1/yumi/telegram/__init__.py +6 -0
- yumi_agent-0.0.1/yumi/telegram/bot.py +791 -0
- yumi_agent-0.0.1/yumi/telegram/bridge.py +16 -0
- yumi_agent-0.0.1/yumi/telegram/notify.py +128 -0
- yumi_agent-0.0.1/yumi/tools/__init__.py +0 -0
- yumi_agent-0.0.1/yumi/tools/bootstrap.py +151 -0
- yumi_agent-0.0.1/yumi/tools/file_tools.py +317 -0
- yumi_agent-0.0.1/yumi/tools/web_tools.py +174 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/badge-Zg61M60X.js +1 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/bot-BsAMiwLh.js +6 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/card-MuTNl83X.js +1 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/index-B1_E8Nbv.js +360 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/index-BdLf4GLh.js +6 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/index-DXBW_Ujr.css +1 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/memory-DVgDLniJ.js +1 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/refresh-cw-ClsS-REn.js +6 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/select-CYjSsiqO.js +1 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/separator--zEjOLxO.js +1 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/settings-DzgDejAN.js +16 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/setup-XUMapcsk.js +16 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/skeleton-OxTGTpHm.js +1 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/stats-Tvn6tk-B.js +77 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/timers-CuBkwhDu.js +6 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/tools-CKZ-YMSA.js +26 -0
- yumi_agent-0.0.1/yumi/ui/static/assets/zap-lC-Vw9k0.js +6 -0
- yumi_agent-0.0.1/yumi/ui/static/favicon.svg +10 -0
- yumi_agent-0.0.1/yumi/ui/static/index.html +15 -0
- yumi_agent-0.0.1/yumi/voice/__init__.py +14 -0
- yumi_agent-0.0.1/yumi/voice/audio_source.py +107 -0
- yumi_agent-0.0.1/yumi/voice/dispatch.py +75 -0
- yumi_agent-0.0.1/yumi/voice/runtime.py +211 -0
- yumi_agent-0.0.1/yumi/voice/segmenter.py +83 -0
- yumi_agent-0.0.1/yumi/voice/wake.py +108 -0
- yumi_agent-0.0.1/yumi_agent.egg-info/PKG-INFO +288 -0
- yumi_agent-0.0.1/yumi_agent.egg-info/SOURCES.txt +486 -0
- yumi_agent-0.0.1/yumi_agent.egg-info/dependency_links.txt +1 -0
- yumi_agent-0.0.1/yumi_agent.egg-info/entry_points.txt +2 -0
- yumi_agent-0.0.1/yumi_agent.egg-info/requires.txt +41 -0
- yumi_agent-0.0.1/yumi_agent.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,242 @@
|
|
|
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.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.0.1] - Unreleased
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Brand-new web UI** — a custom React + Vite + TypeScript + Tailwind
|
|
13
|
+
single-page app (`yumi/ui/frontend/`) replacing the old Reflex UI. It ships
|
|
14
|
+
pre-built as static assets served by the core server under `/app`, so end
|
|
15
|
+
users need **no Node and no extra install** (`yumi --ui` just opens the
|
|
16
|
+
browser). Pages: Chat (streaming, tool-call cards, tool-confirmation,
|
|
17
|
+
file upload, mic input + spoken replies, sessions with pin/rename/search),
|
|
18
|
+
Tools, a Stats dashboard, tabbed Settings, Schedules, Memory search, a
|
|
19
|
+
first-run setup wizard, and a ⌘K command palette.
|
|
20
|
+
- **Persistent token-usage tracking** — each assistant turn's prompt/completion
|
|
21
|
+
tokens are recorded to SQLite (`token_usage` table) and survive restarts.
|
|
22
|
+
- **`GET /stats`** — aggregated tool, token, session, and tool-call metrics for
|
|
23
|
+
the dashboard.
|
|
24
|
+
- **`POST /tts/synthesize`** — text-to-speech for in-browser spoken replies
|
|
25
|
+
(reuses the configured TTS provider).
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- `pip install yumi-agent` now includes local FastEmbed, Whisper STT,
|
|
30
|
+
microphone wake-word dependencies, DashScope cloud STT/TTS, and the pre-built
|
|
31
|
+
web UI. Only local-GPU Qwen TTS (`[tts-local]`) remains an optional extra;
|
|
32
|
+
model weights and embedding assets are still downloaded on demand.
|
|
33
|
+
- `yumi --ui` no longer requires Node.js or a Reflex dev server; it verifies the
|
|
34
|
+
core server is running and opens the browser at its `/app` page.
|
|
35
|
+
- Default conversation context raised to 30 recent + 15 cross-session related
|
|
36
|
+
messages.
|
|
37
|
+
- Migrated PDF ingestion from the end-of-life `PyPDF2` to `pypdf`; added explicit
|
|
38
|
+
`pydantic` and `av` (PyAV) dependencies.
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- Core (agent loop + memory storage):
|
|
43
|
+
- **SQLite is now the authoritative write** for every message; the LanceDB
|
|
44
|
+
vector index is a derived, best-effort write that is rebuilt from SQLite when
|
|
45
|
+
needed — so an index hiccup can no longer lose a canonical message (the write
|
|
46
|
+
order was previously inverted).
|
|
47
|
+
- Added `Memory.rebuild_index_from_sqlite()` to drop and regenerate the LanceDB
|
|
48
|
+
query index from SQLite (e.g. after changing the embedding model, or to repair
|
|
49
|
+
drift).
|
|
50
|
+
- Removed the never-consumed `embedding_jobs` / `vector_index_records` queue
|
|
51
|
+
(it grew unbounded and was dead scaffolding; embeddings are generated inline
|
|
52
|
+
and the index is rebuilt from SQLite on demand).
|
|
53
|
+
- Chat: a malformed-tool-call retry no longer re-sends and re-persists the
|
|
54
|
+
user's message on each attempt.
|
|
55
|
+
- Pre-release hardening (web UI + voice):
|
|
56
|
+
- Cloud STT (Gemini/DashScope/Grok) now transcodes browser WebM/MP4 recordings
|
|
57
|
+
to WAV via PyAV, and the mic upload filename matches the real container
|
|
58
|
+
(Safari/iOS), so microphone input works across providers and browsers.
|
|
59
|
+
- The mic button is disabled with a hint when STT is off; spoken-reply (TTS)
|
|
60
|
+
failures now surface a toast instead of failing silently; "Test voice" saves
|
|
61
|
+
the current selection first and no longer leaks audio URLs.
|
|
62
|
+
- Added a DashScope/Qwen API-key field to Settings → Voice (previously
|
|
63
|
+
unconfigurable from the browser).
|
|
64
|
+
- Chat: collapsing the sidebar can no longer strand you with no controls; a
|
|
65
|
+
failed message reload no longer wipes the transcript; the active session
|
|
66
|
+
persists across refreshes.
|
|
67
|
+
- The Settings "Configuration Storage" note now shows the correct path
|
|
68
|
+
(`~/.yumi/config.json`), command (`yumi --config`), and an accurate
|
|
69
|
+
(non-"encrypted") description of how keys are stored.
|
|
70
|
+
- `/stats` runs off the event loop and aggregates the full trace buffer (not a
|
|
71
|
+
500-row slice); per-turn token persistence no longer reloads the full config.
|
|
72
|
+
- The UI self-hosts the Inter font (no external CDN) and code-splits routes for
|
|
73
|
+
a lighter initial load; a server-unreachable banner and a discoverable setup
|
|
74
|
+
wizard were added.
|
|
75
|
+
|
|
76
|
+
### Removed
|
|
77
|
+
|
|
78
|
+
- The Reflex web UI and the `[ui]` optional dependency extra.
|
|
79
|
+
- Windows `system` TTS now uses the built-in SAPI voice through PowerShell,
|
|
80
|
+
matching the zero-dependency spoken-reply path already available on macOS and
|
|
81
|
+
Linux.
|
|
82
|
+
|
|
83
|
+
## Development Notes - 2026-06-28
|
|
84
|
+
|
|
85
|
+
### Added
|
|
86
|
+
|
|
87
|
+
- **Cloud speech-to-text providers.** Alongside local Whisper, `stt_provider` now
|
|
88
|
+
accepts three no-download cloud backends that reuse your existing provider API
|
|
89
|
+
keys: `openai` (OpenAI transcription — `gpt-4o-mini-transcribe`,
|
|
90
|
+
`gpt-4o-transcribe`, `whisper-1`; honors `openai_base_url` for OpenAI-compatible
|
|
91
|
+
proxy / Azure endpoints), `gemini` (Gemini 2.5 models transcribe inline audio
|
|
92
|
+
via `gemini_api_key`), and `dashscope` (Qwen3-ASR `qwen3-asr-flash` via the
|
|
93
|
+
shared DashScope key). `yumi --setup` configures them; `YUMI_STT_PROVIDER`
|
|
94
|
+
accepts the new values.
|
|
95
|
+
- **OpenAI text-to-speech.** `tts_provider = openai` speaks replies through the
|
|
96
|
+
OpenAI speech API (`gpt-4o-mini-tts` / `tts-1` / `tts-1-hd`) using
|
|
97
|
+
`openai_api_key`, joining `system` / `dashscope` / `qwen`. Output is WAV so it
|
|
98
|
+
plays through the same zero-config local backends (`winsound` / `aplay` /
|
|
99
|
+
`afplay`) as the other providers.
|
|
100
|
+
- **Redesigned setup wizard.** `yumi --setup` is now a navigable,
|
|
101
|
+
alternate-screen step flow (AI model → memory → voice input → spoken replies →
|
|
102
|
+
messaging) with back/next navigation, a calm progress rail, an immediate test
|
|
103
|
+
line per feature, and on-demand extra installs. Non-interactive / piped
|
|
104
|
+
invocations degrade gracefully and cancel cleanly on closed stdin.
|
|
105
|
+
- **Missing-credential preflight.** Launching the server or a bridge surfaces any
|
|
106
|
+
configured cloud feature whose API key is absent — fatally for the chat model,
|
|
107
|
+
as a non-blocking warning for memory / voice — via `missing_credentials()`.
|
|
108
|
+
- **TTS environment overrides**: `YUMI_TTS_PROVIDER`, `YUMI_TTS_VOICE`,
|
|
109
|
+
`YUMI_TTS_MODEL`, `YUMI_TTS_LANGUAGE`, mirroring the existing `YUMI_STT_*`.
|
|
110
|
+
|
|
111
|
+
### Changed
|
|
112
|
+
|
|
113
|
+
- `rich` is now a base dependency (used for the redesigned wizard rendering).
|
|
114
|
+
|
|
115
|
+
## Development Notes - 2026-06-19
|
|
116
|
+
|
|
117
|
+
### Changed
|
|
118
|
+
|
|
119
|
+
- **Internal restructure (`yumi/core/`): platform / features split.** Modules
|
|
120
|
+
were reorganized into `yumi/core/platform/` (cross-cutting infra),
|
|
121
|
+
`yumi/core/features/<feature>/` (self-contained capabilities), and a slim
|
|
122
|
+
`yumi/core/api/` HTTP composition root, with a strict dependency rule
|
|
123
|
+
(features → platform, never the reverse) enforced by tests. The old import
|
|
124
|
+
paths were retired — no compatibility shims remain, so only the new paths are
|
|
125
|
+
importable. See `docs/MIGRATION_PLATFORM_FEATURES.md` for the full old→new map.
|
|
126
|
+
- **Batteries-included base install.** `pip install yumi-agent` now bundles the
|
|
127
|
+
LLM providers (OpenAI / Gemini / Claude, incl. DeepSeek), the Telegram +
|
|
128
|
+
Discord bridges, and file ingestion, so they work out of the box. Only heavy /
|
|
129
|
+
system-dependent features remain as extras (`[ui]`, `[stt]`, `[voice]`,
|
|
130
|
+
`[tts]`, `[tts-local]`), and `yumi --setup` offers to install those on demand
|
|
131
|
+
when you enable the feature. The now-redundant
|
|
132
|
+
`[openai]`/`[gemini]`/`[claude]`/`[deepseek]`/`[providers]`/`[telegram]`/
|
|
133
|
+
`[discord]`/`[line]`/`[files]` extras were removed (folded into the base).
|
|
134
|
+
|
|
135
|
+
### Security
|
|
136
|
+
|
|
137
|
+
- `~/.yumi/config.json` is now written atomically with `0o600` and the parent
|
|
138
|
+
directory chmod'd to `0o700` so cloud API keys, Telegram/LINE tokens, the
|
|
139
|
+
Picovoice access key, and `lan_secret` aren't readable by other local users.
|
|
140
|
+
- Built-in `read_file` / `list_files` tools default to **require_confirmation**
|
|
141
|
+
(opt out via `local_tools_always_allow`) and reject paths inside `~/.ssh`,
|
|
142
|
+
`~/.aws`, `~/.gnupg`, `~/.yumi`, plus `*.pem` / `*.key` / `id_rsa*` /
|
|
143
|
+
`authorized_keys` / `credentials` files. Mitigates prompt-injection from
|
|
144
|
+
uploaded data trying to exfiltrate local secrets.
|
|
145
|
+
- `YUMI_CORS_ORIGINS=*` combined with `_ALLOW_CREDENTIALS=true` now raises at
|
|
146
|
+
startup rather than silently demoting credentials.
|
|
147
|
+
- Provider exception text on `PUT /config/model` failure is logged
|
|
148
|
+
server-side; the HTTP response now carries a generic hint so SDK error
|
|
149
|
+
bodies (which can include URLs / partial credentials) don't leak.
|
|
150
|
+
|
|
151
|
+
### Added
|
|
152
|
+
|
|
153
|
+
- **Discord bridge**: chat with Yumi from a Discord bot — `yumi --server --discord`
|
|
154
|
+
or `yumi --discord` (gateway connection, no public URL needed). Tool confirmations
|
|
155
|
+
are Allow / Deny / Always-allow buttons; allowlist via `DISCORD_ALLOWED_USER_IDS`.
|
|
156
|
+
Ships in the base install. Joins the existing Telegram and LINE bridges.
|
|
157
|
+
- **SDK robustness (`YumiAgent`)**: logs via the `yumi.sdk` logger instead of
|
|
158
|
+
`print`; exposes `is_connected` and an optional `on_error` callback; resolves the
|
|
159
|
+
connection inside the reconnect loop so a transient connection-bootstrap failure
|
|
160
|
+
at startup no longer permanently kills the client; `register()` now raises on a
|
|
161
|
+
duplicate or empty tool name; and `yumi.run()` configures the default agent via
|
|
162
|
+
the public `run_in_background(...)` instead of touching private attributes.
|
|
163
|
+
- **Microphone wake-word voice mode**: `yumi --server --voice` (composable
|
|
164
|
+
with `--telegram`) attaches a Picovoice + faster-whisper loop. New optional
|
|
165
|
+
extras: `[voice]` (sounddevice + webrtcvad + pvporcupine) and `[stt]`
|
|
166
|
+
(faster-whisper). New config keys: `voice_owner_id`,
|
|
167
|
+
`voice_porcupine_access_key`, `voice_porcupine_keyword_path`,
|
|
168
|
+
`voice_porcupine_sensitivity`, `voice_input_device`, `voice_silence_ms`,
|
|
169
|
+
`voice_max_utterance_ms`, `voice_vad_aggressiveness`, `voice_wake_word`.
|
|
170
|
+
Environment: `YUMI_VOICE_ENABLED`, `YUMI_VOICE_OWNER_ID`, `PV_ACCESS_KEY`.
|
|
171
|
+
- **Spoken replies (text-to-speech)**: Yumi can talk back. Three backends behind
|
|
172
|
+
one provider choice — `system` (macOS `say` / Linux `espeak`, zero-dependency
|
|
173
|
+
default), `dashscope` (Qwen3-TTS via the Alibaba Cloud DashScope API), and
|
|
174
|
+
`qwen` (Qwen3-TTS run locally on a GPU). `yumi --setup` configures it (with an
|
|
175
|
+
immediate test line); `yumi --speak "..."` is a smoke test; `--server --voice`
|
|
176
|
+
speaks replies automatically; Telegram `/voice on|off` and Discord
|
|
177
|
+
`!voice on|off` switch a chat between text and audio replies. New config keys
|
|
178
|
+
`tts_provider`, `tts_voice`, `tts_model`, `tts_api_key`, `tts_language`; new
|
|
179
|
+
extras `[tts]` (DashScope) and `[tts-local]` (local qwen). Environment:
|
|
180
|
+
`DASHSCOPE_API_KEY`, `DASHSCOPE_BASE_URL`.
|
|
181
|
+
- **Proactive messaging modes**: `proactive_mode` (`off` | `smart` | `scheduled`) with `proactive_schedule_times`, `proactive_schedule_interval_minutes`, and `proactive_schedule_require_idle`. Legacy JSON without `proactive_mode` derives mode from `proactive_enabled`; `proactive_enabled` is still saved and synced from mode on load. Environment: `YUMI_PROACTIVE_MODE`, `YUMI_PROACTIVE_SCHEDULE_TIMES`, `YUMI_PROACTIVE_SCHEDULE_INTERVAL_MINUTES`, `YUMI_PROACTIVE_SCHEDULE_REQUIRE_IDLE`.
|
|
182
|
+
- **`local_timezone`** in `config.json`: IANA zone for user-facing wall time (chat clock, proactive context, proactive quiet hours, proactive daily limit calendar). Legacy JSON key `proactive_quiet_hours_timezone` is still read on load; prefer **`YUMI_LOCAL_TIMEZONE`** over `YUMI_PROACTIVE_QUIET_HOURS_TIMEZONE` at runtime.
|
|
183
|
+
- Proactive messaging: `proactive_check_interval_jitter_ratio`, `proactive_unreplied_escalation_jitter_ratio`, and `proactive_check_in_probability` for less rigid scheduling; matching `YUMI_PROACTIVE_*` environment variables.
|
|
184
|
+
|
|
185
|
+
### Fixed
|
|
186
|
+
|
|
187
|
+
- Chat **`[Current Time]`** and proactive context clocks honor **`local_timezone`** (IANA) instead of showing raw UTC when the server runs in UTC (e.g. Docker). When unset, they use the host OS local timezone.
|
|
188
|
+
- LINE webhook handler now ACKs 200 within LINE's ~1s retry window: signature
|
|
189
|
+
verification stays in the request path, but chat-turn execution runs in a
|
|
190
|
+
background task. Eliminates duplicate user messages under load.
|
|
191
|
+
- `<thinking>` / `<redacted_thinking>` parser holds back trailing `<` so a tag
|
|
192
|
+
split across stream chunks is no longer leaked as visible text.
|
|
193
|
+
- Memory `list()` (observations + long_term) now pushes the `session_id`
|
|
194
|
+
filter into the `WHERE` clause before applying `LIMIT`; busy multi-session
|
|
195
|
+
DBs no longer silently drop matching rows.
|
|
196
|
+
- `LanceDBBackend.format_timestamp` now produces UTC so it round-trips with
|
|
197
|
+
`parse_timestamp_num` (which has always interpreted the string as UTC).
|
|
198
|
+
- OpenAI streaming tool-call delta with `index=None` (older Azure / some
|
|
199
|
+
vLLM builds) no longer crashes the chunk collector.
|
|
200
|
+
- Proactive scheduler releases the session lock before sending so a real
|
|
201
|
+
user message isn't blocked behind LLM generation + inter-message delays;
|
|
202
|
+
`record_sent` uses the actual send-start time, not the pre-LLM time.
|
|
203
|
+
- Voice loop no longer leaks the Porcupine native handle when audio source
|
|
204
|
+
init fails; lifespan shutdown stops the source so the blocking executor
|
|
205
|
+
read returns immediately instead of leaving a zombie thread.
|
|
206
|
+
- Whisper provider lazy `_load_model` is now lock-guarded so two concurrent
|
|
207
|
+
first transcriptions don't both download/load the model.
|
|
208
|
+
|
|
209
|
+
## Development Notes - 2026-04-20
|
|
210
|
+
|
|
211
|
+
### Changed
|
|
212
|
+
|
|
213
|
+
- **Repository split**: this `yumi-agent` package is now the open-source single-user / LAN core. Higher-layer identity, policy, billing, and remote-pairing features live outside L1 and extend the core via the `yumi.core.platform.plugins` port system (`IdentityProvider`, `QuotaPolicy`, `BotPool`, `MemoryFactory`, `SessionScope`, `EdgeScope`, `AuditSink`, `BillingHook`, `RouteExtender`, `MiddlewareExtender`).
|
|
214
|
+
- The OSS HTTP API now boots with `single_user` defaults: requests resolve to the local identity (`_local`), there is no Bearer auth requirement, and there are no quotas, billing, or account scoping.
|
|
215
|
+
- CLI surface trimmed to `--server`, `--ui`, `--chat`, `--telegram`, `--line`, `--edge`, `--demo`, `--setup`, `--cleanup`, `--cleanup-memory`. Provisioning, migration, and public remote-access commands belong to higher layers.
|
|
216
|
+
- `yumi.core.platform.security.connection` is now LAN-only (`mode="direct"`); remote profile bootstrap, persistence, and alternate connection variants moved out of L1.
|
|
217
|
+
- `yumi.core.platform.security.auth` now exposes only `YumiLanCode` and helpers; signed Bearer tokens and refresh-token flows moved out of L1.
|
|
218
|
+
- LINE bridge (`yumi.line.handlers`, `yumi.line.bridge`) is now stateless single-user; account-linking and per-user overrides moved out of L1.
|
|
219
|
+
- Removed dependency pins on `slowapi` and `alembic` (rate-limit + DB migrations live outside L1). The optional `postgres` extra is no longer published from OSS.
|
|
220
|
+
|
|
221
|
+
### Internal
|
|
222
|
+
|
|
223
|
+
- New `yumi/core/platform/plugins/` package with `Identity`, `LOCAL_IDENTITY`, `Protocol` ports, single-user defaults, a runtime registry, and `entry_points`-based plugin discovery (`yumi.plugins` group).
|
|
224
|
+
|
|
225
|
+
## Early Development Notes
|
|
226
|
+
|
|
227
|
+
### Changed
|
|
228
|
+
|
|
229
|
+
- Internal Python layout: split user config into `yumi.core.features.config` package, prompts into `yumi.core.features.prompts`, memory helpers (`constants`, `tool_replay`, `embedding_state`), CLI as `yumi.cli` package with `terminal_chat`, streaming/error helpers, and renamed `yumi/tools/bootstrap.py` (was `setup.py`) for tool registration. User-facing HTTP routes, CLI commands, and SDKs are unchanged.
|
|
230
|
+
- Restricted default browser CORS for the core API to localhost-style origins, with explicit env vars for widening access.
|
|
231
|
+
- Refactored the core HTTP server into the `yumi.core.api` composition root, with shared HTTP infrastructure in `yumi.core.platform.http` and per-feature routers under `yumi.core.features.*`, to reduce module-level global state and improve testability.
|
|
232
|
+
- Expanded CI-safe tests: chat streaming, credential validation, CLI environment selection, edge WebSocket handshake, health endpoint, and cross-SDK contract tests (Python/Go/TypeScript/Java schema shape verification).
|
|
233
|
+
- Clarified public API stability, deployment hardening, and package metadata for external users.
|
|
234
|
+
- Replaced deprecated LanceDB `table_names()` checks with `list_tables()`-first compatibility helpers in memory storage to remove deprecation warnings on current releases.
|
|
235
|
+
- Added `build` to the development extras and documented a local pre-release smoke check for maintainers.
|
|
236
|
+
- Added `yumi --cleanup-memory` to clear persisted memory without deleting saved config, prompts, profiles, or connection codes.
|
|
237
|
+
|
|
238
|
+
## Initial Development Baseline - 2026-04-11
|
|
239
|
+
|
|
240
|
+
### Added
|
|
241
|
+
|
|
242
|
+
- Initial documented release baseline: local-first agent, CLI (`yumi`), FastAPI server, Reflex web UI, multi-language edge SDKs, HTTP API and docs.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
|
|
6
|
+
|
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
8
|
+
|
|
9
|
+
## Our standards
|
|
10
|
+
|
|
11
|
+
Examples of behavior that contributes to a positive environment:
|
|
12
|
+
|
|
13
|
+
- Demonstrating empathy and kindness toward other people
|
|
14
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
15
|
+
- Giving and gracefully accepting constructive feedback
|
|
16
|
+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
17
|
+
- Focusing on what is best not just for us as individuals, but for the overall community
|
|
18
|
+
|
|
19
|
+
Examples of unacceptable behavior:
|
|
20
|
+
|
|
21
|
+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
22
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
23
|
+
- Public or private harassment
|
|
24
|
+
- Publishing others’ private information without explicit permission
|
|
25
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
26
|
+
|
|
27
|
+
## Enforcement responsibilities
|
|
28
|
+
|
|
29
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
30
|
+
|
|
31
|
+
## Scope
|
|
32
|
+
|
|
33
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces.
|
|
34
|
+
|
|
35
|
+
## Enforcement
|
|
36
|
+
|
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at the contact method described in [SECURITY.md](SECURITY.md) (or your project’s designated contact). All complaints will be reviewed and investigated promptly and fairly.
|
|
38
|
+
|
|
39
|
+
## Attribution
|
|
40
|
+
|
|
41
|
+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1, available at
|
|
42
|
+
https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Commercial use and partnerships
|
|
2
|
+
|
|
3
|
+
Yumi is distributed under the **Apache License 2.0** (see [LICENSE](LICENSE)). That license governs use, modification, and distribution of the source code in this repository.
|
|
4
|
+
|
|
5
|
+
## If you are a business
|
|
6
|
+
|
|
7
|
+
Many companies use Apache-licensed software in products and services without a separate agreement. If you need:
|
|
8
|
+
|
|
9
|
+
- **Enterprise support**, training, or custom integration
|
|
10
|
+
- **A separate proprietary license** or **dual-licensing** discussion
|
|
11
|
+
- **Partnership** or **sponsorship** inquiries
|
|
12
|
+
|
|
13
|
+
please contact the project maintainers through the channels listed on the repository (for example, GitHub Discussions, email listed in maintainer profiles, or your company’s usual open-source contact process).
|
|
14
|
+
|
|
15
|
+
This file does **not** add restrictions beyond the Apache 2.0 license; it only points to where commercial conversations can start.
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Contributing to Yumi
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing. This document describes how to set up a development environment, run tests, and submit changes.
|
|
4
|
+
|
|
5
|
+
## Development setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# After forking, replace <your-user> with your GitHub username:
|
|
9
|
+
git clone https://github.com/<your-user>/yumi-agent.git
|
|
10
|
+
cd yumi-agent
|
|
11
|
+
python -m venv .venv
|
|
12
|
+
source .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
13
|
+
pip install -e ".[dev]"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Optional: install [pre-commit](https://pre-commit.com/) hooks after cloning:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pre-commit install
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Running tests
|
|
23
|
+
|
|
24
|
+
See [docs/TESTING.md](docs/TESTING.md) for context. From the repository root:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pytest
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
CI (see [.github/workflows/ci.yml](.github/workflows/ci.yml)) runs on each push and PR: Python (`compileall`, `ruff` check + format check, `pytest`, `pytest --cov=yumi.core.api`, `pyright`), plus TypeScript, C++, Go, Swift, Java, Rust, Kotlin, Dart, and C# SDK builds.
|
|
31
|
+
|
|
32
|
+
The canonical upstream for issues and PRs is [github.com/wenxijiao/yumi-agent](https://github.com/wenxijiao/yumi-agent) (use your fork’s `git clone` URL locally as above).
|
|
33
|
+
|
|
34
|
+
## Releases (PyPI & npm)
|
|
35
|
+
|
|
36
|
+
Maintainers can publish **after** bumping versions in [`pyproject.toml`](pyproject.toml) (Python) and [`yumi/sdk/typescript/package.json`](yumi/sdk/typescript/package.json) (TypeScript) to match the git tag.
|
|
37
|
+
|
|
38
|
+
Before pushing a release tag, run a local smoke check from a fresh `.[dev]` environment:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pytest
|
|
42
|
+
python -m build
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
1. Create an annotated tag: `git tag -a v0.0.1 -m "v0.0.1"` and `git push origin v0.0.1`.
|
|
46
|
+
2. Configure PyPI **Trusted Publishing** for this repository and workflow file (`release.yml`) with the `pypi` and `testpypi` GitHub environments. The Python publish job uses OIDC, so there is no long-lived PyPI API token to store.
|
|
47
|
+
3. Configure repository **Secrets**:
|
|
48
|
+
- `NPM_TOKEN` — [npm automation token](https://docs.npmjs.com/creating-and-viewing-access-tokens) with publish rights for `yumi-sdk`.
|
|
49
|
+
4. The [Release workflow](.github/workflows/release.yml) runs on `v*` tags: builds the Python wheel/sdist and publishes to PyPI, and publishes the TypeScript package to npm. The npm job is skipped if `NPM_TOKEN` is missing.
|
|
50
|
+
|
|
51
|
+
Forks and contributors without the publish environment or npm secret will not run the publish steps.
|
|
52
|
+
|
|
53
|
+
## Repository administration (maintainers)
|
|
54
|
+
|
|
55
|
+
Settings to apply in the GitHub web UI after forking or migrating the repository:
|
|
56
|
+
|
|
57
|
+
**About panel** — keep the description as `One API to let AI call functions in any language, on any device.` and use the topics:
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
ai-agent, tool-calling, multi-language, edge-computing, llm, iot,
|
|
61
|
+
function-calling, raspberry-pi, swift, typescript, cpp, python,
|
|
62
|
+
ai-tools, websocket, local-first
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Social preview** — `assets/social-preview.png` is embedded in [`README.md`](README.md) for the project home page, but GitHub does **not** read social previews from the repo automatically. For link unfurls on social platforms, also upload it manually under **Settings → General → Social preview → Edit → Upload an image**.
|
|
66
|
+
|
|
67
|
+
**Recommended toggles:**
|
|
68
|
+
|
|
69
|
+
- **Releases** — create one for each version tag (`v0.0.1`, etc.).
|
|
70
|
+
- **Discussions** — enable for community Q&A.
|
|
71
|
+
- **Wiki** — disable (documentation lives in [`docs/`](docs/)).
|
|
72
|
+
- **Sponsorship** — enable if applicable.
|
|
73
|
+
- **Pages** — optional landing page using `docs/` content.
|
|
74
|
+
|
|
75
|
+
## Code style
|
|
76
|
+
|
|
77
|
+
- Prefer matching existing patterns in the file you edit.
|
|
78
|
+
- Python 3.10+ type hints (`str | None` instead of `Optional[str]` where consistent).
|
|
79
|
+
- Run `ruff check yumi tests` and `ruff format yumi tests` if configured (see `.pre-commit-config.yaml`).
|
|
80
|
+
|
|
81
|
+
## Compatibility expectations
|
|
82
|
+
|
|
83
|
+
- Treat the `yumi` CLI, documented HTTP API, and generated SDK templates as the main user-facing surfaces.
|
|
84
|
+
- Avoid adding undocumented dependencies on internal modules such as `yumi.core.*` unless the change is clearly marked as internal-only.
|
|
85
|
+
- If a change affects a public workflow or contract, update `README.md`, `docs/HTTP_API.md`, and `CHANGELOG.md` in the same PR.
|
|
86
|
+
|
|
87
|
+
## What not to commit
|
|
88
|
+
|
|
89
|
+
Do **not** commit:
|
|
90
|
+
|
|
91
|
+
- `__pycache__/`, `*.pyc`, `*.pyo`
|
|
92
|
+
- `.venv/`, local IDE-only paths
|
|
93
|
+
- `*.egg-info/` (generated by editable installs)
|
|
94
|
+
- Build artifacts under `yumi/ui/.web/`, `yumi/sdk/**/node_modules/`, `yumi/sdk/cpp/build/`, etc. (see [.gitignore](.gitignore))
|
|
95
|
+
|
|
96
|
+
If you accidentally committed generated files, remove them from the index with `git rm --cached <path>` and ensure they are listed in `.gitignore`.
|
|
97
|
+
|
|
98
|
+
## Issues before pull requests
|
|
99
|
+
|
|
100
|
+
For **non-trivial** changes (new features, public API changes, refactors, or anything that needs design discussion), **open an issue first** and describe the problem or proposal. Link that issue from your pull request so maintainers can triage and avoid duplicate work.
|
|
101
|
+
|
|
102
|
+
Small, obvious fixes (typos, clear one-line bugs, documentation corrections) may go straight to a pull request without a prior issue.
|
|
103
|
+
|
|
104
|
+
## Pull requests
|
|
105
|
+
|
|
106
|
+
1. Fork the repository and create a branch from `main`.
|
|
107
|
+
2. Make focused changes; prefer one logical concern per PR when possible.
|
|
108
|
+
3. Add or update tests when you change behavior.
|
|
109
|
+
4. Describe **what** changed and **why** in the PR description.
|
|
110
|
+
|
|
111
|
+
## Community standards
|
|
112
|
+
|
|
113
|
+
Please read [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
|
114
|
+
|
|
115
|
+
## Security issues
|
|
116
|
+
|
|
117
|
+
Do **not** open a public issue for security vulnerabilities. See [SECURITY.md](SECURITY.md).
|
|
118
|
+
|
|
119
|
+
## SDKs (Go, Swift, Java, C++, TypeScript)
|
|
120
|
+
|
|
121
|
+
- **Go / Java / C++ / TypeScript** SDKs are built on Linux in CI.
|
|
122
|
+
- **Swift** SDK is built on a **macOS** runner (Package platforms include Apple OSes).
|
|
123
|
+
- **Unreal Engine (UE5)** modules require a local UE installation; CI does not compile UE5. See [yumi/sdk/README.md](yumi/sdk/README.md).
|
yumi_agent-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
include CHANGELOG.md
|
|
2
|
+
include CODE_OF_CONDUCT.md
|
|
3
|
+
include COMMERCIAL.md
|
|
4
|
+
include CONTRIBUTING.md
|
|
5
|
+
include SECURITY.md
|
|
6
|
+
include llms.txt
|
|
7
|
+
graft assets
|
|
8
|
+
graft docs
|
|
9
|
+
# Ship the pre-built web UI; exclude its source/build toolchain.
|
|
10
|
+
graft yumi/ui/static
|
|
11
|
+
prune yumi/ui/frontend/node_modules
|
|
12
|
+
prune yumi/ui/frontend/dist
|
|
13
|
+
prune yumi/ui/__pycache__
|
|
14
|
+
prune yumi/sdk/typescript/node_modules
|
|
15
|
+
prune yumi/sdk/typescript/dist
|
|
16
|
+
prune yumi/sdk/swift/.build
|
|
17
|
+
prune yumi/sdk/swift/.swiftpm
|
|
18
|
+
prune yumi/sdk/java/target
|
|
19
|
+
prune yumi/sdk/csharp/bin
|
|
20
|
+
prune yumi/sdk/csharp/obj
|
|
21
|
+
prune _enterprise_seed
|
|
22
|
+
global-exclude *.py[cod]
|
|
23
|
+
global-exclude .DS_Store
|