@artooi/agents-web-components 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -0
- package/LICENSE +21 -0
- package/README.md +4397 -2
- package/dist/agents-web-components.bundle.js +5708 -0
- package/dist/agents-web-components.bundle.js.map +7 -0
- package/dist/bundle.d.ts +3 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/chat.d.ts +3 -0
- package/dist/chat.d.ts.map +1 -0
- package/dist/chat.js +16373 -0
- package/dist/chat.js.map +7 -0
- package/dist/chunk-ARNLFGCC.js +7715 -0
- package/dist/chunk-ARNLFGCC.js.map +7 -0
- package/dist/constants.d.ts +575 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/core/activity_registration.d.ts +19 -0
- package/dist/core/activity_registration.d.ts.map +1 -0
- package/dist/core/activity_registry.d.ts +46 -0
- package/dist/core/activity_registry.d.ts.map +1 -0
- package/dist/core/activity_renderer.d.ts +20 -0
- package/dist/core/activity_renderer.d.ts.map +1 -0
- package/dist/core/ag_ui_chat.d.ts +836 -0
- package/dist/core/ag_ui_chat.d.ts.map +1 -0
- package/dist/core/agui_client.d.ts +370 -0
- package/dist/core/agui_client.d.ts.map +1 -0
- package/dist/core/attachment.d.ts +42 -0
- package/dist/core/attachment.d.ts.map +1 -0
- package/dist/core/chat_registry.d.ts +23 -0
- package/dist/core/chat_registry.d.ts.map +1 -0
- package/dist/core/client_seed.d.ts +27 -0
- package/dist/core/client_seed.d.ts.map +1 -0
- package/dist/core/conversation_store.d.ts +195 -0
- package/dist/core/conversation_store.d.ts.map +1 -0
- package/dist/core/create_http_agent.d.ts +57 -0
- package/dist/core/create_http_agent.d.ts.map +1 -0
- package/dist/core/define_chat.d.ts +13 -0
- package/dist/core/define_chat.d.ts.map +1 -0
- package/dist/core/events/attachments_detail.d.ts +9 -0
- package/dist/core/events/attachments_detail.d.ts.map +1 -0
- package/dist/core/events/bar_height_detail.d.ts +6 -0
- package/dist/core/events/bar_height_detail.d.ts.map +1 -0
- package/dist/core/events/custom_agent_detail.d.ts +8 -0
- package/dist/core/events/custom_agent_detail.d.ts.map +1 -0
- package/dist/core/events/dock_width_detail.d.ts +8 -0
- package/dist/core/events/dock_width_detail.d.ts.map +1 -0
- package/dist/core/events/feedback_detail.d.ts +28 -0
- package/dist/core/events/feedback_detail.d.ts.map +1 -0
- package/dist/core/events/invalidate_detail.d.ts +16 -0
- package/dist/core/events/invalidate_detail.d.ts.map +1 -0
- package/dist/core/events/maximize_detail.d.ts +5 -0
- package/dist/core/events/maximize_detail.d.ts.map +1 -0
- package/dist/core/events/run_finished_detail.d.ts +36 -0
- package/dist/core/events/run_finished_detail.d.ts.map +1 -0
- package/dist/core/events/state_detail.d.ts +5 -0
- package/dist/core/events/state_detail.d.ts.map +1 -0
- package/dist/core/events/submit_detail.d.ts +8 -0
- package/dist/core/events/submit_detail.d.ts.map +1 -0
- package/dist/core/events/thread_detail.d.ts +27 -0
- package/dist/core/events/thread_detail.d.ts.map +1 -0
- package/dist/core/events/thread_title_detail.d.ts +8 -0
- package/dist/core/events/thread_title_detail.d.ts.map +1 -0
- package/dist/core/events/toggle_detail.d.ts +5 -0
- package/dist/core/events/toggle_detail.d.ts.map +1 -0
- package/dist/core/events/tool_run.d.ts +11 -0
- package/dist/core/events/tool_run.d.ts.map +1 -0
- package/dist/core/events/unread_detail.d.ts +11 -0
- package/dist/core/events/unread_detail.d.ts.map +1 -0
- package/dist/core/message_role.d.ts +4 -0
- package/dist/core/message_role.d.ts.map +1 -0
- package/dist/core/read_flag.d.ts +11 -0
- package/dist/core/read_flag.d.ts.map +1 -0
- package/dist/core/read_json_attribute.d.ts +15 -0
- package/dist/core/read_json_attribute.d.ts.map +1 -0
- package/dist/core/read_max_tool_rounds.d.ts +9 -0
- package/dist/core/read_max_tool_rounds.d.ts.map +1 -0
- package/dist/core/remote_conversation_store.d.ts +71 -0
- package/dist/core/remote_conversation_store.d.ts.map +1 -0
- package/dist/core/run_handlers.d.ts +85 -0
- package/dist/core/run_handlers.d.ts.map +1 -0
- package/dist/core/run_index.d.ts +58 -0
- package/dist/core/run_index.d.ts.map +1 -0
- package/dist/core/storage_scope.d.ts +118 -0
- package/dist/core/storage_scope.d.ts.map +1 -0
- package/dist/core/tool_outcome.d.ts +27 -0
- package/dist/core/tool_outcome.d.ts.map +1 -0
- package/dist/core/transcribe_audio.d.ts +32 -0
- package/dist/core/transcribe_audio.d.ts.map +1 -0
- package/dist/core/upload_attachment.d.ts +44 -0
- package/dist/core/upload_attachment.d.ts.map +1 -0
- package/dist/core/utils.d.ts +117 -0
- package/dist/core/utils.d.ts.map +1 -0
- package/dist/dom/animations.d.ts +122 -0
- package/dist/dom/animations.d.ts.map +1 -0
- package/dist/dom/dom_driver.d.ts +28 -0
- package/dist/dom/dom_driver.d.ts.map +1 -0
- package/dist/dom/highlight_overlay.d.ts +39 -0
- package/dist/dom/highlight_overlay.d.ts.map +1 -0
- package/dist/dom/native_setter.d.ts +5 -0
- package/dist/dom/native_setter.d.ts.map +1 -0
- package/dist/dom/ring_color.d.ts +16 -0
- package/dist/dom/ring_color.d.ts.map +1 -0
- package/dist/dom/utils.d.ts +3 -0
- package/dist/dom/utils.d.ts.map +1 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +223 -0
- package/dist/index.js.map +7 -0
- package/dist/skills/fill_template.d.ts +16 -0
- package/dist/skills/fill_template.d.ts.map +1 -0
- package/dist/skills/parse_skills.d.ts +8 -0
- package/dist/skills/parse_skills.d.ts.map +1 -0
- package/dist/skills/skill.d.ts +33 -0
- package/dist/skills/skill.d.ts.map +1 -0
- package/dist/skills/skill_catalog.d.ts +69 -0
- package/dist/skills/skill_catalog.d.ts.map +1 -0
- package/dist/skills/skill_name_from.d.ts +12 -0
- package/dist/skills/skill_name_from.d.ts.map +1 -0
- package/dist/tools/chat_surface_tools.d.ts +77 -0
- package/dist/tools/chat_surface_tools.d.ts.map +1 -0
- package/dist/tools/client_tool_registry.d.ts +58 -0
- package/dist/tools/client_tool_registry.d.ts.map +1 -0
- package/dist/tools/is_destructive.d.ts +14 -0
- package/dist/tools/is_destructive.d.ts.map +1 -0
- package/dist/tools/is_navigates.d.ts +9 -0
- package/dist/tools/is_navigates.d.ts.map +1 -0
- package/dist/tools/page_action_tools.d.ts +30 -0
- package/dist/tools/page_action_tools.d.ts.map +1 -0
- package/dist/tools/page_map.d.ts +16 -0
- package/dist/tools/page_map.d.ts.map +1 -0
- package/dist/tools/page_state.d.ts +27 -0
- package/dist/tools/page_state.d.ts.map +1 -0
- package/dist/tools/parse_tool_catalog.d.ts +21 -0
- package/dist/tools/parse_tool_catalog.d.ts.map +1 -0
- package/dist/tools/route_map.d.ts +37 -0
- package/dist/tools/route_map.d.ts.map +1 -0
- package/dist/tools/tool_catalog.d.ts +86 -0
- package/dist/tools/tool_catalog.d.ts.map +1 -0
- package/dist/tools/tool_dispatch.d.ts +82 -0
- package/dist/tools/tool_dispatch.d.ts.map +1 -0
- package/dist/ui/charts/chart_block.d.ts +57 -0
- package/dist/ui/charts/chart_block.d.ts.map +1 -0
- package/dist/ui/charts/chart_spec_from.d.ts +12 -0
- package/dist/ui/charts/chart_spec_from.d.ts.map +1 -0
- package/dist/ui/charts/chart_styles.d.ts +2 -0
- package/dist/ui/charts/chart_styles.d.ts.map +1 -0
- package/dist/ui/charts/chart_tool.d.ts +15 -0
- package/dist/ui/charts/chart_tool.d.ts.map +1 -0
- package/dist/ui/composer/attachment_styles.d.ts +2 -0
- package/dist/ui/composer/attachment_styles.d.ts.map +1 -0
- package/dist/ui/composer/attachment_tray.d.ts +53 -0
- package/dist/ui/composer/attachment_tray.d.ts.map +1 -0
- package/dist/ui/composer/auto_grow.d.ts +10 -0
- package/dist/ui/composer/auto_grow.d.ts.map +1 -0
- package/dist/ui/composer/build_composer.d.ts +32 -0
- package/dist/ui/composer/build_composer.d.ts.map +1 -0
- package/dist/ui/composer/composer_attachments.d.ts +57 -0
- package/dist/ui/composer/composer_attachments.d.ts.map +1 -0
- package/dist/ui/composer/composer_styles.d.ts +2 -0
- package/dist/ui/composer/composer_styles.d.ts.map +1 -0
- package/dist/ui/composer/composer_voice.d.ts +48 -0
- package/dist/ui/composer/composer_voice.d.ts.map +1 -0
- package/dist/ui/composer/skill_styles.d.ts +2 -0
- package/dist/ui/composer/skill_styles.d.ts.map +1 -0
- package/dist/ui/composer/skills_menu.d.ts +34 -0
- package/dist/ui/composer/skills_menu.d.ts.map +1 -0
- package/dist/ui/composer/voice_input.d.ts +46 -0
- package/dist/ui/composer/voice_input.d.ts.map +1 -0
- package/dist/ui/excerpts/attach_copy_buttons.d.ts +13 -0
- package/dist/ui/excerpts/attach_copy_buttons.d.ts.map +1 -0
- package/dist/ui/excerpts/copy_payload.d.ts +30 -0
- package/dist/ui/excerpts/copy_payload.d.ts.map +1 -0
- package/dist/ui/excerpts/page_quote_offer.d.ts +33 -0
- package/dist/ui/excerpts/page_quote_offer.d.ts.map +1 -0
- package/dist/ui/excerpts/place_offer.d.ts +9 -0
- package/dist/ui/excerpts/place_offer.d.ts.map +1 -0
- package/dist/ui/excerpts/quote_selection.d.ts +66 -0
- package/dist/ui/excerpts/quote_selection.d.ts.map +1 -0
- package/dist/ui/excerpts/transcript_quote_offer.d.ts +57 -0
- package/dist/ui/excerpts/transcript_quote_offer.d.ts.map +1 -0
- package/dist/ui/fill_ui_string.d.ts +32 -0
- package/dist/ui/fill_ui_string.d.ts.map +1 -0
- package/dist/ui/history/checkpoint_menu.d.ts +41 -0
- package/dist/ui/history/checkpoint_menu.d.ts.map +1 -0
- package/dist/ui/history/conversation_history.d.ts +317 -0
- package/dist/ui/history/conversation_history.d.ts.map +1 -0
- package/dist/ui/history/history_styles.d.ts +2 -0
- package/dist/ui/history/history_styles.d.ts.map +1 -0
- package/dist/ui/history/relative_time.d.ts +23 -0
- package/dist/ui/history/relative_time.d.ts.map +1 -0
- package/dist/ui/history/thread_drawer.d.ts +64 -0
- package/dist/ui/history/thread_drawer.d.ts.map +1 -0
- package/dist/ui/history/utils.d.ts +2 -0
- package/dist/ui/history/utils.d.ts.map +1 -0
- package/dist/ui/interrupts/approval_card.d.ts +64 -0
- package/dist/ui/interrupts/approval_card.d.ts.map +1 -0
- package/dist/ui/interrupts/approval_styles.d.ts +2 -0
- package/dist/ui/interrupts/approval_styles.d.ts.map +1 -0
- package/dist/ui/interrupts/confirmation_card.d.ts +51 -0
- package/dist/ui/interrupts/confirmation_card.d.ts.map +1 -0
- package/dist/ui/interrupts/confirmation_styles.d.ts +2 -0
- package/dist/ui/interrupts/confirmation_styles.d.ts.map +1 -0
- package/dist/ui/interrupts/pending_decision.d.ts +22 -0
- package/dist/ui/interrupts/pending_decision.d.ts.map +1 -0
- package/dist/ui/interrupts/question_card.d.ts +49 -0
- package/dist/ui/interrupts/question_card.d.ts.map +1 -0
- package/dist/ui/interrupts/question_styles.d.ts +2 -0
- package/dist/ui/interrupts/question_styles.d.ts.map +1 -0
- package/dist/ui/place/place.d.ts +17 -0
- package/dist/ui/place/place.d.ts.map +1 -0
- package/dist/ui/place/place_chip.d.ts +26 -0
- package/dist/ui/place/place_chip.d.ts.map +1 -0
- package/dist/ui/place/place_from_route.d.ts +9 -0
- package/dist/ui/place/place_from_route.d.ts.map +1 -0
- package/dist/ui/place/place_styles.d.ts +2 -0
- package/dist/ui/place/place_styles.d.ts.map +1 -0
- package/dist/ui/placement/clamp_launcher.d.ts +20 -0
- package/dist/ui/placement/clamp_launcher.d.ts.map +1 -0
- package/dist/ui/placement/clamp_panel.d.ts +13 -0
- package/dist/ui/placement/clamp_panel.d.ts.map +1 -0
- package/dist/ui/placement/collapse_styles.d.ts +2 -0
- package/dist/ui/placement/collapse_styles.d.ts.map +1 -0
- package/dist/ui/placement/dock_styles.d.ts +2 -0
- package/dist/ui/placement/dock_styles.d.ts.map +1 -0
- package/dist/ui/placement/embedded_styles.d.ts +2 -0
- package/dist/ui/placement/embedded_styles.d.ts.map +1 -0
- package/dist/ui/placement/launcher_drag.d.ts +49 -0
- package/dist/ui/placement/launcher_drag.d.ts.map +1 -0
- package/dist/ui/placement/launcher_placement.d.ts +77 -0
- package/dist/ui/placement/launcher_placement.d.ts.map +1 -0
- package/dist/ui/placement/launcher_styles.d.ts +2 -0
- package/dist/ui/placement/launcher_styles.d.ts.map +1 -0
- package/dist/ui/placement/page_styles.d.ts +2 -0
- package/dist/ui/placement/page_styles.d.ts.map +1 -0
- package/dist/ui/placement/panel_drag.d.ts +40 -0
- package/dist/ui/placement/panel_drag.d.ts.map +1 -0
- package/dist/ui/placement/panel_placement.d.ts +173 -0
- package/dist/ui/placement/panel_placement.d.ts.map +1 -0
- package/dist/ui/placement/place_widget.d.ts +31 -0
- package/dist/ui/placement/place_widget.d.ts.map +1 -0
- package/dist/ui/placement/preset_styles.d.ts +2 -0
- package/dist/ui/placement/preset_styles.d.ts.map +1 -0
- package/dist/ui/placement/resize_handle.d.ts +78 -0
- package/dist/ui/placement/resize_handle.d.ts.map +1 -0
- package/dist/ui/placement/resize_styles.d.ts +2 -0
- package/dist/ui/placement/resize_styles.d.ts.map +1 -0
- package/dist/ui/placement/sidebar_styles.d.ts +2 -0
- package/dist/ui/placement/sidebar_styles.d.ts.map +1 -0
- package/dist/ui/placement/small_viewport_styles.d.ts +2 -0
- package/dist/ui/placement/small_viewport_styles.d.ts.map +1 -0
- package/dist/ui/placement/surface_for.d.ts +93 -0
- package/dist/ui/placement/surface_for.d.ts.map +1 -0
- package/dist/ui/progress/prettify_tool_name.d.ts +11 -0
- package/dist/ui/progress/prettify_tool_name.d.ts.map +1 -0
- package/dist/ui/progress/run_announcer.d.ts +41 -0
- package/dist/ui/progress/run_announcer.d.ts.map +1 -0
- package/dist/ui/progress/run_notice.d.ts +21 -0
- package/dist/ui/progress/run_notice.d.ts.map +1 -0
- package/dist/ui/progress/run_notice_styles.d.ts +2 -0
- package/dist/ui/progress/run_notice_styles.d.ts.map +1 -0
- package/dist/ui/progress/subagent_panel.d.ts +101 -0
- package/dist/ui/progress/subagent_panel.d.ts.map +1 -0
- package/dist/ui/progress/subagent_progress.d.ts +57 -0
- package/dist/ui/progress/subagent_progress.d.ts.map +1 -0
- package/dist/ui/progress/subagent_update.d.ts +28 -0
- package/dist/ui/progress/subagent_update.d.ts.map +1 -0
- package/dist/ui/progress/thoughts_block.d.ts +57 -0
- package/dist/ui/progress/thoughts_block.d.ts.map +1 -0
- package/dist/ui/progress/thoughts_styles.d.ts +2 -0
- package/dist/ui/progress/thoughts_styles.d.ts.map +1 -0
- package/dist/ui/progress/tool_call_card.d.ts +167 -0
- package/dist/ui/progress/tool_call_card.d.ts.map +1 -0
- package/dist/ui/progress/tool_group_styles.d.ts +2 -0
- package/dist/ui/progress/tool_group_styles.d.ts.map +1 -0
- package/dist/ui/progress/tool_step_group.d.ts +50 -0
- package/dist/ui/progress/tool_step_group.d.ts.map +1 -0
- package/dist/ui/progress/tool_step_styles.d.ts +2 -0
- package/dist/ui/progress/tool_step_styles.d.ts.map +1 -0
- package/dist/ui/shell/adopt_styles.d.ts +28 -0
- package/dist/ui/shell/adopt_styles.d.ts.map +1 -0
- package/dist/ui/shell/build_header.d.ts +45 -0
- package/dist/ui/shell/build_header.d.ts.map +1 -0
- package/dist/ui/shell/build_launcher.d.ts +33 -0
- package/dist/ui/shell/build_launcher.d.ts.map +1 -0
- package/dist/ui/shell/collapse_glyph.d.ts +14 -0
- package/dist/ui/shell/collapse_glyph.d.ts.map +1 -0
- package/dist/ui/shell/frame_styles.d.ts +2 -0
- package/dist/ui/shell/frame_styles.d.ts.map +1 -0
- package/dist/ui/shell/glyph_slot.d.ts +7 -0
- package/dist/ui/shell/glyph_slot.d.ts.map +1 -0
- package/dist/ui/shell/header_button.d.ts +11 -0
- package/dist/ui/shell/header_button.d.ts.map +1 -0
- package/dist/ui/shell/icon_element.d.ts +12 -0
- package/dist/ui/shell/icon_element.d.ts.map +1 -0
- package/dist/ui/shell/is_unread_badge_enabled.d.ts +10 -0
- package/dist/ui/shell/is_unread_badge_enabled.d.ts.map +1 -0
- package/dist/ui/shell/read_launcher_icon_url.d.ts +8 -0
- package/dist/ui/shell/read_launcher_icon_url.d.ts.map +1 -0
- package/dist/ui/shell/theme_styles.d.ts +2 -0
- package/dist/ui/shell/theme_styles.d.ts.map +1 -0
- package/dist/ui/shell/token_styles.d.ts +2 -0
- package/dist/ui/shell/token_styles.d.ts.map +1 -0
- package/dist/ui/styles.d.ts +2 -0
- package/dist/ui/styles.d.ts.map +1 -0
- package/dist/ui/themes/classic_styles.d.ts +2 -0
- package/dist/ui/themes/classic_styles.d.ts.map +1 -0
- package/dist/ui/themes/classic_tokens.d.ts +2 -0
- package/dist/ui/themes/classic_tokens.d.ts.map +1 -0
- package/dist/ui/themes/code_tokens.d.ts +2 -0
- package/dist/ui/themes/code_tokens.d.ts.map +1 -0
- package/dist/ui/themes/ledger_styles.d.ts +2 -0
- package/dist/ui/themes/ledger_styles.d.ts.map +1 -0
- package/dist/ui/themes/ledger_tokens.d.ts +2 -0
- package/dist/ui/themes/ledger_tokens.d.ts.map +1 -0
- package/dist/ui/themes/modern_styles.d.ts +2 -0
- package/dist/ui/themes/modern_styles.d.ts.map +1 -0
- package/dist/ui/themes/quiet_styles.d.ts +2 -0
- package/dist/ui/themes/quiet_styles.d.ts.map +1 -0
- package/dist/ui/themes/scheme_styles.d.ts +2 -0
- package/dist/ui/themes/scheme_styles.d.ts.map +1 -0
- package/dist/ui/themes/soft_styles.d.ts +2 -0
- package/dist/ui/themes/soft_styles.d.ts.map +1 -0
- package/dist/ui/themes/soft_tokens.d.ts +2 -0
- package/dist/ui/themes/soft_tokens.d.ts.map +1 -0
- package/dist/ui/themes/theme_hosts.d.ts +15 -0
- package/dist/ui/themes/theme_hosts.d.ts.map +1 -0
- package/dist/ui/transcript/answer_actions.d.ts +50 -0
- package/dist/ui/transcript/answer_actions.d.ts.map +1 -0
- package/dist/ui/transcript/answer_stream.d.ts +56 -0
- package/dist/ui/transcript/answer_stream.d.ts.map +1 -0
- package/dist/ui/transcript/attachment_chip_styles.d.ts +2 -0
- package/dist/ui/transcript/attachment_chip_styles.d.ts.map +1 -0
- package/dist/ui/transcript/attachment_chips.d.ts +21 -0
- package/dist/ui/transcript/attachment_chips.d.ts.map +1 -0
- package/dist/ui/transcript/build_transcript.d.ts +21 -0
- package/dist/ui/transcript/build_transcript.d.ts.map +1 -0
- package/dist/ui/transcript/greeting_styles.d.ts +2 -0
- package/dist/ui/transcript/greeting_styles.d.ts.map +1 -0
- package/dist/ui/transcript/groups_tool_steps.d.ts +13 -0
- package/dist/ui/transcript/groups_tool_steps.d.ts.map +1 -0
- package/dist/ui/transcript/message_action_styles.d.ts +2 -0
- package/dist/ui/transcript/message_action_styles.d.ts.map +1 -0
- package/dist/ui/transcript/message_actions.d.ts +74 -0
- package/dist/ui/transcript/message_actions.d.ts.map +1 -0
- package/dist/ui/transcript/message_styles.d.ts +2 -0
- package/dist/ui/transcript/message_styles.d.ts.map +1 -0
- package/dist/ui/transcript/render_markdown.d.ts +40 -0
- package/dist/ui/transcript/render_markdown.d.ts.map +1 -0
- package/dist/ui/transcript/render_or_warn.d.ts +16 -0
- package/dist/ui/transcript/render_or_warn.d.ts.map +1 -0
- package/dist/ui/transcript/reveal_words.d.ts +8 -0
- package/dist/ui/transcript/reveal_words.d.ts.map +1 -0
- package/dist/ui/transcript/starter_chips.d.ts +21 -0
- package/dist/ui/transcript/starter_chips.d.ts.map +1 -0
- package/dist/ui/transcript/stick_to_bottom.d.ts +55 -0
- package/dist/ui/transcript/stick_to_bottom.d.ts.map +1 -0
- package/dist/ui/transcript/suggestion_chips.d.ts +29 -0
- package/dist/ui/transcript/suggestion_chips.d.ts.map +1 -0
- package/dist/ui/transcript/transcript.d.ts +196 -0
- package/dist/ui/transcript/transcript.d.ts.map +1 -0
- package/dist/ui/transcript/transcript_styles.d.ts +2 -0
- package/dist/ui/transcript/transcript_styles.d.ts.map +1 -0
- package/dist/ui/ui_strings.d.ts +352 -0
- package/dist/ui/ui_strings.d.ts.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +86 -3
- package/src/bundle.ts +2 -0
- package/src/chat.ts +2 -0
- package/src/constants.ts +650 -0
- package/src/core/activity_registration.ts +19 -0
- package/src/core/activity_registry.ts +133 -0
- package/src/core/activity_renderer.ts +19 -0
- package/src/core/ag_ui_chat.ts +3966 -0
- package/src/core/agui_client.ts +1028 -0
- package/src/core/attachment.ts +62 -0
- package/src/core/chat_registry.ts +53 -0
- package/src/core/client_seed.ts +27 -0
- package/src/core/conversation_store.ts +478 -0
- package/src/core/create_http_agent.ts +97 -0
- package/src/core/define_chat.ts +25 -0
- package/src/core/events/attachments_detail.ts +9 -0
- package/src/core/events/bar_height_detail.ts +5 -0
- package/src/core/events/custom_agent_detail.ts +7 -0
- package/src/core/events/dock_width_detail.ts +7 -0
- package/src/core/events/feedback_detail.ts +27 -0
- package/src/core/events/invalidate_detail.ts +15 -0
- package/src/core/events/maximize_detail.ts +4 -0
- package/src/core/events/run_finished_detail.ts +36 -0
- package/src/core/events/state_detail.ts +4 -0
- package/src/core/events/submit_detail.ts +8 -0
- package/src/core/events/thread_detail.ts +26 -0
- package/src/core/events/thread_title_detail.ts +7 -0
- package/src/core/events/toggle_detail.ts +4 -0
- package/src/core/events/tool_run.ts +10 -0
- package/src/core/events/unread_detail.ts +10 -0
- package/src/core/message_role.ts +4 -0
- package/src/core/read_flag.ts +13 -0
- package/src/core/read_json_attribute.ts +30 -0
- package/src/core/read_max_tool_rounds.ts +13 -0
- package/src/core/remote_conversation_store.ts +279 -0
- package/src/core/run_handlers.ts +524 -0
- package/src/core/run_index.ts +114 -0
- package/src/core/storage_scope.ts +291 -0
- package/src/core/tool_outcome.ts +39 -0
- package/src/core/transcribe_audio.ts +76 -0
- package/src/core/upload_attachment.ts +130 -0
- package/src/core/utils.ts +230 -0
- package/src/dom/animations.ts +341 -0
- package/src/dom/dom_driver.ts +91 -0
- package/src/dom/highlight_overlay.ts +204 -0
- package/src/dom/native_setter.ts +40 -0
- package/src/dom/ring_color.ts +206 -0
- package/src/dom/utils.ts +5 -0
- package/src/index.ts +220 -0
- package/src/skills/fill_template.ts +31 -0
- package/src/skills/parse_skills.ts +31 -0
- package/src/skills/skill.ts +32 -0
- package/src/skills/skill_catalog.ts +172 -0
- package/src/skills/skill_name_from.ts +19 -0
- package/src/tools/chat_surface_tools.ts +183 -0
- package/src/tools/client_tool_registry.ts +80 -0
- package/src/tools/is_destructive.ts +17 -0
- package/src/tools/is_navigates.ts +12 -0
- package/src/tools/page_action_tools.ts +123 -0
- package/src/tools/page_map.ts +26 -0
- package/src/tools/page_state.ts +57 -0
- package/src/tools/parse_tool_catalog.ts +41 -0
- package/src/tools/route_map.ts +132 -0
- package/src/tools/tool_catalog.ts +334 -0
- package/src/tools/tool_dispatch.ts +453 -0
- package/src/ui/charts/chart_block.ts +519 -0
- package/src/ui/charts/chart_spec_from.ts +125 -0
- package/src/ui/charts/chart_styles.ts +63 -0
- package/src/ui/charts/chart_tool.ts +72 -0
- package/src/ui/composer/attachment_styles.ts +71 -0
- package/src/ui/composer/attachment_tray.ts +295 -0
- package/src/ui/composer/auto_grow.ts +12 -0
- package/src/ui/composer/build_composer.ts +114 -0
- package/src/ui/composer/composer_attachments.ts +324 -0
- package/src/ui/composer/composer_styles.ts +177 -0
- package/src/ui/composer/composer_voice.ts +93 -0
- package/src/ui/composer/skill_styles.ts +120 -0
- package/src/ui/composer/skills_menu.ts +188 -0
- package/src/ui/composer/voice_input.ts +282 -0
- package/src/ui/excerpts/attach_copy_buttons.ts +73 -0
- package/src/ui/excerpts/copy_payload.ts +156 -0
- package/src/ui/excerpts/page_quote_offer.ts +203 -0
- package/src/ui/excerpts/place_offer.ts +24 -0
- package/src/ui/excerpts/quote_selection.ts +345 -0
- package/src/ui/excerpts/transcript_quote_offer.ts +175 -0
- package/src/ui/fill_ui_string.ts +41 -0
- package/src/ui/history/checkpoint_menu.ts +300 -0
- package/src/ui/history/conversation_history.ts +1169 -0
- package/src/ui/history/history_styles.ts +492 -0
- package/src/ui/history/relative_time.ts +50 -0
- package/src/ui/history/thread_drawer.ts +471 -0
- package/src/ui/history/utils.ts +11 -0
- package/src/ui/interrupts/approval_card.ts +202 -0
- package/src/ui/interrupts/approval_styles.ts +52 -0
- package/src/ui/interrupts/confirmation_card.ts +138 -0
- package/src/ui/interrupts/confirmation_styles.ts +114 -0
- package/src/ui/interrupts/pending_decision.ts +33 -0
- package/src/ui/interrupts/question_card.ts +213 -0
- package/src/ui/interrupts/question_styles.ts +73 -0
- package/src/ui/place/place.ts +16 -0
- package/src/ui/place/place_chip.ts +146 -0
- package/src/ui/place/place_from_route.ts +27 -0
- package/src/ui/place/place_styles.ts +108 -0
- package/src/ui/placement/clamp_launcher.ts +38 -0
- package/src/ui/placement/clamp_panel.ts +30 -0
- package/src/ui/placement/collapse_styles.ts +472 -0
- package/src/ui/placement/dock_styles.ts +116 -0
- package/src/ui/placement/embedded_styles.ts +14 -0
- package/src/ui/placement/launcher_drag.ts +206 -0
- package/src/ui/placement/launcher_placement.ts +133 -0
- package/src/ui/placement/launcher_styles.ts +189 -0
- package/src/ui/placement/page_styles.ts +47 -0
- package/src/ui/placement/panel_drag.ts +138 -0
- package/src/ui/placement/panel_placement.ts +1975 -0
- package/src/ui/placement/place_widget.ts +64 -0
- package/src/ui/placement/preset_styles.ts +49 -0
- package/src/ui/placement/resize_handle.ts +229 -0
- package/src/ui/placement/resize_styles.ts +201 -0
- package/src/ui/placement/sidebar_styles.ts +113 -0
- package/src/ui/placement/small_viewport_styles.ts +70 -0
- package/src/ui/placement/surface_for.ts +183 -0
- package/src/ui/progress/prettify_tool_name.ts +16 -0
- package/src/ui/progress/run_announcer.ts +67 -0
- package/src/ui/progress/run_notice.ts +61 -0
- package/src/ui/progress/run_notice_styles.ts +52 -0
- package/src/ui/progress/subagent_panel.ts +227 -0
- package/src/ui/progress/subagent_progress.ts +200 -0
- package/src/ui/progress/subagent_update.ts +89 -0
- package/src/ui/progress/thoughts_block.ts +165 -0
- package/src/ui/progress/thoughts_styles.ts +74 -0
- package/src/ui/progress/tool_call_card.ts +429 -0
- package/src/ui/progress/tool_group_styles.ts +313 -0
- package/src/ui/progress/tool_step_group.ts +317 -0
- package/src/ui/progress/tool_step_styles.ts +486 -0
- package/src/ui/shell/adopt_styles.ts +34 -0
- package/src/ui/shell/build_header.ts +121 -0
- package/src/ui/shell/build_launcher.ts +79 -0
- package/src/ui/shell/collapse_glyph.ts +42 -0
- package/src/ui/shell/frame_styles.ts +147 -0
- package/src/ui/shell/glyph_slot.ts +12 -0
- package/src/ui/shell/header_button.ts +22 -0
- package/src/ui/shell/icon_element.ts +33 -0
- package/src/ui/shell/is_unread_badge_enabled.ts +11 -0
- package/src/ui/shell/read_launcher_icon_url.ts +9 -0
- package/src/ui/shell/theme_styles.ts +11 -0
- package/src/ui/shell/token_styles.ts +480 -0
- package/src/ui/styles.ts +110 -0
- package/src/ui/themes/classic_styles.ts +32 -0
- package/src/ui/themes/classic_tokens.ts +51 -0
- package/src/ui/themes/code_tokens.ts +21 -0
- package/src/ui/themes/ledger_styles.ts +169 -0
- package/src/ui/themes/ledger_tokens.ts +33 -0
- package/src/ui/themes/modern_styles.ts +80 -0
- package/src/ui/themes/quiet_styles.ts +118 -0
- package/src/ui/themes/scheme_styles.ts +26 -0
- package/src/ui/themes/soft_styles.ts +149 -0
- package/src/ui/themes/soft_tokens.ts +29 -0
- package/src/ui/themes/theme_hosts.ts +14 -0
- package/src/ui/transcript/answer_actions.ts +165 -0
- package/src/ui/transcript/answer_stream.ts +123 -0
- package/src/ui/transcript/attachment_chip_styles.ts +116 -0
- package/src/ui/transcript/attachment_chips.ts +82 -0
- package/src/ui/transcript/build_transcript.ts +67 -0
- package/src/ui/transcript/greeting_styles.ts +171 -0
- package/src/ui/transcript/groups_tool_steps.ts +16 -0
- package/src/ui/transcript/message_action_styles.ts +155 -0
- package/src/ui/transcript/message_actions.ts +234 -0
- package/src/ui/transcript/message_styles.ts +262 -0
- package/src/ui/transcript/render_markdown.ts +181 -0
- package/src/ui/transcript/render_or_warn.ts +22 -0
- package/src/ui/transcript/reveal_words.ts +41 -0
- package/src/ui/transcript/starter_chips.ts +42 -0
- package/src/ui/transcript/stick_to_bottom.ts +126 -0
- package/src/ui/transcript/suggestion_chips.ts +73 -0
- package/src/ui/transcript/transcript.ts +555 -0
- package/src/ui/transcript/transcript_styles.ts +153 -0
- package/src/ui/ui_strings.ts +550 -0
- package/src/version.ts +1 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Visible-action animation primitives.
|
|
3
|
+
*
|
|
4
|
+
* These run against the **host page** DOM (not the element's shadow root) so a
|
|
5
|
+
* user watches the agent type, highlight, and click at human-readable speed.
|
|
6
|
+
* Each is configurable; pass small/zero durations in tests (or use fake timers).
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Whether the user has asked the OS/browser to minimise motion.
|
|
10
|
+
*
|
|
11
|
+
* Honoured by every primitive that moves something, except `typeInto` and
|
|
12
|
+
* `highlightThenClick`, which keep their explicit durations. The flash drops its fade
|
|
13
|
+
* but still holds the ring: reduced motion asks for no animation, not no feedback.
|
|
14
|
+
*/
|
|
15
|
+
export declare function prefersReducedMotion(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Which `<ag-ui-chat>` a ring speaks for. The ring is drawn in the host page, which a
|
|
18
|
+
* token set on the chat never reaches, so the chat is read directly.
|
|
19
|
+
*/
|
|
20
|
+
export interface RingOwnerOptions {
|
|
21
|
+
/** The chat whose ring colour and accent to use. Default: the latest connected. */
|
|
22
|
+
chat?: HTMLElement;
|
|
23
|
+
}
|
|
24
|
+
/** An element whose `value` can be typed into. */
|
|
25
|
+
export type TextLikeElement = HTMLInputElement | HTMLTextAreaElement;
|
|
26
|
+
export interface TypeOptions {
|
|
27
|
+
/** Milliseconds between characters. Default 35. */
|
|
28
|
+
charDelayMs?: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Clear `el` and type `value` one character at a time, firing an `input` event
|
|
32
|
+
* per character as a real user would, then a final `change`.
|
|
33
|
+
*/
|
|
34
|
+
export declare function typeInto(el: TextLikeElement, value: string, options?: TypeOptions): Promise<void>;
|
|
35
|
+
export interface HighlightClickOptions extends RingOwnerOptions {
|
|
36
|
+
/** Milliseconds to hold the highlight before clicking. Default 280. */
|
|
37
|
+
highlightMs?: number;
|
|
38
|
+
}
|
|
39
|
+
/** Outline `el`, pause so the user sees it, then click and restore. */
|
|
40
|
+
export declare function highlightThenClick(el: HTMLElement, options?: HighlightClickOptions): Promise<void>;
|
|
41
|
+
export interface ScrollOptions {
|
|
42
|
+
/**
|
|
43
|
+
* How long to wait for a moving scroll to settle before giving up.
|
|
44
|
+
* Default 600.
|
|
45
|
+
*/
|
|
46
|
+
settleMs?: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Scroll `el` to the vertical centre of the viewport.
|
|
50
|
+
*
|
|
51
|
+
* Resolves once the scroll settles, so a ring is not drawn mid-glide. Awaiting is
|
|
52
|
+
* optional; the scroll is requested synchronously.
|
|
53
|
+
*/
|
|
54
|
+
export declare function scrollIntoCenterView(el: HTMLElement, options?: ScrollOptions): Promise<void>;
|
|
55
|
+
export interface FlashOptions extends RingOwnerOptions {
|
|
56
|
+
/** Total milliseconds the ring is on screen, hold plus fade. Default 1200. */
|
|
57
|
+
flashMs?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Ring colour. Defaults to `--ag-ui-highlight-ring-color` (on the target,
|
|
60
|
+
* then on the chat), then the target's `--ag-ui-accent`, then the chat's
|
|
61
|
+
* accent.
|
|
62
|
+
*/
|
|
63
|
+
color?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Dim everything except the target. Draws an overlay outside the element instead of an
|
|
66
|
+
* outline (see {@link showHighlightOverlay}); it takes no pointer event, so the page
|
|
67
|
+
* stays usable.
|
|
68
|
+
*/
|
|
69
|
+
scrim?: boolean;
|
|
70
|
+
/** Draw the ring as a moving gradient. Also an overlay, for the same reason. */
|
|
71
|
+
gradient?: boolean;
|
|
72
|
+
/** Gap between the target's box and an overlay ring. Default 4. */
|
|
73
|
+
ringPadding?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Move keyboard focus to the element as well. Defaults to false for
|
|
76
|
+
* {@link flash} and true for {@link focusWithFlash}.
|
|
77
|
+
*/
|
|
78
|
+
focus?: boolean;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Flash a ring around `el` without touching focus.
|
|
82
|
+
*
|
|
83
|
+
* Prefer this over {@link focusWithFlash} when the point is to show the user
|
|
84
|
+
* something: moving focus steals it from the composer, can fire blur validation
|
|
85
|
+
* on whatever they were mid-edit in, and can close an open menu.
|
|
86
|
+
*/
|
|
87
|
+
export declare function flash(el: HTMLElement, options?: FlashOptions): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Focus `el` and flash a ring around it. Focus moves unless `options.focus`
|
|
90
|
+
* says otherwise; use {@link flash} to leave focus where the user put it.
|
|
91
|
+
*/
|
|
92
|
+
export declare function focusWithFlash(el: HTMLElement, options?: FlashOptions): Promise<void>;
|
|
93
|
+
export interface PressOptions extends RingOwnerOptions {
|
|
94
|
+
/** Milliseconds to hold the pressed state before clicking. Default 140. */
|
|
95
|
+
pressMs?: number;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Show a brief pressed affordance on a control — a slight scale-down plus
|
|
99
|
+
* accent ring — then click it and restore. Reads as a press rather than the
|
|
100
|
+
* plain outline {@link highlightThenClick} draws.
|
|
101
|
+
*/
|
|
102
|
+
export declare function pressThenClick(el: HTMLElement, options?: PressOptions): Promise<void>;
|
|
103
|
+
export interface SelectOptions extends RingOwnerOptions {
|
|
104
|
+
/** Milliseconds to hold the highlight before committing. Default 220. */
|
|
105
|
+
highlightMs?: number;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Outline a `<select>`, pause so the user sees the pick, then set it to the
|
|
109
|
+
* option matching `value` (by value or visible text) and fire `input` +
|
|
110
|
+
* `change`. Throws when no option matches.
|
|
111
|
+
*/
|
|
112
|
+
export declare function selectOption(el: HTMLSelectElement, value: string, options?: SelectOptions): Promise<void>;
|
|
113
|
+
export interface ToggleOptions extends RingOwnerOptions {
|
|
114
|
+
/** Milliseconds to hold the flash. Default 200. */
|
|
115
|
+
flashMs?: number;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Flash a ring around a checkbox/radio, set its `checked` state, and fire
|
|
119
|
+
* `input` + `change` so frameworks observe the flip.
|
|
120
|
+
*/
|
|
121
|
+
export declare function toggleControl(el: HTMLInputElement, checked: boolean, options?: ToggleOptions): Promise<void>;
|
|
122
|
+
//# sourceMappingURL=animations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../src/dom/animations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAUD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,mFAAmF;IACnF,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAmBD,kDAAkD;AAClD,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAErE,MAAM,WAAW,WAAW;IAC1B,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAC5B,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CAYf;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,uEAAuE;AACvE,wBAAsB,kBAAkB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,CAChC,EAAE,EAAE,iBAAiB,EACrB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAsB,aAAa,CACjC,EAAE,EAAE,gBAAgB,EACpB,OAAO,EAAE,OAAO,EAChB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAQf"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type FlashOptions, type HighlightClickOptions, type PressOptions, type SelectOptions, type TextLikeElement, type ToggleOptions, type TypeOptions } from "./animations.js";
|
|
2
|
+
/**
|
|
3
|
+
* Every flash option except `focus`, which is not on offer: a field has to hold
|
|
4
|
+
* focus to be typed into.
|
|
5
|
+
*/
|
|
6
|
+
export interface FillFieldOptions extends TypeOptions, Omit<FlashOptions, "focus"> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Scroll to, focus (with a flash), and type `value` into a text field.
|
|
10
|
+
*
|
|
11
|
+
* The scroll is awaited — typing into an element still gliding past shows the
|
|
12
|
+
* user nothing.
|
|
13
|
+
*/
|
|
14
|
+
export declare function fillField(el: TextLikeElement, value: string, options?: FillFieldOptions): Promise<void>;
|
|
15
|
+
/** Scroll to, highlight, and click an element. */
|
|
16
|
+
export declare function clickElement(el: HTMLElement, options?: HighlightClickOptions): Promise<void>;
|
|
17
|
+
/** Scroll to a button/control and click it with a visible "press" animation. */
|
|
18
|
+
export declare function pressButton(el: HTMLElement, options?: PressOptions): Promise<void>;
|
|
19
|
+
/** Scroll to a `<select>`, highlight it, and pick the matching option (animated). */
|
|
20
|
+
export declare function selectControl(el: HTMLSelectElement, value: string, options?: SelectOptions): Promise<void>;
|
|
21
|
+
/** Scroll to a checkbox/radio, flash it, and set its checked state (animated). */
|
|
22
|
+
export declare function toggleCheckbox(el: HTMLInputElement, checked: boolean, options?: ToggleOptions): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Set a `<select>` or checkbox value without animation, dispatching the `input`
|
|
25
|
+
* and `change` events frameworks listen for.
|
|
26
|
+
*/
|
|
27
|
+
export declare function setControlValue(el: HTMLInputElement | HTMLSelectElement, value: string | boolean): void;
|
|
28
|
+
//# sourceMappingURL=dom_driver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom_driver.d.ts","sourceRoot":"","sources":["../../src/dom/dom_driver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,qBAAqB,EAE1B,KAAK,YAAY,EAEjB,KAAK,aAAa,EAGlB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAGjB,MAAM,iBAAiB,CAAC;AAIzB;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC;CAAG;AAErF;;;;;GAKG;AACH,wBAAsB,SAAS,CAC7B,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAIf;AAED,kDAAkD;AAClD,wBAAsB,YAAY,CAChC,EAAE,EAAE,WAAW,EACf,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,gFAAgF;AAChF,wBAAsB,WAAW,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAG5F;AAED,qFAAqF;AACrF,wBAAsB,aAAa,CACjC,EAAE,EAAE,iBAAiB,EACrB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,kFAAkF;AAClF,wBAAsB,cAAc,CAClC,EAAE,EAAE,gBAAgB,EACpB,OAAO,EAAE,OAAO,EAChB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,EAAE,EAAE,gBAAgB,GAAG,iBAAiB,EACxC,KAAK,EAAE,MAAM,GAAG,OAAO,GACtB,IAAI,CAON"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** How the overlay is drawn around the element being pointed at. */
|
|
2
|
+
export interface HighlightOverlayOptions {
|
|
3
|
+
/** Dim everything except the target. Default false. */
|
|
4
|
+
readonly scrim?: boolean;
|
|
5
|
+
/** Draw the ring as a moving gradient rather than a flat colour. Default false. */
|
|
6
|
+
readonly gradient?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Ring colour, and the flat fallback for the gradient. Default:
|
|
9
|
+
* `--ag-ui-highlight-ring-color` on the target, then on the chat, then the
|
|
10
|
+
* target's `--ag-ui-accent`, then the chat's accent, held to 3:1 against the
|
|
11
|
+
* surface behind the target.
|
|
12
|
+
*/
|
|
13
|
+
readonly color?: string;
|
|
14
|
+
/** The chat whose ring colour and accent to use. Default: the latest connected. */
|
|
15
|
+
readonly chat?: HTMLElement;
|
|
16
|
+
/** Gap between the target's box and the ring. Default 4. */
|
|
17
|
+
readonly padding?: number;
|
|
18
|
+
/** Corner radius of the cut-out and the ring. Default: the target's own. */
|
|
19
|
+
readonly radius?: number;
|
|
20
|
+
/** Ring thickness. Default 3, or `--ag-ui-highlight-ring-width` on the target. */
|
|
21
|
+
readonly ringWidth?: number;
|
|
22
|
+
/** One pass of the gradient. Default 2400, or `--ag-ui-highlight-flow-ms`. */
|
|
23
|
+
readonly flowMs?: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Draw an overlay that points at `target`, and return a function that removes it.
|
|
27
|
+
*
|
|
28
|
+
* An overlay rather than a style on the target: a flat highlight is an `outline` so an
|
|
29
|
+
* `overflow: hidden` ancestor cannot clip it, but an outline takes a colour, never a
|
|
30
|
+
* gradient, and a dim needs a surface larger than the target. Nothing here is a descendant
|
|
31
|
+
* of the target, so none of it is clipped.
|
|
32
|
+
*
|
|
33
|
+
* It is inert: it never takes a pointer event, so the driver can still click what it
|
|
34
|
+
* just pointed at.
|
|
35
|
+
*
|
|
36
|
+
* It follows: the cut-out is recomputed on scroll and resize.
|
|
37
|
+
*/
|
|
38
|
+
export declare function showHighlightOverlay(target: HTMLElement, options?: HighlightOverlayOptions): () => void;
|
|
39
|
+
//# sourceMappingURL=highlight_overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlight_overlay.d.ts","sourceRoot":"","sources":["../../src/dom/highlight_overlay.ts"],"names":[],"mappings":"AAGA,oEAAoE;AACpE,MAAM,WAAW,uBAAuB;IACtC,uDAAuD;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,mFAAmF;IACnF,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,mFAAmF;IACnF,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,4EAA4E;IAC5E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,kFAAkF;IAClF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAcD;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,WAAW,EACnB,OAAO,GAAE,uBAA4B,GACpC,MAAM,IAAI,CAsFZ"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Set `el.value` via the element's native prototype setter. */
|
|
2
|
+
export declare function setNativeValue(el: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement, value: string): void;
|
|
3
|
+
/** Set `el.checked` via the native prototype setter. */
|
|
4
|
+
export declare function setNativeChecked(el: HTMLInputElement, checked: boolean): void;
|
|
5
|
+
//# sourceMappingURL=native_setter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native_setter.d.ts","sourceRoot":"","sources":["../../src/dom/native_setter.ts"],"names":[],"mappings":"AAsBA,gEAAgE;AAChE,wBAAgB,cAAc,CAC5B,EAAE,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,EAC9D,KAAK,EAAE,MAAM,GACZ,IAAI,CAQN;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAE7E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The colour a highlight ring is drawn in when the caller passed none.
|
|
3
|
+
*
|
|
4
|
+
* In order: `--ag-ui-highlight-ring-color` on the target, the same token on the chat, the
|
|
5
|
+
* target's `--ag-ui-accent`, the chat's resolved accent, the package indigo. The target's
|
|
6
|
+
* accent outranks the chat's default so a host theming its page keeps its rings; the ring
|
|
7
|
+
* token outranks both so a host can keep the ring apart from the accent. Only the
|
|
8
|
+
* chat's own accent is adjusted, since it follows the widget's scheme rather than the
|
|
9
|
+
* page's: it is held to 3:1 against the surface behind the target (see
|
|
10
|
+
* {@link surfaceBehind}) by trying the other half of its light-dark pair, then stepping
|
|
11
|
+
* toward black or white. Every other value is a host's choice and is drawn as given.
|
|
12
|
+
*
|
|
13
|
+
* `chat` defaults to the most recently connected `<ag-ui-chat>`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function ringColor(target: HTMLElement, chat?: HTMLElement): string;
|
|
16
|
+
//# sourceMappingURL=ring_color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ring_color.d.ts","sourceRoot":"","sources":["../../src/dom/ring_color.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,CAmBzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/dom/utils.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAG5D"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export { ATTACHMENT_EVENT, BAR_HEIGHT_EVENT, CHART_ACTIVITY_TYPE, COMPACTION_ACTIVITY_TYPE, CUSTOM_AGENT_EVENT, DOCK_WIDTH_EVENT, ELEMENT_TAG, FEEDBACK_EVENT, INVALIDATE_CUSTOM_NAME, INVALIDATE_EVENT, LOAD_CAPABILITY_TOOL, MAX_TOOL_ROUNDS, MAXIMIZE_EVENT, MESSAGE_ACTIONS, MESSAGE_ROLE, RUN_FINISHED_EVENT, STATE_EVENT, SUBMIT_EVENT, SUGGESTIONS_ACTIVITY_TYPE, THREAD_EVENT, THREAD_TITLE_EVENT, TOGGLE_EVENT, TOOL_CALL_STATUS, TOOL_DISPLAY, TOOL_GROUP_DISPLAY, TOOL_OUTCOME, type ToolGroupDisplayMode, UNREAD_EVENT, X_CONFIRM_KEY, X_DESTRUCTIVE_KEY, X_NAVIGATES_KEY, X_SUMMARY_KEY, } from "./constants.js";
|
|
2
|
+
export type { ActivityRegistration } from "./core/activity_registration.js";
|
|
3
|
+
export type { ActivityRenderer } from "./core/activity_renderer.js";
|
|
4
|
+
export { AgUiClient, type AgUiClientConfig, type AgUiClientHandlers, type AgUiMessageIds, type AgUiRunInputs, type AgUiToolCall, ConnectionLostError, type ExecuteTool, type InterruptResponse, type ResolveInterrupts, type ToolExecution, } from "./core/agui_client.js";
|
|
5
|
+
export { type AttachmentRef, messageAttachments } from "./core/attachment.js";
|
|
6
|
+
export { type ClientConversationStore, type NavigationCheckpoint, SessionStorageStore, type ThreadMeta, } from "./core/conversation_store.js";
|
|
7
|
+
export { type AgentFactory, createHttpAgent, type HttpAgentOptions, } from "./core/create_http_agent.js";
|
|
8
|
+
export type { AttachmentsDetail } from "./core/events/attachments_detail.js";
|
|
9
|
+
export type { BarHeightDetail } from "./core/events/bar_height_detail.js";
|
|
10
|
+
export type { CustomAgentDetail } from "./core/events/custom_agent_detail.js";
|
|
11
|
+
export type { DockWidthDetail } from "./core/events/dock_width_detail.js";
|
|
12
|
+
export type { FeedbackDetail } from "./core/events/feedback_detail.js";
|
|
13
|
+
export type { InvalidateDetail } from "./core/events/invalidate_detail.js";
|
|
14
|
+
export type { MaximizeDetail } from "./core/events/maximize_detail.js";
|
|
15
|
+
export type { RunFinishedDetail } from "./core/events/run_finished_detail.js";
|
|
16
|
+
export type { StateDetail } from "./core/events/state_detail.js";
|
|
17
|
+
export type { SubmitDetail } from "./core/events/submit_detail.js";
|
|
18
|
+
export type { ThreadDetail } from "./core/events/thread_detail.js";
|
|
19
|
+
export type { ThreadTitleDetail } from "./core/events/thread_title_detail.js";
|
|
20
|
+
export type { ToggleDetail } from "./core/events/toggle_detail.js";
|
|
21
|
+
export type { ToolRun } from "./core/events/tool_run.js";
|
|
22
|
+
export type { UnreadDetail } from "./core/events/unread_detail.js";
|
|
23
|
+
export type { MessageRole } from "./core/message_role.js";
|
|
24
|
+
export { RemoteConversationStore } from "./core/remote_conversation_store.js";
|
|
25
|
+
export { RunIndex, type RunRow } from "./core/run_index.js";
|
|
26
|
+
export { type ToolOutcome, toolStatusFromOutcome } from "./core/tool_outcome.js";
|
|
27
|
+
export { type TranscribeHandler, type TranscribeOptions, transcribeAudio, } from "./core/transcribe_audio.js";
|
|
28
|
+
export { type UploadHandler, type UploadOptions, uploadAttachment, } from "./core/upload_attachment.js";
|
|
29
|
+
export { type FlashOptions, flash, focusWithFlash, type HighlightClickOptions, highlightThenClick, type PressOptions, prefersReducedMotion, pressThenClick, type RingOwnerOptions, type ScrollOptions, type SelectOptions, scrollIntoCenterView, selectOption, type TextLikeElement, type ToggleOptions, type TypeOptions, toggleControl, typeInto, } from "./dom/animations.js";
|
|
30
|
+
export { clickElement, type FillFieldOptions, fillField, pressButton, selectControl, setControlValue, toggleCheckbox, } from "./dom/dom_driver.js";
|
|
31
|
+
export { type HighlightOverlayOptions, showHighlightOverlay, } from "./dom/highlight_overlay.js";
|
|
32
|
+
export { setNativeChecked, setNativeValue } from "./dom/native_setter.js";
|
|
33
|
+
export type { Skill } from "./skills/skill.js";
|
|
34
|
+
export { CHAT_CORNERS, type ChatCorner, type ChatSurface, type ChatSurfaceReport, createChatSurfaceTools, isChatCorner, } from "./tools/chat_surface_tools.js";
|
|
35
|
+
export { type ClientTool, ClientToolRegistry } from "./tools/client_tool_registry.js";
|
|
36
|
+
export { isDestructive } from "./tools/is_destructive.js";
|
|
37
|
+
export { isNavigates } from "./tools/is_navigates.js";
|
|
38
|
+
export { createPageActionTools, PAGE_ACTIONS, type ResolvePageTarget, } from "./tools/page_action_tools.js";
|
|
39
|
+
export { createPageMapContext, type PageMap } from "./tools/page_map.js";
|
|
40
|
+
export { createPageStateTools, type PageState } from "./tools/page_state.js";
|
|
41
|
+
export { parseToolCatalog, type ToolCatalogEntry } from "./tools/parse_tool_catalog.js";
|
|
42
|
+
export { createRouteTools, type Route, type RouteMap, type RouteWithParams, } from "./tools/route_map.js";
|
|
43
|
+
export type { ChartKind, ChartSeries, ChartSpec } from "./ui/charts/chart_block.js";
|
|
44
|
+
export { renderChart } from "./ui/charts/chart_block.js";
|
|
45
|
+
export { chartSpecFrom } from "./ui/charts/chart_spec_from.js";
|
|
46
|
+
export { CHART_TOOL_NAME } from "./ui/charts/chart_tool.js";
|
|
47
|
+
export { attachQuoteOffer, type PageQuoteOffer, type PageQuoteOfferOptions, } from "./ui/excerpts/page_quote_offer.js";
|
|
48
|
+
export { asQuote, MAX_QUOTE_CHARS, type QuotableSelection, quotableSelection, } from "./ui/excerpts/quote_selection.js";
|
|
49
|
+
export { CheckpointMenu, type CheckpointVerb } from "./ui/history/checkpoint_menu.js";
|
|
50
|
+
export { type RelativeTimeFormatter, relativeTime, } from "./ui/history/relative_time.js";
|
|
51
|
+
export { type ApprovalOptions, type ApprovalRenderer, type ApprovalRequest, requestApproval, } from "./ui/interrupts/approval_card.js";
|
|
52
|
+
export { type ConfirmationOptions, type ConfirmationRequest, requestConfirmation, } from "./ui/interrupts/confirmation_card.js";
|
|
53
|
+
export { type QuestionOptions, type QuestionRenderer, type QuestionRequest, requestQuestion, } from "./ui/interrupts/question_card.js";
|
|
54
|
+
export type { Place } from "./ui/place/place.js";
|
|
55
|
+
export { prettifyToolName } from "./ui/progress/prettify_tool_name.js";
|
|
56
|
+
export { type SettledStatus, ToolCallCard, type ToolCallCardOptions, type ToolCallStatus, type ToolDisplayMode, type ToolPayload, type ToolPayloadFormatter, } from "./ui/progress/tool_call_card.js";
|
|
57
|
+
export { attachMessageActions, type MessageActionsOptions, messageActionBar, } from "./ui/transcript/message_actions.js";
|
|
58
|
+
export { type RenderMarkdownOptions, renderMarkdown } from "./ui/transcript/render_markdown.js";
|
|
59
|
+
export { MAX_SUGGESTION_CHARS, MAX_SUGGESTIONS, renderSuggestionChips, suggestionPrompts, } from "./ui/transcript/suggestion_chips.js";
|
|
60
|
+
export { DEFAULT_UI_STRINGS, mergeUiStrings, type UiStrings } from "./ui/ui_strings.js";
|
|
61
|
+
export { VERSION } from "./version.js";
|
|
62
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,E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EAAE,kBAAkB,EAAE,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ATTACHMENT_EVENT,
|
|
3
|
+
AgUiClient,
|
|
4
|
+
BAR_HEIGHT_EVENT,
|
|
5
|
+
CHART_ACTIVITY_TYPE,
|
|
6
|
+
CHART_TOOL_NAME,
|
|
7
|
+
CHAT_CORNERS,
|
|
8
|
+
COMPACTION_ACTIVITY_TYPE,
|
|
9
|
+
CUSTOM_AGENT_EVENT,
|
|
10
|
+
CheckpointMenu,
|
|
11
|
+
ClientToolRegistry,
|
|
12
|
+
ConnectionLostError,
|
|
13
|
+
DEFAULT_UI_STRINGS,
|
|
14
|
+
DOCK_WIDTH_EVENT,
|
|
15
|
+
ELEMENT_TAG,
|
|
16
|
+
FEEDBACK_EVENT,
|
|
17
|
+
INVALIDATE_CUSTOM_NAME,
|
|
18
|
+
INVALIDATE_EVENT,
|
|
19
|
+
LOAD_CAPABILITY_TOOL,
|
|
20
|
+
MAXIMIZE_EVENT,
|
|
21
|
+
MAX_QUOTE_CHARS,
|
|
22
|
+
MAX_SUGGESTIONS,
|
|
23
|
+
MAX_SUGGESTION_CHARS,
|
|
24
|
+
MAX_TOOL_ROUNDS,
|
|
25
|
+
MESSAGE_ACTIONS,
|
|
26
|
+
MESSAGE_ROLE,
|
|
27
|
+
PAGE_ACTIONS,
|
|
28
|
+
RUN_FINISHED_EVENT,
|
|
29
|
+
RemoteConversationStore,
|
|
30
|
+
RunIndex,
|
|
31
|
+
STATE_EVENT,
|
|
32
|
+
SUBMIT_EVENT,
|
|
33
|
+
SUGGESTIONS_ACTIVITY_TYPE,
|
|
34
|
+
SessionStorageStore,
|
|
35
|
+
THREAD_EVENT,
|
|
36
|
+
THREAD_TITLE_EVENT,
|
|
37
|
+
TOGGLE_EVENT,
|
|
38
|
+
TOOL_CALL_STATUS,
|
|
39
|
+
TOOL_DISPLAY,
|
|
40
|
+
TOOL_GROUP_DISPLAY,
|
|
41
|
+
TOOL_OUTCOME,
|
|
42
|
+
ToolCallCard,
|
|
43
|
+
UNREAD_EVENT,
|
|
44
|
+
X_CONFIRM_KEY,
|
|
45
|
+
X_DESTRUCTIVE_KEY,
|
|
46
|
+
X_NAVIGATES_KEY,
|
|
47
|
+
X_SUMMARY_KEY,
|
|
48
|
+
asQuote,
|
|
49
|
+
attachMessageActions,
|
|
50
|
+
attachQuoteOffer,
|
|
51
|
+
chartSpecFrom,
|
|
52
|
+
createChatSurfaceTools,
|
|
53
|
+
createHttpAgent,
|
|
54
|
+
createPageActionTools,
|
|
55
|
+
createPageMapContext,
|
|
56
|
+
createPageStateTools,
|
|
57
|
+
createRouteTools,
|
|
58
|
+
dispatchInputAndChange,
|
|
59
|
+
flash,
|
|
60
|
+
focusWithFlash,
|
|
61
|
+
highlightThenClick,
|
|
62
|
+
isChatCorner,
|
|
63
|
+
isDestructive,
|
|
64
|
+
isNavigates,
|
|
65
|
+
mergeUiStrings,
|
|
66
|
+
messageActionBar,
|
|
67
|
+
messageAttachments,
|
|
68
|
+
parseToolCatalog,
|
|
69
|
+
prefersReducedMotion,
|
|
70
|
+
pressThenClick,
|
|
71
|
+
prettifyToolName,
|
|
72
|
+
quotableSelection,
|
|
73
|
+
relativeTime,
|
|
74
|
+
renderChart,
|
|
75
|
+
renderMarkdown,
|
|
76
|
+
renderSuggestionChips,
|
|
77
|
+
requestApproval,
|
|
78
|
+
requestConfirmation,
|
|
79
|
+
requestQuestion,
|
|
80
|
+
scrollIntoCenterView,
|
|
81
|
+
selectOption,
|
|
82
|
+
setNativeChecked,
|
|
83
|
+
setNativeValue,
|
|
84
|
+
showHighlightOverlay,
|
|
85
|
+
suggestionPrompts,
|
|
86
|
+
toggleControl,
|
|
87
|
+
toolStatusFromOutcome,
|
|
88
|
+
transcribeAudio,
|
|
89
|
+
typeInto,
|
|
90
|
+
uploadAttachment
|
|
91
|
+
} from "./chunk-ARNLFGCC.js";
|
|
92
|
+
|
|
93
|
+
// src/dom/dom_driver.ts
|
|
94
|
+
async function fillField(el, value, options = {}) {
|
|
95
|
+
await scrollIntoCenterView(el);
|
|
96
|
+
await focusWithFlash(el, { ...options, flashMs: options.flashMs ?? 0 });
|
|
97
|
+
await typeInto(el, value, options);
|
|
98
|
+
}
|
|
99
|
+
async function clickElement(el, options = {}) {
|
|
100
|
+
await scrollIntoCenterView(el);
|
|
101
|
+
await highlightThenClick(el, options);
|
|
102
|
+
}
|
|
103
|
+
async function pressButton(el, options = {}) {
|
|
104
|
+
await scrollIntoCenterView(el);
|
|
105
|
+
await pressThenClick(el, options);
|
|
106
|
+
}
|
|
107
|
+
async function selectControl(el, value, options = {}) {
|
|
108
|
+
await scrollIntoCenterView(el);
|
|
109
|
+
await selectOption(el, value, options);
|
|
110
|
+
}
|
|
111
|
+
async function toggleCheckbox(el, checked, options = {}) {
|
|
112
|
+
await scrollIntoCenterView(el);
|
|
113
|
+
await toggleControl(el, checked, options);
|
|
114
|
+
}
|
|
115
|
+
function setControlValue(el, value) {
|
|
116
|
+
if (el instanceof HTMLInputElement && el.type === "checkbox") {
|
|
117
|
+
setNativeChecked(el, Boolean(value));
|
|
118
|
+
} else {
|
|
119
|
+
setNativeValue(el, String(value));
|
|
120
|
+
}
|
|
121
|
+
dispatchInputAndChange(el);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// src/version.ts
|
|
125
|
+
var VERSION = "0.1.1";
|
|
126
|
+
export {
|
|
127
|
+
ATTACHMENT_EVENT,
|
|
128
|
+
AgUiClient,
|
|
129
|
+
BAR_HEIGHT_EVENT,
|
|
130
|
+
CHART_ACTIVITY_TYPE,
|
|
131
|
+
CHART_TOOL_NAME,
|
|
132
|
+
CHAT_CORNERS,
|
|
133
|
+
COMPACTION_ACTIVITY_TYPE,
|
|
134
|
+
CUSTOM_AGENT_EVENT,
|
|
135
|
+
CheckpointMenu,
|
|
136
|
+
ClientToolRegistry,
|
|
137
|
+
ConnectionLostError,
|
|
138
|
+
DEFAULT_UI_STRINGS,
|
|
139
|
+
DOCK_WIDTH_EVENT,
|
|
140
|
+
ELEMENT_TAG,
|
|
141
|
+
FEEDBACK_EVENT,
|
|
142
|
+
INVALIDATE_CUSTOM_NAME,
|
|
143
|
+
INVALIDATE_EVENT,
|
|
144
|
+
LOAD_CAPABILITY_TOOL,
|
|
145
|
+
MAXIMIZE_EVENT,
|
|
146
|
+
MAX_QUOTE_CHARS,
|
|
147
|
+
MAX_SUGGESTIONS,
|
|
148
|
+
MAX_SUGGESTION_CHARS,
|
|
149
|
+
MAX_TOOL_ROUNDS,
|
|
150
|
+
MESSAGE_ACTIONS,
|
|
151
|
+
MESSAGE_ROLE,
|
|
152
|
+
PAGE_ACTIONS,
|
|
153
|
+
RUN_FINISHED_EVENT,
|
|
154
|
+
RemoteConversationStore,
|
|
155
|
+
RunIndex,
|
|
156
|
+
STATE_EVENT,
|
|
157
|
+
SUBMIT_EVENT,
|
|
158
|
+
SUGGESTIONS_ACTIVITY_TYPE,
|
|
159
|
+
SessionStorageStore,
|
|
160
|
+
THREAD_EVENT,
|
|
161
|
+
THREAD_TITLE_EVENT,
|
|
162
|
+
TOGGLE_EVENT,
|
|
163
|
+
TOOL_CALL_STATUS,
|
|
164
|
+
TOOL_DISPLAY,
|
|
165
|
+
TOOL_GROUP_DISPLAY,
|
|
166
|
+
TOOL_OUTCOME,
|
|
167
|
+
ToolCallCard,
|
|
168
|
+
UNREAD_EVENT,
|
|
169
|
+
VERSION,
|
|
170
|
+
X_CONFIRM_KEY,
|
|
171
|
+
X_DESTRUCTIVE_KEY,
|
|
172
|
+
X_NAVIGATES_KEY,
|
|
173
|
+
X_SUMMARY_KEY,
|
|
174
|
+
asQuote,
|
|
175
|
+
attachMessageActions,
|
|
176
|
+
attachQuoteOffer,
|
|
177
|
+
chartSpecFrom,
|
|
178
|
+
clickElement,
|
|
179
|
+
createChatSurfaceTools,
|
|
180
|
+
createHttpAgent,
|
|
181
|
+
createPageActionTools,
|
|
182
|
+
createPageMapContext,
|
|
183
|
+
createPageStateTools,
|
|
184
|
+
createRouteTools,
|
|
185
|
+
fillField,
|
|
186
|
+
flash,
|
|
187
|
+
focusWithFlash,
|
|
188
|
+
highlightThenClick,
|
|
189
|
+
isChatCorner,
|
|
190
|
+
isDestructive,
|
|
191
|
+
isNavigates,
|
|
192
|
+
mergeUiStrings,
|
|
193
|
+
messageActionBar,
|
|
194
|
+
messageAttachments,
|
|
195
|
+
parseToolCatalog,
|
|
196
|
+
prefersReducedMotion,
|
|
197
|
+
pressButton,
|
|
198
|
+
pressThenClick,
|
|
199
|
+
prettifyToolName,
|
|
200
|
+
quotableSelection,
|
|
201
|
+
relativeTime,
|
|
202
|
+
renderChart,
|
|
203
|
+
renderMarkdown,
|
|
204
|
+
renderSuggestionChips,
|
|
205
|
+
requestApproval,
|
|
206
|
+
requestConfirmation,
|
|
207
|
+
requestQuestion,
|
|
208
|
+
scrollIntoCenterView,
|
|
209
|
+
selectControl,
|
|
210
|
+
selectOption,
|
|
211
|
+
setControlValue,
|
|
212
|
+
setNativeChecked,
|
|
213
|
+
setNativeValue,
|
|
214
|
+
showHighlightOverlay,
|
|
215
|
+
suggestionPrompts,
|
|
216
|
+
toggleCheckbox,
|
|
217
|
+
toggleControl,
|
|
218
|
+
toolStatusFromOutcome,
|
|
219
|
+
transcribeAudio,
|
|
220
|
+
typeInto,
|
|
221
|
+
uploadAttachment
|
|
222
|
+
};
|
|
223
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/dom/dom_driver.ts", "../src/version.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n type FlashOptions,\n focusWithFlash,\n type HighlightClickOptions,\n highlightThenClick,\n type PressOptions,\n pressThenClick,\n type SelectOptions,\n scrollIntoCenterView,\n selectOption,\n type TextLikeElement,\n type ToggleOptions,\n type TypeOptions,\n toggleControl,\n typeInto,\n} from \"./animations.js\";\nimport { setNativeChecked, setNativeValue } from \"./native_setter.js\";\nimport { dispatchInputAndChange } from \"./utils.js\";\n\n/**\n * Every flash option except `focus`, which is not on offer: a field has to hold\n * focus to be typed into.\n */\nexport interface FillFieldOptions extends TypeOptions, Omit<FlashOptions, \"focus\"> {}\n\n/**\n * Scroll to, focus (with a flash), and type `value` into a text field.\n *\n * The scroll is awaited \u2014 typing into an element still gliding past shows the\n * user nothing.\n */\nexport async function fillField(\n el: TextLikeElement,\n value: string,\n options: FillFieldOptions = {},\n): Promise<void> {\n await scrollIntoCenterView(el);\n await focusWithFlash(el, { ...options, flashMs: options.flashMs ?? 0 });\n await typeInto(el, value, options);\n}\n\n/** Scroll to, highlight, and click an element. */\nexport async function clickElement(\n el: HTMLElement,\n options: HighlightClickOptions = {},\n): Promise<void> {\n await scrollIntoCenterView(el);\n await highlightThenClick(el, options);\n}\n\n/** Scroll to a button/control and click it with a visible \"press\" animation. */\nexport async function pressButton(el: HTMLElement, options: PressOptions = {}): Promise<void> {\n await scrollIntoCenterView(el);\n await pressThenClick(el, options);\n}\n\n/** Scroll to a `<select>`, highlight it, and pick the matching option (animated). */\nexport async function selectControl(\n el: HTMLSelectElement,\n value: string,\n options: SelectOptions = {},\n): Promise<void> {\n await scrollIntoCenterView(el);\n await selectOption(el, value, options);\n}\n\n/** Scroll to a checkbox/radio, flash it, and set its checked state (animated). */\nexport async function toggleCheckbox(\n el: HTMLInputElement,\n checked: boolean,\n options: ToggleOptions = {},\n): Promise<void> {\n await scrollIntoCenterView(el);\n await toggleControl(el, checked, options);\n}\n\n/**\n * Set a `<select>` or checkbox value without animation, dispatching the `input`\n * and `change` events frameworks listen for.\n */\nexport function setControlValue(\n el: HTMLInputElement | HTMLSelectElement,\n value: string | boolean,\n): void {\n if (el instanceof HTMLInputElement && el.type === \"checkbox\") {\n setNativeChecked(el, Boolean(value));\n } else {\n setNativeValue(el, String(value));\n }\n dispatchInputAndChange(el);\n}\n", "export const VERSION: string = \"0.1.1\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,eAAsB,UACpB,IACA,OACA,UAA4B,CAAC,GACd;AACf,QAAM,qBAAqB,EAAE;AAC7B,QAAM,eAAe,IAAI,EAAE,GAAG,SAAS,SAAS,QAAQ,WAAW,EAAE,CAAC;AACtE,QAAM,SAAS,IAAI,OAAO,OAAO;AACnC;AAGA,eAAsB,aACpB,IACA,UAAiC,CAAC,GACnB;AACf,QAAM,qBAAqB,EAAE;AAC7B,QAAM,mBAAmB,IAAI,OAAO;AACtC;AAGA,eAAsB,YAAY,IAAiB,UAAwB,CAAC,GAAkB;AAC5F,QAAM,qBAAqB,EAAE;AAC7B,QAAM,eAAe,IAAI,OAAO;AAClC;AAGA,eAAsB,cACpB,IACA,OACA,UAAyB,CAAC,GACX;AACf,QAAM,qBAAqB,EAAE;AAC7B,QAAM,aAAa,IAAI,OAAO,OAAO;AACvC;AAGA,eAAsB,eACpB,IACA,SACA,UAAyB,CAAC,GACX;AACf,QAAM,qBAAqB,EAAE;AAC7B,QAAM,cAAc,IAAI,SAAS,OAAO;AAC1C;AAMO,SAAS,gBACd,IACA,OACM;AACN,MAAI,cAAc,oBAAoB,GAAG,SAAS,YAAY;AAC5D,qBAAiB,IAAI,QAAQ,KAAK,CAAC;AAAA,EACrC,OAAO;AACL,mBAAe,IAAI,OAAO,KAAK,CAAC;AAAA,EAClC;AACA,yBAAuB,EAAE;AAC3B;;;AC1FO,IAAM,UAAkB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Result of {@link fillTemplate}: the filled text plus any unresolved keys. */
|
|
2
|
+
export interface TemplateResult {
|
|
3
|
+
/** The prompt with resolved `{placeholder}`s substituted. */
|
|
4
|
+
readonly text: string;
|
|
5
|
+
/** Placeholder names with no value available (deduped, in first-seen order). */
|
|
6
|
+
readonly missing: readonly string[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Substitute `{name}` placeholders in `template` from `values`.
|
|
10
|
+
*
|
|
11
|
+
* A placeholder whose value is missing, `null`, or an empty string is left
|
|
12
|
+
* verbatim and reported in `missing`, so the caller can block the send rather
|
|
13
|
+
* than dispatch a half-filled prompt.
|
|
14
|
+
*/
|
|
15
|
+
export declare function fillTemplate(template: string, values: Record<string, unknown>): TemplateResult;
|
|
16
|
+
//# sourceMappingURL=fill_template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fill_template.d.ts","sourceRoot":"","sources":["../../src/skills/fill_template.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAID;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,cAAc,CAa9F"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Skill } from "./skill.js";
|
|
2
|
+
/**
|
|
3
|
+
* Parse an untrusted value (parsed JSON from `data-skills` or a skills
|
|
4
|
+
* endpoint) into a list of {@link Skill}s, dropping anything malformed. Never
|
|
5
|
+
* throws — a bad payload yields an empty list.
|
|
6
|
+
*/
|
|
7
|
+
export declare function parseSkills(value: unknown): Skill[];
|
|
8
|
+
//# sourceMappingURL=parse_skills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse_skills.d.ts","sourceRoot":"","sources":["../../src/skills/parse_skills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAoBxC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,EAAE,CAKnD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A pre-defined prompt the user can launch from the chat — surfaced as a chip
|
|
3
|
+
* and/or in the `/`-command palette. One catalog feeds both surfaces; the host
|
|
4
|
+
* provides skills via the `skills` property / `data-skills` attribute / a
|
|
5
|
+
* fetched endpoint (see {@link AgUiChat}).
|
|
6
|
+
*/
|
|
7
|
+
export interface Skill {
|
|
8
|
+
/** Stable id; the `/token` (kebab-case) in the palette. */
|
|
9
|
+
readonly name: string;
|
|
10
|
+
/** Label shown in chips and the palette. */
|
|
11
|
+
readonly title: string;
|
|
12
|
+
/** Secondary line shown in the palette. */
|
|
13
|
+
readonly description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The prompt to send. May contain `{placeholder}`s filled from the host's
|
|
16
|
+
* skill context before send; an unfilled placeholder blocks send.
|
|
17
|
+
*
|
|
18
|
+
* Omit it to keep the prompt server-side: the skill then sends the bare
|
|
19
|
+
* `/name` token for the agent to resolve, and the wording never reaches the
|
|
20
|
+
* browser. Prefer that for anything internal — a fetched catalog is a plain
|
|
21
|
+
* GET and an embedded one sits in the page source.
|
|
22
|
+
*/
|
|
23
|
+
readonly prompt?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Set `false` to pre-fill the composer instead of sending on pick. Defaults
|
|
26
|
+
* to sending, and is only meaningful for a skill carrying its own `prompt`;
|
|
27
|
+
* a server-resolved one always sends.
|
|
28
|
+
*/
|
|
29
|
+
readonly sendImmediately?: boolean;
|
|
30
|
+
/** Also surface this skill as a chip (default false; the palette shows all). */
|
|
31
|
+
readonly chip?: boolean;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=skill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../src/skills/skill.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,KAAK;IACpB,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,gFAAgF;IAChF,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB"}
|