@oh-my-pi/pi-tui 18.2.4 → 18.2.6
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/CHANGELOG.md +23 -0
- package/README.md +43 -0
- package/dist/types/app-keybindings.d.ts +395 -0
- package/dist/types/apps/autoresearch-dashboard.d.ts +43 -0
- package/dist/types/apps/autoresearch-data.d.ts +15 -0
- package/dist/types/apps/cleanse-board.d.ts +66 -0
- package/dist/types/apps/cleanse-picker.d.ts +23 -0
- package/dist/types/apps/debug/log-formatting.d.ts +6 -0
- package/dist/types/apps/debug/log-viewer.d.ts +81 -0
- package/dist/types/apps/debug/protocol-probe.d.ts +42 -0
- package/dist/types/apps/debug/raw-sse-buffer.d.ts +58 -0
- package/dist/types/apps/debug/raw-sse.d.ts +26 -0
- package/dist/types/apps/debug/terminal-info.d.ts +34 -0
- package/dist/types/apps/debug/viewer-frame.d.ts +52 -0
- package/dist/types/apps/git/avatar.d.ts +9 -0
- package/dist/types/apps/git/colors.d.ts +49 -0
- package/dist/types/apps/git/diff-pane.d.ts +188 -0
- package/dist/types/apps/git/git-tui.d.ts +66 -0
- package/dist/types/apps/git/sidebar.d.ts +149 -0
- package/dist/types/apps/git/state.d.ts +117 -0
- package/dist/types/apps/if-bench-board.d.ts +75 -0
- package/dist/types/apps/live-visualizer.d.ts +33 -0
- package/dist/types/apps/ps-data.d.ts +51 -0
- package/dist/types/apps/ps-top.d.ts +33 -0
- package/dist/types/apps/session-picker.d.ts +26 -0
- package/dist/types/apps/setup-model-picker.d.ts +13 -0
- package/dist/types/apps/standalone-picker.d.ts +42 -0
- package/dist/types/autocomplete.d.ts +4 -0
- package/dist/types/chat/advisor-message.d.ts +11 -0
- package/dist/types/chat/assistant-message.d.ts +106 -0
- package/dist/types/chat/background-tan-message.d.ts +9 -0
- package/dist/types/chat/bash-execution.d.ts +47 -0
- package/dist/types/chat/cache-invalidation-marker.d.ts +50 -0
- package/dist/types/chat/chat-transcript-builder.d.ts +50 -0
- package/dist/types/chat/collab-prompt-message.d.ts +10 -0
- package/dist/types/chat/compaction-summary-message.d.ts +54 -0
- package/dist/types/chat/custom-message.d.ts +10 -0
- package/dist/types/chat/display-preferences.d.ts +13 -0
- package/dist/types/chat/eval-execution.d.ts +29 -0
- package/dist/types/chat/execution-shared.d.ts +51 -0
- package/dist/types/chat/extension-types.d.ts +28 -0
- package/dist/types/chat/hook-message.d.ts +10 -0
- package/dist/types/chat/image-loading.d.ts +46 -0
- package/dist/types/chat/late-diagnostics-message.d.ts +21 -0
- package/dist/types/chat/messages.d.ts +189 -0
- package/dist/types/chat/reaction.d.ts +30 -0
- package/dist/types/chat/read-target.d.ts +4 -0
- package/dist/types/chat/read-tool-group.d.ts +67 -0
- package/dist/types/chat/served-model-marker.d.ts +47 -0
- package/dist/types/chat/skill-message.d.ts +33 -0
- package/dist/types/chat/skill-title-input.d.ts +14 -0
- package/dist/types/chat/stripped-tool-calls-placeholder.d.ts +12 -0
- package/dist/types/chat/thinking-display.d.ts +12 -0
- package/dist/types/chat/todo-reminder.d.ts +13 -0
- package/dist/types/chat/tool-execution.d.ts +138 -0
- package/dist/types/chat/transcript-browser.d.ts +93 -0
- package/dist/types/chat/transcript-entry.d.ts +45 -0
- package/dist/types/chat/transcript-outline.d.ts +86 -0
- package/dist/types/chat/transcript-render-helpers.d.ts +92 -0
- package/dist/types/chat/ttsr-notification.d.ts +23 -0
- package/dist/types/chat/user-message.d.ts +52 -0
- package/dist/types/chrome/chat-block.d.ts +64 -0
- package/dist/types/chrome/collab-qrcode.d.ts +28 -0
- package/dist/types/chrome/context-thresholds.d.ts +10 -0
- package/dist/types/chrome/countdown-timer.d.ts +14 -0
- package/dist/types/chrome/diff.d.ts +14 -0
- package/dist/types/chrome/dynamic-border.d.ts +16 -0
- package/dist/types/chrome/error-block.d.ts +17 -0
- package/dist/types/chrome/form-theme.d.ts +3 -0
- package/dist/types/chrome/format.d.ts +12 -0
- package/dist/types/chrome/index.d.ts +20 -0
- package/dist/types/chrome/keybinding-hints.d.ts +40 -0
- package/dist/types/chrome/live-board.d.ts +23 -0
- package/dist/types/chrome/local-date.d.ts +4 -0
- package/dist/types/chrome/message-divider.d.ts +22 -0
- package/dist/types/chrome/message-frame.d.ts +52 -0
- package/dist/types/chrome/message-notice.d.ts +35 -0
- package/dist/types/chrome/overlay-box.d.ts +74 -0
- package/dist/types/chrome/qrcode.d.ts +48 -0
- package/dist/types/chrome/segment-track.d.ts +27 -0
- package/dist/types/chrome/select-list-mouse-routing.d.ts +4 -0
- package/dist/types/chrome/selector-helpers.d.ts +52 -0
- package/dist/types/chrome/shared.d.ts +5 -0
- package/dist/types/chrome/streaming-panel.d.ts +19 -0
- package/dist/types/chrome/tool-activity.d.ts +17 -0
- package/dist/types/chrome/transcript-container.d.ts +129 -0
- package/dist/types/chrome/transcript-status.d.ts +12 -0
- package/dist/types/chrome/visual-truncate.d.ts +19 -0
- package/dist/types/components/disclosure.d.ts +42 -0
- package/dist/types/components/form.d.ts +130 -0
- package/dist/types/components/key-value-list.d.ts +24 -0
- package/dist/types/components/layout/geometry.d.ts +73 -0
- package/dist/types/components/layout/row.d.ts +55 -0
- package/dist/types/components/layout/split-pane.d.ts +80 -0
- package/dist/types/components/layout/stack.d.ts +50 -0
- package/dist/types/components/menu-selection.d.ts +71 -0
- package/dist/types/components/metric.d.ts +44 -0
- package/dist/types/components/progress-bar.d.ts +36 -0
- package/dist/types/components/scroll-view.d.ts +53 -19
- package/dist/types/components/scroll-viewport.d.ts +46 -0
- package/dist/types/components/section.d.ts +19 -0
- package/dist/types/components/select-list.d.ts +46 -2
- package/dist/types/components/settings-list.d.ts +20 -0
- package/dist/types/components/table.d.ts +32 -0
- package/dist/types/components/tree-view.d.ts +130 -0
- package/dist/types/components/wizard-step.d.ts +60 -0
- package/dist/types/hotkeys-markdown.d.ts +7 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/keybinding-matchers.d.ts +35 -0
- package/dist/types/keys.d.ts +2 -2
- package/dist/types/lang-from-path.d.ts +9 -0
- package/dist/types/overlays/advisor-config.d.ts +114 -0
- package/dist/types/overlays/agent-activity.d.ts +41 -0
- package/dist/types/overlays/agent-hub-projection.d.ts +33 -0
- package/dist/types/overlays/agent-hub-renderer.d.ts +53 -0
- package/dist/types/overlays/agent-hub-types.d.ts +99 -0
- package/dist/types/overlays/agent-hub.d.ts +126 -0
- package/dist/types/overlays/agent-transcript-viewer.d.ts +71 -0
- package/dist/types/overlays/agents-hub.d.ts +72 -0
- package/dist/types/overlays/ask-dialog.d.ts +88 -0
- package/dist/types/overlays/bordered-loader.d.ts +11 -0
- package/dist/types/overlays/btw-history-panel.d.ts +29 -0
- package/dist/types/overlays/btw-history.d.ts +17 -0
- package/dist/types/overlays/btw-panel.d.ts +26 -0
- package/dist/types/overlays/cleanse-panel.d.ts +36 -0
- package/dist/types/overlays/codex-reset-fireworks.d.ts +52 -0
- package/dist/types/overlays/composer-shape-preview.d.ts +47 -0
- package/dist/types/overlays/composer-shape-registry.d.ts +50 -0
- package/dist/types/overlays/copy-selector.d.ts +48 -0
- package/dist/types/overlays/copy-targets.d.ts +63 -0
- package/dist/types/overlays/error-banner.d.ts +13 -0
- package/dist/types/overlays/extensions/display-text.d.ts +10 -0
- package/dist/types/overlays/extensions/extension-dashboard.d.ts +63 -0
- package/dist/types/overlays/extensions/extension-list.d.ts +54 -0
- package/dist/types/overlays/extensions/inspector-model.d.ts +109 -0
- package/dist/types/overlays/extensions/inspector-panel.d.ts +17 -0
- package/dist/types/overlays/extensions/live-tool-session.d.ts +28 -0
- package/dist/types/overlays/extensions/mcp-runtime.d.ts +107 -0
- package/dist/types/overlays/extensions/state-manager.d.ts +42 -0
- package/dist/types/overlays/extensions/types.d.ts +165 -0
- package/dist/types/overlays/history-search.d.ts +16 -0
- package/dist/types/overlays/hook-editor.d.ts +44 -0
- package/dist/types/overlays/hook-input.d.ts +20 -0
- package/dist/types/overlays/hook-selector.d.ts +71 -0
- package/dist/types/overlays/hub-frame.d.ts +77 -0
- package/dist/types/overlays/login-dialog.d.ts +43 -0
- package/dist/types/overlays/logout-account-selector.d.ts +15 -0
- package/dist/types/overlays/mcp-add-wizard.d.ts +87 -0
- package/dist/types/overlays/model-browser.d.ts +213 -0
- package/dist/types/overlays/model-hub.d.ts +72 -0
- package/dist/types/overlays/model-picker.d.ts +74 -0
- package/dist/types/overlays/model-selector.d.ts +52 -0
- package/dist/types/overlays/move-overlay.d.ts +39 -0
- package/dist/types/overlays/oauth-selector.d.ts +41 -0
- package/dist/types/overlays/omfg-panel.d.ts +20 -0
- package/dist/types/overlays/pause-screen.d.ts +43 -0
- package/dist/types/overlays/plan-review-overlay.d.ts +89 -0
- package/dist/types/overlays/plan-save-overlay.d.ts +19 -0
- package/dist/types/overlays/plan-toc.d.ts +41 -0
- package/dist/types/overlays/plugin-selector.d.ts +28 -0
- package/dist/types/overlays/plugin-settings.d.ts +180 -0
- package/dist/types/overlays/queue-mode-selector.d.ts +11 -0
- package/dist/types/overlays/reset-usage-selector.d.ts +23 -0
- package/dist/types/overlays/rewind-selector.d.ts +61 -0
- package/dist/types/overlays/running-subagent-badge.d.ts +6 -0
- package/dist/types/overlays/session-account-selector.d.ts +24 -0
- package/dist/types/overlays/session-info-overlay.d.ts +17 -0
- package/dist/types/overlays/session-observer-registry.d.ts +77 -0
- package/dist/types/overlays/session-selector.d.ts +131 -0
- package/dist/types/overlays/settings-defs.d.ts +119 -0
- package/dist/types/overlays/settings-selector.d.ts +73 -0
- package/dist/types/overlays/show-images-selector.d.ts +11 -0
- package/dist/types/overlays/snapcompact-shape-preview.d.ts +31 -0
- package/dist/types/overlays/theme-selector.d.ts +12 -0
- package/dist/types/overlays/thinking-selector.d.ts +12 -0
- package/dist/types/overlays/tiny-title-download-progress.d.ts +21 -0
- package/dist/types/overlays/tree-selector.d.ts +92 -0
- package/dist/types/overlays/usage-dashboard.d.ts +94 -0
- package/dist/types/overlays/usage-display.d.ts +5 -0
- package/dist/types/overlays/usage-row.d.ts +17 -0
- package/dist/types/prompt/attachment-chips.d.ts +19 -0
- package/dist/types/prompt/composer-attachments.d.ts +71 -0
- package/dist/types/prompt/composer-cache.d.ts +37 -0
- package/dist/types/prompt/composer.d.ts +159 -0
- package/dist/types/prompt/custom-editor.d.ts +261 -0
- package/dist/types/prompt/editor-top-gap.d.ts +18 -0
- package/dist/types/prompt/emoji-autocomplete.d.ts +16 -0
- package/dist/types/prompt/github-ref-autocomplete.d.ts +35 -0
- package/dist/types/prompt/gradient-highlight.d.ts +32 -0
- package/dist/types/prompt/image-format.d.ts +4 -0
- package/dist/types/prompt/image-references.d.ts +26 -0
- package/dist/types/prompt/interactive-context-helpers.d.ts +43 -0
- package/dist/types/prompt/internal-url-autocomplete.d.ts +56 -0
- package/dist/types/prompt/macos-spelling.d.ts +44 -0
- package/dist/types/prompt/magic-keyword-boundary.d.ts +9 -0
- package/dist/types/prompt/magic-keywords.d.ts +26 -0
- package/dist/types/prompt/markdown-prose.d.ts +15 -0
- package/dist/types/prompt/model-mention-autocomplete.d.ts +25 -0
- package/dist/types/prompt/model-mention-syntax.d.ts +24 -0
- package/dist/types/prompt/orchestrate.d.ts +13 -0
- package/dist/types/prompt/prompt-action-autocomplete.d.ts +56 -0
- package/dist/types/prompt/queue-input.d.ts +8 -0
- package/dist/types/prompt/skill-tokens.d.ts +13 -0
- package/dist/types/prompt/tools-markdown.d.ts +12 -0
- package/dist/types/prompt/ultrathink.d.ts +13 -0
- package/dist/types/prompt/usage-amounts.d.ts +26 -0
- package/dist/types/prompt/video.d.ts +18 -0
- package/dist/types/prompt/welcome.d.ts +83 -0
- package/dist/types/prompt/workflow.d.ts +13 -0
- package/dist/types/render/code-cell.d.ts +51 -0
- package/dist/types/render/file-list.d.ts +22 -0
- package/dist/types/render/hyperlink.d.ts +80 -0
- package/dist/types/render/index.d.ts +16 -0
- package/dist/types/render/output-block.d.ts +54 -0
- package/dist/types/render/output-pane.d.ts +80 -0
- package/dist/types/render/render-utils.d.ts +312 -0
- package/dist/types/render/sixel.d.ts +21 -0
- package/dist/types/render/status-line.d.ts +23 -0
- package/dist/types/render/tool-card.d.ts +71 -0
- package/dist/types/render/tree-list.d.ts +29 -0
- package/dist/types/render/types.d.ts +17 -0
- package/dist/types/render/utils.d.ts +43 -0
- package/dist/types/render/width-aware-text.d.ts +23 -0
- package/dist/types/setup/lazy.d.ts +3 -0
- package/dist/types/setup/scenes/composer.d.ts +3 -0
- package/dist/types/setup/scenes/glyph.d.ts +3 -0
- package/dist/types/setup/scenes/model.d.ts +3 -0
- package/dist/types/setup/scenes/outro.d.ts +2 -0
- package/dist/types/setup/scenes/providers.d.ts +3 -0
- package/dist/types/setup/scenes/sign-in.d.ts +21 -0
- package/dist/types/setup/scenes/splash.d.ts +11 -0
- package/dist/types/setup/scenes/theme.d.ts +3 -0
- package/dist/types/setup/scenes/types.d.ts +110 -0
- package/dist/types/setup/scenes/web-search.d.ts +22 -0
- package/dist/types/setup/setup-version.d.ts +11 -0
- package/dist/types/setup/startup-splash.d.ts +9 -0
- package/dist/types/setup/wizard-overlay.d.ts +16 -0
- package/dist/types/setup/wizard.d.ts +25 -0
- package/dist/types/status-line/component.d.ts +182 -0
- package/dist/types/status-line/context-usage.d.ts +156 -0
- package/dist/types/status-line/footer.d.ts +30 -0
- package/dist/types/status-line/git-utils.d.ts +22 -0
- package/dist/types/status-line/host.d.ts +129 -0
- package/dist/types/status-line/index.d.ts +6 -0
- package/dist/types/status-line/loop.d.ts +18 -0
- package/dist/types/status-line/metrics.d.ts +21 -0
- package/dist/types/status-line/presets.d.ts +3 -0
- package/dist/types/status-line/schema.d.ts +15 -0
- package/dist/types/status-line/segments.d.ts +5 -0
- package/dist/types/status-line/separators.d.ts +3 -0
- package/dist/types/status-line/types.d.ts +236 -0
- package/dist/types/stdin-buffer.d.ts +4 -0
- package/dist/types/theme/color.d.ts +24 -0
- package/dist/types/theme/defaults/index.d.ts +9489 -0
- package/dist/types/theme/index.d.ts +4 -0
- package/dist/types/theme/loader.d.ts +23 -0
- package/dist/types/theme/mermaid-cache.d.ts +26 -0
- package/dist/types/theme/schema-validation.d.ts +3 -0
- package/dist/types/theme/schema.d.ts +25 -0
- package/dist/types/theme/session-color.d.ts +43 -0
- package/dist/types/theme/shimmer.d.ts +44 -0
- package/dist/types/theme/symbols.d.ts +34 -0
- package/dist/types/theme/theme-class.d.ts +299 -0
- package/dist/types/theme/theme.d.ts +111 -0
- package/dist/types/theme/tui-adapters.d.ts +30 -0
- package/dist/types/thinking.d.ts +165 -0
- package/dist/types/tools/agent-tree.d.ts +36 -0
- package/dist/types/tools/ask.d.ts +67 -0
- package/dist/types/tools/ast-edit.d.ts +53 -0
- package/dist/types/tools/ast-grep.d.ts +52 -0
- package/dist/types/tools/autoresearch.d.ts +156 -0
- package/dist/types/tools/bash-interactive.d.ts +28 -0
- package/dist/types/tools/bash.d.ts +103 -0
- package/dist/types/tools/conflict-detect.d.ts +43 -0
- package/dist/types/tools/debug.d.ts +60 -0
- package/dist/types/tools/default-renderer.d.ts +24 -0
- package/dist/types/tools/edit.d.ts +158 -0
- package/dist/types/tools/eval-format/code-mode-declarations.d.ts +5 -0
- package/dist/types/tools/eval-format/index.d.ts +5 -0
- package/dist/types/tools/eval-format/javascript.d.ts +2 -0
- package/dist/types/tools/eval-format/python.d.ts +2 -0
- package/dist/types/tools/eval.d.ts +94 -0
- package/dist/types/tools/fetch.d.ts +42 -0
- package/dist/types/tools/gh-format.d.ts +8 -0
- package/dist/types/tools/github.d.ts +144 -0
- package/dist/types/tools/glob.d.ts +44 -0
- package/dist/types/tools/goal.d.ts +42 -0
- package/dist/types/tools/grep.d.ts +64 -0
- package/dist/types/tools/grouped-file-output.d.ts +71 -0
- package/dist/types/tools/hashline-format.d.ts +28 -0
- package/dist/types/tools/hub.d.ts +340 -0
- package/dist/types/tools/index.d.ts +4 -0
- package/dist/types/tools/json-tree.d.ts +59 -0
- package/dist/types/tools/line-ranges.d.ts +29 -0
- package/dist/types/tools/list-limit.d.ts +15 -0
- package/dist/types/tools/lsp.d.ts +72 -0
- package/dist/types/tools/match-line-format.d.ts +11 -0
- package/dist/types/tools/mcp.d.ts +81 -0
- package/dist/types/tools/memory.d.ts +67 -0
- package/dist/types/tools/output-meta.d.ts +151 -0
- package/dist/types/tools/read.d.ts +139 -0
- package/dist/types/tools/renderer.d.ts +98 -0
- package/dist/types/tools/report-tool-issue.d.ts +8 -0
- package/dist/types/tools/resolve.d.ts +47 -0
- package/dist/types/tools/streaming-output.d.ts +282 -0
- package/dist/types/tools/subprocess.d.ts +24 -0
- package/dist/types/tools/task-repair-args.d.ts +53 -0
- package/dist/types/tools/task-yield-assembly.d.ts +20 -0
- package/dist/types/tools/task.d.ts +425 -0
- package/dist/types/tools/terminal-output.d.ts +8 -0
- package/dist/types/tools/think.d.ts +13 -0
- package/dist/types/tools/todo.d.ts +118 -0
- package/dist/types/tools/tool-errors.d.ts +7 -0
- package/dist/types/tools/vibe.d.ts +120 -0
- package/dist/types/tools/web-search.d.ts +195 -0
- package/dist/types/tools/write.d.ts +76 -0
- package/dist/types/tools/xd-url.d.ts +13 -0
- package/dist/types/tools/xdev.d.ts +52 -0
- package/dist/types/tui.d.ts +18 -0
- package/dist/types/utils.d.ts +2 -0
- package/package.json +37 -3
- package/src/app-keybindings.ts +760 -0
- package/src/apps/autoresearch-dashboard.ts +500 -0
- package/src/apps/autoresearch-data.ts +64 -0
- package/src/apps/cleanse-board.ts +341 -0
- package/src/apps/cleanse-picker.ts +57 -0
- package/src/apps/debug/log-formatting.ts +53 -0
- package/src/apps/debug/log-viewer.ts +868 -0
- package/src/apps/debug/protocol-probe.ts +267 -0
- package/src/apps/debug/raw-sse-buffer.ts +449 -0
- package/src/apps/debug/raw-sse.ts +282 -0
- package/src/apps/debug/terminal-info.ts +115 -0
- package/src/apps/debug/viewer-frame.ts +174 -0
- package/src/apps/git/avatar.ts +52 -0
- package/src/apps/git/colors.ts +109 -0
- package/src/apps/git/diff-pane.ts +1512 -0
- package/src/apps/git/git-tui.ts +889 -0
- package/src/apps/git/sidebar.ts +1204 -0
- package/src/apps/git/state.ts +113 -0
- package/src/apps/if-bench-board.ts +324 -0
- package/src/apps/live-visualizer.ts +238 -0
- package/src/apps/ps-data.ts +116 -0
- package/src/apps/ps-top.ts +422 -0
- package/src/apps/session-picker.ts +95 -0
- package/src/apps/setup-model-picker.ts +21 -0
- package/src/apps/standalone-picker.ts +111 -0
- package/src/autocomplete.ts +9 -13
- package/src/chat/advisor-message.ts +175 -0
- package/src/chat/assistant-message.ts +1214 -0
- package/src/chat/background-tan-message.ts +35 -0
- package/src/chat/bash-execution.ts +394 -0
- package/src/chat/cache-invalidation-marker.ts +94 -0
- package/src/chat/chat-transcript-builder.ts +593 -0
- package/src/chat/collab-prompt-message.ts +34 -0
- package/src/chat/compaction-summary-message.ts +261 -0
- package/src/chat/custom-message.ts +23 -0
- package/src/chat/display-preferences.ts +24 -0
- package/src/chat/eval-execution.ts +172 -0
- package/src/chat/execution-shared.ts +113 -0
- package/src/chat/extension-types.ts +46 -0
- package/src/chat/hook-message.ts +20 -0
- package/src/chat/image-loading.ts +122 -0
- package/src/chat/late-diagnostics-message.ts +92 -0
- package/src/chat/messages.ts +305 -0
- package/src/chat/reaction.ts +65 -0
- package/src/chat/read-target.ts +7 -0
- package/src/chat/read-tool-group.ts +873 -0
- package/src/chat/served-model-marker.ts +91 -0
- package/src/chat/skill-message.ts +220 -0
- package/src/chat/skill-title-input.ts +41 -0
- package/src/chat/stripped-tool-calls-placeholder.ts +35 -0
- package/src/chat/thinking-display.ts +312 -0
- package/src/chat/todo-reminder.ts +33 -0
- package/src/chat/tool-execution.ts +1395 -0
- package/src/chat/transcript-browser.ts +268 -0
- package/src/chat/transcript-entry.ts +96 -0
- package/src/chat/transcript-outline.ts +260 -0
- package/src/chat/transcript-render-helpers.ts +315 -0
- package/src/chat/ttsr-notification.ts +123 -0
- package/src/chat/user-message.ts +287 -0
- package/src/chrome/chat-block.ts +110 -0
- package/src/chrome/collab-qrcode.ts +74 -0
- package/src/chrome/context-thresholds.ts +85 -0
- package/src/chrome/countdown-timer.ts +74 -0
- package/src/chrome/diff.ts +266 -0
- package/src/chrome/dynamic-border.ts +36 -0
- package/src/chrome/error-block.ts +63 -0
- package/src/chrome/form-theme.ts +10 -0
- package/src/chrome/format.ts +66 -0
- package/src/chrome/index.ts +21 -0
- package/src/chrome/keybinding-hints.ts +55 -0
- package/src/chrome/live-board.ts +123 -0
- package/src/chrome/local-date.ts +20 -0
- package/src/chrome/message-divider.ts +51 -0
- package/src/chrome/message-frame.ts +164 -0
- package/src/chrome/message-notice.ts +103 -0
- package/src/chrome/overlay-box.ts +301 -0
- package/src/chrome/qrcode.ts +539 -0
- package/src/chrome/segment-track.ts +86 -0
- package/src/chrome/select-list-mouse-routing.ts +11 -0
- package/src/chrome/selector-helpers.ts +119 -0
- package/src/chrome/shared.ts +27 -0
- package/src/chrome/streaming-panel.ts +72 -0
- package/src/chrome/tool-activity.ts +44 -0
- package/src/chrome/transcript-container.ts +902 -0
- package/src/chrome/transcript-status.ts +27 -0
- package/src/chrome/visual-truncate.ts +70 -0
- package/src/components/disclosure.ts +235 -0
- package/src/components/editor.ts +10 -12
- package/src/components/form.ts +566 -0
- package/src/components/input.ts +6 -27
- package/src/components/key-value-list.ts +88 -0
- package/src/components/layout/geometry.ts +202 -0
- package/src/components/layout/row.ts +283 -0
- package/src/components/layout/split-pane.ts +349 -0
- package/src/components/layout/stack.ts +261 -0
- package/src/components/markdown.ts +16 -12
- package/src/components/menu-selection.ts +248 -0
- package/src/components/metric.ts +132 -0
- package/src/components/progress-bar.ts +140 -0
- package/src/components/scroll-view.ts +372 -70
- package/src/components/scroll-viewport.ts +154 -0
- package/src/components/section.ts +77 -0
- package/src/components/select-list.ts +238 -159
- package/src/components/settings-list.ts +103 -80
- package/src/components/table.ts +127 -0
- package/src/components/tree-view.ts +481 -0
- package/src/components/wizard-step.ts +229 -0
- package/src/deccara.ts +1 -3
- package/src/hotkeys-markdown.ts +100 -0
- package/src/index.ts +18 -0
- package/src/keybinding-matchers.ts +99 -0
- package/src/keys.ts +2 -2
- package/src/lang-from-path.ts +252 -0
- package/src/overlays/advisor-config.ts +761 -0
- package/src/overlays/agent-activity.ts +113 -0
- package/src/overlays/agent-hub-projection.ts +250 -0
- package/src/overlays/agent-hub-renderer.ts +281 -0
- package/src/overlays/agent-hub-types.ts +74 -0
- package/src/overlays/agent-hub.ts +1562 -0
- package/src/overlays/agent-transcript-viewer.ts +669 -0
- package/src/overlays/agents-hub.ts +1203 -0
- package/src/overlays/ask-dialog.ts +1202 -0
- package/src/overlays/bordered-loader.ts +41 -0
- package/src/overlays/btw-history-panel.ts +591 -0
- package/src/overlays/btw-history.ts +33 -0
- package/src/overlays/btw-panel.ts +167 -0
- package/src/overlays/cleanse-panel.ts +167 -0
- package/src/overlays/codex-reset-fireworks.ts +375 -0
- package/src/overlays/composer-shape-preview.ts +137 -0
- package/src/overlays/composer-shape-registry.ts +82 -0
- package/src/overlays/copy-selector.ts +618 -0
- package/src/overlays/copy-targets.ts +210 -0
- package/src/overlays/error-banner.ts +39 -0
- package/src/overlays/extensions/display-text.ts +39 -0
- package/src/overlays/extensions/extension-dashboard.ts +645 -0
- package/src/overlays/extensions/extension-list.ts +667 -0
- package/src/overlays/extensions/inspector-model.ts +484 -0
- package/src/overlays/extensions/inspector-panel.ts +669 -0
- package/src/overlays/extensions/live-tool-session.ts +67 -0
- package/src/overlays/extensions/mcp-runtime.ts +289 -0
- package/src/overlays/extensions/state-manager.ts +337 -0
- package/src/overlays/extensions/types.ts +208 -0
- package/src/overlays/history-search.ts +268 -0
- package/src/overlays/hook-editor.ts +272 -0
- package/src/overlays/hook-input.ts +84 -0
- package/src/overlays/hook-selector.ts +635 -0
- package/src/overlays/hub-frame.ts +262 -0
- package/src/overlays/login-dialog.ts +231 -0
- package/src/overlays/logout-account-selector.ts +115 -0
- package/src/overlays/mcp-add-wizard.ts +1436 -0
- package/src/overlays/model-browser.ts +1176 -0
- package/src/overlays/model-hub.ts +2279 -0
- package/src/overlays/model-picker.ts +285 -0
- package/src/overlays/model-selector.ts +107 -0
- package/src/overlays/move-overlay.ts +197 -0
- package/src/overlays/oauth-selector.ts +446 -0
- package/src/overlays/omfg-panel.ts +136 -0
- package/src/overlays/pause-screen.ts +198 -0
- package/src/overlays/plan-review-overlay.ts +1227 -0
- package/src/overlays/plan-save-overlay.ts +74 -0
- package/src/overlays/plan-toc.ts +139 -0
- package/src/overlays/plugin-selector.ts +97 -0
- package/src/overlays/plugin-settings.ts +839 -0
- package/src/overlays/queue-mode-selector.ts +55 -0
- package/src/overlays/reset-usage-selector.ts +170 -0
- package/src/overlays/rewind-selector.ts +499 -0
- package/src/overlays/running-subagent-badge.ts +19 -0
- package/src/overlays/session-account-selector.ts +68 -0
- package/src/overlays/session-info-overlay.ts +96 -0
- package/src/overlays/session-observer-registry.ts +289 -0
- package/src/overlays/session-selector.ts +1137 -0
- package/src/overlays/settings-defs.ts +315 -0
- package/src/overlays/settings-selector.ts +1415 -0
- package/src/overlays/show-images-selector.ts +44 -0
- package/src/overlays/snapcompact-shape-preview-doc.md +14 -0
- package/src/overlays/snapcompact-shape-preview.ts +192 -0
- package/src/overlays/theme-selector.ts +62 -0
- package/src/overlays/thinking-selector.ts +51 -0
- package/src/overlays/tiny-title-download-progress.ts +102 -0
- package/src/overlays/tree-selector.ts +1121 -0
- package/src/overlays/usage-dashboard.ts +629 -0
- package/src/overlays/usage-display.ts +45 -0
- package/src/overlays/usage-row.ts +118 -0
- package/src/prompt/attachment-chips.ts +201 -0
- package/src/prompt/composer-attachments.ts +280 -0
- package/src/prompt/composer-cache.ts +304 -0
- package/src/prompt/composer.ts +934 -0
- package/src/prompt/custom-editor.ts +1392 -0
- package/src/prompt/data/emojis.json +1 -0
- package/src/prompt/editor-top-gap.ts +28 -0
- package/src/prompt/emoji-autocomplete.ts +285 -0
- package/src/prompt/github-ref-autocomplete.ts +75 -0
- package/src/prompt/gradient-highlight.ts +101 -0
- package/src/prompt/image-format.ts +28 -0
- package/src/prompt/image-references.ts +102 -0
- package/src/prompt/interactive-context-helpers.ts +126 -0
- package/src/prompt/internal-url-autocomplete.ts +155 -0
- package/src/prompt/macos-spelling.ts +456 -0
- package/src/prompt/magic-keyword-boundary.ts +23 -0
- package/src/prompt/magic-keywords.ts +42 -0
- package/src/prompt/markdown-prose.ts +245 -0
- package/src/prompt/model-mention-autocomplete.ts +94 -0
- package/src/prompt/model-mention-syntax.ts +41 -0
- package/src/prompt/orchestrate.ts +26 -0
- package/src/prompt/prompt-action-autocomplete.ts +337 -0
- package/src/prompt/queue-input.ts +132 -0
- package/src/prompt/skill-tokens.ts +36 -0
- package/src/prompt/tips.txt +27 -0
- package/src/prompt/tools-markdown.ts +29 -0
- package/src/prompt/ultrathink.ts +26 -0
- package/src/prompt/usage-amounts.ts +99 -0
- package/src/prompt/video.ts +47 -0
- package/src/prompt/welcome.ts +605 -0
- package/src/prompt/workflow.ts +26 -0
- package/src/render/code-cell.ts +244 -0
- package/src/render/file-list.ts +58 -0
- package/src/render/hyperlink.ts +192 -0
- package/src/render/index.ts +17 -0
- package/src/render/output-block.ts +267 -0
- package/src/render/output-pane.ts +299 -0
- package/src/render/render-utils.ts +1182 -0
- package/src/render/sixel.ts +69 -0
- package/src/render/status-line.ts +55 -0
- package/src/render/tool-card.ts +272 -0
- package/src/render/tree-list.ts +188 -0
- package/src/render/types.ts +19 -0
- package/src/render/utils.ts +109 -0
- package/src/render/width-aware-text.ts +60 -0
- package/src/setup/lazy.ts +17 -0
- package/src/setup/scenes/composer.ts +127 -0
- package/src/setup/scenes/glyph.ts +120 -0
- package/src/setup/scenes/model.ts +138 -0
- package/src/setup/scenes/outro.ts +24 -0
- package/src/setup/scenes/providers.ts +107 -0
- package/src/setup/scenes/sign-in.ts +373 -0
- package/src/setup/scenes/splash.ts +192 -0
- package/src/setup/scenes/theme.ts +343 -0
- package/src/setup/scenes/types.ts +111 -0
- package/src/setup/scenes/web-search.ts +165 -0
- package/src/setup/setup-version.ts +11 -0
- package/src/setup/startup-splash.ts +107 -0
- package/src/setup/wizard-overlay.ts +319 -0
- package/src/setup/wizard.ts +101 -0
- package/src/status-line/component.ts +3003 -0
- package/src/status-line/context-usage.ts +688 -0
- package/src/status-line/footer.ts +323 -0
- package/src/status-line/git-utils.ts +42 -0
- package/src/status-line/host.ts +97 -0
- package/src/status-line/index.ts +6 -0
- package/src/status-line/loop.ts +28 -0
- package/src/status-line/metrics.ts +94 -0
- package/src/status-line/presets.ts +107 -0
- package/src/status-line/schema.ts +57 -0
- package/src/status-line/segments.ts +934 -0
- package/src/status-line/separators.ts +55 -0
- package/src/status-line/types.ts +227 -0
- package/src/stdin-buffer.ts +4 -2
- package/src/theme/color.ts +95 -0
- package/src/theme/dark.json +95 -0
- package/src/theme/defaults/alabaster.json +93 -0
- package/src/theme/defaults/amethyst.json +96 -0
- package/src/theme/defaults/anthracite.json +93 -0
- package/src/theme/defaults/basalt.json +91 -0
- package/src/theme/defaults/birch.json +95 -0
- package/src/theme/defaults/dark-abyss.json +91 -0
- package/src/theme/defaults/dark-arctic.json +104 -0
- package/src/theme/defaults/dark-aurora.json +95 -0
- package/src/theme/defaults/dark-catppuccin.json +107 -0
- package/src/theme/defaults/dark-cavern.json +91 -0
- package/src/theme/defaults/dark-celestial.json +106 -0
- package/src/theme/defaults/dark-copper.json +95 -0
- package/src/theme/defaults/dark-cosmos.json +90 -0
- package/src/theme/defaults/dark-cyberpunk.json +102 -0
- package/src/theme/defaults/dark-dracula.json +98 -0
- package/src/theme/defaults/dark-eclipse.json +91 -0
- package/src/theme/defaults/dark-ember.json +95 -0
- package/src/theme/defaults/dark-equinox.json +90 -0
- package/src/theme/defaults/dark-forest.json +96 -0
- package/src/theme/defaults/dark-github.json +105 -0
- package/src/theme/defaults/dark-gruvbox.json +112 -0
- package/src/theme/defaults/dark-lavender.json +95 -0
- package/src/theme/defaults/dark-lunar.json +89 -0
- package/src/theme/defaults/dark-midnight.json +95 -0
- package/src/theme/defaults/dark-monochrome.json +94 -0
- package/src/theme/defaults/dark-monokai.json +98 -0
- package/src/theme/defaults/dark-nebula.json +90 -0
- package/src/theme/defaults/dark-nord.json +98 -0
- package/src/theme/defaults/dark-ocean.json +101 -0
- package/src/theme/defaults/dark-one.json +100 -0
- package/src/theme/defaults/dark-poimandres.json +115 -0
- package/src/theme/defaults/dark-rainforest.json +91 -0
- package/src/theme/defaults/dark-reef.json +91 -0
- package/src/theme/defaults/dark-retro.json +92 -0
- package/src/theme/defaults/dark-rose-pine.json +96 -0
- package/src/theme/defaults/dark-sakura.json +95 -0
- package/src/theme/defaults/dark-slate.json +95 -0
- package/src/theme/defaults/dark-solarized.json +97 -0
- package/src/theme/defaults/dark-solstice.json +90 -0
- package/src/theme/defaults/dark-starfall.json +91 -0
- package/src/theme/defaults/dark-sunset.json +99 -0
- package/src/theme/defaults/dark-swamp.json +90 -0
- package/src/theme/defaults/dark-synthwave.json +103 -0
- package/src/theme/defaults/dark-taiga.json +91 -0
- package/src/theme/defaults/dark-terminal.json +95 -0
- package/src/theme/defaults/dark-tokyo-night.json +101 -0
- package/src/theme/defaults/dark-tundra.json +91 -0
- package/src/theme/defaults/dark-twilight.json +91 -0
- package/src/theme/defaults/dark-volcanic.json +91 -0
- package/src/theme/defaults/graphite.json +92 -0
- package/src/theme/defaults/index.ts +201 -0
- package/src/theme/defaults/light-arctic.json +107 -0
- package/src/theme/defaults/light-aurora-day.json +91 -0
- package/src/theme/defaults/light-canyon.json +91 -0
- package/src/theme/defaults/light-catppuccin.json +106 -0
- package/src/theme/defaults/light-cirrus.json +90 -0
- package/src/theme/defaults/light-coral.json +95 -0
- package/src/theme/defaults/light-cyberpunk.json +96 -0
- package/src/theme/defaults/light-dawn.json +90 -0
- package/src/theme/defaults/light-dunes.json +91 -0
- package/src/theme/defaults/light-eucalyptus.json +95 -0
- package/src/theme/defaults/light-forest.json +100 -0
- package/src/theme/defaults/light-frost.json +95 -0
- package/src/theme/defaults/light-github.json +115 -0
- package/src/theme/defaults/light-glacier.json +91 -0
- package/src/theme/defaults/light-gruvbox.json +108 -0
- package/src/theme/defaults/light-haze.json +90 -0
- package/src/theme/defaults/light-honeycomb.json +95 -0
- package/src/theme/defaults/light-lagoon.json +91 -0
- package/src/theme/defaults/light-lavender.json +95 -0
- package/src/theme/defaults/light-meadow.json +91 -0
- package/src/theme/defaults/light-mint.json +95 -0
- package/src/theme/defaults/light-monochrome.json +101 -0
- package/src/theme/defaults/light-ocean.json +99 -0
- package/src/theme/defaults/light-one.json +99 -0
- package/src/theme/defaults/light-opal.json +91 -0
- package/src/theme/defaults/light-orchard.json +91 -0
- package/src/theme/defaults/light-paper.json +95 -0
- package/src/theme/defaults/light-poimandres.json +115 -0
- package/src/theme/defaults/light-prism.json +90 -0
- package/src/theme/defaults/light-retro.json +98 -0
- package/src/theme/defaults/light-sand.json +95 -0
- package/src/theme/defaults/light-savanna.json +91 -0
- package/src/theme/defaults/light-solarized.json +102 -0
- package/src/theme/defaults/light-soleil.json +90 -0
- package/src/theme/defaults/light-sunset.json +99 -0
- package/src/theme/defaults/light-synthwave.json +98 -0
- package/src/theme/defaults/light-tokyo-night.json +111 -0
- package/src/theme/defaults/light-wetland.json +91 -0
- package/src/theme/defaults/light-zenith.json +89 -0
- package/src/theme/defaults/limestone.json +94 -0
- package/src/theme/defaults/mahogany.json +97 -0
- package/src/theme/defaults/marble.json +93 -0
- package/src/theme/defaults/obsidian.json +91 -0
- package/src/theme/defaults/onyx.json +91 -0
- package/src/theme/defaults/pearl.json +93 -0
- package/src/theme/defaults/porcelain.json +91 -0
- package/src/theme/defaults/quartz.json +96 -0
- package/src/theme/defaults/sandstone.json +95 -0
- package/src/theme/defaults/titanium.json +90 -0
- package/src/theme/index.ts +5 -0
- package/src/theme/light.json +93 -0
- package/src/theme/loader.ts +200 -0
- package/src/theme/mermaid-cache.ts +92 -0
- package/src/theme/schema-validation.ts +119 -0
- package/src/theme/schema.ts +168 -0
- package/src/theme/session-color.ts +253 -0
- package/src/theme/shimmer.ts +307 -0
- package/src/theme/symbols.ts +1433 -0
- package/src/theme/theme-class.ts +787 -0
- package/src/theme/theme-schema.json +463 -0
- package/src/theme/theme.ts +810 -0
- package/src/theme/tui-adapters.ts +339 -0
- package/src/thinking.ts +380 -0
- package/src/tools/agent-tree.ts +128 -0
- package/src/tools/ask.ts +482 -0
- package/src/tools/ast-edit.ts +210 -0
- package/src/tools/ast-grep.ts +171 -0
- package/src/tools/autoresearch.ts +287 -0
- package/src/tools/bash-interactive.ts +295 -0
- package/src/tools/bash.ts +468 -0
- package/src/tools/conflict-detect.ts +77 -0
- package/src/tools/debug.ts +167 -0
- package/src/tools/default-renderer.ts +172 -0
- package/src/tools/edit.ts +1258 -0
- package/src/tools/eval-format/code-mode-declarations.ts +61 -0
- package/src/tools/eval-format/index.ts +16 -0
- package/src/tools/eval-format/javascript.ts +952 -0
- package/src/tools/eval-format/python.ts +544 -0
- package/src/tools/eval.ts +835 -0
- package/src/tools/fetch.ts +226 -0
- package/src/tools/gh-format.ts +18 -0
- package/src/tools/github.ts +686 -0
- package/src/tools/glob.ts +213 -0
- package/src/tools/goal.ts +153 -0
- package/src/tools/grep.ts +385 -0
- package/src/tools/grouped-file-output.ts +211 -0
- package/src/tools/hashline-format.ts +59 -0
- package/src/tools/hub.ts +1488 -0
- package/src/tools/index.ts +71 -0
- package/src/tools/json-tree.ts +388 -0
- package/src/tools/line-ranges.ts +98 -0
- package/src/tools/list-limit.ts +43 -0
- package/src/tools/lsp.ts +702 -0
- package/src/tools/match-line-format.ts +20 -0
- package/src/tools/mcp.ts +309 -0
- package/src/tools/memory.ts +220 -0
- package/src/tools/output-meta.ts +367 -0
- package/src/tools/read.ts +628 -0
- package/src/tools/renderer.ts +107 -0
- package/src/tools/report-tool-issue.ts +13 -0
- package/src/tools/resolve.ts +139 -0
- package/src/tools/streaming-output.ts +1576 -0
- package/src/tools/subprocess.ts +39 -0
- package/src/tools/task-repair-args.ts +118 -0
- package/src/tools/task-yield-assembly.ts +147 -0
- package/src/tools/task.ts +2110 -0
- package/src/tools/terminal-output.ts +153 -0
- package/src/tools/think.ts +28 -0
- package/src/tools/todo.ts +580 -0
- package/src/tools/tool-errors.ts +15 -0
- package/src/tools/vibe.ts +420 -0
- package/src/tools/web-search.ts +409 -0
- package/src/tools/write.ts +511 -0
- package/src/tools/xd-url.ts +28 -0
- package/src/tools/xdev.ts +201 -0
- package/src/tui.ts +57 -4
- package/src/utils.ts +8 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"1":[["100","💯"],["1234","🔢"],["1st_place_medal","🥇"]],"2":[["2nd_place_medal","🥈"]],"3":[["3rd_place_medal","🥉"]],"8":[["8ball","🎱"]],"+":[["+1","👍"]],"-":[["-1","👎"]],"a":[["a","🅰️"],["ab","🆎"],["abacus","🧮"],["abc","🔤"],["abcd","🔡"],["accept","🉑"],["adult","🧑"],["aerial_tramway","🚡"],["afk","🚶"],["agree","👍"],["airplane","✈️"],["alarm_clock","⏰"],["alembic","⚗"],["alien","👽"],["amazing","🤩"],["ambulance","🚑"],["amphora","🏺"],["anchor","⚓"],["angel","👼"],["anger","💢"],["angry","😠"],["anguished","😧"],["ant","🐜"],["applause","👏"],["apple","🍎"],["aquarius","♒"],["aries","♈"],["arrow_backward","◀️"],["arrow_double_down","⏬"],["arrow_double_up","⏫"],["arrow_down","⬇️"],["arrow_down_small","🔽"],["arrow_forward","▶️"],["arrow_heading_down","⤵️"],["arrow_heading_up","⤴️"],["arrow_left","⬅️"],["arrow_lower_left","↙️"],["arrow_lower_right","↘️"],["arrow_right","➡️"],["arrow_right_hook","↪️"],["arrow_up","⬆️"],["arrow_up_down","↕️"],["arrow_up_small","🔼"],["arrow_upper_left","↖️"],["arrow_upper_right","↗️"],["arrows_clockwise","🔃"],["arrows_counterclockwise","🔄"],["art","🎨"],["articulated_lorry","🚛"],["artificial_satellite","🛰"],["asterisk","*⃣"],["astonished","😲"],["athletic_shoe","👟"],["atm","🏧"],["atom_symbol","⚛"],["avocado","🥑"],["awesome","😎"],["aww","🥹"]],"b":[["b","🅱️"],["baby","👶"],["baby_bottle","🍼"],["baby_chick","🐤"],["baby_symbol","🚼"],["back","🔙"],["bacon","🥓"],["badger","🦡"],["badminton","🏸"],["bae","😍"],["bagel","🥯"],["baggage_claim","🛄"],["baguette_bread","🥖"],["balance_scale","⚖"],["balloon","🎈"],["ballot_box","🗳"],["ballot_box_with_check","☑️"],["bamboo","🎍"],["banana","🍌"],["bangbang","‼️"],["bank","🏦"],["bar_chart","📊"],["barber","💈"],["baseball","⚾"],["basket","🧺"],["basketball","🏀"],["basketball_man","⛹"],["basketball_woman","⛹️♀️"],["bat","🦇"],["bath","🛀"],["bathtub","🛁"],["battery","🔋"],["bawling","😭"],["bday","🥳"],["beach_umbrella","🏖"],["bear","🐻"],["bearded_person","🧔"],["bed","🛏"],["beer","🍺"],["beers","🍻"],["beetle","🐞"],["beginner","🔰"],["bell","🔔"],["bellhop_bell","🛎"],["bento","🍱"],["bet","👍"],["bike","🚲"],["biking_man","🚴"],["biking_woman","🚴♀️"],["bikini","👙"],["billed_hat","🧢"],["biohazard","☣"],["bird","🐦"],["birthday","🎂"],["black_circle","⚫"],["black_flag","🏴"],["black_heart","🖤"],["black_joker","🃏"],["black_large_square","⬛"],["black_medium_small_square","◾"],["black_medium_square","◼️"],["black_nib","✒️"],["black_small_square","▪️"],["black_square_button","🔲"],["blonde_man","👱"],["blonde_woman","👱♀️"],["blossom","🌼"],["blowfish","🐡"],["blue_book","📘"],["blue_car","🚙"],["blue_heart","💙"],["blush","😊"],["boar","🐗"],["bomb","💣"],["bone","🦴"],["bookmark","🔖"],["bookmark_tabs","📑"],["books","📚"],["boom","💥"],["boot","👢"],["bored","🥱"],["bouquet","💐"],["bow_and_arrow","🏹"],["bowing_man","🙇"],["bowing_woman","🙇♀️"],["bowl_with_spoon","🥣"],["bowling","🎳"],["boxing_glove","🥊"],["boy","👦"],["brain","🧠"],["brb","🏃"],["bread","🍞"],["breastfeeding","🤱"],["brick","🧱"],["bride_with_veil","👰"],["bridge_at_night","🌉"],["briefcase","💼"],["broccoli","🥦"],["broken_heart","💔"],["broom","🧹"],["bruh","😐"],["bs","💩"],["bug","🐛"],["building_construction","🏗"],["bulb","💡"],["bullettrain_front","🚅"],["bullettrain_side","🚄"],["bump","👊"],["burrito","🌯"],["bus","🚌"],["business_suit_levitating","🕴"],["busstop","🚏"],["bust_in_silhouette","👤"],["busts_in_silhouette","👥"],["butterfly","🦋"],["bye","👋"]],"c":[["cactus","🌵"],["cake","🍰"],["calendar","📆"],["call_me_hand","🤙"],["calling","📲"],["camel","🐫"],["camera","📷"],["camera_flash","📸"],["camping","🏕"],["cancer","♋"],["candle","🕯"],["candy","🍬"],["canned_food","🥫"],["canoe","🛶"],["capital_abcd","🔠"],["capricorn","♑"],["card_file_box","🗃"],["card_index","📇"],["card_index_dividers","🗂"],["carousel_horse","🎠"],["carrot","🥕"],["cat","🐱"],["cat2","🐈"],["cd","💿"],["celebrate","🎉"],["chains","⛓"],["champagne","🍾"],["chart","💹"],["chart_with_downwards_trend","📉"],["chart_with_upwards_trend","📈"],["chat","💬"],["checkered_flag","🏁"],["cheese","🧀"],["cherries","🍒"],["cherry_blossom","🌸"],["chess_pawn","♟"],["chestnut","🌰"],["chicken","🐔"],["child","🧒"],["children_crossing","🚸"],["chill","😎"],["chilling","😎"],["chipmunk","🐿"],["chocolate_bar","🍫"],["chopsticks","🥢"],["christmas_tree","🎄"],["church","⛪"],["cinema","🎦"],["circus_tent","🎪"],["city_sunrise","🌇"],["city_sunset","🌆"],["cityscape","🏙"],["cl","🆑"],["clamp","🗜"],["clap","👏"],["clapper","🎬"],["classical_building","🏛"],["climbing_man","🧗♂️"],["climbing_woman","🧗♀️"],["clinking_glasses","🥂"],["clipboard","📋"],["clock1","🕐"],["clock10","🕙"],["clock1030","🕥"],["clock11","🕚"],["clock1130","🕦"],["clock12","🕛"],["clock1230","🕧"],["clock130","🕜"],["clock2","🕑"],["clock230","🕝"],["clock3","🕒"],["clock330","🕞"],["clock4","🕓"],["clock430","🕟"],["clock5","🕔"],["clock530","🕠"],["clock6","🕕"],["clock630","🕡"],["clock7","🕖"],["clock730","🕢"],["clock8","🕗"],["clock830","🕣"],["clock9","🕘"],["clock930","🕤"],["closed_book","📕"],["closed_lock_with_key","🔐"],["closed_umbrella","🌂"],["cloud","☁️"],["cloud_with_lightning","🌩"],["cloud_with_lightning_and_rain","⛈"],["cloud_with_rain","🌧"],["cloud_with_snow","🌨"],["clown_face","🤡"],["clubs","♣️"],["coat","🧥"],["cocktail","🍸"],["coconut","🥥"],["coffee","☕"],["coffin","⚰"],["cold","🥶"],["cold_sweat","😰"],["comet","☄"],["compass","🧭"],["computer","💻"],["computer_mouse","🖱"],["confetti_ball","🎊"],["confounded","😖"],["confused","😕"],["congrats","🎉"],["congratulations","㊗️"],["construction","🚧"],["construction_worker_man","👷"],["construction_worker_woman","👷♀️"],["control_knobs","🎛"],["convenience_store","🏪"],["cookie","🍪"],["cool","🆒"],["copyright","©️"],["corn","🌽"],["correct","✅"],["couch_and_lamp","🛋"],["couple","👫"],["couple_with_heart_man_man","👨❤️👨"],["couple_with_heart_woman_man","💑"],["couple_with_heart_woman_woman","👩❤️👩"],["couplekiss_man_man","👨❤️💋👨"],["couplekiss_man_woman","💏"],["couplekiss_woman_woman","👩❤️💋👩"],["cow","🐮"],["cow2","🐄"],["cowboy_hat_face","🤠"],["crab","🦀"],["crayon","🖍"],["credit_card","💳"],["crescent_moon","🌙"],["cricket","🏏"],["cringe","😖"],["crocodile","🐊"],["croissant","🥐"],["crossed_fingers","🤞"],["crossed_flags","🎌"],["crossed_swords","⚔"],["crown","👑"],["crush","🥰"],["cry","😢"],["crying","😭"],["crying_cat_face","😿"],["crystal_ball","🔮"],["cucumber","🥒"],["cup_with_straw","🥤"],["cupcake","🧁"],["cupid","💘"],["curling_stone","🥌"],["curly_loop","➰"],["currency_exchange","💱"],["curry","🍛"],["custard","🍮"],["customs","🛃"],["cya","👋"],["cyclone","🌀"]],"d":[["dagger","🗡"],["dancer","💃"],["dancing_men","👯♂️"],["dancing_women","👯"],["dango","🍡"],["dark_sunglasses","🕶"],["dart","🎯"],["dash","💨"],["date","📅"],["daydream","💭"],["dead","💀"],["deal","🤝"],["deciduous_tree","🌳"],["deer","🦌"],["delicious","😋"],["department_store","🏬"],["derelict_house","🏚"],["desert","🏜"],["desert_island","🏝"],["desktop_computer","🖥"],["diamond_shape_with_a_dot_inside","💠"],["diamonds","♦️"],["disappointed","😞"],["disappointed_relieved","😥"],["dislike","👎"],["dizzy","💫"],["dizzy_face","😵"],["dna","🧬"],["do_not_litter","🚯"],["dog","🐶"],["dog2","🐕"],["dollar","💵"],["dolls","🎎"],["dolphin","🐬"],["door","🚪"],["doughnut","🍩"],["dove","🕊"],["dragon","🐉"],["dragon_face","🐲"],["dream","💭"],["dress","👗"],["dromedary_camel","🐪"],["drooling_face","🤤"],["droplet","💧"],["drum","🥁"],["duck","🦆"],["dumpling","🥟"],["dvd","📀"]],"e":[["e-mail","📧"],["eagle","🦅"],["ear","👂"],["ear_of_rice","🌾"],["earth_africa","🌍"],["earth_americas","🌎"],["earth_asia","🌏"],["egg","🥚"],["eggplant","🍆"],["eight","8️⃣"],["eight_pointed_black_star","✴️"],["eight_spoked_asterisk","✳️"],["eject_button","⏏️"],["electric_plug","🔌"],["elephant","🐘"],["email","✉️"],["end","🔚"],["england","🏴"],["envelope_with_arrow","📩"],["euro","💶"],["european_castle","🏰"],["european_post_office","🏤"],["evergreen_tree","🌲"],["ew","🤮"],["exclamation","❗"],["exhausted","🥱"],["explode","💥"],["exploding_head","🤯"],["expressionless","😑"],["eye","👁"],["eyeglasses","👓"],["eyes","👀"]],"f":[["face_with_head_bandage","🤕"],["face_with_thermometer","🤒"],["facepalm","🤦"],["facepunch","👊"],["factory","🏭"],["fallen_leaf","🍂"],["family_man_boy","👨👦"],["family_man_boy_boy","👨👦👦"],["family_man_girl","👨👧"],["family_man_girl_boy","👨👧👦"],["family_man_girl_girl","👨👧👧"],["family_man_man_boy","👨👨👦"],["family_man_man_boy_boy","👨👨👦👦"],["family_man_man_girl","👨👨👧"],["family_man_man_girl_boy","👨👨👧👦"],["family_man_man_girl_girl","👨👨👧👧"],["family_man_woman_boy","👪"],["family_man_woman_boy_boy","👨👩👦👦"],["family_man_woman_girl","👨👩👧"],["family_man_woman_girl_boy","👨👩👧👦"],["family_man_woman_girl_girl","👨👩👧👧"],["family_woman_boy","👩👦"],["family_woman_boy_boy","👩👦👦"],["family_woman_girl","👩👧"],["family_woman_girl_boy","👩👧👦"],["family_woman_girl_girl","👩👧👧"],["family_woman_woman_boy","👩👩👦"],["family_woman_woman_boy_boy","👩👩👦👦"],["family_woman_woman_girl","👩👩👧"],["family_woman_woman_girl_boy","👩👩👧👦"],["family_woman_woman_girl_girl","👩👩👧👧"],["fart","💨"],["fast_forward","⏩"],["fax","📠"],["fearful","😨"],["female_detective","🕵️♀️"],["ferris_wheel","🎡"],["ferry","⛴"],["field_hockey","🏑"],["file_cabinet","🗄"],["file_folder","📁"],["film_projector","📽"],["film_strip","🎞"],["fingers_crossed","🤞"],["fire","🔥"],["fire_engine","🚒"],["fire_extinguisher","🧯"],["firecracker","🧨"],["fireworks","🎆"],["first_quarter_moon","🌓"],["first_quarter_moon_with_face","🌛"],["fish","🐟"],["fish_cake","🍥"],["fishing_pole_and_fish","🎣"],["fist","✊"],["fist_left","🤛"],["fist_right","🤜"],["fistbump","👊"],["five","5️⃣"],["flags","🎏"],["flashlight","🔦"],["flat_shoe","🥿"],["fleek","💯"],["fleur_de_lis","⚜"],["flight_arrival","🛬"],["flight_departure","🛫"],["floppy_disk","💾"],["flower_playing_cards","🎴"],["flushed","😳"],["flying_disc","🥏"],["flying_saucer","🛸"],["fml","💩"],["fog","🌫"],["foggy","🌁"],["foot","🦶"],["football","🏈"],["footprints","👣"],["fork_and_knife","🍴"],["fortune_cookie","🥠"],["fountain","⛲"],["fountain_pen","🖋"],["four","4️⃣"],["four_leaf_clover","🍀"],["fox_face","🦊"],["fr","💯"],["framed_picture","🖼"],["free","🆓"],["fried_egg","🍳"],["fried_shrimp","🍤"],["fries","🍟"],["frog","🐸"],["frowning","😦"],["frowning_face","☹"],["frowning_man","🙍♂️"],["frowning_woman","🙍"],["ftw","🏆"],["fu","🖕"],["fuelpump","⛽"],["full_moon","🌕"],["full_moon_with_face","🌝"],["funeral_urn","⚱"]],"g":[["game_die","🎲"],["gasp","😮"],["gear","⚙"],["gem","💎"],["gemini","♊"],["germs","😷"],["gg","🏆"],["ghost","👻"],["gift","🎁"],["gift_heart","💝"],["giraffe","🦒"],["girl","👧"],["gj","👏"],["globe_with_meridians","🌐"],["gloves","🧤"],["gm","☀️"],["gn","😴"],["gnight","😴"],["goal_net","🥅"],["goat","🐐"],["goggles","🥽"],["golf","⛳"],["golfing_man","🏌"],["golfing_woman","🏌️♀️"],["goodjob","👏"],["goodmorning","☀️"],["goodnight","😴"],["gorilla","🦍"],["gotcha","👌"],["grapes","🍇"],["grasshopper","🦗"],["green_apple","🍏"],["green_book","📗"],["green_heart","💚"],["green_salad","🥗"],["grey_exclamation","❕"],["grey_question","❔"],["grimacing","😬"],["grin","😁"],["grinning","😀"],["gtg","👋"],["guardsman","💂"],["guardswoman","💂♀️"],["guitar","🎸"],["gun","🔫"]],"h":[["haha","😆"],["hahaha","😆"],["haircut_man","💇♂️"],["haircut_woman","💇"],["hamburger","🍔"],["hammer","🔨"],["hammer_and_pick","⚒"],["hammer_and_wrench","🛠"],["hamster","🐹"],["hand_over_mouth","🤭"],["handbag","👜"],["handshake","🤝"],["hash","#️⃣"],["hatched_chick","🐥"],["hatching_chick","🐣"],["headphones","🎧"],["hear_no_evil","🙉"],["heart","❤️"],["heart_decoration","💟"],["heart_eyes","😍"],["heart_eyes_cat","😻"],["heartbeat","💓"],["heartpulse","💗"],["hearts","♥️"],["heavy_check_mark","✔️"],["heavy_division_sign","➗"],["heavy_dollar_sign","💲"],["heavy_heart_exclamation","❣"],["heavy_minus_sign","➖"],["heavy_multiplication_x","✖️"],["heavy_plus_sign","➕"],["hedgehog","🦔"],["helicopter","🚁"],["hello","👋"],["herb","🌿"],["hi","👋"],["hibiscus","🌺"],["high_brightness","🔆"],["high_heel","👠"],["highfive","🙏"],["hiking_boot","🥾"],["hippopotamus","🦛"],["hmm","🤔"],["hocho","🔪"],["hole","🕳"],["honey_pot","🍯"],["honeybee","🐝"],["hooray","🙌"],["horse","🐴"],["horse_racing","🏇"],["hospital","🏥"],["hot","🥵"],["hot_pepper","🌶"],["hotdog","🌭"],["hotel","🏨"],["hotsprings","♨️"],["hourglass","⌛"],["hourglass_flowing_sand","⏳"],["house","🏠"],["house_with_garden","🏡"],["houses","🏘"],["hug","🤗"],["hugs","🤗"],["huh","🤨"],["hushed","😯"]],"i":[["ice_cream","🍨"],["ice_hockey","🏒"],["ice_skate","⛸"],["icecream","🍦"],["id","🆔"],["ideograph_advantage","🉐"],["idk","🤷"],["ill","🤒"],["ily","❤️"],["imp","👿"],["inbox_tray","📥"],["incoming_envelope","📨"],["infinity","♾"],["information_source","ℹ️"],["innocent","😇"],["interrobang","⁉️"],["intoxicated","🥴"],["iphone","📱"],["izakaya_lantern","🏮"]],"j":[["jack_o_lantern","🎃"],["japan","🗾"],["japanese_castle","🏯"],["japanese_goblin","👺"],["japanese_ogre","👹"],["jealous","😒"],["jeans","👖"],["jelly","😒"],["jigsaw","🧩"],["joke","😜"],["joy","😂"],["joy_cat","😹"],["joystick","🕹"]],"k":[["kaaba","🕋"],["kangaroo","🦘"],["key","🔑"],["keyboard","⌨"],["keycap_ten","🔟"],["kick_scooter","🛴"],["kimono","👘"],["kiss","💋"],["kissing","😗"],["kissing_cat","😽"],["kissing_closed_eyes","😚"],["kissing_heart","😘"],["kissing_smiling_eyes","😙"],["kiwi_fruit","🥝"],["knockedout","😵"],["koala","🐨"],["koko","🈁"]],"l":[["labcoat","🥼"],["label","🏷"],["lacrosse","🥍"],["large_blue_circle","🔵"],["large_blue_diamond","🔷"],["large_orange_diamond","🔶"],["last_quarter_moon","🌗"],["last_quarter_moon_with_face","🌜"],["later","👋"],["latin_cross","✝"],["laughing","😆"],["leafy_greens","🥬"],["leaves","🍃"],["ledger","📒"],["left_luggage","🛅"],["left_right_arrow","↔️"],["left_speech_bubble","🗨"],["leftwards_arrow_with_hook","↩️"],["leg","🦵"],["legit","👌"],["lemon","🍋"],["leo","♌"],["leopard","🐆"],["level_slider","🎚"],["libra","♎"],["light_rail","🚈"],["link","🔗"],["lion","🦁"],["lips","👄"],["lipstick","💄"],["lizard","🦎"],["llama","🦙"],["lmao","😂"],["lmfao","🤣"],["lobster","🦞"],["lock","🔒"],["lock_with_ink_pen","🔏"],["lol","😂"],["lollipop","🍭"],["looking","👀"],["loop","➿"],["lotion_bottle","🧴"],["loud_sound","🔊"],["loudspeaker","📢"],["love","❤️"],["love_hotel","🏩"],["love_letter","💌"],["love_you","🤟"],["low_brightness","🔅"],["luggage","🧳"],["lying_face","🤥"]],"m":[["m","Ⓜ️"],["mad","😡"],["mag","🔍"],["mag_right","🔎"],["magnet","🧲"],["mahjong","🀄"],["mailbox","📫"],["mailbox_closed","📪"],["mailbox_with_mail","📬"],["mailbox_with_no_mail","📭"],["male_detective","🕵"],["man","👨"],["man_artist","👨🎨"],["man_astronaut","👨🚀"],["man_cartwheeling","🤸♂️"],["man_cook","👨🍳"],["man_dancing","🕺"],["man_elf","🧝♂️"],["man_facepalming","🤦♂️"],["man_factory_worker","👨🏭"],["man_fairy","🧚♂️"],["man_farmer","👨🌾"],["man_firefighter","👨🚒"],["man_genie","🧞♂️"],["man_health_worker","👨⚕️"],["man_in_lotus_position","🧘♂️"],["man_in_steamy_room","🧖♂️"],["man_in_tuxedo","🤵"],["man_judge","👨⚖️"],["man_juggling","🤹♂️"],["man_mechanic","👨🔧"],["man_office_worker","👨💼"],["man_pilot","👨✈️"],["man_playing_handball","🤾♂️"],["man_playing_water_polo","🤽♂️"],["man_scientist","👨🔬"],["man_shrugging","🤷♂️"],["man_singer","👨🎤"],["man_student","👨🎓"],["man_superhero","🦸♂️"],["man_supervillain","🦹♂️"],["man_teacher","👨🏫"],["man_technologist","👨💻"],["man_vampire","🧛♂️"],["man_with_gua_pi_mao","👲"],["man_with_turban","👳"],["man_zombie","🧟♂️"],["mango","🥭"],["mans_shoe","👞"],["mantelpiece_clock","🕰"],["maple_leaf","🍁"],["martial_arts_uniform","🥋"],["mask","😷"],["massage_man","💆♂️"],["massage_woman","💆"],["meat_on_bone","🍖"],["medal_military","🎖"],["medal_sports","🏅"],["mega","📣"],["meh","😐"],["melon","🍈"],["memo","📝"],["men_wrestling","🤼♂️"],["menorah","🕎"],["mens","🚹"],["mermaid","🧜♀️"],["merman","🧜♂️"],["metal","🤘"],["metro","🚇"],["microbe","🦠"],["microphone","🎤"],["microscope","🔬"],["milk_glass","🥛"],["milky_way","🌌"],["mindblown","🤯"],["minibus","🚐"],["minidisc","💽"],["mobile_phone_off","📴"],["money_mouth_face","🤑"],["money_with_wings","💸"],["moneybag","💰"],["monkey","🐒"],["monkey_face","🐵"],["monocle","🧐"],["monorail","🚝"],["moon_cake","🥮"],["morning","☀️"],["mortar_board","🎓"],["mosque","🕌"],["mosquito","🦟"],["motor_boat","🛥"],["motor_scooter","🛵"],["motorcycle","🏍"],["motorway","🛣"],["mount_fuji","🗻"],["mountain","⛰"],["mountain_biking_man","🚵"],["mountain_biking_woman","🚵♀️"],["mountain_cableway","🚠"],["mountain_railway","🚞"],["mountain_snow","🏔"],["mouse","🐭"],["mouse2","🐁"],["movie_camera","🎥"],["moyai","🗿"],["mrs_claus","🤶"],["muah","😘"],["muscle","💪"],["mushroom","🍄"],["musical_keyboard","🎹"],["musical_note","🎵"],["musical_score","🎼"],["mute","🔇"]],"n":[["nah","👎"],["nail_care","💅"],["name_badge","📛"],["nap","😴"],["national_park","🏞"],["nauseated_face","🤢"],["nazar_amulet","🧿"],["necktie","👔"],["negative_squared_cross_mark","❎"],["nerd_face","🤓"],["nervous","😅"],["neutral_face","😐"],["new","🆕"],["new_moon","🌑"],["new_moon_with_face","🌚"],["newspaper","📰"],["newspaper_roll","🗞"],["next_track_button","⏭"],["ng","🆖"],["night_with_stars","🌃"],["nighty","😴"],["nine","9️⃣"],["no_bell","🔕"],["no_bicycles","🚳"],["no_entry","⛔"],["no_entry_sign","🚫"],["no_good_man","🙅♂️"],["no_good_woman","🙅"],["no_mobile_phones","📵"],["no_mouth","😶"],["no_pedestrians","🚷"],["no_smoking","🚭"],["non-potable_water","🚱"],["nope","👎"],["noped","👎"],["nose","👃"],["notebook","📓"],["notebook_with_decorative_cover","📔"],["noted","📝"],["notes","🎶"],["nut_and_bolt","🔩"],["nvm","🤷"]],"o":[["o","⭕"],["o2","🅾️"],["ocean","🌊"],["octopus","🐙"],["oden","🍢"],["office","🏢"],["oil_drum","🛢"],["ok","🆗"],["ok_hand","👌"],["ok_man","🙆♂️"],["ok_woman","🙆"],["old_key","🗝"],["older_adult","🧓"],["older_man","👴"],["older_woman","👵"],["om","🕉"],["omg","😱"],["on","🔛"],["oncoming_automobile","🚘"],["oncoming_bus","🚍"],["oncoming_police_car","🚔"],["oncoming_taxi","🚖"],["one","1️⃣"],["oof","😬"],["oops","😬"],["open_book","📖"],["open_file_folder","📂"],["open_hands","👐"],["open_mouth","😮"],["open_umbrella","☂"],["ophiuchus","⛎"],["orange_book","📙"],["orange_heart","🧡"],["orthodox_cross","☦"],["ouch","🤕"],["outbox_tray","📤"],["owl","🦉"],["ox","🐂"]],"p":[["package","📦"],["page_facing_up","📄"],["page_with_curl","📃"],["pager","📟"],["paintbrush","🖌"],["palm_tree","🌴"],["palms_up","🤲"],["pancakes","🥞"],["panda_face","🐼"],["paperclip","📎"],["paperclips","🖇"],["parasol_on_ground","⛱"],["parking","🅿️"],["parrot","🦜"],["part_alternation_mark","〽️"],["partly_sunny","⛅"],["party","🥳"],["partying","🥳"],["passenger_ship","🛳"],["passport_control","🛂"],["pause_button","⏸"],["paw_prints","🐾"],["peace","✌"],["peace_symbol","☮"],["peach","🍑"],["peacock","🦚"],["peanuts","🥜"],["pear","🍐"],["peep","👀"],["pen","🖊"],["pencil2","✏️"],["penguin","🐧"],["pensive","😔"],["performing_arts","🎭"],["persevere","😣"],["person_fencing","🤺"],["petri_dish","🧫"],["phone","☎️"],["pick","⛏"],["pie","🥧"],["pig","🐷"],["pig2","🐖"],["pig_nose","🐽"],["pill","💊"],["pineapple","🍍"],["ping_pong","🏓"],["pirate_flag","🏴☠️"],["pisces","♓"],["pissed","🤬"],["pizza","🍕"],["place_of_worship","🛐"],["plate_with_cutlery","🍽"],["play_or_pause_button","⏯"],["pleading","🥺"],["pls","🙏"],["plz","🙏"],["point_down","👇"],["point_left","👈"],["point_right","👉"],["point_up","☝"],["point_up_2","👆"],["police_car","🚓"],["policeman","👮"],["policewoman","👮♀️"],["poodle","🐩"],["poop","💩"],["popcorn","🍿"],["post_office","🏣"],["postal_horn","📯"],["postbox","📮"],["potable_water","🚰"],["potato","🥔"],["pouch","👝"],["poultry_leg","🍗"],["pound","💷"],["pouting_cat","😾"],["pouting_man","🙎♂️"],["pouting_woman","🙎"],["praise","🙌"],["pray","🙏"],["prayer_beads","📿"],["pregnant_woman","🤰"],["pretzel","🥨"],["previous_track_button","⏮"],["prince","🤴"],["princess","👸"],["printer","🖨"],["puke","🤮"],["punch","👊"],["purple_heart","💜"],["purse","👛"],["pushpin","📌"],["put_litter_in_its_place","🚮"]],"q":[["question","❓"]],"r":[["rabbit","🐰"],["rabbit2","🐇"],["raccoon","🦝"],["racehorse","🐎"],["racing_car","🏎"],["rad","😎"],["radio","📻"],["radio_button","🔘"],["radioactive","☢"],["rage","😡"],["railway_car","🚃"],["railway_track","🛤"],["rainbow","🌈"],["rainbow_flag","🏳️🌈"],["raised_back_of_hand","🤚"],["raised_eyebrow","🤨"],["raised_hand","✋"],["raised_hand_with_fingers_splayed","🖐"],["raised_hands","🙌"],["raising_hand_man","🙋♂️"],["raising_hand_woman","🙋"],["ram","🐏"],["ramen","🍜"],["rat","🐀"],["receipt","🧾"],["record_button","⏺"],["recycle","♻️"],["red_car","🚗"],["red_circle","🔴"],["red_envelope","🧧"],["registered","®️"],["relaxed","☺️"],["relieved","😌"],["reminder_ribbon","🎗"],["repeat","🔁"],["repeat_one","🔂"],["rescue_worker_helmet","⛑"],["restroom","🚻"],["revolving_hearts","💞"],["rewind","⏪"],["rhinoceros","🦏"],["ribbon","🎀"],["rice","🍚"],["rice_ball","🍙"],["rice_cracker","🍘"],["rice_scene","🎑"],["right_anger_bubble","🗯"],["ring","💍"],["rip","⚰️"],["robot","🤖"],["rocket","🚀"],["rockon","🤘"],["rofl","🤣"],["roll_eyes","🙄"],["roller_coaster","🎢"],["rooster","🐓"],["rose","🌹"],["rosette","🏵"],["rotating_light","🚨"],["round_pushpin","📍"],["rowing_man","🚣"],["rowing_woman","🚣♀️"],["rugby_football","🏉"],["running_man","🏃"],["running_shirt_with_sash","🎽"],["running_woman","🏃♀️"]],"s":[["sa","🈂️"],["safety_pin","🧷"],["sagittarius","♐"],["sailboat","⛵"],["sake","🍶"],["salt","🧂"],["sandal","👡"],["sandwich","🥪"],["santa","🎅"],["satellite","📡"],["sauropod","🦕"],["saxophone","🎷"],["scared","😨"],["scarf","🧣"],["school","🏫"],["school_satchel","🎒"],["scissors","✂️"],["scorpion","🦂"],["scorpius","♏"],["scotland","🏴"],["scream","😱"],["scream_cat","🙀"],["scroll","📜"],["seat","💺"],["secret","㊙️"],["see_no_evil","🙈"],["seedling","🌱"],["selfie","🤳"],["seven","7️⃣"],["shallow_pan_of_food","🥘"],["shamrock","☘"],["shark","🦈"],["shaved_ice","🍧"],["sheep","🐑"],["shell","🐚"],["shh","🤫"],["shield","🛡"],["shinto_shrine","⛩"],["ship","🚢"],["shocked","😱"],["shopping","🛍"],["shopping_cart","🛒"],["shower","🚿"],["shrimp","🦐"],["shrug","🤷"],["shushing","🤫"],["shut","🤐"],["sick","🤒"],["signal_strength","📶"],["silly","😜"],["six","6️⃣"],["six_pointed_star","🔯"],["skateboard","🛹"],["ski","🎿"],["skier","⛷"],["skull","💀"],["skull_and_crossbones","☠"],["slay","😎"],["sled","🛷"],["sleep","💤"],["sleeping","😴"],["sleeping_bed","🛌"],["sleepy","😪"],["slightly_frowning_face","🙁"],["slightly_smiling_face","🙂"],["slot_machine","🎰"],["small_airplane","🛩"],["small_blue_diamond","🔹"],["small_orange_diamond","🔸"],["small_red_triangle","🔺"],["small_red_triangle_down","🔻"],["smh","🤦"],["smile","😄"],["smile_cat","😸"],["smiley","😃"],["smiley_cat","😺"],["smiling_face_with_three_hearts","🥰"],["smiling_imp","😈"],["smirk","😏"],["smirk_cat","😼"],["smoking","🚬"],["snail","🐌"],["snake","🐍"],["sneezing_face","🤧"],["snooze","💤"],["snowboarder","🏂"],["snowflake","❄️"],["snowman","⛄"],["snowman_with_snow","☃"],["soap","🧼"],["sob","😭"],["soccer","⚽"],["socks","🧦"],["softball","🥎"],["soon","🔜"],["sorceress","🧙♀️"],["sos","🆘"],["sound","🔉"],["space_invader","👾"],["spades","♠️"],["spaghetti","🍝"],["sparkle","❇️"],["sparkler","🎇"],["sparkles","✨"],["sparkling_heart","💖"],["speak_no_evil","🙊"],["speaker","🔈"],["speaking_head","🗣"],["speech_balloon","💬"],["speechless","😶"],["speedboat","🚤"],["spider","🕷"],["spider_web","🕸"],["spiral_calendar","🗓"],["spiral_notepad","🗒"],["sponge","🧽"],["spoon","🥄"],["squid","🦑"],["stadium","🏟"],["star","⭐"],["star2","🌟"],["star_and_crescent","☪"],["star_of_david","✡"],["star_struck","🤩"],["stars","🌠"],["station","🚉"],["statue_of_liberty","🗽"],["steak","🥩"],["steam_locomotive","🚂"],["stew","🍲"],["stop_button","⏹"],["stop_sign","🛑"],["stopwatch","⏱"],["straight_ruler","📏"],["strawberry","🍓"],["stuck_out_tongue","😛"],["stuck_out_tongue_closed_eyes","😝"],["stuck_out_tongue_winking_eye","😜"],["studio_microphone","🎙"],["stuffed_flatbread","🥙"],["sun_behind_large_cloud","🌥"],["sun_behind_rain_cloud","🌦"],["sun_behind_small_cloud","🌤"],["sun_with_face","🌞"],["sunflower","🌻"],["sunglasses","😎"],["sunny","☀️"],["sunrise","🌅"],["sunrise_over_mountains","🌄"],["surfing_man","🏄"],["surfing_woman","🏄♀️"],["sus","🤨"],["sushi","🍣"],["suspension_railway","🚟"],["swag","😎"],["swan","🦢"],["sweat","😓"],["sweat_drops","💦"],["sweat_smile","😅"],["sweet_potato","🍠"],["swimming_man","🏊"],["swimming_woman","🏊♀️"],["symbols","🔣"],["symbols_over_mouth","🤬"],["synagogue","🕍"],["syringe","💉"]],"t":[["t-rex","🦖"],["taco","🌮"],["tada","🎉"],["takeout_box","🥡"],["tanabata_tree","🎋"],["tangerine","🍊"],["tasty","😋"],["taurus","♉"],["taxi","🚕"],["tea","🍵"],["teddy_bear","🧸"],["telephone_receiver","📞"],["telescope","🔭"],["tennis","🎾"],["tent","⛺"],["test_tube","🧪"],["text","💬"],["thanks","🙏"],["thermometer","🌡"],["think","💭"],["thinking","🤔"],["thought_balloon","💭"],["thread","🧵"],["three","3️⃣"],["thumbsdown","👎"],["thumbsup","👍"],["thx","🙏"],["ticket","🎫"],["tickets","🎟"],["tiger","🐯"],["tiger2","🐅"],["timer_clock","⏲"],["tipping_hand_man","💁♂️"],["tipping_hand_woman","💁"],["tipsy","🥴"],["tired","😴"],["tired_face","😫"],["tm","™️"],["toilet","🚽"],["toilet_paper","🧻"],["tokyo_tower","🗼"],["tomato","🍅"],["tongue","👅"],["toolbox","🧰"],["tooth","🦷"],["top","🔝"],["tophat","🎩"],["tornado","🌪"],["trackball","🖲"],["tractor","🚜"],["traffic_light","🚥"],["train","🚋"],["train2","🚆"],["tram","🚊"],["triangular_flag_on_post","🚩"],["triangular_ruler","📐"],["trident","🔱"],["triumph","😤"],["trolleybus","🚎"],["trophy","🏆"],["tropical_drink","🍹"],["tropical_fish","🐠"],["truck","🚚"],["trumpet","🎺"],["tshirt","👕"],["ttyl","👋"],["tulip","🌷"],["tumbler_glass","🥃"],["turkey","🦃"],["turtle","🐢"],["tv","📺"],["twisted_rightwards_arrows","🔀"],["two","2️⃣"],["two_hearts","💕"],["two_men_holding_hands","👬"],["two_women_holding_hands","👭"],["ty","🙏"],["typing","💬"]],"u":[["u5272","🈹"],["u5408","🈴"],["u55b6","🈺"],["u6307","🈯"],["u6708","🈷️"],["u6709","🈶"],["u6e80","🈵"],["u7121","🈚"],["u7533","🈸"],["u7981","🈲"],["u7a7a","🈳"],["ugh","🙄"],["umbrella","☔"],["unamused","😒"],["underage","🔞"],["unicorn","🦄"],["unlock","🔓"],["up","🆙"],["upside_down_face","🙃"]],"v":[["v","✌"],["vertical_traffic_light","🚦"],["vhs","📼"],["vibration_mode","📳"],["video_camera","📹"],["video_game","🎮"],["violin","🎻"],["virgo","♍"],["volcano","🌋"],["volleyball","🏐"],["vomiting","🤮"],["vs","🆚"],["vulcan_salute","🖖"]],"w":[["wales","🏴"],["walking_man","🚶"],["walking_woman","🚶♀️"],["waning_crescent_moon","🌘"],["waning_gibbous_moon","🌖"],["warning","⚠️"],["wastebasket","🗑"],["watch","⌚"],["water_buffalo","🐃"],["watermelon","🍉"],["wave","👋"],["wavy_dash","〰️"],["waxing_crescent_moon","🌒"],["waxing_gibbous_moon","🌔"],["wc","🚾"],["weary","😩"],["wedding","💒"],["weight_lifting_man","🏋"],["weight_lifting_woman","🏋️♀️"],["weirdo","😜"],["whale","🐳"],["whale2","🐋"],["whatever","🙄"],["wheel_of_dharma","☸"],["wheelchair","♿"],["white_check_mark","✅"],["white_circle","⚪"],["white_flag","🏳"],["white_flower","💮"],["white_large_square","⬜"],["white_medium_small_square","◽"],["white_medium_square","◻️"],["white_small_square","▫️"],["white_square_button","🔳"],["whoa","😯"],["wilted_flower","🥀"],["wind_chime","🎐"],["wind_face","🌬"],["wine_glass","🍷"],["wink","😉"],["wizard","🧙♂️"],["woah","😱"],["wolf","🐺"],["woman","👩"],["woman_artist","👩🎨"],["woman_astronaut","👩🚀"],["woman_cartwheeling","🤸♀️"],["woman_cook","👩🍳"],["woman_elf","🧝♀️"],["woman_facepalming","🤦♀️"],["woman_factory_worker","👩🏭"],["woman_fairy","🧚♀️"],["woman_farmer","👩🌾"],["woman_firefighter","👩🚒"],["woman_genie","🧞♀️"],["woman_health_worker","👩⚕️"],["woman_in_lotus_position","🧘♀️"],["woman_in_steamy_room","🧖♀️"],["woman_judge","👩⚖️"],["woman_juggling","🤹♀️"],["woman_mechanic","👩🔧"],["woman_office_worker","👩💼"],["woman_pilot","👩✈️"],["woman_playing_handball","🤾♀️"],["woman_playing_water_polo","🤽♀️"],["woman_scientist","👩🔬"],["woman_shrugging","🤷"],["woman_singer","👩🎤"],["woman_student","👩🎓"],["woman_superhero","🦸♀️"],["woman_supervillain","🦹♀️"],["woman_teacher","👩🏫"],["woman_technologist","👩💻"],["woman_vampire","🧛♀️"],["woman_with_headscarf","🧕"],["woman_with_turban","👳♀️"],["woman_zombie","🧟♀️"],["womans_clothes","👚"],["womans_hat","👒"],["women_wrestling","🤼♀️"],["womens","🚺"],["woozy","🥴"],["world_map","🗺"],["worried","😟"],["wrench","🔧"],["writing_hand","✍"],["wtf","🤬"]],"x":[["x","❌"],["xo","💋"],["xoxo","💋"]],"y":[["yarn","🧶"],["yawn","😪"],["yay","🎉"],["yellow_heart","💛"],["yen","💴"],["yep","👍"],["yin_yang","☯"],["yo","👋"],["yum","😋"],["yummy","😋"],["yup","👍"]],"z":[["zany","🤪"],["zap","⚡"],["zebra","🦓"],["zero","0️⃣"],["zipper_mouth_face","🤐"],["zzz","💤"]]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Component } from "../index";
|
|
2
|
+
let composerShape = "box";
|
|
3
|
+
|
|
4
|
+
/** Set the process-wide editor gap layout. */
|
|
5
|
+
export function setEditorGapComposerShape(shape: string): void {
|
|
6
|
+
composerShape = shape;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const GAP: readonly string[] = [""];
|
|
10
|
+
const FLUSH: readonly string[] = [];
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* One-line top margin between the working/status HUD row and the editor.
|
|
14
|
+
* The band composer's status band is designed to sit flush under the working
|
|
15
|
+
* row, so the gap collapses there — but only while that row actually rendered
|
|
16
|
+
* content (the loader and idle title bring their own leading blank). An empty
|
|
17
|
+
* status row keeps the gap so the band never sits flush against the
|
|
18
|
+
* transcript. Shape and row state are read at render time, so runtime changes
|
|
19
|
+
* apply immediately.
|
|
20
|
+
*/
|
|
21
|
+
export class EditorTopGap implements Component {
|
|
22
|
+
/** @param statusRowOccupied Whether the status/working row directly above rendered lines this frame. */
|
|
23
|
+
constructor(readonly statusRowOccupied: () => boolean) {}
|
|
24
|
+
|
|
25
|
+
render(_width: number): readonly string[] {
|
|
26
|
+
return composerShape === "band" && this.statusRowOccupied() ? FLUSH : GAP;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import type { AutocompleteItem } from "../index";
|
|
2
|
+
import buckets from "./data/emojis.json" with { type: "json" };
|
|
3
|
+
|
|
4
|
+
// Bucket layout: `{ "<first-char>": [["<name>", "<emoji>"], ...] }`, with each
|
|
5
|
+
// bucket pre-sorted by name. Built offline by scripts/build-emojis.py
|
|
6
|
+
// so the runtime never has to allocate sorted arrays or filter flag sequences.
|
|
7
|
+
type Entry = readonly [name: string, char: string];
|
|
8
|
+
const BUCKETS = buckets as unknown as Readonly<Record<string, readonly Entry[]>>;
|
|
9
|
+
|
|
10
|
+
// Western text emoticons (`:D`, `;)`, `<3`, …) sit outside the `:name:`
|
|
11
|
+
// shortcode grammar, so they live in a hand-maintained table here rather than
|
|
12
|
+
// in `emojis.json`. Sorted longest-first so `:-)` wins over `:)` when both
|
|
13
|
+
// would match.
|
|
14
|
+
const EMOTICONS: ReadonlyArray<readonly [pattern: string, char: string]> = [
|
|
15
|
+
[":'-(", "😢"],
|
|
16
|
+
[">:-(", "😠"],
|
|
17
|
+
[":-)", "🙂"],
|
|
18
|
+
[":-(", "🙁"],
|
|
19
|
+
[":-D", "😃"],
|
|
20
|
+
[":-P", "😛"],
|
|
21
|
+
[":-p", "😛"],
|
|
22
|
+
[":-O", "😮"],
|
|
23
|
+
[":-o", "😮"],
|
|
24
|
+
[":-|", "😐"],
|
|
25
|
+
[":-/", "😕"],
|
|
26
|
+
[":-\\", "😕"],
|
|
27
|
+
[":-*", "😘"],
|
|
28
|
+
[";-)", "😉"],
|
|
29
|
+
[";-P", "😜"],
|
|
30
|
+
[":')", "🥲"],
|
|
31
|
+
[":'D", "😂"],
|
|
32
|
+
[":'(", "😢"],
|
|
33
|
+
["</3", "💔"],
|
|
34
|
+
[">:(", "😠"],
|
|
35
|
+
["B-)", "😎"],
|
|
36
|
+
["8-)", "😎"],
|
|
37
|
+
["o.O", "😳"],
|
|
38
|
+
["O.o", "😳"],
|
|
39
|
+
[":)", "🙂"],
|
|
40
|
+
[":(", "🙁"],
|
|
41
|
+
[":D", "😃"],
|
|
42
|
+
[":P", "😛"],
|
|
43
|
+
[":p", "😛"],
|
|
44
|
+
[":O", "😮"],
|
|
45
|
+
[":o", "😮"],
|
|
46
|
+
[":|", "😐"],
|
|
47
|
+
[":/", "😕"],
|
|
48
|
+
[":\\", "😕"],
|
|
49
|
+
[":*", "😘"],
|
|
50
|
+
[";)", "😉"],
|
|
51
|
+
[":3", "😺"],
|
|
52
|
+
["<3", "❤️"],
|
|
53
|
+
["xD", "😆"],
|
|
54
|
+
["XD", "😆"],
|
|
55
|
+
["B)", "😎"],
|
|
56
|
+
["8)", "😎"],
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
const MAX_SUGGESTIONS = 12;
|
|
60
|
+
|
|
61
|
+
function lowerBound(arr: readonly Entry[], target: string): number {
|
|
62
|
+
let lo = 0;
|
|
63
|
+
let hi = arr.length;
|
|
64
|
+
while (lo < hi) {
|
|
65
|
+
const mid = (lo + hi) >>> 1;
|
|
66
|
+
if (arr[mid]![0] < target) lo = mid + 1;
|
|
67
|
+
else hi = mid;
|
|
68
|
+
}
|
|
69
|
+
return lo;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function lookupExact(name: string): string | undefined {
|
|
73
|
+
const bucket = BUCKETS[name[0] ?? ""];
|
|
74
|
+
if (!bucket) return undefined;
|
|
75
|
+
const i = lowerBound(bucket, name);
|
|
76
|
+
const hit = bucket[i];
|
|
77
|
+
return hit && hit[0] === name ? hit[1] : undefined;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Shortcode-name characters mirror the GitHub/gemoji grammar: `a-z`, `A-Z`,
|
|
81
|
+
// `0-9`, `_`, `+`, `-`.
|
|
82
|
+
function isNameCharCode(c: number): boolean {
|
|
83
|
+
return (
|
|
84
|
+
(c >= 0x61 && c <= 0x7a) ||
|
|
85
|
+
(c >= 0x41 && c <= 0x5a) ||
|
|
86
|
+
(c >= 0x30 && c <= 0x39) ||
|
|
87
|
+
c === 0x5f ||
|
|
88
|
+
c === 0x2b ||
|
|
89
|
+
c === 0x2d
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Token boundary to the left of an opening `:`: start-of-string or one of
|
|
94
|
+
// the punctuation characters we treat as a "fresh token" marker (whitespace,
|
|
95
|
+
// opening brackets, `>` for quoted blocks).
|
|
96
|
+
function hasLeftBoundary(text: string, colonIdx: number): boolean {
|
|
97
|
+
if (colonIdx === 0) return true;
|
|
98
|
+
const c = text.charCodeAt(colonIdx - 1);
|
|
99
|
+
return (
|
|
100
|
+
c === 0x20 || // space
|
|
101
|
+
c === 0x09 || // tab
|
|
102
|
+
c === 0x0a || // \n
|
|
103
|
+
c === 0x0d || // \r
|
|
104
|
+
c === 0x28 || // (
|
|
105
|
+
c === 0x5b || // [
|
|
106
|
+
c === 0x7b || // {
|
|
107
|
+
c === 0x3e // >
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
interface EmojiTrigger {
|
|
112
|
+
/** Full token including the leading `:` (e.g. `:joy`). */
|
|
113
|
+
prefix: string;
|
|
114
|
+
/** Lowercased name portion (e.g. `joy`). May be empty when only `:` has been typed. */
|
|
115
|
+
query: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Walk back over name characters then verify an opening `:` with a left
|
|
119
|
+
// boundary. Cheaper than a regex on every keystroke and avoids allocating
|
|
120
|
+
// match arrays.
|
|
121
|
+
function extractTrigger(text: string): EmojiTrigger | null {
|
|
122
|
+
let i = text.length;
|
|
123
|
+
while (i > 0 && isNameCharCode(text.charCodeAt(i - 1))) i--;
|
|
124
|
+
if (i === 0 || text.charCodeAt(i - 1) !== 0x3a) return null;
|
|
125
|
+
const colonIdx = i - 1;
|
|
126
|
+
if (!hasLeftBoundary(text, colonIdx)) return null;
|
|
127
|
+
const name = text.slice(i);
|
|
128
|
+
return { prefix: `:${name}`, query: name.toLowerCase() };
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function getEmojiSuggestions(textBeforeCursor: string): { items: AutocompleteItem[]; prefix: string } | null {
|
|
132
|
+
const trigger = extractTrigger(textBeforeCursor);
|
|
133
|
+
if (!trigger) return null;
|
|
134
|
+
// Wait until the user has typed at least one letter so a bare `:` in prose
|
|
135
|
+
// (e.g. "note:") does not spam the popup.
|
|
136
|
+
if (trigger.query.length === 0) return null;
|
|
137
|
+
|
|
138
|
+
const items: AutocompleteItem[] = [];
|
|
139
|
+
|
|
140
|
+
// Surface emoticon literals (`:D`, `:-)`, …) whose pattern starts with
|
|
141
|
+
// `:<query>` (case-insensitive). These come first so the user sees the
|
|
142
|
+
// emoticon they're literally typing at the top of the popup.
|
|
143
|
+
const wanted = `:${trigger.query}`;
|
|
144
|
+
for (const [pattern, char] of EMOTICONS) {
|
|
145
|
+
if (items.length >= MAX_SUGGESTIONS) break;
|
|
146
|
+
if (pattern.length < wanted.length) continue;
|
|
147
|
+
if (pattern.toLowerCase().slice(0, wanted.length) !== wanted) continue;
|
|
148
|
+
items.push({ value: char, label: `${char} ${pattern}` });
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const bucket = BUCKETS[trigger.query[0]!];
|
|
152
|
+
if (bucket) {
|
|
153
|
+
for (let i = lowerBound(bucket, trigger.query); i < bucket.length && items.length < MAX_SUGGESTIONS; i++) {
|
|
154
|
+
const [name, char] = bucket[i]!;
|
|
155
|
+
if (!name.startsWith(trigger.query)) break;
|
|
156
|
+
items.push({
|
|
157
|
+
value: char,
|
|
158
|
+
label: `${char} :${name}:`,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (items.length === 0) return null;
|
|
164
|
+
return { items, prefix: trigger.prefix };
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function applyEmojiCompletion(
|
|
168
|
+
lines: string[],
|
|
169
|
+
cursorLine: number,
|
|
170
|
+
cursorCol: number,
|
|
171
|
+
item: AutocompleteItem,
|
|
172
|
+
prefix: string,
|
|
173
|
+
): { lines: string[]; cursorLine: number; cursorCol: number } {
|
|
174
|
+
const currentLine = lines[cursorLine] ?? "";
|
|
175
|
+
const before = currentLine.slice(0, cursorCol - prefix.length);
|
|
176
|
+
const after = currentLine.slice(cursorCol);
|
|
177
|
+
const newLines = [...lines];
|
|
178
|
+
newLines[cursorLine] = before + item.value + after;
|
|
179
|
+
return {
|
|
180
|
+
lines: newLines,
|
|
181
|
+
cursorLine,
|
|
182
|
+
cursorCol: before.length + item.value.length,
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function tryShortcodeInlineReplace(textBeforeCursor: string): { replaceLen: number; insert: string } | null {
|
|
187
|
+
const len = textBeforeCursor.length;
|
|
188
|
+
// Cheap early-out: shortcode replace only fires on a trailing `:`.
|
|
189
|
+
if (len === 0 || textBeforeCursor.charCodeAt(len - 1) !== 0x3a) return null;
|
|
190
|
+
|
|
191
|
+
// Walk back over the candidate name, then require an opening `:` with a
|
|
192
|
+
// left boundary.
|
|
193
|
+
const closeIdx = len - 1;
|
|
194
|
+
let nameStart = closeIdx;
|
|
195
|
+
while (nameStart > 0 && isNameCharCode(textBeforeCursor.charCodeAt(nameStart - 1))) nameStart--;
|
|
196
|
+
if (nameStart === closeIdx) return null; // empty name (`::`)
|
|
197
|
+
if (nameStart === 0 || textBeforeCursor.charCodeAt(nameStart - 1) !== 0x3a) return null;
|
|
198
|
+
const openIdx = nameStart - 1;
|
|
199
|
+
if (!hasLeftBoundary(textBeforeCursor, openIdx)) return null;
|
|
200
|
+
|
|
201
|
+
const name = textBeforeCursor.slice(nameStart, closeIdx).toLowerCase();
|
|
202
|
+
const char = lookupExact(name);
|
|
203
|
+
if (!char) return null;
|
|
204
|
+
// Replace `:name:` (name + 2 colons) with the emoji character.
|
|
205
|
+
return { replaceLen: name.length + 2, insert: char };
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// A trailing delimiter (space/tab/newline) confirms the user is done with the
|
|
209
|
+
// token — that way typing `:PATH` doesn't turn into `😛ATH` halfway through.
|
|
210
|
+
function isEmoticonTerminator(c: number): boolean {
|
|
211
|
+
return c === 0x20 || c === 0x09 || c === 0x0a || c === 0x0d;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Western text emoticons fire only once a terminator follows the pattern
|
|
215
|
+
// (e.g. typing space after `;)` rewrites `;) ` to `😉 `). The terminator is
|
|
216
|
+
// preserved in the replacement so the user keeps typing without losing it.
|
|
217
|
+
// EMOTICONS is sorted longest-first so `:-) ` wins over `:) `.
|
|
218
|
+
function tryEmoticonInlineReplace(textBeforeCursor: string): { replaceLen: number; insert: string } | null {
|
|
219
|
+
const len = textBeforeCursor.length;
|
|
220
|
+
if (len < 2) return null;
|
|
221
|
+
const terminator = textBeforeCursor.charCodeAt(len - 1);
|
|
222
|
+
if (!isEmoticonTerminator(terminator)) return null;
|
|
223
|
+
const term = textBeforeCursor[len - 1]!;
|
|
224
|
+
const tail = len - 1;
|
|
225
|
+
for (const [pattern, char] of EMOTICONS) {
|
|
226
|
+
const plen = pattern.length;
|
|
227
|
+
if (tail < plen) continue;
|
|
228
|
+
const start = tail - plen;
|
|
229
|
+
let match = true;
|
|
230
|
+
for (let j = 0; j < plen; j++) {
|
|
231
|
+
if (textBeforeCursor.charCodeAt(start + j) !== pattern.charCodeAt(j)) {
|
|
232
|
+
match = false;
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
if (!match) continue;
|
|
237
|
+
// Same left-boundary rule as shortcodes: emoticons embedded in
|
|
238
|
+
// identifiers / URLs / code stay untouched.
|
|
239
|
+
if (start > 0 && !hasLeftBoundary(textBeforeCursor, start)) continue;
|
|
240
|
+
return { replaceLen: plen + 1, insert: char + term };
|
|
241
|
+
}
|
|
242
|
+
return null;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export function tryEmojiInlineReplace(textBeforeCursor: string): { replaceLen: number; insert: string } | null {
|
|
246
|
+
return tryShortcodeInlineReplace(textBeforeCursor) ?? tryEmoticonInlineReplace(textBeforeCursor);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export function isEmojiPrefix(prefix: string): boolean {
|
|
250
|
+
return prefix.startsWith(":");
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// Submit-time expansion: scan a whole message for emoticons sitting at token
|
|
254
|
+
// boundaries (preceded by a left boundary, followed by whitespace or EOS) and
|
|
255
|
+
// rewrite them. Catches the case where the user pressed Enter without typing a
|
|
256
|
+
// trailing space after the emoticon. EMOTICONS sorted longest-first means the
|
|
257
|
+
// first `startsWith` hit is always the maximal match.
|
|
258
|
+
export function expandEmoticons(text: string): string {
|
|
259
|
+
if (text.length < 2) return text;
|
|
260
|
+
let out = "";
|
|
261
|
+
let cursor = 0;
|
|
262
|
+
let i = 0;
|
|
263
|
+
while (i < text.length) {
|
|
264
|
+
if (i === 0 || hasLeftBoundary(text, i)) {
|
|
265
|
+
let matched = false;
|
|
266
|
+
for (const [pattern, char] of EMOTICONS) {
|
|
267
|
+
if (!text.startsWith(pattern, i)) continue;
|
|
268
|
+
const end = i + pattern.length;
|
|
269
|
+
if (end !== text.length) {
|
|
270
|
+
const next = text.charCodeAt(end);
|
|
271
|
+
if (!isEmoticonTerminator(next)) continue;
|
|
272
|
+
}
|
|
273
|
+
out += text.slice(cursor, i) + char;
|
|
274
|
+
cursor = end;
|
|
275
|
+
i = end;
|
|
276
|
+
matched = true;
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
if (matched) continue;
|
|
280
|
+
}
|
|
281
|
+
i++;
|
|
282
|
+
}
|
|
283
|
+
if (cursor === 0) return text;
|
|
284
|
+
return out + text.slice(cursor);
|
|
285
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Autocomplete for GitHub issue/PR references typed as `#<number>` (e.g. `#3164`).
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the `@` file-reference and `scheme://` internal-url conventions: the
|
|
5
|
+
* token is rewritten to an internal URL (`pr://3164` or `issue://3164`) plus a
|
|
6
|
+
* trailing space, and the existing tool-mediated pipeline (the `read` tool →
|
|
7
|
+
* InternalUrlRouter → `gh`) resolves it from the session cwd's git remote.
|
|
8
|
+
*
|
|
9
|
+
* No network at suggestion time — candidates are generated locally. GitHub
|
|
10
|
+
* shares the issue/PR number space and there is no cheap way to tell which a
|
|
11
|
+
* given number is while typing, so both a PR and an Issue candidate are offered
|
|
12
|
+
* by default. Naming the type first (`pr #3164` / `issue #3164`) constrains the
|
|
13
|
+
* candidates to that kind. Anything that is not a standalone `#<number>` token
|
|
14
|
+
* keeps falling through to the existing prompt-action menu.
|
|
15
|
+
*/
|
|
16
|
+
import type { AutocompleteItem } from "../index";
|
|
17
|
+
|
|
18
|
+
/** Candidate kinds, in default display order. */
|
|
19
|
+
const GITHUB_REF_KINDS = [
|
|
20
|
+
{ qualifier: "pr", scheme: "pr", label: "PR", description: "GitHub pull request" },
|
|
21
|
+
{ qualifier: "issue", scheme: "issue", label: "Issue", description: "GitHub issue" },
|
|
22
|
+
] as const;
|
|
23
|
+
|
|
24
|
+
export interface GithubRefContext {
|
|
25
|
+
/** Text to replace on accept: `#3164`, or `pr #3164` when a qualifier precedes it. */
|
|
26
|
+
prefix: string;
|
|
27
|
+
/** Type the user named (`pr`/`pull` → `pr`, `issue` → `issue`), or null to offer both. */
|
|
28
|
+
qualifier: "pr" | "issue" | null;
|
|
29
|
+
/** The numeric reference, e.g. `3164`. */
|
|
30
|
+
number: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* A standalone `#<positive-number>` token ending at the cursor. The `#` must be
|
|
35
|
+
* preceded by a token boundary (start, whitespace, or an opening quote/paren/`<`/`=`,
|
|
36
|
+
* matching the internal-URL boundary set) so embedded hashes like `owner/repo#N`,
|
|
37
|
+
* `foo#N`, `C#12`, or a URL fragment do not match. An optional `pr`/`pull`/`issue`
|
|
38
|
+
* qualifier word (case-insensitive) immediately before the `#` constrains the kind.
|
|
39
|
+
*/
|
|
40
|
+
const GITHUB_REF_TOKEN_RE = /(?:^|[\s"'`(<=])(?:(pr|pull|issue)(\s+))?#([1-9]\d*)$/i;
|
|
41
|
+
|
|
42
|
+
export function getGithubRefContext(textBeforeCursor: string): GithubRefContext | null {
|
|
43
|
+
const match = textBeforeCursor.match(GITHUB_REF_TOKEN_RE);
|
|
44
|
+
if (!match) return null;
|
|
45
|
+
const qualifierWord = match[1];
|
|
46
|
+
const whitespace = match[2] ?? "";
|
|
47
|
+
const number = match[3] ?? "";
|
|
48
|
+
return {
|
|
49
|
+
prefix: qualifierWord ? `${qualifierWord}${whitespace}#${number}` : `#${number}`,
|
|
50
|
+
qualifier: !qualifierWord ? null : qualifierWord.toLowerCase() === "issue" ? "issue" : "pr",
|
|
51
|
+
number,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Suggestions for a `#<number>` token. Both kinds are offered unless the user
|
|
57
|
+
* named a type (`pr #3164` / `issue #3164`), in which case only that kind is
|
|
58
|
+
* offered. Returns `null` when the text before the cursor is not a standalone
|
|
59
|
+
* `#<number>` token.
|
|
60
|
+
*/
|
|
61
|
+
export function getGithubRefSuggestions(
|
|
62
|
+
textBeforeCursor: string,
|
|
63
|
+
): { items: AutocompleteItem[]; prefix: string } | null {
|
|
64
|
+
const context = getGithubRefContext(textBeforeCursor);
|
|
65
|
+
if (!context) return null;
|
|
66
|
+
const kinds = context.qualifier
|
|
67
|
+
? GITHUB_REF_KINDS.filter(kind => kind.qualifier === context.qualifier)
|
|
68
|
+
: GITHUB_REF_KINDS;
|
|
69
|
+
const items: AutocompleteItem[] = kinds.map(kind => ({
|
|
70
|
+
value: `${kind.scheme}://${context.number}`,
|
|
71
|
+
label: `${kind.label} #${context.number}`,
|
|
72
|
+
description: kind.description,
|
|
73
|
+
}));
|
|
74
|
+
return { items, prefix: context.prefix };
|
|
75
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { maskNonProse } from "./markdown-prose";
|
|
2
|
+
import { detectColorMode, FG_RESET } from "../theme/color";
|
|
3
|
+
import { theme } from "../theme/theme";
|
|
4
|
+
|
|
5
|
+
/** A gradient keyword highlighter.
|
|
6
|
+
*
|
|
7
|
+
* - `resetTo` is the SGR foreground sequence re-emitted after each painted
|
|
8
|
+
* keyword so surrounding text keeps its color; it defaults to a plain
|
|
9
|
+
* foreground reset (editor / default-colored text).
|
|
10
|
+
* - `phase` ∈ [0, 1) rotates the gradient stops cyclically; pass `Date.now()`-
|
|
11
|
+
* derived values to animate a shimmer. Defaults to `0` (the static
|
|
12
|
+
* sent-bubble palette). */
|
|
13
|
+
export type KeywordHighlighter = (text: string, resetTo?: string, phase?: number) => string;
|
|
14
|
+
|
|
15
|
+
/** Declarative spec for {@link createGradientHighlighter}. */
|
|
16
|
+
export interface GradientHighlightSpec {
|
|
17
|
+
/** Cheap, stateless presence probe used to skip the boundary regex on most lines. Must be non-global. */
|
|
18
|
+
probe: RegExp;
|
|
19
|
+
/** Global, word-bounded match regex walked by `.replace`. */
|
|
20
|
+
highlight: RegExp;
|
|
21
|
+
/** Number of color stops swept across the gradient. */
|
|
22
|
+
stops: number;
|
|
23
|
+
/** Maps a normalized position `t` in [0, 1) to an HSL hue in degrees. */
|
|
24
|
+
hue: (t: number) => number;
|
|
25
|
+
/** HSL saturation percentage. Default 90. */
|
|
26
|
+
saturation?: number;
|
|
27
|
+
/** HSL lightness percentage. Default 62. */
|
|
28
|
+
lightness?: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Build a stateless highlighter that paints each standalone match of `highlight`
|
|
33
|
+
* with a smooth HSL gradient for editor display. The returned function adds only
|
|
34
|
+
* zero-width SGR escapes — the visible width is unchanged — and returns the input
|
|
35
|
+
* untouched when `probe` does not match. The palette is compiled lazily and
|
|
36
|
+
* memoized per active color mode.
|
|
37
|
+
*/
|
|
38
|
+
export function createGradientHighlighter(spec: GradientHighlightSpec): KeywordHighlighter {
|
|
39
|
+
const { probe, highlight, stops, hue, saturation = 90, lightness = 62 } = spec;
|
|
40
|
+
|
|
41
|
+
let cachedMode: string | undefined;
|
|
42
|
+
let cachedPalette: readonly string[] | undefined;
|
|
43
|
+
|
|
44
|
+
/** Gradient foreground escapes for the active color mode, compiled once per mode. */
|
|
45
|
+
const palette = (): readonly string[] => {
|
|
46
|
+
// `theme` is unassigned on early-render paths (before initTheme/initThemeSync)
|
|
47
|
+
// and on cross-module-instance plugin calls. Detect terminal capabilities
|
|
48
|
+
// directly so the gradient still paints safely. See #2998, #4766.
|
|
49
|
+
const mode = typeof theme === "undefined" ? detectColorMode() : theme.getColorMode();
|
|
50
|
+
if (cachedPalette && cachedMode === mode) return cachedPalette;
|
|
51
|
+
const format = mode === "truecolor" ? "ansi-16m" : "ansi-256";
|
|
52
|
+
const next: string[] = [];
|
|
53
|
+
for (let i = 0; i < stops; i++) {
|
|
54
|
+
next.push(Bun.color(`hsl(${Math.round(hue(i / stops))}, ${saturation}%, ${lightness}%)`, format) ?? "");
|
|
55
|
+
}
|
|
56
|
+
cachedMode = mode;
|
|
57
|
+
cachedPalette = next;
|
|
58
|
+
return next;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** Paint each character of `word` with the next gradient stop, restoring `resetTo` after.
|
|
62
|
+
* `phase` ∈ [0, 1) cyclically rotates the palette index so successive renders
|
|
63
|
+
* with monotonically increasing phase produce a moving shimmer; `0` yields the
|
|
64
|
+
* static palette. */
|
|
65
|
+
const paint = (word: string, resetTo: string, phase: number): string => {
|
|
66
|
+
const stopsArr = palette();
|
|
67
|
+
const m = stopsArr.length;
|
|
68
|
+
const n = word.length;
|
|
69
|
+
let out = "";
|
|
70
|
+
let prev = "";
|
|
71
|
+
for (let i = 0; i < n; i++) {
|
|
72
|
+
const t = (i / n + phase) % 1;
|
|
73
|
+
const color = stopsArr[Math.floor(t * m) % m] ?? stopsArr[0] ?? "";
|
|
74
|
+
// Coalesce consecutive characters that resolve to the same stop.
|
|
75
|
+
if (color !== prev) {
|
|
76
|
+
out += color;
|
|
77
|
+
prev = color;
|
|
78
|
+
}
|
|
79
|
+
out += word[i];
|
|
80
|
+
}
|
|
81
|
+
return `${out}${resetTo}`;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
return (text: string, resetTo: string = FG_RESET, phase: number = 0): string => {
|
|
85
|
+
if (!probe.test(text)) return text;
|
|
86
|
+
// Wrap phase into [0, 1) so negative inputs and values ≥ 1 stay well-defined.
|
|
87
|
+
const wrappedPhase = ((phase % 1) + 1) % 1;
|
|
88
|
+
// Match against a code/markup-masked copy so keywords inside code spans,
|
|
89
|
+
// fenced blocks, or XML sections never paint; indices still address `text`.
|
|
90
|
+
const masked = maskNonProse(text);
|
|
91
|
+
let out = "";
|
|
92
|
+
let last = 0;
|
|
93
|
+
for (const m of masked.matchAll(highlight)) {
|
|
94
|
+
const start = m.index ?? 0;
|
|
95
|
+
const end = start + m[0].length;
|
|
96
|
+
out += text.slice(last, start) + paint(text.slice(start, end), resetTo, wrappedPhase);
|
|
97
|
+
last = end;
|
|
98
|
+
}
|
|
99
|
+
return out + text.slice(last);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const IMAGE_EXTENSION_BY_MIME: Record<string, string> = {
|
|
2
|
+
"image/png": "png",
|
|
3
|
+
"image/jpeg": "jpg",
|
|
4
|
+
"image/jpg": "jpg",
|
|
5
|
+
"image/gif": "gif",
|
|
6
|
+
"image/webp": "webp",
|
|
7
|
+
"image/svg+xml": "svg",
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
/** Normalize a safe sidecar extension for image display files. */
|
|
11
|
+
export function normalizeBlobExtension(extension: string | undefined): string | undefined {
|
|
12
|
+
if (!extension) return undefined;
|
|
13
|
+
const normalized = extension.startsWith(".") ? extension.slice(1) : extension;
|
|
14
|
+
if (normalized.length === 0 || normalized.length > 32) return undefined;
|
|
15
|
+
if (!/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/.test(normalized)) return undefined;
|
|
16
|
+
return normalized.toLowerCase();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Resolve a safe display-file extension from an image MIME type. */
|
|
20
|
+
export function blobExtensionForImageMimeType(mimeType: string | undefined): string | undefined {
|
|
21
|
+
if (!mimeType) return undefined;
|
|
22
|
+
const lower = mimeType.toLowerCase();
|
|
23
|
+
const known = IMAGE_EXTENSION_BY_MIME[lower];
|
|
24
|
+
if (known) return known;
|
|
25
|
+
if (!lower.startsWith("image/")) return undefined;
|
|
26
|
+
const subtype = lower.slice("image/".length).split(";")[0]?.split("+")[0];
|
|
27
|
+
return normalizeBlobExtension(subtype);
|
|
28
|
+
}
|