neobot-app 1.0.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.
- neobot_app-1.0.0/PKG-INFO +47 -0
- neobot_app-1.0.0/README.md +0 -0
- neobot_app-1.0.0/pyproject.toml +85 -0
- neobot_app-1.0.0/pyproject.toml.orig +73 -0
- neobot_app-1.0.0/src/neobot_app/__init__.py +2 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/__init__.py +1 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/contracts.py +50 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/delegation.py +558 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/goal_driver.py +398 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/invocation.py +36 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/lsp.py +417 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/lsp_defaults.py +67 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/modes.py +34 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/permissions.py +32 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/processes.py +745 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/ptc.py +633 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/runtime.py +370 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/state.py +609 -0
- neobot_app-1.0.0/src/neobot_app/agent_tools/web.py +155 -0
- neobot_app-1.0.0/src/neobot_app/agents/__init__.py +19 -0
- neobot_app-1.0.0/src/neobot_app/agents/problem_solver.py +1637 -0
- neobot_app-1.0.0/src/neobot_app/agents/self_heal.py +1819 -0
- neobot_app-1.0.0/src/neobot_app/analysis/__init__.py +1 -0
- neobot_app-1.0.0/src/neobot_app/analysis/agent_spec.py +145 -0
- neobot_app-1.0.0/src/neobot_app/analysis/prompt_analysis.py +188 -0
- neobot_app-1.0.0/src/neobot_app/assembly/__init__.py +5 -0
- neobot_app-1.0.0/src/neobot_app/assembly/adapter.py +101 -0
- neobot_app-1.0.0/src/neobot_app/assembly/agents.py +62 -0
- neobot_app-1.0.0/src/neobot_app/assembly/memory.py +46 -0
- neobot_app-1.0.0/src/neobot_app/assembly/sandbox.py +61 -0
- neobot_app-1.0.0/src/neobot_app/assembly/storage.py +16 -0
- neobot_app-1.0.0/src/neobot_app/audio/__init__.py +4 -0
- neobot_app-1.0.0/src/neobot_app/audio/tts.py +307 -0
- neobot_app-1.0.0/src/neobot_app/audio/volcengine_tts.py +155 -0
- neobot_app-1.0.0/src/neobot_app/bootstrap/__init__.py +1550 -0
- neobot_app-1.0.0/src/neobot_app/bootstrap/_commands.py +142 -0
- neobot_app-1.0.0/src/neobot_app/bootstrap/_config.py +22 -0
- neobot_app-1.0.0/src/neobot_app/bootstrap/_pipeline.py +419 -0
- neobot_app-1.0.0/src/neobot_app/bootstrap/_providers.py +121 -0
- neobot_app-1.0.0/src/neobot_app/bootstrap/_runtime.py +453 -0
- neobot_app-1.0.0/src/neobot_app/bootstrap/_services.py +404 -0
- neobot_app-1.0.0/src/neobot_app/bootstrap/_skills.py +191 -0
- neobot_app-1.0.0/src/neobot_app/bootstrap/_standby_runtime.py +377 -0
- neobot_app-1.0.0/src/neobot_app/bootstrap/_usage.py +38 -0
- neobot_app-1.0.0/src/neobot_app/bot_detect.py +54 -0
- neobot_app-1.0.0/src/neobot_app/browser/__init__.py +452 -0
- neobot_app-1.0.0/src/neobot_app/browser/agent_browser/__init__.py +12 -0
- neobot_app-1.0.0/src/neobot_app/browser/agent_browser/actions.py +961 -0
- neobot_app-1.0.0/src/neobot_app/browser/agent_browser/manager.py +2262 -0
- neobot_app-1.0.0/src/neobot_app/browser/agent_browser/snapshot.py +251 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/__init__.py +17 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/__init__.py +411 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/api.py +2787 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/archives.py +312 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/config.py +134 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/config_manager.py +1621 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/hot_reload.py +126 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/metrics.py +328 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/model_probe.py +324 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/plugin.toml +50 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/plugin_config.py +431 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/prompt_admin.py +295 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/scheduled_admin.py +108 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/security.py +303 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/server.py +752 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/status_card.py +583 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/system.py +113 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/web/assets/index-DMtjnnt6.js +280 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/web/assets/index-Dmvy4ty7.css +1 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/web/image/background.webp +0 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/web/image/icon.webp +0 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/web/image/licon.webp +0 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/web/index.html +14 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/dashboard/web_extension.py +29 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/__init__.py +1350 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/art.py +637 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/assets/fonts/FusionPixel8px-zh_hans.woff2 +0 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/assets/fonts/LICENSE-FusionPixel-OFL.txt +96 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/assets/fonts/LICENSE-FusionPixel.txt +93 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/assets/fonts/LICENSE-Monocraft.txt +93 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/assets/fonts/Monocraft-Bold.ttf +0 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/assets/fonts/Monocraft-Regular.ttf +0 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/assets/fonts/README.md +41 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/avatars.py +167 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/config.py +197 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/games/__init__.py +190 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/games/bottle.py +454 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/games/checkin.py +211 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/games/chengyu.py +483 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/games/fortune.py +260 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/migrations.py +130 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/models.py +129 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/plugin.toml +62 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/service.py +722 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/minigame/themes.py +552 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/__init__.py +220 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/api.py +342 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/config.py +89 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/migrations.py +55 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/minigames.py +144 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/models.py +45 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/plugin.toml +38 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/web/assets/game-BWwcMgJi.js +4642 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/web/assets/index-BQVcQ7rm.js +1 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/web/assets/index-vN4UgA6a.css +1 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/web/index.html +22 -0
- neobot_app-1.0.0/src/neobot_app/builtin_plugins/starship/web_extension.py +150 -0
- neobot_app-1.0.0/src/neobot_app/cache/__init__.py +25 -0
- neobot_app-1.0.0/src/neobot_app/cache/calculator.py +380 -0
- neobot_app-1.0.0/src/neobot_app/cli.py +1069 -0
- neobot_app-1.0.0/src/neobot_app/commands/__init__.py +34 -0
- neobot_app-1.0.0/src/neobot_app/commands/builtin.py +715 -0
- neobot_app-1.0.0/src/neobot_app/commands/model.py +121 -0
- neobot_app-1.0.0/src/neobot_app/commands/permissions.py +66 -0
- neobot_app-1.0.0/src/neobot_app/commands/registry.py +79 -0
- neobot_app-1.0.0/src/neobot_app/commands/service.py +443 -0
- neobot_app-1.0.0/src/neobot_app/config/__init__.py +4 -0
- neobot_app-1.0.0/src/neobot_app/config/availability.py +121 -0
- neobot_app-1.0.0/src/neobot_app/config/chat_writer.py +238 -0
- neobot_app-1.0.0/src/neobot_app/config/hot_reload.py +210 -0
- neobot_app-1.0.0/src/neobot_app/config/instance.py +18 -0
- neobot_app-1.0.0/src/neobot_app/config/loader/__init__.py +3 -0
- neobot_app-1.0.0/src/neobot_app/config/loader/backup.py +59 -0
- neobot_app-1.0.0/src/neobot_app/config/loader/converter.py +536 -0
- neobot_app-1.0.0/src/neobot_app/config/loader/env.py +114 -0
- neobot_app-1.0.0/src/neobot_app/config/loader/manager.py +655 -0
- neobot_app-1.0.0/src/neobot_app/config/migrations.py +207 -0
- neobot_app-1.0.0/src/neobot_app/config/model_params.py +503 -0
- neobot_app-1.0.0/src/neobot_app/config/models.py +52 -0
- neobot_app-1.0.0/src/neobot_app/config/plugin_config_migration.py +156 -0
- neobot_app-1.0.0/src/neobot_app/config/proxy.py +65 -0
- neobot_app-1.0.0/src/neobot_app/config/schemas/__init__.py +44 -0
- neobot_app-1.0.0/src/neobot_app/config/schemas/bot.py +1938 -0
- neobot_app-1.0.0/src/neobot_app/config/schemas/env.py +158 -0
- neobot_app-1.0.0/src/neobot_app/core/__init__.py +31 -0
- neobot_app-1.0.0/src/neobot_app/core/constants.py +52 -0
- neobot_app-1.0.0/src/neobot_app/core/file_server.py +406 -0
- neobot_app-1.0.0/src/neobot_app/core/paths.py +52 -0
- neobot_app-1.0.0/src/neobot_app/credentials/__init__.py +43 -0
- neobot_app-1.0.0/src/neobot_app/credentials/model.py +77 -0
- neobot_app-1.0.0/src/neobot_app/credentials/service.py +224 -0
- neobot_app-1.0.0/src/neobot_app/database/__init__.py +11 -0
- neobot_app-1.0.0/src/neobot_app/database/chatstream.py +691 -0
- neobot_app-1.0.0/src/neobot_app/drawing/__init__.py +25 -0
- neobot_app-1.0.0/src/neobot_app/drawing/config.py +63 -0
- neobot_app-1.0.0/src/neobot_app/drawing/manager.py +653 -0
- neobot_app-1.0.0/src/neobot_app/drawing/service.py +2017 -0
- neobot_app-1.0.0/src/neobot_app/drawing/tasks.py +34 -0
- neobot_app-1.0.0/src/neobot_app/emoji/__init__.py +5 -0
- neobot_app-1.0.0/src/neobot_app/emoji/mapping.py +327 -0
- neobot_app-1.0.0/src/neobot_app/emoji/service.py +966 -0
- neobot_app-1.0.0/src/neobot_app/favorability.py +52 -0
- neobot_app-1.0.0/src/neobot_app/image/__init__.py +5 -0
- neobot_app-1.0.0/src/neobot_app/image/parser.py +503 -0
- neobot_app-1.0.0/src/neobot_app/image/source.py +613 -0
- neobot_app-1.0.0/src/neobot_app/image_pool.py +119 -0
- neobot_app-1.0.0/src/neobot_app/indexer.py +106 -0
- neobot_app-1.0.0/src/neobot_app/message/__init__.py +0 -0
- neobot_app-1.0.0/src/neobot_app/message/fast_reply_keywords.py +165 -0
- neobot_app-1.0.0/src/neobot_app/message/image_pipeline.py +192 -0
- neobot_app-1.0.0/src/neobot_app/message/numbering.py +357 -0
- neobot_app-1.0.0/src/neobot_app/message/process.py +428 -0
- neobot_app-1.0.0/src/neobot_app/message/queue.py +1484 -0
- neobot_app-1.0.0/src/neobot_app/observability/__init__.py +0 -0
- neobot_app-1.0.0/src/neobot_app/observability/context_recorder.py +318 -0
- neobot_app-1.0.0/src/neobot_app/observability/debug.py +372 -0
- neobot_app-1.0.0/src/neobot_app/observability/logging.py +340 -0
- neobot_app-1.0.0/src/neobot_app/observability/output.py +64 -0
- neobot_app-1.0.0/src/neobot_app/observability/prompt_diff.py +273 -0
- neobot_app-1.0.0/src/neobot_app/panel_auth.py +240 -0
- neobot_app-1.0.0/src/neobot_app/panel_web.py +112 -0
- neobot_app-1.0.0/src/neobot_app/prompt/__init__.py +25 -0
- neobot_app-1.0.0/src/neobot_app/prompt/builder.py +597 -0
- neobot_app-1.0.0/src/neobot_app/prompt/keyword_reaction.py +235 -0
- neobot_app-1.0.0/src/neobot_app/prompt/render.py +47 -0
- neobot_app-1.0.0/src/neobot_app/prompt/role_messages.py +263 -0
- neobot_app-1.0.0/src/neobot_app/prompt/store.py +508 -0
- neobot_app-1.0.0/src/neobot_app/prompt/templates/prompts.toml +475 -0
- neobot_app-1.0.0/src/neobot_app/py.typed +0 -0
- neobot_app-1.0.0/src/neobot_app/reply/__init__.py +8 -0
- neobot_app-1.0.0/src/neobot_app/reply/_utils.py +44 -0
- neobot_app-1.0.0/src/neobot_app/reply/debug.py +86 -0
- neobot_app-1.0.0/src/neobot_app/reply/event.py +70 -0
- neobot_app-1.0.0/src/neobot_app/reply/flow_registry.py +326 -0
- neobot_app-1.0.0/src/neobot_app/reply/markdown_image.py +400 -0
- neobot_app-1.0.0/src/neobot_app/reply/orchestrator.py +4861 -0
- neobot_app-1.0.0/src/neobot_app/reply/output_guard.py +436 -0
- neobot_app-1.0.0/src/neobot_app/reply/postprocess.py +319 -0
- neobot_app-1.0.0/src/neobot_app/reply/sender.py +875 -0
- neobot_app-1.0.0/src/neobot_app/reply/tools.py +2688 -0
- neobot_app-1.0.0/src/neobot_app/reply/vision_context.py +117 -0
- neobot_app-1.0.0/src/neobot_app/runtime/__init__.py +28 -0
- neobot_app-1.0.0/src/neobot_app/runtime/adapter_supervisor.py +166 -0
- neobot_app-1.0.0/src/neobot_app/runtime/agent_file_tools.py +424 -0
- neobot_app-1.0.0/src/neobot_app/runtime/application.py +563 -0
- neobot_app-1.0.0/src/neobot_app/runtime/archive_memory_summary.py +2144 -0
- neobot_app-1.0.0/src/neobot_app/runtime/avatar_store.py +557 -0
- neobot_app-1.0.0/src/neobot_app/runtime/browser_lifecycle.py +223 -0
- neobot_app-1.0.0/src/neobot_app/runtime/connection_readiness.py +122 -0
- neobot_app-1.0.0/src/neobot_app/runtime/event_context.py +58 -0
- neobot_app-1.0.0/src/neobot_app/runtime/event_pipeline.py +1613 -0
- neobot_app-1.0.0/src/neobot_app/runtime/gateway.py +153 -0
- neobot_app-1.0.0/src/neobot_app/runtime/help_cache.py +484 -0
- neobot_app-1.0.0/src/neobot_app/runtime/help_card.py +340 -0
- neobot_app-1.0.0/src/neobot_app/runtime/hot_reload_registry.py +214 -0
- neobot_app-1.0.0/src/neobot_app/runtime/html_card.py +1832 -0
- neobot_app-1.0.0/src/neobot_app/runtime/inbound_pipeline.py +54 -0
- neobot_app-1.0.0/src/neobot_app/runtime/lifecycle_handler.py +30 -0
- neobot_app-1.0.0/src/neobot_app/runtime/message_context.py +21 -0
- neobot_app-1.0.0/src/neobot_app/runtime/notice_handler.py +13 -0
- neobot_app-1.0.0/src/neobot_app/runtime/notifications.py +344 -0
- neobot_app-1.0.0/src/neobot_app/runtime/onebot_request_handler.py +22 -0
- neobot_app-1.0.0/src/neobot_app/runtime/plugin_config_reload.py +199 -0
- neobot_app-1.0.0/src/neobot_app/runtime/process_restart.py +54 -0
- neobot_app-1.0.0/src/neobot_app/runtime/provider_reload.py +125 -0
- neobot_app-1.0.0/src/neobot_app/runtime/reply_block.py +108 -0
- neobot_app-1.0.0/src/neobot_app/runtime/sandbox_lock.py +83 -0
- neobot_app-1.0.0/src/neobot_app/runtime/sandbox_maintenance.py +529 -0
- neobot_app-1.0.0/src/neobot_app/runtime/sandbox_service.py +544 -0
- neobot_app-1.0.0/src/neobot_app/runtime/scheduled_tasks.py +888 -0
- neobot_app-1.0.0/src/neobot_app/runtime/sleep_service.py +307 -0
- neobot_app-1.0.0/src/neobot_app/runtime/standby_service.py +389 -0
- neobot_app-1.0.0/src/neobot_app/runtime/temp_cleaner.py +191 -0
- neobot_app-1.0.0/src/neobot_app/screenshot.py +413 -0
- neobot_app-1.0.0/src/neobot_app/skills/__init__.py +430 -0
- neobot_app-1.0.0/src/neobot_app/skills/activation.py +196 -0
- neobot_app-1.0.0/src/neobot_app/skills/adaptive_prompt_skill.py +157 -0
- neobot_app-1.0.0/src/neobot_app/skills/agent_delegation.py +100 -0
- neobot_app-1.0.0/src/neobot_app/skills/agent_tools_packages.py +119 -0
- neobot_app-1.0.0/src/neobot_app/skills/agent_tools_skill.py +75 -0
- neobot_app-1.0.0/src/neobot_app/skills/agent_toolset.py +57 -0
- neobot_app-1.0.0/src/neobot_app/skills/archive_crud.py +990 -0
- neobot_app-1.0.0/src/neobot_app/skills/archive_skill.py +312 -0
- neobot_app-1.0.0/src/neobot_app/skills/background_trigger.py +166 -0
- neobot_app-1.0.0/src/neobot_app/skills/balance_guide.py +145 -0
- neobot_app-1.0.0/src/neobot_app/skills/balance_query_skill.py +165 -0
- neobot_app-1.0.0/src/neobot_app/skills/balance_skill.py +94 -0
- neobot_app-1.0.0/src/neobot_app/skills/base.py +706 -0
- neobot_app-1.0.0/src/neobot_app/skills/birthday_skill.py +241 -0
- neobot_app-1.0.0/src/neobot_app/skills/browser_network_skill.py +333 -0
- neobot_app-1.0.0/src/neobot_app/skills/browser_skill.py +644 -0
- neobot_app-1.0.0/src/neobot_app/skills/browser_video_skill.py +145 -0
- neobot_app-1.0.0/src/neobot_app/skills/chat_history.py +202 -0
- neobot_app-1.0.0/src/neobot_app/skills/credential_skill.py +175 -0
- neobot_app-1.0.0/src/neobot_app/skills/cross_chat_skill.py +478 -0
- neobot_app-1.0.0/src/neobot_app/skills/drawing_skill.py +451 -0
- neobot_app-1.0.0/src/neobot_app/skills/emoji_management.py +269 -0
- neobot_app-1.0.0/src/neobot_app/skills/favorability.py +101 -0
- neobot_app-1.0.0/src/neobot_app/skills/file_storage_skill.py +366 -0
- neobot_app-1.0.0/src/neobot_app/skills/forward_message.py +88 -0
- neobot_app-1.0.0/src/neobot_app/skills/friend_management.py +134 -0
- neobot_app-1.0.0/src/neobot_app/skills/gallery_skill.py +397 -0
- neobot_app-1.0.0/src/neobot_app/skills/gift_skill.py +493 -0
- neobot_app-1.0.0/src/neobot_app/skills/group_management.py +214 -0
- neobot_app-1.0.0/src/neobot_app/skills/image_context_skill.py +468 -0
- neobot_app-1.0.0/src/neobot_app/skills/image_parse_skill.py +991 -0
- neobot_app-1.0.0/src/neobot_app/skills/image_pool_skill.py +275 -0
- neobot_app-1.0.0/src/neobot_app/skills/image_send.py +147 -0
- neobot_app-1.0.0/src/neobot_app/skills/reminder_skill.py +455 -0
- neobot_app-1.0.0/src/neobot_app/skills/sandbox_maintenance_skill.py +182 -0
- neobot_app-1.0.0/src/neobot_app/skills/sandbox_manager_skill.py +983 -0
- neobot_app-1.0.0/src/neobot_app/skills/sleep_skill.py +138 -0
- neobot_app-1.0.0/src/neobot_app/skills/sticker_skill.py +83 -0
- neobot_app-1.0.0/src/neobot_app/skills/user_profile.py +173 -0
- neobot_app-1.0.0/src/neobot_app/skills/vision_detect_skill.py +227 -0
- neobot_app-1.0.0/src/neobot_app/skills/willingness_skill.py +224 -0
- neobot_app-1.0.0/src/neobot_app/statistics/__init__.py +21 -0
- neobot_app-1.0.0/src/neobot_app/statistics/balance.py +132 -0
- neobot_app-1.0.0/src/neobot_app/statistics/billing.py +978 -0
- neobot_app-1.0.0/src/neobot_app/statistics/reporter.py +194 -0
- neobot_app-1.0.0/src/neobot_app/statistics/templates/deepseek_peak_valley.py +38 -0
- neobot_app-1.0.0/src/neobot_app/statistics/templates/per_call.py +16 -0
- neobot_app-1.0.0/src/neobot_app/statistics/tracker.py +241 -0
- neobot_app-1.0.0/src/neobot_app/time_context.py +143 -0
- neobot_app-1.0.0/src/neobot_app/user_profiles.py +862 -0
- neobot_app-1.0.0/src/neobot_app/utils/__init__.py +0 -0
- neobot_app-1.0.0/src/neobot_app/utils/atomic.py +55 -0
- neobot_app-1.0.0/src/neobot_app/utils/data_sync.py +54 -0
- neobot_app-1.0.0/src/neobot_app/utils/file_helper.py +36 -0
- neobot_app-1.0.0/src/neobot_app/utils/formater.py +33 -0
- neobot_app-1.0.0/src/neobot_app/utils/http.py +123 -0
- neobot_app-1.0.0/src/neobot_app/utils/image_bytes.py +28 -0
- neobot_app-1.0.0/src/neobot_app/utils/logger.py +19 -0
- neobot_app-1.0.0/src/neobot_app/utils/media_sender.py +92 -0
- neobot_app-1.0.0/src/neobot_app/utils/ssrf.py +109 -0
- neobot_app-1.0.0/src/neobot_app/utils/time.py +38 -0
- neobot_app-1.0.0/src/neobot_app/vision_detect/__init__.py +17 -0
- neobot_app-1.0.0/src/neobot_app/vision_detect/engine.py +435 -0
- neobot_app-1.0.0/src/neobot_app/vision_detect/engine_torch.py +132 -0
- neobot_app-1.0.0/src/neobot_app/vision_detect/model_library.py +519 -0
- neobot_app-1.0.0/src/neobot_app/vision_detect/service.py +461 -0
- neobot_app-1.0.0/src/neobot_app/web_parser/__init__.py +19 -0
- neobot_app-1.0.0/src/neobot_app/web_parser/extractor.py +255 -0
- neobot_app-1.0.0/src/neobot_app/web_parser/models.py +60 -0
- neobot_app-1.0.0/src/neobot_app/web_parser/renderer.py +135 -0
- neobot_app-1.0.0/src/neobot_app/web_parser/structurer.py +74 -0
- neobot_app-1.0.0/src/neobot_app/web_search/__init__.py +20 -0
- neobot_app-1.0.0/src/neobot_app/web_search/engine.py +172 -0
- neobot_app-1.0.0/src/neobot_app/web_search/manager.py +151 -0
- neobot_app-1.0.0/src/neobot_app/web_search/models.py +48 -0
- neobot_app-1.0.0/src/neobot_app/web_search/session.py +351 -0
- neobot_app-1.0.0/src/neobot_app/web_search_package.py +271 -0
- neobot_app-1.0.0/src/neobot_app/willing/__init__.py +11 -0
- neobot_app-1.0.0/src/neobot_app/willing/builtin.py +118 -0
- neobot_app-1.0.0/src/neobot_app/willing/models.py +74 -0
- neobot_app-1.0.0/src/neobot_app/willing/service.py +536 -0
- neobot_app-1.0.0/src/neobot_app/willing/templates/README.md +39 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: neobot-app
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Author: wsrsq, tangtian
|
|
6
|
+
Author-email: wsrsq <wsrsq001@163.com>, tangtian <a14b@126.com>
|
|
7
|
+
Requires-Dist: aiohttp
|
|
8
|
+
Requires-Dist: beautifulsoup4>=4.12.0
|
|
9
|
+
Requires-Dist: cryptography>=46.0.0
|
|
10
|
+
Requires-Dist: ddgs>=9.0.0
|
|
11
|
+
Requires-Dist: drissionpage>=4.1
|
|
12
|
+
Requires-Dist: duckduckgo-search>=8.0.0
|
|
13
|
+
Requires-Dist: fpdf2>=2.8
|
|
14
|
+
Requires-Dist: httpx>=0.27.0
|
|
15
|
+
Requires-Dist: jsonschema>=4.23.0
|
|
16
|
+
Requires-Dist: loguru
|
|
17
|
+
Requires-Dist: lxml>=5.0.0
|
|
18
|
+
Requires-Dist: markdown>=3.10
|
|
19
|
+
Requires-Dist: markdown-it-py>=3.0
|
|
20
|
+
Requires-Dist: markdownify>=1.0.0
|
|
21
|
+
Requires-Dist: neobot-adapter
|
|
22
|
+
Requires-Dist: neobot-chat
|
|
23
|
+
Requires-Dist: neobot-contracts
|
|
24
|
+
Requires-Dist: neobot-memory
|
|
25
|
+
Requires-Dist: neobot-modloader
|
|
26
|
+
Requires-Dist: neobot-storage
|
|
27
|
+
Requires-Dist: numpy>=1.26
|
|
28
|
+
Requires-Dist: onnxruntime>=1.18.0
|
|
29
|
+
Requires-Dist: openpyxl>=3.1
|
|
30
|
+
Requires-Dist: pillow>=10.0.0
|
|
31
|
+
Requires-Dist: pillowmd>=0.7.3
|
|
32
|
+
Requires-Dist: pikepdf>=9.0
|
|
33
|
+
Requires-Dist: playwright>=1.55.0
|
|
34
|
+
Requires-Dist: pypdf>=6.7
|
|
35
|
+
Requires-Dist: python-docx>=1.1.0
|
|
36
|
+
Requires-Dist: python-dotenv>=1.2.2
|
|
37
|
+
Requires-Dist: python-lsp-server>=1.14.0,<2
|
|
38
|
+
Requires-Dist: readability-lxml>=0.8.0
|
|
39
|
+
Requires-Dist: requests>=2.32.0
|
|
40
|
+
Requires-Dist: sqlalchemy[asyncio]>=2.0
|
|
41
|
+
Requires-Dist: tomlkit
|
|
42
|
+
Requires-Dist: trafilatura>=2.0.0
|
|
43
|
+
Requires-Dist: lunarcalendar>=0.0.9
|
|
44
|
+
Requires-Dist: xlsxwriter>=3.2
|
|
45
|
+
Requires-Python: >=3.13
|
|
46
|
+
Description-Content-Type: text/markdown
|
|
47
|
+
|
|
File without changes
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "neobot-app"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.13"
|
|
7
|
+
dependencies = [
|
|
8
|
+
"aiohttp",
|
|
9
|
+
"beautifulsoup4>=4.12.0",
|
|
10
|
+
"cryptography>=46.0.0",
|
|
11
|
+
"ddgs>=9.0.0",
|
|
12
|
+
"drissionpage>=4.1",
|
|
13
|
+
"duckduckgo-search>=8.0.0",
|
|
14
|
+
"fpdf2>=2.8",
|
|
15
|
+
"httpx>=0.27.0",
|
|
16
|
+
"jsonschema>=4.23.0",
|
|
17
|
+
"loguru",
|
|
18
|
+
"lxml>=5.0.0",
|
|
19
|
+
"Markdown>=3.10",
|
|
20
|
+
"markdown-it-py>=3.0",
|
|
21
|
+
"markdownify>=1.0.0",
|
|
22
|
+
"neobot-adapter",
|
|
23
|
+
"neobot-chat",
|
|
24
|
+
"neobot-contracts",
|
|
25
|
+
"neobot-memory",
|
|
26
|
+
"neobot-modloader",
|
|
27
|
+
"neobot-storage",
|
|
28
|
+
"numpy>=1.26",
|
|
29
|
+
"onnxruntime>=1.18.0",
|
|
30
|
+
"openpyxl>=3.1",
|
|
31
|
+
"pillow>=10.0.0",
|
|
32
|
+
"pillowmd>=0.7.3",
|
|
33
|
+
"pikepdf>=9.0",
|
|
34
|
+
"playwright>=1.55.0",
|
|
35
|
+
"pypdf>=6.7",
|
|
36
|
+
"python-docx>=1.1.0",
|
|
37
|
+
"python-dotenv>=1.2.2",
|
|
38
|
+
"python-lsp-server>=1.14.0,<2",
|
|
39
|
+
"readability-lxml>=0.8.0",
|
|
40
|
+
"requests>=2.32.0",
|
|
41
|
+
"sqlalchemy[asyncio]>=2.0",
|
|
42
|
+
"tomlkit",
|
|
43
|
+
"trafilatura>=2.0.0",
|
|
44
|
+
"lunarcalendar>=0.0.9",
|
|
45
|
+
"xlsxwriter>=3.2",
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
[[project.authors]]
|
|
49
|
+
name = "wsrsq"
|
|
50
|
+
email = "wsrsq001@163.com"
|
|
51
|
+
|
|
52
|
+
[[project.authors]]
|
|
53
|
+
name = "tangtian"
|
|
54
|
+
email = "a14b@126.com"
|
|
55
|
+
|
|
56
|
+
[project.scripts]
|
|
57
|
+
neobot = "neobot_app.cli:main"
|
|
58
|
+
|
|
59
|
+
[tool.uv.sources.neobot-adapter]
|
|
60
|
+
workspace = true
|
|
61
|
+
|
|
62
|
+
[tool.uv.sources.neobot-chat]
|
|
63
|
+
workspace = true
|
|
64
|
+
|
|
65
|
+
[tool.uv.sources.neobot-contracts]
|
|
66
|
+
workspace = true
|
|
67
|
+
|
|
68
|
+
[tool.uv.sources.neobot-memory]
|
|
69
|
+
workspace = true
|
|
70
|
+
|
|
71
|
+
[tool.uv.sources.neobot-modloader]
|
|
72
|
+
workspace = true
|
|
73
|
+
|
|
74
|
+
[tool.uv.sources.neobot-storage]
|
|
75
|
+
workspace = true
|
|
76
|
+
|
|
77
|
+
[tool.uv.build-backend]
|
|
78
|
+
source-exclude = [
|
|
79
|
+
"src/neobot_app/builtin_plugins/dashboard/frontend/**",
|
|
80
|
+
"src/neobot_app/builtin_plugins/starship/frontend/**",
|
|
81
|
+
]
|
|
82
|
+
|
|
83
|
+
[build-system]
|
|
84
|
+
requires = ["uv_build>=0.9.27,<0.10.0"]
|
|
85
|
+
build-backend = "uv_build"
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "neobot-app"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "wsrsq", email = "wsrsq001@163.com" },
|
|
8
|
+
{ name = "tangtian", email = "a14b@126.com" },
|
|
9
|
+
]
|
|
10
|
+
requires-python = ">=3.13"
|
|
11
|
+
dependencies = [
|
|
12
|
+
"aiohttp",
|
|
13
|
+
"beautifulsoup4>=4.12.0",
|
|
14
|
+
"cryptography>=46.0.0",
|
|
15
|
+
"ddgs>=9.0.0",
|
|
16
|
+
"drissionpage>=4.1",
|
|
17
|
+
"duckduckgo-search>=8.0.0",
|
|
18
|
+
"fpdf2>=2.8",
|
|
19
|
+
"httpx>=0.27.0",
|
|
20
|
+
"jsonschema>=4.23.0",
|
|
21
|
+
"loguru",
|
|
22
|
+
"lxml>=5.0.0",
|
|
23
|
+
"Markdown>=3.10",
|
|
24
|
+
"markdown-it-py>=3.0",
|
|
25
|
+
"markdownify>=1.0.0",
|
|
26
|
+
"neobot-adapter",
|
|
27
|
+
"neobot-chat",
|
|
28
|
+
"neobot-contracts",
|
|
29
|
+
"neobot-memory",
|
|
30
|
+
"neobot-modloader",
|
|
31
|
+
"neobot-storage",
|
|
32
|
+
"numpy>=1.26",
|
|
33
|
+
"onnxruntime>=1.18.0",
|
|
34
|
+
"openpyxl>=3.1",
|
|
35
|
+
"pillow>=10.0.0",
|
|
36
|
+
"pillowmd>=0.7.3",
|
|
37
|
+
"pikepdf>=9.0",
|
|
38
|
+
"playwright>=1.55.0",
|
|
39
|
+
"pypdf>=6.7",
|
|
40
|
+
"python-docx>=1.1.0",
|
|
41
|
+
"python-dotenv>=1.2.2",
|
|
42
|
+
"python-lsp-server>=1.14.0,<2",
|
|
43
|
+
"readability-lxml>=0.8.0",
|
|
44
|
+
"requests>=2.32.0",
|
|
45
|
+
"sqlalchemy[asyncio]>=2.0",
|
|
46
|
+
"tomlkit",
|
|
47
|
+
"trafilatura>=2.0.0",
|
|
48
|
+
"lunarcalendar>=0.0.9",
|
|
49
|
+
"xlsxwriter>=3.2",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[project.scripts]
|
|
53
|
+
neobot = "neobot_app.cli:main"
|
|
54
|
+
|
|
55
|
+
[tool.uv.sources]
|
|
56
|
+
neobot-adapter = { workspace = true }
|
|
57
|
+
neobot-chat = { workspace = true }
|
|
58
|
+
neobot-contracts = { workspace = true }
|
|
59
|
+
neobot-memory = { workspace = true }
|
|
60
|
+
neobot-modloader = { workspace = true }
|
|
61
|
+
neobot-storage = { workspace = true }
|
|
62
|
+
|
|
63
|
+
[build-system]
|
|
64
|
+
requires = ["uv_build>=0.9.27,<0.10.0"]
|
|
65
|
+
build-backend = "uv_build"
|
|
66
|
+
|
|
67
|
+
[tool.uv.build-backend]
|
|
68
|
+
# 插件前端源码与 node_modules 不随包分发;插件目录内的构建产物 web/ 会保留,
|
|
69
|
+
# 因此部署方不需要 Node/前端工具链。
|
|
70
|
+
source-exclude = [
|
|
71
|
+
"src/neobot_app/builtin_plugins/dashboard/frontend/**",
|
|
72
|
+
"src/neobot_app/builtin_plugins/starship/frontend/**",
|
|
73
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Shared, owner-scoped tools for reply and problem-solving agents."""
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Trusted invocation context and JSON tool contracts."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@dataclass(frozen=True, slots=True)
|
|
9
|
+
class ToolContext:
|
|
10
|
+
"""Minted by the host adapter, never constructed from model arguments."""
|
|
11
|
+
|
|
12
|
+
owner: str
|
|
13
|
+
chat_flow_id: str
|
|
14
|
+
user_id: int | None = None
|
|
15
|
+
agent_id: str = "main"
|
|
16
|
+
parent_agent_id: str | None = None
|
|
17
|
+
depth: int = 0
|
|
18
|
+
human_request: bool = False
|
|
19
|
+
allowed_tools: frozenset[str] | None = None
|
|
20
|
+
|
|
21
|
+
def __post_init__(self) -> None:
|
|
22
|
+
if not self.owner or not self.chat_flow_id or ":" not in self.chat_flow_id:
|
|
23
|
+
raise ValueError("A trusted owner and canonical chat flow are required")
|
|
24
|
+
if self.depth < 0:
|
|
25
|
+
raise ValueError("depth must be non-negative")
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AgentToolError(Exception):
|
|
29
|
+
"""A program-observable tool failure with a stable code."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, code: str, message: str, *, details: dict[str, Any] | None = None) -> None:
|
|
32
|
+
super().__init__(message)
|
|
33
|
+
self.code = code
|
|
34
|
+
self.details = details or {}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def tool_definition(
|
|
38
|
+
name: str, description: str, properties: dict[str, Any] | None = None,
|
|
39
|
+
required: list[str] | None = None,
|
|
40
|
+
) -> dict[str, Any]:
|
|
41
|
+
return {
|
|
42
|
+
"type": "function",
|
|
43
|
+
"function": {
|
|
44
|
+
"name": name, "description": description,
|
|
45
|
+
"parameters": {
|
|
46
|
+
"type": "object", "properties": properties or {},
|
|
47
|
+
"required": required or [], "additionalProperties": False,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
}
|