calvyn-code 0.14.0
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.
- package/LICENSE +21 -0
- package/README.md +217 -0
- package/README.zh-CN.md +180 -0
- package/acp_adapter/__init__.py +1 -0
- package/acp_adapter/__main__.py +5 -0
- package/acp_adapter/auth.py +68 -0
- package/acp_adapter/bootstrap/__init__.py +0 -0
- package/acp_adapter/bootstrap/bootstrap_browser_tools.ps1 +288 -0
- package/acp_adapter/bootstrap/bootstrap_browser_tools.sh +399 -0
- package/acp_adapter/entry.py +292 -0
- package/acp_adapter/events.py +265 -0
- package/acp_adapter/permissions.py +148 -0
- package/acp_adapter/server.py +1713 -0
- package/acp_adapter/session.py +629 -0
- package/acp_adapter/tools.py +1180 -0
- package/agent/__init__.py +6 -0
- package/agent/__pycache__/__init__.cpython-312.pyc +0 -0
- package/agent/__pycache__/account_usage.cpython-312.pyc +0 -0
- package/agent/__pycache__/anthropic_adapter.cpython-312.pyc +0 -0
- package/agent/__pycache__/async_utils.cpython-312.pyc +0 -0
- package/agent/__pycache__/auxiliary_client.cpython-312.pyc +0 -0
- package/agent/__pycache__/codex_responses_adapter.cpython-312.pyc +0 -0
- package/agent/__pycache__/context_compressor.cpython-312.pyc +0 -0
- package/agent/__pycache__/context_engine.cpython-312.pyc +0 -0
- package/agent/__pycache__/context_references.cpython-312.pyc +0 -0
- package/agent/__pycache__/credential_pool.cpython-312.pyc +0 -0
- package/agent/__pycache__/curator.cpython-312.pyc +0 -0
- package/agent/__pycache__/display.cpython-312.pyc +0 -0
- package/agent/__pycache__/error_classifier.cpython-312.pyc +0 -0
- package/agent/__pycache__/file_safety.cpython-312.pyc +0 -0
- package/agent/__pycache__/google_code_assist.cpython-312.pyc +0 -0
- package/agent/__pycache__/google_oauth.cpython-312.pyc +0 -0
- package/agent/__pycache__/i18n.cpython-312.pyc +0 -0
- package/agent/__pycache__/image_gen_provider.cpython-312.pyc +0 -0
- package/agent/__pycache__/image_gen_registry.cpython-312.pyc +0 -0
- package/agent/__pycache__/insights.cpython-312.pyc +0 -0
- package/agent/__pycache__/lmstudio_reasoning.cpython-312.pyc +0 -0
- package/agent/__pycache__/manual_compression_feedback.cpython-312.pyc +0 -0
- package/agent/__pycache__/markdown_tables.cpython-312.pyc +0 -0
- package/agent/__pycache__/memory_manager.cpython-312.pyc +0 -0
- package/agent/__pycache__/memory_provider.cpython-312.pyc +0 -0
- package/agent/__pycache__/model_metadata.cpython-312.pyc +0 -0
- package/agent/__pycache__/models_dev.cpython-312.pyc +0 -0
- package/agent/__pycache__/moonshot_schema.cpython-312.pyc +0 -0
- package/agent/__pycache__/onboarding.cpython-312.pyc +0 -0
- package/agent/__pycache__/portal_tags.cpython-312.pyc +0 -0
- package/agent/__pycache__/prompt_builder.cpython-312.pyc +0 -0
- package/agent/__pycache__/prompt_caching.cpython-312.pyc +0 -0
- package/agent/__pycache__/redact.cpython-312.pyc +0 -0
- package/agent/__pycache__/retry_utils.cpython-312.pyc +0 -0
- package/agent/__pycache__/shell_hooks.cpython-312.pyc +0 -0
- package/agent/__pycache__/skill_commands.cpython-312.pyc +0 -0
- package/agent/__pycache__/skill_preprocessing.cpython-312.pyc +0 -0
- package/agent/__pycache__/skill_utils.cpython-312.pyc +0 -0
- package/agent/__pycache__/subdirectory_hints.cpython-312.pyc +0 -0
- package/agent/__pycache__/think_scrubber.cpython-312.pyc +0 -0
- package/agent/__pycache__/title_generator.cpython-312.pyc +0 -0
- package/agent/__pycache__/tool_guardrails.cpython-312.pyc +0 -0
- package/agent/__pycache__/tool_result_classification.cpython-312.pyc +0 -0
- package/agent/__pycache__/trajectory.cpython-312.pyc +0 -0
- package/agent/__pycache__/usage_pricing.cpython-312.pyc +0 -0
- package/agent/__pycache__/video_gen_provider.cpython-312.pyc +0 -0
- package/agent/__pycache__/video_gen_registry.cpython-312.pyc +0 -0
- package/agent/__pycache__/web_search_provider.cpython-312.pyc +0 -0
- package/agent/__pycache__/web_search_registry.cpython-312.pyc +0 -0
- package/agent/account_usage.py +326 -0
- package/agent/anthropic_adapter.py +2087 -0
- package/agent/async_utils.py +68 -0
- package/agent/auxiliary_client.py +4893 -0
- package/agent/bedrock_adapter.py +1276 -0
- package/agent/codex_responses_adapter.py +1084 -0
- package/agent/context_compressor.py +1583 -0
- package/agent/context_engine.py +211 -0
- package/agent/context_references.py +519 -0
- package/agent/copilot_acp_client.py +684 -0
- package/agent/credential_pool.py +1780 -0
- package/agent/credential_sources.py +449 -0
- package/agent/curator.py +1782 -0
- package/agent/curator_backup.py +694 -0
- package/agent/display.py +987 -0
- package/agent/error_classifier.py +1058 -0
- package/agent/file_safety.py +112 -0
- package/agent/gemini_cloudcode_adapter.py +909 -0
- package/agent/gemini_native_adapter.py +971 -0
- package/agent/gemini_schema.py +99 -0
- package/agent/google_code_assist.py +452 -0
- package/agent/google_oauth.py +1062 -0
- package/agent/i18n.py +258 -0
- package/agent/image_gen_provider.py +243 -0
- package/agent/image_gen_registry.py +145 -0
- package/agent/image_routing.py +301 -0
- package/agent/insights.py +931 -0
- package/agent/lmstudio_reasoning.py +48 -0
- package/agent/lsp/__init__.py +106 -0
- package/agent/lsp/__pycache__/__init__.cpython-312.pyc +0 -0
- package/agent/lsp/__pycache__/cli.cpython-312.pyc +0 -0
- package/agent/lsp/__pycache__/client.cpython-312.pyc +0 -0
- package/agent/lsp/__pycache__/eventlog.cpython-312.pyc +0 -0
- package/agent/lsp/__pycache__/manager.cpython-312.pyc +0 -0
- package/agent/lsp/__pycache__/protocol.cpython-312.pyc +0 -0
- package/agent/lsp/__pycache__/servers.cpython-312.pyc +0 -0
- package/agent/lsp/__pycache__/workspace.cpython-312.pyc +0 -0
- package/agent/lsp/cli.py +308 -0
- package/agent/lsp/client.py +930 -0
- package/agent/lsp/eventlog.py +213 -0
- package/agent/lsp/install.py +376 -0
- package/agent/lsp/manager.py +644 -0
- package/agent/lsp/protocol.py +196 -0
- package/agent/lsp/range_shift.py +149 -0
- package/agent/lsp/reporter.py +78 -0
- package/agent/lsp/servers.py +1040 -0
- package/agent/lsp/workspace.py +223 -0
- package/agent/manual_compression_feedback.py +49 -0
- package/agent/markdown_tables.py +309 -0
- package/agent/memory_manager.py +556 -0
- package/agent/memory_provider.py +279 -0
- package/agent/model_metadata.py +1827 -0
- package/agent/models_dev.py +724 -0
- package/agent/moonshot_schema.py +231 -0
- package/agent/nous_rate_guard.py +326 -0
- package/agent/onboarding.py +193 -0
- package/agent/plugin_llm.py +1046 -0
- package/agent/portal_tags.py +64 -0
- package/agent/prompt_builder.py +1457 -0
- package/agent/prompt_caching.py +79 -0
- package/agent/rate_limit_tracker.py +246 -0
- package/agent/redact.py +403 -0
- package/agent/retry_utils.py +57 -0
- package/agent/shell_hooks.py +837 -0
- package/agent/skill_commands.py +502 -0
- package/agent/skill_preprocessing.py +131 -0
- package/agent/skill_utils.py +512 -0
- package/agent/subdirectory_hints.py +224 -0
- package/agent/think_scrubber.py +386 -0
- package/agent/title_generator.py +171 -0
- package/agent/tool_guardrails.py +458 -0
- package/agent/tool_result_classification.py +26 -0
- package/agent/trajectory.py +56 -0
- package/agent/transports/__init__.py +68 -0
- package/agent/transports/__pycache__/__init__.cpython-312.pyc +0 -0
- package/agent/transports/__pycache__/anthropic.cpython-312.pyc +0 -0
- package/agent/transports/__pycache__/base.cpython-312.pyc +0 -0
- package/agent/transports/__pycache__/bedrock.cpython-312.pyc +0 -0
- package/agent/transports/__pycache__/chat_completions.cpython-312.pyc +0 -0
- package/agent/transports/__pycache__/codex.cpython-312.pyc +0 -0
- package/agent/transports/__pycache__/types.cpython-312.pyc +0 -0
- package/agent/transports/anthropic.py +179 -0
- package/agent/transports/base.py +89 -0
- package/agent/transports/bedrock.py +154 -0
- package/agent/transports/chat_completions.py +614 -0
- package/agent/transports/codex.py +283 -0
- package/agent/transports/codex_app_server.py +368 -0
- package/agent/transports/codex_app_server_session.py +810 -0
- package/agent/transports/codex_event_projector.py +312 -0
- package/agent/transports/hermes_tools_mcp_server.py +233 -0
- package/agent/transports/types.py +162 -0
- package/agent/usage_pricing.py +877 -0
- package/agent/video_gen_provider.py +300 -0
- package/agent/video_gen_registry.py +117 -0
- package/agent/web_search_provider.py +221 -0
- package/agent/web_search_registry.py +262 -0
- package/assets/banner.png +0 -0
- package/batch_runner.py +1303 -0
- package/bin/calvyn.js +67 -0
- package/calvyn_bootstrap.py +130 -0
- package/calvyn_constants.py +346 -0
- package/calvyn_logging.py +390 -0
- package/calvyn_state.py +2967 -0
- package/calvyn_time.py +105 -0
- package/cli.py +14160 -0
- package/cron/__init__.py +42 -0
- package/cron/__pycache__/__init__.cpython-312.pyc +0 -0
- package/cron/__pycache__/jobs.cpython-312.pyc +0 -0
- package/cron/__pycache__/scheduler.cpython-312.pyc +0 -0
- package/cron/jobs.py +1160 -0
- package/cron/scheduler.py +1832 -0
- package/gateway/__init__.py +35 -0
- package/gateway/__pycache__/__init__.cpython-312.pyc +0 -0
- package/gateway/__pycache__/channel_directory.cpython-312.pyc +0 -0
- package/gateway/__pycache__/config.cpython-312.pyc +0 -0
- package/gateway/__pycache__/delivery.cpython-312.pyc +0 -0
- package/gateway/__pycache__/display_config.cpython-312.pyc +0 -0
- package/gateway/__pycache__/hooks.cpython-312.pyc +0 -0
- package/gateway/__pycache__/pairing.cpython-312.pyc +0 -0
- package/gateway/__pycache__/platform_registry.cpython-312.pyc +0 -0
- package/gateway/__pycache__/restart.cpython-312.pyc +0 -0
- package/gateway/__pycache__/run.cpython-312.pyc +0 -0
- package/gateway/__pycache__/runtime_footer.cpython-312.pyc +0 -0
- package/gateway/__pycache__/session.cpython-312.pyc +0 -0
- package/gateway/__pycache__/session_context.cpython-312.pyc +0 -0
- package/gateway/__pycache__/shutdown_forensics.cpython-312.pyc +0 -0
- package/gateway/__pycache__/slash_access.cpython-312.pyc +0 -0
- package/gateway/__pycache__/status.cpython-312.pyc +0 -0
- package/gateway/__pycache__/stream_consumer.cpython-312.pyc +0 -0
- package/gateway/__pycache__/whatsapp_identity.cpython-312.pyc +0 -0
- package/gateway/assets/telegram-botfather-threads-settings.jpg +0 -0
- package/gateway/builtin_hooks/__init__.py +1 -0
- package/gateway/channel_directory.py +357 -0
- package/gateway/config.py +1873 -0
- package/gateway/delivery.py +258 -0
- package/gateway/display_config.py +206 -0
- package/gateway/hooks.py +210 -0
- package/gateway/mirror.py +179 -0
- package/gateway/pairing.py +322 -0
- package/gateway/platform_registry.py +260 -0
- package/gateway/platforms/ADDING_A_PLATFORM.md +374 -0
- package/gateway/platforms/__init__.py +45 -0
- package/gateway/platforms/__pycache__/__init__.cpython-312.pyc +0 -0
- package/gateway/platforms/__pycache__/base.cpython-312.pyc +0 -0
- package/gateway/platforms/__pycache__/helpers.cpython-312.pyc +0 -0
- package/gateway/platforms/__pycache__/telegram.cpython-312.pyc +0 -0
- package/gateway/platforms/__pycache__/telegram_network.cpython-312.pyc +0 -0
- package/gateway/platforms/__pycache__/yuanbao.cpython-312.pyc +0 -0
- package/gateway/platforms/__pycache__/yuanbao_media.cpython-312.pyc +0 -0
- package/gateway/platforms/__pycache__/yuanbao_proto.cpython-312.pyc +0 -0
- package/gateway/platforms/_http_client_limits.py +84 -0
- package/gateway/platforms/api_server.py +3488 -0
- package/gateway/platforms/base.py +3747 -0
- package/gateway/platforms/bluebubbles.py +937 -0
- package/gateway/platforms/dingtalk.py +1473 -0
- package/gateway/platforms/discord.py +5584 -0
- package/gateway/platforms/email.py +773 -0
- package/gateway/platforms/feishu.py +5059 -0
- package/gateway/platforms/feishu_comment.py +1382 -0
- package/gateway/platforms/feishu_comment_rules.py +430 -0
- package/gateway/platforms/helpers.py +279 -0
- package/gateway/platforms/homeassistant.py +449 -0
- package/gateway/platforms/matrix.py +2777 -0
- package/gateway/platforms/mattermost.py +852 -0
- package/gateway/platforms/msgraph_webhook.py +397 -0
- package/gateway/platforms/qqbot/__init__.py +91 -0
- package/gateway/platforms/qqbot/adapter.py +3072 -0
- package/gateway/platforms/qqbot/chunked_upload.py +602 -0
- package/gateway/platforms/qqbot/constants.py +74 -0
- package/gateway/platforms/qqbot/crypto.py +45 -0
- package/gateway/platforms/qqbot/keyboards.py +473 -0
- package/gateway/platforms/qqbot/onboard.py +220 -0
- package/gateway/platforms/qqbot/utils.py +71 -0
- package/gateway/platforms/signal.py +1518 -0
- package/gateway/platforms/signal_rate_limit.py +369 -0
- package/gateway/platforms/slack.py +3028 -0
- package/gateway/platforms/sms.py +377 -0
- package/gateway/platforms/telegram.py +4836 -0
- package/gateway/platforms/telegram_network.py +249 -0
- package/gateway/platforms/webhook.py +806 -0
- package/gateway/platforms/wecom.py +1610 -0
- package/gateway/platforms/wecom_callback.py +403 -0
- package/gateway/platforms/wecom_crypto.py +142 -0
- package/gateway/platforms/weixin.py +2170 -0
- package/gateway/platforms/whatsapp.py +1283 -0
- package/gateway/platforms/yuanbao.py +4873 -0
- package/gateway/platforms/yuanbao_media.py +645 -0
- package/gateway/platforms/yuanbao_proto.py +1209 -0
- package/gateway/platforms/yuanbao_sticker.py +558 -0
- package/gateway/restart.py +20 -0
- package/gateway/run.py +17074 -0
- package/gateway/runtime_footer.py +150 -0
- package/gateway/session.py +1399 -0
- package/gateway/session_context.py +156 -0
- package/gateway/shutdown_forensics.py +462 -0
- package/gateway/slash_access.py +229 -0
- package/gateway/status.py +972 -0
- package/gateway/sticker_cache.py +111 -0
- package/gateway/stream_consumer.py +1286 -0
- package/gateway/whatsapp_identity.py +156 -0
- package/hermes_cli/__init__.py +47 -0
- package/hermes_cli/__pycache__/__init__.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/_parser.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/auth.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/banner.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/browser_connect.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/callbacks.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/checkpoints.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/cli_output.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/codex_models.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/codex_runtime_switch.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/colors.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/commands.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/config.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/copilot_auth.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/curator.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/curses_ui.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/debug.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/default_soul.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/env_loader.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/fallback_cmd.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/gateway.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/gateway_windows.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/goals.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/inventory.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/kanban.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/kanban_db.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/main.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/model_catalog.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/model_normalize.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/model_switch.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/models.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/nous_subscription.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/pairing.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/platforms.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/plugins.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/profiles.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/providers.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/pt_input_extras.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/runtime_provider.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/security_advisories.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/setup.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/skills_hub.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/skin_engine.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/stdio.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/timeouts.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/tips.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/tools_config.cpython-312.pyc +0 -0
- package/hermes_cli/__pycache__/voice.cpython-312.pyc +0 -0
- package/hermes_cli/_parser.py +365 -0
- package/hermes_cli/_subprocess_compat.py +175 -0
- package/hermes_cli/auth.py +6299 -0
- package/hermes_cli/auth_commands.py +749 -0
- package/hermes_cli/azure_detect.py +300 -0
- package/hermes_cli/backup.py +938 -0
- package/hermes_cli/banner.py +703 -0
- package/hermes_cli/browser_connect.py +139 -0
- package/hermes_cli/callbacks.py +243 -0
- package/hermes_cli/checkpoints.py +244 -0
- package/hermes_cli/claw.py +810 -0
- package/hermes_cli/cli_output.py +78 -0
- package/hermes_cli/clipboard.py +495 -0
- package/hermes_cli/codex_models.py +198 -0
- package/hermes_cli/codex_runtime_plugin_migration.py +757 -0
- package/hermes_cli/codex_runtime_switch.py +266 -0
- package/hermes_cli/colors.py +38 -0
- package/hermes_cli/commands.py +1728 -0
- package/hermes_cli/completion.py +315 -0
- package/hermes_cli/config.py +5382 -0
- package/hermes_cli/copilot_auth.py +392 -0
- package/hermes_cli/cron.py +313 -0
- package/hermes_cli/curator.py +598 -0
- package/hermes_cli/curses_ui.py +472 -0
- package/hermes_cli/debug.py +747 -0
- package/hermes_cli/default_soul.py +11 -0
- package/hermes_cli/dep_ensure.py +107 -0
- package/hermes_cli/dingtalk_auth.py +293 -0
- package/hermes_cli/doctor.py +1863 -0
- package/hermes_cli/dump.py +326 -0
- package/hermes_cli/env_loader.py +175 -0
- package/hermes_cli/fallback_cmd.py +361 -0
- package/hermes_cli/gateway.py +5422 -0
- package/hermes_cli/gateway_windows.py +692 -0
- package/hermes_cli/goals.py +757 -0
- package/hermes_cli/hooks.py +385 -0
- package/hermes_cli/inventory.py +240 -0
- package/hermes_cli/kanban.py +2252 -0
- package/hermes_cli/kanban_db.py +4840 -0
- package/hermes_cli/kanban_diagnostics.py +776 -0
- package/hermes_cli/kanban_specify.py +266 -0
- package/hermes_cli/logs.py +391 -0
- package/hermes_cli/main.py +12396 -0
- package/hermes_cli/mcp_config.py +781 -0
- package/hermes_cli/memory_setup.py +465 -0
- package/hermes_cli/model_catalog.py +330 -0
- package/hermes_cli/model_normalize.py +473 -0
- package/hermes_cli/model_switch.py +1777 -0
- package/hermes_cli/models.py +3789 -0
- package/hermes_cli/nous_subscription.py +799 -0
- package/hermes_cli/oneshot.py +351 -0
- package/hermes_cli/pairing.py +115 -0
- package/hermes_cli/platforms.py +83 -0
- package/hermes_cli/plugins.py +1562 -0
- package/hermes_cli/plugins_cmd.py +1587 -0
- package/hermes_cli/profile_distribution.py +703 -0
- package/hermes_cli/profiles.py +1319 -0
- package/hermes_cli/providers.py +720 -0
- package/hermes_cli/proxy/__init__.py +20 -0
- package/hermes_cli/proxy/adapters/__init__.py +35 -0
- package/hermes_cli/proxy/adapters/base.py +94 -0
- package/hermes_cli/proxy/adapters/nous_portal.py +137 -0
- package/hermes_cli/proxy/cli.py +141 -0
- package/hermes_cli/proxy/server.py +265 -0
- package/hermes_cli/pt_input_extras.py +83 -0
- package/hermes_cli/pty_bridge.py +237 -0
- package/hermes_cli/relaunch.py +205 -0
- package/hermes_cli/runtime_provider.py +1428 -0
- package/hermes_cli/security_advisories.py +452 -0
- package/hermes_cli/setup.py +3559 -0
- package/hermes_cli/skills_config.py +177 -0
- package/hermes_cli/skills_hub.py +1595 -0
- package/hermes_cli/skin_engine.py +929 -0
- package/hermes_cli/slack_cli.py +160 -0
- package/hermes_cli/status.py +550 -0
- package/hermes_cli/stdio.py +252 -0
- package/hermes_cli/timeouts.py +82 -0
- package/hermes_cli/tips.py +487 -0
- package/hermes_cli/tools_config.py +3151 -0
- package/hermes_cli/uninstall.py +681 -0
- package/hermes_cli/vercel_auth.py +70 -0
- package/hermes_cli/voice.py +846 -0
- package/hermes_cli/web_server.py +4438 -0
- package/hermes_cli/webhook.py +275 -0
- package/locales/af.yaml +350 -0
- package/locales/de.yaml +350 -0
- package/locales/en.yaml +365 -0
- package/locales/es.yaml +350 -0
- package/locales/fr.yaml +350 -0
- package/locales/ga.yaml +354 -0
- package/locales/hu.yaml +350 -0
- package/locales/it.yaml +350 -0
- package/locales/ja.yaml +350 -0
- package/locales/ko.yaml +350 -0
- package/locales/pt.yaml +350 -0
- package/locales/ru.yaml +350 -0
- package/locales/tr.yaml +350 -0
- package/locales/uk.yaml +350 -0
- package/locales/zh-hant.yaml +350 -0
- package/locales/zh.yaml +350 -0
- package/mcp_serve.py +898 -0
- package/model_tools.py +899 -0
- package/optional-skills/DESCRIPTION.md +24 -0
- package/optional-skills/autonomous-ai-agents/DESCRIPTION.md +2 -0
- package/optional-skills/autonomous-ai-agents/blackbox/SKILL.md +144 -0
- package/optional-skills/autonomous-ai-agents/honcho/SKILL.md +431 -0
- package/optional-skills/blockchain/evm/SKILL.md +211 -0
- package/optional-skills/blockchain/evm/scripts/evm_client.py +1508 -0
- package/optional-skills/blockchain/hyperliquid/SKILL.md +211 -0
- package/optional-skills/blockchain/hyperliquid/scripts/hyperliquid_client.py +1660 -0
- package/optional-skills/blockchain/solana/SKILL.md +208 -0
- package/optional-skills/blockchain/solana/scripts/solana_client.py +698 -0
- package/optional-skills/communication/DESCRIPTION.md +1 -0
- package/optional-skills/communication/one-three-one-rule/SKILL.md +104 -0
- package/optional-skills/creative/blender-mcp/SKILL.md +117 -0
- package/optional-skills/creative/concept-diagrams/SKILL.md +362 -0
- package/optional-skills/creative/concept-diagrams/examples/apartment-floor-plan-conversion.md +244 -0
- package/optional-skills/creative/concept-diagrams/examples/automated-password-reset-flow.md +276 -0
- package/optional-skills/creative/concept-diagrams/examples/autonomous-llm-research-agent-flow.md +240 -0
- package/optional-skills/creative/concept-diagrams/examples/banana-journey-tree-to-smoothie.md +161 -0
- package/optional-skills/creative/concept-diagrams/examples/commercial-aircraft-structure.md +209 -0
- package/optional-skills/creative/concept-diagrams/examples/cpu-ooo-microarchitecture.md +236 -0
- package/optional-skills/creative/concept-diagrams/examples/electricity-grid-flow.md +182 -0
- package/optional-skills/creative/concept-diagrams/examples/feature-film-production-pipeline.md +172 -0
- package/optional-skills/creative/concept-diagrams/examples/hospital-emergency-department-flow.md +165 -0
- package/optional-skills/creative/concept-diagrams/examples/ml-benchmark-grouped-bar-chart.md +114 -0
- package/optional-skills/creative/concept-diagrams/examples/place-order-uml-sequence.md +325 -0
- package/optional-skills/creative/concept-diagrams/examples/smart-city-infrastructure.md +173 -0
- package/optional-skills/creative/concept-diagrams/examples/smartphone-layer-anatomy.md +154 -0
- package/optional-skills/creative/concept-diagrams/examples/sn2-reaction-mechanism.md +247 -0
- package/optional-skills/creative/concept-diagrams/examples/wind-turbine-structure.md +338 -0
- package/optional-skills/creative/concept-diagrams/references/dashboard-patterns.md +43 -0
- package/optional-skills/creative/concept-diagrams/references/infrastructure-patterns.md +144 -0
- package/optional-skills/creative/concept-diagrams/references/physical-shape-cookbook.md +42 -0
- package/optional-skills/creative/concept-diagrams/templates/template.html +174 -0
- package/optional-skills/creative/hyperframes/SKILL.md +191 -0
- package/optional-skills/creative/hyperframes/references/cli.md +185 -0
- package/optional-skills/creative/hyperframes/references/composition.md +129 -0
- package/optional-skills/creative/hyperframes/references/features.md +289 -0
- package/optional-skills/creative/hyperframes/references/gsap.md +136 -0
- package/optional-skills/creative/hyperframes/references/troubleshooting.md +137 -0
- package/optional-skills/creative/hyperframes/references/website-to-video.md +145 -0
- package/optional-skills/creative/hyperframes/scripts/setup.sh +135 -0
- package/optional-skills/creative/kanban-video-orchestrator/SKILL.md +207 -0
- package/optional-skills/creative/kanban-video-orchestrator/assets/brief.md.tmpl +79 -0
- package/optional-skills/creative/kanban-video-orchestrator/assets/setup.sh.tmpl +185 -0
- package/optional-skills/creative/kanban-video-orchestrator/assets/soul.md.tmpl +38 -0
- package/optional-skills/creative/kanban-video-orchestrator/references/examples.md +227 -0
- package/optional-skills/creative/kanban-video-orchestrator/references/intake.md +166 -0
- package/optional-skills/creative/kanban-video-orchestrator/references/kanban-setup.md +276 -0
- package/optional-skills/creative/kanban-video-orchestrator/references/monitoring.md +180 -0
- package/optional-skills/creative/kanban-video-orchestrator/references/role-archetypes.md +298 -0
- package/optional-skills/creative/kanban-video-orchestrator/references/tool-matrix.md +317 -0
- package/optional-skills/creative/kanban-video-orchestrator/scripts/bootstrap_pipeline.py +501 -0
- package/optional-skills/creative/kanban-video-orchestrator/scripts/monitor.py +195 -0
- package/optional-skills/creative/meme-generation/EXAMPLES.md +46 -0
- package/optional-skills/creative/meme-generation/SKILL.md +130 -0
- package/optional-skills/creative/meme-generation/scripts/generate_meme.py +471 -0
- package/optional-skills/creative/meme-generation/scripts/templates.json +97 -0
- package/optional-skills/devops/cli/SKILL.md +156 -0
- package/optional-skills/devops/cli/references/app-discovery.md +112 -0
- package/optional-skills/devops/cli/references/authentication.md +59 -0
- package/optional-skills/devops/cli/references/cli-reference.md +104 -0
- package/optional-skills/devops/cli/references/running-apps.md +171 -0
- package/optional-skills/devops/docker-management/SKILL.md +281 -0
- package/optional-skills/devops/pinggy-tunnel/SKILL.md +309 -0
- package/optional-skills/devops/watchers/SKILL.md +112 -0
- package/optional-skills/devops/watchers/scripts/_watermark.py +148 -0
- package/optional-skills/devops/watchers/scripts/watch_github.py +168 -0
- package/optional-skills/devops/watchers/scripts/watch_http_json.py +131 -0
- package/optional-skills/devops/watchers/scripts/watch_rss.py +121 -0
- package/optional-skills/dogfood/DESCRIPTION.md +3 -0
- package/optional-skills/dogfood/adversarial-ux-test/SKILL.md +191 -0
- package/optional-skills/email/agentmail/SKILL.md +126 -0
- package/optional-skills/finance/3-statement-model/SKILL.md +433 -0
- package/optional-skills/finance/3-statement-model/references/formatting.md +118 -0
- package/optional-skills/finance/3-statement-model/references/formulas.md +292 -0
- package/optional-skills/finance/3-statement-model/references/sec-filings.md +125 -0
- package/optional-skills/finance/comps-analysis/SKILL.md +662 -0
- package/optional-skills/finance/dcf-model/SKILL.md +1270 -0
- package/optional-skills/finance/dcf-model/TROUBLESHOOTING.md +40 -0
- package/optional-skills/finance/dcf-model/requirements.txt +7 -0
- package/optional-skills/finance/dcf-model/scripts/validate_dcf.py +292 -0
- package/optional-skills/finance/excel-author/SKILL.md +244 -0
- package/optional-skills/finance/excel-author/scripts/recalc.py +88 -0
- package/optional-skills/finance/lbo-model/SKILL.md +291 -0
- package/optional-skills/finance/merger-model/SKILL.md +144 -0
- package/optional-skills/finance/pptx-author/SKILL.md +173 -0
- package/optional-skills/finance/stocks/SKILL.md +95 -0
- package/optional-skills/finance/stocks/scripts/stocks_client.py +755 -0
- package/optional-skills/health/DESCRIPTION.md +1 -0
- package/optional-skills/health/fitness-nutrition/SKILL.md +256 -0
- package/optional-skills/health/fitness-nutrition/references/FORMULAS.md +100 -0
- package/optional-skills/health/fitness-nutrition/scripts/body_calc.py +210 -0
- package/optional-skills/health/fitness-nutrition/scripts/nutrition_search.py +86 -0
- package/optional-skills/health/neuroskill-bci/SKILL.md +459 -0
- package/optional-skills/health/neuroskill-bci/references/api.md +286 -0
- package/optional-skills/health/neuroskill-bci/references/metrics.md +220 -0
- package/optional-skills/health/neuroskill-bci/references/protocols.md +452 -0
- package/optional-skills/mcp/DESCRIPTION.md +3 -0
- package/optional-skills/mcp/fastmcp/SKILL.md +300 -0
- package/optional-skills/mcp/fastmcp/references/fastmcp-cli.md +110 -0
- package/optional-skills/mcp/fastmcp/scripts/scaffold_fastmcp.py +56 -0
- package/optional-skills/mcp/fastmcp/templates/api_wrapper.py +54 -0
- package/optional-skills/mcp/fastmcp/templates/database_server.py +77 -0
- package/optional-skills/mcp/fastmcp/templates/file_processor.py +55 -0
- package/optional-skills/mcp/mcporter/SKILL.md +123 -0
- package/optional-skills/migration/DESCRIPTION.md +2 -0
- package/optional-skills/migration/openclaw-migration/SKILL.md +298 -0
- package/optional-skills/migration/openclaw-migration/scripts/openclaw_to_hermes.py +3136 -0
- package/optional-skills/mlops/accelerate/SKILL.md +336 -0
- package/optional-skills/mlops/accelerate/references/custom-plugins.md +453 -0
- package/optional-skills/mlops/accelerate/references/megatron-integration.md +489 -0
- package/optional-skills/mlops/accelerate/references/performance.md +525 -0
- package/optional-skills/mlops/chroma/SKILL.md +410 -0
- package/optional-skills/mlops/chroma/references/integration.md +38 -0
- package/optional-skills/mlops/clip/SKILL.md +257 -0
- package/optional-skills/mlops/clip/references/applications.md +207 -0
- package/optional-skills/mlops/faiss/SKILL.md +225 -0
- package/optional-skills/mlops/faiss/references/index_types.md +280 -0
- package/optional-skills/mlops/flash-attention/SKILL.md +367 -0
- package/optional-skills/mlops/flash-attention/references/benchmarks.md +215 -0
- package/optional-skills/mlops/flash-attention/references/transformers-integration.md +293 -0
- package/optional-skills/mlops/guidance/SKILL.md +576 -0
- package/optional-skills/mlops/guidance/references/backends.md +554 -0
- package/optional-skills/mlops/guidance/references/constraints.md +674 -0
- package/optional-skills/mlops/guidance/references/examples.md +767 -0
- package/optional-skills/mlops/huggingface-tokenizers/SKILL.md +520 -0
- package/optional-skills/mlops/huggingface-tokenizers/references/algorithms.md +653 -0
- package/optional-skills/mlops/huggingface-tokenizers/references/integration.md +637 -0
- package/optional-skills/mlops/huggingface-tokenizers/references/pipeline.md +723 -0
- package/optional-skills/mlops/huggingface-tokenizers/references/training.md +565 -0
- package/optional-skills/mlops/inference/outlines/SKILL.md +656 -0
- package/optional-skills/mlops/inference/outlines/references/backends.md +615 -0
- package/optional-skills/mlops/inference/outlines/references/examples.md +773 -0
- package/optional-skills/mlops/inference/outlines/references/json_generation.md +652 -0
- package/optional-skills/mlops/instructor/SKILL.md +744 -0
- package/optional-skills/mlops/instructor/references/examples.md +107 -0
- package/optional-skills/mlops/instructor/references/providers.md +70 -0
- package/optional-skills/mlops/instructor/references/validation.md +606 -0
- package/optional-skills/mlops/lambda-labs/SKILL.md +549 -0
- package/optional-skills/mlops/lambda-labs/references/advanced-usage.md +611 -0
- package/optional-skills/mlops/lambda-labs/references/troubleshooting.md +530 -0
- package/optional-skills/mlops/llava/SKILL.md +308 -0
- package/optional-skills/mlops/llava/references/training.md +197 -0
- package/optional-skills/mlops/modal/SKILL.md +345 -0
- package/optional-skills/mlops/modal/references/advanced-usage.md +503 -0
- package/optional-skills/mlops/modal/references/troubleshooting.md +494 -0
- package/optional-skills/mlops/nemo-curator/SKILL.md +387 -0
- package/optional-skills/mlops/nemo-curator/references/deduplication.md +87 -0
- package/optional-skills/mlops/nemo-curator/references/filtering.md +102 -0
- package/optional-skills/mlops/peft/SKILL.md +435 -0
- package/optional-skills/mlops/peft/references/advanced-usage.md +514 -0
- package/optional-skills/mlops/peft/references/troubleshooting.md +480 -0
- package/optional-skills/mlops/pinecone/SKILL.md +362 -0
- package/optional-skills/mlops/pinecone/references/deployment.md +181 -0
- package/optional-skills/mlops/pytorch-fsdp/SKILL.md +130 -0
- package/optional-skills/mlops/pytorch-fsdp/references/index.md +7 -0
- package/optional-skills/mlops/pytorch-fsdp/references/other.md +4261 -0
- package/optional-skills/mlops/pytorch-lightning/SKILL.md +350 -0
- package/optional-skills/mlops/pytorch-lightning/references/callbacks.md +436 -0
- package/optional-skills/mlops/pytorch-lightning/references/distributed.md +490 -0
- package/optional-skills/mlops/pytorch-lightning/references/hyperparameter-tuning.md +556 -0
- package/optional-skills/mlops/qdrant/SKILL.md +497 -0
- package/optional-skills/mlops/qdrant/references/advanced-usage.md +648 -0
- package/optional-skills/mlops/qdrant/references/troubleshooting.md +631 -0
- package/optional-skills/mlops/saelens/SKILL.md +390 -0
- package/optional-skills/mlops/saelens/references/README.md +69 -0
- package/optional-skills/mlops/saelens/references/api.md +333 -0
- package/optional-skills/mlops/saelens/references/tutorials.md +318 -0
- package/optional-skills/mlops/simpo/SKILL.md +223 -0
- package/optional-skills/mlops/simpo/references/datasets.md +478 -0
- package/optional-skills/mlops/simpo/references/hyperparameters.md +452 -0
- package/optional-skills/mlops/simpo/references/loss-functions.md +350 -0
- package/optional-skills/mlops/slime/SKILL.md +468 -0
- package/optional-skills/mlops/slime/references/api-reference.md +392 -0
- package/optional-skills/mlops/slime/references/troubleshooting.md +386 -0
- package/optional-skills/mlops/stable-diffusion/SKILL.md +523 -0
- package/optional-skills/mlops/stable-diffusion/references/advanced-usage.md +716 -0
- package/optional-skills/mlops/stable-diffusion/references/troubleshooting.md +555 -0
- package/optional-skills/mlops/tensorrt-llm/SKILL.md +191 -0
- package/optional-skills/mlops/tensorrt-llm/references/multi-gpu.md +298 -0
- package/optional-skills/mlops/tensorrt-llm/references/optimization.md +242 -0
- package/optional-skills/mlops/tensorrt-llm/references/serving.md +470 -0
- package/optional-skills/mlops/torchtitan/SKILL.md +362 -0
- package/optional-skills/mlops/torchtitan/references/checkpoint.md +181 -0
- package/optional-skills/mlops/torchtitan/references/custom-models.md +258 -0
- package/optional-skills/mlops/torchtitan/references/float8.md +133 -0
- package/optional-skills/mlops/torchtitan/references/fsdp.md +126 -0
- package/optional-skills/mlops/training/axolotl/SKILL.md +166 -0
- package/optional-skills/mlops/training/axolotl/references/api.md +5548 -0
- package/optional-skills/mlops/training/axolotl/references/dataset-formats.md +1029 -0
- package/optional-skills/mlops/training/axolotl/references/index.md +15 -0
- package/optional-skills/mlops/training/axolotl/references/other.md +3563 -0
- package/optional-skills/mlops/training/trl-fine-tuning/SKILL.md +463 -0
- package/optional-skills/mlops/training/trl-fine-tuning/references/dpo-variants.md +227 -0
- package/optional-skills/mlops/training/trl-fine-tuning/references/grpo-training.md +504 -0
- package/optional-skills/mlops/training/trl-fine-tuning/references/online-rl.md +82 -0
- package/optional-skills/mlops/training/trl-fine-tuning/references/reward-modeling.md +122 -0
- package/optional-skills/mlops/training/trl-fine-tuning/references/sft-training.md +168 -0
- package/optional-skills/mlops/training/trl-fine-tuning/templates/basic_grpo_training.py +228 -0
- package/optional-skills/mlops/training/unsloth/SKILL.md +84 -0
- package/optional-skills/mlops/training/unsloth/references/index.md +7 -0
- package/optional-skills/mlops/training/unsloth/references/llms-full.md +16799 -0
- package/optional-skills/mlops/training/unsloth/references/llms-txt.md +12044 -0
- package/optional-skills/mlops/training/unsloth/references/llms.md +82 -0
- package/optional-skills/mlops/whisper/SKILL.md +321 -0
- package/optional-skills/mlops/whisper/references/languages.md +189 -0
- package/optional-skills/productivity/canvas/SKILL.md +98 -0
- package/optional-skills/productivity/canvas/scripts/canvas_api.py +157 -0
- package/optional-skills/productivity/here-now/SKILL.md +217 -0
- package/optional-skills/productivity/here-now/scripts/drive.sh +406 -0
- package/optional-skills/productivity/here-now/scripts/publish.sh +445 -0
- package/optional-skills/productivity/memento-flashcards/SKILL.md +324 -0
- package/optional-skills/productivity/memento-flashcards/scripts/memento_cards.py +353 -0
- package/optional-skills/productivity/memento-flashcards/scripts/youtube_quiz.py +88 -0
- package/optional-skills/productivity/shop-app/SKILL.md +340 -0
- package/optional-skills/productivity/shopify/SKILL.md +373 -0
- package/optional-skills/productivity/siyuan/SKILL.md +298 -0
- package/optional-skills/productivity/telephony/SKILL.md +418 -0
- package/optional-skills/productivity/telephony/scripts/telephony.py +1343 -0
- package/optional-skills/research/bioinformatics/SKILL.md +235 -0
- package/optional-skills/research/darwinian-evolver/SKILL.md +199 -0
- package/optional-skills/research/darwinian-evolver/scripts/parrot_openrouter.py +218 -0
- package/optional-skills/research/darwinian-evolver/scripts/show_snapshot.py +69 -0
- package/optional-skills/research/darwinian-evolver/templates/custom_problem_template.py +240 -0
- package/optional-skills/research/domain-intel/SKILL.md +97 -0
- package/optional-skills/research/domain-intel/scripts/domain_intel.py +397 -0
- package/optional-skills/research/drug-discovery/SKILL.md +227 -0
- package/optional-skills/research/drug-discovery/references/ADMET_REFERENCE.md +66 -0
- package/optional-skills/research/drug-discovery/scripts/chembl_target.py +53 -0
- package/optional-skills/research/drug-discovery/scripts/ro5_screen.py +44 -0
- package/optional-skills/research/duckduckgo-search/SKILL.md +238 -0
- package/optional-skills/research/duckduckgo-search/scripts/duckduckgo.sh +28 -0
- package/optional-skills/research/gitnexus-explorer/SKILL.md +214 -0
- package/optional-skills/research/gitnexus-explorer/scripts/proxy.mjs +92 -0
- package/optional-skills/research/osint-investigation/SKILL.md +277 -0
- package/optional-skills/research/osint-investigation/references/sources/courtlistener.md +98 -0
- package/optional-skills/research/osint-investigation/references/sources/gdelt.md +104 -0
- package/optional-skills/research/osint-investigation/references/sources/icij-offshore.md +104 -0
- package/optional-skills/research/osint-investigation/references/sources/nyc-acris.md +90 -0
- package/optional-skills/research/osint-investigation/references/sources/ofac-sdn.md +92 -0
- package/optional-skills/research/osint-investigation/references/sources/opencorporates.md +103 -0
- package/optional-skills/research/osint-investigation/references/sources/sec-edgar.md +83 -0
- package/optional-skills/research/osint-investigation/references/sources/senate-ld.md +89 -0
- package/optional-skills/research/osint-investigation/references/sources/usaspending.md +97 -0
- package/optional-skills/research/osint-investigation/references/sources/wayback.md +93 -0
- package/optional-skills/research/osint-investigation/references/sources/wikipedia.md +107 -0
- package/optional-skills/research/osint-investigation/scripts/_http.py +82 -0
- package/optional-skills/research/osint-investigation/scripts/_normalize.py +67 -0
- package/optional-skills/research/osint-investigation/scripts/build_findings.py +221 -0
- package/optional-skills/research/osint-investigation/scripts/entity_resolution.py +228 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_courtlistener.py +149 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_gdelt.py +162 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_icij_offshore.py +234 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_nyc_acris.py +203 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_ofac_sdn.py +175 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_opencorporates.py +192 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_sec_edgar.py +184 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_senate_ld.py +146 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_usaspending.py +170 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_wayback.py +142 -0
- package/optional-skills/research/osint-investigation/scripts/fetch_wikipedia.py +267 -0
- package/optional-skills/research/osint-investigation/scripts/timing_analysis.py +253 -0
- package/optional-skills/research/osint-investigation/templates/source-template.md +59 -0
- package/optional-skills/research/parallel-cli/SKILL.md +391 -0
- package/optional-skills/research/qmd/SKILL.md +441 -0
- package/optional-skills/research/scrapling/SKILL.md +336 -0
- package/optional-skills/research/searxng-search/SKILL.md +212 -0
- package/optional-skills/research/searxng-search/scripts/searxng.sh +22 -0
- package/optional-skills/security/1password/SKILL.md +163 -0
- package/optional-skills/security/1password/references/cli-examples.md +31 -0
- package/optional-skills/security/1password/references/get-started.md +21 -0
- package/optional-skills/security/DESCRIPTION.md +3 -0
- package/optional-skills/security/oss-forensics/SKILL.md +423 -0
- package/optional-skills/security/oss-forensics/references/evidence-types.md +89 -0
- package/optional-skills/security/oss-forensics/references/github-archive-guide.md +184 -0
- package/optional-skills/security/oss-forensics/references/investigation-templates.md +131 -0
- package/optional-skills/security/oss-forensics/references/recovery-techniques.md +164 -0
- package/optional-skills/security/oss-forensics/scripts/evidence-store.py +313 -0
- package/optional-skills/security/oss-forensics/templates/forensic-report.md +151 -0
- package/optional-skills/security/oss-forensics/templates/malicious-package-report.md +43 -0
- package/optional-skills/security/sherlock/SKILL.md +193 -0
- package/optional-skills/software-development/rest-graphql-debug/SKILL.md +514 -0
- package/optional-skills/web-development/DESCRIPTION.md +5 -0
- package/optional-skills/web-development/page-agent/SKILL.md +190 -0
- package/package.json +78 -0
- package/plugins/__init__.py +1 -0
- package/plugins/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/context_engine/__init__.py +219 -0
- package/plugins/disk-cleanup/README.md +51 -0
- package/plugins/disk-cleanup/__init__.py +316 -0
- package/plugins/disk-cleanup/disk_cleanup.py +497 -0
- package/plugins/disk-cleanup/plugin.yaml +7 -0
- package/plugins/example-dashboard/dashboard/manifest.json +14 -0
- package/plugins/example-dashboard/dashboard/plugin_api.py +17 -0
- package/plugins/google_meet/README.md +131 -0
- package/plugins/google_meet/SKILL.md +148 -0
- package/plugins/google_meet/__init__.py +103 -0
- package/plugins/google_meet/audio_bridge.py +244 -0
- package/plugins/google_meet/cli.py +479 -0
- package/plugins/google_meet/meet_bot.py +852 -0
- package/plugins/google_meet/node/__init__.py +54 -0
- package/plugins/google_meet/node/cli.py +125 -0
- package/plugins/google_meet/node/client.py +107 -0
- package/plugins/google_meet/node/protocol.py +124 -0
- package/plugins/google_meet/node/registry.py +113 -0
- package/plugins/google_meet/node/server.py +201 -0
- package/plugins/google_meet/plugin.yaml +16 -0
- package/plugins/google_meet/process_manager.py +324 -0
- package/plugins/google_meet/realtime/__init__.py +10 -0
- package/plugins/google_meet/realtime/openai_client.py +332 -0
- package/plugins/google_meet/tools.py +348 -0
- package/plugins/hermes-achievements/LICENSE +21 -0
- package/plugins/hermes-achievements/README.md +150 -0
- package/plugins/hermes-achievements/dashboard/dist/index.js +732 -0
- package/plugins/hermes-achievements/dashboard/dist/style.css +146 -0
- package/plugins/hermes-achievements/dashboard/manifest.json +11 -0
- package/plugins/hermes-achievements/dashboard/plugin_api.py +1062 -0
- package/plugins/hermes-achievements/docs/achievements-performance-implementation-plan.md +157 -0
- package/plugins/hermes-achievements/docs/achievements-performance-implementation-spec.md +219 -0
- package/plugins/hermes-achievements/docs/achievements-performance-spec.md +174 -0
- package/plugins/hermes-achievements/docs/assets/achievements-dashboard-hd.png +0 -0
- package/plugins/hermes-achievements/docs/assets/achievements-tier-showcase-hd.png +0 -0
- package/plugins/hermes-achievements/tests/test_achievement_engine.py +156 -0
- package/plugins/image_gen/openai/__init__.py +303 -0
- package/plugins/image_gen/openai/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/image_gen/openai/plugin.yaml +7 -0
- package/plugins/image_gen/openai-codex/__init__.py +378 -0
- package/plugins/image_gen/openai-codex/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/image_gen/openai-codex/plugin.yaml +5 -0
- package/plugins/image_gen/xai/__init__.py +316 -0
- package/plugins/image_gen/xai/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/image_gen/xai/plugin.yaml +7 -0
- package/plugins/kanban/dashboard/dist/index.js +3143 -0
- package/plugins/kanban/dashboard/dist/style.css +1500 -0
- package/plugins/kanban/dashboard/manifest.json +14 -0
- package/plugins/kanban/dashboard/plugin_api.py +1612 -0
- package/plugins/kanban/systemd/hermes-kanban-dispatcher.service +32 -0
- package/plugins/memory/__init__.py +408 -0
- package/plugins/memory/byterover/README.md +41 -0
- package/plugins/memory/byterover/__init__.py +384 -0
- package/plugins/memory/byterover/plugin.yaml +9 -0
- package/plugins/memory/hindsight/README.md +138 -0
- package/plugins/memory/hindsight/__init__.py +1758 -0
- package/plugins/memory/hindsight/plugin.yaml +8 -0
- package/plugins/memory/holographic/README.md +36 -0
- package/plugins/memory/holographic/__init__.py +409 -0
- package/plugins/memory/holographic/holographic.py +203 -0
- package/plugins/memory/holographic/plugin.yaml +5 -0
- package/plugins/memory/holographic/retrieval.py +593 -0
- package/plugins/memory/holographic/store.py +579 -0
- package/plugins/memory/honcho/README.md +328 -0
- package/plugins/memory/honcho/__init__.py +1329 -0
- package/plugins/memory/honcho/cli.py +1452 -0
- package/plugins/memory/honcho/client.py +784 -0
- package/plugins/memory/honcho/plugin.yaml +7 -0
- package/plugins/memory/honcho/session.py +1255 -0
- package/plugins/memory/mem0/README.md +38 -0
- package/plugins/memory/mem0/__init__.py +374 -0
- package/plugins/memory/mem0/plugin.yaml +5 -0
- package/plugins/memory/openviking/README.md +40 -0
- package/plugins/memory/openviking/__init__.py +945 -0
- package/plugins/memory/openviking/plugin.yaml +9 -0
- package/plugins/memory/retaindb/README.md +40 -0
- package/plugins/memory/retaindb/__init__.py +767 -0
- package/plugins/memory/retaindb/plugin.yaml +7 -0
- package/plugins/memory/supermemory/README.md +99 -0
- package/plugins/memory/supermemory/__init__.py +792 -0
- package/plugins/memory/supermemory/plugin.yaml +5 -0
- package/plugins/model-providers/README.md +70 -0
- package/plugins/model-providers/ai-gateway/__init__.py +43 -0
- package/plugins/model-providers/ai-gateway/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/ai-gateway/plugin.yaml +5 -0
- package/plugins/model-providers/alibaba/__init__.py +13 -0
- package/plugins/model-providers/alibaba/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/alibaba/plugin.yaml +5 -0
- package/plugins/model-providers/alibaba-coding-plan/__init__.py +21 -0
- package/plugins/model-providers/alibaba-coding-plan/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/alibaba-coding-plan/plugin.yaml +5 -0
- package/plugins/model-providers/anthropic/__init__.py +52 -0
- package/plugins/model-providers/anthropic/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/anthropic/plugin.yaml +5 -0
- package/plugins/model-providers/arcee/__init__.py +13 -0
- package/plugins/model-providers/arcee/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/arcee/plugin.yaml +5 -0
- package/plugins/model-providers/azure-foundry/__init__.py +21 -0
- package/plugins/model-providers/azure-foundry/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/azure-foundry/plugin.yaml +5 -0
- package/plugins/model-providers/bedrock/__init__.py +29 -0
- package/plugins/model-providers/bedrock/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/bedrock/plugin.yaml +5 -0
- package/plugins/model-providers/copilot/__init__.py +58 -0
- package/plugins/model-providers/copilot/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/copilot/plugin.yaml +5 -0
- package/plugins/model-providers/copilot-acp/__init__.py +34 -0
- package/plugins/model-providers/copilot-acp/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/copilot-acp/plugin.yaml +5 -0
- package/plugins/model-providers/custom/__init__.py +68 -0
- package/plugins/model-providers/custom/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/custom/plugin.yaml +5 -0
- package/plugins/model-providers/deepseek/__init__.py +99 -0
- package/plugins/model-providers/deepseek/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/deepseek/plugin.yaml +5 -0
- package/plugins/model-providers/gemini/__init__.py +72 -0
- package/plugins/model-providers/gemini/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/gemini/plugin.yaml +5 -0
- package/plugins/model-providers/gmi/__init__.py +31 -0
- package/plugins/model-providers/gmi/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/gmi/plugin.yaml +5 -0
- package/plugins/model-providers/huggingface/__init__.py +20 -0
- package/plugins/model-providers/huggingface/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/huggingface/plugin.yaml +5 -0
- package/plugins/model-providers/kilocode/__init__.py +14 -0
- package/plugins/model-providers/kilocode/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/kilocode/plugin.yaml +5 -0
- package/plugins/model-providers/kimi-coding/__init__.py +71 -0
- package/plugins/model-providers/kimi-coding/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/kimi-coding/plugin.yaml +5 -0
- package/plugins/model-providers/minimax/__init__.py +45 -0
- package/plugins/model-providers/minimax/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/minimax/plugin.yaml +5 -0
- package/plugins/model-providers/nous/__init__.py +54 -0
- package/plugins/model-providers/nous/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/nous/plugin.yaml +5 -0
- package/plugins/model-providers/novita/__init__.py +27 -0
- package/plugins/model-providers/novita/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/novita/plugin.yaml +5 -0
- package/plugins/model-providers/nvidia/__init__.py +21 -0
- package/plugins/model-providers/nvidia/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/nvidia/plugin.yaml +5 -0
- package/plugins/model-providers/ollama-cloud/__init__.py +14 -0
- package/plugins/model-providers/ollama-cloud/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/ollama-cloud/plugin.yaml +5 -0
- package/plugins/model-providers/openai-codex/__init__.py +15 -0
- package/plugins/model-providers/openai-codex/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/openai-codex/plugin.yaml +5 -0
- package/plugins/model-providers/opencode-zen/__init__.py +30 -0
- package/plugins/model-providers/opencode-zen/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/opencode-zen/plugin.yaml +5 -0
- package/plugins/model-providers/openrouter/__init__.py +115 -0
- package/plugins/model-providers/openrouter/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/openrouter/plugin.yaml +5 -0
- package/plugins/model-providers/qwen-oauth/__init__.py +82 -0
- package/plugins/model-providers/qwen-oauth/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/qwen-oauth/plugin.yaml +5 -0
- package/plugins/model-providers/stepfun/__init__.py +14 -0
- package/plugins/model-providers/stepfun/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/stepfun/plugin.yaml +5 -0
- package/plugins/model-providers/xai/__init__.py +15 -0
- package/plugins/model-providers/xai/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/xai/plugin.yaml +5 -0
- package/plugins/model-providers/xiaomi/__init__.py +14 -0
- package/plugins/model-providers/xiaomi/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/xiaomi/plugin.yaml +5 -0
- package/plugins/model-providers/zai/__init__.py +21 -0
- package/plugins/model-providers/zai/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/model-providers/zai/plugin.yaml +5 -0
- package/plugins/observability/langfuse/README.md +53 -0
- package/plugins/observability/langfuse/__init__.py +1004 -0
- package/plugins/observability/langfuse/plugin.yaml +14 -0
- package/plugins/platforms/google_chat/__init__.py +3 -0
- package/plugins/platforms/google_chat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/platforms/google_chat/__pycache__/adapter.cpython-312.pyc +0 -0
- package/plugins/platforms/google_chat/adapter.py +3343 -0
- package/plugins/platforms/google_chat/oauth.py +639 -0
- package/plugins/platforms/google_chat/plugin.yaml +39 -0
- package/plugins/platforms/irc/__init__.py +3 -0
- package/plugins/platforms/irc/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/platforms/irc/__pycache__/adapter.cpython-312.pyc +0 -0
- package/plugins/platforms/irc/adapter.py +969 -0
- package/plugins/platforms/irc/plugin.yaml +54 -0
- package/plugins/platforms/line/__init__.py +3 -0
- package/plugins/platforms/line/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/platforms/line/__pycache__/adapter.cpython-312.pyc +0 -0
- package/plugins/platforms/line/adapter.py +1639 -0
- package/plugins/platforms/line/plugin.yaml +65 -0
- package/plugins/platforms/simplex/__init__.py +3 -0
- package/plugins/platforms/simplex/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/platforms/simplex/__pycache__/adapter.cpython-312.pyc +0 -0
- package/plugins/platforms/simplex/adapter.py +746 -0
- package/plugins/platforms/simplex/plugin.yaml +37 -0
- package/plugins/platforms/teams/__init__.py +3 -0
- package/plugins/platforms/teams/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/platforms/teams/__pycache__/adapter.cpython-312.pyc +0 -0
- package/plugins/platforms/teams/adapter.py +1188 -0
- package/plugins/platforms/teams/plugin.yaml +48 -0
- package/plugins/spotify/__init__.py +66 -0
- package/plugins/spotify/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/spotify/__pycache__/client.cpython-312.pyc +0 -0
- package/plugins/spotify/__pycache__/tools.cpython-312.pyc +0 -0
- package/plugins/spotify/client.py +435 -0
- package/plugins/spotify/plugin.yaml +13 -0
- package/plugins/spotify/tools.py +454 -0
- package/plugins/teams_pipeline/__init__.py +23 -0
- package/plugins/teams_pipeline/cli.py +463 -0
- package/plugins/teams_pipeline/meetings.py +333 -0
- package/plugins/teams_pipeline/models.py +350 -0
- package/plugins/teams_pipeline/pipeline.py +692 -0
- package/plugins/teams_pipeline/plugin.yaml +9 -0
- package/plugins/teams_pipeline/runtime.py +135 -0
- package/plugins/teams_pipeline/store.py +194 -0
- package/plugins/teams_pipeline/subscriptions.py +249 -0
- package/plugins/video_gen/fal/__init__.py +523 -0
- package/plugins/video_gen/fal/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/video_gen/fal/plugin.yaml +7 -0
- package/plugins/video_gen/xai/__init__.py +441 -0
- package/plugins/video_gen/xai/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/video_gen/xai/plugin.yaml +7 -0
- package/plugins/web/__init__.py +7 -0
- package/plugins/web/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/web/brave_free/__init__.py +14 -0
- package/plugins/web/brave_free/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/web/brave_free/__pycache__/provider.cpython-312.pyc +0 -0
- package/plugins/web/brave_free/plugin.yaml +7 -0
- package/plugins/web/brave_free/provider.py +137 -0
- package/plugins/web/ddgs/__init__.py +15 -0
- package/plugins/web/ddgs/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/web/ddgs/__pycache__/provider.cpython-312.pyc +0 -0
- package/plugins/web/ddgs/plugin.yaml +7 -0
- package/plugins/web/ddgs/provider.py +104 -0
- package/plugins/web/exa/__init__.py +15 -0
- package/plugins/web/exa/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/web/exa/__pycache__/provider.cpython-312.pyc +0 -0
- package/plugins/web/exa/plugin.yaml +7 -0
- package/plugins/web/exa/provider.py +212 -0
- package/plugins/web/firecrawl/__init__.py +28 -0
- package/plugins/web/firecrawl/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/web/firecrawl/__pycache__/provider.cpython-312.pyc +0 -0
- package/plugins/web/firecrawl/plugin.yaml +7 -0
- package/plugins/web/firecrawl/provider.py +773 -0
- package/plugins/web/parallel/__init__.py +16 -0
- package/plugins/web/parallel/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/web/parallel/__pycache__/provider.cpython-312.pyc +0 -0
- package/plugins/web/parallel/plugin.yaml +7 -0
- package/plugins/web/parallel/provider.py +291 -0
- package/plugins/web/searxng/__init__.py +15 -0
- package/plugins/web/searxng/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/web/searxng/__pycache__/provider.cpython-312.pyc +0 -0
- package/plugins/web/searxng/plugin.yaml +7 -0
- package/plugins/web/searxng/provider.py +140 -0
- package/plugins/web/tavily/__init__.py +15 -0
- package/plugins/web/tavily/__pycache__/__init__.cpython-312.pyc +0 -0
- package/plugins/web/tavily/__pycache__/provider.cpython-312.pyc +0 -0
- package/plugins/web/tavily/plugin.yaml +7 -0
- package/plugins/web/tavily/provider.py +285 -0
- package/providers/README.md +78 -0
- package/providers/__init__.py +192 -0
- package/providers/__pycache__/__init__.cpython-312.pyc +0 -0
- package/providers/__pycache__/base.cpython-312.pyc +0 -0
- package/providers/base.py +184 -0
- package/pyproject.toml +255 -0
- package/run_agent.py +16409 -0
- package/scripts/benchmark_browser_eval.py +138 -0
- package/scripts/build_model_catalog.py +95 -0
- package/scripts/build_skills_index.py +325 -0
- package/scripts/check-windows-footguns.py +624 -0
- package/scripts/contributor_audit.py +473 -0
- package/scripts/discord-voice-doctor.py +396 -0
- package/scripts/hermes-gateway +416 -0
- package/scripts/install.cmd +28 -0
- package/scripts/install.ps1 +1611 -0
- package/scripts/install.sh +2007 -0
- package/scripts/install_psutil_android.py +117 -0
- package/scripts/keystroke_diagnostic.py +81 -0
- package/scripts/kill_modal.sh +34 -0
- package/scripts/lib/node-bootstrap.sh +238 -0
- package/scripts/lint_diff.py +207 -0
- package/scripts/postinstall.js +150 -0
- package/scripts/profile-tui.py +626 -0
- package/scripts/release.py +1680 -0
- package/scripts/run_tests.sh +129 -0
- package/scripts/sample_and_compress.py +409 -0
- package/scripts/setup_open_webui.sh +349 -0
- package/scripts/whatsapp-bridge/allowlist.js +88 -0
- package/scripts/whatsapp-bridge/allowlist.test.mjs +80 -0
- package/scripts/whatsapp-bridge/bridge.js +729 -0
- package/scripts/whatsapp-bridge/package-lock.json +2141 -0
- package/scripts/whatsapp-bridge/package.json +19 -0
- package/skills/apple/DESCRIPTION.md +2 -0
- package/skills/apple/apple-notes/SKILL.md +90 -0
- package/skills/apple/apple-reminders/SKILL.md +98 -0
- package/skills/apple/findmy/SKILL.md +131 -0
- package/skills/apple/imessage/SKILL.md +102 -0
- package/skills/apple/macos-computer-use/SKILL.md +201 -0
- package/skills/autonomous-ai-agents/DESCRIPTION.md +3 -0
- package/skills/autonomous-ai-agents/claude-code/SKILL.md +745 -0
- package/skills/autonomous-ai-agents/codex/SKILL.md +130 -0
- package/skills/autonomous-ai-agents/hermes-agent/SKILL.md +1014 -0
- package/skills/autonomous-ai-agents/opencode/SKILL.md +219 -0
- package/skills/creative/DESCRIPTION.md +3 -0
- package/skills/creative/architecture-diagram/SKILL.md +148 -0
- package/skills/creative/architecture-diagram/templates/template.html +319 -0
- package/skills/creative/ascii-art/SKILL.md +322 -0
- package/skills/creative/ascii-video/README.md +290 -0
- package/skills/creative/ascii-video/SKILL.md +241 -0
- package/skills/creative/ascii-video/references/architecture.md +802 -0
- package/skills/creative/ascii-video/references/composition.md +892 -0
- package/skills/creative/ascii-video/references/effects.md +1865 -0
- package/skills/creative/ascii-video/references/inputs.md +685 -0
- package/skills/creative/ascii-video/references/optimization.md +688 -0
- package/skills/creative/ascii-video/references/scenes.md +1011 -0
- package/skills/creative/ascii-video/references/shaders.md +1385 -0
- package/skills/creative/ascii-video/references/troubleshooting.md +367 -0
- package/skills/creative/baoyu-comic/PORT_NOTES.md +77 -0
- package/skills/creative/baoyu-comic/SKILL.md +247 -0
- package/skills/creative/baoyu-comic/references/analysis-framework.md +176 -0
- package/skills/creative/baoyu-comic/references/art-styles/chalk.md +101 -0
- package/skills/creative/baoyu-comic/references/art-styles/ink-brush.md +97 -0
- package/skills/creative/baoyu-comic/references/art-styles/ligne-claire.md +75 -0
- package/skills/creative/baoyu-comic/references/art-styles/manga.md +93 -0
- package/skills/creative/baoyu-comic/references/art-styles/minimalist.md +84 -0
- package/skills/creative/baoyu-comic/references/art-styles/realistic.md +89 -0
- package/skills/creative/baoyu-comic/references/auto-selection.md +71 -0
- package/skills/creative/baoyu-comic/references/base-prompt.md +98 -0
- package/skills/creative/baoyu-comic/references/character-template.md +180 -0
- package/skills/creative/baoyu-comic/references/layouts/cinematic.md +23 -0
- package/skills/creative/baoyu-comic/references/layouts/dense.md +23 -0
- package/skills/creative/baoyu-comic/references/layouts/four-panel.md +40 -0
- package/skills/creative/baoyu-comic/references/layouts/mixed.md +23 -0
- package/skills/creative/baoyu-comic/references/layouts/splash.md +23 -0
- package/skills/creative/baoyu-comic/references/layouts/standard.md +23 -0
- package/skills/creative/baoyu-comic/references/layouts/webtoon.md +30 -0
- package/skills/creative/baoyu-comic/references/ohmsha-guide.md +85 -0
- package/skills/creative/baoyu-comic/references/partial-workflows.md +106 -0
- package/skills/creative/baoyu-comic/references/presets/concept-story.md +121 -0
- package/skills/creative/baoyu-comic/references/presets/four-panel.md +107 -0
- package/skills/creative/baoyu-comic/references/presets/ohmsha.md +114 -0
- package/skills/creative/baoyu-comic/references/presets/shoujo.md +116 -0
- package/skills/creative/baoyu-comic/references/presets/wuxia.md +110 -0
- package/skills/creative/baoyu-comic/references/storyboard-template.md +143 -0
- package/skills/creative/baoyu-comic/references/tones/action.md +110 -0
- package/skills/creative/baoyu-comic/references/tones/dramatic.md +95 -0
- package/skills/creative/baoyu-comic/references/tones/energetic.md +105 -0
- package/skills/creative/baoyu-comic/references/tones/neutral.md +63 -0
- package/skills/creative/baoyu-comic/references/tones/romantic.md +100 -0
- package/skills/creative/baoyu-comic/references/tones/vintage.md +104 -0
- package/skills/creative/baoyu-comic/references/tones/warm.md +94 -0
- package/skills/creative/baoyu-comic/references/workflow.md +401 -0
- package/skills/creative/baoyu-infographic/PORT_NOTES.md +43 -0
- package/skills/creative/baoyu-infographic/SKILL.md +237 -0
- package/skills/creative/baoyu-infographic/references/analysis-framework.md +182 -0
- package/skills/creative/baoyu-infographic/references/base-prompt.md +43 -0
- package/skills/creative/baoyu-infographic/references/layouts/bento-grid.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/binary-comparison.md +48 -0
- package/skills/creative/baoyu-infographic/references/layouts/bridge.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/circular-flow.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/comic-strip.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/comparison-matrix.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/dashboard.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/dense-modules.md +72 -0
- package/skills/creative/baoyu-infographic/references/layouts/funnel.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/hierarchical-layers.md +48 -0
- package/skills/creative/baoyu-infographic/references/layouts/hub-spoke.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/iceberg.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/isometric-map.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/jigsaw.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/linear-progression.md +48 -0
- package/skills/creative/baoyu-infographic/references/layouts/periodic-table.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/story-mountain.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/structural-breakdown.md +48 -0
- package/skills/creative/baoyu-infographic/references/layouts/tree-branching.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/venn-diagram.md +41 -0
- package/skills/creative/baoyu-infographic/references/layouts/winding-roadmap.md +41 -0
- package/skills/creative/baoyu-infographic/references/structured-content-template.md +244 -0
- package/skills/creative/baoyu-infographic/references/styles/aged-academia.md +36 -0
- package/skills/creative/baoyu-infographic/references/styles/bold-graphic.md +36 -0
- package/skills/creative/baoyu-infographic/references/styles/chalkboard.md +61 -0
- package/skills/creative/baoyu-infographic/references/styles/claymation.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/corporate-memphis.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/craft-handmade.md +44 -0
- package/skills/creative/baoyu-infographic/references/styles/cyberpunk-neon.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/hand-drawn-edu.md +63 -0
- package/skills/creative/baoyu-infographic/references/styles/ikea-manual.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/kawaii.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/knolling.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/lego-brick.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/morandi-journal.md +60 -0
- package/skills/creative/baoyu-infographic/references/styles/origami.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/pixel-art.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/pop-laboratory.md +48 -0
- package/skills/creative/baoyu-infographic/references/styles/retro-pop-grid.md +47 -0
- package/skills/creative/baoyu-infographic/references/styles/storybook-watercolor.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/subway-map.md +29 -0
- package/skills/creative/baoyu-infographic/references/styles/technical-schematic.md +36 -0
- package/skills/creative/baoyu-infographic/references/styles/ui-wireframe.md +29 -0
- package/skills/creative/claude-design/SKILL.md +591 -0
- package/skills/creative/comfyui/SKILL.md +612 -0
- package/skills/creative/comfyui/references/official-cli.md +255 -0
- package/skills/creative/comfyui/references/rest-api.md +312 -0
- package/skills/creative/comfyui/references/template-integrity.md +243 -0
- package/skills/creative/comfyui/references/workflow-format.md +226 -0
- package/skills/creative/comfyui/scripts/_common.py +835 -0
- package/skills/creative/comfyui/scripts/auto_fix_deps.py +225 -0
- package/skills/creative/comfyui/scripts/check_deps.py +437 -0
- package/skills/creative/comfyui/scripts/comfyui_setup.sh +286 -0
- package/skills/creative/comfyui/scripts/extract_schema.py +315 -0
- package/skills/creative/comfyui/scripts/fetch_logs.py +158 -0
- package/skills/creative/comfyui/scripts/hardware_check.py +497 -0
- package/skills/creative/comfyui/scripts/health_check.py +223 -0
- package/skills/creative/comfyui/scripts/run_batch.py +243 -0
- package/skills/creative/comfyui/scripts/run_workflow.py +796 -0
- package/skills/creative/comfyui/scripts/ws_monitor.py +267 -0
- package/skills/creative/comfyui/tests/README.md +50 -0
- package/skills/creative/comfyui/tests/conftest.py +64 -0
- package/skills/creative/comfyui/tests/pytest.ini +5 -0
- package/skills/creative/comfyui/tests/test_check_deps.py +68 -0
- package/skills/creative/comfyui/tests/test_cloud_integration.py +95 -0
- package/skills/creative/comfyui/tests/test_common.py +447 -0
- package/skills/creative/comfyui/tests/test_extract_schema.py +185 -0
- package/skills/creative/comfyui/tests/test_run_workflow.py +213 -0
- package/skills/creative/comfyui/workflows/README.md +86 -0
- package/skills/creative/comfyui/workflows/animatediff_video.json +64 -0
- package/skills/creative/comfyui/workflows/flux_dev_txt2img.json +78 -0
- package/skills/creative/comfyui/workflows/sd15_txt2img.json +49 -0
- package/skills/creative/comfyui/workflows/sdxl_img2img.json +54 -0
- package/skills/creative/comfyui/workflows/sdxl_inpaint.json +59 -0
- package/skills/creative/comfyui/workflows/sdxl_txt2img.json +49 -0
- package/skills/creative/comfyui/workflows/upscale_4x.json +27 -0
- package/skills/creative/comfyui/workflows/wan_video_t2v.json +69 -0
- package/skills/creative/creative-ideation/SKILL.md +152 -0
- package/skills/creative/creative-ideation/references/full-prompt-library.md +110 -0
- package/skills/creative/design-md/SKILL.md +199 -0
- package/skills/creative/design-md/templates/starter.md +99 -0
- package/skills/creative/excalidraw/SKILL.md +199 -0
- package/skills/creative/excalidraw/references/colors.md +44 -0
- package/skills/creative/excalidraw/references/dark-mode.md +68 -0
- package/skills/creative/excalidraw/references/examples.md +141 -0
- package/skills/creative/excalidraw/scripts/upload.py +133 -0
- package/skills/creative/humanizer/LICENSE +21 -0
- package/skills/creative/humanizer/SKILL.md +578 -0
- package/skills/creative/manim-video/README.md +23 -0
- package/skills/creative/manim-video/SKILL.md +269 -0
- package/skills/creative/manim-video/references/animation-design-thinking.md +161 -0
- package/skills/creative/manim-video/references/animations.md +282 -0
- package/skills/creative/manim-video/references/camera-and-3d.md +135 -0
- package/skills/creative/manim-video/references/decorations.md +202 -0
- package/skills/creative/manim-video/references/equations.md +216 -0
- package/skills/creative/manim-video/references/graphs-and-data.md +163 -0
- package/skills/creative/manim-video/references/mobjects.md +333 -0
- package/skills/creative/manim-video/references/paper-explainer.md +255 -0
- package/skills/creative/manim-video/references/production-quality.md +190 -0
- package/skills/creative/manim-video/references/rendering.md +185 -0
- package/skills/creative/manim-video/references/scene-planning.md +118 -0
- package/skills/creative/manim-video/references/troubleshooting.md +135 -0
- package/skills/creative/manim-video/references/updaters-and-trackers.md +260 -0
- package/skills/creative/manim-video/references/visual-design.md +124 -0
- package/skills/creative/manim-video/scripts/setup.sh +14 -0
- package/skills/creative/p5js/README.md +64 -0
- package/skills/creative/p5js/SKILL.md +556 -0
- package/skills/creative/p5js/references/animation.md +439 -0
- package/skills/creative/p5js/references/color-systems.md +352 -0
- package/skills/creative/p5js/references/core-api.md +410 -0
- package/skills/creative/p5js/references/export-pipeline.md +566 -0
- package/skills/creative/p5js/references/interaction.md +398 -0
- package/skills/creative/p5js/references/shapes-and-geometry.md +300 -0
- package/skills/creative/p5js/references/troubleshooting.md +532 -0
- package/skills/creative/p5js/references/typography.md +302 -0
- package/skills/creative/p5js/references/visual-effects.md +895 -0
- package/skills/creative/p5js/references/webgl-and-3d.md +423 -0
- package/skills/creative/p5js/scripts/export-frames.js +179 -0
- package/skills/creative/p5js/scripts/render.sh +108 -0
- package/skills/creative/p5js/scripts/serve.sh +28 -0
- package/skills/creative/p5js/scripts/setup.sh +87 -0
- package/skills/creative/p5js/templates/viewer.html +395 -0
- package/skills/creative/pixel-art/ATTRIBUTION.md +54 -0
- package/skills/creative/pixel-art/SKILL.md +218 -0
- package/skills/creative/pixel-art/references/palettes.md +49 -0
- package/skills/creative/pixel-art/scripts/__init__.py +0 -0
- package/skills/creative/pixel-art/scripts/palettes.py +167 -0
- package/skills/creative/pixel-art/scripts/pixel_art.py +162 -0
- package/skills/creative/pixel-art/scripts/pixel_art_video.py +345 -0
- package/skills/creative/popular-web-designs/SKILL.md +214 -0
- package/skills/creative/popular-web-designs/templates/airbnb.md +259 -0
- package/skills/creative/popular-web-designs/templates/airtable.md +102 -0
- package/skills/creative/popular-web-designs/templates/apple.md +326 -0
- package/skills/creative/popular-web-designs/templates/bmw.md +193 -0
- package/skills/creative/popular-web-designs/templates/cal.md +272 -0
- package/skills/creative/popular-web-designs/templates/claude.md +325 -0
- package/skills/creative/popular-web-designs/templates/clay.md +317 -0
- package/skills/creative/popular-web-designs/templates/clickhouse.md +294 -0
- package/skills/creative/popular-web-designs/templates/cohere.md +279 -0
- package/skills/creative/popular-web-designs/templates/coinbase.md +142 -0
- package/skills/creative/popular-web-designs/templates/composio.md +320 -0
- package/skills/creative/popular-web-designs/templates/cursor.md +322 -0
- package/skills/creative/popular-web-designs/templates/elevenlabs.md +278 -0
- package/skills/creative/popular-web-designs/templates/expo.md +294 -0
- package/skills/creative/popular-web-designs/templates/figma.md +233 -0
- package/skills/creative/popular-web-designs/templates/framer.md +259 -0
- package/skills/creative/popular-web-designs/templates/hashicorp.md +291 -0
- package/skills/creative/popular-web-designs/templates/ibm.md +345 -0
- package/skills/creative/popular-web-designs/templates/intercom.md +159 -0
- package/skills/creative/popular-web-designs/templates/kraken.md +138 -0
- package/skills/creative/popular-web-designs/templates/linear.app.md +380 -0
- package/skills/creative/popular-web-designs/templates/lovable.md +311 -0
- package/skills/creative/popular-web-designs/templates/minimax.md +270 -0
- package/skills/creative/popular-web-designs/templates/mintlify.md +339 -0
- package/skills/creative/popular-web-designs/templates/miro.md +121 -0
- package/skills/creative/popular-web-designs/templates/mistral.ai.md +274 -0
- package/skills/creative/popular-web-designs/templates/mongodb.md +279 -0
- package/skills/creative/popular-web-designs/templates/notion.md +322 -0
- package/skills/creative/popular-web-designs/templates/nvidia.md +306 -0
- package/skills/creative/popular-web-designs/templates/ollama.md +280 -0
- package/skills/creative/popular-web-designs/templates/opencode.ai.md +294 -0
- package/skills/creative/popular-web-designs/templates/pinterest.md +243 -0
- package/skills/creative/popular-web-designs/templates/posthog.md +269 -0
- package/skills/creative/popular-web-designs/templates/raycast.md +281 -0
- package/skills/creative/popular-web-designs/templates/replicate.md +274 -0
- package/skills/creative/popular-web-designs/templates/resend.md +316 -0
- package/skills/creative/popular-web-designs/templates/revolut.md +198 -0
- package/skills/creative/popular-web-designs/templates/runwayml.md +257 -0
- package/skills/creative/popular-web-designs/templates/sanity.md +370 -0
- package/skills/creative/popular-web-designs/templates/sentry.md +275 -0
- package/skills/creative/popular-web-designs/templates/spacex.md +207 -0
- package/skills/creative/popular-web-designs/templates/spotify.md +259 -0
- package/skills/creative/popular-web-designs/templates/stripe.md +335 -0
- package/skills/creative/popular-web-designs/templates/supabase.md +268 -0
- package/skills/creative/popular-web-designs/templates/superhuman.md +265 -0
- package/skills/creative/popular-web-designs/templates/together.ai.md +276 -0
- package/skills/creative/popular-web-designs/templates/uber.md +308 -0
- package/skills/creative/popular-web-designs/templates/vercel.md +323 -0
- package/skills/creative/popular-web-designs/templates/voltagent.md +336 -0
- package/skills/creative/popular-web-designs/templates/warp.md +266 -0
- package/skills/creative/popular-web-designs/templates/webflow.md +105 -0
- package/skills/creative/popular-web-designs/templates/wise.md +186 -0
- package/skills/creative/popular-web-designs/templates/x.ai.md +270 -0
- package/skills/creative/popular-web-designs/templates/zapier.md +341 -0
- package/skills/creative/pretext/SKILL.md +220 -0
- package/skills/creative/pretext/references/patterns.md +258 -0
- package/skills/creative/pretext/templates/donut-orbit.html +1468 -0
- package/skills/creative/pretext/templates/hello-orb-flow.html +95 -0
- package/skills/creative/sketch/SKILL.md +218 -0
- package/skills/creative/songwriting-and-ai-music/SKILL.md +287 -0
- package/skills/creative/touchdesigner-mcp/SKILL.md +356 -0
- package/skills/creative/touchdesigner-mcp/references/3d-scene.md +275 -0
- package/skills/creative/touchdesigner-mcp/references/animation.md +221 -0
- package/skills/creative/touchdesigner-mcp/references/audio-reactive.md +175 -0
- package/skills/creative/touchdesigner-mcp/references/dat-scripting.md +352 -0
- package/skills/creative/touchdesigner-mcp/references/external-data.md +322 -0
- package/skills/creative/touchdesigner-mcp/references/geometry-comp.md +121 -0
- package/skills/creative/touchdesigner-mcp/references/glsl.md +151 -0
- package/skills/creative/touchdesigner-mcp/references/layout-compositor.md +131 -0
- package/skills/creative/touchdesigner-mcp/references/mcp-tools.md +382 -0
- package/skills/creative/touchdesigner-mcp/references/midi-osc.md +211 -0
- package/skills/creative/touchdesigner-mcp/references/network-patterns.md +966 -0
- package/skills/creative/touchdesigner-mcp/references/operator-tips.md +106 -0
- package/skills/creative/touchdesigner-mcp/references/operators.md +239 -0
- package/skills/creative/touchdesigner-mcp/references/panel-ui.md +281 -0
- package/skills/creative/touchdesigner-mcp/references/particles.md +245 -0
- package/skills/creative/touchdesigner-mcp/references/pitfalls.md +704 -0
- package/skills/creative/touchdesigner-mcp/references/postfx.md +183 -0
- package/skills/creative/touchdesigner-mcp/references/projection-mapping.md +211 -0
- package/skills/creative/touchdesigner-mcp/references/python-api.md +463 -0
- package/skills/creative/touchdesigner-mcp/references/replicator.md +198 -0
- package/skills/creative/touchdesigner-mcp/references/troubleshooting.md +244 -0
- package/skills/creative/touchdesigner-mcp/scripts/setup.sh +115 -0
- package/skills/data-science/DESCRIPTION.md +3 -0
- package/skills/data-science/jupyter-live-kernel/SKILL.md +167 -0
- package/skills/devops/kanban-orchestrator/SKILL.md +189 -0
- package/skills/devops/kanban-worker/SKILL.md +184 -0
- package/skills/devops/webhook-subscriptions/SKILL.md +204 -0
- package/skills/diagramming/DESCRIPTION.md +3 -0
- package/skills/dogfood/SKILL.md +162 -0
- package/skills/dogfood/references/issue-taxonomy.md +109 -0
- package/skills/dogfood/templates/dogfood-report-template.md +86 -0
- package/skills/domain/DESCRIPTION.md +24 -0
- package/skills/email/DESCRIPTION.md +3 -0
- package/skills/email/himalaya/SKILL.md +299 -0
- package/skills/email/himalaya/references/configuration.md +227 -0
- package/skills/email/himalaya/references/message-composition.md +199 -0
- package/skills/gaming/DESCRIPTION.md +3 -0
- package/skills/gaming/minecraft-modpack-server/SKILL.md +187 -0
- package/skills/gaming/pokemon-player/SKILL.md +216 -0
- package/skills/gifs/DESCRIPTION.md +3 -0
- package/skills/github/DESCRIPTION.md +3 -0
- package/skills/github/codebase-inspection/SKILL.md +116 -0
- package/skills/github/github-auth/SKILL.md +247 -0
- package/skills/github/github-auth/scripts/gh-env.sh +66 -0
- package/skills/github/github-code-review/SKILL.md +481 -0
- package/skills/github/github-code-review/references/review-output-template.md +74 -0
- package/skills/github/github-issues/SKILL.md +370 -0
- package/skills/github/github-issues/templates/bug-report.md +35 -0
- package/skills/github/github-issues/templates/feature-request.md +31 -0
- package/skills/github/github-pr-workflow/SKILL.md +367 -0
- package/skills/github/github-pr-workflow/references/ci-troubleshooting.md +183 -0
- package/skills/github/github-pr-workflow/references/conventional-commits.md +71 -0
- package/skills/github/github-pr-workflow/templates/pr-body-bugfix.md +35 -0
- package/skills/github/github-pr-workflow/templates/pr-body-feature.md +33 -0
- package/skills/github/github-repo-management/SKILL.md +516 -0
- package/skills/github/github-repo-management/references/github-api-cheatsheet.md +161 -0
- package/skills/index-cache/anthropics_skills_skills_.json +1 -0
- package/skills/index-cache/claude_marketplace_anthropics_skills.json +1 -0
- package/skills/index-cache/lobehub_index.json +1 -0
- package/skills/index-cache/openai_skills_skills_.json +1 -0
- package/skills/inference-sh/DESCRIPTION.md +19 -0
- package/skills/mcp/DESCRIPTION.md +3 -0
- package/skills/mcp/native-mcp/SKILL.md +357 -0
- package/skills/media/DESCRIPTION.md +3 -0
- package/skills/media/gif-search/SKILL.md +91 -0
- package/skills/media/heartmula/SKILL.md +171 -0
- package/skills/media/songsee/SKILL.md +83 -0
- package/skills/media/spotify/SKILL.md +135 -0
- package/skills/media/youtube-content/SKILL.md +73 -0
- package/skills/media/youtube-content/references/output-formats.md +56 -0
- package/skills/media/youtube-content/scripts/fetch_transcript.py +124 -0
- package/skills/mlops/DESCRIPTION.md +3 -0
- package/skills/mlops/evaluation/DESCRIPTION.md +3 -0
- package/skills/mlops/evaluation/lm-evaluation-harness/SKILL.md +498 -0
- package/skills/mlops/evaluation/lm-evaluation-harness/references/api-evaluation.md +490 -0
- package/skills/mlops/evaluation/lm-evaluation-harness/references/benchmark-guide.md +488 -0
- package/skills/mlops/evaluation/lm-evaluation-harness/references/custom-tasks.md +602 -0
- package/skills/mlops/evaluation/lm-evaluation-harness/references/distributed-eval.md +519 -0
- package/skills/mlops/evaluation/weights-and-biases/SKILL.md +594 -0
- package/skills/mlops/evaluation/weights-and-biases/references/artifacts.md +584 -0
- package/skills/mlops/evaluation/weights-and-biases/references/integrations.md +700 -0
- package/skills/mlops/evaluation/weights-and-biases/references/sweeps.md +847 -0
- package/skills/mlops/huggingface-hub/SKILL.md +81 -0
- package/skills/mlops/inference/DESCRIPTION.md +3 -0
- package/skills/mlops/inference/llama-cpp/SKILL.md +249 -0
- package/skills/mlops/inference/llama-cpp/references/advanced-usage.md +504 -0
- package/skills/mlops/inference/llama-cpp/references/hub-discovery.md +168 -0
- package/skills/mlops/inference/llama-cpp/references/optimization.md +89 -0
- package/skills/mlops/inference/llama-cpp/references/quantization.md +243 -0
- package/skills/mlops/inference/llama-cpp/references/server.md +150 -0
- package/skills/mlops/inference/llama-cpp/references/troubleshooting.md +442 -0
- package/skills/mlops/inference/obliteratus/SKILL.md +342 -0
- package/skills/mlops/inference/obliteratus/references/analysis-modules.md +166 -0
- package/skills/mlops/inference/obliteratus/references/methods-guide.md +141 -0
- package/skills/mlops/inference/obliteratus/templates/abliteration-config.yaml +33 -0
- package/skills/mlops/inference/obliteratus/templates/analysis-study.yaml +40 -0
- package/skills/mlops/inference/obliteratus/templates/batch-abliteration.yaml +41 -0
- package/skills/mlops/inference/vllm/SKILL.md +372 -0
- package/skills/mlops/inference/vllm/references/optimization.md +226 -0
- package/skills/mlops/inference/vllm/references/quantization.md +284 -0
- package/skills/mlops/inference/vllm/references/server-deployment.md +255 -0
- package/skills/mlops/inference/vllm/references/troubleshooting.md +447 -0
- package/skills/mlops/models/DESCRIPTION.md +3 -0
- package/skills/mlops/models/audiocraft/SKILL.md +568 -0
- package/skills/mlops/models/audiocraft/references/advanced-usage.md +666 -0
- package/skills/mlops/models/audiocraft/references/troubleshooting.md +504 -0
- package/skills/mlops/models/segment-anything/SKILL.md +506 -0
- package/skills/mlops/models/segment-anything/references/advanced-usage.md +589 -0
- package/skills/mlops/models/segment-anything/references/troubleshooting.md +484 -0
- package/skills/mlops/research/DESCRIPTION.md +3 -0
- package/skills/mlops/research/dspy/SKILL.md +594 -0
- package/skills/mlops/research/dspy/references/examples.md +663 -0
- package/skills/mlops/research/dspy/references/modules.md +475 -0
- package/skills/mlops/research/dspy/references/optimizers.md +566 -0
- package/skills/mlops/training/DESCRIPTION.md +3 -0
- package/skills/mlops/vector-databases/DESCRIPTION.md +3 -0
- package/skills/note-taking/DESCRIPTION.md +3 -0
- package/skills/note-taking/obsidian/SKILL.md +61 -0
- package/skills/productivity/DESCRIPTION.md +3 -0
- package/skills/productivity/airtable/SKILL.md +229 -0
- package/skills/productivity/google-workspace/SKILL.md +335 -0
- package/skills/productivity/google-workspace/references/gmail-search-syntax.md +63 -0
- package/skills/productivity/google-workspace/scripts/_hermes_home.py +43 -0
- package/skills/productivity/google-workspace/scripts/google_api.py +1221 -0
- package/skills/productivity/google-workspace/scripts/gws_bridge.py +108 -0
- package/skills/productivity/google-workspace/scripts/setup.py +454 -0
- package/skills/productivity/linear/SKILL.md +380 -0
- package/skills/productivity/linear/scripts/linear_api.py +445 -0
- package/skills/productivity/maps/SKILL.md +195 -0
- package/skills/productivity/maps/scripts/maps_client.py +1298 -0
- package/skills/productivity/nano-pdf/SKILL.md +52 -0
- package/skills/productivity/notion/SKILL.md +448 -0
- package/skills/productivity/notion/references/block-types.md +112 -0
- package/skills/productivity/ocr-and-documents/DESCRIPTION.md +3 -0
- package/skills/productivity/ocr-and-documents/SKILL.md +172 -0
- package/skills/productivity/ocr-and-documents/scripts/extract_marker.py +87 -0
- package/skills/productivity/ocr-and-documents/scripts/extract_pymupdf.py +98 -0
- package/skills/productivity/powerpoint/LICENSE.txt +30 -0
- package/skills/productivity/powerpoint/SKILL.md +237 -0
- package/skills/productivity/powerpoint/editing.md +205 -0
- package/skills/productivity/powerpoint/pptxgenjs.md +420 -0
- package/skills/productivity/powerpoint/scripts/__init__.py +0 -0
- package/skills/productivity/powerpoint/scripts/add_slide.py +195 -0
- package/skills/productivity/powerpoint/scripts/clean.py +286 -0
- package/skills/productivity/powerpoint/scripts/office/helpers/__init__.py +0 -0
- package/skills/productivity/powerpoint/scripts/office/helpers/merge_runs.py +199 -0
- package/skills/productivity/powerpoint/scripts/office/helpers/simplify_redlines.py +197 -0
- package/skills/productivity/powerpoint/scripts/office/pack.py +159 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-contentTypes.xsd +42 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-coreProperties.xsd +50 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-digSig.xsd +49 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-relationships.xsd +33 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/mce/mc.xsd +75 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/productivity/teams-meeting-pipeline/SKILL.md +116 -0
- package/skills/red-teaming/godmode/SKILL.md +404 -0
- package/skills/red-teaming/godmode/references/jailbreak-templates.md +128 -0
- package/skills/red-teaming/godmode/references/refusal-detection.md +142 -0
- package/skills/red-teaming/godmode/scripts/auto_jailbreak.py +769 -0
- package/skills/red-teaming/godmode/scripts/godmode_race.py +530 -0
- package/skills/red-teaming/godmode/scripts/load_godmode.py +45 -0
- package/skills/red-teaming/godmode/scripts/parseltongue.py +550 -0
- package/skills/red-teaming/godmode/templates/prefill-subtle.json +10 -0
- package/skills/red-teaming/godmode/templates/prefill.json +18 -0
- package/skills/research/DESCRIPTION.md +3 -0
- package/skills/research/arxiv/SKILL.md +282 -0
- package/skills/research/arxiv/scripts/search_arxiv.py +114 -0
- package/skills/research/blogwatcher/SKILL.md +137 -0
- package/skills/research/llm-wiki/SKILL.md +507 -0
- package/skills/research/polymarket/SKILL.md +77 -0
- package/skills/research/polymarket/references/api-endpoints.md +220 -0
- package/skills/research/polymarket/scripts/polymarket.py +284 -0
- package/skills/research/research-paper-writing/SKILL.md +2377 -0
- package/skills/research/research-paper-writing/references/autoreason-methodology.md +394 -0
- package/skills/research/research-paper-writing/references/checklists.md +434 -0
- package/skills/research/research-paper-writing/references/citation-workflow.md +564 -0
- package/skills/research/research-paper-writing/references/experiment-patterns.md +728 -0
- package/skills/research/research-paper-writing/references/human-evaluation.md +476 -0
- package/skills/research/research-paper-writing/references/paper-types.md +481 -0
- package/skills/research/research-paper-writing/references/reviewer-guidelines.md +433 -0
- package/skills/research/research-paper-writing/references/sources.md +191 -0
- package/skills/research/research-paper-writing/references/writing-guide.md +474 -0
- package/skills/research/research-paper-writing/templates/README.md +251 -0
- package/skills/research/research-paper-writing/templates/aaai2026/README.md +534 -0
- package/skills/research/research-paper-writing/templates/aaai2026/aaai2026-unified-supp.tex +144 -0
- package/skills/research/research-paper-writing/templates/aaai2026/aaai2026-unified-template.tex +952 -0
- package/skills/research/research-paper-writing/templates/aaai2026/aaai2026.bib +111 -0
- package/skills/research/research-paper-writing/templates/aaai2026/aaai2026.bst +1493 -0
- package/skills/research/research-paper-writing/templates/aaai2026/aaai2026.sty +315 -0
- package/skills/research/research-paper-writing/templates/acl/README.md +50 -0
- package/skills/research/research-paper-writing/templates/acl/acl.sty +312 -0
- package/skills/research/research-paper-writing/templates/acl/acl_latex.tex +377 -0
- package/skills/research/research-paper-writing/templates/acl/acl_lualatex.tex +101 -0
- package/skills/research/research-paper-writing/templates/acl/acl_natbib.bst +1940 -0
- package/skills/research/research-paper-writing/templates/acl/anthology.bib.txt +26 -0
- package/skills/research/research-paper-writing/templates/acl/custom.bib +70 -0
- package/skills/research/research-paper-writing/templates/acl/formatting.md +326 -0
- package/skills/research/research-paper-writing/templates/colm2025/README.md +3 -0
- package/skills/research/research-paper-writing/templates/colm2025/colm2025_conference.bib +11 -0
- package/skills/research/research-paper-writing/templates/colm2025/colm2025_conference.bst +1440 -0
- package/skills/research/research-paper-writing/templates/colm2025/colm2025_conference.pdf +0 -0
- package/skills/research/research-paper-writing/templates/colm2025/colm2025_conference.sty +218 -0
- package/skills/research/research-paper-writing/templates/colm2025/colm2025_conference.tex +305 -0
- package/skills/research/research-paper-writing/templates/colm2025/fancyhdr.sty +485 -0
- package/skills/research/research-paper-writing/templates/colm2025/math_commands.tex +508 -0
- package/skills/research/research-paper-writing/templates/colm2025/natbib.sty +1246 -0
- package/skills/research/research-paper-writing/templates/iclr2026/fancyhdr.sty +485 -0
- package/skills/research/research-paper-writing/templates/iclr2026/iclr2026_conference.bib +24 -0
- package/skills/research/research-paper-writing/templates/iclr2026/iclr2026_conference.bst +1440 -0
- package/skills/research/research-paper-writing/templates/iclr2026/iclr2026_conference.pdf +0 -0
- package/skills/research/research-paper-writing/templates/iclr2026/iclr2026_conference.sty +246 -0
- package/skills/research/research-paper-writing/templates/iclr2026/iclr2026_conference.tex +414 -0
- package/skills/research/research-paper-writing/templates/iclr2026/math_commands.tex +508 -0
- package/skills/research/research-paper-writing/templates/iclr2026/natbib.sty +1246 -0
- package/skills/research/research-paper-writing/templates/icml2026/algorithm.sty +79 -0
- package/skills/research/research-paper-writing/templates/icml2026/algorithmic.sty +201 -0
- package/skills/research/research-paper-writing/templates/icml2026/example_paper.bib +75 -0
- package/skills/research/research-paper-writing/templates/icml2026/example_paper.pdf +0 -0
- package/skills/research/research-paper-writing/templates/icml2026/example_paper.tex +662 -0
- package/skills/research/research-paper-writing/templates/icml2026/fancyhdr.sty +864 -0
- package/skills/research/research-paper-writing/templates/icml2026/icml2026.bst +1443 -0
- package/skills/research/research-paper-writing/templates/icml2026/icml2026.sty +767 -0
- package/skills/research/research-paper-writing/templates/icml2026/icml_numpapers.pdf +0 -0
- package/skills/research/research-paper-writing/templates/neurips2025/Makefile +36 -0
- package/skills/research/research-paper-writing/templates/neurips2025/extra_pkgs.tex +53 -0
- package/skills/research/research-paper-writing/templates/neurips2025/main.tex +38 -0
- package/skills/research/research-paper-writing/templates/neurips2025/neurips.sty +382 -0
- package/skills/smart-home/DESCRIPTION.md +3 -0
- package/skills/smart-home/openhue/SKILL.md +109 -0
- package/skills/social-media/DESCRIPTION.md +3 -0
- package/skills/social-media/xurl/SKILL.md +414 -0
- package/skills/software-development/debugging-hermes-tui-commands/SKILL.md +152 -0
- package/skills/software-development/hermes-agent-skill-authoring/SKILL.md +165 -0
- package/skills/software-development/node-inspect-debugger/SKILL.md +319 -0
- package/skills/software-development/plan/SKILL.md +58 -0
- package/skills/software-development/python-debugpy/SKILL.md +375 -0
- package/skills/software-development/requesting-code-review/SKILL.md +280 -0
- package/skills/software-development/spike/SKILL.md +197 -0
- package/skills/software-development/subagent-driven-development/SKILL.md +352 -0
- package/skills/software-development/subagent-driven-development/references/context-budget-discipline.md +53 -0
- package/skills/software-development/subagent-driven-development/references/gates-taxonomy.md +93 -0
- package/skills/software-development/systematic-debugging/SKILL.md +367 -0
- package/skills/software-development/test-driven-development/SKILL.md +343 -0
- package/skills/software-development/writing-plans/SKILL.md +297 -0
- package/skills/yuanbao/SKILL.md +108 -0
- package/tools/__init__.py +25 -0
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/approval.cpython-312.pyc +0 -0
- package/tools/__pycache__/binary_extensions.cpython-312.pyc +0 -0
- package/tools/__pycache__/browser_camofox.cpython-312.pyc +0 -0
- package/tools/__pycache__/browser_camofox_state.cpython-312.pyc +0 -0
- package/tools/__pycache__/browser_cdp_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/browser_dialog_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/browser_supervisor.cpython-312.pyc +0 -0
- package/tools/__pycache__/browser_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/budget_config.cpython-312.pyc +0 -0
- package/tools/__pycache__/checkpoint_manager.cpython-312.pyc +0 -0
- package/tools/__pycache__/clarify_gateway.cpython-312.pyc +0 -0
- package/tools/__pycache__/clarify_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/code_execution_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/computer_use_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/cronjob_tools.cpython-312.pyc +0 -0
- package/tools/__pycache__/debug_helpers.cpython-312.pyc +0 -0
- package/tools/__pycache__/delegate_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/discord_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/feishu_doc_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/feishu_drive_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/file_operations.cpython-312.pyc +0 -0
- package/tools/__pycache__/file_state.cpython-312.pyc +0 -0
- package/tools/__pycache__/file_tools.cpython-312.pyc +0 -0
- package/tools/__pycache__/homeassistant_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/image_generation_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/interrupt.cpython-312.pyc +0 -0
- package/tools/__pycache__/kanban_tools.cpython-312.pyc +0 -0
- package/tools/__pycache__/lazy_deps.cpython-312.pyc +0 -0
- package/tools/__pycache__/managed_tool_gateway.cpython-312.pyc +0 -0
- package/tools/__pycache__/mcp_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/memory_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/mixture_of_agents_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/openrouter_client.cpython-312.pyc +0 -0
- package/tools/__pycache__/process_registry.cpython-312.pyc +0 -0
- package/tools/__pycache__/registry.cpython-312.pyc +0 -0
- package/tools/__pycache__/schema_sanitizer.cpython-312.pyc +0 -0
- package/tools/__pycache__/send_message_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/session_search_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/skill_manager_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/skill_provenance.cpython-312.pyc +0 -0
- package/tools/__pycache__/skill_usage.cpython-312.pyc +0 -0
- package/tools/__pycache__/skills_guard.cpython-312.pyc +0 -0
- package/tools/__pycache__/skills_sync.cpython-312.pyc +0 -0
- package/tools/__pycache__/skills_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/slash_confirm.cpython-312.pyc +0 -0
- package/tools/__pycache__/terminal_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/tirith_security.cpython-312.pyc +0 -0
- package/tools/__pycache__/todo_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/tool_backend_helpers.cpython-312.pyc +0 -0
- package/tools/__pycache__/tool_result_storage.cpython-312.pyc +0 -0
- package/tools/__pycache__/tts_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/url_safety.cpython-312.pyc +0 -0
- package/tools/__pycache__/video_generation_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/vision_tools.cpython-312.pyc +0 -0
- package/tools/__pycache__/voice_mode.cpython-312.pyc +0 -0
- package/tools/__pycache__/web_tools.cpython-312.pyc +0 -0
- package/tools/__pycache__/website_policy.cpython-312.pyc +0 -0
- package/tools/__pycache__/x_search_tool.cpython-312.pyc +0 -0
- package/tools/__pycache__/xai_http.cpython-312.pyc +0 -0
- package/tools/__pycache__/yuanbao_tools.cpython-312.pyc +0 -0
- package/tools/ansi_strip.py +44 -0
- package/tools/approval.py +1392 -0
- package/tools/binary_extensions.py +42 -0
- package/tools/browser_camofox.py +700 -0
- package/tools/browser_camofox_state.py +48 -0
- package/tools/browser_cdp_tool.py +569 -0
- package/tools/browser_dialog_tool.py +148 -0
- package/tools/browser_providers/__init__.py +10 -0
- package/tools/browser_providers/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/browser_providers/__pycache__/base.cpython-312.pyc +0 -0
- package/tools/browser_providers/__pycache__/browser_use.cpython-312.pyc +0 -0
- package/tools/browser_providers/__pycache__/browserbase.cpython-312.pyc +0 -0
- package/tools/browser_providers/__pycache__/firecrawl.cpython-312.pyc +0 -0
- package/tools/browser_providers/base.py +59 -0
- package/tools/browser_providers/browser_use.py +225 -0
- package/tools/browser_providers/browserbase.py +222 -0
- package/tools/browser_providers/firecrawl.py +112 -0
- package/tools/browser_supervisor.py +1457 -0
- package/tools/browser_tool.py +3676 -0
- package/tools/budget_config.py +51 -0
- package/tools/checkpoint_manager.py +1639 -0
- package/tools/clarify_gateway.py +278 -0
- package/tools/clarify_tool.py +141 -0
- package/tools/code_execution_tool.py +1782 -0
- package/tools/computer_use/__init__.py +43 -0
- package/tools/computer_use/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/computer_use/__pycache__/backend.cpython-312.pyc +0 -0
- package/tools/computer_use/__pycache__/schema.cpython-312.pyc +0 -0
- package/tools/computer_use/__pycache__/tool.cpython-312.pyc +0 -0
- package/tools/computer_use/backend.py +150 -0
- package/tools/computer_use/cua_backend.py +682 -0
- package/tools/computer_use/schema.py +191 -0
- package/tools/computer_use/tool.py +521 -0
- package/tools/computer_use_tool.py +39 -0
- package/tools/credential_files.py +437 -0
- package/tools/cronjob_tools.py +719 -0
- package/tools/debug_helpers.py +106 -0
- package/tools/delegate_tool.py +2797 -0
- package/tools/discord_tool.py +959 -0
- package/tools/env_passthrough.py +145 -0
- package/tools/environments/__init__.py +14 -0
- package/tools/environments/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/environments/__pycache__/base.cpython-312.pyc +0 -0
- package/tools/environments/__pycache__/docker.cpython-312.pyc +0 -0
- package/tools/environments/__pycache__/file_sync.cpython-312.pyc +0 -0
- package/tools/environments/__pycache__/local.cpython-312.pyc +0 -0
- package/tools/environments/__pycache__/managed_modal.cpython-312.pyc +0 -0
- package/tools/environments/__pycache__/modal.cpython-312.pyc +0 -0
- package/tools/environments/__pycache__/modal_utils.cpython-312.pyc +0 -0
- package/tools/environments/__pycache__/singularity.cpython-312.pyc +0 -0
- package/tools/environments/__pycache__/ssh.cpython-312.pyc +0 -0
- package/tools/environments/base.py +844 -0
- package/tools/environments/daytona.py +270 -0
- package/tools/environments/docker.py +656 -0
- package/tools/environments/file_sync.py +400 -0
- package/tools/environments/local.py +658 -0
- package/tools/environments/managed_modal.py +282 -0
- package/tools/environments/modal.py +479 -0
- package/tools/environments/modal_utils.py +199 -0
- package/tools/environments/singularity.py +263 -0
- package/tools/environments/ssh.py +295 -0
- package/tools/environments/vercel_sandbox.py +655 -0
- package/tools/feishu_doc_tool.py +138 -0
- package/tools/feishu_drive_tool.py +431 -0
- package/tools/file_operations.py +1825 -0
- package/tools/file_state.py +332 -0
- package/tools/file_tools.py +1172 -0
- package/tools/fuzzy_match.py +703 -0
- package/tools/homeassistant_tool.py +513 -0
- package/tools/image_generation_tool.py +1098 -0
- package/tools/interrupt.py +98 -0
- package/tools/kanban_tools.py +1139 -0
- package/tools/lazy_deps.py +608 -0
- package/tools/managed_tool_gateway.py +168 -0
- package/tools/mcp_oauth.py +633 -0
- package/tools/mcp_oauth_manager.py +607 -0
- package/tools/mcp_tool.py +3483 -0
- package/tools/memory_tool.py +584 -0
- package/tools/microsoft_graph_auth.py +245 -0
- package/tools/microsoft_graph_client.py +408 -0
- package/tools/mixture_of_agents_tool.py +542 -0
- package/tools/neutts_samples/jo.txt +1 -0
- package/tools/neutts_samples/jo.wav +0 -0
- package/tools/neutts_synth.py +104 -0
- package/tools/openrouter_client.py +33 -0
- package/tools/osv_check.py +155 -0
- package/tools/patch_parser.py +592 -0
- package/tools/path_security.py +43 -0
- package/tools/process_registry.py +1534 -0
- package/tools/registry.py +589 -0
- package/tools/schema_sanitizer.py +370 -0
- package/tools/send_message_tool.py +1900 -0
- package/tools/session_search_tool.py +613 -0
- package/tools/skill_manager_tool.py +932 -0
- package/tools/skill_provenance.py +78 -0
- package/tools/skill_usage.py +610 -0
- package/tools/skills_guard.py +932 -0
- package/tools/skills_hub.py +3263 -0
- package/tools/skills_sync.py +432 -0
- package/tools/skills_tool.py +1569 -0
- package/tools/slash_confirm.py +167 -0
- package/tools/terminal_tool.py +2376 -0
- package/tools/tirith_security.py +775 -0
- package/tools/todo_tool.py +277 -0
- package/tools/tool_backend_helpers.py +144 -0
- package/tools/tool_output_limits.py +92 -0
- package/tools/tool_result_storage.py +232 -0
- package/tools/transcription_tools.py +936 -0
- package/tools/tts_tool.py +2285 -0
- package/tools/url_safety.py +330 -0
- package/tools/video_generation_tool.py +561 -0
- package/tools/vision_tools.py +1422 -0
- package/tools/voice_mode.py +1019 -0
- package/tools/web_tools.py +1551 -0
- package/tools/website_policy.py +283 -0
- package/tools/x_search_tool.py +424 -0
- package/tools/xai_http.py +83 -0
- package/tools/yuanbao_tools.py +736 -0
- package/toolset_distributions.py +364 -0
- package/toolsets.py +866 -0
- package/trajectory_compressor.py +1509 -0
- package/tui_gateway/__init__.py +0 -0
- package/tui_gateway/entry.py +251 -0
- package/tui_gateway/event_publisher.py +126 -0
- package/tui_gateway/render.py +49 -0
- package/tui_gateway/server.py +6623 -0
- package/tui_gateway/slash_worker.py +76 -0
- package/tui_gateway/transport.py +219 -0
- package/tui_gateway/ws.py +178 -0
- package/utils.py +361 -0
|
@@ -0,0 +1,1595 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Skills Hub CLI — Unified interface for the Hermes Skills Hub.
|
|
4
|
+
|
|
5
|
+
Powers both:
|
|
6
|
+
- `hermes skills <subcommand>` (CLI argparse entry point)
|
|
7
|
+
- `/skills <subcommand>` (slash command in the interactive chat)
|
|
8
|
+
|
|
9
|
+
All logic lives in shared do_* functions. The CLI entry point and slash command
|
|
10
|
+
handler are thin wrappers that parse args and delegate.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import json
|
|
14
|
+
import re
|
|
15
|
+
import shutil
|
|
16
|
+
from pathlib import Path
|
|
17
|
+
from typing import Any, Dict, List, Optional
|
|
18
|
+
|
|
19
|
+
from rich.console import Console
|
|
20
|
+
from rich.panel import Panel
|
|
21
|
+
from rich.table import Table
|
|
22
|
+
|
|
23
|
+
# Lazy imports to avoid circular dependencies and slow startup.
|
|
24
|
+
# tools.skills_hub and tools.skills_guard are imported inside functions.
|
|
25
|
+
from calvyn_constants import display_hermes_home
|
|
26
|
+
|
|
27
|
+
_console = Console()
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# ---------------------------------------------------------------------------
|
|
31
|
+
# Shared do_* functions
|
|
32
|
+
# ---------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
def _resolve_short_name(name: str, sources, console: Console) -> str:
|
|
35
|
+
"""
|
|
36
|
+
Resolve a short skill name (e.g. 'pptx') to a full identifier by searching
|
|
37
|
+
all sources. If exactly one match is found, returns its identifier. If multiple
|
|
38
|
+
matches exist, shows them and asks the user to use the full identifier.
|
|
39
|
+
Returns empty string if nothing found or ambiguous.
|
|
40
|
+
"""
|
|
41
|
+
from tools.skills_hub import unified_search
|
|
42
|
+
|
|
43
|
+
c = console or _console
|
|
44
|
+
c.print(f"[dim]Resolving '{name}'...[/]")
|
|
45
|
+
|
|
46
|
+
results = unified_search(name, sources, source_filter="all", limit=20)
|
|
47
|
+
|
|
48
|
+
# Filter to exact name matches (case-insensitive)
|
|
49
|
+
exact = [r for r in results if r.name.lower() == name.lower()]
|
|
50
|
+
|
|
51
|
+
if len(exact) == 1:
|
|
52
|
+
c.print(f"[dim]Resolved to: {exact[0].identifier}[/]")
|
|
53
|
+
return exact[0].identifier
|
|
54
|
+
|
|
55
|
+
if len(exact) > 1:
|
|
56
|
+
c.print(f"\n[yellow]Multiple skills named '{name}' found:[/]")
|
|
57
|
+
table = Table()
|
|
58
|
+
table.add_column("Source", style="dim")
|
|
59
|
+
table.add_column("Trust", style="dim")
|
|
60
|
+
table.add_column("Identifier", style="bold cyan")
|
|
61
|
+
for r in exact:
|
|
62
|
+
trust_style = {"builtin": "bright_cyan", "trusted": "green", "community": "yellow"}.get(r.trust_level, "dim")
|
|
63
|
+
trust_label = "official" if r.source == "official" else r.trust_level
|
|
64
|
+
table.add_row(r.source, f"[{trust_style}]{trust_label}[/]", r.identifier)
|
|
65
|
+
c.print(table)
|
|
66
|
+
c.print("[bold]Use the full identifier to install a specific one.[/]\n")
|
|
67
|
+
return ""
|
|
68
|
+
|
|
69
|
+
# No exact match — check if there are partial matches to suggest
|
|
70
|
+
if results:
|
|
71
|
+
c.print(f"[yellow]No exact match for '{name}'. Did you mean one of these?[/]")
|
|
72
|
+
for r in results[:5]:
|
|
73
|
+
c.print(f" [cyan]{r.name}[/] — {r.identifier}")
|
|
74
|
+
c.print()
|
|
75
|
+
return ""
|
|
76
|
+
|
|
77
|
+
c.print(f"[bold red]Error:[/] No skill named '{name}' found in any source.\n")
|
|
78
|
+
return ""
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def _format_extra_metadata_lines(extra: Dict[str, Any]) -> list[str]:
|
|
82
|
+
lines: list[str] = []
|
|
83
|
+
if not extra:
|
|
84
|
+
return lines
|
|
85
|
+
|
|
86
|
+
if extra.get("repo_url"):
|
|
87
|
+
lines.append(f"[bold]Repo:[/] {extra['repo_url']}")
|
|
88
|
+
if extra.get("detail_url"):
|
|
89
|
+
lines.append(f"[bold]Detail Page:[/] {extra['detail_url']}")
|
|
90
|
+
if extra.get("index_url"):
|
|
91
|
+
lines.append(f"[bold]Index:[/] {extra['index_url']}")
|
|
92
|
+
if extra.get("endpoint"):
|
|
93
|
+
lines.append(f"[bold]Endpoint:[/] {extra['endpoint']}")
|
|
94
|
+
if extra.get("install_command"):
|
|
95
|
+
lines.append(f"[bold]Install Command:[/] {extra['install_command']}")
|
|
96
|
+
if extra.get("installs") is not None:
|
|
97
|
+
lines.append(f"[bold]Installs:[/] {extra['installs']}")
|
|
98
|
+
if extra.get("weekly_installs"):
|
|
99
|
+
lines.append(f"[bold]Weekly Installs:[/] {extra['weekly_installs']}")
|
|
100
|
+
|
|
101
|
+
security = extra.get("security_audits")
|
|
102
|
+
if isinstance(security, dict) and security:
|
|
103
|
+
ordered = ", ".join(f"{name}={status}" for name, status in sorted(security.items()))
|
|
104
|
+
lines.append(f"[bold]Security:[/] {ordered}")
|
|
105
|
+
|
|
106
|
+
return lines
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def _resolve_source_meta_and_bundle(identifier: str, sources):
|
|
110
|
+
"""Resolve metadata and bundle for a specific identifier."""
|
|
111
|
+
meta = None
|
|
112
|
+
bundle = None
|
|
113
|
+
matched_source = None
|
|
114
|
+
|
|
115
|
+
for src in sources:
|
|
116
|
+
if meta is None:
|
|
117
|
+
try:
|
|
118
|
+
meta = src.inspect(identifier)
|
|
119
|
+
if meta:
|
|
120
|
+
matched_source = src
|
|
121
|
+
except Exception:
|
|
122
|
+
meta = None
|
|
123
|
+
try:
|
|
124
|
+
bundle = src.fetch(identifier)
|
|
125
|
+
except Exception:
|
|
126
|
+
bundle = None
|
|
127
|
+
if bundle:
|
|
128
|
+
matched_source = src
|
|
129
|
+
if meta is None:
|
|
130
|
+
try:
|
|
131
|
+
meta = src.inspect(identifier)
|
|
132
|
+
except Exception:
|
|
133
|
+
meta = None
|
|
134
|
+
break
|
|
135
|
+
|
|
136
|
+
return meta, bundle, matched_source
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def _derive_category_from_install_path(install_path: str) -> str:
|
|
140
|
+
path = Path(install_path)
|
|
141
|
+
parent = str(path.parent)
|
|
142
|
+
return "" if parent == "." else parent
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
# ---------------------------------------------------------------------------
|
|
146
|
+
# Interactive name/category resolution for URL-installed skills
|
|
147
|
+
# ---------------------------------------------------------------------------
|
|
148
|
+
|
|
149
|
+
_VALID_NAME_RE = re.compile(r"^[a-z][a-z0-9_-]*$")
|
|
150
|
+
_VALID_CATEGORY_RE = re.compile(r"^[a-z][a-z0-9_/-]*$")
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def _is_valid_installed_skill_name(name: str) -> bool:
|
|
154
|
+
"""Accept identifier-shaped names, reject empty / sentinel-y values."""
|
|
155
|
+
if not isinstance(name, str):
|
|
156
|
+
return False
|
|
157
|
+
candidate = name.strip().lower()
|
|
158
|
+
if not candidate or candidate in {"skill", "readme", "index", "unnamed-skill"}:
|
|
159
|
+
return False
|
|
160
|
+
return bool(_VALID_NAME_RE.match(candidate))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
def _existing_categories() -> List[str]:
|
|
164
|
+
"""Return sorted subdirectory names under ``~/.hermes/skills/`` that look
|
|
165
|
+
like category buckets (contain at least one ``SKILL.md`` somewhere below).
|
|
166
|
+
|
|
167
|
+
Used to suggest reusable categories when interactively installing from a
|
|
168
|
+
URL. Hidden dirs (``.hub``, ``.trash``) are skipped.
|
|
169
|
+
"""
|
|
170
|
+
from tools.skills_hub import SKILLS_DIR
|
|
171
|
+
out: List[str] = []
|
|
172
|
+
try:
|
|
173
|
+
for entry in SKILLS_DIR.iterdir():
|
|
174
|
+
if not entry.is_dir() or entry.name.startswith("."):
|
|
175
|
+
continue
|
|
176
|
+
# Only count as a category if it contains skills, not if it IS a skill.
|
|
177
|
+
# Heuristic: if ``<entry>/SKILL.md`` exists, it's a skill at the
|
|
178
|
+
# top level (no category); otherwise treat as a category bucket.
|
|
179
|
+
if (entry / "SKILL.md").exists():
|
|
180
|
+
continue
|
|
181
|
+
# Has at least one nested SKILL.md?
|
|
182
|
+
try:
|
|
183
|
+
if any(entry.rglob("SKILL.md")):
|
|
184
|
+
out.append(entry.name)
|
|
185
|
+
except OSError:
|
|
186
|
+
continue
|
|
187
|
+
except (FileNotFoundError, OSError):
|
|
188
|
+
return []
|
|
189
|
+
return sorted(set(out))
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
def _prompt_for_skill_name(c: Console, url: str, default: str = "") -> Optional[str]:
|
|
193
|
+
"""Prompt interactively for a skill name. Returns None on cancel/EOF."""
|
|
194
|
+
c.print()
|
|
195
|
+
c.print(
|
|
196
|
+
f"[yellow]The SKILL.md at {url} doesn't declare a `name:` in its "
|
|
197
|
+
f"frontmatter,[/]\n[yellow]and the URL path doesn't produce a valid "
|
|
198
|
+
f"identifier either.[/]"
|
|
199
|
+
)
|
|
200
|
+
default_hint = f" [{default}]" if default else ""
|
|
201
|
+
c.print(
|
|
202
|
+
f"[bold]Enter a skill name{default_hint}:[/] "
|
|
203
|
+
f"[dim](lowercase letters, digits, hyphens, underscores; starts with a letter)[/]"
|
|
204
|
+
)
|
|
205
|
+
try:
|
|
206
|
+
answer = input("Name: ").strip()
|
|
207
|
+
except (EOFError, KeyboardInterrupt):
|
|
208
|
+
return None
|
|
209
|
+
if not answer and default:
|
|
210
|
+
answer = default
|
|
211
|
+
if not _is_valid_installed_skill_name(answer):
|
|
212
|
+
c.print(f"[bold red]Invalid name:[/] {answer!r}. Aborting install.\n")
|
|
213
|
+
return None
|
|
214
|
+
return answer
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def _prompt_for_category(c: Console, existing: List[str]) -> str:
|
|
218
|
+
"""Prompt interactively for a category. Empty/None input means flat install."""
|
|
219
|
+
c.print()
|
|
220
|
+
if existing:
|
|
221
|
+
c.print(
|
|
222
|
+
"[bold]Pick a category[/] "
|
|
223
|
+
"[dim](reuse an existing bucket, type a new one, or press Enter to install flat)[/]"
|
|
224
|
+
)
|
|
225
|
+
c.print(f"[dim]Existing: {', '.join(existing)}[/]")
|
|
226
|
+
else:
|
|
227
|
+
c.print(
|
|
228
|
+
"[bold]Category[/] [dim](optional — press Enter to install flat at ~/.hermes/skills/<name>/)[/]"
|
|
229
|
+
)
|
|
230
|
+
try:
|
|
231
|
+
answer = input("Category: ").strip()
|
|
232
|
+
except (EOFError, KeyboardInterrupt):
|
|
233
|
+
return ""
|
|
234
|
+
if not answer:
|
|
235
|
+
return ""
|
|
236
|
+
if not _VALID_CATEGORY_RE.match(answer):
|
|
237
|
+
c.print(f"[dim]Invalid category {answer!r} — installing flat.[/]")
|
|
238
|
+
return ""
|
|
239
|
+
return answer
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
def do_search(query: str, source: str = "all", limit: int = 10,
|
|
243
|
+
console: Optional[Console] = None) -> None:
|
|
244
|
+
"""Search registries and display results as a Rich table."""
|
|
245
|
+
from tools.skills_hub import GitHubAuth, create_source_router, unified_search
|
|
246
|
+
|
|
247
|
+
c = console or _console
|
|
248
|
+
c.print(f"\n[bold]Searching for:[/] {query}")
|
|
249
|
+
|
|
250
|
+
auth = GitHubAuth()
|
|
251
|
+
sources = create_source_router(auth)
|
|
252
|
+
with c.status("[bold]Searching registries..."):
|
|
253
|
+
results = unified_search(query, sources, source_filter=source, limit=limit)
|
|
254
|
+
|
|
255
|
+
if not results:
|
|
256
|
+
c.print("[dim]No skills found matching your query.[/]\n")
|
|
257
|
+
return
|
|
258
|
+
|
|
259
|
+
table = Table(title=f"Skills Hub — {len(results)} result(s)")
|
|
260
|
+
table.add_column("Name", style="bold cyan")
|
|
261
|
+
table.add_column("Description", max_width=60)
|
|
262
|
+
table.add_column("Source", style="dim")
|
|
263
|
+
table.add_column("Trust", style="dim")
|
|
264
|
+
table.add_column("Identifier", style="dim")
|
|
265
|
+
|
|
266
|
+
for r in results:
|
|
267
|
+
trust_style = {"builtin": "bright_cyan", "trusted": "green", "community": "yellow"}.get(r.trust_level, "dim")
|
|
268
|
+
trust_label = "official" if r.source == "official" else r.trust_level
|
|
269
|
+
table.add_row(
|
|
270
|
+
r.name,
|
|
271
|
+
r.description[:60] + ("..." if len(r.description) > 60 else ""),
|
|
272
|
+
r.source,
|
|
273
|
+
f"[{trust_style}]{trust_label}[/]",
|
|
274
|
+
r.identifier,
|
|
275
|
+
)
|
|
276
|
+
|
|
277
|
+
c.print(table)
|
|
278
|
+
c.print("[dim]Use: hermes skills inspect <identifier> to preview, "
|
|
279
|
+
"hermes skills install <identifier> to install[/]\n")
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def do_browse(page: int = 1, page_size: int = 20, source: str = "all",
|
|
283
|
+
console: Optional[Console] = None) -> None:
|
|
284
|
+
"""Browse all available skills across registries, paginated.
|
|
285
|
+
|
|
286
|
+
Official skills are always shown first, regardless of source filter.
|
|
287
|
+
"""
|
|
288
|
+
from tools.skills_hub import (
|
|
289
|
+
GitHubAuth, create_source_router, parallel_search_sources,
|
|
290
|
+
)
|
|
291
|
+
|
|
292
|
+
# Clamp page_size to safe range
|
|
293
|
+
page_size = max(1, min(page_size, 100))
|
|
294
|
+
|
|
295
|
+
c = console or _console
|
|
296
|
+
|
|
297
|
+
auth = GitHubAuth()
|
|
298
|
+
sources = create_source_router(auth)
|
|
299
|
+
|
|
300
|
+
# Collect results from all (or filtered) sources in parallel.
|
|
301
|
+
# Per-source limits are generous — parallelism + 30s timeout cap prevents hangs.
|
|
302
|
+
_TRUST_RANK = {"builtin": 3, "trusted": 2, "community": 1}
|
|
303
|
+
_PER_SOURCE_LIMIT = {
|
|
304
|
+
"official": 200, "skills-sh": 200, "well-known": 50,
|
|
305
|
+
"github": 200, "clawhub": 500, "claude-marketplace": 100,
|
|
306
|
+
"lobehub": 500,
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
with c.status("[bold]Fetching skills from registries..."):
|
|
310
|
+
all_results, source_counts, timed_out = parallel_search_sources(
|
|
311
|
+
sources,
|
|
312
|
+
query="",
|
|
313
|
+
per_source_limits=_PER_SOURCE_LIMIT,
|
|
314
|
+
source_filter=source,
|
|
315
|
+
overall_timeout=30,
|
|
316
|
+
)
|
|
317
|
+
|
|
318
|
+
if not all_results:
|
|
319
|
+
c.print("[dim]No skills found in the Skills Hub.[/]\n")
|
|
320
|
+
return
|
|
321
|
+
|
|
322
|
+
# Deduplicate by name, preferring higher trust
|
|
323
|
+
seen: dict = {}
|
|
324
|
+
for r in all_results:
|
|
325
|
+
rank = _TRUST_RANK.get(r.trust_level, 0)
|
|
326
|
+
if r.name not in seen or rank > _TRUST_RANK.get(seen[r.name].trust_level, 0):
|
|
327
|
+
seen[r.name] = r
|
|
328
|
+
deduped = list(seen.values())
|
|
329
|
+
|
|
330
|
+
# Sort: official first, then by trust level (desc), then alphabetically
|
|
331
|
+
deduped.sort(key=lambda r: (
|
|
332
|
+
-_TRUST_RANK.get(r.trust_level, 0),
|
|
333
|
+
r.source != "official",
|
|
334
|
+
r.name.lower(),
|
|
335
|
+
))
|
|
336
|
+
|
|
337
|
+
# Paginate
|
|
338
|
+
total = len(deduped)
|
|
339
|
+
total_pages = max(1, (total + page_size - 1) // page_size)
|
|
340
|
+
page = max(1, min(page, total_pages))
|
|
341
|
+
start = (page - 1) * page_size
|
|
342
|
+
end = min(start + page_size, total)
|
|
343
|
+
page_items = deduped[start:end]
|
|
344
|
+
|
|
345
|
+
# Count official vs other
|
|
346
|
+
official_count = sum(1 for r in deduped if r.source == "official")
|
|
347
|
+
|
|
348
|
+
# Build header
|
|
349
|
+
source_label = f"— {source}" if source != "all" else "— all sources"
|
|
350
|
+
loaded_label = f"{total} skills loaded"
|
|
351
|
+
if timed_out:
|
|
352
|
+
loaded_label += f", {len(timed_out)} source(s) still loading"
|
|
353
|
+
c.print(f"\n[bold]Skills Hub — Browse {source_label}[/]"
|
|
354
|
+
f" [dim]({loaded_label}, page {page}/{total_pages})[/]")
|
|
355
|
+
if official_count > 0 and page == 1:
|
|
356
|
+
c.print(f"[bright_cyan]★ {official_count} official optional skill(s) from Nous Research[/]")
|
|
357
|
+
c.print()
|
|
358
|
+
|
|
359
|
+
# Build table
|
|
360
|
+
table = Table(show_header=True, header_style="bold")
|
|
361
|
+
table.add_column("#", style="dim", width=4, justify="right")
|
|
362
|
+
table.add_column("Name", style="bold cyan", max_width=25)
|
|
363
|
+
table.add_column("Description", max_width=50)
|
|
364
|
+
table.add_column("Source", style="dim", width=12)
|
|
365
|
+
table.add_column("Trust", width=10)
|
|
366
|
+
|
|
367
|
+
for i, r in enumerate(page_items, start=start + 1):
|
|
368
|
+
trust_style = {"builtin": "bright_cyan", "trusted": "green",
|
|
369
|
+
"community": "yellow"}.get(r.trust_level, "dim")
|
|
370
|
+
trust_label = "★ official" if r.source == "official" else r.trust_level
|
|
371
|
+
|
|
372
|
+
desc = r.description[:50]
|
|
373
|
+
if len(r.description) > 50:
|
|
374
|
+
desc += "..."
|
|
375
|
+
|
|
376
|
+
table.add_row(
|
|
377
|
+
str(i),
|
|
378
|
+
r.name,
|
|
379
|
+
desc,
|
|
380
|
+
r.source,
|
|
381
|
+
f"[{trust_style}]{trust_label}[/]",
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
c.print(table)
|
|
385
|
+
|
|
386
|
+
# Navigation hints
|
|
387
|
+
nav_parts = []
|
|
388
|
+
if page > 1:
|
|
389
|
+
nav_parts.append(f"[cyan]--page {page - 1}[/] ← prev")
|
|
390
|
+
if page < total_pages:
|
|
391
|
+
nav_parts.append(f"[cyan]--page {page + 1}[/] → next")
|
|
392
|
+
|
|
393
|
+
if nav_parts:
|
|
394
|
+
c.print(f" {' | '.join(nav_parts)}")
|
|
395
|
+
|
|
396
|
+
# Source summary
|
|
397
|
+
if source == "all" and source_counts:
|
|
398
|
+
parts = [f"{sid}: {ct}" for sid, ct in sorted(source_counts.items())]
|
|
399
|
+
c.print(f" [dim]Sources: {', '.join(parts)}[/]")
|
|
400
|
+
|
|
401
|
+
if timed_out:
|
|
402
|
+
c.print(f" [yellow]⚡ Slow sources skipped: {', '.join(timed_out)} "
|
|
403
|
+
f"— run again for cached results[/]")
|
|
404
|
+
|
|
405
|
+
c.print("[dim]Tip: 'hermes skills search <query>' searches deeper across all registries[/]\n")
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
def do_install(identifier: str, category: str = "", force: bool = False,
|
|
409
|
+
console: Optional[Console] = None, skip_confirm: bool = False,
|
|
410
|
+
invalidate_cache: bool = True,
|
|
411
|
+
name_override: str = "") -> None:
|
|
412
|
+
"""Fetch, quarantine, scan, confirm, and install a skill.
|
|
413
|
+
|
|
414
|
+
``name_override`` lets non-interactive callers (slash commands, gateway,
|
|
415
|
+
scripts) supply a skill name when the upstream SKILL.md lacks a valid
|
|
416
|
+
``name:`` frontmatter field. On interactive TTY surfaces, a missing name
|
|
417
|
+
triggers a prompt instead; ``skip_confirm=True`` means "non-interactive"
|
|
418
|
+
(so pair it with ``name_override`` when installing from a URL that has
|
|
419
|
+
no frontmatter).
|
|
420
|
+
"""
|
|
421
|
+
from tools.skills_hub import (
|
|
422
|
+
GitHubAuth, create_source_router, ensure_hub_dirs,
|
|
423
|
+
quarantine_bundle, install_from_quarantine, HubLockFile,
|
|
424
|
+
)
|
|
425
|
+
from tools.skills_guard import scan_skill, should_allow_install, format_scan_report
|
|
426
|
+
|
|
427
|
+
c = console or _console
|
|
428
|
+
ensure_hub_dirs()
|
|
429
|
+
|
|
430
|
+
# Resolve which source adapter handles this identifier
|
|
431
|
+
auth = GitHubAuth()
|
|
432
|
+
sources = create_source_router(auth)
|
|
433
|
+
|
|
434
|
+
# If identifier looks like a short name (no slashes), resolve it via search
|
|
435
|
+
if "/" not in identifier:
|
|
436
|
+
identifier = _resolve_short_name(identifier, sources, c)
|
|
437
|
+
if not identifier:
|
|
438
|
+
return
|
|
439
|
+
|
|
440
|
+
c.print(f"\n[bold]Fetching:[/] {identifier}")
|
|
441
|
+
|
|
442
|
+
meta, bundle, _matched_source = _resolve_source_meta_and_bundle(identifier, sources)
|
|
443
|
+
|
|
444
|
+
if not bundle:
|
|
445
|
+
# Check if any source hit GitHub API rate limit
|
|
446
|
+
rate_limited = any(
|
|
447
|
+
getattr(src, "is_rate_limited", False)
|
|
448
|
+
or getattr(getattr(src, "github", None), "is_rate_limited", False)
|
|
449
|
+
for src in sources
|
|
450
|
+
)
|
|
451
|
+
c.print(f"[bold red]Error:[/] Could not fetch '{identifier}' from any source.")
|
|
452
|
+
if rate_limited:
|
|
453
|
+
c.print(
|
|
454
|
+
"[yellow]Hint:[/] GitHub API rate limit exhausted "
|
|
455
|
+
"(unauthenticated: 60 requests/hour).\n"
|
|
456
|
+
"Set [bold]GITHUB_TOKEN[/] in your .env or install the "
|
|
457
|
+
"[bold]gh[/] CLI and run [bold]gh auth login[/] "
|
|
458
|
+
"to raise the limit to 5,000/hr.\n"
|
|
459
|
+
)
|
|
460
|
+
else:
|
|
461
|
+
c.print()
|
|
462
|
+
return
|
|
463
|
+
|
|
464
|
+
# URL-sourced skills may arrive with an empty name when SKILL.md has no
|
|
465
|
+
# ``name:`` in frontmatter AND the URL path doesn't yield a valid
|
|
466
|
+
# identifier. Resolve by (1) --name override, (2) interactive prompt on
|
|
467
|
+
# a TTY, (3) refuse with an actionable error on non-interactive surfaces.
|
|
468
|
+
bundle_meta = getattr(bundle, "metadata", {}) or {}
|
|
469
|
+
if bundle.source == "url" and (not bundle.name or bundle_meta.get("awaiting_name")):
|
|
470
|
+
if name_override and _is_valid_installed_skill_name(name_override):
|
|
471
|
+
bundle.name = name_override.strip()
|
|
472
|
+
bundle_meta["awaiting_name"] = False
|
|
473
|
+
elif name_override:
|
|
474
|
+
c.print(
|
|
475
|
+
f"[bold red]Invalid --name:[/] {name_override!r}. "
|
|
476
|
+
"Must be a lowercase identifier (letters, digits, hyphens, "
|
|
477
|
+
"underscores; starts with a letter).\n"
|
|
478
|
+
)
|
|
479
|
+
return
|
|
480
|
+
elif skip_confirm:
|
|
481
|
+
# Non-interactive surface (slash command / TUI / gateway). Can't
|
|
482
|
+
# prompt — emit an actionable error.
|
|
483
|
+
url = bundle_meta.get("url") or identifier
|
|
484
|
+
c.print(
|
|
485
|
+
f"[bold red]Cannot install from URL:[/] {url}\n"
|
|
486
|
+
"[yellow]The SKILL.md has no `name:` in its frontmatter, "
|
|
487
|
+
"and the URL path doesn't produce a valid identifier.[/]\n\n"
|
|
488
|
+
"Retry with an explicit name:\n"
|
|
489
|
+
f" [bold]/skills install {url} --name <your-name>[/]\n"
|
|
490
|
+
f" [bold]hermes skills install {url} --name <your-name>[/]\n\n"
|
|
491
|
+
"[dim]Or ask the SKILL.md's author to add a `name:` field to "
|
|
492
|
+
"its YAML frontmatter.[/]\n"
|
|
493
|
+
)
|
|
494
|
+
return
|
|
495
|
+
else:
|
|
496
|
+
# Interactive TTY — prompt.
|
|
497
|
+
url = bundle_meta.get("url") or identifier
|
|
498
|
+
chosen = _prompt_for_skill_name(c, url)
|
|
499
|
+
if not chosen:
|
|
500
|
+
c.print("[dim]Installation cancelled.[/]\n")
|
|
501
|
+
return
|
|
502
|
+
bundle.name = chosen
|
|
503
|
+
bundle_meta["awaiting_name"] = False
|
|
504
|
+
# Keep SkillMeta in sync so downstream "already installed" checks,
|
|
505
|
+
# audit logs, and display all see the final name.
|
|
506
|
+
if meta is not None:
|
|
507
|
+
meta.name = bundle.name
|
|
508
|
+
meta.path = bundle.name
|
|
509
|
+
|
|
510
|
+
# URL-sourced skills: offer to pick a category interactively when the
|
|
511
|
+
# caller didn't specify one (TTY only — non-interactive installs fall
|
|
512
|
+
# through to flat install, matching all other sources).
|
|
513
|
+
if bundle.source == "url" and not category and not skip_confirm:
|
|
514
|
+
category = _prompt_for_category(c, _existing_categories())
|
|
515
|
+
|
|
516
|
+
# Auto-detect category for official skills (e.g. "official/autonomous-ai-agents/blackbox")
|
|
517
|
+
if bundle.source == "official" and not category:
|
|
518
|
+
id_parts = bundle.identifier.split("/") # ["official", "category", "skill"]
|
|
519
|
+
if len(id_parts) >= 3:
|
|
520
|
+
category = id_parts[1]
|
|
521
|
+
|
|
522
|
+
# Check if already installed
|
|
523
|
+
lock = HubLockFile()
|
|
524
|
+
existing = lock.get_installed(bundle.name)
|
|
525
|
+
if existing:
|
|
526
|
+
c.print(f"[yellow]Warning:[/] '{bundle.name}' is already installed at {existing['install_path']}")
|
|
527
|
+
if not force:
|
|
528
|
+
c.print("Use --force to reinstall.\n")
|
|
529
|
+
return
|
|
530
|
+
|
|
531
|
+
extra_metadata = dict(getattr(meta, "extra", {}) or {})
|
|
532
|
+
extra_metadata.update(getattr(bundle, "metadata", {}) or {})
|
|
533
|
+
|
|
534
|
+
# Quarantine the bundle
|
|
535
|
+
try:
|
|
536
|
+
q_path = quarantine_bundle(bundle)
|
|
537
|
+
except ValueError as exc:
|
|
538
|
+
c.print(f"[bold red]Installation blocked:[/] {exc}\n")
|
|
539
|
+
from tools.skills_hub import append_audit_log
|
|
540
|
+
append_audit_log("BLOCKED", bundle.name, bundle.source,
|
|
541
|
+
bundle.trust_level, "invalid_path", str(exc))
|
|
542
|
+
return
|
|
543
|
+
c.print(f"[dim]Quarantined to {q_path.relative_to(q_path.parent.parent.parent)}[/]")
|
|
544
|
+
|
|
545
|
+
# Scan
|
|
546
|
+
c.print("[bold]Running security scan...[/]")
|
|
547
|
+
scan_source = getattr(bundle, "identifier", "") or getattr(meta, "identifier", "") or identifier
|
|
548
|
+
result = scan_skill(q_path, source=scan_source)
|
|
549
|
+
c.print(format_scan_report(result))
|
|
550
|
+
|
|
551
|
+
# Check install policy
|
|
552
|
+
allowed, reason = should_allow_install(result, force=force)
|
|
553
|
+
if not allowed:
|
|
554
|
+
c.print(f"\n[bold red]Installation blocked:[/] {reason}")
|
|
555
|
+
# Clean up quarantine
|
|
556
|
+
shutil.rmtree(q_path, ignore_errors=True)
|
|
557
|
+
from tools.skills_hub import append_audit_log
|
|
558
|
+
append_audit_log("BLOCKED", bundle.name, bundle.source,
|
|
559
|
+
bundle.trust_level, result.verdict,
|
|
560
|
+
f"{len(result.findings)}_findings")
|
|
561
|
+
return
|
|
562
|
+
|
|
563
|
+
if extra_metadata:
|
|
564
|
+
metadata_lines = _format_extra_metadata_lines(extra_metadata)
|
|
565
|
+
if metadata_lines:
|
|
566
|
+
c.print(Panel("\n".join(metadata_lines), title="Upstream Metadata", border_style="blue"))
|
|
567
|
+
|
|
568
|
+
# Confirm with user — show appropriate warning based on source
|
|
569
|
+
# skip_confirm bypasses the prompt (needed in TUI mode where input() hangs)
|
|
570
|
+
if not force and not skip_confirm:
|
|
571
|
+
c.print()
|
|
572
|
+
if bundle.source == "official":
|
|
573
|
+
c.print(Panel(
|
|
574
|
+
"[bold bright_cyan]This is an official optional skill maintained by Nous Research.[/]\n\n"
|
|
575
|
+
"It ships with hermes-agent but is not activated by default.\n"
|
|
576
|
+
"Installing will copy it to your skills directory where the agent can use it.\n\n"
|
|
577
|
+
f"Files will be at: [cyan]{display_hermes_home()}/skills/{category + '/' if category else ''}{bundle.name}/[/]",
|
|
578
|
+
title="Official Skill",
|
|
579
|
+
border_style="bright_cyan",
|
|
580
|
+
))
|
|
581
|
+
else:
|
|
582
|
+
c.print(Panel(
|
|
583
|
+
"[bold yellow]You are installing a third-party skill at your own risk.[/]\n\n"
|
|
584
|
+
"External skills can contain instructions that influence agent behavior,\n"
|
|
585
|
+
"shell commands, and scripts. Even after automated scanning, you should\n"
|
|
586
|
+
"review the installed files before use.\n\n"
|
|
587
|
+
f"Files will be at: [cyan]{display_hermes_home()}/skills/{category + '/' if category else ''}{bundle.name}/[/]",
|
|
588
|
+
title="Disclaimer",
|
|
589
|
+
border_style="yellow",
|
|
590
|
+
))
|
|
591
|
+
c.print(f"[bold]Install '{bundle.name}'?[/]")
|
|
592
|
+
try:
|
|
593
|
+
answer = input("Confirm [y/N]: ").strip().lower()
|
|
594
|
+
except (EOFError, KeyboardInterrupt):
|
|
595
|
+
answer = "n"
|
|
596
|
+
if answer not in {"y", "yes"}:
|
|
597
|
+
c.print("[dim]Installation cancelled.[/]\n")
|
|
598
|
+
shutil.rmtree(q_path, ignore_errors=True)
|
|
599
|
+
return
|
|
600
|
+
|
|
601
|
+
# Install
|
|
602
|
+
try:
|
|
603
|
+
install_dir = install_from_quarantine(q_path, bundle.name, category, bundle, result)
|
|
604
|
+
except ValueError as exc:
|
|
605
|
+
c.print(f"[bold red]Installation blocked:[/] {exc}\n")
|
|
606
|
+
shutil.rmtree(q_path, ignore_errors=True)
|
|
607
|
+
from tools.skills_hub import append_audit_log
|
|
608
|
+
append_audit_log("BLOCKED", bundle.name, bundle.source,
|
|
609
|
+
bundle.trust_level, "invalid_path", str(exc))
|
|
610
|
+
return
|
|
611
|
+
from tools.skills_hub import SKILLS_DIR
|
|
612
|
+
c.print(f"[bold green]Installed:[/] {install_dir.relative_to(SKILLS_DIR)}")
|
|
613
|
+
c.print(f"[dim]Files: {', '.join(bundle.files.keys())}[/]\n")
|
|
614
|
+
|
|
615
|
+
if invalidate_cache:
|
|
616
|
+
# Invalidate the skills prompt cache so the new skill appears immediately
|
|
617
|
+
try:
|
|
618
|
+
from agent.prompt_builder import clear_skills_system_prompt_cache
|
|
619
|
+
clear_skills_system_prompt_cache(clear_snapshot=True)
|
|
620
|
+
except Exception:
|
|
621
|
+
pass
|
|
622
|
+
else:
|
|
623
|
+
c.print("[dim]Skill will be available in your next session.[/]")
|
|
624
|
+
c.print("[dim]Use /reset to start a new session now, or --now to activate immediately (invalidates prompt cache).[/]\n")
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
def do_inspect(identifier: str, console: Optional[Console] = None) -> None:
|
|
628
|
+
"""Preview a skill's SKILL.md content without installing."""
|
|
629
|
+
from tools.skills_hub import GitHubAuth, create_source_router
|
|
630
|
+
|
|
631
|
+
c = console or _console
|
|
632
|
+
auth = GitHubAuth()
|
|
633
|
+
sources = create_source_router(auth)
|
|
634
|
+
|
|
635
|
+
if "/" not in identifier:
|
|
636
|
+
identifier = _resolve_short_name(identifier, sources, c)
|
|
637
|
+
if not identifier:
|
|
638
|
+
return
|
|
639
|
+
|
|
640
|
+
meta, bundle, _matched_source = _resolve_source_meta_and_bundle(identifier, sources)
|
|
641
|
+
|
|
642
|
+
if not meta:
|
|
643
|
+
c.print(f"[bold red]Error:[/] Could not find '{identifier}' in any source.\n")
|
|
644
|
+
return
|
|
645
|
+
|
|
646
|
+
c.print()
|
|
647
|
+
trust_style = {"builtin": "bright_cyan", "trusted": "green", "community": "yellow"}.get(meta.trust_level, "dim")
|
|
648
|
+
trust_label = "official" if meta.source == "official" else meta.trust_level
|
|
649
|
+
|
|
650
|
+
info_lines = [
|
|
651
|
+
f"[bold]Name:[/] {meta.name}",
|
|
652
|
+
f"[bold]Description:[/] {meta.description}",
|
|
653
|
+
f"[bold]Source:[/] {meta.source}",
|
|
654
|
+
f"[bold]Trust:[/] [{trust_style}]{trust_label}[/]",
|
|
655
|
+
f"[bold]Identifier:[/] {meta.identifier}",
|
|
656
|
+
]
|
|
657
|
+
if meta.tags:
|
|
658
|
+
info_lines.append(f"[bold]Tags:[/] {', '.join(meta.tags)}")
|
|
659
|
+
info_lines.extend(_format_extra_metadata_lines(meta.extra))
|
|
660
|
+
|
|
661
|
+
c.print(Panel("\n".join(info_lines), title=f"Skill: {meta.name}"))
|
|
662
|
+
|
|
663
|
+
if bundle and "SKILL.md" in bundle.files:
|
|
664
|
+
content = bundle.files["SKILL.md"]
|
|
665
|
+
if isinstance(content, bytes):
|
|
666
|
+
content = content.decode("utf-8", errors="replace")
|
|
667
|
+
# Show first 50 lines as preview
|
|
668
|
+
lines = content.split("\n")
|
|
669
|
+
preview = "\n".join(lines[:50])
|
|
670
|
+
if len(lines) > 50:
|
|
671
|
+
preview += f"\n\n... ({len(lines) - 50} more lines)"
|
|
672
|
+
c.print(Panel(preview, title="SKILL.md Preview", subtitle="hermes skills install <id> to install"))
|
|
673
|
+
|
|
674
|
+
c.print()
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
def browse_skills(page: int = 1, page_size: int = 20, source: str = "all") -> dict:
|
|
678
|
+
"""Paginated hub browse for programmatic callers (e.g. TUI gateway).
|
|
679
|
+
|
|
680
|
+
Returns ``{"items": [...], "page": int, "total_pages": int, "total": int}``.
|
|
681
|
+
"""
|
|
682
|
+
from tools.skills_hub import GitHubAuth, create_source_router
|
|
683
|
+
|
|
684
|
+
page_size = max(1, min(page_size, 100))
|
|
685
|
+
_TRUST_RANK = {"builtin": 3, "trusted": 2, "community": 1}
|
|
686
|
+
_PER_SOURCE_LIMIT = {"official": 100, "skills-sh": 100, "well-known": 25, "github": 100, "clawhub": 50,
|
|
687
|
+
"claude-marketplace": 50, "lobehub": 50}
|
|
688
|
+
auth = GitHubAuth()
|
|
689
|
+
sources = create_source_router(auth)
|
|
690
|
+
all_results: list = []
|
|
691
|
+
for src in sources:
|
|
692
|
+
sid = src.source_id()
|
|
693
|
+
if source != "all" and sid != source and sid != "official":
|
|
694
|
+
continue
|
|
695
|
+
try:
|
|
696
|
+
limit = _PER_SOURCE_LIMIT.get(sid, 50)
|
|
697
|
+
all_results.extend(src.search("", limit=limit))
|
|
698
|
+
except Exception:
|
|
699
|
+
continue
|
|
700
|
+
if not all_results:
|
|
701
|
+
return {"items": [], "page": 1, "total_pages": 1, "total": 0}
|
|
702
|
+
seen: dict = {}
|
|
703
|
+
for r in all_results:
|
|
704
|
+
rank = _TRUST_RANK.get(r.trust_level, 0)
|
|
705
|
+
if r.name not in seen or rank > _TRUST_RANK.get(seen[r.name].trust_level, 0):
|
|
706
|
+
seen[r.name] = r
|
|
707
|
+
deduped = list(seen.values())
|
|
708
|
+
deduped.sort(key=lambda r: (-_TRUST_RANK.get(r.trust_level, 0), r.source != "official", r.name.lower()))
|
|
709
|
+
total = len(deduped)
|
|
710
|
+
total_pages = max(1, (total + page_size - 1) // page_size)
|
|
711
|
+
page = max(1, min(page, total_pages))
|
|
712
|
+
start = (page - 1) * page_size
|
|
713
|
+
page_items = deduped[start : min(start + page_size, total)]
|
|
714
|
+
return {
|
|
715
|
+
"items": [{"name": r.name, "description": r.description, "source": r.source,
|
|
716
|
+
"trust": r.trust_level} for r in page_items],
|
|
717
|
+
"page": page,
|
|
718
|
+
"total_pages": total_pages,
|
|
719
|
+
"total": total,
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
def inspect_skill(identifier: str) -> Optional[dict]:
|
|
724
|
+
"""Skill metadata (+ SKILL.md preview) for programmatic callers."""
|
|
725
|
+
from tools.skills_hub import GitHubAuth, create_source_router
|
|
726
|
+
|
|
727
|
+
class _Q:
|
|
728
|
+
def print(self, *a, **k):
|
|
729
|
+
pass
|
|
730
|
+
|
|
731
|
+
c = _Q()
|
|
732
|
+
auth = GitHubAuth()
|
|
733
|
+
sources = create_source_router(auth)
|
|
734
|
+
ident = identifier
|
|
735
|
+
if "/" not in ident:
|
|
736
|
+
ident = _resolve_short_name(ident, sources, c)
|
|
737
|
+
if not ident:
|
|
738
|
+
return None
|
|
739
|
+
meta, bundle, _ = _resolve_source_meta_and_bundle(ident, sources)
|
|
740
|
+
if not meta:
|
|
741
|
+
return None
|
|
742
|
+
out: dict = {
|
|
743
|
+
"name": meta.name,
|
|
744
|
+
"description": meta.description,
|
|
745
|
+
"source": meta.source,
|
|
746
|
+
"identifier": meta.identifier,
|
|
747
|
+
"tags": list(meta.tags) if meta.tags else [],
|
|
748
|
+
}
|
|
749
|
+
if bundle and "SKILL.md" in bundle.files:
|
|
750
|
+
content = bundle.files["SKILL.md"]
|
|
751
|
+
if isinstance(content, bytes):
|
|
752
|
+
content = content.decode("utf-8", errors="replace")
|
|
753
|
+
lines = content.split("\n")
|
|
754
|
+
preview = "\n".join(lines[:50])
|
|
755
|
+
if len(lines) > 50:
|
|
756
|
+
preview += f"\n\n... ({len(lines) - 50} more lines)"
|
|
757
|
+
out["skill_md_preview"] = preview
|
|
758
|
+
return out
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
def do_list(source_filter: str = "all",
|
|
762
|
+
enabled_only: bool = False,
|
|
763
|
+
console: Optional[Console] = None) -> None:
|
|
764
|
+
"""List installed skills, distinguishing hub, builtin, and local skills.
|
|
765
|
+
|
|
766
|
+
Args:
|
|
767
|
+
source_filter: ``all`` | ``hub`` | ``builtin`` | ``local``.
|
|
768
|
+
enabled_only: If True, hide disabled skills from the output.
|
|
769
|
+
|
|
770
|
+
Enabled/disabled state is resolved against the currently active profile's
|
|
771
|
+
config — ``hermes -p <profile> skills list`` reads that profile's
|
|
772
|
+
``skills.disabled`` list because ``-p`` swaps ``HERMES_HOME`` at process
|
|
773
|
+
start. No explicit profile flag needed here.
|
|
774
|
+
"""
|
|
775
|
+
from tools.skills_hub import HubLockFile, ensure_hub_dirs
|
|
776
|
+
from tools.skills_sync import _read_manifest
|
|
777
|
+
from tools.skills_tool import _find_all_skills
|
|
778
|
+
from agent.skill_utils import get_disabled_skill_names
|
|
779
|
+
|
|
780
|
+
c = console or _console
|
|
781
|
+
ensure_hub_dirs()
|
|
782
|
+
lock = HubLockFile()
|
|
783
|
+
hub_installed = {e["name"]: e for e in lock.list_installed()}
|
|
784
|
+
builtin_names = set(_read_manifest())
|
|
785
|
+
|
|
786
|
+
# Pull ALL skills (including disabled ones) so we can annotate status.
|
|
787
|
+
all_skills = _find_all_skills(skip_disabled=True)
|
|
788
|
+
disabled_names = get_disabled_skill_names()
|
|
789
|
+
|
|
790
|
+
title = "Installed Skills"
|
|
791
|
+
if enabled_only:
|
|
792
|
+
title += " (enabled only)"
|
|
793
|
+
|
|
794
|
+
table = Table(title=title)
|
|
795
|
+
table.add_column("Name", style="bold cyan")
|
|
796
|
+
table.add_column("Category", style="dim")
|
|
797
|
+
table.add_column("Source", style="dim")
|
|
798
|
+
table.add_column("Trust", style="dim")
|
|
799
|
+
table.add_column("Status", style="dim")
|
|
800
|
+
|
|
801
|
+
hub_count = 0
|
|
802
|
+
builtin_count = 0
|
|
803
|
+
local_count = 0
|
|
804
|
+
enabled_count = 0
|
|
805
|
+
disabled_count = 0
|
|
806
|
+
|
|
807
|
+
for skill in sorted(all_skills, key=lambda s: (s.get("category") or "", s["name"])):
|
|
808
|
+
name = skill["name"]
|
|
809
|
+
category = skill.get("category", "")
|
|
810
|
+
hub_entry = hub_installed.get(name)
|
|
811
|
+
|
|
812
|
+
if hub_entry:
|
|
813
|
+
source_type = "hub"
|
|
814
|
+
source_display = hub_entry.get("source", "hub")
|
|
815
|
+
trust = hub_entry.get("trust_level", "community")
|
|
816
|
+
elif name in builtin_names:
|
|
817
|
+
source_type = "builtin"
|
|
818
|
+
source_display = "builtin"
|
|
819
|
+
trust = "builtin"
|
|
820
|
+
else:
|
|
821
|
+
source_type = "local"
|
|
822
|
+
source_display = "local"
|
|
823
|
+
trust = "local"
|
|
824
|
+
|
|
825
|
+
if source_filter != "all" and source_filter != source_type:
|
|
826
|
+
continue
|
|
827
|
+
|
|
828
|
+
is_enabled = name not in disabled_names
|
|
829
|
+
if enabled_only and not is_enabled:
|
|
830
|
+
continue
|
|
831
|
+
|
|
832
|
+
if source_type == "hub":
|
|
833
|
+
hub_count += 1
|
|
834
|
+
elif source_type == "builtin":
|
|
835
|
+
builtin_count += 1
|
|
836
|
+
else:
|
|
837
|
+
local_count += 1
|
|
838
|
+
|
|
839
|
+
if is_enabled:
|
|
840
|
+
enabled_count += 1
|
|
841
|
+
status_cell = "[bold green]enabled[/]"
|
|
842
|
+
else:
|
|
843
|
+
disabled_count += 1
|
|
844
|
+
status_cell = "[dim red]disabled[/]"
|
|
845
|
+
|
|
846
|
+
trust_style = {"builtin": "bright_cyan", "trusted": "green", "community": "yellow", "local": "dim"}.get(trust, "dim")
|
|
847
|
+
trust_label = "official" if source_display == "official" else trust
|
|
848
|
+
table.add_row(name, category, source_display, f"[{trust_style}]{trust_label}[/]", status_cell)
|
|
849
|
+
|
|
850
|
+
c.print(table)
|
|
851
|
+
summary = f"[dim]{hub_count} hub-installed, {builtin_count} builtin, {local_count} local"
|
|
852
|
+
if enabled_only:
|
|
853
|
+
summary += f" — {enabled_count} enabled shown"
|
|
854
|
+
else:
|
|
855
|
+
summary += f" — {enabled_count} enabled, {disabled_count} disabled"
|
|
856
|
+
summary += "[/]\n"
|
|
857
|
+
c.print(summary)
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
def do_check(name: Optional[str] = None, console: Optional[Console] = None) -> None:
|
|
861
|
+
"""Check hub-installed skills for upstream updates."""
|
|
862
|
+
from tools.skills_hub import check_for_skill_updates
|
|
863
|
+
|
|
864
|
+
c = console or _console
|
|
865
|
+
results = check_for_skill_updates(name=name)
|
|
866
|
+
if not results:
|
|
867
|
+
c.print("[dim]No hub-installed skills to check.[/]\n")
|
|
868
|
+
return
|
|
869
|
+
|
|
870
|
+
table = Table(title="Skill Updates")
|
|
871
|
+
table.add_column("Name", style="bold cyan")
|
|
872
|
+
table.add_column("Source", style="dim")
|
|
873
|
+
table.add_column("Status", style="dim")
|
|
874
|
+
|
|
875
|
+
for entry in results:
|
|
876
|
+
table.add_row(entry.get("name", ""), entry.get("source", ""), entry.get("status", ""))
|
|
877
|
+
|
|
878
|
+
c.print(table)
|
|
879
|
+
update_count = sum(1 for entry in results if entry.get("status") == "update_available")
|
|
880
|
+
c.print(f"[dim]{update_count} update(s) available across {len(results)} checked skill(s)[/]\n")
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
def do_update(name: Optional[str] = None, console: Optional[Console] = None) -> None:
|
|
884
|
+
"""Update hub-installed skills with upstream changes."""
|
|
885
|
+
from tools.skills_hub import HubLockFile, check_for_skill_updates
|
|
886
|
+
|
|
887
|
+
c = console or _console
|
|
888
|
+
lock = HubLockFile()
|
|
889
|
+
updates = [entry for entry in check_for_skill_updates(name=name) if entry.get("status") == "update_available"]
|
|
890
|
+
if not updates:
|
|
891
|
+
c.print("[dim]No updates available.[/]\n")
|
|
892
|
+
return
|
|
893
|
+
|
|
894
|
+
for entry in updates:
|
|
895
|
+
installed = lock.get_installed(entry["name"])
|
|
896
|
+
category = _derive_category_from_install_path(installed.get("install_path", "")) if installed else ""
|
|
897
|
+
c.print(f"[bold]Updating:[/] {entry['name']}")
|
|
898
|
+
do_install(entry["identifier"], category=category, force=True, console=c)
|
|
899
|
+
|
|
900
|
+
c.print(f"[bold green]Updated {len(updates)} skill(s).[/]\n")
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
def do_audit(name: Optional[str] = None, console: Optional[Console] = None) -> None:
|
|
904
|
+
"""Re-run security scan on installed hub skills."""
|
|
905
|
+
from tools.skills_hub import HubLockFile, SKILLS_DIR
|
|
906
|
+
from tools.skills_guard import scan_skill, format_scan_report
|
|
907
|
+
|
|
908
|
+
c = console or _console
|
|
909
|
+
lock = HubLockFile()
|
|
910
|
+
installed = lock.list_installed()
|
|
911
|
+
|
|
912
|
+
if not installed:
|
|
913
|
+
c.print("[dim]No hub-installed skills to audit.[/]\n")
|
|
914
|
+
return
|
|
915
|
+
|
|
916
|
+
targets = installed
|
|
917
|
+
if name:
|
|
918
|
+
targets = [e for e in installed if e["name"] == name]
|
|
919
|
+
if not targets:
|
|
920
|
+
c.print(f"[bold red]Error:[/] '{name}' is not a hub-installed skill.\n")
|
|
921
|
+
return
|
|
922
|
+
|
|
923
|
+
c.print(f"\n[bold]Auditing {len(targets)} skill(s)...[/]\n")
|
|
924
|
+
|
|
925
|
+
for entry in targets:
|
|
926
|
+
skill_path = SKILLS_DIR / entry["install_path"]
|
|
927
|
+
if not skill_path.exists():
|
|
928
|
+
c.print(f"[yellow]Warning:[/] {entry['name']} — path missing: {entry['install_path']}")
|
|
929
|
+
continue
|
|
930
|
+
|
|
931
|
+
result = scan_skill(skill_path, source=entry.get("identifier", entry["source"]))
|
|
932
|
+
c.print(format_scan_report(result))
|
|
933
|
+
c.print()
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
def do_uninstall(name: str, console: Optional[Console] = None,
|
|
937
|
+
skip_confirm: bool = False,
|
|
938
|
+
invalidate_cache: bool = True) -> None:
|
|
939
|
+
"""Remove a hub-installed skill with confirmation."""
|
|
940
|
+
from tools.skills_hub import uninstall_skill
|
|
941
|
+
|
|
942
|
+
c = console or _console
|
|
943
|
+
|
|
944
|
+
# skip_confirm bypasses the prompt (needed in TUI mode where input() hangs)
|
|
945
|
+
if not skip_confirm:
|
|
946
|
+
c.print(f"\n[bold]Uninstall '{name}'?[/]")
|
|
947
|
+
try:
|
|
948
|
+
answer = input("Confirm [y/N]: ").strip().lower()
|
|
949
|
+
except (EOFError, KeyboardInterrupt):
|
|
950
|
+
answer = "n"
|
|
951
|
+
if answer not in {"y", "yes"}:
|
|
952
|
+
c.print("[dim]Cancelled.[/]\n")
|
|
953
|
+
return
|
|
954
|
+
|
|
955
|
+
success, msg = uninstall_skill(name)
|
|
956
|
+
if success:
|
|
957
|
+
c.print(f"[bold green]{msg}[/]\n")
|
|
958
|
+
if invalidate_cache:
|
|
959
|
+
try:
|
|
960
|
+
from agent.prompt_builder import clear_skills_system_prompt_cache
|
|
961
|
+
clear_skills_system_prompt_cache(clear_snapshot=True)
|
|
962
|
+
except Exception:
|
|
963
|
+
pass
|
|
964
|
+
else:
|
|
965
|
+
c.print("[dim]Change will take effect in your next session.[/]")
|
|
966
|
+
c.print("[dim]Use /reset to start a new session now, or --now to apply immediately (invalidates prompt cache).[/]\n")
|
|
967
|
+
else:
|
|
968
|
+
c.print(f"[bold red]Error:[/] {msg}\n")
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
def do_reset(name: str, restore: bool = False,
|
|
972
|
+
console: Optional[Console] = None,
|
|
973
|
+
skip_confirm: bool = False,
|
|
974
|
+
invalidate_cache: bool = True) -> None:
|
|
975
|
+
"""Reset a bundled skill's manifest tracking (+ optionally restore from bundled)."""
|
|
976
|
+
from tools.skills_sync import reset_bundled_skill
|
|
977
|
+
|
|
978
|
+
c = console or _console
|
|
979
|
+
|
|
980
|
+
if not skip_confirm and restore:
|
|
981
|
+
c.print(f"\n[bold]Restore '{name}' from bundled source?[/]")
|
|
982
|
+
c.print("[dim]This will DELETE your current copy and re-copy the bundled version.[/]")
|
|
983
|
+
try:
|
|
984
|
+
answer = input("Confirm [y/N]: ").strip().lower()
|
|
985
|
+
except (EOFError, KeyboardInterrupt):
|
|
986
|
+
answer = "n"
|
|
987
|
+
if answer not in {"y", "yes"}:
|
|
988
|
+
c.print("[dim]Cancelled.[/]\n")
|
|
989
|
+
return
|
|
990
|
+
|
|
991
|
+
result = reset_bundled_skill(name, restore=restore)
|
|
992
|
+
|
|
993
|
+
if not result["ok"]:
|
|
994
|
+
c.print(f"[bold red]Error:[/] {result['message']}\n")
|
|
995
|
+
return
|
|
996
|
+
|
|
997
|
+
c.print(f"[bold green]{result['message']}[/]")
|
|
998
|
+
synced = result.get("synced") or {}
|
|
999
|
+
if synced.get("copied"):
|
|
1000
|
+
c.print(f"[dim]Copied: {', '.join(synced['copied'])}[/]")
|
|
1001
|
+
if synced.get("updated"):
|
|
1002
|
+
c.print(f"[dim]Updated: {', '.join(synced['updated'])}[/]")
|
|
1003
|
+
c.print()
|
|
1004
|
+
|
|
1005
|
+
if invalidate_cache:
|
|
1006
|
+
try:
|
|
1007
|
+
from agent.prompt_builder import clear_skills_system_prompt_cache
|
|
1008
|
+
clear_skills_system_prompt_cache(clear_snapshot=True)
|
|
1009
|
+
except Exception:
|
|
1010
|
+
pass
|
|
1011
|
+
else:
|
|
1012
|
+
c.print("[dim]Change will take effect in your next session.[/]")
|
|
1013
|
+
c.print("[dim]Use /reset to start a new session now, or --now to apply immediately (invalidates prompt cache).[/]\n")
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
def do_tap(action: str, repo: str = "", console: Optional[Console] = None) -> None:
|
|
1017
|
+
"""Manage taps (custom GitHub repo sources)."""
|
|
1018
|
+
from tools.skills_hub import TapsManager
|
|
1019
|
+
|
|
1020
|
+
c = console or _console
|
|
1021
|
+
mgr = TapsManager()
|
|
1022
|
+
|
|
1023
|
+
if action == "list":
|
|
1024
|
+
taps = mgr.list_taps()
|
|
1025
|
+
if not taps:
|
|
1026
|
+
c.print("[dim]No custom taps configured. Using default sources only.[/]\n")
|
|
1027
|
+
return
|
|
1028
|
+
table = Table(title="Configured Taps")
|
|
1029
|
+
table.add_column("Repo", style="bold cyan")
|
|
1030
|
+
table.add_column("Path", style="dim")
|
|
1031
|
+
for t in taps:
|
|
1032
|
+
label = t.get("repo") or t.get("name") or t.get("path", "unknown")
|
|
1033
|
+
table.add_row(label, t.get("path", "skills/"))
|
|
1034
|
+
c.print(table)
|
|
1035
|
+
c.print()
|
|
1036
|
+
|
|
1037
|
+
elif action == "add":
|
|
1038
|
+
if not repo:
|
|
1039
|
+
c.print("[bold red]Error:[/] Repo required. Usage: hermes skills tap add owner/repo\n")
|
|
1040
|
+
return
|
|
1041
|
+
if mgr.add(repo):
|
|
1042
|
+
c.print(f"[bold green]Added tap:[/] {repo}\n")
|
|
1043
|
+
else:
|
|
1044
|
+
c.print(f"[yellow]Tap already exists:[/] {repo}\n")
|
|
1045
|
+
|
|
1046
|
+
elif action == "remove":
|
|
1047
|
+
if not repo:
|
|
1048
|
+
c.print("[bold red]Error:[/] Repo required. Usage: hermes skills tap remove owner/repo\n")
|
|
1049
|
+
return
|
|
1050
|
+
if mgr.remove(repo):
|
|
1051
|
+
c.print(f"[bold green]Removed tap:[/] {repo}\n")
|
|
1052
|
+
else:
|
|
1053
|
+
c.print(f"[bold red]Error:[/] Tap not found: {repo}\n")
|
|
1054
|
+
|
|
1055
|
+
else:
|
|
1056
|
+
c.print(f"[bold red]Unknown tap action:[/] {action}. Use: list, add, remove\n")
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
def do_publish(skill_path: str, target: str = "github", repo: str = "",
|
|
1060
|
+
console: Optional[Console] = None) -> None:
|
|
1061
|
+
"""Publish a local skill to a registry (GitHub PR or ClawHub submission)."""
|
|
1062
|
+
from tools.skills_hub import GitHubAuth, SKILLS_DIR
|
|
1063
|
+
from tools.skills_guard import scan_skill, format_scan_report
|
|
1064
|
+
|
|
1065
|
+
c = console or _console
|
|
1066
|
+
path = Path(skill_path)
|
|
1067
|
+
|
|
1068
|
+
# Resolve relative to skills dir if not absolute
|
|
1069
|
+
if not path.is_absolute():
|
|
1070
|
+
path = SKILLS_DIR / path
|
|
1071
|
+
if not path.exists() or not (path / "SKILL.md").exists():
|
|
1072
|
+
c.print(f"[bold red]Error:[/] No SKILL.md found at {path}\n")
|
|
1073
|
+
return
|
|
1074
|
+
|
|
1075
|
+
# Validate the skill
|
|
1076
|
+
import yaml
|
|
1077
|
+
skill_md = (path / "SKILL.md").read_text(encoding="utf-8")
|
|
1078
|
+
fm = {}
|
|
1079
|
+
if skill_md.startswith("---"):
|
|
1080
|
+
import re
|
|
1081
|
+
match = re.search(r'\n---\s*\n', skill_md[3:])
|
|
1082
|
+
if match:
|
|
1083
|
+
try:
|
|
1084
|
+
fm = yaml.safe_load(skill_md[3:match.start() + 3]) or {}
|
|
1085
|
+
except yaml.YAMLError:
|
|
1086
|
+
pass
|
|
1087
|
+
|
|
1088
|
+
name = fm.get("name", path.name)
|
|
1089
|
+
description = fm.get("description", "")
|
|
1090
|
+
if not description:
|
|
1091
|
+
c.print("[bold red]Error:[/] SKILL.md must have a 'description' in frontmatter.\n")
|
|
1092
|
+
return
|
|
1093
|
+
|
|
1094
|
+
# Self-scan before publishing
|
|
1095
|
+
c.print(f"[bold]Scanning '{name}' before publish...[/]")
|
|
1096
|
+
result = scan_skill(path, source="self")
|
|
1097
|
+
c.print(format_scan_report(result))
|
|
1098
|
+
if result.verdict == "dangerous":
|
|
1099
|
+
c.print("[bold red]Cannot publish a skill with DANGEROUS verdict.[/]\n")
|
|
1100
|
+
return
|
|
1101
|
+
|
|
1102
|
+
if target == "github":
|
|
1103
|
+
if not repo:
|
|
1104
|
+
c.print("[bold red]Error:[/] --repo required for GitHub publish.\n"
|
|
1105
|
+
"Usage: hermes skills publish <path> --to github --repo owner/repo\n")
|
|
1106
|
+
return
|
|
1107
|
+
|
|
1108
|
+
auth = GitHubAuth()
|
|
1109
|
+
if not auth.is_authenticated():
|
|
1110
|
+
c.print("[bold red]Error:[/] GitHub authentication required.\n"
|
|
1111
|
+
f"Set GITHUB_TOKEN in {display_hermes_home()}/.env or run 'gh auth login'.\n")
|
|
1112
|
+
return
|
|
1113
|
+
|
|
1114
|
+
c.print(f"[bold]Publishing '{name}' to {repo}...[/]")
|
|
1115
|
+
success, msg = _github_publish(path, name, repo, auth)
|
|
1116
|
+
if success:
|
|
1117
|
+
c.print(f"[bold green]{msg}[/]\n")
|
|
1118
|
+
else:
|
|
1119
|
+
c.print(f"[bold red]Error:[/] {msg}\n")
|
|
1120
|
+
|
|
1121
|
+
elif target == "clawhub":
|
|
1122
|
+
c.print("[yellow]ClawHub publishing is not yet supported. "
|
|
1123
|
+
"Submit manually at https://clawhub.ai/submit[/]\n")
|
|
1124
|
+
else:
|
|
1125
|
+
c.print(f"[bold red]Unknown target:[/] {target}. Use 'github' or 'clawhub'.\n")
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
def _github_publish(skill_path: Path, skill_name: str, target_repo: str,
|
|
1129
|
+
auth) -> tuple:
|
|
1130
|
+
"""Create a PR to a GitHub repo with the skill. Returns (success, message)."""
|
|
1131
|
+
import httpx
|
|
1132
|
+
|
|
1133
|
+
headers = auth.get_headers()
|
|
1134
|
+
|
|
1135
|
+
# 1. Fork the repo
|
|
1136
|
+
try:
|
|
1137
|
+
resp = httpx.post(
|
|
1138
|
+
f"https://api.github.com/repos/{target_repo}/forks",
|
|
1139
|
+
headers=headers, timeout=30,
|
|
1140
|
+
)
|
|
1141
|
+
if resp.status_code in {200, 202}:
|
|
1142
|
+
fork = resp.json()
|
|
1143
|
+
fork_repo = fork["full_name"]
|
|
1144
|
+
elif resp.status_code == 403:
|
|
1145
|
+
return False, "GitHub token lacks permission to fork repos"
|
|
1146
|
+
else:
|
|
1147
|
+
return False, f"Failed to fork {target_repo}: {resp.status_code}"
|
|
1148
|
+
except httpx.HTTPError as e:
|
|
1149
|
+
return False, f"Network error forking repo: {e}"
|
|
1150
|
+
|
|
1151
|
+
# 2. Get default branch
|
|
1152
|
+
try:
|
|
1153
|
+
resp = httpx.get(
|
|
1154
|
+
f"https://api.github.com/repos/{target_repo}",
|
|
1155
|
+
headers=headers, timeout=15,
|
|
1156
|
+
)
|
|
1157
|
+
default_branch = resp.json().get("default_branch", "main")
|
|
1158
|
+
except Exception:
|
|
1159
|
+
default_branch = "main"
|
|
1160
|
+
|
|
1161
|
+
# 3. Get the base tree SHA
|
|
1162
|
+
try:
|
|
1163
|
+
resp = httpx.get(
|
|
1164
|
+
f"https://api.github.com/repos/{fork_repo}/git/refs/heads/{default_branch}",
|
|
1165
|
+
headers=headers, timeout=15,
|
|
1166
|
+
)
|
|
1167
|
+
base_sha = resp.json()["object"]["sha"]
|
|
1168
|
+
except Exception as e:
|
|
1169
|
+
return False, f"Failed to get base branch: {e}"
|
|
1170
|
+
|
|
1171
|
+
# 4. Create a new branch
|
|
1172
|
+
branch_name = f"add-skill-{skill_name}"
|
|
1173
|
+
try:
|
|
1174
|
+
httpx.post(
|
|
1175
|
+
f"https://api.github.com/repos/{fork_repo}/git/refs",
|
|
1176
|
+
headers=headers, timeout=15,
|
|
1177
|
+
json={"ref": f"refs/heads/{branch_name}", "sha": base_sha},
|
|
1178
|
+
)
|
|
1179
|
+
except Exception as e:
|
|
1180
|
+
return False, f"Failed to create branch: {e}"
|
|
1181
|
+
|
|
1182
|
+
# 5. Upload skill files
|
|
1183
|
+
for f in skill_path.rglob("*"):
|
|
1184
|
+
if not f.is_file():
|
|
1185
|
+
continue
|
|
1186
|
+
rel = str(f.relative_to(skill_path))
|
|
1187
|
+
upload_path = f"skills/{skill_name}/{rel}"
|
|
1188
|
+
try:
|
|
1189
|
+
import base64
|
|
1190
|
+
content_b64 = base64.b64encode(f.read_bytes()).decode()
|
|
1191
|
+
httpx.put(
|
|
1192
|
+
f"https://api.github.com/repos/{fork_repo}/contents/{upload_path}",
|
|
1193
|
+
headers=headers, timeout=15,
|
|
1194
|
+
json={
|
|
1195
|
+
"message": f"Add {skill_name} skill: {rel}",
|
|
1196
|
+
"content": content_b64,
|
|
1197
|
+
"branch": branch_name,
|
|
1198
|
+
},
|
|
1199
|
+
)
|
|
1200
|
+
except Exception as e:
|
|
1201
|
+
return False, f"Failed to upload {rel}: {e}"
|
|
1202
|
+
|
|
1203
|
+
# 6. Create PR
|
|
1204
|
+
try:
|
|
1205
|
+
resp = httpx.post(
|
|
1206
|
+
f"https://api.github.com/repos/{target_repo}/pulls",
|
|
1207
|
+
headers=headers, timeout=15,
|
|
1208
|
+
json={
|
|
1209
|
+
"title": f"Add skill: {skill_name}",
|
|
1210
|
+
"body": f"Submitting the `{skill_name}` skill via Hermes Skills Hub.\n\n"
|
|
1211
|
+
f"This skill was scanned by the Hermes Skills Guard before submission.",
|
|
1212
|
+
"head": f"{fork_repo.split('/')[0]}:{branch_name}",
|
|
1213
|
+
"base": default_branch,
|
|
1214
|
+
},
|
|
1215
|
+
)
|
|
1216
|
+
if resp.status_code == 201:
|
|
1217
|
+
pr_url = resp.json().get("html_url", "")
|
|
1218
|
+
return True, f"PR created: {pr_url}"
|
|
1219
|
+
else:
|
|
1220
|
+
return False, f"Failed to create PR: {resp.status_code} {resp.text[:200]}"
|
|
1221
|
+
except httpx.HTTPError as e:
|
|
1222
|
+
return False, f"Network error creating PR: {e}"
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
def do_snapshot_export(output_path: str, console: Optional[Console] = None) -> None:
|
|
1226
|
+
"""Export current hub skill configuration to a portable JSON file."""
|
|
1227
|
+
from tools.skills_hub import HubLockFile, TapsManager
|
|
1228
|
+
|
|
1229
|
+
c = console or _console
|
|
1230
|
+
lock = HubLockFile()
|
|
1231
|
+
taps = TapsManager()
|
|
1232
|
+
|
|
1233
|
+
installed = lock.list_installed()
|
|
1234
|
+
tap_list = taps.list_taps()
|
|
1235
|
+
|
|
1236
|
+
snapshot = {
|
|
1237
|
+
"hermes_version": "0.1.0",
|
|
1238
|
+
"exported_at": __import__("datetime").datetime.now(
|
|
1239
|
+
__import__("datetime").timezone.utc
|
|
1240
|
+
).isoformat(),
|
|
1241
|
+
"skills": [
|
|
1242
|
+
{
|
|
1243
|
+
"name": entry["name"],
|
|
1244
|
+
"source": entry.get("source", ""),
|
|
1245
|
+
"identifier": entry.get("identifier", ""),
|
|
1246
|
+
"category": str(Path(entry.get("install_path", "")).parent)
|
|
1247
|
+
if "/" in entry.get("install_path", "") else "",
|
|
1248
|
+
}
|
|
1249
|
+
for entry in installed
|
|
1250
|
+
],
|
|
1251
|
+
"taps": tap_list,
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
payload = json.dumps(snapshot, indent=2, ensure_ascii=False) + "\n"
|
|
1255
|
+
if output_path == "-":
|
|
1256
|
+
import sys
|
|
1257
|
+
sys.stdout.write(payload)
|
|
1258
|
+
else:
|
|
1259
|
+
out = Path(output_path)
|
|
1260
|
+
out.write_text(payload, encoding="utf-8")
|
|
1261
|
+
c.print(f"[bold green]Snapshot exported:[/] {out}")
|
|
1262
|
+
c.print(f"[dim]{len(installed)} skill(s), {len(tap_list)} tap(s)[/]\n")
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
def do_snapshot_import(input_path: str, force: bool = False,
|
|
1266
|
+
console: Optional[Console] = None) -> None:
|
|
1267
|
+
"""Re-install skills from a snapshot file."""
|
|
1268
|
+
from tools.skills_hub import TapsManager
|
|
1269
|
+
|
|
1270
|
+
c = console or _console
|
|
1271
|
+
inp = Path(input_path)
|
|
1272
|
+
if not inp.exists():
|
|
1273
|
+
c.print(f"[bold red]Error:[/] File not found: {inp}\n")
|
|
1274
|
+
return
|
|
1275
|
+
|
|
1276
|
+
try:
|
|
1277
|
+
snapshot = json.loads(inp.read_text(encoding="utf-8"))
|
|
1278
|
+
except json.JSONDecodeError:
|
|
1279
|
+
c.print(f"[bold red]Error:[/] Invalid JSON in {inp}\n")
|
|
1280
|
+
return
|
|
1281
|
+
|
|
1282
|
+
# Restore taps first
|
|
1283
|
+
taps = snapshot.get("taps", [])
|
|
1284
|
+
if taps:
|
|
1285
|
+
mgr = TapsManager()
|
|
1286
|
+
for tap in taps:
|
|
1287
|
+
repo = tap.get("repo", "")
|
|
1288
|
+
if repo:
|
|
1289
|
+
mgr.add(repo, tap.get("path", "skills/"))
|
|
1290
|
+
c.print(f"[dim]Restored {len(taps)} tap(s)[/]")
|
|
1291
|
+
|
|
1292
|
+
# Install skills
|
|
1293
|
+
skills = snapshot.get("skills", [])
|
|
1294
|
+
if not skills:
|
|
1295
|
+
c.print("[dim]No skills in snapshot to install.[/]\n")
|
|
1296
|
+
return
|
|
1297
|
+
|
|
1298
|
+
c.print(f"[bold]Importing {len(skills)} skill(s) from snapshot...[/]\n")
|
|
1299
|
+
for entry in skills:
|
|
1300
|
+
identifier = entry.get("identifier", "")
|
|
1301
|
+
category = entry.get("category", "")
|
|
1302
|
+
if not identifier:
|
|
1303
|
+
c.print(f"[yellow]Skipping entry with no identifier: {entry.get('name', '?')}[/]")
|
|
1304
|
+
continue
|
|
1305
|
+
|
|
1306
|
+
c.print(f"[bold]--- {entry.get('name', identifier)} ---[/]")
|
|
1307
|
+
do_install(identifier, category=category, force=force, console=c)
|
|
1308
|
+
|
|
1309
|
+
c.print("[bold green]Snapshot import complete.[/]\n")
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
# ---------------------------------------------------------------------------
|
|
1313
|
+
# CLI argparse entry point
|
|
1314
|
+
# ---------------------------------------------------------------------------
|
|
1315
|
+
|
|
1316
|
+
def skills_command(args) -> None:
|
|
1317
|
+
"""Router for `hermes skills <subcommand>` — called from hermes_cli/main.py."""
|
|
1318
|
+
action = getattr(args, "skills_action", None)
|
|
1319
|
+
|
|
1320
|
+
if action == "browse":
|
|
1321
|
+
do_browse(page=args.page, page_size=args.size, source=args.source)
|
|
1322
|
+
elif action == "search":
|
|
1323
|
+
do_search(args.query, source=args.source, limit=args.limit)
|
|
1324
|
+
elif action == "install":
|
|
1325
|
+
do_install(args.identifier, category=args.category, force=args.force,
|
|
1326
|
+
skip_confirm=getattr(args, "yes", False),
|
|
1327
|
+
name_override=getattr(args, "name", "") or "")
|
|
1328
|
+
elif action == "inspect":
|
|
1329
|
+
do_inspect(args.identifier)
|
|
1330
|
+
elif action == "list":
|
|
1331
|
+
do_list(
|
|
1332
|
+
source_filter=args.source,
|
|
1333
|
+
enabled_only=getattr(args, "enabled_only", False),
|
|
1334
|
+
)
|
|
1335
|
+
elif action == "check":
|
|
1336
|
+
do_check(name=getattr(args, "name", None))
|
|
1337
|
+
elif action == "update":
|
|
1338
|
+
do_update(name=getattr(args, "name", None))
|
|
1339
|
+
elif action == "audit":
|
|
1340
|
+
do_audit(name=getattr(args, "name", None))
|
|
1341
|
+
elif action == "uninstall":
|
|
1342
|
+
do_uninstall(args.name)
|
|
1343
|
+
elif action == "reset":
|
|
1344
|
+
do_reset(args.name, restore=getattr(args, "restore", False),
|
|
1345
|
+
skip_confirm=getattr(args, "yes", False))
|
|
1346
|
+
elif action == "publish":
|
|
1347
|
+
do_publish(
|
|
1348
|
+
args.skill_path,
|
|
1349
|
+
target=getattr(args, "to", "github"),
|
|
1350
|
+
repo=getattr(args, "repo", ""),
|
|
1351
|
+
)
|
|
1352
|
+
elif action == "snapshot":
|
|
1353
|
+
snap_action = getattr(args, "snapshot_action", None)
|
|
1354
|
+
if snap_action == "export":
|
|
1355
|
+
do_snapshot_export(args.output)
|
|
1356
|
+
elif snap_action == "import":
|
|
1357
|
+
do_snapshot_import(args.input, force=getattr(args, "force", False))
|
|
1358
|
+
else:
|
|
1359
|
+
_console.print("Usage: hermes skills snapshot [export|import]\n")
|
|
1360
|
+
elif action == "tap":
|
|
1361
|
+
tap_action = getattr(args, "tap_action", None)
|
|
1362
|
+
repo = getattr(args, "repo", "") or getattr(args, "name", "")
|
|
1363
|
+
if not tap_action:
|
|
1364
|
+
_console.print("Usage: hermes skills tap [list|add|remove]\n")
|
|
1365
|
+
return
|
|
1366
|
+
do_tap(tap_action, repo=repo)
|
|
1367
|
+
else:
|
|
1368
|
+
_console.print("Usage: hermes skills [browse|search|install|inspect|list|check|update|audit|uninstall|reset|publish|snapshot|tap]\n")
|
|
1369
|
+
_console.print("Run 'hermes skills <command> --help' for details.\n")
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
# ---------------------------------------------------------------------------
|
|
1373
|
+
# Slash command entry point (/skills in chat)
|
|
1374
|
+
# ---------------------------------------------------------------------------
|
|
1375
|
+
|
|
1376
|
+
def handle_skills_slash(cmd: str, console: Optional[Console] = None) -> None:
|
|
1377
|
+
"""
|
|
1378
|
+
Parse and dispatch `/skills <subcommand> [args]` from the chat interface.
|
|
1379
|
+
|
|
1380
|
+
Examples:
|
|
1381
|
+
/skills search kubernetes
|
|
1382
|
+
/skills install openai/skills/skill-creator
|
|
1383
|
+
/skills install openai/skills/skill-creator --force
|
|
1384
|
+
/skills install https://example.com/path/SKILL.md
|
|
1385
|
+
/skills inspect openai/skills/skill-creator
|
|
1386
|
+
/skills list
|
|
1387
|
+
/skills list --source hub
|
|
1388
|
+
/skills check
|
|
1389
|
+
/skills update
|
|
1390
|
+
/skills audit
|
|
1391
|
+
/skills audit my-skill
|
|
1392
|
+
/skills uninstall my-skill
|
|
1393
|
+
/skills tap list
|
|
1394
|
+
/skills tap add owner/repo
|
|
1395
|
+
/skills tap remove owner/repo
|
|
1396
|
+
"""
|
|
1397
|
+
c = console or _console
|
|
1398
|
+
parts = cmd.strip().split()
|
|
1399
|
+
|
|
1400
|
+
# Strip the leading "/skills" if present
|
|
1401
|
+
if parts and parts[0].lower() == "/skills":
|
|
1402
|
+
parts = parts[1:]
|
|
1403
|
+
|
|
1404
|
+
if not parts:
|
|
1405
|
+
_print_skills_help(c)
|
|
1406
|
+
return
|
|
1407
|
+
|
|
1408
|
+
action = parts[0].lower()
|
|
1409
|
+
args = parts[1:]
|
|
1410
|
+
|
|
1411
|
+
if action == "browse":
|
|
1412
|
+
page = 1
|
|
1413
|
+
page_size = 20
|
|
1414
|
+
source = "all"
|
|
1415
|
+
i = 0
|
|
1416
|
+
while i < len(args):
|
|
1417
|
+
if args[i] == "--page" and i + 1 < len(args):
|
|
1418
|
+
try:
|
|
1419
|
+
page = int(args[i + 1])
|
|
1420
|
+
except ValueError:
|
|
1421
|
+
pass
|
|
1422
|
+
i += 2
|
|
1423
|
+
elif args[i] == "--size" and i + 1 < len(args):
|
|
1424
|
+
try:
|
|
1425
|
+
page_size = int(args[i + 1])
|
|
1426
|
+
except ValueError:
|
|
1427
|
+
pass
|
|
1428
|
+
i += 2
|
|
1429
|
+
elif args[i] == "--source" and i + 1 < len(args):
|
|
1430
|
+
source = args[i + 1]
|
|
1431
|
+
i += 2
|
|
1432
|
+
else:
|
|
1433
|
+
i += 1
|
|
1434
|
+
do_browse(page=page, page_size=page_size, source=source, console=c)
|
|
1435
|
+
|
|
1436
|
+
elif action == "search":
|
|
1437
|
+
if not args:
|
|
1438
|
+
c.print("[bold red]Usage:[/] /skills search <query> [--source skills-sh|well-known|github|official] [--limit N]\n")
|
|
1439
|
+
return
|
|
1440
|
+
source = "all"
|
|
1441
|
+
limit = 10
|
|
1442
|
+
query_parts = []
|
|
1443
|
+
i = 0
|
|
1444
|
+
while i < len(args):
|
|
1445
|
+
if args[i] == "--source" and i + 1 < len(args):
|
|
1446
|
+
source = args[i + 1]
|
|
1447
|
+
i += 2
|
|
1448
|
+
elif args[i] == "--limit" and i + 1 < len(args):
|
|
1449
|
+
try:
|
|
1450
|
+
limit = int(args[i + 1])
|
|
1451
|
+
except ValueError:
|
|
1452
|
+
pass
|
|
1453
|
+
i += 2
|
|
1454
|
+
else:
|
|
1455
|
+
query_parts.append(args[i])
|
|
1456
|
+
i += 1
|
|
1457
|
+
do_search(" ".join(query_parts), source=source, limit=limit, console=c)
|
|
1458
|
+
|
|
1459
|
+
elif action == "install":
|
|
1460
|
+
if not args:
|
|
1461
|
+
c.print("[bold red]Usage:[/] /skills install <identifier-or-url> [--name <name>] [--category <cat>] [--force] [--now]\n")
|
|
1462
|
+
return
|
|
1463
|
+
identifier = args[0]
|
|
1464
|
+
category = ""
|
|
1465
|
+
name_override = ""
|
|
1466
|
+
# Slash commands run inside prompt_toolkit where input() hangs.
|
|
1467
|
+
# Always skip confirmation — the user typing the command is implicit consent.
|
|
1468
|
+
skip_confirm = True
|
|
1469
|
+
force = "--force" in args
|
|
1470
|
+
# --now invalidates prompt cache immediately (costs more money).
|
|
1471
|
+
# Default: defer to next session to preserve cache.
|
|
1472
|
+
invalidate_cache = "--now" in args
|
|
1473
|
+
for i, a in enumerate(args):
|
|
1474
|
+
if a == "--category" and i + 1 < len(args):
|
|
1475
|
+
category = args[i + 1]
|
|
1476
|
+
elif a == "--name" and i + 1 < len(args):
|
|
1477
|
+
name_override = args[i + 1]
|
|
1478
|
+
do_install(identifier, category=category, force=force,
|
|
1479
|
+
skip_confirm=skip_confirm, invalidate_cache=invalidate_cache,
|
|
1480
|
+
name_override=name_override, console=c)
|
|
1481
|
+
|
|
1482
|
+
elif action == "inspect":
|
|
1483
|
+
if not args:
|
|
1484
|
+
c.print("[bold red]Usage:[/] /skills inspect <identifier>\n")
|
|
1485
|
+
return
|
|
1486
|
+
do_inspect(args[0], console=c)
|
|
1487
|
+
|
|
1488
|
+
elif action == "list":
|
|
1489
|
+
source_filter = "all"
|
|
1490
|
+
enabled_only = "--enabled-only" in args or "--enabled" in args
|
|
1491
|
+
if "--source" in args:
|
|
1492
|
+
idx = args.index("--source")
|
|
1493
|
+
if idx + 1 < len(args):
|
|
1494
|
+
source_filter = args[idx + 1]
|
|
1495
|
+
do_list(source_filter=source_filter, enabled_only=enabled_only, console=c)
|
|
1496
|
+
|
|
1497
|
+
elif action == "check":
|
|
1498
|
+
name = args[0] if args else None
|
|
1499
|
+
do_check(name=name, console=c)
|
|
1500
|
+
|
|
1501
|
+
elif action == "update":
|
|
1502
|
+
name = args[0] if args else None
|
|
1503
|
+
do_update(name=name, console=c)
|
|
1504
|
+
|
|
1505
|
+
elif action == "audit":
|
|
1506
|
+
name = args[0] if args else None
|
|
1507
|
+
do_audit(name=name, console=c)
|
|
1508
|
+
|
|
1509
|
+
elif action == "uninstall":
|
|
1510
|
+
if not args:
|
|
1511
|
+
c.print("[bold red]Usage:[/] /skills uninstall <name> [--now]\n")
|
|
1512
|
+
return
|
|
1513
|
+
# Slash commands run inside prompt_toolkit where input() hangs.
|
|
1514
|
+
skip_confirm = True
|
|
1515
|
+
invalidate_cache = "--now" in args
|
|
1516
|
+
do_uninstall(args[0], console=c, skip_confirm=skip_confirm,
|
|
1517
|
+
invalidate_cache=invalidate_cache)
|
|
1518
|
+
|
|
1519
|
+
elif action == "reset":
|
|
1520
|
+
if not args:
|
|
1521
|
+
c.print("[bold red]Usage:[/] /skills reset <name> [--restore] [--now]\n")
|
|
1522
|
+
c.print("[dim]Clears the bundled-skills manifest entry so future updates stop marking it as user-modified.[/]")
|
|
1523
|
+
c.print("[dim]Pass --restore to also replace the current copy with the bundled version.[/]\n")
|
|
1524
|
+
return
|
|
1525
|
+
name = args[0]
|
|
1526
|
+
restore = "--restore" in args
|
|
1527
|
+
invalidate_cache = "--now" in args
|
|
1528
|
+
# Slash commands can't prompt — --restore in slash mode is implicit consent.
|
|
1529
|
+
do_reset(name, restore=restore, console=c, skip_confirm=True,
|
|
1530
|
+
invalidate_cache=invalidate_cache)
|
|
1531
|
+
|
|
1532
|
+
elif action == "publish":
|
|
1533
|
+
if not args:
|
|
1534
|
+
c.print("[bold red]Usage:[/] /skills publish <skill-path> [--to github] [--repo owner/repo]\n")
|
|
1535
|
+
return
|
|
1536
|
+
skill_path = args[0]
|
|
1537
|
+
target = "github"
|
|
1538
|
+
repo = ""
|
|
1539
|
+
for i, a in enumerate(args):
|
|
1540
|
+
if a == "--to" and i + 1 < len(args):
|
|
1541
|
+
target = args[i + 1]
|
|
1542
|
+
if a == "--repo" and i + 1 < len(args):
|
|
1543
|
+
repo = args[i + 1]
|
|
1544
|
+
do_publish(skill_path, target=target, repo=repo, console=c)
|
|
1545
|
+
|
|
1546
|
+
elif action == "snapshot":
|
|
1547
|
+
if not args:
|
|
1548
|
+
c.print("[bold red]Usage:[/] /skills snapshot export <file> | /skills snapshot import <file>\n")
|
|
1549
|
+
return
|
|
1550
|
+
snap_action = args[0]
|
|
1551
|
+
if snap_action == "export" and len(args) > 1:
|
|
1552
|
+
do_snapshot_export(args[1], console=c)
|
|
1553
|
+
elif snap_action == "import" and len(args) > 1:
|
|
1554
|
+
force = "--force" in args
|
|
1555
|
+
do_snapshot_import(args[1], force=force, console=c)
|
|
1556
|
+
else:
|
|
1557
|
+
c.print("[bold red]Usage:[/] /skills snapshot export <file> | /skills snapshot import <file>\n")
|
|
1558
|
+
|
|
1559
|
+
elif action == "tap":
|
|
1560
|
+
if not args:
|
|
1561
|
+
do_tap("list", console=c)
|
|
1562
|
+
return
|
|
1563
|
+
tap_action = args[0]
|
|
1564
|
+
repo = args[1] if len(args) > 1 else ""
|
|
1565
|
+
do_tap(tap_action, repo=repo, console=c)
|
|
1566
|
+
|
|
1567
|
+
elif action in {"help", "--help", "-h"}:
|
|
1568
|
+
_print_skills_help(c)
|
|
1569
|
+
|
|
1570
|
+
else:
|
|
1571
|
+
c.print(f"[bold red]Unknown action:[/] {action}")
|
|
1572
|
+
_print_skills_help(c)
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
def _print_skills_help(console: Console) -> None:
|
|
1576
|
+
"""Print help for the /skills slash command."""
|
|
1577
|
+
console.print(Panel(
|
|
1578
|
+
"[bold]Skills Hub Commands:[/]\n\n"
|
|
1579
|
+
" [cyan]browse[/] [--source official] Browse all available skills (paginated)\n"
|
|
1580
|
+
" [cyan]search[/] <query> Search registries for skills\n"
|
|
1581
|
+
" [cyan]install[/] <identifier> Install a skill (with security scan)\n"
|
|
1582
|
+
" [cyan]inspect[/] <identifier> Preview a skill without installing\n"
|
|
1583
|
+
" [cyan]list[/] [--source hub|builtin|local] [--enabled-only]\n"
|
|
1584
|
+
" List installed skills; --enabled-only filters to the active profile's live set\n"
|
|
1585
|
+
" [cyan]check[/] [name] Check hub skills for upstream updates\n"
|
|
1586
|
+
" [cyan]update[/] [name] Update hub skills with upstream changes\n"
|
|
1587
|
+
" [cyan]audit[/] [name] Re-scan hub skills for security\n"
|
|
1588
|
+
" [cyan]uninstall[/] <name> Remove a hub-installed skill\n"
|
|
1589
|
+
" [cyan]reset[/] <name> [--restore] Reset bundled-skill tracking (fix 'user-modified' flag)\n"
|
|
1590
|
+
" [cyan]publish[/] <path> --repo <r> Publish a skill to GitHub via PR\n"
|
|
1591
|
+
" [cyan]snapshot[/] export|import Export/import skill configurations\n"
|
|
1592
|
+
" [cyan]tap[/] list|add|remove Manage skill sources\n",
|
|
1593
|
+
title="/skills",
|
|
1594
|
+
))
|
|
1595
|
+
|