@celljs/ta-web 4.7.0 → 4.9.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/README.en.md +40 -9
- package/README.md +39 -8
- package/esm/browser/assistant/assistant-chat-list.d.ts +4 -0
- package/esm/browser/assistant/assistant-chat-list.js +19 -0
- package/esm/browser/assistant/assistant-extension.d.ts +4 -1
- package/esm/browser/assistant/assistant-extension.js +96 -12
- package/esm/browser/assistant/assistant-protocol.d.ts +48 -0
- package/esm/browser/assistant/assistant-role.d.ts +81 -0
- package/esm/browser/assistant/assistant-role.js +45 -0
- package/esm/browser/assistant/assistant-state.d.ts +18 -0
- package/esm/browser/assistant/assistant-state.js +35 -0
- package/esm/browser/assistant/assistant-task-book.d.ts +30 -0
- package/esm/browser/assistant/assistant-task-book.js +68 -0
- package/esm/browser/assistant/assistant-task-source.d.ts +54 -0
- package/esm/browser/assistant/assistant-task-source.js +156 -0
- package/esm/browser/assistant/assistant-task-util.d.ts +48 -0
- package/esm/browser/assistant/assistant-task-util.js +105 -0
- package/esm/browser/assistant/assistant-tasks.d.ts +15 -28
- package/esm/browser/assistant/assistant-tasks.js +65 -89
- package/esm/browser/assistant/assistant-view.js +125 -86
- package/esm/browser/assistant/assistant.d.ts +91 -18
- package/esm/browser/assistant/assistant.js +398 -140
- package/esm/browser/assistant/task-card.d.ts +10 -0
- package/esm/browser/assistant/task-card.js +24 -0
- package/esm/browser/assistant/task-views.d.ts +44 -0
- package/esm/browser/assistant/task-views.js +187 -0
- package/esm/browser/avatar/dino-avatar.d.ts +33 -56
- package/esm/browser/avatar/dino-avatar.js +366 -145
- package/esm/browser/avatar/dino-motion.d.ts +9 -2
- package/esm/browser/avatar/dino-motion.js +298 -44
- package/esm/browser/avatar/dino-species.d.ts +123 -0
- package/esm/browser/avatar/dino-species.js +912 -0
- package/esm/browser/chat/chat-protocol.d.ts +40 -7
- package/esm/browser/chat/chat-protocol.js +7 -0
- package/esm/browser/chat/chat-view.d.ts +3 -1
- package/esm/browser/chat/chat-view.js +50 -8
- package/esm/browser/chat/chat.d.ts +54 -8
- package/esm/browser/chat/chat.js +234 -33
- package/esm/browser/chat/draft-model.d.ts +13 -0
- package/esm/browser/chat/draft-model.js +31 -0
- package/esm/browser/chat/recent-stores.d.ts +24 -0
- package/esm/browser/chat/recent-stores.js +39 -0
- package/esm/browser/components/access-util.d.ts +4 -0
- package/esm/browser/components/access-util.js +28 -0
- package/esm/browser/components/access-view.d.ts +16 -0
- package/esm/browser/components/access-view.js +125 -0
- package/esm/browser/components/account-menu.d.ts +59 -4
- package/esm/browser/components/account-menu.js +169 -42
- package/esm/browser/components/agent-settings-view.d.ts +1 -0
- package/esm/browser/components/agent-settings-view.js +11 -5
- package/esm/browser/components/app-nav.d.ts +44 -0
- package/esm/browser/components/app-nav.js +110 -0
- package/esm/browser/components/app-view.d.ts +1 -7
- package/esm/browser/components/app-view.js +299 -125
- package/esm/browser/components/auth-pictures.js +4 -7
- package/esm/browser/components/auth-view.js +18 -12
- package/esm/browser/components/board-util.d.ts +20 -0
- package/esm/browser/components/board-util.js +42 -0
- package/esm/browser/components/board.d.ts +14 -0
- package/esm/browser/components/board.js +92 -0
- package/esm/browser/components/chat-list.d.ts +62 -13
- package/esm/browser/components/chat-list.js +132 -34
- package/esm/browser/components/code-editor.d.ts +1 -1
- package/esm/browser/components/code-editor.js +5 -1
- package/esm/browser/components/composer-addons.d.ts +17 -0
- package/esm/browser/components/composer-addons.js +56 -0
- package/esm/browser/components/composer-box.d.ts +15 -4
- package/esm/browser/components/composer-box.js +71 -19
- package/esm/browser/components/composer.d.ts +4 -1
- package/esm/browser/components/composer.js +31 -10
- package/esm/browser/components/connection-bar.d.ts +9 -2
- package/esm/browser/components/connection-bar.js +113 -38
- package/esm/browser/components/context-menu.d.ts +24 -1
- package/esm/browser/components/context-menu.js +36 -8
- package/esm/browser/components/conversation-scroll.d.ts +3 -1
- package/esm/browser/components/conversation-scroll.js +56 -4
- package/esm/browser/components/dialog-view.d.ts +4 -1
- package/esm/browser/components/dialog-view.js +11 -7
- package/esm/browser/components/diff-editor.d.ts +1 -1
- package/esm/browser/components/diff-editor.js +5 -1
- package/esm/browser/components/dino-look-picker.d.ts +10 -0
- package/esm/browser/components/dino-look-picker.js +33 -0
- package/esm/browser/components/dino-look.d.ts +14 -0
- package/esm/browser/components/dino-look.js +53 -0
- package/esm/browser/components/dino.js +1 -1
- package/esm/browser/components/discover-view.d.ts +18 -0
- package/esm/browser/components/discover-view.js +38 -0
- package/esm/browser/components/earlier-messages.d.ts +30 -0
- package/esm/browser/components/earlier-messages.js +86 -0
- package/esm/browser/components/editor-area.js +6 -1
- package/esm/browser/components/empty-pictures.d.ts +7 -0
- package/esm/browser/components/empty-pictures.js +53 -0
- package/esm/browser/components/empty-state.d.ts +8 -0
- package/esm/browser/components/empty-state.js +15 -0
- package/esm/browser/components/environment-view.d.ts +19 -0
- package/esm/browser/components/environment-view.js +214 -0
- package/esm/browser/components/folder-picker.js +6 -3
- package/esm/browser/components/hero-cards.d.ts +4 -0
- package/esm/browser/components/hero-cards.js +16 -15
- package/esm/browser/components/host-tag.d.ts +9 -0
- package/esm/browser/components/host-tag.js +21 -0
- package/esm/browser/components/host-view.d.ts +34 -0
- package/esm/browser/components/host-view.js +168 -0
- package/esm/browser/components/kept-pages.d.ts +15 -0
- package/esm/browser/components/kept-pages.js +13 -0
- package/esm/browser/components/launch-settings.d.ts +3 -0
- package/esm/browser/components/launch-settings.js +38 -0
- package/esm/browser/components/launcher-search-util.d.ts +12 -0
- package/esm/browser/components/launcher-search-util.js +41 -0
- package/esm/browser/components/launcher-surface.d.ts +9 -0
- package/esm/browser/components/launcher-surface.js +67 -0
- package/esm/browser/components/list-rows.d.ts +21 -0
- package/esm/browser/components/list-rows.js +21 -0
- package/esm/browser/components/list-skeleton.d.ts +10 -0
- package/esm/browser/components/list-skeleton.js +31 -0
- package/esm/browser/components/me-view.d.ts +9 -0
- package/esm/browser/components/me-view.js +35 -0
- package/esm/browser/components/message-actions.js +1 -0
- package/esm/browser/components/message-footer.d.ts +2 -0
- package/esm/browser/components/message-list.js +50 -10
- package/esm/browser/components/message-menu.d.ts +20 -0
- package/esm/browser/components/message-menu.js +59 -0
- package/esm/browser/components/model-picker.d.ts +43 -0
- package/esm/browser/components/model-picker.js +167 -0
- package/esm/browser/components/nav-places.d.ts +46 -0
- package/esm/browser/components/nav-places.js +49 -0
- package/esm/browser/components/notice-center.js +3 -1
- package/esm/browser/components/option-list.d.ts +45 -0
- package/esm/browser/components/option-list.js +138 -0
- package/esm/browser/components/phone-shell.d.ts +72 -0
- package/esm/browser/components/phone-shell.js +226 -0
- package/esm/browser/components/picture.d.ts +15 -0
- package/esm/browser/components/picture.js +23 -0
- package/esm/browser/components/qr-view.d.ts +6 -0
- package/esm/browser/components/qr-view.js +12 -0
- package/esm/browser/components/relay-view.js +5 -12
- package/esm/browser/components/remote-hosts.js +3 -2
- package/esm/browser/components/search-page.d.ts +13 -0
- package/esm/browser/components/search-page.js +147 -0
- package/esm/browser/components/search-section.d.ts +16 -0
- package/esm/browser/components/search-section.js +99 -0
- package/esm/browser/components/session-settings.d.ts +7 -3
- package/esm/browser/components/session-settings.js +28 -18
- package/esm/browser/components/session-view.js +68 -10
- package/esm/browser/components/settings-controls.d.ts +22 -2
- package/esm/browser/components/settings-controls.js +38 -2
- package/esm/browser/components/settings-view.d.ts +8 -5
- package/esm/browser/components/settings-view.js +334 -93
- package/esm/browser/components/share-dialog.d.ts +13 -0
- package/esm/browser/components/share-dialog.js +83 -0
- package/esm/browser/components/side-lists.d.ts +37 -0
- package/esm/browser/components/side-lists.js +40 -0
- package/esm/browser/components/sign-in-accounts.d.ts +27 -0
- package/esm/browser/components/sign-in-accounts.js +64 -0
- package/esm/browser/components/sign-in-marks.d.ts +5 -0
- package/esm/browser/components/sign-in-marks.js +30 -0
- package/esm/browser/components/sign-in-picture.d.ts +7 -0
- package/esm/browser/components/sign-in-picture.js +64 -0
- package/esm/browser/components/sortable.d.ts +13 -0
- package/esm/browser/components/sortable.js +87 -0
- package/esm/browser/components/surface-flyout.d.ts +10 -0
- package/esm/browser/components/surface-flyout.js +38 -0
- package/esm/browser/components/swipe-row.d.ts +297 -0
- package/esm/browser/components/swipe-row.js +34 -0
- package/esm/browser/components/ta-avatar.d.ts +23 -2
- package/esm/browser/components/ta-avatar.js +108 -30
- package/esm/browser/components/terminal-art.d.ts +7 -0
- package/esm/browser/components/terminal-art.js +12 -0
- package/esm/browser/components/tool-view.js +1 -1
- package/esm/browser/components/trusted-domains.js +2 -2
- package/esm/browser/components/voice-button.d.ts +11 -0
- package/esm/browser/components/voice-button.js +65 -0
- package/esm/browser/components/web-composer.js +1 -1
- package/esm/browser/components/workbench-toggle.d.ts +13 -0
- package/esm/browser/components/workbench-toggle.js +28 -1
- package/esm/browser/components/workbench-view.d.ts +6 -3
- package/esm/browser/components/workbench-view.js +30 -16
- package/esm/browser/components/working-directory.d.ts +1 -1
- package/esm/browser/components/working-directory.js +1 -1
- package/esm/browser/device/back-stack.d.ts +36 -0
- package/esm/browser/device/back-stack.js +71 -0
- package/esm/browser/device/device-protocol.d.ts +47 -0
- package/esm/browser/device/device-protocol.js +32 -0
- package/esm/browser/device/device.d.ts +106 -0
- package/esm/browser/device/device.js +283 -0
- package/esm/browser/device/field-dismiss.d.ts +31 -0
- package/esm/browser/device/field-dismiss.js +80 -0
- package/esm/browser/device/launch-screen.d.ts +35 -0
- package/esm/browser/device/launch-screen.js +72 -0
- package/esm/browser/device/long-press.d.ts +30 -0
- package/esm/browser/device/long-press.js +132 -0
- package/esm/browser/device/new-line.d.ts +14 -0
- package/esm/browser/device/new-line.js +38 -0
- package/esm/browser/device/pull-down.d.ts +46 -0
- package/esm/browser/device/pull-down.js +232 -0
- package/esm/browser/device/row-swipe.d.ts +26 -0
- package/esm/browser/device/row-swipe.js +204 -0
- package/esm/browser/device/scanner.d.ts +15 -0
- package/esm/browser/device/scanner.js +63 -0
- package/esm/browser/device/sheet-swipe.d.ts +109 -0
- package/esm/browser/device/sheet-swipe.js +380 -0
- package/esm/browser/editor/monaco-loader.d.ts +8 -3
- package/esm/browser/editor/monaco-loader.js +7 -3
- package/esm/browser/extension/icons.d.ts +4 -0
- package/esm/browser/extension/icons.js +33 -1
- package/esm/browser/extension/web-extension-api.d.ts +469 -7
- package/esm/browser/extension/web-extension-code.d.ts +15 -0
- package/esm/browser/extension/web-extension-code.js +55 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +70 -4
- package/esm/browser/extension/web-extensions.d.ts +70 -26
- package/esm/browser/extension/web-extensions.js +321 -113
- package/esm/browser/extension/web-keep-alive.d.ts +39 -0
- package/esm/browser/extension/web-keep-alive.js +79 -0
- package/esm/browser/extension/web-on-demand.d.ts +63 -0
- package/esm/browser/extension/web-on-demand.js +144 -0
- package/esm/browser/extension/web-pages.d.ts +74 -0
- package/esm/browser/extension/web-pages.js +77 -0
- package/esm/browser/extension/web-sharing.d.ts +21 -0
- package/esm/browser/extension/web-sharing.js +54 -0
- package/esm/browser/extension/web-tasks.d.ts +46 -0
- package/esm/browser/extension/web-tasks.js +134 -0
- package/esm/browser/extension/web-view-util.d.ts +44 -0
- package/esm/browser/extension/web-view-util.js +114 -0
- package/esm/browser/hooks.d.ts +6 -0
- package/esm/browser/hooks.js +9 -0
- package/esm/browser/hosts.d.ts +26 -0
- package/esm/browser/hosts.js +100 -0
- package/esm/browser/i18n/locales.d.ts +268 -10
- package/esm/browser/i18n/messages.d.ts +267 -9
- package/esm/browser/i18n/messages.js +574 -57
- package/esm/browser/i18n/use-t.d.ts +4 -0
- package/esm/browser/i18n/use-t.js +21 -3
- package/esm/browser/index.d.ts +10 -2
- package/esm/browser/index.js +10 -2
- package/esm/browser/notices/notices-protocol.d.ts +3 -0
- package/esm/browser/notices/notices.d.ts +3 -0
- package/esm/browser/notices/notices.js +15 -0
- package/esm/browser/settings/navigation.d.ts +45 -0
- package/esm/browser/settings/navigation.js +62 -0
- package/esm/browser/settings/settings-protocol.d.ts +40 -1
- package/esm/browser/settings/settings-protocol.js +50 -1
- package/esm/browser/settings/settings.js +5 -1
- package/esm/browser/state/state-protocol.d.ts +6 -1
- package/esm/browser/state/state-protocol.js +20 -0
- package/esm/browser/state/state.d.ts +4 -0
- package/esm/browser/state/state.js +23 -2
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +32 -11
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +55 -29
- package/esm/browser/style/device.d.ts +5 -0
- package/esm/browser/style/device.js +154 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +177 -113
- package/esm/browser/style/pages.d.ts +2 -2
- package/esm/browser/style/pages.js +133 -24
- package/esm/browser/style/phone.d.ts +6 -0
- package/esm/browser/style/phone.js +110 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +105 -62
- package/esm/browser/style/surfaces.d.ts +5 -0
- package/esm/browser/style/surfaces.js +92 -0
- package/esm/browser/style/tasks.d.ts +6 -0
- package/esm/browser/style/tasks.js +80 -0
- package/esm/browser/style.d.ts +2 -1
- package/esm/browser/style.js +7 -2
- package/esm/browser/terminal/canvas-font.d.ts +10 -0
- package/esm/browser/terminal/canvas-font.js +34 -0
- package/esm/browser/terminal/terminal-links.d.ts +18 -0
- package/esm/browser/terminal/terminal-links.js +72 -0
- package/esm/browser/terminal/terminal-theme.d.ts +10 -0
- package/esm/browser/terminal/terminal-theme.js +73 -0
- package/esm/browser/terminal/web-terminal.d.ts +112 -0
- package/esm/browser/terminal/web-terminal.js +511 -0
- package/esm/browser/terminal/xterm.d.ts +5 -0
- package/esm/browser/terminal/xterm.js +9 -0
- package/esm/browser/util/composer.d.ts +20 -7
- package/esm/browser/util/composer.js +27 -5
- package/esm/browser/util/desktop.d.ts +43 -0
- package/esm/browser/util/desktop.js +55 -0
- package/esm/browser/util/file-drag.d.ts +26 -0
- package/esm/browser/util/file-drag.js +73 -0
- package/esm/browser/util/frame.d.ts +5 -0
- package/esm/browser/util/frame.js +8 -0
- package/esm/browser/util/message.d.ts +7 -0
- package/esm/browser/util/message.js +20 -0
- package/esm/browser/util/process.d.ts +3 -2
- package/esm/browser/util/process.js +7 -7
- package/esm/browser/util/share-link.d.ts +16 -0
- package/esm/browser/util/share-link.js +51 -0
- package/esm/browser/util/terminal-text.d.ts +33 -0
- package/esm/browser/util/terminal-text.js +209 -0
- package/esm/browser/util/tool.d.ts +1 -1
- package/esm/browser/util/tool.js +20 -3
- package/esm/browser/util/voice.d.ts +16 -0
- package/esm/browser/util/voice.js +77 -0
- package/esm/browser/workbench-protocol.d.ts +66 -7
- package/esm/browser/workbench.d.ts +76 -8
- package/esm/browser/workbench.js +407 -57
- package/lib/browser/assistant/assistant-chat-list.d.ts +5 -0
- package/lib/browser/assistant/assistant-chat-list.js +55 -0
- package/lib/browser/assistant/assistant-extension.d.ts +4 -1
- package/lib/browser/assistant/assistant-extension.js +95 -11
- package/lib/browser/assistant/assistant-protocol.d.ts +48 -0
- package/lib/browser/assistant/assistant-role.d.ts +82 -0
- package/lib/browser/assistant/assistant-role.js +49 -0
- package/lib/browser/assistant/assistant-state.d.ts +19 -0
- package/lib/browser/assistant/assistant-state.js +38 -0
- package/lib/browser/assistant/assistant-task-book.d.ts +31 -0
- package/lib/browser/assistant/assistant-task-book.js +72 -0
- package/lib/browser/assistant/assistant-task-source.d.ts +55 -0
- package/lib/browser/assistant/assistant-task-source.js +161 -0
- package/lib/browser/assistant/assistant-task-util.d.ts +49 -0
- package/lib/browser/assistant/assistant-task-util.js +108 -0
- package/lib/browser/assistant/assistant-tasks.d.ts +15 -28
- package/lib/browser/assistant/assistant-tasks.js +61 -89
- package/lib/browser/assistant/assistant-view.js +122 -83
- package/lib/browser/assistant/assistant.d.ts +91 -18
- package/lib/browser/assistant/assistant.js +400 -142
- package/lib/browser/assistant/task-card.d.ts +11 -0
- package/lib/browser/assistant/task-card.js +60 -0
- package/lib/browser/assistant/task-views.d.ts +45 -0
- package/lib/browser/assistant/task-views.js +230 -0
- package/lib/browser/avatar/dino-avatar.d.ts +33 -56
- package/lib/browser/avatar/dino-avatar.js +367 -147
- package/lib/browser/avatar/dino-motion.d.ts +9 -2
- package/lib/browser/avatar/dino-motion.js +299 -45
- package/lib/browser/avatar/dino-species.d.ts +124 -0
- package/lib/browser/avatar/dino-species.js +917 -0
- package/lib/browser/chat/chat-protocol.d.ts +40 -7
- package/lib/browser/chat/chat-protocol.js +8 -1
- package/lib/browser/chat/chat-view.d.ts +3 -1
- package/lib/browser/chat/chat-view.js +50 -8
- package/lib/browser/chat/chat.d.ts +54 -8
- package/lib/browser/chat/chat.js +233 -32
- package/lib/browser/chat/draft-model.d.ts +14 -0
- package/lib/browser/chat/draft-model.js +68 -0
- package/lib/browser/chat/recent-stores.d.ts +25 -0
- package/lib/browser/chat/recent-stores.js +43 -0
- package/lib/browser/components/access-util.d.ts +5 -0
- package/lib/browser/components/access-util.js +31 -0
- package/lib/browser/components/access-view.d.ts +17 -0
- package/lib/browser/components/access-view.js +162 -0
- package/lib/browser/components/account-menu.d.ts +59 -4
- package/lib/browser/components/account-menu.js +171 -40
- package/lib/browser/components/agent-settings-view.d.ts +1 -0
- package/lib/browser/components/agent-settings-view.js +11 -5
- package/lib/browser/components/app-nav.d.ts +45 -0
- package/lib/browser/components/app-nav.js +149 -0
- package/lib/browser/components/app-view.d.ts +1 -7
- package/lib/browser/components/app-view.js +295 -121
- package/lib/browser/components/auth-pictures.js +7 -10
- package/lib/browser/components/auth-view.js +18 -12
- package/lib/browser/components/board-util.d.ts +21 -0
- package/lib/browser/components/board-util.js +45 -0
- package/lib/browser/components/board.d.ts +15 -0
- package/lib/browser/components/board.js +129 -0
- package/lib/browser/components/chat-list.d.ts +62 -13
- package/lib/browser/components/chat-list.js +132 -34
- package/lib/browser/components/code-editor.d.ts +1 -1
- package/lib/browser/components/code-editor.js +5 -1
- package/lib/browser/components/composer-addons.d.ts +18 -0
- package/lib/browser/components/composer-addons.js +93 -0
- package/lib/browser/components/composer-box.d.ts +15 -4
- package/lib/browser/components/composer-box.js +71 -19
- package/lib/browser/components/composer.d.ts +4 -1
- package/lib/browser/components/composer.js +30 -9
- package/lib/browser/components/connection-bar.d.ts +9 -2
- package/lib/browser/components/connection-bar.js +114 -38
- package/lib/browser/components/context-menu.d.ts +24 -1
- package/lib/browser/components/context-menu.js +37 -8
- package/lib/browser/components/conversation-scroll.d.ts +3 -1
- package/lib/browser/components/conversation-scroll.js +57 -4
- package/lib/browser/components/dialog-view.d.ts +4 -1
- package/lib/browser/components/dialog-view.js +11 -7
- package/lib/browser/components/diff-editor.d.ts +1 -1
- package/lib/browser/components/diff-editor.js +5 -1
- package/lib/browser/components/dino-look-picker.d.ts +11 -0
- package/lib/browser/components/dino-look-picker.js +36 -0
- package/lib/browser/components/dino-look.d.ts +15 -0
- package/lib/browser/components/dino-look.js +91 -0
- package/lib/browser/components/dino.js +3 -3
- package/lib/browser/components/discover-view.d.ts +19 -0
- package/lib/browser/components/discover-view.js +74 -0
- package/lib/browser/components/earlier-messages.d.ts +31 -0
- package/lib/browser/components/earlier-messages.js +124 -0
- package/lib/browser/components/editor-area.js +6 -1
- package/lib/browser/components/empty-pictures.d.ts +8 -0
- package/lib/browser/components/empty-pictures.js +91 -0
- package/lib/browser/components/empty-state.d.ts +9 -0
- package/lib/browser/components/empty-state.js +51 -0
- package/lib/browser/components/environment-view.d.ts +20 -0
- package/lib/browser/components/environment-view.js +253 -0
- package/lib/browser/components/folder-picker.js +6 -3
- package/lib/browser/components/hero-cards.d.ts +4 -0
- package/lib/browser/components/hero-cards.js +17 -15
- package/lib/browser/components/host-tag.d.ts +10 -0
- package/lib/browser/components/host-tag.js +57 -0
- package/lib/browser/components/host-view.d.ts +35 -0
- package/lib/browser/components/host-view.js +208 -0
- package/lib/browser/components/kept-pages.d.ts +16 -0
- package/lib/browser/components/kept-pages.js +49 -0
- package/lib/browser/components/launch-settings.d.ts +4 -0
- package/lib/browser/components/launch-settings.js +74 -0
- package/lib/browser/components/launcher-search-util.d.ts +13 -0
- package/lib/browser/components/launcher-search-util.js +44 -0
- package/lib/browser/components/launcher-surface.d.ts +10 -0
- package/lib/browser/components/launcher-surface.js +103 -0
- package/lib/browser/components/list-rows.d.ts +22 -0
- package/lib/browser/components/list-rows.js +58 -0
- package/lib/browser/components/list-skeleton.d.ts +11 -0
- package/lib/browser/components/list-skeleton.js +68 -0
- package/lib/browser/components/me-view.d.ts +10 -0
- package/lib/browser/components/me-view.js +71 -0
- package/lib/browser/components/message-actions.js +1 -0
- package/lib/browser/components/message-footer.d.ts +2 -0
- package/lib/browser/components/message-list.js +48 -8
- package/lib/browser/components/message-menu.d.ts +21 -0
- package/lib/browser/components/message-menu.js +95 -0
- package/lib/browser/components/model-picker.d.ts +44 -0
- package/lib/browser/components/model-picker.js +206 -0
- package/lib/browser/components/nav-places.d.ts +47 -0
- package/lib/browser/components/nav-places.js +56 -0
- package/lib/browser/components/notice-center.js +3 -1
- package/lib/browser/components/option-list.d.ts +46 -0
- package/lib/browser/components/option-list.js +175 -0
- package/lib/browser/components/phone-shell.d.ts +73 -0
- package/lib/browser/components/phone-shell.js +265 -0
- package/lib/browser/components/picture.d.ts +16 -0
- package/lib/browser/components/picture.js +61 -0
- package/lib/browser/components/qr-view.d.ts +7 -0
- package/lib/browser/components/qr-view.js +48 -0
- package/lib/browser/components/relay-view.js +6 -13
- package/lib/browser/components/remote-hosts.js +2 -1
- package/lib/browser/components/search-page.d.ts +14 -0
- package/lib/browser/components/search-page.js +183 -0
- package/lib/browser/components/search-section.d.ts +17 -0
- package/lib/browser/components/search-section.js +136 -0
- package/lib/browser/components/session-settings.d.ts +7 -3
- package/lib/browser/components/session-settings.js +27 -17
- package/lib/browser/components/session-view.js +66 -8
- package/lib/browser/components/settings-controls.d.ts +22 -2
- package/lib/browser/components/settings-controls.js +39 -1
- package/lib/browser/components/settings-view.d.ts +8 -5
- package/lib/browser/components/settings-view.js +330 -89
- package/lib/browser/components/share-dialog.d.ts +14 -0
- package/lib/browser/components/share-dialog.js +120 -0
- package/lib/browser/components/side-lists.d.ts +38 -0
- package/lib/browser/components/side-lists.js +43 -0
- package/lib/browser/components/sign-in-accounts.d.ts +28 -0
- package/lib/browser/components/sign-in-accounts.js +102 -0
- package/lib/browser/components/sign-in-marks.d.ts +6 -0
- package/lib/browser/components/sign-in-marks.js +66 -0
- package/lib/browser/components/sign-in-picture.d.ts +8 -0
- package/lib/browser/components/sign-in-picture.js +100 -0
- package/lib/browser/components/sortable.d.ts +14 -0
- package/lib/browser/components/sortable.js +124 -0
- package/lib/browser/components/surface-flyout.d.ts +11 -0
- package/lib/browser/components/surface-flyout.js +74 -0
- package/lib/browser/components/swipe-row.d.ts +298 -0
- package/lib/browser/components/swipe-row.js +70 -0
- package/lib/browser/components/ta-avatar.d.ts +23 -2
- package/lib/browser/components/ta-avatar.js +109 -29
- package/lib/browser/components/terminal-art.d.ts +8 -0
- package/lib/browser/components/terminal-art.js +48 -0
- package/lib/browser/components/tool-view.js +1 -1
- package/lib/browser/components/trusted-domains.js +1 -1
- package/lib/browser/components/voice-button.d.ts +12 -0
- package/lib/browser/components/voice-button.js +101 -0
- package/lib/browser/components/web-composer.js +1 -1
- package/lib/browser/components/workbench-toggle.d.ts +13 -0
- package/lib/browser/components/workbench-toggle.js +29 -1
- package/lib/browser/components/workbench-view.d.ts +6 -3
- package/lib/browser/components/workbench-view.js +30 -16
- package/lib/browser/components/working-directory.d.ts +1 -1
- package/lib/browser/components/working-directory.js +1 -1
- package/lib/browser/device/back-stack.d.ts +37 -0
- package/lib/browser/device/back-stack.js +109 -0
- package/lib/browser/device/device-protocol.d.ts +48 -0
- package/lib/browser/device/device-protocol.js +35 -0
- package/lib/browser/device/device.d.ts +107 -0
- package/lib/browser/device/device.js +323 -0
- package/lib/browser/device/field-dismiss.d.ts +32 -0
- package/lib/browser/device/field-dismiss.js +84 -0
- package/lib/browser/device/launch-screen.d.ts +36 -0
- package/lib/browser/device/launch-screen.js +76 -0
- package/lib/browser/device/long-press.d.ts +31 -0
- package/lib/browser/device/long-press.js +136 -0
- package/lib/browser/device/new-line.d.ts +15 -0
- package/lib/browser/device/new-line.js +42 -0
- package/lib/browser/device/pull-down.d.ts +47 -0
- package/lib/browser/device/pull-down.js +269 -0
- package/lib/browser/device/row-swipe.d.ts +27 -0
- package/lib/browser/device/row-swipe.js +241 -0
- package/lib/browser/device/scanner.d.ts +16 -0
- package/lib/browser/device/scanner.js +67 -0
- package/lib/browser/device/sheet-swipe.d.ts +110 -0
- package/lib/browser/device/sheet-swipe.js +419 -0
- package/lib/browser/editor/monaco-loader.d.ts +8 -3
- package/lib/browser/editor/monaco-loader.js +7 -3
- package/lib/browser/extension/icons.d.ts +4 -0
- package/lib/browser/extension/icons.js +33 -1
- package/lib/browser/extension/web-extension-api.d.ts +469 -7
- package/lib/browser/extension/web-extension-code.d.ts +16 -0
- package/lib/browser/extension/web-extension-code.js +59 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +70 -4
- package/lib/browser/extension/web-extensions.d.ts +70 -26
- package/lib/browser/extension/web-extensions.js +328 -120
- package/lib/browser/extension/web-keep-alive.d.ts +40 -0
- package/lib/browser/extension/web-keep-alive.js +83 -0
- package/lib/browser/extension/web-on-demand.d.ts +64 -0
- package/lib/browser/extension/web-on-demand.js +148 -0
- package/lib/browser/extension/web-pages.d.ts +75 -0
- package/lib/browser/extension/web-pages.js +80 -0
- package/lib/browser/extension/web-sharing.d.ts +22 -0
- package/lib/browser/extension/web-sharing.js +58 -0
- package/lib/browser/extension/web-tasks.d.ts +47 -0
- package/lib/browser/extension/web-tasks.js +138 -0
- package/lib/browser/extension/web-view-util.d.ts +45 -0
- package/lib/browser/extension/web-view-util.js +150 -0
- package/lib/browser/hooks.d.ts +6 -0
- package/lib/browser/hooks.js +11 -0
- package/lib/browser/hosts.d.ts +27 -0
- package/lib/browser/hosts.js +103 -0
- package/lib/browser/i18n/locales.d.ts +268 -10
- package/lib/browser/i18n/messages.d.ts +267 -9
- package/lib/browser/i18n/messages.js +574 -57
- package/lib/browser/i18n/use-t.d.ts +4 -0
- package/lib/browser/i18n/use-t.js +22 -2
- package/lib/browser/index.d.ts +10 -2
- package/lib/browser/index.js +10 -2
- package/lib/browser/notices/notices-protocol.d.ts +3 -0
- package/lib/browser/notices/notices.d.ts +3 -0
- package/lib/browser/notices/notices.js +15 -0
- package/lib/browser/settings/navigation.d.ts +46 -0
- package/lib/browser/settings/navigation.js +65 -0
- package/lib/browser/settings/settings-protocol.d.ts +40 -1
- package/lib/browser/settings/settings-protocol.js +51 -2
- package/lib/browser/settings/settings.js +4 -0
- package/lib/browser/state/state-protocol.d.ts +6 -1
- package/lib/browser/state/state-protocol.js +20 -0
- package/lib/browser/state/state.d.ts +4 -0
- package/lib/browser/state/state.js +23 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +32 -11
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +55 -29
- package/lib/browser/style/device.d.ts +6 -0
- package/lib/browser/style/device.js +157 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +177 -113
- package/lib/browser/style/pages.d.ts +2 -2
- package/lib/browser/style/pages.js +133 -24
- package/lib/browser/style/phone.d.ts +7 -0
- package/lib/browser/style/phone.js +113 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +105 -62
- package/lib/browser/style/surfaces.d.ts +6 -0
- package/lib/browser/style/surfaces.js +95 -0
- package/lib/browser/style/tasks.d.ts +7 -0
- package/lib/browser/style/tasks.js +83 -0
- package/lib/browser/style.d.ts +2 -1
- package/lib/browser/style.js +7 -2
- package/lib/browser/terminal/canvas-font.d.ts +11 -0
- package/lib/browser/terminal/canvas-font.js +37 -0
- package/lib/browser/terminal/terminal-links.d.ts +19 -0
- package/lib/browser/terminal/terminal-links.js +75 -0
- package/lib/browser/terminal/terminal-theme.d.ts +11 -0
- package/lib/browser/terminal/terminal-theme.js +76 -0
- package/lib/browser/terminal/web-terminal.d.ts +113 -0
- package/lib/browser/terminal/web-terminal.js +515 -0
- package/lib/browser/terminal/xterm.d.ts +6 -0
- package/lib/browser/terminal/xterm.js +16 -0
- package/lib/browser/util/composer.d.ts +20 -7
- package/lib/browser/util/composer.js +27 -5
- package/lib/browser/util/desktop.d.ts +44 -0
- package/lib/browser/util/desktop.js +58 -0
- package/lib/browser/util/file-drag.d.ts +27 -0
- package/lib/browser/util/file-drag.js +76 -0
- package/lib/browser/util/frame.d.ts +5 -0
- package/lib/browser/util/frame.js +8 -0
- package/lib/browser/util/message.d.ts +7 -0
- package/lib/browser/util/message.js +20 -0
- package/lib/browser/util/process.d.ts +3 -2
- package/lib/browser/util/process.js +7 -7
- package/lib/browser/util/share-link.d.ts +17 -0
- package/lib/browser/util/share-link.js +54 -0
- package/lib/browser/util/terminal-text.d.ts +34 -0
- package/lib/browser/util/terminal-text.js +212 -0
- package/lib/browser/util/tool.d.ts +1 -1
- package/lib/browser/util/tool.js +20 -3
- package/lib/browser/util/voice.d.ts +17 -0
- package/lib/browser/util/voice.js +80 -0
- package/lib/browser/workbench-protocol.d.ts +66 -7
- package/lib/browser/workbench.d.ts +76 -8
- package/lib/browser/workbench.js +408 -57
- package/package.json +14 -8
- package/public/launch.svg +49 -0
- package/esm/browser/assistant/assistant-export.js.map +0 -1
- package/esm/browser/assistant/assistant-extension.js.map +0 -1
- package/esm/browser/assistant/assistant-hooks.js.map +0 -1
- package/esm/browser/assistant/assistant-protocol.js.map +0 -1
- package/esm/browser/assistant/assistant-tasks.js.map +0 -1
- package/esm/browser/assistant/assistant-view.js.map +0 -1
- package/esm/browser/assistant/assistant.js.map +0 -1
- package/esm/browser/assistant/voice.d.ts +0 -14
- package/esm/browser/assistant/voice.js +0 -72
- package/esm/browser/assistant/voice.js.map +0 -1
- package/esm/browser/avatar/dino-avatar.js.map +0 -1
- package/esm/browser/avatar/dino-motion.js.map +0 -1
- package/esm/browser/chat/chat-protocol.js.map +0 -1
- package/esm/browser/chat/chat-view.js.map +0 -1
- package/esm/browser/chat/chat.js.map +0 -1
- package/esm/browser/components/account-menu.js.map +0 -1
- package/esm/browser/components/agent-settings-view.js.map +0 -1
- package/esm/browser/components/app-view.js.map +0 -1
- package/esm/browser/components/auth-pictures.js.map +0 -1
- package/esm/browser/components/auth-view.js.map +0 -1
- package/esm/browser/components/callout.js.map +0 -1
- package/esm/browser/components/chat-list.js.map +0 -1
- package/esm/browser/components/code-editor.js.map +0 -1
- package/esm/browser/components/composer-box.js.map +0 -1
- package/esm/browser/components/composer-menu.js.map +0 -1
- package/esm/browser/components/composer.js.map +0 -1
- package/esm/browser/components/connection-bar.js.map +0 -1
- package/esm/browser/components/context-menu.js.map +0 -1
- package/esm/browser/components/conversation-scroll.js.map +0 -1
- package/esm/browser/components/dialog-view.js.map +0 -1
- package/esm/browser/components/diff-editor.js.map +0 -1
- package/esm/browser/components/diff-view.js.map +0 -1
- package/esm/browser/components/dino.js.map +0 -1
- package/esm/browser/components/editor-area.js.map +0 -1
- package/esm/browser/components/folder-picker.js.map +0 -1
- package/esm/browser/components/fork-view.js.map +0 -1
- package/esm/browser/components/hero-cards.js.map +0 -1
- package/esm/browser/components/icon.js.map +0 -1
- package/esm/browser/components/link-dialog.js.map +0 -1
- package/esm/browser/components/link.js.map +0 -1
- package/esm/browser/components/manage-menu.d.ts +0 -13
- package/esm/browser/components/manage-menu.js +0 -96
- package/esm/browser/components/manage-menu.js.map +0 -1
- package/esm/browser/components/markdown.js.map +0 -1
- package/esm/browser/components/math.js.map +0 -1
- package/esm/browser/components/media.js.map +0 -1
- package/esm/browser/components/mermaid-view.js.map +0 -1
- package/esm/browser/components/message-actions.js.map +0 -1
- package/esm/browser/components/message-footer.js.map +0 -1
- package/esm/browser/components/message-list.js.map +0 -1
- package/esm/browser/components/notice-center.js.map +0 -1
- package/esm/browser/components/relay-view.js.map +0 -1
- package/esm/browser/components/remote-hosts.js.map +0 -1
- package/esm/browser/components/remote-prompts.js.map +0 -1
- package/esm/browser/components/run-status.js.map +0 -1
- package/esm/browser/components/session-settings.js.map +0 -1
- package/esm/browser/components/session-view.js.map +0 -1
- package/esm/browser/components/settings-controls.js.map +0 -1
- package/esm/browser/components/settings-view.js.map +0 -1
- package/esm/browser/components/split-pane.js.map +0 -1
- package/esm/browser/components/ta-avatar.js.map +0 -1
- package/esm/browser/components/tool-view.js.map +0 -1
- package/esm/browser/components/trusted-domains.js.map +0 -1
- package/esm/browser/components/web-composer.js.map +0 -1
- package/esm/browser/components/web-dialog.js.map +0 -1
- package/esm/browser/components/workbench-toggle.js.map +0 -1
- package/esm/browser/components/workbench-view.js.map +0 -1
- package/esm/browser/components/working-directory.js.map +0 -1
- package/esm/browser/editor/monaco-loader.js.map +0 -1
- package/esm/browser/editor/monaco.js.map +0 -1
- package/esm/browser/extension/extension-view.js.map +0 -1
- package/esm/browser/extension/icons.js.map +0 -1
- package/esm/browser/extension/web-extension-api.js.map +0 -1
- package/esm/browser/extension/web-extension-protocol.js.map +0 -1
- package/esm/browser/extension/web-extensions.js.map +0 -1
- package/esm/browser/hooks.js.map +0 -1
- package/esm/browser/i18n/locales.js.map +0 -1
- package/esm/browser/i18n/messages.js.map +0 -1
- package/esm/browser/i18n/use-t.js.map +0 -1
- package/esm/browser/index.js.map +0 -1
- package/esm/browser/links/links-protocol.js.map +0 -1
- package/esm/browser/links/links.js.map +0 -1
- package/esm/browser/markdown/hooks.js.map +0 -1
- package/esm/browser/markdown/lazy.js.map +0 -1
- package/esm/browser/markdown/math.js.map +0 -1
- package/esm/browser/markdown/mermaid.js.map +0 -1
- package/esm/browser/module.js.map +0 -1
- package/esm/browser/notices/notices-protocol.js.map +0 -1
- package/esm/browser/notices/notices.js.map +0 -1
- package/esm/browser/pwa/pwa-protocol.js.map +0 -1
- package/esm/browser/pwa/pwa.js.map +0 -1
- package/esm/browser/settings/agent-settings.js.map +0 -1
- package/esm/browser/settings/settings-protocol.js.map +0 -1
- package/esm/browser/settings/settings.js.map +0 -1
- package/esm/browser/state/state-protocol.js.map +0 -1
- package/esm/browser/state/state.js.map +0 -1
- package/esm/browser/style/base.js.map +0 -1
- package/esm/browser/style/conversation.js.map +0 -1
- package/esm/browser/style/layout.js.map +0 -1
- package/esm/browser/style/pages.js.map +0 -1
- package/esm/browser/style/shell.js.map +0 -1
- package/esm/browser/style.js.map +0 -1
- package/esm/browser/util/composer.js.map +0 -1
- package/esm/browser/util/diff.js.map +0 -1
- package/esm/browser/util/frame.js.map +0 -1
- package/esm/browser/util/layout.js.map +0 -1
- package/esm/browser/util/link.js.map +0 -1
- package/esm/browser/util/markdown.js.map +0 -1
- package/esm/browser/util/message.js.map +0 -1
- package/esm/browser/util/process.js.map +0 -1
- package/esm/browser/util/progress.js.map +0 -1
- package/esm/browser/util/qr-code.d.ts +0 -37
- package/esm/browser/util/qr-code.js +0 -349
- package/esm/browser/util/qr-code.js.map +0 -1
- package/esm/browser/util/tool.js.map +0 -1
- package/esm/browser/view.js.map +0 -1
- package/esm/browser/workbench-protocol.js.map +0 -1
- package/esm/browser/workbench.js.map +0 -1
- package/lib/browser/assistant/assistant-export.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-export.js.map +0 -1
- package/lib/browser/assistant/assistant-export.spec.d.ts +0 -2
- package/lib/browser/assistant/assistant-export.spec.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-export.spec.js +0 -27
- package/lib/browser/assistant/assistant-export.spec.js.map +0 -1
- package/lib/browser/assistant/assistant-extension.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-extension.js.map +0 -1
- package/lib/browser/assistant/assistant-extension.spec.d.ts +0 -2
- package/lib/browser/assistant/assistant-extension.spec.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-extension.spec.js +0 -121
- package/lib/browser/assistant/assistant-extension.spec.js.map +0 -1
- package/lib/browser/assistant/assistant-hooks.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-hooks.js.map +0 -1
- package/lib/browser/assistant/assistant-protocol.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-protocol.js.map +0 -1
- package/lib/browser/assistant/assistant-tasks.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-tasks.js.map +0 -1
- package/lib/browser/assistant/assistant-view.d.ts.map +0 -1
- package/lib/browser/assistant/assistant-view.js.map +0 -1
- package/lib/browser/assistant/assistant.d.ts.map +0 -1
- package/lib/browser/assistant/assistant.js.map +0 -1
- package/lib/browser/assistant/assistant.spec.d.ts +0 -2
- package/lib/browser/assistant/assistant.spec.d.ts.map +0 -1
- package/lib/browser/assistant/assistant.spec.js +0 -80
- package/lib/browser/assistant/assistant.spec.js.map +0 -1
- package/lib/browser/assistant/voice.d.ts +0 -15
- package/lib/browser/assistant/voice.d.ts.map +0 -1
- package/lib/browser/assistant/voice.js +0 -75
- package/lib/browser/assistant/voice.js.map +0 -1
- package/lib/browser/assistant/voice.spec.d.ts +0 -2
- package/lib/browser/assistant/voice.spec.d.ts.map +0 -1
- package/lib/browser/assistant/voice.spec.js +0 -10
- package/lib/browser/assistant/voice.spec.js.map +0 -1
- package/lib/browser/avatar/dino-avatar.d.ts.map +0 -1
- package/lib/browser/avatar/dino-avatar.js.map +0 -1
- package/lib/browser/avatar/dino-avatar.spec.d.ts +0 -2
- package/lib/browser/avatar/dino-avatar.spec.d.ts.map +0 -1
- package/lib/browser/avatar/dino-avatar.spec.js +0 -143
- package/lib/browser/avatar/dino-avatar.spec.js.map +0 -1
- package/lib/browser/avatar/dino-motion.d.ts.map +0 -1
- package/lib/browser/avatar/dino-motion.js.map +0 -1
- package/lib/browser/chat/chat-protocol.d.ts.map +0 -1
- package/lib/browser/chat/chat-protocol.js.map +0 -1
- package/lib/browser/chat/chat-view.d.ts.map +0 -1
- package/lib/browser/chat/chat-view.js.map +0 -1
- package/lib/browser/chat/chat.d.ts.map +0 -1
- package/lib/browser/chat/chat.js.map +0 -1
- package/lib/browser/chat/chat.spec.d.ts +0 -2
- package/lib/browser/chat/chat.spec.d.ts.map +0 -1
- package/lib/browser/chat/chat.spec.js +0 -185
- package/lib/browser/chat/chat.spec.js.map +0 -1
- package/lib/browser/components/account-menu.d.ts.map +0 -1
- package/lib/browser/components/account-menu.js.map +0 -1
- package/lib/browser/components/agent-settings-view.d.ts.map +0 -1
- package/lib/browser/components/agent-settings-view.js.map +0 -1
- package/lib/browser/components/app-view.d.ts.map +0 -1
- package/lib/browser/components/app-view.js.map +0 -1
- package/lib/browser/components/auth-pictures.d.ts.map +0 -1
- package/lib/browser/components/auth-pictures.js.map +0 -1
- package/lib/browser/components/auth-view.d.ts.map +0 -1
- package/lib/browser/components/auth-view.js.map +0 -1
- package/lib/browser/components/callout.d.ts.map +0 -1
- package/lib/browser/components/callout.js.map +0 -1
- package/lib/browser/components/chat-list.d.ts.map +0 -1
- package/lib/browser/components/chat-list.js.map +0 -1
- package/lib/browser/components/chat-list.spec.d.ts +0 -2
- package/lib/browser/components/chat-list.spec.d.ts.map +0 -1
- package/lib/browser/components/chat-list.spec.js +0 -61
- package/lib/browser/components/chat-list.spec.js.map +0 -1
- package/lib/browser/components/code-editor.d.ts.map +0 -1
- package/lib/browser/components/code-editor.js.map +0 -1
- package/lib/browser/components/composer-box.d.ts.map +0 -1
- package/lib/browser/components/composer-box.js.map +0 -1
- package/lib/browser/components/composer-menu.d.ts.map +0 -1
- package/lib/browser/components/composer-menu.js.map +0 -1
- package/lib/browser/components/composer.d.ts.map +0 -1
- package/lib/browser/components/composer.js.map +0 -1
- package/lib/browser/components/composer.spec.d.ts +0 -2
- package/lib/browser/components/composer.spec.d.ts.map +0 -1
- package/lib/browser/components/composer.spec.js +0 -129
- package/lib/browser/components/composer.spec.js.map +0 -1
- package/lib/browser/components/connection-bar.d.ts.map +0 -1
- package/lib/browser/components/connection-bar.js.map +0 -1
- package/lib/browser/components/context-menu.d.ts.map +0 -1
- package/lib/browser/components/context-menu.js.map +0 -1
- package/lib/browser/components/conversation-scroll.d.ts.map +0 -1
- package/lib/browser/components/conversation-scroll.js.map +0 -1
- package/lib/browser/components/dialog-view.d.ts.map +0 -1
- package/lib/browser/components/dialog-view.js.map +0 -1
- package/lib/browser/components/diff-editor.d.ts.map +0 -1
- package/lib/browser/components/diff-editor.js.map +0 -1
- package/lib/browser/components/diff-view.d.ts.map +0 -1
- package/lib/browser/components/diff-view.js.map +0 -1
- package/lib/browser/components/dino.d.ts.map +0 -1
- package/lib/browser/components/dino.js.map +0 -1
- package/lib/browser/components/editor-area.d.ts.map +0 -1
- package/lib/browser/components/editor-area.js.map +0 -1
- package/lib/browser/components/folder-picker.d.ts.map +0 -1
- package/lib/browser/components/folder-picker.js.map +0 -1
- package/lib/browser/components/folder-picker.spec.d.ts +0 -2
- package/lib/browser/components/folder-picker.spec.d.ts.map +0 -1
- package/lib/browser/components/folder-picker.spec.js +0 -43
- package/lib/browser/components/folder-picker.spec.js.map +0 -1
- package/lib/browser/components/fork-view.d.ts.map +0 -1
- package/lib/browser/components/fork-view.js.map +0 -1
- package/lib/browser/components/hero-cards.d.ts.map +0 -1
- package/lib/browser/components/hero-cards.js.map +0 -1
- package/lib/browser/components/icon.d.ts.map +0 -1
- package/lib/browser/components/icon.js.map +0 -1
- package/lib/browser/components/link-dialog.d.ts.map +0 -1
- package/lib/browser/components/link-dialog.js.map +0 -1
- package/lib/browser/components/link.d.ts.map +0 -1
- package/lib/browser/components/link.js.map +0 -1
- package/lib/browser/components/manage-menu.d.ts +0 -14
- package/lib/browser/components/manage-menu.d.ts.map +0 -1
- package/lib/browser/components/manage-menu.js +0 -132
- package/lib/browser/components/manage-menu.js.map +0 -1
- package/lib/browser/components/markdown.d.ts.map +0 -1
- package/lib/browser/components/markdown.js.map +0 -1
- package/lib/browser/components/markdown.spec.d.ts +0 -2
- package/lib/browser/components/markdown.spec.d.ts.map +0 -1
- package/lib/browser/components/markdown.spec.js +0 -72
- package/lib/browser/components/markdown.spec.js.map +0 -1
- package/lib/browser/components/math.d.ts.map +0 -1
- package/lib/browser/components/math.js.map +0 -1
- package/lib/browser/components/media.d.ts.map +0 -1
- package/lib/browser/components/media.js.map +0 -1
- package/lib/browser/components/mermaid-view.d.ts.map +0 -1
- package/lib/browser/components/mermaid-view.js.map +0 -1
- package/lib/browser/components/message-actions.d.ts.map +0 -1
- package/lib/browser/components/message-actions.js.map +0 -1
- package/lib/browser/components/message-footer.d.ts.map +0 -1
- package/lib/browser/components/message-footer.js.map +0 -1
- package/lib/browser/components/message-list.d.ts.map +0 -1
- package/lib/browser/components/message-list.js.map +0 -1
- package/lib/browser/components/message-list.spec.d.ts +0 -2
- package/lib/browser/components/message-list.spec.d.ts.map +0 -1
- package/lib/browser/components/message-list.spec.js +0 -269
- package/lib/browser/components/message-list.spec.js.map +0 -1
- package/lib/browser/components/notice-center.d.ts.map +0 -1
- package/lib/browser/components/notice-center.js.map +0 -1
- package/lib/browser/components/relay-view.d.ts.map +0 -1
- package/lib/browser/components/relay-view.js.map +0 -1
- package/lib/browser/components/remote-hosts.d.ts.map +0 -1
- package/lib/browser/components/remote-hosts.js.map +0 -1
- package/lib/browser/components/remote-prompts.d.ts.map +0 -1
- package/lib/browser/components/remote-prompts.js.map +0 -1
- package/lib/browser/components/run-status.d.ts.map +0 -1
- package/lib/browser/components/run-status.js.map +0 -1
- package/lib/browser/components/session-settings.d.ts.map +0 -1
- package/lib/browser/components/session-settings.js.map +0 -1
- package/lib/browser/components/session-settings.spec.d.ts +0 -2
- package/lib/browser/components/session-settings.spec.d.ts.map +0 -1
- package/lib/browser/components/session-settings.spec.js +0 -47
- package/lib/browser/components/session-settings.spec.js.map +0 -1
- package/lib/browser/components/session-view.d.ts.map +0 -1
- package/lib/browser/components/session-view.js.map +0 -1
- package/lib/browser/components/settings-controls.d.ts.map +0 -1
- package/lib/browser/components/settings-controls.js.map +0 -1
- package/lib/browser/components/settings-view.d.ts.map +0 -1
- package/lib/browser/components/settings-view.js.map +0 -1
- package/lib/browser/components/split-pane.d.ts.map +0 -1
- package/lib/browser/components/split-pane.js.map +0 -1
- package/lib/browser/components/ta-avatar.d.ts.map +0 -1
- package/lib/browser/components/ta-avatar.js.map +0 -1
- package/lib/browser/components/ta-avatar.spec.d.ts +0 -2
- package/lib/browser/components/ta-avatar.spec.d.ts.map +0 -1
- package/lib/browser/components/ta-avatar.spec.js +0 -60
- package/lib/browser/components/ta-avatar.spec.js.map +0 -1
- package/lib/browser/components/tool-view.d.ts.map +0 -1
- package/lib/browser/components/tool-view.js.map +0 -1
- package/lib/browser/components/trusted-domains.d.ts.map +0 -1
- package/lib/browser/components/trusted-domains.js.map +0 -1
- package/lib/browser/components/web-composer.d.ts.map +0 -1
- package/lib/browser/components/web-composer.js.map +0 -1
- package/lib/browser/components/web-dialog.d.ts.map +0 -1
- package/lib/browser/components/web-dialog.js.map +0 -1
- package/lib/browser/components/workbench-toggle.d.ts.map +0 -1
- package/lib/browser/components/workbench-toggle.js.map +0 -1
- package/lib/browser/components/workbench-toggle.spec.d.ts +0 -2
- package/lib/browser/components/workbench-toggle.spec.d.ts.map +0 -1
- package/lib/browser/components/workbench-toggle.spec.js +0 -64
- package/lib/browser/components/workbench-toggle.spec.js.map +0 -1
- package/lib/browser/components/workbench-view.d.ts.map +0 -1
- package/lib/browser/components/workbench-view.js.map +0 -1
- package/lib/browser/components/working-directory.d.ts.map +0 -1
- package/lib/browser/components/working-directory.js.map +0 -1
- package/lib/browser/editor/monaco-loader.d.ts.map +0 -1
- package/lib/browser/editor/monaco-loader.js.map +0 -1
- package/lib/browser/editor/monaco-loader.spec.d.ts +0 -2
- package/lib/browser/editor/monaco-loader.spec.d.ts.map +0 -1
- package/lib/browser/editor/monaco-loader.spec.js +0 -39
- package/lib/browser/editor/monaco-loader.spec.js.map +0 -1
- package/lib/browser/editor/monaco.d.ts.map +0 -1
- package/lib/browser/editor/monaco.js.map +0 -1
- package/lib/browser/extension/extension-view.d.ts.map +0 -1
- package/lib/browser/extension/extension-view.js.map +0 -1
- package/lib/browser/extension/icons.d.ts.map +0 -1
- package/lib/browser/extension/icons.js.map +0 -1
- package/lib/browser/extension/web-extension-api.d.ts.map +0 -1
- package/lib/browser/extension/web-extension-api.js.map +0 -1
- package/lib/browser/extension/web-extension-protocol.d.ts.map +0 -1
- package/lib/browser/extension/web-extension-protocol.js.map +0 -1
- package/lib/browser/extension/web-extensions.d.ts.map +0 -1
- package/lib/browser/extension/web-extensions.js.map +0 -1
- package/lib/browser/extension/web-extensions.spec.d.ts +0 -2
- package/lib/browser/extension/web-extensions.spec.d.ts.map +0 -1
- package/lib/browser/extension/web-extensions.spec.js +0 -617
- package/lib/browser/extension/web-extensions.spec.js.map +0 -1
- package/lib/browser/hooks.d.ts.map +0 -1
- package/lib/browser/hooks.js.map +0 -1
- package/lib/browser/i18n/locales.d.ts.map +0 -1
- package/lib/browser/i18n/locales.js.map +0 -1
- package/lib/browser/i18n/messages.d.ts.map +0 -1
- package/lib/browser/i18n/messages.js.map +0 -1
- package/lib/browser/i18n/use-t.d.ts.map +0 -1
- package/lib/browser/i18n/use-t.js.map +0 -1
- package/lib/browser/index.d.ts.map +0 -1
- package/lib/browser/index.js.map +0 -1
- package/lib/browser/links/links-protocol.d.ts.map +0 -1
- package/lib/browser/links/links-protocol.js.map +0 -1
- package/lib/browser/links/links.d.ts.map +0 -1
- package/lib/browser/links/links.js.map +0 -1
- package/lib/browser/links/links.spec.d.ts +0 -2
- package/lib/browser/links/links.spec.d.ts.map +0 -1
- package/lib/browser/links/links.spec.js +0 -123
- package/lib/browser/links/links.spec.js.map +0 -1
- package/lib/browser/markdown/hooks.d.ts.map +0 -1
- package/lib/browser/markdown/hooks.js.map +0 -1
- package/lib/browser/markdown/lazy.d.ts.map +0 -1
- package/lib/browser/markdown/lazy.js.map +0 -1
- package/lib/browser/markdown/lazy.spec.d.ts +0 -2
- package/lib/browser/markdown/lazy.spec.d.ts.map +0 -1
- package/lib/browser/markdown/lazy.spec.js +0 -35
- package/lib/browser/markdown/lazy.spec.js.map +0 -1
- package/lib/browser/markdown/math.d.ts.map +0 -1
- package/lib/browser/markdown/math.js.map +0 -1
- package/lib/browser/markdown/math.spec.d.ts +0 -2
- package/lib/browser/markdown/math.spec.d.ts.map +0 -1
- package/lib/browser/markdown/math.spec.js +0 -24
- package/lib/browser/markdown/math.spec.js.map +0 -1
- package/lib/browser/markdown/mermaid.d.ts.map +0 -1
- package/lib/browser/markdown/mermaid.js.map +0 -1
- package/lib/browser/markdown/mermaid.spec.d.ts +0 -2
- package/lib/browser/markdown/mermaid.spec.d.ts.map +0 -1
- package/lib/browser/markdown/mermaid.spec.js +0 -21
- package/lib/browser/markdown/mermaid.spec.js.map +0 -1
- package/lib/browser/module.d.ts.map +0 -1
- package/lib/browser/module.js.map +0 -1
- package/lib/browser/notices/notices-protocol.d.ts.map +0 -1
- package/lib/browser/notices/notices-protocol.js.map +0 -1
- package/lib/browser/notices/notices.d.ts.map +0 -1
- package/lib/browser/notices/notices.js.map +0 -1
- package/lib/browser/notices/notices.spec.d.ts +0 -2
- package/lib/browser/notices/notices.spec.d.ts.map +0 -1
- package/lib/browser/notices/notices.spec.js +0 -96
- package/lib/browser/notices/notices.spec.js.map +0 -1
- package/lib/browser/pwa/pwa-protocol.d.ts.map +0 -1
- package/lib/browser/pwa/pwa-protocol.js.map +0 -1
- package/lib/browser/pwa/pwa.d.ts.map +0 -1
- package/lib/browser/pwa/pwa.js.map +0 -1
- package/lib/browser/pwa/pwa.spec.d.ts +0 -2
- package/lib/browser/pwa/pwa.spec.d.ts.map +0 -1
- package/lib/browser/pwa/pwa.spec.js +0 -134
- package/lib/browser/pwa/pwa.spec.js.map +0 -1
- package/lib/browser/settings/agent-settings.d.ts.map +0 -1
- package/lib/browser/settings/agent-settings.js.map +0 -1
- package/lib/browser/settings/agent-settings.spec.d.ts +0 -2
- package/lib/browser/settings/agent-settings.spec.d.ts.map +0 -1
- package/lib/browser/settings/agent-settings.spec.js +0 -53
- package/lib/browser/settings/agent-settings.spec.js.map +0 -1
- package/lib/browser/settings/settings-protocol.d.ts.map +0 -1
- package/lib/browser/settings/settings-protocol.js.map +0 -1
- package/lib/browser/settings/settings.d.ts.map +0 -1
- package/lib/browser/settings/settings.js.map +0 -1
- package/lib/browser/settings/settings.spec.d.ts +0 -2
- package/lib/browser/settings/settings.spec.d.ts.map +0 -1
- package/lib/browser/settings/settings.spec.js +0 -32
- package/lib/browser/settings/settings.spec.js.map +0 -1
- package/lib/browser/state/state-protocol.d.ts.map +0 -1
- package/lib/browser/state/state-protocol.js.map +0 -1
- package/lib/browser/state/state.d.ts.map +0 -1
- package/lib/browser/state/state.js.map +0 -1
- package/lib/browser/state/state.spec.d.ts +0 -2
- package/lib/browser/state/state.spec.d.ts.map +0 -1
- package/lib/browser/state/state.spec.js +0 -201
- package/lib/browser/state/state.spec.js.map +0 -1
- package/lib/browser/style/base.d.ts.map +0 -1
- package/lib/browser/style/base.js.map +0 -1
- package/lib/browser/style/conversation.d.ts.map +0 -1
- package/lib/browser/style/conversation.js.map +0 -1
- package/lib/browser/style/layout.d.ts.map +0 -1
- package/lib/browser/style/layout.js.map +0 -1
- package/lib/browser/style/pages.d.ts.map +0 -1
- package/lib/browser/style/pages.js.map +0 -1
- package/lib/browser/style/shell.d.ts.map +0 -1
- package/lib/browser/style/shell.js.map +0 -1
- package/lib/browser/style.d.ts.map +0 -1
- package/lib/browser/style.js.map +0 -1
- package/lib/browser/util/composer.d.ts.map +0 -1
- package/lib/browser/util/composer.js.map +0 -1
- package/lib/browser/util/composer.spec.d.ts +0 -2
- package/lib/browser/util/composer.spec.d.ts.map +0 -1
- package/lib/browser/util/composer.spec.js +0 -66
- package/lib/browser/util/composer.spec.js.map +0 -1
- package/lib/browser/util/diff.d.ts.map +0 -1
- package/lib/browser/util/diff.js.map +0 -1
- package/lib/browser/util/diff.spec.d.ts +0 -2
- package/lib/browser/util/diff.spec.d.ts.map +0 -1
- package/lib/browser/util/diff.spec.js +0 -21
- package/lib/browser/util/diff.spec.js.map +0 -1
- package/lib/browser/util/frame.d.ts.map +0 -1
- package/lib/browser/util/frame.js.map +0 -1
- package/lib/browser/util/frame.spec.d.ts +0 -2
- package/lib/browser/util/frame.spec.d.ts.map +0 -1
- package/lib/browser/util/frame.spec.js +0 -60
- package/lib/browser/util/frame.spec.js.map +0 -1
- package/lib/browser/util/layout.d.ts.map +0 -1
- package/lib/browser/util/layout.js.map +0 -1
- package/lib/browser/util/layout.spec.d.ts +0 -2
- package/lib/browser/util/layout.spec.d.ts.map +0 -1
- package/lib/browser/util/layout.spec.js +0 -35
- package/lib/browser/util/layout.spec.js.map +0 -1
- package/lib/browser/util/link.d.ts.map +0 -1
- package/lib/browser/util/link.js.map +0 -1
- package/lib/browser/util/link.spec.d.ts +0 -2
- package/lib/browser/util/link.spec.d.ts.map +0 -1
- package/lib/browser/util/link.spec.js +0 -101
- package/lib/browser/util/link.spec.js.map +0 -1
- package/lib/browser/util/markdown.d.ts.map +0 -1
- package/lib/browser/util/markdown.js.map +0 -1
- package/lib/browser/util/markdown.spec.d.ts +0 -2
- package/lib/browser/util/markdown.spec.d.ts.map +0 -1
- package/lib/browser/util/markdown.spec.js +0 -124
- package/lib/browser/util/markdown.spec.js.map +0 -1
- package/lib/browser/util/message.d.ts.map +0 -1
- package/lib/browser/util/message.js.map +0 -1
- package/lib/browser/util/message.spec.d.ts +0 -2
- package/lib/browser/util/message.spec.d.ts.map +0 -1
- package/lib/browser/util/message.spec.js +0 -61
- package/lib/browser/util/message.spec.js.map +0 -1
- package/lib/browser/util/process.d.ts.map +0 -1
- package/lib/browser/util/process.js.map +0 -1
- package/lib/browser/util/process.spec.d.ts +0 -2
- package/lib/browser/util/process.spec.d.ts.map +0 -1
- package/lib/browser/util/process.spec.js +0 -106
- package/lib/browser/util/process.spec.js.map +0 -1
- package/lib/browser/util/progress.d.ts.map +0 -1
- package/lib/browser/util/progress.js.map +0 -1
- package/lib/browser/util/progress.spec.d.ts +0 -2
- package/lib/browser/util/progress.spec.d.ts.map +0 -1
- package/lib/browser/util/progress.spec.js +0 -77
- package/lib/browser/util/progress.spec.js.map +0 -1
- package/lib/browser/util/qr-code.d.ts +0 -38
- package/lib/browser/util/qr-code.d.ts.map +0 -1
- package/lib/browser/util/qr-code.js +0 -353
- package/lib/browser/util/qr-code.js.map +0 -1
- package/lib/browser/util/qr-code.spec.d.ts +0 -2
- package/lib/browser/util/qr-code.spec.d.ts.map +0 -1
- package/lib/browser/util/qr-code.spec.js +0 -48
- package/lib/browser/util/qr-code.spec.js.map +0 -1
- package/lib/browser/util/tool.d.ts.map +0 -1
- package/lib/browser/util/tool.js.map +0 -1
- package/lib/browser/util/tool.spec.d.ts +0 -2
- package/lib/browser/util/tool.spec.d.ts.map +0 -1
- package/lib/browser/util/tool.spec.js +0 -73
- package/lib/browser/util/tool.spec.js.map +0 -1
- package/lib/browser/view.d.ts.map +0 -1
- package/lib/browser/view.js.map +0 -1
- package/lib/browser/workbench-protocol.d.ts.map +0 -1
- package/lib/browser/workbench-protocol.js.map +0 -1
- package/lib/browser/workbench.d.ts.map +0 -1
- package/lib/browser/workbench.js.map +0 -1
- package/lib/browser/workbench.spec.d.ts +0 -2
- package/lib/browser/workbench.spec.d.ts.map +0 -1
- package/lib/browser/workbench.spec.js +0 -34
- package/lib/browser/workbench.spec.js.map +0 -1
- package/src/browser/assistant/assistant-export.spec.ts +0 -30
- package/src/browser/assistant/assistant-export.ts +0 -41
- package/src/browser/assistant/assistant-extension.spec.ts +0 -122
- package/src/browser/assistant/assistant-extension.ts +0 -137
- package/src/browser/assistant/assistant-hooks.ts +0 -63
- package/src/browser/assistant/assistant-protocol.ts +0 -55
- package/src/browser/assistant/assistant-tasks.tsx +0 -194
- package/src/browser/assistant/assistant-view.tsx +0 -453
- package/src/browser/assistant/assistant.spec.ts +0 -80
- package/src/browser/assistant/assistant.ts +0 -315
- package/src/browser/assistant/voice.spec.ts +0 -8
- package/src/browser/assistant/voice.ts +0 -87
- package/src/browser/avatar/dino-avatar.spec.ts +0 -151
- package/src/browser/avatar/dino-avatar.ts +0 -541
- package/src/browser/avatar/dino-motion.ts +0 -313
- package/src/browser/chat/chat-protocol.ts +0 -47
- package/src/browser/chat/chat-view.tsx +0 -155
- package/src/browser/chat/chat.spec.ts +0 -194
- package/src/browser/chat/chat.ts +0 -335
- package/src/browser/components/account-menu.tsx +0 -117
- package/src/browser/components/agent-settings-view.tsx +0 -196
- package/src/browser/components/app-view.tsx +0 -555
- package/src/browser/components/auth-pictures.tsx +0 -55
- package/src/browser/components/auth-view.tsx +0 -421
- package/src/browser/components/callout.tsx +0 -33
- package/src/browser/components/chat-list.spec.ts +0 -66
- package/src/browser/components/chat-list.tsx +0 -283
- package/src/browser/components/code-editor.tsx +0 -114
- package/src/browser/components/composer-box.tsx +0 -475
- package/src/browser/components/composer-menu.tsx +0 -49
- package/src/browser/components/composer.spec.tsx +0 -130
- package/src/browser/components/composer.tsx +0 -170
- package/src/browser/components/connection-bar.tsx +0 -85
- package/src/browser/components/context-menu.tsx +0 -100
- package/src/browser/components/conversation-scroll.ts +0 -126
- package/src/browser/components/dialog-view.tsx +0 -82
- package/src/browser/components/diff-editor.tsx +0 -131
- package/src/browser/components/diff-view.tsx +0 -19
- package/src/browser/components/dino.tsx +0 -19
- package/src/browser/components/editor-area.tsx +0 -234
- package/src/browser/components/folder-picker.spec.ts +0 -47
- package/src/browser/components/folder-picker.tsx +0 -359
- package/src/browser/components/fork-view.tsx +0 -65
- package/src/browser/components/hero-cards.tsx +0 -189
- package/src/browser/components/icon.tsx +0 -62
- package/src/browser/components/link-dialog.tsx +0 -66
- package/src/browser/components/link.tsx +0 -77
- package/src/browser/components/manage-menu.tsx +0 -165
- package/src/browser/components/markdown.spec.tsx +0 -46
- package/src/browser/components/markdown.tsx +0 -155
- package/src/browser/components/math.tsx +0 -21
- package/src/browser/components/media.tsx +0 -91
- package/src/browser/components/mermaid-view.tsx +0 -105
- package/src/browser/components/message-actions.tsx +0 -89
- package/src/browser/components/message-footer.tsx +0 -128
- package/src/browser/components/message-list.spec.tsx +0 -321
- package/src/browser/components/message-list.tsx +0 -328
- package/src/browser/components/notice-center.tsx +0 -187
- package/src/browser/components/relay-view.tsx +0 -146
- package/src/browser/components/remote-hosts.tsx +0 -149
- package/src/browser/components/remote-prompts.tsx +0 -111
- package/src/browser/components/run-status.tsx +0 -70
- package/src/browser/components/session-settings.spec.tsx +0 -49
- package/src/browser/components/session-settings.tsx +0 -119
- package/src/browser/components/session-view.tsx +0 -153
- package/src/browser/components/settings-controls.tsx +0 -94
- package/src/browser/components/settings-view.tsx +0 -581
- package/src/browser/components/split-pane.tsx +0 -108
- package/src/browser/components/ta-avatar.spec.tsx +0 -27
- package/src/browser/components/ta-avatar.tsx +0 -251
- package/src/browser/components/tool-view.tsx +0 -186
- package/src/browser/components/trusted-domains.tsx +0 -60
- package/src/browser/components/web-composer.tsx +0 -61
- package/src/browser/components/web-dialog.tsx +0 -29
- package/src/browser/components/workbench-toggle.spec.tsx +0 -35
- package/src/browser/components/workbench-toggle.tsx +0 -24
- package/src/browser/components/workbench-view.tsx +0 -77
- package/src/browser/components/working-directory.tsx +0 -22
- package/src/browser/editor/monaco-loader.spec.ts +0 -39
- package/src/browser/editor/monaco-loader.ts +0 -139
- package/src/browser/editor/monaco.ts +0 -55
- package/src/browser/editor/worker-modules.d.ts +0 -5
- package/src/browser/extension/extension-view.tsx +0 -78
- package/src/browser/extension/icons.ts +0 -165
- package/src/browser/extension/web-extension-api.ts +0 -348
- package/src/browser/extension/web-extension-protocol.ts +0 -154
- package/src/browser/extension/web-extensions.spec.ts +0 -597
- package/src/browser/extension/web-extensions.ts +0 -727
- package/src/browser/hooks.ts +0 -102
- package/src/browser/i18n/locales.ts +0 -20
- package/src/browser/i18n/messages.ts +0 -926
- package/src/browser/i18n/use-t.ts +0 -21
- package/src/browser/index.ts +0 -52
- package/src/browser/links/links-protocol.ts +0 -41
- package/src/browser/links/links.spec.ts +0 -132
- package/src/browser/links/links.ts +0 -127
- package/src/browser/markdown/hooks.ts +0 -32
- package/src/browser/markdown/lazy.spec.ts +0 -34
- package/src/browser/markdown/lazy.ts +0 -46
- package/src/browser/markdown/math.spec.ts +0 -20
- package/src/browser/markdown/math.ts +0 -33
- package/src/browser/markdown/mermaid.spec.ts +0 -21
- package/src/browser/markdown/mermaid.ts +0 -89
- package/src/browser/markdown/style-modules.d.ts +0 -2
- package/src/browser/module.ts +0 -6
- package/src/browser/notices/notices-protocol.ts +0 -92
- package/src/browser/notices/notices.spec.ts +0 -99
- package/src/browser/notices/notices.ts +0 -173
- package/src/browser/pwa/pwa-protocol.ts +0 -22
- package/src/browser/pwa/pwa.spec.ts +0 -143
- package/src/browser/pwa/pwa.ts +0 -123
- package/src/browser/settings/agent-settings.spec.ts +0 -56
- package/src/browser/settings/agent-settings.ts +0 -96
- package/src/browser/settings/settings-protocol.ts +0 -75
- package/src/browser/settings/settings.spec.ts +0 -31
- package/src/browser/settings/settings.ts +0 -89
- package/src/browser/state/state-protocol.ts +0 -71
- package/src/browser/state/state.spec.ts +0 -214
- package/src/browser/state/state.ts +0 -217
- package/src/browser/style/base.ts +0 -144
- package/src/browser/style/conversation.ts +0 -200
- package/src/browser/style/layout.ts +0 -403
- package/src/browser/style/pages.ts +0 -74
- package/src/browser/style/shell.ts +0 -235
- package/src/browser/style.ts +0 -11
- package/src/browser/util/composer.spec.ts +0 -71
- package/src/browser/util/composer.ts +0 -157
- package/src/browser/util/diff.spec.ts +0 -20
- package/src/browser/util/diff.ts +0 -33
- package/src/browser/util/frame.spec.ts +0 -62
- package/src/browser/util/frame.ts +0 -54
- package/src/browser/util/layout.spec.ts +0 -37
- package/src/browser/util/layout.ts +0 -71
- package/src/browser/util/link.spec.ts +0 -104
- package/src/browser/util/link.ts +0 -237
- package/src/browser/util/markdown.spec.ts +0 -133
- package/src/browser/util/markdown.ts +0 -347
- package/src/browser/util/message.spec.ts +0 -65
- package/src/browser/util/message.ts +0 -191
- package/src/browser/util/process.spec.ts +0 -133
- package/src/browser/util/process.ts +0 -166
- package/src/browser/util/progress.spec.ts +0 -86
- package/src/browser/util/progress.ts +0 -170
- package/src/browser/util/qr-code.spec.ts +0 -49
- package/src/browser/util/qr-code.ts +0 -371
- package/src/browser/util/tool.spec.ts +0 -78
- package/src/browser/util/tool.ts +0 -190
- package/src/browser/view.ts +0 -6
- package/src/browser/workbench-protocol.ts +0 -74
- package/src/browser/workbench.spec.ts +0 -37
- package/src/browser/workbench.ts +0 -326
- /package/{src/browser/public → public}/icons/apple-touch-icon.png +0 -0
- /package/{src/browser/public → public}/icons/icon-192.png +0 -0
- /package/{src/browser/public → public}/icons/icon-512.png +0 -0
- /package/{src/browser/public → public}/icons/icon.svg +0 -0
- /package/{src/browser/public → public}/icons/maskable-512.png +0 -0
- /package/{src/browser/public → public}/manifest.webmanifest +0 -0
- /package/{src/browser/public → public}/sw.js +0 -0
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const bun_test_1 = require("bun:test");
|
|
4
|
-
const process_1 = require("./process");
|
|
5
|
-
const messages = (...list) => list;
|
|
6
|
-
const user = (text) => ({ role: 'user', content: text });
|
|
7
|
-
const call = (id, name = 'bash') => ({ type: 'toolCall', id, name, arguments: {} });
|
|
8
|
-
const result = (id) => ({ role: 'toolResult', toolCallId: id, content: [{ type: 'text', text: 'ok' }] });
|
|
9
|
-
(0, bun_test_1.describe)('ProcessUtil', () => {
|
|
10
|
-
(0, bun_test_1.it)('folds thinking, tool calls and the text on the way into the work of a turn, and keeps the last text as the reply', () => {
|
|
11
|
-
const items = process_1.ProcessUtil.items(messages(user('fix it'), { role: 'assistant', content: [{ type: 'thinking', thinking: 'look first' }, { type: 'text', text: 'Reading.' }, call('c1', 'read')] }, result('c1'), { role: 'assistant', content: [call('c2', 'edit')] }, result('c2'), {
|
|
12
|
-
role: 'assistant',
|
|
13
|
-
content: [
|
|
14
|
-
{ type: 'thinking', thinking: 'done?' },
|
|
15
|
-
{ type: 'text', text: 'Fixed.' },
|
|
16
|
-
],
|
|
17
|
-
stopReason: 'stop',
|
|
18
|
-
}), false);
|
|
19
|
-
(0, bun_test_1.expect)(items.map(item => item.kind)).toEqual(['message', 'turn']);
|
|
20
|
-
const turn = items[1];
|
|
21
|
-
(0, bun_test_1.expect)(turn.steps.map(step => step.kind)).toEqual(['thinking', 'text', 'tool', 'tool', 'thinking']);
|
|
22
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.tools(turn.steps).map(block => block.id)).toEqual(['c1', 'c2']);
|
|
23
|
-
(0, bun_test_1.expect)(turn.reply).toEqual(['Fixed.']);
|
|
24
|
-
(0, bun_test_1.expect)(turn.messages).toHaveLength(5);
|
|
25
|
-
(0, bun_test_1.expect)(turn.last.stopReason).toBe('stop');
|
|
26
|
-
(0, bun_test_1.expect)(turn.active).toBe(false);
|
|
27
|
-
});
|
|
28
|
-
(0, bun_test_1.it)('has no work for a plain answer, and no reply while the last thing is a tool call', () => {
|
|
29
|
-
const plain = process_1.ProcessUtil.items(messages(user('hi'), { role: 'assistant', content: [{ type: 'text', text: 'Hello' }] }), false)[1];
|
|
30
|
-
(0, bun_test_1.expect)(plain.steps).toEqual([]);
|
|
31
|
-
(0, bun_test_1.expect)(plain.reply).toEqual(['Hello']);
|
|
32
|
-
const running = process_1.ProcessUtil.items(messages(user('go'), { role: 'assistant', content: [{ type: 'text', text: 'On it' }, call('c1')] }), true)[1];
|
|
33
|
-
(0, bun_test_1.expect)(running.reply).toEqual([]);
|
|
34
|
-
(0, bun_test_1.expect)(running.steps.map(step => step.kind)).toEqual(['text', 'tool']);
|
|
35
|
-
(0, bun_test_1.expect)(running.active).toBe(true);
|
|
36
|
-
});
|
|
37
|
-
(0, bun_test_1.it)('is active only for the last turn while the agent works, and a message of the user splits turns', () => {
|
|
38
|
-
const items = process_1.ProcessUtil.items(messages(user('a'), { role: 'assistant', content: [call('c1')] }, result('c1'), user('steer'), { role: 'assistant', content: [] }), true);
|
|
39
|
-
(0, bun_test_1.expect)(items.map(item => (item.kind === 'turn' ? `turn:${item.active}` : 'message'))).toEqual(['message', 'turn:false', 'message', 'turn:true']);
|
|
40
|
-
});
|
|
41
|
-
(0, bun_test_1.it)('has the turn of an answer that has not come yet, under the key the answer takes', () => {
|
|
42
|
-
const asked = messages(user('a'));
|
|
43
|
-
const waiting = process_1.ProcessUtil.items(asked, true);
|
|
44
|
-
(0, bun_test_1.expect)(waiting.map(item => item.kind)).toEqual(['message', 'turn']);
|
|
45
|
-
(0, bun_test_1.expect)(waiting[1]).toMatchObject({ key: 't1', steps: [], reply: [], active: true });
|
|
46
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.items(messages(...asked, { role: 'assistant', content: [] }), true)[1].key).toBe('t1');
|
|
47
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.items(asked, false)).toHaveLength(1);
|
|
48
|
-
});
|
|
49
|
-
(0, bun_test_1.it)('gives items keys that stay while the conversation grows', () => {
|
|
50
|
-
const first = messages(user('a'), { role: 'assistant', content: [call('c1')] });
|
|
51
|
-
const grown = messages(...first, result('c1'), { role: 'assistant', content: [{ type: 'text', text: 'ok' }] }, user('b'));
|
|
52
|
-
const keys = process_1.ProcessUtil.items(first, true).map(item => item.key);
|
|
53
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.items(grown, false)
|
|
54
|
-
.map(item => item.key)
|
|
55
|
-
.slice(0, keys.length)).toEqual(keys);
|
|
56
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.items(first, true)[1]).toMatchObject({ steps: [{ key: 'c1' }] });
|
|
57
|
-
});
|
|
58
|
-
(0, bun_test_1.it)('tells items apart by the identity of their messages, so that unchanged ones are not drawn again', () => {
|
|
59
|
-
const list = messages(user('a'), { role: 'assistant', content: [call('c1')] }, result('c1'));
|
|
60
|
-
const before = process_1.ProcessUtil.items(list, true);
|
|
61
|
-
const after = process_1.ProcessUtil.items([...list], true);
|
|
62
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.same(before[0], after[0])).toBe(true);
|
|
63
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.same(before[1], after[1])).toBe(true);
|
|
64
|
-
const changed = process_1.ProcessUtil.items([list[0], { ...list[1] }, list[2]], true);
|
|
65
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.same(before[1], changed[1])).toBe(false);
|
|
66
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.same(before[1], process_1.ProcessUtil.items(list, false)[1])).toBe(false);
|
|
67
|
-
});
|
|
68
|
-
(0, bun_test_1.it)('shows the latest steps while it works, unless only one or two would fold', () => {
|
|
69
|
-
const steps = Array.from({ length: 12 }, (_, index) => ({ kind: 'text', key: String(index), text: '' }));
|
|
70
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.fold(steps, true, false)).toMatchObject({ hidden: 4 });
|
|
71
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.fold(steps, true, false).steps[0].key).toBe('4');
|
|
72
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.fold(steps.slice(0, 10), true, false).hidden).toBe(0);
|
|
73
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.fold(steps, false, false).hidden).toBe(0);
|
|
74
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.fold(steps, true, true).hidden).toBe(0);
|
|
75
|
-
});
|
|
76
|
-
(0, bun_test_1.it)('previews a thought in one line without markdown', () => {
|
|
77
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.preview('**Plan**\n- read `a.ts`\n- fix')).toBe('Plan - read a.ts - fix');
|
|
78
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.preview('x'.repeat(10), 5)).toBe('xxxx…');
|
|
79
|
-
});
|
|
80
|
-
(0, bun_test_1.it)('knows whether ta thinks, works or writes', () => {
|
|
81
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.phase(messages(user('a')))).toBe('thinking');
|
|
82
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.phase(messages({ role: 'assistant', content: [{ type: 'thinking', thinking: '' }] }))).toBe('thinking');
|
|
83
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.phase(messages({ role: 'assistant', content: [call('c1')] }))).toBe('working');
|
|
84
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.phase(messages({ role: 'assistant', content: [{ type: 'text', text: 'a' }] }))).toBe('writing');
|
|
85
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.phase(messages({ role: 'assistant', content: [call('c1')] }, result('c1')))).toBe('thinking');
|
|
86
|
-
});
|
|
87
|
-
(0, bun_test_1.it)('shows on the face of ta what a turn did: at work, done, needing you after an error, calm before', () => {
|
|
88
|
-
const turn = (last, active = false) => ({
|
|
89
|
-
kind: 'turn',
|
|
90
|
-
key: 't',
|
|
91
|
-
messages: [last],
|
|
92
|
-
steps: [],
|
|
93
|
-
reply: [],
|
|
94
|
-
last: last,
|
|
95
|
-
active,
|
|
96
|
-
});
|
|
97
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.mood(turn({ role: 'assistant', content: [call('c1')] }, true), true, false)).toBe('working');
|
|
98
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.mood(turn({ role: 'assistant', content: [{ type: 'text', text: 'a' }] }, true), true, false)).toBe('speaking');
|
|
99
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.mood(turn({ role: 'assistant', content: [] }, true), true, true)).toBe('attention');
|
|
100
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.mood(turn({ role: 'assistant', content: [], stopReason: 'stop' }), true, false)).toBe('done');
|
|
101
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.mood(turn({ role: 'assistant', content: [], stopReason: 'stop' }), false, false)).toBe('idle');
|
|
102
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.mood(turn({ role: 'assistant', content: [], stopReason: 'error' }), false, false)).toBe('attention');
|
|
103
|
-
(0, bun_test_1.expect)(process_1.ProcessUtil.mood(turn({ role: 'assistant', content: [], stopReason: 'aborted' }), true, false)).toBe('idle');
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
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AJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,mCAAI,CAAC,CAAC,GAAG,OAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,mCAAI,CAAC,CAAC,CAAC;gBACvD,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;oBAC5B,KAAK,UAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,mCAAI,IAAI,CAAC,SAAS,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC,MAAM,CAAC;gBACtE,CAAC;YACL,CAAC;QACL,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC,EA5HgB,YAAY,aAAZ,YAAY,GAAZ,YAAY,QA4H5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.spec.d.ts","sourceRoot":"","sources":["../../../src/browser/util/progress.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const bun_test_1 = require("bun:test");
|
|
4
|
-
const ta_client_1 = require("@celljs/ta-client");
|
|
5
|
-
const progress_1 = require("./progress");
|
|
6
|
-
const state = (messages, change = {}) => ({
|
|
7
|
-
...ta_client_1.SessionReducer.initial(),
|
|
8
|
-
working: true,
|
|
9
|
-
messages: messages,
|
|
10
|
-
...change,
|
|
11
|
-
});
|
|
12
|
-
const user = (text) => ({ role: 'user', content: [{ type: 'text', text }] });
|
|
13
|
-
const usage = (input, output, cacheRead = 0) => ({ input, output, cacheRead, cacheWrite: 0 });
|
|
14
|
-
(0, bun_test_1.describe)('ProgressUtil', () => {
|
|
15
|
-
(0, bun_test_1.it)('says what ta does now, from the last block of the conversation', () => {
|
|
16
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.phase(state([user('hi')]))).toEqual({ kind: 'waiting' });
|
|
17
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.phase(state([user('hi'), { role: 'assistant', content: [] }]))).toEqual({ kind: 'waiting' });
|
|
18
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.phase(state([user('hi'), { role: 'assistant', content: [{ type: 'thinking', thinking: 'hm' }] }]))).toEqual({ kind: 'thinking' });
|
|
19
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.phase(state([user('hi'), { role: 'assistant', content: [{ type: 'text', text: 'So' }] }]))).toEqual({ kind: 'writing' });
|
|
20
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.phase(state([user('hi'), { role: 'assistant', content: [{ type: 'toolCall', name: 'bash', arguments: {} }] }]))).toEqual({
|
|
21
|
-
kind: 'calling',
|
|
22
|
-
tool: 'bash',
|
|
23
|
-
});
|
|
24
|
-
// A tool has answered: the next request is the model's.
|
|
25
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.phase(state([user('hi'), { role: 'assistant', content: [], stopReason: 'toolUse' }, { role: 'toolResult', content: [] }]))).toEqual({
|
|
26
|
-
kind: 'waiting',
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
(0, bun_test_1.it)('puts a running tool, a dialog, a compaction and a retry before what the model does', () => {
|
|
30
|
-
const tools = { c1: { toolName: 'bash', args: { command: 'npm test' }, status: 'running' } };
|
|
31
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.phase(state([user('hi')], { tools }))).toMatchObject({ kind: 'tool', summary: { verb: 'ta.tool.verb.bash', target: 'npm test' } });
|
|
32
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.phase(state([user('hi')], { compacting: 'overflow' })).kind).toBe('compacting');
|
|
33
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.phase(state([user('hi')], { retry: { attempt: 2, maxAttempts: 3, delayMs: 4000, errorMessage: 'e' } }))).toEqual({
|
|
34
|
-
kind: 'retrying',
|
|
35
|
-
attempt: 2,
|
|
36
|
-
maxAttempts: 3,
|
|
37
|
-
seconds: 4,
|
|
38
|
-
});
|
|
39
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.phase(state([user('hi')], { tools, pendingUi: [{ id: 'u', method: 'confirm' }] })).kind).toBe('attention');
|
|
40
|
-
});
|
|
41
|
-
(0, bun_test_1.it)('counts the tokens of the run: what the model counted, and an estimate for what it has not counted yet', () => {
|
|
42
|
-
const before = [user('old'), { role: 'assistant', content: [{ type: 'text', text: 'done' }], usage: usage(1000, 100) }];
|
|
43
|
-
// Sent: the context of the last request, its answer and the new message, which has 8 characters.
|
|
44
|
-
const sent = state([...before, user('12345678')], { runStart: 2 });
|
|
45
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.tokens(sent)).toEqual({ input: 1102, output: 0 });
|
|
46
|
-
// The model streams 40 characters and has counted nothing yet.
|
|
47
|
-
const streaming = state([...sent.messages, { role: 'assistant', content: [{ type: 'text', text: 'x'.repeat(40) }], usage: usage(0, 0) }], {
|
|
48
|
-
runStart: 2,
|
|
49
|
-
});
|
|
50
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.tokens(streaming)).toEqual({ input: 1102, output: 10 });
|
|
51
|
-
// It has: its count, with the cache, wins; a second request adds its own context.
|
|
52
|
-
const counted = state([
|
|
53
|
-
...sent.messages,
|
|
54
|
-
{ role: 'assistant', content: [{ type: 'toolCall', name: 'bash', arguments: {} }], usage: usage(100, 30, 1000), stopReason: 'toolUse' },
|
|
55
|
-
{ role: 'toolResult', content: [{ type: 'text', text: 'y'.repeat(400) }] },
|
|
56
|
-
], { runStart: 2 });
|
|
57
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.tokens(counted)).toEqual({ input: 1100 + 1130 + 100, output: 30 });
|
|
58
|
-
// The model has begun its answer to that request, and has said nothing yet: it counts once.
|
|
59
|
-
const begun = state([...counted.messages, { role: 'assistant', content: [], usage: usage(0, 0) }], { runStart: 2 });
|
|
60
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.tokens(begun)).toEqual(progress_1.ProgressUtil.tokens(counted));
|
|
61
|
-
});
|
|
62
|
-
(0, bun_test_1.it)('sends nothing it knows of before the model has counted a request of the session', () => {
|
|
63
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.tokens(state([user('hello')], { runStart: 0 }))).toEqual({ input: 0, output: 0 });
|
|
64
|
-
});
|
|
65
|
-
(0, bun_test_1.it)('starts the run after the last message of the user when it did not see it start', () => {
|
|
66
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.runStart(state([user('a'), { role: 'assistant', content: [] }, user('b')]))).toBe(2);
|
|
67
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.runStart(state([user('a'), user('b')], { runStart: 1 }))).toBe(1);
|
|
68
|
-
});
|
|
69
|
-
(0, bun_test_1.it)('writes counts short', () => {
|
|
70
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.format(999)).toBe('999');
|
|
71
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.format(1000)).toBe('1k');
|
|
72
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.format(23456)).toBe('23.5k');
|
|
73
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.format(123456)).toBe('123k');
|
|
74
|
-
(0, bun_test_1.expect)(progress_1.ProgressUtil.format(1250000)).toBe('1.3M');
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
//# sourceMappingURL=progress.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.spec.js","sourceRoot":"","sources":["../../../src/browser/util/progress.spec.ts"],"names":[],"mappings":";;AAAA,uCAAgD;AAChD,iDAAsE;AACtE,yCAA0C;AAE1C,MAAM,KAAK,GAAG,CAAC,QAAmB,EAAE,MAAM,GAA0B,EAAE,EAAgB,EAAE,CAAC,CAAC;IACtF,GAAG,0BAAc,CAAC,OAAO,EAAE;IAC3B,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,QAAiB;IAC3B,GAAG,MAAM;CAC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AC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACzG,IAAA,iBAAM,EAAC,uBAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1F,CAAC,CAAC,CAAC;IAEH,IAAA,aAAE,EAAC,qBAAqB,EAAE,GAAG,EAAE;QAC3B,IAAA,iBAAM,EAAC,uBAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAA,iBAAM,EAAC,uBAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAA,iBAAM,EAAC,uBAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,IAAA,iBAAM,EAAC,uBAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,IAAA,iBAAM,EAAC,uBAAY,CAAC,MAAM,CAAC,OAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A QR code (ISO/IEC 18004) of a text, in byte mode with the error correction level M, in the smallest
|
|
3
|
-
* version that holds it. Enough for a link a phone scans; written here rather than taken from a package.
|
|
4
|
-
* The steps and tables follow the standard, as does the well-known reference implementation by Nayuki.
|
|
5
|
-
*/
|
|
6
|
-
export declare class QrCode {
|
|
7
|
-
readonly version: number;
|
|
8
|
-
/** Codewords for error correction per block, and blocks, at level M, by version (index 0 unused). */
|
|
9
|
-
protected static readonly ECC_PER_BLOCK: number[];
|
|
10
|
-
protected static readonly BLOCKS: number[];
|
|
11
|
-
/** Level M in the format bits. */
|
|
12
|
-
protected static readonly ECC_FORMAT = 0;
|
|
13
|
-
readonly size: number;
|
|
14
|
-
protected readonly modules: boolean[][];
|
|
15
|
-
protected readonly reserved: boolean[][];
|
|
16
|
-
protected constructor(version: number, data: number[]);
|
|
17
|
-
/** Throws when the text is too long for any version. */
|
|
18
|
-
static encode(text: string): QrCode;
|
|
19
|
-
isDark(x: number, y: number): boolean;
|
|
20
|
-
/** The code as an SVG path of its dark modules, one unit each, without the quiet zone. */
|
|
21
|
-
path(): string;
|
|
22
|
-
protected static rawModules(version: number): number;
|
|
23
|
-
protected static dataCodewords(version: number): number;
|
|
24
|
-
protected alignmentPositions(): number[];
|
|
25
|
-
protected set(x: number, y: number, dark: boolean): void;
|
|
26
|
-
protected drawPatterns(): void;
|
|
27
|
-
protected drawFormat(mask: number): void;
|
|
28
|
-
/** The data split into blocks, each with its Reed-Solomon codewords, interleaved. */
|
|
29
|
-
protected withEcc(data: number[]): number[];
|
|
30
|
-
protected drawCodewords(codewords: number[]): void;
|
|
31
|
-
protected applyMask(mask: number): void;
|
|
32
|
-
/** How hard the code is to read with a mask: long runs, blocks, finder-like patterns, imbalance. */
|
|
33
|
-
protected penalty(): number;
|
|
34
|
-
protected static multiply(x: number, y: number): number;
|
|
35
|
-
protected static reedSolomonDivisor(degree: number): number[];
|
|
36
|
-
protected static reedSolomonRemainder(data: number[], divisor: number[]): number[];
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=qr-code.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"qr-code.d.ts","sourceR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,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CA4B1C;IAED,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAkBjD;IAED,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAqBtC;IAED,oGAAoG;IACpG,SAAS,CAAC,OAAO,IAAI,MAAM,CAiD1B;IAED,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAOtD;IAED,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAc5D;IAED,SAAS,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAUjF;CACJ"}
|
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QrCode = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* A QR code (ISO/IEC 18004) of a text, in byte mode with the error correction level M, in the smallest
|
|
6
|
-
* version that holds it. Enough for a link a phone scans; written here rather than taken from a package.
|
|
7
|
-
* The steps and tables follow the standard, as does the well-known reference implementation by Nayuki.
|
|
8
|
-
*/
|
|
9
|
-
class QrCode {
|
|
10
|
-
constructor(version, data) {
|
|
11
|
-
this.version = version;
|
|
12
|
-
this.size = version * 4 + 17;
|
|
13
|
-
this.modules = Array.from({ length: this.size }, () => new Array(this.size).fill(false));
|
|
14
|
-
this.reserved = Array.from({ length: this.size }, () => new Array(this.size).fill(false));
|
|
15
|
-
this.drawPatterns();
|
|
16
|
-
this.drawCodewords(this.withEcc(data));
|
|
17
|
-
let best = 0;
|
|
18
|
-
let lowest = Number.POSITIVE_INFINITY;
|
|
19
|
-
for (let mask = 0; mask < 8; mask++) {
|
|
20
|
-
this.applyMask(mask);
|
|
21
|
-
this.drawFormat(mask);
|
|
22
|
-
const penalty = this.penalty();
|
|
23
|
-
if (penalty < lowest) {
|
|
24
|
-
best = mask;
|
|
25
|
-
lowest = penalty;
|
|
26
|
-
}
|
|
27
|
-
this.applyMask(mask);
|
|
28
|
-
}
|
|
29
|
-
this.applyMask(best);
|
|
30
|
-
this.drawFormat(best);
|
|
31
|
-
}
|
|
32
|
-
/** Throws when the text is too long for any version. */
|
|
33
|
-
static encode(text) {
|
|
34
|
-
const bytes = [...new TextEncoder().encode(text)];
|
|
35
|
-
for (let version = 1; version <= 40; version++) {
|
|
36
|
-
const capacity = QrCode.dataCodewords(version) * 8;
|
|
37
|
-
const countBits = version <= 9 ? 8 : 16;
|
|
38
|
-
const used = 4 + countBits + bytes.length * 8;
|
|
39
|
-
if (used <= capacity) {
|
|
40
|
-
const bits = [];
|
|
41
|
-
const push = (value, length) => {
|
|
42
|
-
for (let i = length - 1; i >= 0; i--) {
|
|
43
|
-
bits.push((value >>> i) & 1);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
push(0b0100, 4);
|
|
47
|
-
push(bytes.length, countBits);
|
|
48
|
-
for (const byte of bytes) {
|
|
49
|
-
push(byte, 8);
|
|
50
|
-
}
|
|
51
|
-
push(0, Math.min(4, capacity - bits.length));
|
|
52
|
-
push(0, (8 - (bits.length % 8)) % 8);
|
|
53
|
-
for (let pad = 0xec; bits.length < capacity; pad ^= 0xec ^ 0x11) {
|
|
54
|
-
push(pad, 8);
|
|
55
|
-
}
|
|
56
|
-
const data = [];
|
|
57
|
-
for (let i = 0; i < bits.length; i += 8) {
|
|
58
|
-
data.push(bits.slice(i, i + 8).reduce((byte, bit) => (byte << 1) | bit, 0));
|
|
59
|
-
}
|
|
60
|
-
return new QrCode(version, data);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
throw new Error('The text is too long for a QR code.');
|
|
64
|
-
}
|
|
65
|
-
isDark(x, y) {
|
|
66
|
-
return this.modules[y][x];
|
|
67
|
-
}
|
|
68
|
-
/** The code as an SVG path of its dark modules, one unit each, without the quiet zone. */
|
|
69
|
-
path() {
|
|
70
|
-
let d = '';
|
|
71
|
-
for (let y = 0; y < this.size; y++) {
|
|
72
|
-
for (let x = 0; x < this.size; x++) {
|
|
73
|
-
if (this.modules[y][x]) {
|
|
74
|
-
d += `M${x} ${y}h1v1h-1z`;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return d;
|
|
79
|
-
}
|
|
80
|
-
static rawModules(version) {
|
|
81
|
-
let result = (16 * version + 128) * version + 64;
|
|
82
|
-
if (version >= 2) {
|
|
83
|
-
const align = Math.floor(version / 7) + 2;
|
|
84
|
-
result -= (25 * align - 10) * align - 55;
|
|
85
|
-
if (version >= 7) {
|
|
86
|
-
result -= 36;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return result;
|
|
90
|
-
}
|
|
91
|
-
static dataCodewords(version) {
|
|
92
|
-
return Math.floor(QrCode.rawModules(version) / 8) - QrCode.ECC_PER_BLOCK[version] * QrCode.BLOCKS[version];
|
|
93
|
-
}
|
|
94
|
-
alignmentPositions() {
|
|
95
|
-
if (this.version === 1) {
|
|
96
|
-
return [];
|
|
97
|
-
}
|
|
98
|
-
const count = Math.floor(this.version / 7) + 2;
|
|
99
|
-
const step = this.version === 32 ? 26 : Math.ceil((this.version * 4 + 4) / (count * 2 - 2)) * 2;
|
|
100
|
-
const result = [6];
|
|
101
|
-
for (let position = this.size - 7; result.length < count; position -= step) {
|
|
102
|
-
result.splice(1, 0, position);
|
|
103
|
-
}
|
|
104
|
-
return result;
|
|
105
|
-
}
|
|
106
|
-
set(x, y, dark) {
|
|
107
|
-
this.modules[y][x] = dark;
|
|
108
|
-
this.reserved[y][x] = true;
|
|
109
|
-
}
|
|
110
|
-
drawPatterns() {
|
|
111
|
-
for (let i = 0; i < this.size; i++) {
|
|
112
|
-
this.set(6, i, i % 2 === 0);
|
|
113
|
-
this.set(i, 6, i % 2 === 0);
|
|
114
|
-
}
|
|
115
|
-
const finder = (cx, cy) => {
|
|
116
|
-
for (let dy = -4; dy <= 4; dy++) {
|
|
117
|
-
for (let dx = -4; dx <= 4; dx++) {
|
|
118
|
-
const x = cx + dx;
|
|
119
|
-
const y = cy + dy;
|
|
120
|
-
if (x >= 0 && x < this.size && y >= 0 && y < this.size) {
|
|
121
|
-
const distance = Math.max(Math.abs(dx), Math.abs(dy));
|
|
122
|
-
this.set(x, y, distance !== 2 && distance !== 4);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
finder(3, 3);
|
|
128
|
-
finder(this.size - 4, 3);
|
|
129
|
-
finder(3, this.size - 4);
|
|
130
|
-
const positions = this.alignmentPositions();
|
|
131
|
-
for (let i = 0; i < positions.length; i++) {
|
|
132
|
-
for (let j = 0; j < positions.length; j++) {
|
|
133
|
-
const corner = (i === 0 && j === 0) || (i === 0 && j === positions.length - 1) || (i === positions.length - 1 && j === 0);
|
|
134
|
-
if (!corner) {
|
|
135
|
-
for (let dy = -2; dy <= 2; dy++) {
|
|
136
|
-
for (let dx = -2; dx <= 2; dx++) {
|
|
137
|
-
this.set(positions[i] + dx, positions[j] + dy, Math.max(Math.abs(dx), Math.abs(dy)) !== 1);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
// Reserved now, drawn with each mask.
|
|
144
|
-
this.drawFormat(0);
|
|
145
|
-
if (this.version >= 7) {
|
|
146
|
-
let rem = this.version;
|
|
147
|
-
for (let i = 0; i < 12; i++) {
|
|
148
|
-
rem = (rem << 1) ^ ((rem >>> 11) * 0x1f25);
|
|
149
|
-
}
|
|
150
|
-
const bits = (this.version << 12) | rem;
|
|
151
|
-
for (let i = 0; i < 18; i++) {
|
|
152
|
-
const dark = ((bits >>> i) & 1) !== 0;
|
|
153
|
-
const a = this.size - 11 + (i % 3);
|
|
154
|
-
const b = Math.floor(i / 3);
|
|
155
|
-
this.set(a, b, dark);
|
|
156
|
-
this.set(b, a, dark);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
drawFormat(mask) {
|
|
161
|
-
const data = (QrCode.ECC_FORMAT << 3) | mask;
|
|
162
|
-
let rem = data;
|
|
163
|
-
for (let i = 0; i < 10; i++) {
|
|
164
|
-
rem = (rem << 1) ^ ((rem >>> 9) * 0x537);
|
|
165
|
-
}
|
|
166
|
-
const bits = ((data << 10) | rem) ^ 0x5412;
|
|
167
|
-
const bit = (i) => ((bits >>> i) & 1) !== 0;
|
|
168
|
-
for (let i = 0; i <= 5; i++) {
|
|
169
|
-
this.set(8, i, bit(i));
|
|
170
|
-
}
|
|
171
|
-
this.set(8, 7, bit(6));
|
|
172
|
-
this.set(8, 8, bit(7));
|
|
173
|
-
this.set(7, 8, bit(8));
|
|
174
|
-
for (let i = 9; i < 15; i++) {
|
|
175
|
-
this.set(14 - i, 8, bit(i));
|
|
176
|
-
}
|
|
177
|
-
for (let i = 0; i < 8; i++) {
|
|
178
|
-
this.set(this.size - 1 - i, 8, bit(i));
|
|
179
|
-
}
|
|
180
|
-
for (let i = 8; i < 15; i++) {
|
|
181
|
-
this.set(8, this.size - 15 + i, bit(i));
|
|
182
|
-
}
|
|
183
|
-
this.set(8, this.size - 8, true);
|
|
184
|
-
}
|
|
185
|
-
/** The data split into blocks, each with its Reed-Solomon codewords, interleaved. */
|
|
186
|
-
withEcc(data) {
|
|
187
|
-
const blocks = QrCode.BLOCKS[this.version];
|
|
188
|
-
const eccLength = QrCode.ECC_PER_BLOCK[this.version];
|
|
189
|
-
const raw = Math.floor(QrCode.rawModules(this.version) / 8);
|
|
190
|
-
const shortBlocks = blocks - (raw % blocks);
|
|
191
|
-
const shortLength = Math.floor(raw / blocks);
|
|
192
|
-
const divisor = QrCode.reedSolomonDivisor(eccLength);
|
|
193
|
-
const all = [];
|
|
194
|
-
for (let i = 0, k = 0; i < blocks; i++) {
|
|
195
|
-
const dataLength = shortLength - eccLength + (i < shortBlocks ? 0 : 1);
|
|
196
|
-
const block = data.slice(k, k + dataLength);
|
|
197
|
-
k += dataLength;
|
|
198
|
-
const ecc = QrCode.reedSolomonRemainder(block, divisor);
|
|
199
|
-
if (i < shortBlocks) {
|
|
200
|
-
block.push(0);
|
|
201
|
-
}
|
|
202
|
-
all.push([...block, ...ecc]);
|
|
203
|
-
}
|
|
204
|
-
const result = [];
|
|
205
|
-
for (let i = 0; i < all[0].length; i++) {
|
|
206
|
-
for (let j = 0; j < all.length; j++) {
|
|
207
|
-
// The padding byte of a short block is not sent.
|
|
208
|
-
if (i !== shortLength - eccLength || j >= shortBlocks) {
|
|
209
|
-
result.push(all[j][i]);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
return result;
|
|
214
|
-
}
|
|
215
|
-
drawCodewords(codewords) {
|
|
216
|
-
let i = 0;
|
|
217
|
-
for (let right = this.size - 1; right >= 1; right -= 2) {
|
|
218
|
-
if (right === 6) {
|
|
219
|
-
right = 5;
|
|
220
|
-
}
|
|
221
|
-
for (let vertical = 0; vertical < this.size; vertical++) {
|
|
222
|
-
for (let j = 0; j < 2; j++) {
|
|
223
|
-
const x = right - j;
|
|
224
|
-
const upward = ((right + 1) & 2) === 0;
|
|
225
|
-
const y = upward ? this.size - 1 - vertical : vertical;
|
|
226
|
-
if (!this.reserved[y][x] && i < codewords.length * 8) {
|
|
227
|
-
this.modules[y][x] = ((codewords[i >>> 3] >>> (7 - (i & 7))) & 1) !== 0;
|
|
228
|
-
i++;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
applyMask(mask) {
|
|
235
|
-
for (let y = 0; y < this.size; y++) {
|
|
236
|
-
for (let x = 0; x < this.size; x++) {
|
|
237
|
-
if (this.reserved[y][x]) {
|
|
238
|
-
continue;
|
|
239
|
-
}
|
|
240
|
-
const flip = [
|
|
241
|
-
(x + y) % 2,
|
|
242
|
-
y % 2,
|
|
243
|
-
x % 3,
|
|
244
|
-
(x + y) % 3,
|
|
245
|
-
(Math.floor(x / 3) + Math.floor(y / 2)) % 2,
|
|
246
|
-
((x * y) % 2) + ((x * y) % 3),
|
|
247
|
-
(((x * y) % 2) + ((x * y) % 3)) % 2,
|
|
248
|
-
(((x + y) % 2) + ((x * y) % 3)) % 2,
|
|
249
|
-
][mask];
|
|
250
|
-
if (flip === 0) {
|
|
251
|
-
this.modules[y][x] = !this.modules[y][x];
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
/** How hard the code is to read with a mask: long runs, blocks, finder-like patterns, imbalance. */
|
|
257
|
-
penalty() {
|
|
258
|
-
let result = 0;
|
|
259
|
-
const line = (get) => {
|
|
260
|
-
for (let i = 0; i < this.size; i++) {
|
|
261
|
-
let run = 1;
|
|
262
|
-
const seen = [];
|
|
263
|
-
for (let j = 0; j < this.size; j++) {
|
|
264
|
-
const dark = get(i, j);
|
|
265
|
-
if (j > 0 && dark === get(i, j - 1)) {
|
|
266
|
-
run++;
|
|
267
|
-
if (run === 5) {
|
|
268
|
-
result += 3;
|
|
269
|
-
}
|
|
270
|
-
else if (run > 5) {
|
|
271
|
-
result++;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
run = 1;
|
|
276
|
-
}
|
|
277
|
-
seen.push(dark);
|
|
278
|
-
}
|
|
279
|
-
const text = seen.map(dark => (dark ? '1' : '0')).join('');
|
|
280
|
-
for (const pattern of ['10111010000', '00001011101']) {
|
|
281
|
-
for (let at = text.indexOf(pattern); at >= 0; at = text.indexOf(pattern, at + 1)) {
|
|
282
|
-
result += 40;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
line((i, j) => this.modules[i][j]);
|
|
288
|
-
line((i, j) => this.modules[j][i]);
|
|
289
|
-
let dark = 0;
|
|
290
|
-
for (let y = 0; y < this.size; y++) {
|
|
291
|
-
for (let x = 0; x < this.size; x++) {
|
|
292
|
-
const value = this.modules[y][x];
|
|
293
|
-
dark += value ? 1 : 0;
|
|
294
|
-
if (x < this.size - 1 &&
|
|
295
|
-
y < this.size - 1 &&
|
|
296
|
-
value === this.modules[y][x + 1] &&
|
|
297
|
-
value === this.modules[y + 1][x] &&
|
|
298
|
-
value === this.modules[y + 1][x + 1]) {
|
|
299
|
-
result += 3;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
const total = this.size * this.size;
|
|
304
|
-
result += Math.floor(Math.abs(dark * 20 - total * 10) / total) * 10;
|
|
305
|
-
return result;
|
|
306
|
-
}
|
|
307
|
-
static multiply(x, y) {
|
|
308
|
-
let z = 0;
|
|
309
|
-
for (let i = 7; i >= 0; i--) {
|
|
310
|
-
z = (z << 1) ^ ((z >>> 7) * 0x11d);
|
|
311
|
-
z ^= ((y >>> i) & 1) * x;
|
|
312
|
-
}
|
|
313
|
-
return z & 0xff;
|
|
314
|
-
}
|
|
315
|
-
static reedSolomonDivisor(degree) {
|
|
316
|
-
const result = new Array(degree).fill(0);
|
|
317
|
-
result[degree - 1] = 1;
|
|
318
|
-
let root = 1;
|
|
319
|
-
for (let i = 0; i < degree; i++) {
|
|
320
|
-
for (let j = 0; j < result.length; j++) {
|
|
321
|
-
result[j] = QrCode.multiply(result[j], root);
|
|
322
|
-
if (j + 1 < result.length) {
|
|
323
|
-
result[j] ^= result[j + 1];
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
root = QrCode.multiply(root, 0x02);
|
|
327
|
-
}
|
|
328
|
-
return result;
|
|
329
|
-
}
|
|
330
|
-
static reedSolomonRemainder(data, divisor) {
|
|
331
|
-
const result = new Array(divisor.length).fill(0);
|
|
332
|
-
for (const byte of data) {
|
|
333
|
-
const factor = byte ^ result.shift();
|
|
334
|
-
result.push(0);
|
|
335
|
-
divisor.forEach((coefficient, i) => {
|
|
336
|
-
result[i] ^= QrCode.multiply(coefficient, factor);
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
return result;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
exports.QrCode = QrCode;
|
|
343
|
-
/** Codewords for error correction per block, and blocks, at level M, by version (index 0 unused). */
|
|
344
|
-
QrCode.ECC_PER_BLOCK = [
|
|
345
|
-
-1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
|
|
346
|
-
28, 28, 28,
|
|
347
|
-
];
|
|
348
|
-
QrCode.BLOCKS = [
|
|
349
|
-
-1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49,
|
|
350
|
-
];
|
|
351
|
-
/** Level M in the format bits. */
|
|
352
|
-
QrCode.ECC_FORMAT = 0;
|
|
353
|
-
//# sourceMappingURL=qr-code.js.map
|