@fraziym/axoniz 0.1.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 +76 -0
- package/dist/agents/definition.d.ts +15 -0
- package/dist/agents/definition.d.ts.map +1 -0
- package/dist/agents/definition.js +41 -0
- package/dist/agents/definition.js.map +1 -0
- package/dist/agents/index.d.ts +12 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +11 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/registry.d.ts +17 -0
- package/dist/agents/registry.d.ts.map +1 -0
- package/dist/agents/registry.js +23 -0
- package/dist/agents/registry.js.map +1 -0
- package/dist/agents/specialized.d.ts +31 -0
- package/dist/agents/specialized.d.ts.map +1 -0
- package/dist/agents/specialized.js +75 -0
- package/dist/agents/specialized.js.map +1 -0
- package/dist/awareness/index.d.ts +14 -0
- package/dist/awareness/index.d.ts.map +1 -0
- package/dist/awareness/index.js +22 -0
- package/dist/awareness/index.js.map +1 -0
- package/dist/awareness/service.d.ts +180 -0
- package/dist/awareness/service.d.ts.map +1 -0
- package/dist/awareness/service.js +789 -0
- package/dist/awareness/service.js.map +1 -0
- package/dist/cli/entry.d.ts +13 -0
- package/dist/cli/entry.d.ts.map +1 -0
- package/dist/cli/entry.js +35 -0
- package/dist/cli/entry.js.map +1 -0
- package/dist/comms/telegram.d.ts +41 -0
- package/dist/comms/telegram.d.ts.map +1 -0
- package/dist/comms/telegram.js +332 -0
- package/dist/comms/telegram.js.map +1 -0
- package/dist/core/agent.d.ts +252 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/agent.js +1399 -0
- package/dist/core/agent.js.map +1 -0
- package/dist/core/auth.d.ts +23 -0
- package/dist/core/auth.d.ts.map +1 -0
- package/dist/core/auth.js +113 -0
- package/dist/core/auth.js.map +1 -0
- package/dist/core/authority.d.ts +118 -0
- package/dist/core/authority.d.ts.map +1 -0
- package/dist/core/authority.js +402 -0
- package/dist/core/authority.js.map +1 -0
- package/dist/core/backend/async_queue.d.ts +17 -0
- package/dist/core/backend/async_queue.d.ts.map +1 -0
- package/dist/core/backend/async_queue.js +66 -0
- package/dist/core/backend/async_queue.js.map +1 -0
- package/dist/core/backend/index.d.ts +24 -0
- package/dist/core/backend/index.d.ts.map +1 -0
- package/dist/core/backend/index.js +128 -0
- package/dist/core/backend/index.js.map +1 -0
- package/dist/core/backend/llama_server.d.ts +39 -0
- package/dist/core/backend/llama_server.d.ts.map +1 -0
- package/dist/core/backend/llama_server.js +182 -0
- package/dist/core/backend/llama_server.js.map +1 -0
- package/dist/core/backend/llamacpp.d.ts +40 -0
- package/dist/core/backend/llamacpp.d.ts.map +1 -0
- package/dist/core/backend/llamacpp.js +200 -0
- package/dist/core/backend/llamacpp.js.map +1 -0
- package/dist/core/backend/lmstudio.d.ts +53 -0
- package/dist/core/backend/lmstudio.d.ts.map +1 -0
- package/dist/core/backend/lmstudio.js +274 -0
- package/dist/core/backend/lmstudio.js.map +1 -0
- package/dist/core/backend/ollama.d.ts +25 -0
- package/dist/core/backend/ollama.d.ts.map +1 -0
- package/dist/core/backend/ollama.js +86 -0
- package/dist/core/backend/ollama.js.map +1 -0
- package/dist/core/backend/openai.d.ts +27 -0
- package/dist/core/backend/openai.d.ts.map +1 -0
- package/dist/core/backend/openai.js +84 -0
- package/dist/core/backend/openai.js.map +1 -0
- package/dist/core/backend/types.d.ts +73 -0
- package/dist/core/backend/types.d.ts.map +1 -0
- package/dist/core/backend/types.js +137 -0
- package/dist/core/backend/types.js.map +1 -0
- package/dist/core/chat_store.d.ts +77 -0
- package/dist/core/chat_store.d.ts.map +1 -0
- package/dist/core/chat_store.js +332 -0
- package/dist/core/chat_store.js.map +1 -0
- package/dist/core/cli.d.ts +82 -0
- package/dist/core/cli.d.ts.map +1 -0
- package/dist/core/cli.js +602 -0
- package/dist/core/cli.js.map +1 -0
- package/dist/core/config.d.ts +127 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +295 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/debug.d.ts +8 -0
- package/dist/core/debug.d.ts.map +1 -0
- package/dist/core/debug.js +8 -0
- package/dist/core/debug.js.map +1 -0
- package/dist/core/downloader.d.ts +31 -0
- package/dist/core/downloader.d.ts.map +1 -0
- package/dist/core/downloader.js +180 -0
- package/dist/core/downloader.js.map +1 -0
- package/dist/core/errors.d.ts +80 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +134 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/extras.d.ts +160 -0
- package/dist/core/extras.d.ts.map +1 -0
- package/dist/core/extras.js +553 -0
- package/dist/core/extras.js.map +1 -0
- package/dist/core/health.d.ts +27 -0
- package/dist/core/health.d.ts.map +1 -0
- package/dist/core/health.js +96 -0
- package/dist/core/health.js.map +1 -0
- package/dist/core/history.d.ts +50 -0
- package/dist/core/history.d.ts.map +1 -0
- package/dist/core/history.js +276 -0
- package/dist/core/history.js.map +1 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +6 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/intelligence/ast_index.d.ts +255 -0
- package/dist/core/intelligence/ast_index.d.ts.map +1 -0
- package/dist/core/intelligence/ast_index.js +1369 -0
- package/dist/core/intelligence/ast_index.js.map +1 -0
- package/dist/core/intelligence/confidence.d.ts +113 -0
- package/dist/core/intelligence/confidence.d.ts.map +1 -0
- package/dist/core/intelligence/confidence.js +298 -0
- package/dist/core/intelligence/confidence.js.map +1 -0
- package/dist/core/intelligence/context_compressor.d.ts +80 -0
- package/dist/core/intelligence/context_compressor.d.ts.map +1 -0
- package/dist/core/intelligence/context_compressor.js +245 -0
- package/dist/core/intelligence/context_compressor.js.map +1 -0
- package/dist/core/intelligence/daemon.d.ts +247 -0
- package/dist/core/intelligence/daemon.d.ts.map +1 -0
- package/dist/core/intelligence/daemon.js +842 -0
- package/dist/core/intelligence/daemon.js.map +1 -0
- package/dist/core/intelligence/index.d.ts +60 -0
- package/dist/core/intelligence/index.d.ts.map +1 -0
- package/dist/core/intelligence/index.js +101 -0
- package/dist/core/intelligence/index.js.map +1 -0
- package/dist/core/intelligence/predictor.d.ts +246 -0
- package/dist/core/intelligence/predictor.d.ts.map +1 -0
- package/dist/core/intelligence/predictor.js +590 -0
- package/dist/core/intelligence/predictor.js.map +1 -0
- package/dist/core/intelligence/reflex.d.ts +84 -0
- package/dist/core/intelligence/reflex.d.ts.map +1 -0
- package/dist/core/intelligence/reflex.js +344 -0
- package/dist/core/intelligence/reflex.js.map +1 -0
- package/dist/core/intelligence/self_correction.d.ts +121 -0
- package/dist/core/intelligence/self_correction.d.ts.map +1 -0
- package/dist/core/intelligence/self_correction.js +327 -0
- package/dist/core/intelligence/self_correction.js.map +1 -0
- package/dist/core/intelligence/skill_distiller.d.ts +100 -0
- package/dist/core/intelligence/skill_distiller.d.ts.map +1 -0
- package/dist/core/intelligence/skill_distiller.js +246 -0
- package/dist/core/intelligence/skill_distiller.js.map +1 -0
- package/dist/core/intelligence/swarm.d.ts +330 -0
- package/dist/core/intelligence/swarm.d.ts.map +1 -0
- package/dist/core/intelligence/swarm.js +1064 -0
- package/dist/core/intelligence/swarm.js.map +1 -0
- package/dist/core/intelligence/trajectory.d.ts +107 -0
- package/dist/core/intelligence/trajectory.d.ts.map +1 -0
- package/dist/core/intelligence/trajectory.js +330 -0
- package/dist/core/intelligence/trajectory.js.map +1 -0
- package/dist/core/logger.d.ts +111 -0
- package/dist/core/logger.d.ts.map +1 -0
- package/dist/core/logger.js +640 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/loop.d.ts +123 -0
- package/dist/core/loop.d.ts.map +1 -0
- package/dist/core/loop.js +423 -0
- package/dist/core/loop.js.map +1 -0
- package/dist/core/memory.d.ts +81 -0
- package/dist/core/memory.d.ts.map +1 -0
- package/dist/core/memory.js +328 -0
- package/dist/core/memory.js.map +1 -0
- package/dist/core/metrics.d.ts +29 -0
- package/dist/core/metrics.d.ts.map +1 -0
- package/dist/core/metrics.js +109 -0
- package/dist/core/metrics.js.map +1 -0
- package/dist/core/models.d.ts +51 -0
- package/dist/core/models.d.ts.map +1 -0
- package/dist/core/models.js +146 -0
- package/dist/core/models.js.map +1 -0
- package/dist/core/optimizer.d.ts +34 -0
- package/dist/core/optimizer.d.ts.map +1 -0
- package/dist/core/optimizer.js +131 -0
- package/dist/core/optimizer.js.map +1 -0
- package/dist/core/persona.d.ts +35 -0
- package/dist/core/persona.d.ts.map +1 -0
- package/dist/core/persona.js +126 -0
- package/dist/core/persona.js.map +1 -0
- package/dist/core/rate_limit.d.ts +23 -0
- package/dist/core/rate_limit.d.ts.map +1 -0
- package/dist/core/rate_limit.js +62 -0
- package/dist/core/rate_limit.js.map +1 -0
- package/dist/core/runner.d.ts +63 -0
- package/dist/core/runner.d.ts.map +1 -0
- package/dist/core/runner.js +671 -0
- package/dist/core/runner.js.map +1 -0
- package/dist/core/stream_parser.d.ts +43 -0
- package/dist/core/stream_parser.d.ts.map +1 -0
- package/dist/core/stream_parser.js +140 -0
- package/dist/core/stream_parser.js.map +1 -0
- package/dist/core/tool_schemas.d.ts +26 -0
- package/dist/core/tool_schemas.d.ts.map +1 -0
- package/dist/core/tool_schemas.js +124 -0
- package/dist/core/tool_schemas.js.map +1 -0
- package/dist/core/which.d.ts +2 -0
- package/dist/core/which.d.ts.map +1 -0
- package/dist/core/which.js +35 -0
- package/dist/core/which.js.map +1 -0
- package/dist/goals/index.d.ts +9 -0
- package/dist/goals/index.d.ts.map +1 -0
- package/dist/goals/index.js +17 -0
- package/dist/goals/index.js.map +1 -0
- package/dist/goals/service.d.ts +115 -0
- package/dist/goals/service.d.ts.map +1 -0
- package/dist/goals/service.js +415 -0
- package/dist/goals/service.js.map +1 -0
- package/dist/goals/types.d.ts +47 -0
- package/dist/goals/types.d.ts.map +1 -0
- package/dist/goals/types.js +66 -0
- package/dist/goals/types.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations/autonomous_startup.d.ts +51 -0
- package/dist/integrations/autonomous_startup.d.ts.map +1 -0
- package/dist/integrations/autonomous_startup.js +419 -0
- package/dist/integrations/autonomous_startup.js.map +1 -0
- package/dist/integrations/goose.d.ts +105 -0
- package/dist/integrations/goose.d.ts.map +1 -0
- package/dist/integrations/goose.js +408 -0
- package/dist/integrations/goose.js.map +1 -0
- package/dist/integrations/index.d.ts +21 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +17 -0
- package/dist/integrations/index.js.map +1 -0
- package/dist/integrations/mcp.d.ts +73 -0
- package/dist/integrations/mcp.d.ts.map +1 -0
- package/dist/integrations/mcp.js +307 -0
- package/dist/integrations/mcp.js.map +1 -0
- package/dist/integrations/mempalace.d.ts +18 -0
- package/dist/integrations/mempalace.d.ts.map +1 -0
- package/dist/integrations/mempalace.js +25 -0
- package/dist/integrations/mempalace.js.map +1 -0
- package/dist/integrations/multi_agent.d.ts +82 -0
- package/dist/integrations/multi_agent.d.ts.map +1 -0
- package/dist/integrations/multi_agent.js +280 -0
- package/dist/integrations/multi_agent.js.map +1 -0
- package/dist/integrations/unified_memory.d.ts +415 -0
- package/dist/integrations/unified_memory.d.ts.map +1 -0
- package/dist/integrations/unified_memory.js +1489 -0
- package/dist/integrations/unified_memory.js.map +1 -0
- package/dist/roles/beru.yaml +48 -0
- package/dist/sidecar/client.d.ts +63 -0
- package/dist/sidecar/client.d.ts.map +1 -0
- package/dist/sidecar/client.js +222 -0
- package/dist/sidecar/client.js.map +1 -0
- package/dist/sidecar/index.d.ts +7 -0
- package/dist/sidecar/index.d.ts.map +1 -0
- package/dist/sidecar/index.js +6 -0
- package/dist/sidecar/index.js.map +1 -0
- package/dist/startup.d.ts +22 -0
- package/dist/startup.d.ts.map +1 -0
- package/dist/startup.js +194 -0
- package/dist/startup.js.map +1 -0
- package/dist/tools/_internal.d.ts +90 -0
- package/dist/tools/_internal.d.ts.map +1 -0
- package/dist/tools/_internal.js +375 -0
- package/dist/tools/_internal.js.map +1 -0
- package/dist/tools/_smoke.d.ts +2 -0
- package/dist/tools/_smoke.d.ts.map +1 -0
- package/dist/tools/_smoke.js +203 -0
- package/dist/tools/_smoke.js.map +1 -0
- package/dist/tools/axodex_tools.d.ts +51 -0
- package/dist/tools/axodex_tools.d.ts.map +1 -0
- package/dist/tools/axodex_tools.js +181 -0
- package/dist/tools/axodex_tools.js.map +1 -0
- package/dist/tools/code_tools.d.ts +33 -0
- package/dist/tools/code_tools.d.ts.map +1 -0
- package/dist/tools/code_tools.js +191 -0
- package/dist/tools/code_tools.js.map +1 -0
- package/dist/tools/computer_tools.d.ts +59 -0
- package/dist/tools/computer_tools.d.ts.map +1 -0
- package/dist/tools/computer_tools.js +348 -0
- package/dist/tools/computer_tools.js.map +1 -0
- package/dist/tools/file_tools.d.ts +51 -0
- package/dist/tools/file_tools.d.ts.map +1 -0
- package/dist/tools/file_tools.js +424 -0
- package/dist/tools/file_tools.js.map +1 -0
- package/dist/tools/index.d.ts +13 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +13 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/shell_tools.d.ts +39 -0
- package/dist/tools/shell_tools.d.ts.map +1 -0
- package/dist/tools/shell_tools.js +163 -0
- package/dist/tools/shell_tools.js.map +1 -0
- package/dist/tools/web_tools.d.ts +31 -0
- package/dist/tools/web_tools.d.ts.map +1 -0
- package/dist/tools/web_tools.js +117 -0
- package/dist/tools/web_tools.js.map +1 -0
- package/dist/voice/index.d.ts +41 -0
- package/dist/voice/index.d.ts.map +1 -0
- package/dist/voice/index.js +58 -0
- package/dist/voice/index.js.map +1 -0
- package/dist/voice/light_daemon.d.ts +197 -0
- package/dist/voice/light_daemon.d.ts.map +1 -0
- package/dist/voice/light_daemon.js +746 -0
- package/dist/voice/light_daemon.js.map +1 -0
- package/dist/voice/setup.d.ts +63 -0
- package/dist/voice/setup.d.ts.map +1 -0
- package/dist/voice/setup.js +443 -0
- package/dist/voice/setup.js.map +1 -0
- package/dist/voice/stt.d.ts +148 -0
- package/dist/voice/stt.d.ts.map +1 -0
- package/dist/voice/stt.js +361 -0
- package/dist/voice/stt.js.map +1 -0
- package/dist/voice/tts.d.ts +168 -0
- package/dist/voice/tts.d.ts.map +1 -0
- package/dist/voice/tts.js +698 -0
- package/dist/voice/tts.js.map +1 -0
- package/dist/voice/voice_loop.d.ts +101 -0
- package/dist/voice/voice_loop.d.ts.map +1 -0
- package/dist/voice/voice_loop.js +463 -0
- package/dist/voice/voice_loop.js.map +1 -0
- package/dist/voice/wake_word.d.ts +153 -0
- package/dist/voice/wake_word.d.ts.map +1 -0
- package/dist/voice/wake_word.js +458 -0
- package/dist/voice/wake_word.js.map +1 -0
- package/dist/voice/wav.d.ts +99 -0
- package/dist/voice/wav.d.ts.map +1 -0
- package/dist/voice/wav.js +306 -0
- package/dist/voice/wav.js.map +1 -0
- package/dist/web/broker.d.ts +33 -0
- package/dist/web/broker.d.ts.map +1 -0
- package/dist/web/broker.js +58 -0
- package/dist/web/broker.js.map +1 -0
- package/dist/web/open_browser.d.ts +2 -0
- package/dist/web/open_browser.d.ts.map +1 -0
- package/dist/web/open_browser.js +42 -0
- package/dist/web/open_browser.js.map +1 -0
- package/dist/web/server.d.ts +54 -0
- package/dist/web/server.d.ts.map +1 -0
- package/dist/web/server.js +831 -0
- package/dist/web/server.js.map +1 -0
- package/dist/web/static/app.js +4121 -0
- package/dist/web/static/index.html +2281 -0
- package/dist/web/static/js/MODULE_SUMMARY.md +124 -0
- package/dist/web/static/js/a11y.js +165 -0
- package/dist/web/static/js/admin.js +2145 -0
- package/dist/web/static/js/assistant.js +475 -0
- package/dist/web/static/js/calendar/reminders.js +114 -0
- package/dist/web/static/js/calendar/utils.js +166 -0
- package/dist/web/static/js/calendar.js +3348 -0
- package/dist/web/static/js/censor.js +356 -0
- package/dist/web/static/js/chat.js +4546 -0
- package/dist/web/static/js/chatRenderer.js +2294 -0
- package/dist/web/static/js/chatStream.js +276 -0
- package/dist/web/static/js/codeRunner.js +398 -0
- package/dist/web/static/js/color/hex.js +14 -0
- package/dist/web/static/js/colorPicker.js +453 -0
- package/dist/web/static/js/compare/icons.js +77 -0
- package/dist/web/static/js/compare/index.js +1482 -0
- package/dist/web/static/js/compare/models.js +104 -0
- package/dist/web/static/js/compare/panes.js +817 -0
- package/dist/web/static/js/compare/probe.js +78 -0
- package/dist/web/static/js/compare/scoreboard.js +223 -0
- package/dist/web/static/js/compare/selector.js +1335 -0
- package/dist/web/static/js/compare/state.js +58 -0
- package/dist/web/static/js/compare/stream.js +695 -0
- package/dist/web/static/js/compare/vote.js +254 -0
- package/dist/web/static/js/cookbook-diagnosis.js +694 -0
- package/dist/web/static/js/cookbook-hwfit.js +1888 -0
- package/dist/web/static/js/cookbook.js +2093 -0
- package/dist/web/static/js/cookbookDownload.js +633 -0
- package/dist/web/static/js/cookbookProgressSignal.js +29 -0
- package/dist/web/static/js/cookbookRunning.js +3506 -0
- package/dist/web/static/js/cookbookServe.js +2128 -0
- package/dist/web/static/js/document.js +9731 -0
- package/dist/web/static/js/documentLibrary.js +3376 -0
- package/dist/web/static/js/dragSort.js +265 -0
- package/dist/web/static/js/editor/ai-inpaint.js +374 -0
- package/dist/web/static/js/editor/ai-models.js +273 -0
- package/dist/web/static/js/editor/ai-rembg.js +230 -0
- package/dist/web/static/js/editor/ai-tool-runner.js +147 -0
- package/dist/web/static/js/editor/ai-tools-misc.js +216 -0
- package/dist/web/static/js/editor/build/controls.js +366 -0
- package/dist/web/static/js/editor/build/popups.js +112 -0
- package/dist/web/static/js/editor/build/right-panel.js +200 -0
- package/dist/web/static/js/editor/build/toolbar.js +73 -0
- package/dist/web/static/js/editor/build/topbar.js +131 -0
- package/dist/web/static/js/editor/build/transform-popup.js +109 -0
- package/dist/web/static/js/editor/canvas-coords.js +21 -0
- package/dist/web/static/js/editor/canvas-events.js +197 -0
- package/dist/web/static/js/editor/canvas-transforms.js +132 -0
- package/dist/web/static/js/editor/checkerboard.js +24 -0
- package/dist/web/static/js/editor/clipboard-and-drop.js +133 -0
- package/dist/web/static/js/editor/composite-helpers.js +83 -0
- package/dist/web/static/js/editor/filters/blur.js +118 -0
- package/dist/web/static/js/editor/filters/edge-feather.js +70 -0
- package/dist/web/static/js/editor/fx/adj-popup.js +677 -0
- package/dist/web/static/js/editor/fx/filter-string.js +38 -0
- package/dist/web/static/js/editor/fx/histogram.js +67 -0
- package/dist/web/static/js/editor/fx/pixel-pass.js +249 -0
- package/dist/web/static/js/editor/harmonize-masks.js +116 -0
- package/dist/web/static/js/editor/history-panel.js +176 -0
- package/dist/web/static/js/editor/keyboard-shortcuts.js +271 -0
- package/dist/web/static/js/editor/layer-helpers.js +131 -0
- package/dist/web/static/js/editor/layer-panel.js +600 -0
- package/dist/web/static/js/editor/mask-utils.js +91 -0
- package/dist/web/static/js/editor/shortcuts-popover.js +149 -0
- package/dist/web/static/js/editor/slider-ux.js +191 -0
- package/dist/web/static/js/editor/snap.js +107 -0
- package/dist/web/static/js/editor/state.js +257 -0
- package/dist/web/static/js/editor/stroke-pipeline.js +162 -0
- package/dist/web/static/js/editor/stroke-tool-sliders.js +64 -0
- package/dist/web/static/js/editor/tools/clone.js +81 -0
- package/dist/web/static/js/editor/tools/crop.js +137 -0
- package/dist/web/static/js/editor/tools/flood-fill.js +72 -0
- package/dist/web/static/js/editor/tools/lasso-mask.js +171 -0
- package/dist/web/static/js/editor/tools/lasso.js +65 -0
- package/dist/web/static/js/editor/tools/move.js +79 -0
- package/dist/web/static/js/editor/tools/stroke.js +123 -0
- package/dist/web/static/js/editor/tools/transform-drag.js +174 -0
- package/dist/web/static/js/editor/tools/transform-handles.js +271 -0
- package/dist/web/static/js/editor/tools/transform-session.js +381 -0
- package/dist/web/static/js/editor/tools/wand.js +46 -0
- package/dist/web/static/js/editor/wire-import.js +148 -0
- package/dist/web/static/js/editor/wire-inpaint-controls.js +164 -0
- package/dist/web/static/js/editor/wire-merge-buttons.js +103 -0
- package/dist/web/static/js/editor/wire-selection-controls.js +170 -0
- package/dist/web/static/js/editor/wire-topbar-menus.js +174 -0
- package/dist/web/static/js/editor/wire-topbar-overflow.js +49 -0
- package/dist/web/static/js/editor/wire-topbar.js +188 -0
- package/dist/web/static/js/emailInbox.js +1245 -0
- package/dist/web/static/js/emailLibrary/replyRecipients.js +27 -0
- package/dist/web/static/js/emailLibrary/signatureFold.js +339 -0
- package/dist/web/static/js/emailLibrary/state.js +34 -0
- package/dist/web/static/js/emailLibrary/utils.js +202 -0
- package/dist/web/static/js/emailLibrary.js +5217 -0
- package/dist/web/static/js/emojiPicker.js +311 -0
- package/dist/web/static/js/escMenuStack.js +102 -0
- package/dist/web/static/js/fileHandler.js +295 -0
- package/dist/web/static/js/gallery.js +2835 -0
- package/dist/web/static/js/galleryEditor.js +3798 -0
- package/dist/web/static/js/group.js +955 -0
- package/dist/web/static/js/init.js +405 -0
- package/dist/web/static/js/keyboard-shortcuts.js +292 -0
- package/dist/web/static/js/langIcons.js +187 -0
- package/dist/web/static/js/markdown/tableRow.js +19 -0
- package/dist/web/static/js/markdown.js +806 -0
- package/dist/web/static/js/memory.js +1418 -0
- package/dist/web/static/js/modalManager.js +1552 -0
- package/dist/web/static/js/modalSnap.js +782 -0
- package/dist/web/static/js/model/matchKey.js +19 -0
- package/dist/web/static/js/modelPicker.js +695 -0
- package/dist/web/static/js/modelSort.js +33 -0
- package/dist/web/static/js/models.js +642 -0
- package/dist/web/static/js/notes.js +5054 -0
- package/dist/web/static/js/package.json +1 -0
- package/dist/web/static/js/platform.js +47 -0
- package/dist/web/static/js/presets.js +1110 -0
- package/dist/web/static/js/providers.js +93 -0
- package/dist/web/static/js/rag.js +177 -0
- package/dist/web/static/js/research/jobs.js +335 -0
- package/dist/web/static/js/research/panel.js +1233 -0
- package/dist/web/static/js/researchSynapse.js +225 -0
- package/dist/web/static/js/search-chat.js +201 -0
- package/dist/web/static/js/search.js +52 -0
- package/dist/web/static/js/section-management.js +260 -0
- package/dist/web/static/js/sessions.js +3108 -0
- package/dist/web/static/js/settings.js +4991 -0
- package/dist/web/static/js/sidebar-layout.js +573 -0
- package/dist/web/static/js/signature.js +504 -0
- package/dist/web/static/js/skills.js +1908 -0
- package/dist/web/static/js/slashAutocomplete.js +267 -0
- package/dist/web/static/js/slashCommands.js +6099 -0
- package/dist/web/static/js/spinner.js +406 -0
- package/dist/web/static/js/storage.js +123 -0
- package/dist/web/static/js/tasks.js +2699 -0
- package/dist/web/static/js/theme.js +2086 -0
- package/dist/web/static/js/tileManager.js +386 -0
- package/dist/web/static/js/tourAutoplay.js +133 -0
- package/dist/web/static/js/tourHints.js +179 -0
- package/dist/web/static/js/tts-ai.js +521 -0
- package/dist/web/static/js/ui.js +1288 -0
- package/dist/web/static/js/util/ordinal.js +13 -0
- package/dist/web/static/js/voiceRecorder.js +283 -0
- package/dist/web/static/js/windowDrag.js +326 -0
- package/dist/web/static/js/windowResize.js +233 -0
- package/dist/web/static/landing.html +824 -0
- package/dist/web/static/lib/docx.umd.min.js +20116 -0
- package/dist/web/static/lib/highlight.min.js +1213 -0
- package/dist/web/static/lib/html2pdf.bundle.min.js +3 -0
- package/dist/web/static/lib/mammoth.browser.min.js +21 -0
- package/dist/web/static/lib/qrcode.min.js +8 -0
- package/dist/web/static/lib/xlsx.full.min.js +24 -0
- package/dist/web/static/login.html +582 -0
- package/dist/web/static/manifest.json +15 -0
- package/dist/web/static/style.css +35733 -0
- package/dist/web/static/sw.js +144 -0
- package/dist/workflows/engine.d.ts +162 -0
- package/dist/workflows/engine.d.ts.map +1 -0
- package/dist/workflows/engine.js +625 -0
- package/dist/workflows/engine.js.map +1 -0
- package/dist/workflows/index.d.ts +8 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/index.js +14 -0
- package/dist/workflows/index.js.map +1 -0
- package/package.json +112 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// compare/probe.js — model probe/check system
|
|
2
|
+
import state from './state.js';
|
|
3
|
+
import { WAVE_FRAMES } from './icons.js';
|
|
4
|
+
import uiModule from '../ui.js';
|
|
5
|
+
import spinnerModule from '../spinner.js';
|
|
6
|
+
|
|
7
|
+
function _clearProbeWaves() {
|
|
8
|
+
const rows = document.querySelectorAll('.compare-probe-row');
|
|
9
|
+
rows.forEach(r => { if (r._waveInterval) { clearInterval(r._waveInterval); r._waveInterval = null; } });
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async function _checkUnprobed() {
|
|
13
|
+
const unprobed = state._selectedModels.filter(m => !state._probed.has(m.model));
|
|
14
|
+
if (unprobed.length === 0) {
|
|
15
|
+
if (uiModule) uiModule.showToast('All models verified');
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Whirlpool loader on the Probe button while the check runs.
|
|
20
|
+
const _btn = document.getElementById('compare-check-btn');
|
|
21
|
+
let _btnHTML = null, _wp = null;
|
|
22
|
+
if (_btn) {
|
|
23
|
+
_btnHTML = _btn.innerHTML;
|
|
24
|
+
_btn.disabled = true;
|
|
25
|
+
_btn.style.opacity = '0.7';
|
|
26
|
+
try {
|
|
27
|
+
_wp = spinnerModule.createWhirlpool(14);
|
|
28
|
+
_btn.innerHTML = '';
|
|
29
|
+
_btn.appendChild(_wp.element);
|
|
30
|
+
} catch (_) { /* spinner best-effort */ }
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Quick inline probe — show toast with results
|
|
34
|
+
const isBlind = state._blindMode;
|
|
35
|
+
let ok = 0, fail = 0;
|
|
36
|
+
try {
|
|
37
|
+
for (const m of unprobed) {
|
|
38
|
+
try {
|
|
39
|
+
const _imageModelPrefixes = ['dall-e', 'gpt-image', 'chatgpt-image', 'stable-diffusion', 'sdxl', 'flux', 'midjourney'];
|
|
40
|
+
if (_imageModelPrefixes.some(p => m.model.toLowerCase().includes(p))) {
|
|
41
|
+
state._probed.add(m.model);
|
|
42
|
+
ok++;
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
const res = await fetch(`${state.API_BASE}/api/probe-selected`, {
|
|
46
|
+
method: 'POST', credentials: 'same-origin',
|
|
47
|
+
headers: { 'Content-Type': 'application/json' },
|
|
48
|
+
body: JSON.stringify({ models: [{ endpoint_id: m.endpointId || '', model: m.model, endpoint: m.endpoint || '' }] }),
|
|
49
|
+
});
|
|
50
|
+
const data = await res.json();
|
|
51
|
+
const result = (data.results || [])[0];
|
|
52
|
+
if (result && result.status === 'ok') {
|
|
53
|
+
state._probed.add(m.model);
|
|
54
|
+
ok++;
|
|
55
|
+
} else {
|
|
56
|
+
fail++;
|
|
57
|
+
const name = isBlind ? 'a model' : (m.name || m.model.split('/').pop());
|
|
58
|
+
if (uiModule) uiModule.showToast(`${name} failed: ${result?.error || 'unknown'}`, 5000);
|
|
59
|
+
}
|
|
60
|
+
} catch (e) {
|
|
61
|
+
fail++;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (fail === 0) {
|
|
65
|
+
if (uiModule) uiModule.showToast(`${ok} model${ok > 1 ? 's' : ''} verified`);
|
|
66
|
+
}
|
|
67
|
+
} finally {
|
|
68
|
+
// Restore the Probe button (its label/visibility is refreshed below).
|
|
69
|
+
if (_btn) {
|
|
70
|
+
_btn.disabled = false;
|
|
71
|
+
_btn.style.opacity = '';
|
|
72
|
+
if (_btnHTML !== null) _btn.innerHTML = _btnHTML;
|
|
73
|
+
}
|
|
74
|
+
if (window._updateCheckBtnState) window._updateCheckBtnState();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { _clearProbeWaves, _checkUnprobed };
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
// compare/scoreboard.js — vote history display
|
|
2
|
+
import Storage from '../storage.js';
|
|
3
|
+
import state from './state.js';
|
|
4
|
+
import { VOTES_STORAGE_KEY } from './icons.js';
|
|
5
|
+
import themeModule from '../theme.js';
|
|
6
|
+
import uiModule from '../ui.js';
|
|
7
|
+
|
|
8
|
+
const escapeHtml = uiModule.esc;
|
|
9
|
+
|
|
10
|
+
// Type icons for the mode tabs — match the Compare selector's tab icons.
|
|
11
|
+
const _TYPE_ICONS = {
|
|
12
|
+
chat: '<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>',
|
|
13
|
+
agent: '<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>',
|
|
14
|
+
search: '<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>',
|
|
15
|
+
research: '<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></svg>',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** Detect search provider names to fix legacy votes without mode. */
|
|
19
|
+
const _searchProviderNames = new Set(['brave search', 'duckduckgo', 'google', 'searxng', 'bing', 'tavily']);
|
|
20
|
+
|
|
21
|
+
/** Guess the compare mode for a vote record (legacy votes lack a mode field). */
|
|
22
|
+
function _guessVoteMode(v) {
|
|
23
|
+
if (v.mode) return v.mode;
|
|
24
|
+
// Legacy vote — check if models look like search providers
|
|
25
|
+
if (v.models && v.models.some(m => _searchProviderNames.has(m.toLowerCase()))) return 'search';
|
|
26
|
+
return 'chat';
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function showScoreboard() {
|
|
30
|
+
// Remove existing overlay if present
|
|
31
|
+
const existing = document.getElementById('scoreboard-overlay');
|
|
32
|
+
if (existing) existing.remove();
|
|
33
|
+
|
|
34
|
+
const votes = Storage.getJSON(VOTES_STORAGE_KEY, []);
|
|
35
|
+
|
|
36
|
+
// Build modal
|
|
37
|
+
const overlay = document.createElement('div');
|
|
38
|
+
overlay.id = 'scoreboard-overlay';
|
|
39
|
+
overlay.className = 'modal';
|
|
40
|
+
overlay.style.zIndex = '10001';
|
|
41
|
+
overlay.addEventListener('click', (e) => { if (e.target === overlay) overlay.remove(); });
|
|
42
|
+
// Esc handling lives in the global "close topmost popup" handler (app.js)
|
|
43
|
+
// so the scoreboard closes first without also dismissing the compare
|
|
44
|
+
// window beneath it.
|
|
45
|
+
|
|
46
|
+
const content = document.createElement('div');
|
|
47
|
+
content.className = 'modal-content';
|
|
48
|
+
content.style.maxWidth = '520px';
|
|
49
|
+
|
|
50
|
+
const header = document.createElement('div');
|
|
51
|
+
header.className = 'modal-header';
|
|
52
|
+
const title = document.createElement('h3');
|
|
53
|
+
title.innerHTML = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px;margin-right:6px;"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/></svg>Scoreboard';
|
|
54
|
+
title.style.margin = '0';
|
|
55
|
+
const closeX = document.createElement('button');
|
|
56
|
+
closeX.className = 'close-btn';
|
|
57
|
+
closeX.innerHTML = '✖';
|
|
58
|
+
closeX.addEventListener('click', () => overlay.remove());
|
|
59
|
+
header.appendChild(title);
|
|
60
|
+
header.appendChild(closeX);
|
|
61
|
+
content.appendChild(header);
|
|
62
|
+
|
|
63
|
+
const body = document.createElement('div');
|
|
64
|
+
body.className = 'modal-body';
|
|
65
|
+
body.style.padding = '12px 16px';
|
|
66
|
+
// Mobile: add bottom padding so the Clear History button isn't hidden behind
|
|
67
|
+
// Firefox's bottom URL bar / the home-indicator safe area.
|
|
68
|
+
if (window.innerWidth <= 768) {
|
|
69
|
+
body.style.paddingBottom = 'calc(env(safe-area-inset-bottom, 0px) + 72px)';
|
|
70
|
+
body.style.overflowY = 'auto';
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Mode tabs
|
|
74
|
+
const modes = ['chat', 'agent', 'search', 'research'];
|
|
75
|
+
const modeLabels = { chat: 'Chat', agent: 'Agent', search: 'Search', research: 'Research' };
|
|
76
|
+
const tabBar = document.createElement('div');
|
|
77
|
+
tabBar.className = 'compare-mode-tabs';
|
|
78
|
+
tabBar.style.marginBottom = '12px';
|
|
79
|
+
let activeMode = 'chat';
|
|
80
|
+
|
|
81
|
+
function renderScoreTable() {
|
|
82
|
+
// Clear previous table
|
|
83
|
+
const prev = body.querySelector('.scoreboard-wrap');
|
|
84
|
+
if (prev) {
|
|
85
|
+
// The Clear button was moved INTO the wrap on a prior render — rescue it
|
|
86
|
+
// back to the body before removing the wrap, otherwise it's destroyed
|
|
87
|
+
// with the wrap and never re-found (it vanished after visiting an empty
|
|
88
|
+
// mode like Images and switching back).
|
|
89
|
+
const clr = prev.querySelector('.scoreboard-clear-btn');
|
|
90
|
+
if (clr) body.appendChild(clr);
|
|
91
|
+
prev.remove();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const wrap = document.createElement('div');
|
|
95
|
+
wrap.className = 'scoreboard-wrap';
|
|
96
|
+
|
|
97
|
+
const filtered = votes.filter(v => _guessVoteMode(v) === activeMode);
|
|
98
|
+
|
|
99
|
+
// Aggregate
|
|
100
|
+
const stats = {};
|
|
101
|
+
for (const v of filtered) {
|
|
102
|
+
for (let mi = 0; mi < v.models.length; mi++) {
|
|
103
|
+
const m = v.models[mi];
|
|
104
|
+
if (!stats[m]) stats[m] = { wins: 0, losses: 0, ties: 0, games: 0, totalCost: 0, costCount: 0 };
|
|
105
|
+
stats[m].games++;
|
|
106
|
+
if (v.winner === 'tie') stats[m].ties++;
|
|
107
|
+
else if (v.winner === m) stats[m].wins++;
|
|
108
|
+
else stats[m].losses++;
|
|
109
|
+
if (v.costs && v.costs[mi] != null) {
|
|
110
|
+
stats[m].totalCost += v.costs[mi];
|
|
111
|
+
stats[m].costCount++;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const sorted = Object.entries(stats).sort((a, b) => {
|
|
116
|
+
const rateA = a[1].games ? a[1].wins / a[1].games : 0;
|
|
117
|
+
const rateB = b[1].games ? b[1].wins / b[1].games : 0;
|
|
118
|
+
return rateB - rateA;
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
if (sorted.length === 0) {
|
|
122
|
+
const empty = document.createElement('p');
|
|
123
|
+
empty.style.cssText = 'color:color-mix(in srgb, var(--fg) 50%, transparent);text-align:center;padding:24px 0;';
|
|
124
|
+
empty.textContent = 'No ' + activeMode + ' votes yet. Run a comparison and vote!';
|
|
125
|
+
wrap.appendChild(empty);
|
|
126
|
+
} else {
|
|
127
|
+
const table = document.createElement('table');
|
|
128
|
+
table.className = 'scoreboard-table';
|
|
129
|
+
const thead = document.createElement('thead');
|
|
130
|
+
thead.innerHTML = '<tr><th>Model</th><th>Win%</th><th>W</th><th>L</th><th>T</th><th>Games</th><th>$/1k</th></tr>';
|
|
131
|
+
table.appendChild(thead);
|
|
132
|
+
const tbody = document.createElement('tbody');
|
|
133
|
+
for (const [name, s] of sorted) {
|
|
134
|
+
const pct = s.games ? Math.round((s.wins / s.games) * 100) : 0;
|
|
135
|
+
const avgCost = s.costCount ? (s.totalCost / s.costCount) * 1000 : null;
|
|
136
|
+
const costStr = avgCost !== null ? ('$' + (avgCost < 1 ? avgCost.toFixed(2) : avgCost.toFixed(0))) : '—';
|
|
137
|
+
const tr = document.createElement('tr');
|
|
138
|
+
tr.innerHTML =
|
|
139
|
+
'<td class="scoreboard-model">' + escapeHtml(name) + '</td>' +
|
|
140
|
+
'<td class="scoreboard-pct"><strong>' + pct + '%</strong></td>' +
|
|
141
|
+
'<td>' + s.wins + '</td><td>' + s.losses + '</td><td>' + s.ties + '</td>' +
|
|
142
|
+
'<td>' + s.games + '</td>' +
|
|
143
|
+
'<td style="color:var(--color-success, #4caf50);" title="Avg estimated cost per 1,000 responses">' + costStr + '</td>';
|
|
144
|
+
tbody.appendChild(tr);
|
|
145
|
+
}
|
|
146
|
+
table.appendChild(tbody);
|
|
147
|
+
wrap.appendChild(table);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const total = document.createElement('div');
|
|
151
|
+
total.style.cssText = 'font-size:0.8em;color:color-mix(in srgb, var(--fg) 40%, transparent);margin-top:12px;text-align:center;';
|
|
152
|
+
total.textContent = filtered.length + ' vote' + (filtered.length !== 1 ? 's' : '') + ' recorded';
|
|
153
|
+
wrap.appendChild(total);
|
|
154
|
+
|
|
155
|
+
// Move clear button into wrap so it stays at bottom
|
|
156
|
+
const existingClear = body.querySelector('.scoreboard-clear-btn');
|
|
157
|
+
if (existingClear) wrap.appendChild(existingClear);
|
|
158
|
+
|
|
159
|
+
body.appendChild(wrap);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
modes.forEach(mode => {
|
|
163
|
+
const tab = document.createElement('button');
|
|
164
|
+
tab.type = 'button';
|
|
165
|
+
tab.className = 'compare-mode-tab' + (mode === activeMode ? ' active' : '');
|
|
166
|
+
tab.innerHTML = (_TYPE_ICONS[mode] || '') + '<span class="compare-toggle-label">' + modeLabels[mode] + '</span>';
|
|
167
|
+
tab.addEventListener('click', () => {
|
|
168
|
+
activeMode = mode;
|
|
169
|
+
tabBar.querySelectorAll('.compare-mode-tab').forEach(t => t.classList.remove('active'));
|
|
170
|
+
tab.classList.add('active');
|
|
171
|
+
renderScoreTable();
|
|
172
|
+
});
|
|
173
|
+
tabBar.appendChild(tab);
|
|
174
|
+
});
|
|
175
|
+
body.appendChild(tabBar);
|
|
176
|
+
renderScoreTable();
|
|
177
|
+
|
|
178
|
+
// Clear history button
|
|
179
|
+
const clearBtn = document.createElement('button');
|
|
180
|
+
clearBtn.className = 'scoreboard-clear-btn';
|
|
181
|
+
clearBtn.textContent = 'Clear History';
|
|
182
|
+
clearBtn.style.cssText = 'display:block;margin:16px 0 4px auto;padding:4px 12px;background:none;border:1px solid var(--border);color:var(--fg);border-radius:4px;cursor:pointer;font-size:11px;opacity:0.4;transition:opacity 0.15s;';
|
|
183
|
+
clearBtn.addEventListener('mouseenter', () => { clearBtn.style.opacity = '1'; });
|
|
184
|
+
clearBtn.addEventListener('mouseleave', () => { clearBtn.style.opacity = '0.6'; });
|
|
185
|
+
clearBtn.addEventListener('click', () => {
|
|
186
|
+
// Inline confirmation
|
|
187
|
+
const confirmRow = document.createElement('div');
|
|
188
|
+
confirmRow.style.cssText = 'display:flex;gap:8px;justify-content:center;align-items:center;margin-top:8px;padding:8px 12px;border:1px solid color-mix(in srgb, var(--red) 40%, var(--border));border-radius:6px;background:color-mix(in srgb, var(--red) 5%, transparent);';
|
|
189
|
+
const confirmLabel = document.createElement('span');
|
|
190
|
+
confirmLabel.style.cssText = 'font-size:12px;opacity:0.7;';
|
|
191
|
+
confirmLabel.textContent = 'Clear all vote history?';
|
|
192
|
+
const yesBtn = document.createElement('button');
|
|
193
|
+
yesBtn.textContent = 'Clear';
|
|
194
|
+
yesBtn.style.cssText = 'padding:4px 12px;background:var(--red);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px;font-weight:600;';
|
|
195
|
+
yesBtn.addEventListener('click', () => {
|
|
196
|
+
Storage.setJSON(VOTES_STORAGE_KEY, []);
|
|
197
|
+
overlay.remove();
|
|
198
|
+
showScoreboard();
|
|
199
|
+
});
|
|
200
|
+
const noBtn = document.createElement('button');
|
|
201
|
+
noBtn.textContent = 'Cancel';
|
|
202
|
+
noBtn.className = 'cmp-btn-secondary';
|
|
203
|
+
noBtn.style.cssText = 'padding:4px 12px;border-radius:4px;font-size:12px;';
|
|
204
|
+
noBtn.addEventListener('click', () => confirmRow.remove());
|
|
205
|
+
confirmRow.appendChild(confirmLabel);
|
|
206
|
+
confirmRow.appendChild(yesBtn);
|
|
207
|
+
confirmRow.appendChild(noBtn);
|
|
208
|
+
// Replace button with confirmation
|
|
209
|
+
clearBtn.style.display = 'none';
|
|
210
|
+
clearBtn.parentElement.appendChild(confirmRow);
|
|
211
|
+
});
|
|
212
|
+
body.appendChild(clearBtn);
|
|
213
|
+
|
|
214
|
+
content.appendChild(body);
|
|
215
|
+
overlay.appendChild(content);
|
|
216
|
+
document.body.appendChild(overlay);
|
|
217
|
+
|
|
218
|
+
if (themeModule && themeModule.makeDraggable) {
|
|
219
|
+
themeModule.makeDraggable(content, header);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export default { showScoreboard };
|