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,1468 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
|
|
6
|
+
<title>NOUS · pretext</title>
|
|
7
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
|
+
<link href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&display=block" rel="stylesheet">
|
|
10
|
+
<style>
|
|
11
|
+
:root { color-scheme: dark; }
|
|
12
|
+
|
|
13
|
+
:root {
|
|
14
|
+
--background: color-mix(in srgb, #041C1C 100%, transparent);
|
|
15
|
+
--background-base: #041C1C;
|
|
16
|
+
--background-alpha: 1;
|
|
17
|
+
--background-blend: difference;
|
|
18
|
+
--midground: color-mix(in srgb, #ffe6cb 100%, transparent);
|
|
19
|
+
--midground-base: #ffe6cb;
|
|
20
|
+
--midground-alpha: 1;
|
|
21
|
+
--foreground: color-mix(in srgb, #ffffff 0%, transparent);
|
|
22
|
+
--foreground-base: #ffffff;
|
|
23
|
+
--foreground-alpha: 0;
|
|
24
|
+
--foreground-blend: difference;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
html, body {
|
|
28
|
+
margin: 0;
|
|
29
|
+
width: 100%;
|
|
30
|
+
min-height: 100vh;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
background: #000;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* literally center the composition in 100vh */
|
|
36
|
+
body {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#stage {
|
|
43
|
+
position: relative;
|
|
44
|
+
z-index: 2;
|
|
45
|
+
width: min(1240px, 100vw);
|
|
46
|
+
height: min(720px, 100vh);
|
|
47
|
+
cursor: grab;
|
|
48
|
+
overflow: visible;
|
|
49
|
+
}
|
|
50
|
+
#stage:active { cursor: grabbing; }
|
|
51
|
+
|
|
52
|
+
#c,
|
|
53
|
+
#orbCanvas {
|
|
54
|
+
display: block;
|
|
55
|
+
position: absolute;
|
|
56
|
+
left: calc((100vw - min(1240px, 100vw)) / -2);
|
|
57
|
+
top: calc((100vh - min(720px, 100vh)) / -2);
|
|
58
|
+
width: 100vw;
|
|
59
|
+
height: 100vh;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
}
|
|
62
|
+
#c { z-index: 3; }
|
|
63
|
+
#orbCanvas {
|
|
64
|
+
z-index: 4;
|
|
65
|
+
opacity: 1;
|
|
66
|
+
}
|
|
67
|
+
#noiseCanvas {
|
|
68
|
+
display: block;
|
|
69
|
+
position: absolute;
|
|
70
|
+
inset: 0;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 100%;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
}
|
|
75
|
+
#textLayer {
|
|
76
|
+
position: absolute;
|
|
77
|
+
inset: 0;
|
|
78
|
+
z-index: 2;
|
|
79
|
+
color: var(--midground-base);
|
|
80
|
+
font: 400 10px/15px "Geist Mono", "JetBrains Mono", "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
81
|
+
pointer-events: auto;
|
|
82
|
+
user-select: text;
|
|
83
|
+
-webkit-user-select: text;
|
|
84
|
+
}
|
|
85
|
+
#textLayer *::selection {
|
|
86
|
+
background: var(--selection-bg, var(--midground));
|
|
87
|
+
color: var(--background-base);
|
|
88
|
+
}
|
|
89
|
+
.flow-line {
|
|
90
|
+
position: absolute;
|
|
91
|
+
height: 20px;
|
|
92
|
+
white-space: pre;
|
|
93
|
+
overflow: visible;
|
|
94
|
+
color: var(--midground-base);
|
|
95
|
+
}
|
|
96
|
+
#annotationLayer {
|
|
97
|
+
position: absolute;
|
|
98
|
+
inset: 0;
|
|
99
|
+
z-index: 4;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
overflow: visible;
|
|
102
|
+
}
|
|
103
|
+
.annot {
|
|
104
|
+
position: absolute;
|
|
105
|
+
pointer-events: none;
|
|
106
|
+
will-change: opacity, transform;
|
|
107
|
+
}
|
|
108
|
+
.tok-keyword { color: color-mix(in srgb, var(--midground-base) 54%, #ff174d); }
|
|
109
|
+
.tok-string { color: color-mix(in srgb, var(--midground-base) 52%, #ff6b3d); }
|
|
110
|
+
.tok-comment { color: color-mix(in srgb, var(--midground-base) 42%, #7f1d1d); }
|
|
111
|
+
.tok-number { color: color-mix(in srgb, var(--midground-base) 50%, #ff2a6d); }
|
|
112
|
+
.tok-const { color: color-mix(in srgb, var(--midground-base) 48%, #ff003c); }
|
|
113
|
+
|
|
114
|
+
.layer { position: fixed; inset: 0; pointer-events: none; }
|
|
115
|
+
.bg-lens { z-index: 1; background-color: var(--background); mix-blend-mode: var(--background-blend); }
|
|
116
|
+
.vignette { z-index: 99; background: radial-gradient(ellipse at 0% 0%, rgba(255,189,56,0) 60%, rgba(255,189,56,0.35) 100%); mix-blend-mode: lighten; opacity: 0.22; }
|
|
117
|
+
.fg-lens { z-index: 100; background-color: var(--foreground); mix-blend-mode: var(--foreground-blend); }
|
|
118
|
+
.noise {
|
|
119
|
+
z-index: 101;
|
|
120
|
+
mix-blend-mode: difference;
|
|
121
|
+
}
|
|
122
|
+
#noiseCanvas {
|
|
123
|
+
width: 100%;
|
|
124
|
+
height: 100%;
|
|
125
|
+
display: block;
|
|
126
|
+
}
|
|
127
|
+
.terminal-cursor {
|
|
128
|
+
position: absolute;
|
|
129
|
+
width: 0.6em;
|
|
130
|
+
height: 1em;
|
|
131
|
+
background: #fff;
|
|
132
|
+
z-index: 6;
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
mix-blend-mode: difference;
|
|
135
|
+
animation: term-blink 1s steps(1, end) infinite;
|
|
136
|
+
}
|
|
137
|
+
@keyframes term-blink {
|
|
138
|
+
0%, 60% { opacity: 1; }
|
|
139
|
+
60.01%, 100% { opacity: 0; }
|
|
140
|
+
}
|
|
141
|
+
.cursor-anchor {
|
|
142
|
+
display: inline-block;
|
|
143
|
+
width: 0;
|
|
144
|
+
height: 1em;
|
|
145
|
+
vertical-align: text-top;
|
|
146
|
+
pointer-events: none;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@font-face {
|
|
150
|
+
font-family: "Mondwest";
|
|
151
|
+
src: url("https://esm.sh/@nous-research/ui@0.4.0/dist/fonts/Mondwest-Regular.woff2") format("woff2");
|
|
152
|
+
font-weight: 400; font-style: normal; font-display: block;
|
|
153
|
+
}
|
|
154
|
+
@font-face {
|
|
155
|
+
font-family: "Geist Mono";
|
|
156
|
+
src: url("https://cdn.jsdelivr.net/npm/@fontsource/geist-mono@5.2.5/files/geist-mono-latin-400-normal.woff2") format("woff2");
|
|
157
|
+
font-weight: 400; font-style: normal; font-display: block;
|
|
158
|
+
}
|
|
159
|
+
@font-face {
|
|
160
|
+
font-family: "JetBrains Mono";
|
|
161
|
+
src: url("https://cdn.jsdelivr.net/npm/@fontsource/jetbrains-mono@5.2.5/files/jetbrains-mono-latin-400-normal.woff2") format("woff2");
|
|
162
|
+
font-weight: 400; font-style: normal; font-display: block;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.font-primer { position: fixed; left: -9999px; top: -9999px; font: 400 26px "Mondwest", serif; }
|
|
166
|
+
</style>
|
|
167
|
+
</head>
|
|
168
|
+
<body>
|
|
169
|
+
<div id="stage"><div id="textLayer" aria-label="self-learning source stream"></div><div id="terminalCursor" class="terminal-cursor" hidden></div><canvas id="c"></canvas><canvas id="orbCanvas"></canvas></div>
|
|
170
|
+
<div class="layer bg-lens"></div>
|
|
171
|
+
<div class="layer vignette"></div>
|
|
172
|
+
<div class="layer fg-lens"></div>
|
|
173
|
+
<div class="layer noise"><canvas id="noiseCanvas"></canvas></div>
|
|
174
|
+
<div class="font-primer" aria-hidden="true">Aa Mondwest priming glyphs 0123456789</div>
|
|
175
|
+
|
|
176
|
+
<script type="module">
|
|
177
|
+
import {
|
|
178
|
+
prepareWithSegments,
|
|
179
|
+
layoutNextLineRange,
|
|
180
|
+
materializeLineRange,
|
|
181
|
+
} from "https://esm.sh/@chenglou/pretext@0.0.6";
|
|
182
|
+
import gsap from "https://esm.sh/gsap@3.12.5";
|
|
183
|
+
import GUI from "https://esm.sh/lil-gui@0.19.2";
|
|
184
|
+
|
|
185
|
+
const SELF_LEARNING_SOURCE = String.raw`
|
|
186
|
+
type ToolId=u16; type FeatureId=u32; type W=f32;
|
|
187
|
+
struct Obs{tool:ToolId,reward:f32,lat:u32,feat:&'static[FeatureId],tok:u16}
|
|
188
|
+
struct Belief{prior:W,conf:W,last:u64,uses:u32}
|
|
189
|
+
|
|
190
|
+
#[inline] fn sig(x:f32)->f32{1.0/(1.0+(-x).exp())}
|
|
191
|
+
#[inline] fn decay(now:u64,last:u64)->f32{1.0-((now-last)as f32/900.0).min(1.0)*0.22}
|
|
192
|
+
#[inline] fn clamp8(x:f32)->f32{x.clamp(-8.0,8.0)}
|
|
193
|
+
|
|
194
|
+
fn score(theta:&[W],b:&[Belief],o:&Obs)->f32{
|
|
195
|
+
let sparse=o.feat.iter().fold(0.0,|a,id|a+theta[*id as usize]);
|
|
196
|
+
let belief=b[o.tool as usize].prior*b[o.tool as usize].conf.max(0.15);
|
|
197
|
+
sparse+belief-(o.lat as f32*0.00072)-(o.tok as f32*0.00009)
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
fn update(theta:&mut[W],b:&mut[Belief],o:&Obs,now:u64,eta:f32){
|
|
201
|
+
let p=sig(score(theta,b,o));
|
|
202
|
+
let e=(o.reward-p).clamp(-1.0,1.0);
|
|
203
|
+
let step=eta*e/(o.feat.len().max(1)as f32).sqrt();
|
|
204
|
+
|
|
205
|
+
for id in o.feat{
|
|
206
|
+
let w=&mut theta[*id as usize];
|
|
207
|
+
*w=clamp8(*w+step-0.0003*w.signum());
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
let slot=&mut b[o.tool as usize];
|
|
211
|
+
let d=decay(now,slot.last);
|
|
212
|
+
let r=(o.reward-o.lat as f32*0.00035).clamp(-1.0,1.0);
|
|
213
|
+
slot.prior=slot.prior*d+r*0.14+e*0.06;
|
|
214
|
+
slot.conf=(slot.conf*0.93+r.abs()*0.07).min(1.0);
|
|
215
|
+
slot.uses=slot.uses.saturating_add(1);
|
|
216
|
+
slot.last=now;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
fn consolidate(trace:&[Obs],theta:&mut[W],b:&mut[Belief],now:u64){
|
|
220
|
+
let eta=0.042/(1.0+(trace.len()as f32*0.003));
|
|
221
|
+
let mut credit=1.0;
|
|
222
|
+
for o in trace.iter().rev(){
|
|
223
|
+
update(theta,b,o,now,eta*credit);
|
|
224
|
+
credit*=0.985;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
fn choose<'a>(theta:&[W],b:&[Belief],xs:&'a[Obs],temp:f32)->&'a Obs{
|
|
229
|
+
xs.iter().max_by(|a,bx|{
|
|
230
|
+
let sa=score(theta,b,a)/temp.max(0.05);
|
|
231
|
+
let sb=score(theta,b,bx)/temp.max(0.05);
|
|
232
|
+
sa.partial_cmp(&sb).unwrap()
|
|
233
|
+
}).unwrap()
|
|
234
|
+
}
|
|
235
|
+
`;
|
|
236
|
+
const CODE_CHUNK = SELF_LEARNING_SOURCE
|
|
237
|
+
.trim()
|
|
238
|
+
.replace(/\t/g, " ")
|
|
239
|
+
.replace(/\n{3,}/g, "\n\n");
|
|
240
|
+
const STREAM_REPEAT_COUNT = 6;
|
|
241
|
+
const streamCorpus = Array.from({ length: STREAM_REPEAT_COUNT }, () => CODE_CHUNK).join("\n\n");
|
|
242
|
+
|
|
243
|
+
const stage = document.getElementById("stage");
|
|
244
|
+
const textLayer = document.getElementById("textLayer");
|
|
245
|
+
const canvas = document.getElementById("c");
|
|
246
|
+
const orbCanvas = document.getElementById("orbCanvas");
|
|
247
|
+
const ctx = canvas.getContext("2d", { alpha: true });
|
|
248
|
+
const orbCtx = orbCanvas.getContext("2d", { alpha: true });
|
|
249
|
+
let W = 0, H = 0, DPR = 1;
|
|
250
|
+
let canvasLeft = 0, canvasTop = 0, canvasW = 0, canvasH = 0;
|
|
251
|
+
|
|
252
|
+
let BODY_FONT = '400 10px "Geist Mono", "JetBrains Mono", "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace';
|
|
253
|
+
let BODY_LINE_H = 15;
|
|
254
|
+
let ASCII_FONT = '8px monospace';
|
|
255
|
+
let CELL_W = 4.8;
|
|
256
|
+
let CELL_H = 8;
|
|
257
|
+
const CHARS = ' ·:;+=░▒▓█';
|
|
258
|
+
const EMPTY = 0;
|
|
259
|
+
const CHARS_LAST = CHARS.length - 1;
|
|
260
|
+
|
|
261
|
+
const LOGO = ['N', 'O', 'U', 'S'].map((letter, i) => ({
|
|
262
|
+
letter,
|
|
263
|
+
rows: [
|
|
264
|
+
i === 0
|
|
265
|
+
? '██░░░██,██░░░██,███░░██,█░██░██,█░░████,█░░░███,██░░░██,██░░░██,██░░░██'
|
|
266
|
+
: i === 1
|
|
267
|
+
? '░█████░,██░░░██,██░░░██,██░░░██,██░░░██,██░░░██,██░░░██,██░░░██,░█████░'
|
|
268
|
+
: i === 2
|
|
269
|
+
? '██░░░██,██░░░██,██░░░██,██░░░██,██░░░██,██░░░██,██░░░██,██░░░██,░█████░'
|
|
270
|
+
: '░█████░,██░░░██,██░░░░░,░████░░,░░░░██░,░░░░░██,██░░░██,██░░░██,░█████░'
|
|
271
|
+
][0].split(',')
|
|
272
|
+
}));
|
|
273
|
+
|
|
274
|
+
function hash(x, y) {
|
|
275
|
+
const n = Math.sin(x * 127.1 + y * 311.7) * 43758.5453;
|
|
276
|
+
return n - Math.floor(n);
|
|
277
|
+
}
|
|
278
|
+
function charAt(t) {
|
|
279
|
+
return CHARS[Math.min(CHARS.length - 1, Math.max(0, Math.floor(t * CHARS.length)))];
|
|
280
|
+
}
|
|
281
|
+
function gridDist(v, step) {
|
|
282
|
+
return Math.abs(v / step - Math.round(v / step)) * step;
|
|
283
|
+
}
|
|
284
|
+
function rot(a, b, angle) {
|
|
285
|
+
const c = Math.cos(angle), s = Math.sin(angle);
|
|
286
|
+
return [a * c - b * s, a * s + b * c];
|
|
287
|
+
}
|
|
288
|
+
function hexToRGB(h) {
|
|
289
|
+
const v = parseInt(h.slice(1), 16);
|
|
290
|
+
return [(v >> 16) & 255, (v >> 8) & 255, v & 255];
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
let fontsReady = false;
|
|
294
|
+
let bodyPrepared = null;
|
|
295
|
+
function rebuildLayouts() {
|
|
296
|
+
bodyPrepared = prepareWithSegments(streamCorpus, BODY_FONT, { whiteSpace: "pre-wrap" });
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
const LENS_0 = { bgBlend: "difference", bgColor: "#041C1C", bgOpacity: 1, mgColor: "#ffe6cb", mgOpacity: 1, fgBlend: "difference", fgColor: "#FFFFFF", fgOpacity: 0 };
|
|
300
|
+
const LENS_5I = { bgBlend: "multiply", bgColor: "#ffffff", bgOpacity: 1, mgColor: "#fffff5", mgOpacity: 1, fgBlend: "difference", fgColor: "#041a1f", fgOpacity: 1 };
|
|
301
|
+
const LENS = { current: null, mgBase: null, depthColors: null };
|
|
302
|
+
function colorMix(color, alpha) { return `color-mix(in srgb, ${color} ${Math.round(alpha * 100)}%, transparent)`; }
|
|
303
|
+
function precomputeDepthColors(mgColor) {
|
|
304
|
+
const [r, g, b] = hexToRGB(mgColor);
|
|
305
|
+
return Array.from({ length: 64 }, (_, i) => {
|
|
306
|
+
const depth = i / 63;
|
|
307
|
+
const m = 0.4 + depth * 0.6;
|
|
308
|
+
return `rgba(${(r * m) | 0},${(g * m) | 0},${(b * m) | 0},${depth})`;
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
function applyLens(preset) {
|
|
312
|
+
LENS.current = preset;
|
|
313
|
+
LENS.mgBase = preset.mgColor;
|
|
314
|
+
LENS.depthColors = precomputeDepthColors(preset.mgColor);
|
|
315
|
+
const s = document.documentElement.style;
|
|
316
|
+
for (const [name, color, alpha] of [["foreground", preset.fgColor, preset.fgOpacity], ["midground", preset.mgColor, preset.mgOpacity], ["background", preset.bgColor, preset.bgOpacity]]) {
|
|
317
|
+
s.setProperty(`--${name}`, colorMix(color, alpha));
|
|
318
|
+
s.setProperty(`--${name}-base`, color);
|
|
319
|
+
s.setProperty(`--${name}-alpha`, `${alpha}`);
|
|
320
|
+
}
|
|
321
|
+
s.setProperty("--background-blend", preset.bgBlend);
|
|
322
|
+
s.setProperty("--foreground-blend", preset.fgBlend);
|
|
323
|
+
}
|
|
324
|
+
applyLens(LENS_0);
|
|
325
|
+
addEventListener("keydown", e => { if (e.key === "x" || e.key === "X") applyLens(LENS.current === LENS_0 ? LENS_5I : LENS_0); });
|
|
326
|
+
const SELECTION_COLORS = [
|
|
327
|
+
"oklch(85% 0.12 330)",
|
|
328
|
+
"oklch(85% 0.12 300)",
|
|
329
|
+
"oklch(85% 0.12 270)",
|
|
330
|
+
"oklch(85% 0.12 230)",
|
|
331
|
+
"oklch(85% 0.12 180)",
|
|
332
|
+
"oklch(85% 0.12 150)",
|
|
333
|
+
"oklch(85% 0.12 120)",
|
|
334
|
+
"oklch(85% 0.12 90)",
|
|
335
|
+
"oklch(85% 0.12 60)",
|
|
336
|
+
"oklch(85% 0.12 30)",
|
|
337
|
+
"oklch(88% 0.10 80)",
|
|
338
|
+
];
|
|
339
|
+
let selectionIdx = 0;
|
|
340
|
+
function cycleSelectionColor() {
|
|
341
|
+
requestAnimationFrame(() => {
|
|
342
|
+
document.documentElement.style.setProperty("--selection-bg", SELECTION_COLORS[(selectionIdx = (selectionIdx + 1) % SELECTION_COLORS.length)]);
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
document.addEventListener("selectstart", cycleSelectionColor);
|
|
346
|
+
addEventListener("keydown", e => {
|
|
347
|
+
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "a") {
|
|
348
|
+
cycleSelectionColor();
|
|
349
|
+
e.preventDefault();
|
|
350
|
+
const selection = getSelection();
|
|
351
|
+
const range = document.createRange();
|
|
352
|
+
range.selectNodeContents(textLayer);
|
|
353
|
+
selection.removeAllRanges();
|
|
354
|
+
selection.addRange(range);
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
let asciiMask, asciiChar, asciiGlyph, orbMask, orbChar, orbGlyph, obstacleRows, intervals;
|
|
359
|
+
let cols = 0, rows = 0;
|
|
360
|
+
let canvasCols = 0, canvasRows = 0;
|
|
361
|
+
let lastFrameTime = 0;
|
|
362
|
+
const drawnLines = { x: [], y: [], w: [], text: [], count: 0 };
|
|
363
|
+
let lineNodes = [];
|
|
364
|
+
let terminalAnchorEl = null;
|
|
365
|
+
let terminalLineEl = null;
|
|
366
|
+
let orbShapeControl = null;
|
|
367
|
+
let autoCubeCall = null;
|
|
368
|
+
let lastTextSignature = "";
|
|
369
|
+
const ORB = {
|
|
370
|
+
panX: 0, panY: 0,
|
|
371
|
+
orbitX: -1.42, orbitY: 0,
|
|
372
|
+
radius: 0.135,
|
|
373
|
+
zoom: 3,
|
|
374
|
+
cubeScale: 1.8,
|
|
375
|
+
autoSpin: 0.18,
|
|
376
|
+
lat: 19,
|
|
377
|
+
lon: 30,
|
|
378
|
+
wire: 0.2,
|
|
379
|
+
shape: "sphere",
|
|
380
|
+
shapeMix: 0,
|
|
381
|
+
drag: null,
|
|
382
|
+
positioned: false,
|
|
383
|
+
staged: false,
|
|
384
|
+
};
|
|
385
|
+
const SCENE = {
|
|
386
|
+
orbBuildDuration: 1.45,
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
let nousStartTime = null;
|
|
390
|
+
const AUTO_CUBE_AFTER_NOUS_RESOLVE = 0.0;
|
|
391
|
+
function setOrbShape(shape, { reveal = false, syncControl = true } = {}) {
|
|
392
|
+
ORB.shape = shape;
|
|
393
|
+
if (syncControl) {
|
|
394
|
+
ctrls.orbShape = shape;
|
|
395
|
+
orbShapeControl?.updateDisplay();
|
|
396
|
+
}
|
|
397
|
+
if (reveal) {
|
|
398
|
+
gsap.killTweensOf(orbCanvas);
|
|
399
|
+
orbCanvas.style.opacity = "1";
|
|
400
|
+
}
|
|
401
|
+
gsap.killTweensOf(ORB, "shapeMix");
|
|
402
|
+
gsap.to(ORB, {
|
|
403
|
+
shapeMix: shape === "cube" ? 1 : 0,
|
|
404
|
+
duration: Math.max(0.01, ctrls.shapeMorphDuration ?? 0.65),
|
|
405
|
+
ease: "power2.inOut",
|
|
406
|
+
onUpdate: () => { lastTextSignature = ""; },
|
|
407
|
+
});
|
|
408
|
+
lastTextSignature = "";
|
|
409
|
+
}
|
|
410
|
+
function sceneTimeNow() {
|
|
411
|
+
return (typeof performance !== "undefined" ? performance.now() : Date.now()) * 0.001 - sceneEpoch;
|
|
412
|
+
}
|
|
413
|
+
function armNous(atTime = sceneTimeNow()) {
|
|
414
|
+
if (nousStartTime !== null) return;
|
|
415
|
+
const startAt = Math.max(0, atTime);
|
|
416
|
+
nousStartTime = startAt;
|
|
417
|
+
const delay = Math.max(0, startAt - sceneTimeNow()) + Math.max(0, ctrls.orbContainNous ?? 1.0);
|
|
418
|
+
gsap.killTweensOf(orbCanvas);
|
|
419
|
+
gsap.to(orbCanvas, {
|
|
420
|
+
opacity: 0,
|
|
421
|
+
duration: Math.max(0.05, ctrls.orbFadeDuration ?? 0.7),
|
|
422
|
+
delay,
|
|
423
|
+
ease: "power2.out",
|
|
424
|
+
});
|
|
425
|
+
autoCubeCall?.kill();
|
|
426
|
+
const nousResolveAt = startAt + (LOGO.length - 1) * 0.4 + 1.0;
|
|
427
|
+
const cubeAt = nousResolveAt + AUTO_CUBE_AFTER_NOUS_RESOLVE;
|
|
428
|
+
autoCubeCall = gsap.delayedCall(Math.max(0, cubeAt - sceneTimeNow()), () => {
|
|
429
|
+
setOrbShape("cube", { reveal: true, syncControl: false });
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
function orbBuildStartTime() {
|
|
433
|
+
return Math.max(0, ctrls.orbLead ?? 0);
|
|
434
|
+
}
|
|
435
|
+
function codeTypingStartTime() {
|
|
436
|
+
return Math.max(0, orbBuildStartTime() + SCENE.orbBuildDuration * 0.62 - 0.3);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
function logoCenterPan() {
|
|
440
|
+
const aspect = cols / rows / 2;
|
|
441
|
+
const h = 0.38;
|
|
442
|
+
const w = h * 2.6 * 0.55;
|
|
443
|
+
const halfStageX = (w / 2 / aspect) * W;
|
|
444
|
+
const centerX = W * 0.5;
|
|
445
|
+
const centerY = H * 0.5;
|
|
446
|
+
return {
|
|
447
|
+
panX: centerX / W - 0.5,
|
|
448
|
+
panY: centerY / H - 0.5,
|
|
449
|
+
left: centerX - halfStageX,
|
|
450
|
+
right: centerX + halfStageX,
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
function startSceneTimeline() {
|
|
455
|
+
if (ORB.staged || !cols || !rows || !W || !H) return;
|
|
456
|
+
ORB.staged = true;
|
|
457
|
+
const now = sceneTimeNow();
|
|
458
|
+
const startAt = Math.max(0, orbBuildStartTime() + SCENE.orbBuildDuration * 0.72 - now);
|
|
459
|
+
gsap.timeline({ delay: startAt })
|
|
460
|
+
.to(ORB, {
|
|
461
|
+
orbitX: 0.55,
|
|
462
|
+
orbitY: `+=${Math.PI * 1.85}`,
|
|
463
|
+
duration: 2.4,
|
|
464
|
+
ease: "power3.inOut",
|
|
465
|
+
onUpdate: () => { lastTextSignature = ""; },
|
|
466
|
+
}, "<")
|
|
467
|
+
.to(ORB, {
|
|
468
|
+
radius: 0.125,
|
|
469
|
+
duration: 2.4,
|
|
470
|
+
ease: "power3.inOut",
|
|
471
|
+
onUpdate: () => { lastTextSignature = ""; },
|
|
472
|
+
}, "<")
|
|
473
|
+
.to(ORB, {
|
|
474
|
+
wire: ctrls.orbWireLow,
|
|
475
|
+
duration: ctrls.wireDropDuration,
|
|
476
|
+
ease: "power2.inOut",
|
|
477
|
+
onUpdate: () => { lastTextSignature = ""; },
|
|
478
|
+
onComplete: () => {
|
|
479
|
+
armNous(sceneTimeNow() + Math.max(0, ctrls.nousAfterWire));
|
|
480
|
+
},
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
function resize() {
|
|
485
|
+
const r = stage.getBoundingClientRect();
|
|
486
|
+
W = Math.max(1, Math.floor(r.width));
|
|
487
|
+
H = Math.max(1, Math.floor(r.height));
|
|
488
|
+
canvasLeft = r.left;
|
|
489
|
+
canvasTop = r.top;
|
|
490
|
+
canvasW = Math.max(1, window.innerWidth);
|
|
491
|
+
canvasH = Math.max(1, window.innerHeight);
|
|
492
|
+
DPR = Math.min(window.devicePixelRatio || 1, 2);
|
|
493
|
+
canvas.width = Math.floor(canvasW * DPR);
|
|
494
|
+
canvas.height = Math.floor(canvasH * DPR);
|
|
495
|
+
orbCanvas.width = Math.floor(canvasW * DPR);
|
|
496
|
+
orbCanvas.height = Math.floor(canvasH * DPR);
|
|
497
|
+
ctx.setTransform(DPR, 0, 0, DPR, 0, 0);
|
|
498
|
+
orbCtx.setTransform(DPR, 0, 0, DPR, 0, 0);
|
|
499
|
+
ctx.font = ASCII_FONT;
|
|
500
|
+
orbCtx.font = ASCII_FONT;
|
|
501
|
+
CELL_W = ctx.measureText("M").width || CELL_W;
|
|
502
|
+
cols = Math.ceil(W / CELL_W);
|
|
503
|
+
rows = Math.ceil(H / CELL_H);
|
|
504
|
+
canvasCols = Math.ceil(canvasW / CELL_W);
|
|
505
|
+
canvasRows = Math.ceil(canvasH / CELL_H);
|
|
506
|
+
asciiMask = new Uint8Array(canvasCols * canvasRows);
|
|
507
|
+
asciiChar = new Uint8Array(canvasCols * canvasRows);
|
|
508
|
+
asciiGlyph = new Array(canvasCols * canvasRows);
|
|
509
|
+
orbMask = new Uint8Array(canvasCols * canvasRows);
|
|
510
|
+
orbChar = new Uint8Array(canvasCols * canvasRows);
|
|
511
|
+
orbGlyph = new Array(canvasCols * canvasRows);
|
|
512
|
+
obstacleRows = Array.from({ length: rows }, () => []);
|
|
513
|
+
intervals = new Float32Array(64);
|
|
514
|
+
if (!ORB.positioned && W > 100 && H > 100) {
|
|
515
|
+
ORB.panX = 0;
|
|
516
|
+
ORB.panY = 0;
|
|
517
|
+
ORB.positioned = true;
|
|
518
|
+
}
|
|
519
|
+
startSceneTimeline();
|
|
520
|
+
}
|
|
521
|
+
addEventListener("resize", () => { lastTextSignature = ""; resize(); });
|
|
522
|
+
function orbCenter() {
|
|
523
|
+
const rNorm = ORB.radius * ORB.zoom;
|
|
524
|
+
return {
|
|
525
|
+
x: (0.5 + ORB.panX) * W,
|
|
526
|
+
y: (0.5 + ORB.panY) * H,
|
|
527
|
+
canvasX: (0.5 + ORB.panX) * W + canvasLeft,
|
|
528
|
+
canvasY: (0.5 + ORB.panY) * H + canvasTop,
|
|
529
|
+
r: rNorm * H,
|
|
530
|
+
rNorm,
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
stage.addEventListener("pointerdown", e => {
|
|
535
|
+
const rect = stage.getBoundingClientRect();
|
|
536
|
+
const center = orbCenter();
|
|
537
|
+
const hitScale = ORB.shape === "cube" ? ORB.cubeScale : 1;
|
|
538
|
+
const dx = e.clientX - rect.left - center.x;
|
|
539
|
+
const dy = e.clientY - rect.top - center.y;
|
|
540
|
+
if (Math.hypot(dx, dy) > center.r * 1.35 * hitScale) return;
|
|
541
|
+
e.preventDefault();
|
|
542
|
+
stage.setPointerCapture(e.pointerId);
|
|
543
|
+
ORB.drag = {
|
|
544
|
+
id: e.pointerId,
|
|
545
|
+
mode: (e.ctrlKey || e.metaKey) ? "rotate" : "move",
|
|
546
|
+
dx,
|
|
547
|
+
dy,
|
|
548
|
+
lastX: e.clientX,
|
|
549
|
+
lastY: e.clientY,
|
|
550
|
+
};
|
|
551
|
+
});
|
|
552
|
+
stage.addEventListener("pointermove", e => {
|
|
553
|
+
if (!ORB.drag || ORB.drag.id !== e.pointerId) return;
|
|
554
|
+
if (ORB.drag.mode === "rotate" || e.ctrlKey || e.metaKey) {
|
|
555
|
+
const deltaX = e.clientX - ORB.drag.lastX;
|
|
556
|
+
const deltaY = e.clientY - ORB.drag.lastY;
|
|
557
|
+
ORB.orbitY += (deltaX / Math.max(1, W)) * Math.PI * 2;
|
|
558
|
+
ORB.orbitX = Math.max(-1.5, Math.min(1.5, ORB.orbitX + (deltaY / Math.max(1, H)) * 4));
|
|
559
|
+
ORB.drag.mode = "rotate";
|
|
560
|
+
ORB.drag.lastX = e.clientX;
|
|
561
|
+
ORB.drag.lastY = e.clientY;
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
const rect = stage.getBoundingClientRect();
|
|
565
|
+
const cx = e.clientX - rect.left - ORB.drag.dx;
|
|
566
|
+
const cy = e.clientY - rect.top - ORB.drag.dy;
|
|
567
|
+
ORB.panX = cx / W - 0.5;
|
|
568
|
+
ORB.panY = cy / H - 0.5;
|
|
569
|
+
lastTextSignature = "";
|
|
570
|
+
});
|
|
571
|
+
stage.addEventListener("wheel", e => {
|
|
572
|
+
const rect = stage.getBoundingClientRect();
|
|
573
|
+
const center = orbCenter();
|
|
574
|
+
const hitScale = ORB.shape === "cube" ? ORB.cubeScale : 1;
|
|
575
|
+
const dx = e.clientX - rect.left - center.x;
|
|
576
|
+
const dy = e.clientY - rect.top - center.y;
|
|
577
|
+
if (Math.hypot(dx, dy) > center.r * 1.5 * hitScale) return;
|
|
578
|
+
e.preventDefault();
|
|
579
|
+
ORB.zoom *= Math.exp(-e.deltaY * 0.0012);
|
|
580
|
+
ORB.zoom = Math.max(0.25, Math.min(12, ORB.zoom));
|
|
581
|
+
lastTextSignature = "";
|
|
582
|
+
}, { passive: false });
|
|
583
|
+
stage.addEventListener("pointerup", e => {
|
|
584
|
+
if (ORB.drag?.id === e.pointerId) ORB.drag = null;
|
|
585
|
+
});
|
|
586
|
+
stage.addEventListener("pointercancel", e => {
|
|
587
|
+
if (ORB.drag?.id === e.pointerId) ORB.drag = null;
|
|
588
|
+
});
|
|
589
|
+
stage.addEventListener("dblclick", e => {
|
|
590
|
+
const rect = stage.getBoundingClientRect();
|
|
591
|
+
const center = orbCenter();
|
|
592
|
+
const hitScale = ORB.shape === "cube" ? ORB.cubeScale : 1;
|
|
593
|
+
const dx = e.clientX - rect.left - center.x;
|
|
594
|
+
const dy = e.clientY - rect.top - center.y;
|
|
595
|
+
if (Math.hypot(dx, dy) > center.r * 1.45 * hitScale) return;
|
|
596
|
+
e.preventDefault();
|
|
597
|
+
setOrbShape(ORB.shape === "sphere" ? "cube" : "sphere", { reveal: true });
|
|
598
|
+
});
|
|
599
|
+
|
|
600
|
+
function rasterizeNOUS(time) {
|
|
601
|
+
asciiMask.fill(0);
|
|
602
|
+
asciiGlyph.fill("");
|
|
603
|
+
for (const r of obstacleRows) r.length = 0;
|
|
604
|
+
|
|
605
|
+
// NOUS uses the same cell-shader/reveal language as bb-ascii's source logo.
|
|
606
|
+
if (nousStartTime === null || time < nousStartTime) {
|
|
607
|
+
mergeObstacleRows();
|
|
608
|
+
return;
|
|
609
|
+
}
|
|
610
|
+
const t = Math.max(0, time - nousStartTime);
|
|
611
|
+
const aspect = cols / rows / 2;
|
|
612
|
+
const h = 0.38;
|
|
613
|
+
const baseW = h * 2.6 * 0.55;
|
|
614
|
+
const letterWidth = 7;
|
|
615
|
+
const baseLetterPitch = 7.6;
|
|
616
|
+
const letterGap = Math.max(0, ctrls.nousLetterSpacing ?? 0);
|
|
617
|
+
const letterAdvance = baseLetterPitch + letterGap;
|
|
618
|
+
const baseLogoUnits = LOGO.length * baseLetterPitch - 0.6;
|
|
619
|
+
const logoUnits = LOGO.length * baseLetterPitch + (LOGO.length - 1) * letterGap - 0.6;
|
|
620
|
+
const w = baseW * (logoUnits / baseLogoUnits);
|
|
621
|
+
const nousRowMin = new Float32Array(rows);
|
|
622
|
+
const nousRowMax = new Float32Array(rows);
|
|
623
|
+
nousRowMin.fill(Infinity);
|
|
624
|
+
nousRowMax.fill(-Infinity);
|
|
625
|
+
|
|
626
|
+
for (let y = 0; y < rows; y++) {
|
|
627
|
+
const ny = y / rows - 0.5;
|
|
628
|
+
if (Math.abs(ny) > h / 2) continue;
|
|
629
|
+
|
|
630
|
+
for (let x = 0; x < cols; x++) {
|
|
631
|
+
const nx = (x / cols - 0.5) * aspect;
|
|
632
|
+
if (Math.abs(nx) > w / 2) continue;
|
|
633
|
+
|
|
634
|
+
const lx = (nx + w / 2) / w;
|
|
635
|
+
const ly = (ny + h / 2) / h;
|
|
636
|
+
const tx = lx * logoUnits;
|
|
637
|
+
const idx = Math.floor(tx / letterAdvance);
|
|
638
|
+
const cx = Math.floor(tx - idx * letterAdvance);
|
|
639
|
+
const cy = Math.floor(ly * 9);
|
|
640
|
+
|
|
641
|
+
if (idx < 0 || idx >= LOGO.length || cx >= letterWidth) continue;
|
|
642
|
+
|
|
643
|
+
const { letter, rows: glyphRows } = LOGO[idx];
|
|
644
|
+
const row = glyphRows[cy];
|
|
645
|
+
if (!row || cx >= row.length || row[cx] !== '█') continue;
|
|
646
|
+
|
|
647
|
+
const localT = Math.max(0, t - idx * 0.4);
|
|
648
|
+
const phase1 = Math.min(1, localT);
|
|
649
|
+
const phase2 = Math.min(1, Math.max(0, localT - 1));
|
|
650
|
+
const reveal = phase1 * 1.5 - hash(cx, cy + idx * 10) * 0.5;
|
|
651
|
+
|
|
652
|
+
if (phase1 < 1 && reveal <= 0) continue;
|
|
653
|
+
|
|
654
|
+
const morph = phase2 + hash(cx, cy) * 0.3;
|
|
655
|
+
const ch = phase1 < 1
|
|
656
|
+
? (reveal >= 1 ? letter : charAt(reveal))
|
|
657
|
+
: charAt(morph);
|
|
658
|
+
const drawC = Math.floor((canvasLeft + x * CELL_W + CELL_W * 0.5) / CELL_W);
|
|
659
|
+
const drawR = Math.floor((canvasTop + y * CELL_H + CELL_H * 0.5) / CELL_H);
|
|
660
|
+
let cellIdx = -1;
|
|
661
|
+
if (drawR >= 0 && drawR < canvasRows && drawC >= 0 && drawC < canvasCols) {
|
|
662
|
+
cellIdx = drawR * canvasCols + drawC;
|
|
663
|
+
asciiMask[cellIdx] = 1;
|
|
664
|
+
asciiChar[cellIdx] = Math.max(0, CHARS.indexOf(ch));
|
|
665
|
+
if (CHARS.indexOf(ch) < 0) asciiGlyph[cellIdx] = ch;
|
|
666
|
+
}
|
|
667
|
+
const x0 = x * CELL_W;
|
|
668
|
+
const x1 = x0 + CELL_W;
|
|
669
|
+
if (x0 < nousRowMin[y]) nousRowMin[y] = x0;
|
|
670
|
+
if (x1 > nousRowMax[y]) nousRowMax[y] = x1;
|
|
671
|
+
// bb-ascii turns late morph cells into solid dark cell backgrounds. In
|
|
672
|
+
// this transparent/lensed canvas, a full-block char carries that punch.
|
|
673
|
+
if (cellIdx >= 0 && phase1 >= 1 && morph > 0.8) asciiChar[cellIdx] = CHARS.length - 1;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
// Slightly dilate/smooth the measured NOUS silhouette so surrounding text
|
|
678
|
+
// does not visually "kiss" sharp letter corners (notably on the S).
|
|
679
|
+
const smoothMin = new Float32Array(rows);
|
|
680
|
+
const smoothMax = new Float32Array(rows);
|
|
681
|
+
smoothMin.fill(Infinity);
|
|
682
|
+
smoothMax.fill(-Infinity);
|
|
683
|
+
for (let y = 0; y < rows; y++) {
|
|
684
|
+
if (!Number.isFinite(nousRowMin[y])) continue;
|
|
685
|
+
for (let oy = -1; oy <= 1; oy++) {
|
|
686
|
+
const yy = y + oy;
|
|
687
|
+
if (yy < 0 || yy >= rows) continue;
|
|
688
|
+
if (!Number.isFinite(nousRowMin[yy])) continue;
|
|
689
|
+
if (nousRowMin[yy] < smoothMin[y]) smoothMin[y] = nousRowMin[yy];
|
|
690
|
+
if (nousRowMax[yy] > smoothMax[y]) smoothMax[y] = nousRowMax[yy];
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
const pad = Math.max(4, CELL_W * 1.25);
|
|
695
|
+
const bleedRows = 2;
|
|
696
|
+
for (let y = 0; y < rows; y++) {
|
|
697
|
+
if (!Number.isFinite(smoothMin[y])) continue;
|
|
698
|
+
for (let oy = -bleedRows; oy <= bleedRows; oy++) {
|
|
699
|
+
const row = y + oy;
|
|
700
|
+
if (row < 0 || row >= rows) continue;
|
|
701
|
+
const bleedPad = pad + Math.abs(oy) * CELL_W * 0.28;
|
|
702
|
+
obstacleRows[row].push([
|
|
703
|
+
Math.max(0, smoothMin[y] - bleedPad),
|
|
704
|
+
Math.min(W, smoothMax[y] + bleedPad),
|
|
705
|
+
]);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
mergeObstacleRows();
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
function mergeObstacleRows() {
|
|
713
|
+
for (const spans of obstacleRows) {
|
|
714
|
+
if (spans.length < 2) continue;
|
|
715
|
+
spans.sort((a, b) => a[0] - b[0]);
|
|
716
|
+
let w = 0;
|
|
717
|
+
for (let i = 1; i < spans.length; i++) {
|
|
718
|
+
const last = spans[w], cur = spans[i];
|
|
719
|
+
if (cur[0] <= last[1] + CELL_W * 3.1) last[1] = Math.max(last[1], cur[1]);
|
|
720
|
+
else spans[++w] = cur;
|
|
721
|
+
}
|
|
722
|
+
spans.length = w + 1;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
const CUBE_VERTS = [
|
|
727
|
+
[-1, -1, -1], [1, -1, -1], [1, 1, -1], [-1, 1, -1],
|
|
728
|
+
[-1, -1, 1], [1, -1, 1], [1, 1, 1], [-1, 1, 1],
|
|
729
|
+
];
|
|
730
|
+
const CUBE_EDGES = [
|
|
731
|
+
[0, 1], [1, 2], [2, 3], [3, 0],
|
|
732
|
+
[4, 5], [5, 6], [6, 7], [7, 4],
|
|
733
|
+
[0, 4], [1, 5], [2, 6], [3, 7],
|
|
734
|
+
];
|
|
735
|
+
function projectCubeVerts(center, radiusPx, orbitX, orbitY, scale = 1) {
|
|
736
|
+
const camZ = 3.3;
|
|
737
|
+
const projScale = radiusPx * 1.34 * scale;
|
|
738
|
+
return CUBE_VERTS.map(([vx, vy, vz]) => {
|
|
739
|
+
const [rx, ry, rz] = rotateOrbVec(vx, vy, vz, orbitX, orbitY);
|
|
740
|
+
const inv = 1 / (camZ + rz);
|
|
741
|
+
return {
|
|
742
|
+
x: center.canvasX + rx * projScale * inv,
|
|
743
|
+
y: center.canvasY + ry * projScale * inv,
|
|
744
|
+
d: (rz + 1) * 0.5,
|
|
745
|
+
};
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
function convexHull(points) {
|
|
749
|
+
if (points.length <= 2) return points.slice();
|
|
750
|
+
const pts = points
|
|
751
|
+
.map(p => ({ x: p.x, y: p.y }))
|
|
752
|
+
.sort((a, b) => (a.x - b.x) || (a.y - b.y));
|
|
753
|
+
const cross = (o, a, b) => (a.x - o.x) * (b.y - o.y) - (a.y - o.y) * (b.x - o.x);
|
|
754
|
+
const lower = [];
|
|
755
|
+
for (const p of pts) {
|
|
756
|
+
while (lower.length >= 2 && cross(lower[lower.length - 2], lower[lower.length - 1], p) <= 0) lower.pop();
|
|
757
|
+
lower.push(p);
|
|
758
|
+
}
|
|
759
|
+
const upper = [];
|
|
760
|
+
for (let i = pts.length - 1; i >= 0; i--) {
|
|
761
|
+
const p = pts[i];
|
|
762
|
+
while (upper.length >= 2 && cross(upper[upper.length - 2], upper[upper.length - 1], p) <= 0) upper.pop();
|
|
763
|
+
upper.push(p);
|
|
764
|
+
}
|
|
765
|
+
lower.pop();
|
|
766
|
+
upper.pop();
|
|
767
|
+
return lower.concat(upper);
|
|
768
|
+
}
|
|
769
|
+
function makeEmptySpanRows() {
|
|
770
|
+
return Array.from({ length: rows }, () => ({ left: Infinity, right: -Infinity }));
|
|
771
|
+
}
|
|
772
|
+
function addSpan(spanRows, row, left, right) {
|
|
773
|
+
if (row < 0 || row >= rows || right <= left) return;
|
|
774
|
+
if (left < spanRows[row].left) spanRows[row].left = left;
|
|
775
|
+
if (right > spanRows[row].right) spanRows[row].right = right;
|
|
776
|
+
}
|
|
777
|
+
function collectCubeObstacleRows(center, radiusPx, orbitX, orbitY, obstacleScale) {
|
|
778
|
+
const spanRows = makeEmptySpanRows();
|
|
779
|
+
if (obstacleScale <= 0.0001) return spanRows;
|
|
780
|
+
const projected = projectCubeVerts(center, radiusPx, orbitX, orbitY, ORB.cubeScale * obstacleScale)
|
|
781
|
+
.map(p => ({ x: p.x - canvasLeft, y: p.y - canvasTop }));
|
|
782
|
+
const hull = convexHull(projected);
|
|
783
|
+
if (hull.length < 3) return spanRows;
|
|
784
|
+
|
|
785
|
+
let yMin = Infinity;
|
|
786
|
+
let yMax = -Infinity;
|
|
787
|
+
for (const p of hull) {
|
|
788
|
+
if (p.y < yMin) yMin = p.y;
|
|
789
|
+
if (p.y > yMax) yMax = p.y;
|
|
790
|
+
}
|
|
791
|
+
const r0 = Math.max(0, Math.floor((yMin - CELL_H) / CELL_H));
|
|
792
|
+
const r1 = Math.min(rows - 1, Math.ceil((yMax + CELL_H) / CELL_H));
|
|
793
|
+
const pad = Math.max(4, CELL_W * 1.6);
|
|
794
|
+
|
|
795
|
+
for (let row = r0; row <= r1; row++) {
|
|
796
|
+
const scanY = row * CELL_H + CELL_H * 0.5;
|
|
797
|
+
const xs = [];
|
|
798
|
+
for (let i = 0; i < hull.length; i++) {
|
|
799
|
+
const a = hull[i];
|
|
800
|
+
const b = hull[(i + 1) % hull.length];
|
|
801
|
+
const y0 = a.y;
|
|
802
|
+
const y1 = b.y;
|
|
803
|
+
if ((y0 <= scanY && scanY < y1) || (y1 <= scanY && scanY < y0)) {
|
|
804
|
+
const t = (scanY - y0) / (y1 - y0);
|
|
805
|
+
xs.push(a.x + (b.x - a.x) * t);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
if (xs.length < 2) continue;
|
|
809
|
+
xs.sort((a, b) => a - b);
|
|
810
|
+
for (let i = 0; i + 1 < xs.length; i += 2) {
|
|
811
|
+
const left = Math.max(0, xs[i] - pad);
|
|
812
|
+
const right = Math.min(W, xs[i + 1] + pad);
|
|
813
|
+
if (right - left > CELL_W) addSpan(spanRows, row, left, right);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
return spanRows;
|
|
817
|
+
}
|
|
818
|
+
function collectSphereObstacleRows(center, radiusNorm, obstacleScale, rPad) {
|
|
819
|
+
const spanRows = makeEmptySpanRows();
|
|
820
|
+
const obstacleRadiusNorm = radiusNorm * obstacleScale;
|
|
821
|
+
const obstaclePadNorm = (rPad / H) * obstacleScale;
|
|
822
|
+
if (obstacleRadiusNorm <= 0.0001) return spanRows;
|
|
823
|
+
|
|
824
|
+
const radiusPx = radiusNorm * H;
|
|
825
|
+
const rMin = Math.floor((center.canvasY - radiusPx - rPad) / CELL_H);
|
|
826
|
+
const rMax = Math.ceil((center.canvasY + radiusPx + rPad) / CELL_H);
|
|
827
|
+
for (let r = rMin; r <= rMax; r++) {
|
|
828
|
+
const y = r * CELL_H + CELL_H * 0.5;
|
|
829
|
+
const stageY = y - canvasTop;
|
|
830
|
+
const pyForObstacle = stageY / H - 0.5 - ORB.panY;
|
|
831
|
+
if (Math.abs(pyForObstacle) > obstacleRadiusNorm + obstaclePadNorm) continue;
|
|
832
|
+
const halfNorm = Math.sqrt(Math.max(0, (obstacleRadiusNorm + obstaclePadNorm) ** 2 - pyForObstacle * pyForObstacle));
|
|
833
|
+
const halfPx = halfNorm * H;
|
|
834
|
+
const stageRow = Math.floor(stageY / CELL_H);
|
|
835
|
+
addSpan(spanRows, stageRow, center.x - halfPx, center.x + halfPx);
|
|
836
|
+
}
|
|
837
|
+
return spanRows;
|
|
838
|
+
}
|
|
839
|
+
function pushMorphedObstacleRows(sphereRows, cubeRows, mix) {
|
|
840
|
+
const centerX = W * (0.5 + ORB.panX);
|
|
841
|
+
for (let row = 0; row < rows; row++) {
|
|
842
|
+
const sphereValid = Number.isFinite(sphereRows[row].left);
|
|
843
|
+
const cubeValid = Number.isFinite(cubeRows[row].left);
|
|
844
|
+
if (!sphereValid && !cubeValid) continue;
|
|
845
|
+
const sLeft = sphereValid ? sphereRows[row].left : centerX;
|
|
846
|
+
const sRight = sphereValid ? sphereRows[row].right : centerX;
|
|
847
|
+
const cLeft = cubeValid ? cubeRows[row].left : centerX;
|
|
848
|
+
const cRight = cubeValid ? cubeRows[row].right : centerX;
|
|
849
|
+
const left = sLeft + (cLeft - sLeft) * mix;
|
|
850
|
+
const right = sRight + (cRight - sRight) * mix;
|
|
851
|
+
if (right - left > CELL_W) obstacleRows[row].push([Math.max(0, left), Math.min(W, right)]);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
function rotateOrbVec(vx, vy, vz, orbitX, orbitY) {
|
|
855
|
+
let a = rot(vy, vz, orbitX); vy = a[0]; vz = a[1];
|
|
856
|
+
a = rot(vx, vz, orbitY); vx = a[0]; vz = a[1];
|
|
857
|
+
return [vx, vy, vz];
|
|
858
|
+
}
|
|
859
|
+
function rasterizeCubeWire(center, radiusPx, buildPhase, orbitX, orbitY, weight = 1) {
|
|
860
|
+
const unit = Math.max(1, Math.min(CELL_W, CELL_H));
|
|
861
|
+
const wirePx = Math.max(1, ORB.wire * radiusPx * 0.17);
|
|
862
|
+
const brush = Math.max(0, Math.ceil((wirePx - unit * 0.45) / unit));
|
|
863
|
+
const projected = projectCubeVerts(center, radiusPx, orbitX, orbitY, ORB.cubeScale);
|
|
864
|
+
|
|
865
|
+
for (let ei = 0; ei < CUBE_EDGES.length; ei++) {
|
|
866
|
+
const [a, b] = CUBE_EDGES[ei];
|
|
867
|
+
const p0 = projected[a];
|
|
868
|
+
const p1 = projected[b];
|
|
869
|
+
const dx = p1.x - p0.x;
|
|
870
|
+
const dy = p1.y - p0.y;
|
|
871
|
+
const len = Math.hypot(dx, dy);
|
|
872
|
+
const steps = Math.max(2, Math.ceil(len / Math.max(1, unit * 0.45)));
|
|
873
|
+
for (let s = 0; s <= steps; s++) {
|
|
874
|
+
const t = s / steps;
|
|
875
|
+
const px = p0.x + dx * t;
|
|
876
|
+
const py = p0.y + dy * t;
|
|
877
|
+
const depth = p0.d + (p1.d - p0.d) * t;
|
|
878
|
+
const c = Math.floor(px / CELL_W);
|
|
879
|
+
const r = Math.floor(py / CELL_H);
|
|
880
|
+
for (let oy = -brush; oy <= brush; oy++) {
|
|
881
|
+
for (let ox = -brush; ox <= brush; ox++) {
|
|
882
|
+
if (brush > 0 && ox * ox + oy * oy > brush * brush + 0.25) continue;
|
|
883
|
+
const cc = c + ox;
|
|
884
|
+
const rr = r + oy;
|
|
885
|
+
if (rr < 0 || rr >= canvasRows || cc < 0 || cc >= canvasCols) continue;
|
|
886
|
+
const reveal = buildPhase * 1.45 - hash(cc + ei * 13, rr + ei * 17) * 0.5;
|
|
887
|
+
if (buildPhase < 1 && reveal <= 0) continue;
|
|
888
|
+
const idx = rr * canvasCols + cc;
|
|
889
|
+
const val = buildPhase < 1
|
|
890
|
+
? Math.min(CHARS_LAST, Math.floor(reveal * CHARS_LAST))
|
|
891
|
+
: Math.min(CHARS_LAST, Math.floor((0.45 + depth * 0.55) * CHARS_LAST));
|
|
892
|
+
const weightedVal = Math.min(CHARS_LAST, Math.floor(val * weight));
|
|
893
|
+
if (weightedVal <= 0) continue;
|
|
894
|
+
orbMask[idx] = 1;
|
|
895
|
+
orbGlyph[idx] = "";
|
|
896
|
+
if (weightedVal > orbChar[idx]) orbChar[idx] = weightedVal;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
function rasterizeOrb(time) {
|
|
904
|
+
orbMask.fill(0);
|
|
905
|
+
orbChar.fill(0);
|
|
906
|
+
orbGlyph.fill("");
|
|
907
|
+
const buildStart = orbBuildStartTime();
|
|
908
|
+
if (time < buildStart) return;
|
|
909
|
+
const shapeMix = Math.max(0, Math.min(1, ORB.shapeMix ?? (ORB.shape === "cube" ? 1 : 0)));
|
|
910
|
+
const sphereWeight = 1 - shapeMix;
|
|
911
|
+
const cubeWeight = shapeMix;
|
|
912
|
+
const sphereOrbitX = ORB.orbitX;
|
|
913
|
+
const sphereOrbitY = ORB.orbitY + time * ORB.autoSpin;
|
|
914
|
+
const cubeOrbitX = ORB.orbitX + time * ORB.autoSpin * 0.72;
|
|
915
|
+
const cubeOrbitY = ORB.orbitY + time * ORB.autoSpin * 1.35;
|
|
916
|
+
const latStep = Math.PI / ORB.lat;
|
|
917
|
+
const lonStep = (Math.PI * 2) / ORB.lon;
|
|
918
|
+
const rPad = 15.5;
|
|
919
|
+
const center = orbCenter();
|
|
920
|
+
const radiusPx = center.r;
|
|
921
|
+
const radiusNorm = center.rNorm;
|
|
922
|
+
const buildPhase = Math.min(1, Math.max(0, (time - buildStart) / SCENE.orbBuildDuration));
|
|
923
|
+
const spacePhase = Math.min(1, Math.max(0, (time - buildStart) / Math.max(0.001, ctrls.orbSpaceDuration)));
|
|
924
|
+
const spaceGrow = Math.pow(spacePhase, Math.max(0.01, ctrls.orbSpaceEase));
|
|
925
|
+
const spaceStart = Math.max(0, Math.min(1, ctrls.orbSpaceStart));
|
|
926
|
+
const obstacleScale = spaceStart + (1 - spaceStart) * spaceGrow;
|
|
927
|
+
const rMin = Math.floor((center.canvasY - radiusPx - rPad) / CELL_H);
|
|
928
|
+
const rMax = Math.ceil((center.canvasY + radiusPx + rPad) / CELL_H);
|
|
929
|
+
|
|
930
|
+
const sphereObstacleRows = collectSphereObstacleRows(center, radiusNorm, obstacleScale, rPad);
|
|
931
|
+
const cubeObstacleRows = collectCubeObstacleRows(center, radiusPx, cubeOrbitX, cubeOrbitY, obstacleScale);
|
|
932
|
+
pushMorphedObstacleRows(sphereObstacleRows, cubeObstacleRows, shapeMix);
|
|
933
|
+
|
|
934
|
+
if (cubeWeight > 0.001) {
|
|
935
|
+
rasterizeCubeWire(center, radiusPx, buildPhase, cubeOrbitX, cubeOrbitY, cubeWeight);
|
|
936
|
+
}
|
|
937
|
+
if (sphereWeight <= 0.001) {
|
|
938
|
+
mergeObstacleRows();
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
const cMin = Math.floor((center.canvasX - radiusPx - rPad) / CELL_W);
|
|
943
|
+
const cMax = Math.ceil((center.canvasX + radiusPx + rPad) / CELL_W);
|
|
944
|
+
for (let r = rMin; r <= rMax; r++) {
|
|
945
|
+
const y = r * CELL_H + CELL_H * 0.5;
|
|
946
|
+
const stageY = y - canvasTop;
|
|
947
|
+
for (let c = cMin; c <= cMax; c++) {
|
|
948
|
+
// Direct port of bb-ascii/app/nous/sphere/page.tsx:
|
|
949
|
+
// px uses width/height normalization, py is row-normalized, then both
|
|
950
|
+
// are offset by pan. This is what makes the sphere circular on screen.
|
|
951
|
+
const stageX = c * CELL_W + CELL_W * 0.5 - canvasLeft;
|
|
952
|
+
const px = (stageX / W - 0.5 - ORB.panX) * (W / H);
|
|
953
|
+
const py = stageY / H - 0.5 - ORB.panY;
|
|
954
|
+
const d2 = px * px + py * py;
|
|
955
|
+
if (d2 > radiusNorm * radiusNorm) continue;
|
|
956
|
+
|
|
957
|
+
const pz = Math.sqrt(radiusNorm * radiusNorm - d2);
|
|
958
|
+
const depth = (pz / radiusNorm) * 0.5 + 0.5;
|
|
959
|
+
|
|
960
|
+
let sx = px / radiusNorm, sy = py / radiusNorm, sz = pz / radiusNorm;
|
|
961
|
+
let a = rot(sy, sz, sphereOrbitX); sy = a[0]; sz = a[1];
|
|
962
|
+
a = rot(sx, sz, sphereOrbitY); sx = a[0]; sz = a[1];
|
|
963
|
+
|
|
964
|
+
const latD = gridDist(Math.asin(Math.max(-1, Math.min(1, sy))) + Math.PI / 2, latStep);
|
|
965
|
+
const lonD = gridDist(Math.atan2(sz, sx) + Math.PI, lonStep);
|
|
966
|
+
const wire = ORB.wire * (0.3 + depth * 0.7);
|
|
967
|
+
const minD = Math.min(latD, lonD);
|
|
968
|
+
if (minD > wire) continue;
|
|
969
|
+
|
|
970
|
+
const edge = 1 - minD / wire;
|
|
971
|
+
if (r >= 0 && r < canvasRows && c >= 0 && c < canvasCols) {
|
|
972
|
+
const reveal = buildPhase * 1.5 - hash(c, r) * 0.5;
|
|
973
|
+
if (buildPhase < 1 && reveal <= 0) continue;
|
|
974
|
+
const idx = r * canvasCols + c;
|
|
975
|
+
const val = buildPhase < 1
|
|
976
|
+
? Math.min(CHARS_LAST, Math.floor(reveal * CHARS_LAST))
|
|
977
|
+
: Math.min(CHARS_LAST, Math.floor(edge * (0.4 + depth * 0.6) * CHARS.length));
|
|
978
|
+
const weightedVal = Math.min(CHARS_LAST, Math.floor(val * sphereWeight));
|
|
979
|
+
if (weightedVal <= 0) continue;
|
|
980
|
+
orbMask[idx] = 1;
|
|
981
|
+
orbGlyph[idx] = "";
|
|
982
|
+
if (weightedVal > orbChar[idx]) orbChar[idx] = weightedVal;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
mergeObstacleRows();
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
let typedChars = 0;
|
|
991
|
+
let typedPrepared = null;
|
|
992
|
+
let typedDirty = true;
|
|
993
|
+
let typedBudget = 0;
|
|
994
|
+
|
|
995
|
+
function tickTyping(time, dt) {
|
|
996
|
+
if (!bodyPrepared) return;
|
|
997
|
+
if (time < codeTypingStartTime()) return;
|
|
998
|
+
const cps = Math.max(1, ctrls.typeSpeed ?? 42);
|
|
999
|
+
typedBudget += dt * cps;
|
|
1000
|
+
const steps = Math.min(240, Math.floor(typedBudget));
|
|
1001
|
+
if (steps > 0) {
|
|
1002
|
+
typedBudget -= steps;
|
|
1003
|
+
typedChars = Math.min(streamCorpus.length, typedChars + steps);
|
|
1004
|
+
typedDirty = true;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
function getTypedPrepared() {
|
|
1009
|
+
if (!typedDirty && typedPrepared) return typedPrepared;
|
|
1010
|
+
const cap = Math.max(0, Math.floor(typedChars));
|
|
1011
|
+
const visible = streamCorpus.slice(0, cap);
|
|
1012
|
+
typedPrepared = prepareWithSegments(visible, BODY_FONT, { whiteSpace: "pre-wrap" });
|
|
1013
|
+
typedDirty = false;
|
|
1014
|
+
return typedPrepared;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
function layoutParagraphs() {
|
|
1018
|
+
drawnLines.count = 0;
|
|
1019
|
+
if (typedChars <= 0) return;
|
|
1020
|
+
const prepared = getTypedPrepared();
|
|
1021
|
+
ctx.font = BODY_FONT;
|
|
1022
|
+
const MARGIN_X = Math.max(32, Math.min(72, W * 0.06));
|
|
1023
|
+
const MIN_LINE_W = 120;
|
|
1024
|
+
const yStart = Math.max(32, H * 0.08);
|
|
1025
|
+
const yEnd = H - 32;
|
|
1026
|
+
let cursor = { segmentIndex: 0, graphemeIndex: 0 };
|
|
1027
|
+
|
|
1028
|
+
for (let y = yStart; y < yEnd; y += BODY_LINE_H) {
|
|
1029
|
+
const row = Math.max(0, Math.min(rows - 1, Math.floor(y / CELL_H)));
|
|
1030
|
+
const spans = obstacleRows[row] || [];
|
|
1031
|
+
let n = 0;
|
|
1032
|
+
let x = MARGIN_X;
|
|
1033
|
+
|
|
1034
|
+
for (const [a, b] of spans) {
|
|
1035
|
+
const left = Math.max(MARGIN_X, a);
|
|
1036
|
+
const right = Math.min(W - MARGIN_X, b);
|
|
1037
|
+
if (left - x >= MIN_LINE_W) { intervals[n++] = x; intervals[n++] = left - 10; }
|
|
1038
|
+
x = Math.max(x, right + 10);
|
|
1039
|
+
}
|
|
1040
|
+
if (W - MARGIN_X - x >= MIN_LINE_W) { intervals[n++] = x; intervals[n++] = W - MARGIN_X; }
|
|
1041
|
+
if (!n) { intervals[n++] = MARGIN_X; intervals[n++] = W - MARGIN_X; }
|
|
1042
|
+
|
|
1043
|
+
for (let k = 0; k < n; k += 2) {
|
|
1044
|
+
const ix0 = intervals[k], ix1 = intervals[k + 1];
|
|
1045
|
+
const range = layoutNextLineRange(prepared, cursor, ix1 - ix0);
|
|
1046
|
+
if (!range) return;
|
|
1047
|
+
const line = materializeLineRange(prepared, range);
|
|
1048
|
+
const i = drawnLines.count++;
|
|
1049
|
+
drawnLines.x[i] = ix0;
|
|
1050
|
+
drawnLines.y[i] = y;
|
|
1051
|
+
drawnLines.w[i] = ix1 - ix0;
|
|
1052
|
+
drawnLines.text[i] = line.text;
|
|
1053
|
+
cursor = range.end;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
function escapeHTML(text) {
|
|
1059
|
+
return text
|
|
1060
|
+
.replaceAll("&", "&")
|
|
1061
|
+
.replaceAll("<", "<")
|
|
1062
|
+
.replaceAll(">", ">");
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
function highlightSource(text) {
|
|
1066
|
+
const token = /("(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\/\/[^\n]*|\b(?:as|break|const|else|enum|false|fn|for|if|impl|in|let|match|mut|pub|return|self|static|struct|true|type|use|where|while)\b|\b[A-Z_]{2,}\b|\b\d+(?:\.\d+)?\b)/g;
|
|
1067
|
+
let out = "";
|
|
1068
|
+
let last = 0;
|
|
1069
|
+
for (const match of text.matchAll(token)) {
|
|
1070
|
+
const value = match[0];
|
|
1071
|
+
out += escapeHTML(text.slice(last, match.index));
|
|
1072
|
+
const cls = value.startsWith("#")
|
|
1073
|
+
? "tok-comment"
|
|
1074
|
+
: value.startsWith('"') || value.startsWith("'")
|
|
1075
|
+
? "tok-string"
|
|
1076
|
+
: /^\d/.test(value)
|
|
1077
|
+
? "tok-number"
|
|
1078
|
+
: /^[A-Z_]{2,}$/.test(value)
|
|
1079
|
+
? "tok-const"
|
|
1080
|
+
: "tok-keyword";
|
|
1081
|
+
out += `<span class="${cls}">${escapeHTML(value)}</span>`;
|
|
1082
|
+
last = match.index + value.length;
|
|
1083
|
+
}
|
|
1084
|
+
out += escapeHTML(text.slice(last));
|
|
1085
|
+
return out;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
function renderTextLayer() {
|
|
1089
|
+
const parts = [LENS.mgBase, drawnLines.count];
|
|
1090
|
+
for (let i = 0; i < drawnLines.count; i++) {
|
|
1091
|
+
parts.push(drawnLines.x[i] | 0, drawnLines.y[i] | 0, drawnLines.w[i] | 0, drawnLines.text[i]);
|
|
1092
|
+
}
|
|
1093
|
+
const signature = parts.join("|");
|
|
1094
|
+
if (signature === lastTextSignature) return;
|
|
1095
|
+
lastTextSignature = signature;
|
|
1096
|
+
|
|
1097
|
+
ctx.font = BODY_FONT;
|
|
1098
|
+
textLayer.style.color = LENS.mgBase;
|
|
1099
|
+
textLayer.style.setProperty("--midground-base", LENS.mgBase);
|
|
1100
|
+
|
|
1101
|
+
while (lineNodes.length < drawnLines.count) {
|
|
1102
|
+
const el = document.createElement("div");
|
|
1103
|
+
el.className = "flow-line";
|
|
1104
|
+
textLayer.appendChild(el);
|
|
1105
|
+
lineNodes.push(el);
|
|
1106
|
+
}
|
|
1107
|
+
terminalAnchorEl = null;
|
|
1108
|
+
terminalLineEl = null;
|
|
1109
|
+
for (let i = 0; i < lineNodes.length; i++) {
|
|
1110
|
+
const el = lineNodes[i];
|
|
1111
|
+
if (i >= drawnLines.count) {
|
|
1112
|
+
el.hidden = true;
|
|
1113
|
+
continue;
|
|
1114
|
+
}
|
|
1115
|
+
const text = drawnLines.text[i];
|
|
1116
|
+
const isTail = i === drawnLines.count - 1;
|
|
1117
|
+
el.hidden = false;
|
|
1118
|
+
el.innerHTML = isTail
|
|
1119
|
+
? `${highlightSource(text)}<span class="cursor-anchor" aria-hidden="true"></span>`
|
|
1120
|
+
: highlightSource(text);
|
|
1121
|
+
el.style.left = `${drawnLines.x[i]}px`;
|
|
1122
|
+
el.style.top = `${drawnLines.y[i] - BODY_LINE_H + 4}px`;
|
|
1123
|
+
el.style.width = `${drawnLines.w[i]}px`;
|
|
1124
|
+
el.style.textAlign = "left";
|
|
1125
|
+
el.style.wordSpacing = "0px";
|
|
1126
|
+
if (isTail) {
|
|
1127
|
+
terminalAnchorEl = el.querySelector(".cursor-anchor");
|
|
1128
|
+
terminalLineEl = el;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
let sceneEpoch = 0;
|
|
1135
|
+
|
|
1136
|
+
function restartScene() {
|
|
1137
|
+
gsap.killTweensOf(ORB);
|
|
1138
|
+
gsap.killTweensOf(orbCanvas);
|
|
1139
|
+
autoCubeCall?.kill();
|
|
1140
|
+
autoCubeCall = null;
|
|
1141
|
+
ORB.panX = 0;
|
|
1142
|
+
ORB.panY = 0;
|
|
1143
|
+
ORB.zoom = ctrls.orbZoom;
|
|
1144
|
+
ORB.cubeScale = ctrls.cubeScale;
|
|
1145
|
+
ORB.shape = ctrls.orbShape;
|
|
1146
|
+
ORB.shapeMix = ctrls.orbShape === "cube" ? 1 : 0;
|
|
1147
|
+
ORB.orbitX = -1.42;
|
|
1148
|
+
ORB.orbitY = 0;
|
|
1149
|
+
ORB.wire = ctrls.orbWire;
|
|
1150
|
+
orbCanvas.style.opacity = "1";
|
|
1151
|
+
ORB.staged = false;
|
|
1152
|
+
ORB.positioned = true;
|
|
1153
|
+
typedChars = 0;
|
|
1154
|
+
typedBudget = 0;
|
|
1155
|
+
typedPrepared = null;
|
|
1156
|
+
typedDirty = true;
|
|
1157
|
+
nousStartTime = null;
|
|
1158
|
+
sceneEpoch = (typeof performance !== "undefined" ? performance.now() : Date.now()) * 0.001;
|
|
1159
|
+
lastTextSignature = "";
|
|
1160
|
+
startSceneTimeline();
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
function applyFontSizes() {
|
|
1164
|
+
const bodyPx = ctrls.bodyFontSize;
|
|
1165
|
+
const asciiPx = ctrls.asciiFontSize;
|
|
1166
|
+
BODY_FONT = `400 ${bodyPx}px "JetBrains Mono", "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace`;
|
|
1167
|
+
BODY_LINE_H = Math.round(bodyPx * 1.45);
|
|
1168
|
+
ASCII_FONT = `${asciiPx}px monospace`;
|
|
1169
|
+
CELL_H = asciiPx;
|
|
1170
|
+
textLayer.style.font = `400 ${bodyPx}px/${BODY_LINE_H}px "JetBrains Mono", "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace`;
|
|
1171
|
+
rebuildLayouts();
|
|
1172
|
+
typedPrepared = null;
|
|
1173
|
+
typedDirty = true;
|
|
1174
|
+
resize();
|
|
1175
|
+
lastTextSignature = "";
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
function applyColors() {
|
|
1179
|
+
if (!LENS.current) return;
|
|
1180
|
+
LENS.current.bgColor = ctrls.bgColor;
|
|
1181
|
+
LENS.current.mgColor = ctrls.mgColor;
|
|
1182
|
+
LENS.current.fgColor = ctrls.fgColor;
|
|
1183
|
+
applyLens(LENS.current);
|
|
1184
|
+
lastTextSignature = "";
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
const ctrls = {
|
|
1188
|
+
bodyFontSize: 10,
|
|
1189
|
+
asciiFontSize: 8,
|
|
1190
|
+
autoSpin: 0.18,
|
|
1191
|
+
orbShape: "sphere",
|
|
1192
|
+
shapeMorphDuration: 0.65,
|
|
1193
|
+
cubeScale: 1.8,
|
|
1194
|
+
orbLead: 0.35,
|
|
1195
|
+
orbZoom: 3,
|
|
1196
|
+
orbRadius: 0.135,
|
|
1197
|
+
orbWire: 0.2,
|
|
1198
|
+
orbSpaceStart: 0.82,
|
|
1199
|
+
orbSpaceDuration: 0.7,
|
|
1200
|
+
orbSpaceEase: 1.1,
|
|
1201
|
+
orbWireLow: 0.01,
|
|
1202
|
+
wireDropDuration: 1.2,
|
|
1203
|
+
orbFadeDuration: 0.85,
|
|
1204
|
+
orbContainNous: 1.0,
|
|
1205
|
+
nousAfterWire: 0,
|
|
1206
|
+
nousLetterSpacing: 2.7,
|
|
1207
|
+
typeSpeed: 816,
|
|
1208
|
+
bgColor: "#041C1C",
|
|
1209
|
+
mgColor: "#ffe6cb",
|
|
1210
|
+
fgColor: "#FFFFFF",
|
|
1211
|
+
noiseEnabled: true,
|
|
1212
|
+
noiseColor: "#eaeaea",
|
|
1213
|
+
noiseDensity: 0.11,
|
|
1214
|
+
noiseOpacity: 0.25,
|
|
1215
|
+
noiseSize: 1,
|
|
1216
|
+
noiseBlend: "difference",
|
|
1217
|
+
restart: () => restartScene(),
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
const DEV_MODE = new URLSearchParams(window.location.search).has("dev");
|
|
1221
|
+
if (DEV_MODE) {
|
|
1222
|
+
const gui = new GUI({ title: "controls" });
|
|
1223
|
+
gui.add(ctrls, "bodyFontSize", 10, 22, 1).name("body font").onChange(applyFontSizes);
|
|
1224
|
+
gui.add(ctrls, "asciiFontSize", 8, 20, 1).name("ascii font").onChange(applyFontSizes);
|
|
1225
|
+
gui.add(ctrls, "autoSpin", 0, 0.6, 0.01).name("auto-spin").onChange(v => { ORB.autoSpin = v; });
|
|
1226
|
+
orbShapeControl = gui.add(ctrls, "orbShape", ["sphere", "cube"]).name("orb shape").onChange(v => {
|
|
1227
|
+
setOrbShape(v);
|
|
1228
|
+
});
|
|
1229
|
+
gui.add(ctrls, "shapeMorphDuration", 0.05, 2, 0.01).name("shape morph (s)");
|
|
1230
|
+
gui.add(ctrls, "orbLead", 0, 6, 0.05).name("orb start (s)").onFinishChange(() => restartScene());
|
|
1231
|
+
gui.add(ctrls, "orbZoom", 0.25, 12, 0.01).name("orb zoom").onChange(v => { ORB.zoom = v; });
|
|
1232
|
+
gui.add(ctrls, "cubeScale", 0.8, 3.5, 0.01).name("cube scale").onChange(v => { ORB.cubeScale = v; });
|
|
1233
|
+
gui.add(ctrls, "orbRadius", 0.08, 0.4, 0.005).name("orb radius").onChange(v => { ORB.radius = v; });
|
|
1234
|
+
gui.add(ctrls, "orbSpaceStart", 0.4, 1, 0.01).name("space start");
|
|
1235
|
+
gui.add(ctrls, "orbSpaceDuration", 0.2, 4, 0.05).name("space grow (s)");
|
|
1236
|
+
gui.add(ctrls, "orbSpaceEase", 0.4, 3, 0.05).name("space ease");
|
|
1237
|
+
gui.add(ctrls, "orbWire", 0.01, 0.2, 0.005).name("wire start").onChange(v => { ORB.wire = v; });
|
|
1238
|
+
gui.add(ctrls, "orbWireLow", 0.005, 0.12, 0.001).name("wire low").onFinishChange(() => restartScene());
|
|
1239
|
+
gui.add(ctrls, "wireDropDuration", 0.4, 6, 0.05).name("wire drop (s)").onFinishChange(() => restartScene());
|
|
1240
|
+
gui.add(ctrls, "orbContainNous", 0, 3, 0.05).name("orb contain NOUS");
|
|
1241
|
+
gui.add(ctrls, "orbFadeDuration", 0.1, 3, 0.05).name("orb fade on NOUS");
|
|
1242
|
+
gui.add(ctrls, "nousAfterWire", 0, 4, 0.05).name("NOUS after wire").onFinishChange(() => restartScene());
|
|
1243
|
+
gui.add(ctrls, "nousLetterSpacing", 0, 4, 0.05).name("NOUS spacing");
|
|
1244
|
+
gui.add(ctrls, "typeSpeed", 0, 4000, 10).name("type speed");
|
|
1245
|
+
gui.addColor(ctrls, "bgColor").name("background").onChange(applyColors);
|
|
1246
|
+
gui.addColor(ctrls, "mgColor").name("midground").onChange(applyColors);
|
|
1247
|
+
gui.addColor(ctrls, "fgColor").name("foreground").onChange(applyColors);
|
|
1248
|
+
const noiseFolder = gui.addFolder("noise");
|
|
1249
|
+
noiseFolder.add(ctrls, "noiseEnabled").name("on");
|
|
1250
|
+
noiseFolder.addColor(ctrls, "noiseColor").name("color");
|
|
1251
|
+
noiseFolder.add(ctrls, "noiseDensity", 0, 1, 0.01).name("density");
|
|
1252
|
+
noiseFolder.add(ctrls, "noiseOpacity", 0, 1, 0.01).name("opacity");
|
|
1253
|
+
noiseFolder.add(ctrls, "noiseSize", 0.1, 10, 0.1).name("size");
|
|
1254
|
+
noiseFolder.add(ctrls, "noiseBlend", [
|
|
1255
|
+
"normal", "multiply", "screen", "difference", "exclusion",
|
|
1256
|
+
"color-dodge", "color-burn", "hard-light", "soft-light", "overlay", "lighten",
|
|
1257
|
+
]).name("blend").onChange(v => { document.querySelector(".noise").style.mixBlendMode = v; });
|
|
1258
|
+
gui.add(ctrls, "restart").name("restart anim");
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
const terminalCursorEl = document.getElementById("terminalCursor");
|
|
1262
|
+
function getLastCharRect(lineEl) {
|
|
1263
|
+
if (!lineEl) return null;
|
|
1264
|
+
const walker = document.createTreeWalker(lineEl, NodeFilter.SHOW_TEXT);
|
|
1265
|
+
let lastTextNode = null;
|
|
1266
|
+
let node = walker.nextNode();
|
|
1267
|
+
while (node) {
|
|
1268
|
+
if (node.nodeValue && node.nodeValue.length) lastTextNode = node;
|
|
1269
|
+
node = walker.nextNode();
|
|
1270
|
+
}
|
|
1271
|
+
if (!lastTextNode) return null;
|
|
1272
|
+
const end = lastTextNode.nodeValue.length;
|
|
1273
|
+
if (!end) return null;
|
|
1274
|
+
const range = document.createRange();
|
|
1275
|
+
range.setStart(lastTextNode, end - 1);
|
|
1276
|
+
range.setEnd(lastTextNode, end);
|
|
1277
|
+
const rects = range.getClientRects();
|
|
1278
|
+
const rect = rects.length ? rects[rects.length - 1] : range.getBoundingClientRect();
|
|
1279
|
+
return rect && (rect.width || rect.height) ? rect : null;
|
|
1280
|
+
}
|
|
1281
|
+
function updateTerminalCursor() {
|
|
1282
|
+
if (!drawnLines.count || !terminalAnchorEl || !terminalLineEl) {
|
|
1283
|
+
terminalCursorEl.hidden = true;
|
|
1284
|
+
return;
|
|
1285
|
+
}
|
|
1286
|
+
const stageRect = stage.getBoundingClientRect();
|
|
1287
|
+
const charRect = getLastCharRect(terminalLineEl);
|
|
1288
|
+
const anchorRect = terminalAnchorEl.getBoundingClientRect();
|
|
1289
|
+
if (!anchorRect.width && !anchorRect.height) {
|
|
1290
|
+
terminalCursorEl.hidden = true;
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1293
|
+
const fontSize = parseInt(BODY_FONT.match(/(\d+)px/)?.[1] || "12", 10);
|
|
1294
|
+
const fallbackW = Math.max(6, Math.round(fontSize * 0.6));
|
|
1295
|
+
const leftPx = (charRect?.left ?? (anchorRect.left - fallbackW)) - stageRect.left;
|
|
1296
|
+
const topPx = (charRect?.top ?? anchorRect.top) - stageRect.top;
|
|
1297
|
+
const widthPx = Math.max(1, Math.round(charRect?.width || fallbackW));
|
|
1298
|
+
const heightPx = Math.max(1, Math.round(charRect?.height || (BODY_LINE_H - 4)));
|
|
1299
|
+
const left = Math.round(leftPx);
|
|
1300
|
+
const top = Math.round(topPx);
|
|
1301
|
+
terminalCursorEl.style.left = `${left}px`;
|
|
1302
|
+
terminalCursorEl.style.top = `${top}px`;
|
|
1303
|
+
terminalCursorEl.style.height = `${heightPx}px`;
|
|
1304
|
+
terminalCursorEl.style.width = `${widthPx}px`;
|
|
1305
|
+
terminalCursorEl.style.fontSize = `${fontSize}px`;
|
|
1306
|
+
terminalCursorEl.hidden = false;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
const noiseCanvas = document.getElementById("noiseCanvas");
|
|
1310
|
+
const noiseGL = noiseCanvas.getContext("webgl", { alpha: true, premultipliedAlpha: true })
|
|
1311
|
+
|| noiseCanvas.getContext("experimental-webgl", { alpha: true, premultipliedAlpha: true });
|
|
1312
|
+
let noiseProgram = null;
|
|
1313
|
+
let noiseLocs = null;
|
|
1314
|
+
function initNoise() {
|
|
1315
|
+
if (!noiseGL) return;
|
|
1316
|
+
const vertSrc = `
|
|
1317
|
+
attribute vec2 aPos;
|
|
1318
|
+
varying vec2 vUv;
|
|
1319
|
+
void main() {
|
|
1320
|
+
vUv = aPos * 0.5 + 0.5;
|
|
1321
|
+
gl_Position = vec4(aPos, 0.0, 1.0);
|
|
1322
|
+
}
|
|
1323
|
+
`;
|
|
1324
|
+
const fragSrc = `
|
|
1325
|
+
precision mediump float;
|
|
1326
|
+
varying vec2 vUv;
|
|
1327
|
+
uniform vec2 uRes;
|
|
1328
|
+
uniform float uDpr;
|
|
1329
|
+
uniform float uSize;
|
|
1330
|
+
uniform float uDensity;
|
|
1331
|
+
uniform float uOpacity;
|
|
1332
|
+
uniform vec3 uColor;
|
|
1333
|
+
float hash(vec2 p) {
|
|
1334
|
+
vec3 p3 = fract(vec3(p.xyx) * 0.1031);
|
|
1335
|
+
p3 += dot(p3, p3.yzx + 33.33);
|
|
1336
|
+
return fract((p3.x + p3.y) * p3.z);
|
|
1337
|
+
}
|
|
1338
|
+
void main() {
|
|
1339
|
+
float n = hash(floor(vUv * uRes / (uSize * uDpr)));
|
|
1340
|
+
gl_FragColor = vec4(uColor, step(1.0 - uDensity, n)) * uOpacity;
|
|
1341
|
+
}
|
|
1342
|
+
`;
|
|
1343
|
+
function compile(type, src) {
|
|
1344
|
+
const sh = noiseGL.createShader(type);
|
|
1345
|
+
noiseGL.shaderSource(sh, src);
|
|
1346
|
+
noiseGL.compileShader(sh);
|
|
1347
|
+
return sh;
|
|
1348
|
+
}
|
|
1349
|
+
const vs = compile(noiseGL.VERTEX_SHADER, vertSrc);
|
|
1350
|
+
const fs = compile(noiseGL.FRAGMENT_SHADER, fragSrc);
|
|
1351
|
+
noiseProgram = noiseGL.createProgram();
|
|
1352
|
+
noiseGL.attachShader(noiseProgram, vs);
|
|
1353
|
+
noiseGL.attachShader(noiseProgram, fs);
|
|
1354
|
+
noiseGL.linkProgram(noiseProgram);
|
|
1355
|
+
noiseGL.useProgram(noiseProgram);
|
|
1356
|
+
|
|
1357
|
+
const buf = noiseGL.createBuffer();
|
|
1358
|
+
noiseGL.bindBuffer(noiseGL.ARRAY_BUFFER, buf);
|
|
1359
|
+
noiseGL.bufferData(noiseGL.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1]), noiseGL.STATIC_DRAW);
|
|
1360
|
+
const aPos = noiseGL.getAttribLocation(noiseProgram, "aPos");
|
|
1361
|
+
noiseGL.enableVertexAttribArray(aPos);
|
|
1362
|
+
noiseGL.vertexAttribPointer(aPos, 2, noiseGL.FLOAT, false, 0, 0);
|
|
1363
|
+
|
|
1364
|
+
noiseLocs = {
|
|
1365
|
+
uRes: noiseGL.getUniformLocation(noiseProgram, "uRes"),
|
|
1366
|
+
uDpr: noiseGL.getUniformLocation(noiseProgram, "uDpr"),
|
|
1367
|
+
uSize: noiseGL.getUniformLocation(noiseProgram, "uSize"),
|
|
1368
|
+
uDensity: noiseGL.getUniformLocation(noiseProgram, "uDensity"),
|
|
1369
|
+
uOpacity: noiseGL.getUniformLocation(noiseProgram, "uOpacity"),
|
|
1370
|
+
uColor: noiseGL.getUniformLocation(noiseProgram, "uColor"),
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
noiseGL.enable(noiseGL.BLEND);
|
|
1374
|
+
noiseGL.blendFunc(noiseGL.ONE, noiseGL.ONE_MINUS_SRC_ALPHA);
|
|
1375
|
+
noiseGL.clearColor(0, 0, 0, 0);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
function resizeNoise() {
|
|
1379
|
+
if (!noiseGL) return;
|
|
1380
|
+
const dpr = Math.min(window.devicePixelRatio || 1, 2);
|
|
1381
|
+
noiseCanvas.width = innerWidth * dpr;
|
|
1382
|
+
noiseCanvas.height = innerHeight * dpr;
|
|
1383
|
+
noiseGL.viewport(0, 0, noiseCanvas.width, noiseCanvas.height);
|
|
1384
|
+
if (noiseLocs) {
|
|
1385
|
+
noiseGL.uniform2f(noiseLocs.uRes, noiseCanvas.width, noiseCanvas.height);
|
|
1386
|
+
noiseGL.uniform1f(noiseLocs.uDpr, dpr);
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
addEventListener("resize", resizeNoise);
|
|
1390
|
+
initNoise();
|
|
1391
|
+
resizeNoise();
|
|
1392
|
+
|
|
1393
|
+
function drawNoiseFrame() {
|
|
1394
|
+
if (!noiseGL || !noiseProgram) return;
|
|
1395
|
+
noiseGL.clear(noiseGL.COLOR_BUFFER_BIT);
|
|
1396
|
+
if (!ctrls.noiseEnabled) return;
|
|
1397
|
+
noiseGL.useProgram(noiseProgram);
|
|
1398
|
+
noiseGL.uniform1f(noiseLocs.uSize, ctrls.noiseSize);
|
|
1399
|
+
noiseGL.uniform1f(noiseLocs.uDensity, ctrls.noiseDensity);
|
|
1400
|
+
noiseGL.uniform1f(noiseLocs.uOpacity, ctrls.noiseOpacity);
|
|
1401
|
+
const [r, g, b] = hexToRGB(ctrls.noiseColor);
|
|
1402
|
+
noiseGL.uniform3f(noiseLocs.uColor, r / 255, g / 255, b / 255);
|
|
1403
|
+
noiseGL.drawArrays(noiseGL.TRIANGLE_STRIP, 0, 4);
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
function draw(time) {
|
|
1407
|
+
if (!fontsReady || !bodyPrepared) { requestAnimationFrame(draw); return; }
|
|
1408
|
+
const t = time * 0.001 - sceneEpoch;
|
|
1409
|
+
const dt = lastFrameTime ? Math.min(0.05, (time - lastFrameTime) / 1000) : 0.016;
|
|
1410
|
+
lastFrameTime = time;
|
|
1411
|
+
ctx.clearRect(0, 0, canvasW, canvasH);
|
|
1412
|
+
orbCtx.clearRect(0, 0, canvasW, canvasH);
|
|
1413
|
+
|
|
1414
|
+
rasterizeNOUS(t);
|
|
1415
|
+
rasterizeOrb(t);
|
|
1416
|
+
tickTyping(t, dt);
|
|
1417
|
+
layoutParagraphs();
|
|
1418
|
+
renderTextLayer();
|
|
1419
|
+
updateTerminalCursor();
|
|
1420
|
+
drawNoiseFrame();
|
|
1421
|
+
|
|
1422
|
+
ctx.font = ASCII_FONT;
|
|
1423
|
+
ctx.textBaseline = "middle";
|
|
1424
|
+
ctx.textAlign = "center";
|
|
1425
|
+
ctx.fillStyle = LENS.mgBase;
|
|
1426
|
+
orbCtx.font = ASCII_FONT;
|
|
1427
|
+
orbCtx.textBaseline = "middle";
|
|
1428
|
+
orbCtx.textAlign = "center";
|
|
1429
|
+
orbCtx.fillStyle = LENS.mgBase;
|
|
1430
|
+
for (let r = 0; r < canvasRows; r++) {
|
|
1431
|
+
const base = r * canvasCols;
|
|
1432
|
+
for (let c = 0; c < canvasCols; c++) {
|
|
1433
|
+
const idx = base + c;
|
|
1434
|
+
if (asciiMask[idx] === EMPTY) continue;
|
|
1435
|
+
ctx.fillText(asciiGlyph[idx] || CHARS[asciiChar[idx]], c * CELL_W + CELL_W * 0.5, r * CELL_H + CELL_H * 0.5);
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
for (let r = 0; r < canvasRows; r++) {
|
|
1439
|
+
const base = r * canvasCols;
|
|
1440
|
+
for (let c = 0; c < canvasCols; c++) {
|
|
1441
|
+
const idx = base + c;
|
|
1442
|
+
if (orbMask[idx] === EMPTY) continue;
|
|
1443
|
+
orbCtx.fillText(orbGlyph[idx] || CHARS[orbChar[idx]], c * CELL_W + CELL_W * 0.5, r * CELL_H + CELL_H * 0.5);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
requestAnimationFrame(draw);
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
resize();
|
|
1451
|
+
const DS_CDN = "https://esm.sh/@nous-research/ui@0.4.0/dist/fonts";
|
|
1452
|
+
const FACES = [new FontFace("Mondwest", `url(${DS_CDN}/Mondwest-Regular.woff2) format("woff2")`, { weight: "400", display: "block" })];
|
|
1453
|
+
(async () => {
|
|
1454
|
+
try {
|
|
1455
|
+
const loaded = await Promise.all(FACES.map(f => f.load()));
|
|
1456
|
+
for (const f of loaded) document.fonts.add(f);
|
|
1457
|
+
await document.fonts.load(BODY_FONT, "Aa");
|
|
1458
|
+
await document.fonts.load(ASCII_FONT, "Aa");
|
|
1459
|
+
} catch (err) {
|
|
1460
|
+
console.warn("DS font load failed, using fallbacks:", err);
|
|
1461
|
+
}
|
|
1462
|
+
rebuildLayouts();
|
|
1463
|
+
fontsReady = true;
|
|
1464
|
+
requestAnimationFrame(draw);
|
|
1465
|
+
})();
|
|
1466
|
+
</script>
|
|
1467
|
+
</body>
|
|
1468
|
+
</html>
|