@athenaintel/react 0.57.1 → 0.59.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.md +778 -9
- package/dist/agent-runtime/src/addressed-agents.cjs +16 -0
- package/dist/agent-runtime/src/addressed-agents.cjs.map +1 -0
- package/dist/agent-runtime/src/addressed-agents.d.ts +30 -0
- package/dist/agent-runtime/src/addressed-agents.js +16 -0
- package/dist/agent-runtime/src/addressed-agents.js.map +1 -0
- package/dist/agent-runtime/src/answer-label.cjs +4 -3
- package/dist/agent-runtime/src/answer-label.cjs.map +1 -1
- package/dist/agent-runtime/src/answer-label.d.ts +13 -6
- package/dist/agent-runtime/src/answer-label.js +4 -3
- package/dist/agent-runtime/src/answer-label.js.map +1 -1
- package/dist/agent-runtime/src/chat-outbox-attachments.cjs.map +1 -1
- package/dist/agent-runtime/src/chat-outbox-attachments.d.ts +1 -1
- package/dist/agent-runtime/src/chat-outbox-attachments.js.map +1 -1
- package/dist/agent-runtime/src/chat-outbox-entry.cjs +101 -0
- package/dist/agent-runtime/src/chat-outbox-entry.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-entry.d.ts +99 -0
- package/dist/agent-runtime/src/chat-outbox-entry.js +101 -0
- package/dist/agent-runtime/src/chat-outbox-entry.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-legacy.cjs +252 -0
- package/dist/agent-runtime/src/chat-outbox-legacy.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-legacy.d.ts +96 -0
- package/dist/agent-runtime/src/chat-outbox-legacy.js +252 -0
- package/dist/agent-runtime/src/chat-outbox-legacy.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-policy.cjs +30 -0
- package/dist/agent-runtime/src/chat-outbox-policy.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-policy.d.ts +42 -0
- package/dist/agent-runtime/src/chat-outbox-policy.js +30 -0
- package/dist/agent-runtime/src/chat-outbox-policy.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-storage.cjs +306 -0
- package/dist/agent-runtime/src/chat-outbox-storage.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-storage.d.ts +194 -0
- package/dist/agent-runtime/src/chat-outbox-storage.js +306 -0
- package/dist/agent-runtime/src/chat-outbox-storage.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-thread.cjs +21 -94
- package/dist/agent-runtime/src/chat-outbox-thread.cjs.map +1 -1
- package/dist/agent-runtime/src/chat-outbox-thread.d.ts +22 -18
- package/dist/agent-runtime/src/chat-outbox-thread.js +21 -94
- package/dist/agent-runtime/src/chat-outbox-thread.js.map +1 -1
- package/dist/agent-runtime/src/chat-outbox.cjs +492 -547
- package/dist/agent-runtime/src/chat-outbox.cjs.map +1 -1
- package/dist/agent-runtime/src/chat-outbox.d.ts +110 -142
- package/dist/agent-runtime/src/chat-outbox.js +492 -547
- package/dist/agent-runtime/src/chat-outbox.js.map +1 -1
- package/dist/agent-runtime/src/composer-markdown.cjs.map +1 -1
- package/dist/agent-runtime/src/composer-markdown.d.ts +1 -1
- package/dist/agent-runtime/src/composer-markdown.js.map +1 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.cjs +3 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.cjs.map +1 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.d.ts +8 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.js +3 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.js.map +1 -1
- package/dist/agent-runtime/src/dictation-preferences.d.ts +356 -0
- package/dist/agent-runtime/src/dictation-record.d.ts +279 -0
- package/dist/agent-runtime/src/dictation-session.d.ts +106 -7
- package/dist/agent-runtime/src/dictation-snippets.d.ts +9 -0
- package/dist/agent-runtime/src/dictation-transfer.d.ts +142 -0
- package/dist/agent-runtime/src/edit-command.cjs.map +1 -1
- package/dist/agent-runtime/src/edit-command.d.ts +1 -1
- package/dist/agent-runtime/src/edit-command.js.map +1 -1
- package/dist/agent-runtime/src/errors.cjs +1 -0
- package/dist/agent-runtime/src/errors.cjs.map +1 -1
- package/dist/agent-runtime/src/errors.js +1 -0
- package/dist/agent-runtime/src/errors.js.map +1 -1
- package/dist/agent-runtime/src/generated/runconfig-contract.cjs +24 -0
- package/dist/agent-runtime/src/generated/runconfig-contract.cjs.map +1 -1
- package/dist/agent-runtime/src/generated/runconfig-contract.d.ts +3 -3
- package/dist/agent-runtime/src/generated/runconfig-contract.js +24 -0
- package/dist/agent-runtime/src/generated/runconfig-contract.js.map +1 -1
- package/dist/agent-runtime/src/index.d.ts +14 -8
- package/dist/agent-runtime/src/lane-follow.cjs +289 -0
- package/dist/agent-runtime/src/lane-follow.cjs.map +1 -0
- package/dist/agent-runtime/src/lane-follow.js +289 -0
- package/dist/agent-runtime/src/lane-follow.js.map +1 -0
- package/dist/agent-runtime/src/lane-images.cjs +387 -0
- package/dist/agent-runtime/src/lane-images.cjs.map +1 -0
- package/dist/agent-runtime/src/lane-images.js +387 -0
- package/dist/agent-runtime/src/lane-images.js.map +1 -0
- package/dist/agent-runtime/src/message-window.js +1 -1
- package/dist/agent-runtime/src/messages.cjs +19 -1
- package/dist/agent-runtime/src/messages.cjs.map +1 -1
- package/dist/agent-runtime/src/messages.d.ts +8 -0
- package/dist/agent-runtime/src/messages.js +21 -3
- package/dist/agent-runtime/src/messages.js.map +1 -1
- package/dist/agent-runtime/src/named-agents.cjs +301 -0
- package/dist/agent-runtime/src/named-agents.cjs.map +1 -0
- package/dist/agent-runtime/src/named-agents.d.ts +246 -0
- package/dist/agent-runtime/src/named-agents.js +301 -0
- package/dist/agent-runtime/src/named-agents.js.map +1 -0
- package/dist/agent-runtime/src/offline-status.cjs.map +1 -1
- package/dist/agent-runtime/src/offline-status.d.ts +66 -2
- package/dist/agent-runtime/src/offline-status.js.map +1 -1
- package/dist/agent-runtime/src/ptc-subcalls.cjs +41 -0
- package/dist/agent-runtime/src/ptc-subcalls.cjs.map +1 -0
- package/dist/agent-runtime/src/ptc-subcalls.js +41 -0
- package/dist/agent-runtime/src/ptc-subcalls.js.map +1 -0
- package/dist/agent-runtime/src/queue.cjs +2 -2
- package/dist/agent-runtime/src/queue.cjs.map +1 -1
- package/dist/agent-runtime/src/queue.d.ts +20 -25
- package/dist/agent-runtime/src/queue.js +2 -2
- package/dist/agent-runtime/src/queue.js.map +1 -1
- package/dist/agent-runtime/src/quota-safe-local-storage-session.cjs +314 -84
- package/dist/agent-runtime/src/quota-safe-local-storage-session.cjs.map +1 -1
- package/dist/agent-runtime/src/quota-safe-local-storage-session.d.ts +137 -40
- package/dist/agent-runtime/src/quota-safe-local-storage-session.js +318 -88
- package/dist/agent-runtime/src/quota-safe-local-storage-session.js.map +1 -1
- package/dist/agent-runtime/src/run-send.cjs +54 -0
- package/dist/agent-runtime/src/run-send.cjs.map +1 -0
- package/dist/agent-runtime/src/run-send.d.ts +51 -0
- package/dist/agent-runtime/src/run-send.js +54 -0
- package/dist/agent-runtime/src/run-send.js.map +1 -0
- package/dist/agent-runtime/src/running-tool-placeholder.cjs +6 -0
- package/dist/agent-runtime/src/running-tool-placeholder.cjs.map +1 -1
- package/dist/agent-runtime/src/running-tool-placeholder.js +6 -0
- package/dist/agent-runtime/src/running-tool-placeholder.js.map +1 -1
- package/dist/agent-runtime/src/runtime.d.ts +9 -5
- package/dist/agent-runtime/src/sealed-idb.cjs +64 -0
- package/dist/agent-runtime/src/sealed-idb.cjs.map +1 -1
- package/dist/agent-runtime/src/sealed-idb.d.ts +16 -0
- package/dist/agent-runtime/src/sealed-idb.js +64 -0
- package/dist/agent-runtime/src/sealed-idb.js.map +1 -1
- package/dist/agent-runtime/src/send-recovery.cjs +90 -118
- package/dist/agent-runtime/src/send-recovery.cjs.map +1 -1
- package/dist/agent-runtime/src/send-recovery.d.ts +25 -29
- package/dist/agent-runtime/src/send-recovery.js +90 -118
- package/dist/agent-runtime/src/send-recovery.js.map +1 -1
- package/dist/agent-runtime/src/statewire-diagnostics.d.ts +4 -1
- package/dist/agent-runtime/src/statewire-held-sends.cjs +191 -0
- package/dist/agent-runtime/src/statewire-held-sends.cjs.map +1 -0
- package/dist/agent-runtime/src/statewire-held-sends.d.ts +119 -0
- package/dist/agent-runtime/src/statewire-held-sends.js +191 -0
- package/dist/agent-runtime/src/statewire-held-sends.js.map +1 -0
- package/dist/agent-runtime/src/statewire-state.cjs +4 -0
- package/dist/agent-runtime/src/statewire-state.cjs.map +1 -1
- package/dist/agent-runtime/src/statewire-state.js +4 -0
- package/dist/agent-runtime/src/statewire-state.js.map +1 -1
- package/dist/agent-runtime/src/statewire-transport.cjs +8 -2
- package/dist/agent-runtime/src/statewire-transport.cjs.map +1 -1
- package/dist/agent-runtime/src/statewire-transport.d.ts +14 -5
- package/dist/agent-runtime/src/statewire-transport.js +8 -2
- package/dist/agent-runtime/src/statewire-transport.js.map +1 -1
- package/dist/agent-runtime/src/subagent-transcripts.cjs +1 -23
- package/dist/agent-runtime/src/subagent-transcripts.cjs.map +1 -1
- package/dist/agent-runtime/src/subagent-transcripts.js +3 -25
- package/dist/agent-runtime/src/subagent-transcripts.js.map +1 -1
- package/dist/agent-runtime/src/subagents.cjs +22 -29
- package/dist/agent-runtime/src/subagents.cjs.map +1 -1
- package/dist/agent-runtime/src/subagents.js +23 -30
- package/dist/agent-runtime/src/subagents.js.map +1 -1
- package/dist/agent-runtime/src/thread-extras.cjs +27 -19
- package/dist/agent-runtime/src/thread-extras.cjs.map +1 -1
- package/dist/agent-runtime/src/thread-extras.d.ts +19 -6
- package/dist/agent-runtime/src/thread-extras.js +27 -19
- package/dist/agent-runtime/src/thread-extras.js.map +1 -1
- package/dist/agent-runtime/src/thread-handoff-flow-machine.d.ts +8 -8
- package/dist/agent-runtime/src/tool-metadata.cjs +12 -0
- package/dist/agent-runtime/src/tool-metadata.cjs.map +1 -1
- package/dist/agent-runtime/src/tool-metadata.js +12 -0
- package/dist/agent-runtime/src/tool-metadata.js.map +1 -1
- package/dist/agent-runtime/src/tool-names.cjs +21 -0
- package/dist/agent-runtime/src/tool-names.cjs.map +1 -1
- package/dist/agent-runtime/src/tool-names.d.ts +8 -0
- package/dist/agent-runtime/src/tool-names.js +21 -0
- package/dist/agent-runtime/src/tool-names.js.map +1 -1
- package/dist/agent-runtime/src/typed-interrupt-kinds.cjs +247 -0
- package/dist/agent-runtime/src/typed-interrupt-kinds.cjs.map +1 -0
- package/dist/agent-runtime/src/typed-interrupt-kinds.d.ts +173 -0
- package/dist/agent-runtime/src/typed-interrupt-kinds.js +247 -0
- package/dist/agent-runtime/src/typed-interrupt-kinds.js.map +1 -0
- package/dist/agent-runtime/src/typed-interrupts.cjs +48 -0
- package/dist/agent-runtime/src/typed-interrupts.cjs.map +1 -0
- package/dist/agent-runtime/src/typed-interrupts.d.ts +75 -0
- package/dist/agent-runtime/src/typed-interrupts.js +48 -0
- package/dist/agent-runtime/src/typed-interrupts.js.map +1 -0
- package/dist/agent-runtime/src/types.d.ts +1 -1
- package/dist/agent-runtime/src/use-conversation-list.cjs +1 -0
- package/dist/agent-runtime/src/use-conversation-list.cjs.map +1 -1
- package/dist/agent-runtime/src/use-conversation-list.d.ts +7 -0
- package/dist/agent-runtime/src/use-conversation-list.js +1 -0
- package/dist/agent-runtime/src/use-conversation-list.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.cjs +46 -29
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.d.ts +14 -22
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.js +46 -29
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-runtime.cjs +78 -14
- package/dist/agent-runtime/src/use-deep-agent-runtime.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-runtime.d.ts +34 -7
- package/dist/agent-runtime/src/use-deep-agent-runtime.js +79 -15
- package/dist/agent-runtime/src/use-deep-agent-runtime.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.cjs +16 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.d.ts +7 -2
- package/dist/agent-runtime/src/use-deep-agent-thread.js +16 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-voice.cjs +30 -4
- package/dist/agent-runtime/src/use-deep-agent-voice.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-voice.d.ts +22 -4
- package/dist/agent-runtime/src/use-deep-agent-voice.js +30 -4
- package/dist/agent-runtime/src/use-deep-agent-voice.js.map +1 -1
- package/dist/agent-runtime/src/withdrawn-turns.d.ts +5 -4
- package/dist/agent-runtime/src/word-device-fit.d.ts +174 -0
- package/dist/agent-runtime/src/work-in.d.ts +127 -0
- package/dist/assets/AthenaAssetEmbed.cjs.map +1 -1
- package/dist/assets/AthenaAssetEmbed.d.ts +6 -1
- package/dist/assets/AthenaAssetEmbed.js.map +1 -1
- package/dist/assets/asset-panel-store.cjs +13 -5
- package/dist/assets/asset-panel-store.cjs.map +1 -1
- package/dist/assets/asset-panel-store.d.ts +33 -2
- package/dist/assets/asset-panel-store.js +13 -5
- package/dist/assets/asset-panel-store.js.map +1 -1
- package/dist/auth/AthenaCredentialSourceContext.cjs +11 -0
- package/dist/auth/AthenaCredentialSourceContext.cjs.map +1 -1
- package/dist/auth/AthenaCredentialSourceContext.d.ts +6 -0
- package/dist/auth/AthenaCredentialSourceContext.js +11 -0
- package/dist/auth/AthenaCredentialSourceContext.js.map +1 -1
- package/dist/auth/account-identity.cjs +13 -2
- package/dist/auth/account-identity.cjs.map +1 -1
- package/dist/auth/account-identity.d.ts +9 -0
- package/dist/auth/account-identity.js +13 -2
- package/dist/auth/account-identity.js.map +1 -1
- package/dist/auth/credential-source.cjs +20 -4
- package/dist/auth/credential-source.cjs.map +1 -1
- package/dist/auth/credential-source.d.ts +9 -0
- package/dist/auth/credential-source.js +20 -4
- package/dist/auth/credential-source.js.map +1 -1
- package/dist/catalog/chat-pickers.cjs +31 -0
- package/dist/catalog/chat-pickers.cjs.map +1 -1
- package/dist/catalog/chat-pickers.d.ts +17 -0
- package/dist/catalog/chat-pickers.js +33 -2
- package/dist/catalog/chat-pickers.js.map +1 -1
- package/dist/catalog/runtime-catalog.cjs +63 -3
- package/dist/catalog/runtime-catalog.cjs.map +1 -1
- package/dist/catalog/runtime-catalog.d.ts +63 -3
- package/dist/catalog/runtime-catalog.js +64 -4
- package/dist/catalog/runtime-catalog.js.map +1 -1
- package/dist/chat/AthenaChat.cjs +337 -99
- package/dist/chat/AthenaChat.cjs.map +1 -1
- package/dist/chat/AthenaChat.d.ts +80 -4
- package/dist/chat/AthenaChat.js +337 -99
- package/dist/chat/AthenaChat.js.map +1 -1
- package/dist/chat/StatewireApprovalCard.cjs +35 -5
- package/dist/chat/StatewireApprovalCard.cjs.map +1 -1
- package/dist/chat/StatewireApprovalCard.d.ts +55 -2
- package/dist/chat/StatewireApprovalCard.js +37 -7
- package/dist/chat/StatewireApprovalCard.js.map +1 -1
- package/dist/chat/StatewireQueuedMessages.cjs +17 -2
- package/dist/chat/StatewireQueuedMessages.cjs.map +1 -1
- package/dist/chat/StatewireQueuedMessages.d.ts +8 -45
- package/dist/chat/StatewireQueuedMessages.js +18 -3
- package/dist/chat/StatewireQueuedMessages.js.map +1 -1
- package/dist/chat/chat-agent-mentions.cjs +70 -0
- package/dist/chat/chat-agent-mentions.cjs.map +1 -0
- package/dist/chat/chat-agent-mentions.d.ts +13 -0
- package/dist/chat/chat-agent-mentions.js +70 -0
- package/dist/chat/chat-agent-mentions.js.map +1 -0
- package/dist/chat/composer-actions.cjs +12 -0
- package/dist/chat/composer-actions.cjs.map +1 -0
- package/dist/chat/composer-actions.d.ts +22 -0
- package/dist/chat/composer-actions.js +12 -0
- package/dist/chat/composer-actions.js.map +1 -0
- package/dist/chat/follow-up-suggestions.cjs +185 -0
- package/dist/chat/follow-up-suggestions.cjs.map +1 -0
- package/dist/chat/follow-up-suggestions.d.ts +64 -0
- package/dist/chat/follow-up-suggestions.js +185 -0
- package/dist/chat/follow-up-suggestions.js.map +1 -0
- package/dist/chat/super-grouping/ToolTimeline.cjs +4 -3
- package/dist/chat/super-grouping/ToolTimeline.cjs.map +1 -1
- package/dist/chat/super-grouping/ToolTimeline.d.ts +7 -3
- package/dist/chat/super-grouping/ToolTimeline.js +4 -3
- package/dist/chat/super-grouping/ToolTimeline.js.map +1 -1
- package/dist/chat/turn-changes.cjs +284 -0
- package/dist/chat/turn-changes.cjs.map +1 -0
- package/dist/chat/turn-changes.d.ts +130 -0
- package/dist/chat/turn-changes.js +284 -0
- package/dist/chat/turn-changes.js.map +1 -0
- package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.cjs +31 -0
- package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.cjs.map +1 -0
- package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.d.ts +31 -0
- package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.js +31 -0
- package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.js.map +1 -0
- package/dist/chat/typed-interrupts/approval-cards.cjs +250 -0
- package/dist/chat/typed-interrupts/approval-cards.cjs.map +1 -0
- package/dist/chat/typed-interrupts/approval-cards.d.ts +22 -0
- package/dist/chat/typed-interrupts/approval-cards.js +250 -0
- package/dist/chat/typed-interrupts/approval-cards.js.map +1 -0
- package/dist/chat/typed-interrupts/form-cards.cjs +289 -0
- package/dist/chat/typed-interrupts/form-cards.cjs.map +1 -0
- package/dist/chat/typed-interrupts/form-cards.d.ts +6 -0
- package/dist/chat/typed-interrupts/form-cards.js +289 -0
- package/dist/chat/typed-interrupts/form-cards.js.map +1 -0
- package/dist/chat/typed-interrupts/interrupt-card-shell.cjs +182 -0
- package/dist/chat/typed-interrupts/interrupt-card-shell.cjs.map +1 -0
- package/dist/chat/typed-interrupts/interrupt-card-shell.d.ts +47 -0
- package/dist/chat/typed-interrupts/interrupt-card-shell.js +182 -0
- package/dist/chat/typed-interrupts/interrupt-card-shell.js.map +1 -0
- package/dist/chat/typed-interrupts/json-schema-form.cjs +388 -0
- package/dist/chat/typed-interrupts/json-schema-form.cjs.map +1 -0
- package/dist/chat/typed-interrupts/json-schema-form.d.ts +33 -0
- package/dist/chat/typed-interrupts/json-schema-form.js +388 -0
- package/dist/chat/typed-interrupts/json-schema-form.js.map +1 -0
- package/dist/chat/typed-interrupts/questionnaire-card.cjs +449 -0
- package/dist/chat/typed-interrupts/questionnaire-card.cjs.map +1 -0
- package/dist/chat/typed-interrupts/questionnaire-card.d.ts +20 -0
- package/dist/chat/typed-interrupts/questionnaire-card.js +449 -0
- package/dist/chat/typed-interrupts/questionnaire-card.js.map +1 -0
- package/dist/chat/typed-interrupts/request-file-card.cjs +159 -0
- package/dist/chat/typed-interrupts/request-file-card.cjs.map +1 -0
- package/dist/chat/typed-interrupts/request-file-card.d.ts +2 -0
- package/dist/chat/typed-interrupts/request-file-card.js +159 -0
- package/dist/chat/typed-interrupts/request-file-card.js.map +1 -0
- package/dist/chat/typed-interrupts/toolkit-selection-card.cjs +189 -0
- package/dist/chat/typed-interrupts/toolkit-selection-card.cjs.map +1 -0
- package/dist/chat/typed-interrupts/toolkit-selection-card.d.ts +23 -0
- package/dist/chat/typed-interrupts/toolkit-selection-card.js +189 -0
- package/dist/chat/typed-interrupts/toolkit-selection-card.js.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-body.cjs +26 -0
- package/dist/chat/typed-interrupts/typed-interrupt-body.cjs.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-body.d.ts +3 -0
- package/dist/chat/typed-interrupts/typed-interrupt-body.js +26 -0
- package/dist/chat/typed-interrupts/typed-interrupt-body.js.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-graphql.cjs +105 -0
- package/dist/chat/typed-interrupts/typed-interrupt-graphql.cjs.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-graphql.d.ts +29 -0
- package/dist/chat/typed-interrupts/typed-interrupt-graphql.js +105 -0
- package/dist/chat/typed-interrupts/typed-interrupt-graphql.js.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-notice.cjs +70 -0
- package/dist/chat/typed-interrupts/typed-interrupt-notice.cjs.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-notice.d.ts +45 -0
- package/dist/chat/typed-interrupts/typed-interrupt-notice.js +70 -0
- package/dist/chat/typed-interrupts/typed-interrupt-notice.js.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-panel.cjs +76 -0
- package/dist/chat/typed-interrupts/typed-interrupt-panel.cjs.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-panel.d.ts +11 -0
- package/dist/chat/typed-interrupts/typed-interrupt-panel.js +76 -0
- package/dist/chat/typed-interrupts/typed-interrupt-panel.js.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-types.d.ts +46 -0
- package/dist/chat/typed-interrupts/use-interrupt-draft.cjs +106 -0
- package/dist/chat/typed-interrupts/use-interrupt-draft.cjs.map +1 -0
- package/dist/chat/typed-interrupts/use-interrupt-draft.d.ts +29 -0
- package/dist/chat/typed-interrupts/use-interrupt-draft.js +106 -0
- package/dist/chat/typed-interrupts/use-interrupt-draft.js.map +1 -0
- package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.cjs +231 -0
- package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.cjs.map +1 -0
- package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.d.ts +66 -0
- package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.js +231 -0
- package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.js.map +1 -0
- package/dist/chat-ui/composer/composer-named-agents.cjs +13 -0
- package/dist/chat-ui/composer/composer-named-agents.cjs.map +1 -0
- package/dist/chat-ui/composer/composer-named-agents.d.ts +20 -0
- package/dist/chat-ui/composer/composer-named-agents.js +13 -0
- package/dist/chat-ui/composer/composer-named-agents.js.map +1 -0
- package/dist/chat-ui/composer/slash-command-menu.cjs +143 -0
- package/dist/chat-ui/composer/slash-command-menu.cjs.map +1 -0
- package/dist/chat-ui/composer/slash-command-menu.d.ts +19 -0
- package/dist/chat-ui/composer/slash-command-menu.js +143 -0
- package/dist/chat-ui/composer/slash-command-menu.js.map +1 -0
- package/dist/chat-ui/composer/slash-commands-extension.cjs +51 -0
- package/dist/chat-ui/composer/slash-commands-extension.cjs.map +1 -0
- package/dist/chat-ui/composer/slash-commands-extension.d.ts +39 -0
- package/dist/chat-ui/composer/slash-commands-extension.js +51 -0
- package/dist/chat-ui/composer/slash-commands-extension.js.map +1 -0
- package/dist/chat-ui/composer/slash-commands.cjs +74 -0
- package/dist/chat-ui/composer/slash-commands.cjs.map +1 -0
- package/dist/chat-ui/composer/slash-commands.d.ts +82 -0
- package/dist/chat-ui/composer/slash-commands.js +74 -0
- package/dist/chat-ui/composer/slash-commands.js.map +1 -0
- package/dist/chat-ui/composer/tiptap-composer.cjs +135 -9
- package/dist/chat-ui/composer/tiptap-composer.cjs.map +1 -1
- package/dist/chat-ui/composer/tiptap-composer.d.ts +61 -2
- package/dist/chat-ui/composer/tiptap-composer.js +135 -9
- package/dist/chat-ui/composer/tiptap-composer.js.map +1 -1
- package/dist/chat-ui/index.cjs +3 -0
- package/dist/chat-ui/index.cjs.map +1 -1
- package/dist/chat-ui/index.d.ts +3 -2
- package/dist/chat-ui/index.js +3 -0
- package/dist/chat-ui/index.js.map +1 -1
- package/dist/chat-ui/mentions/mention-chip.cjs +1 -1
- package/dist/chat-ui/mentions/mention-chip.cjs.map +1 -1
- package/dist/chat-ui/mentions/mention-chip.js +2 -2
- package/dist/chat-ui/mentions/mention-chip.js.map +1 -1
- package/dist/chat-ui/mentions/mention-extension.cjs +8 -1
- package/dist/chat-ui/mentions/mention-extension.cjs.map +1 -1
- package/dist/chat-ui/mentions/mention-extension.js +8 -1
- package/dist/chat-ui/mentions/mention-extension.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/get-scope-name.cjs +1 -0
- package/dist/chat-ui/mentions/suggestions/components/get-scope-name.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/get-scope-name.js +1 -0
- package/dist/chat-ui/mentions/suggestions/components/get-scope-name.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/mention-icon.cjs +2 -0
- package/dist/chat-ui/mentions/suggestions/components/mention-icon.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/mention-icon.js +3 -1
- package/dist/chat-ui/mentions/suggestions/components/mention-icon.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/menu-item.cjs +1 -1
- package/dist/chat-ui/mentions/suggestions/components/menu-item.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/menu-item.js +1 -1
- package/dist/chat-ui/mentions/suggestions/components/menu-item.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/api-client.cjs +36 -0
- package/dist/chat-ui/mentions/suggestions/data/api-client.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/api-client.d.ts +42 -0
- package/dist/chat-ui/mentions/suggestions/data/api-client.js +36 -0
- package/dist/chat-ui/mentions/suggestions/data/api-client.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/sources/index.cjs +235 -19
- package/dist/chat-ui/mentions/suggestions/data/sources/index.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/sources/index.d.ts +88 -10
- package/dist/chat-ui/mentions/suggestions/data/sources/index.js +236 -20
- package/dist/chat-ui/mentions/suggestions/data/sources/index.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/types.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/types.d.ts +27 -1
- package/dist/chat-ui/mentions/suggestions/data/types.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.cjs +56 -5
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.d.ts +26 -6
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.js +57 -6
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.cjs +34 -17
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.d.ts +19 -1
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.js +35 -18
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.js.map +1 -1
- package/dist/chat-ui/statewire.d.ts +1 -1
- package/dist/chat-ui/thread/statewire-history-edge.cjs +15 -0
- package/dist/chat-ui/thread/statewire-history-edge.cjs.map +1 -1
- package/dist/chat-ui/thread/statewire-history-edge.d.ts +4 -1
- package/dist/chat-ui/thread/statewire-history-edge.js +15 -0
- package/dist/chat-ui/thread/statewire-history-edge.js.map +1 -1
- package/dist/collab/client.cjs +17 -5
- package/dist/collab/client.cjs.map +1 -1
- package/dist/collab/client.d.ts +22 -7
- package/dist/collab/client.js +17 -5
- package/dist/collab/client.js.map +1 -1
- package/dist/composer/ComposerAttachedReferences.cjs +119 -0
- package/dist/composer/ComposerAttachedReferences.cjs.map +1 -0
- package/dist/composer/ComposerAttachedReferences.d.ts +26 -0
- package/dist/composer/ComposerAttachedReferences.js +119 -0
- package/dist/composer/ComposerAttachedReferences.js.map +1 -0
- package/dist/composer/ComposerNamedAgents.cjs +63 -0
- package/dist/composer/ComposerNamedAgents.cjs.map +1 -0
- package/dist/composer/ComposerNamedAgents.d.ts +16 -0
- package/dist/composer/ComposerNamedAgents.js +63 -0
- package/dist/composer/ComposerNamedAgents.js.map +1 -0
- package/dist/composer/attached-references.cjs +159 -0
- package/dist/composer/attached-references.cjs.map +1 -0
- package/dist/composer/attached-references.d.ts +86 -0
- package/dist/composer/attached-references.js +159 -0
- package/dist/composer/attached-references.js.map +1 -0
- package/dist/composer/build-composed-message.cjs +14 -7
- package/dist/composer/build-composed-message.cjs.map +1 -1
- package/dist/composer/build-composed-message.d.ts +6 -1
- package/dist/composer/build-composed-message.js +14 -7
- package/dist/composer/build-composed-message.js.map +1 -1
- package/dist/composer/composer-handoff.cjs +6 -2
- package/dist/composer/composer-handoff.cjs.map +1 -1
- package/dist/composer/composer-handoff.d.ts +7 -1
- package/dist/composer/composer-handoff.js +6 -2
- package/dist/composer/composer-handoff.js.map +1 -1
- package/dist/composer/folder-upload.cjs +149 -0
- package/dist/composer/folder-upload.cjs.map +1 -0
- package/dist/composer/folder-upload.d.ts +79 -0
- package/dist/composer/folder-upload.js +149 -0
- package/dist/composer/folder-upload.js.map +1 -0
- package/dist/composer/index.d.ts +1 -1
- package/dist/composer/useAttachToChat.cjs +35 -0
- package/dist/composer/useAttachToChat.cjs.map +1 -0
- package/dist/composer/useAttachToChat.d.ts +54 -0
- package/dist/composer/useAttachToChat.js +35 -0
- package/dist/composer/useAttachToChat.js.map +1 -0
- package/dist/composer/useAttachedReferencesComposerProps.cjs +19 -0
- package/dist/composer/useAttachedReferencesComposerProps.cjs.map +1 -0
- package/dist/composer/useAttachedReferencesComposerProps.d.ts +12 -0
- package/dist/composer/useAttachedReferencesComposerProps.js +19 -0
- package/dist/composer/useAttachedReferencesComposerProps.js.map +1 -0
- package/dist/composer/useFileUpload.cjs +95 -7
- package/dist/composer/useFileUpload.cjs.map +1 -1
- package/dist/composer/useFileUpload.d.ts +21 -2
- package/dist/composer/useFileUpload.js +95 -7
- package/dist/composer/useFileUpload.js.map +1 -1
- package/dist/data/athena-api-error.cjs +125 -0
- package/dist/data/athena-api-error.cjs.map +1 -0
- package/dist/data/athena-api-error.d.ts +96 -0
- package/dist/data/athena-api-error.js +125 -0
- package/dist/data/athena-api-error.js.map +1 -0
- package/dist/data/athena-data-client.cjs +106 -0
- package/dist/data/athena-data-client.cjs.map +1 -0
- package/dist/data/athena-data-client.d.ts +74 -0
- package/dist/data/athena-data-client.js +106 -0
- package/dist/data/athena-data-client.js.map +1 -0
- package/dist/data/athena-member.cjs +93 -0
- package/dist/data/athena-member.cjs.map +1 -0
- package/dist/data/athena-member.d.ts +125 -0
- package/dist/data/athena-member.js +93 -0
- package/dist/data/athena-member.js.map +1 -0
- package/dist/data/athena-request.cjs +458 -0
- package/dist/data/athena-request.cjs.map +1 -0
- package/dist/data/athena-request.d.ts +120 -0
- package/dist/data/athena-request.js +458 -0
- package/dist/data/athena-request.js.map +1 -0
- package/dist/data/use-athena-fetch.cjs +14 -0
- package/dist/data/use-athena-fetch.cjs.map +1 -0
- package/dist/data/use-athena-fetch.d.ts +19 -0
- package/dist/data/use-athena-fetch.js +14 -0
- package/dist/data/use-athena-fetch.js.map +1 -0
- package/dist/data/use-athena-graphql.cjs +66 -0
- package/dist/data/use-athena-graphql.cjs.map +1 -0
- package/dist/data/use-athena-graphql.d.ts +56 -0
- package/dist/data/use-athena-graphql.js +66 -0
- package/dist/data/use-athena-graphql.js.map +1 -0
- package/dist/data/use-athena-rest.cjs +33 -0
- package/dist/data/use-athena-rest.cjs.map +1 -0
- package/dist/data/use-athena-rest.d.ts +21 -0
- package/dist/data/use-athena-rest.js +33 -0
- package/dist/data/use-athena-rest.js.map +1 -0
- package/dist/data/use-semantic-query.cjs +44 -0
- package/dist/data/use-semantic-query.cjs.map +1 -0
- package/dist/data/use-semantic-query.d.ts +92 -0
- package/dist/data/use-semantic-query.js +44 -0
- package/dist/data/use-semantic-query.js.map +1 -0
- package/dist/diagnostics/athena-diagnostics.cjs.map +1 -1
- package/dist/diagnostics/athena-diagnostics.d.ts +5 -1
- package/dist/diagnostics/athena-diagnostics.js.map +1 -1
- package/dist/diagnostics/errors.cjs +7 -0
- package/dist/diagnostics/errors.cjs.map +1 -1
- package/dist/diagnostics/errors.d.ts +7 -0
- package/dist/diagnostics/errors.js +7 -0
- package/dist/diagnostics/errors.js.map +1 -1
- package/dist/index.cjs +155 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +72 -13
- package/dist/index.js +148 -4
- package/dist/index.js.map +1 -1
- package/dist/keryx-http/src/initial-sync.cjs +64 -16
- package/dist/keryx-http/src/initial-sync.cjs.map +1 -1
- package/dist/keryx-http/src/initial-sync.d.ts +31 -1
- package/dist/keryx-http/src/initial-sync.js +64 -16
- package/dist/keryx-http/src/initial-sync.js.map +1 -1
- package/dist/keryx-http/src/own-awareness.cjs +20 -0
- package/dist/keryx-http/src/own-awareness.cjs.map +1 -0
- package/dist/keryx-http/src/own-awareness.d.ts +50 -0
- package/dist/keryx-http/src/own-awareness.js +20 -0
- package/dist/keryx-http/src/own-awareness.js.map +1 -0
- package/dist/keryx-http/src/update-attributions.cjs +26 -1
- package/dist/keryx-http/src/update-attributions.cjs.map +1 -1
- package/dist/keryx-http/src/update-attributions.d.ts +10 -1
- package/dist/keryx-http/src/update-attributions.js +26 -1
- package/dist/keryx-http/src/update-attributions.js.map +1 -1
- package/dist/offline/chat-outbox.cjs +262 -26
- package/dist/offline/chat-outbox.cjs.map +1 -1
- package/dist/offline/chat-outbox.d.ts +90 -12
- package/dist/offline/chat-outbox.js +263 -27
- package/dist/offline/chat-outbox.js.map +1 -1
- package/dist/provider/AthenaProvider.cjs +63 -19
- package/dist/provider/AthenaProvider.cjs.map +1 -1
- package/dist/provider/AthenaProvider.d.ts +24 -8
- package/dist/provider/AthenaProvider.js +66 -22
- package/dist/provider/AthenaProvider.js.map +1 -1
- package/dist/react/package.json.cjs +1 -1
- package/dist/react/package.json.js +1 -1
- package/dist/references/src/anchors/types.cjs +5 -0
- package/dist/references/src/anchors/types.cjs.map +1 -1
- package/dist/references/src/anchors/types.js +5 -0
- package/dist/references/src/anchors/types.js.map +1 -1
- package/dist/references/src/attachable.cjs +149 -0
- package/dist/references/src/attachable.cjs.map +1 -0
- package/dist/references/src/attachable.d.ts +87 -0
- package/dist/references/src/attachable.js +149 -0
- package/dist/references/src/attachable.js.map +1 -0
- package/dist/runtime/StatewirePlanModeLaneSync.cjs +93 -0
- package/dist/runtime/StatewirePlanModeLaneSync.cjs.map +1 -0
- package/dist/runtime/StatewirePlanModeLaneSync.d.ts +34 -0
- package/dist/runtime/StatewirePlanModeLaneSync.js +93 -0
- package/dist/runtime/StatewirePlanModeLaneSync.js.map +1 -0
- package/dist/runtime/StatewireThreadConfigLaneSync.cjs +2 -0
- package/dist/runtime/StatewireThreadConfigLaneSync.cjs.map +1 -1
- package/dist/runtime/StatewireThreadConfigLaneSync.d.ts +4 -0
- package/dist/runtime/StatewireThreadConfigLaneSync.js +2 -0
- package/dist/runtime/StatewireThreadConfigLaneSync.js.map +1 -1
- package/dist/runtime/statewire-plan-mode.cjs +71 -0
- package/dist/runtime/statewire-plan-mode.cjs.map +1 -0
- package/dist/runtime/statewire-plan-mode.d.ts +88 -0
- package/dist/runtime/statewire-plan-mode.js +71 -0
- package/dist/runtime/statewire-plan-mode.js.map +1 -0
- package/dist/runtime/statewire-run-config.cjs +18 -1
- package/dist/runtime/statewire-run-config.cjs.map +1 -1
- package/dist/runtime/statewire-run-config.d.ts +20 -0
- package/dist/runtime/statewire-run-config.js +18 -1
- package/dist/runtime/statewire-run-config.js.map +1 -1
- package/dist/runtime/statewire-session-key.cjs +11 -5
- package/dist/runtime/statewire-session-key.cjs.map +1 -1
- package/dist/runtime/statewire-session-key.d.ts +22 -10
- package/dist/runtime/statewire-session-key.js +11 -5
- package/dist/runtime/statewire-session-key.js.map +1 -1
- package/dist/runtime/useAthenaStatewireRuntime.cjs +65 -8
- package/dist/runtime/useAthenaStatewireRuntime.cjs.map +1 -1
- package/dist/runtime/useAthenaStatewireRuntime.d.ts +26 -10
- package/dist/runtime/useAthenaStatewireRuntime.js +67 -10
- package/dist/runtime/useAthenaStatewireRuntime.js.map +1 -1
- package/dist/search/useAthenaAssets.cjs +394 -0
- package/dist/search/useAthenaAssets.cjs.map +1 -0
- package/dist/search/useAthenaAssets.d.ts +186 -0
- package/dist/search/useAthenaAssets.js +394 -0
- package/dist/search/useAthenaAssets.js.map +1 -0
- package/dist/sheet-range/index.cjs +4 -0
- package/dist/sheet-range/index.cjs.map +1 -1
- package/dist/sheet-range/index.d.ts +4 -2
- package/dist/sheet-range/index.js +4 -0
- package/dist/sheet-range/index.js.map +1 -1
- package/dist/sheet-range/query-range.cjs +102 -0
- package/dist/sheet-range/query-range.cjs.map +1 -0
- package/dist/sheet-range/query-range.d.ts +46 -0
- package/dist/sheet-range/query-range.js +102 -0
- package/dist/sheet-range/query-range.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/subagents/index.cjs +49 -0
- package/dist/subagents/index.cjs.map +1 -0
- package/dist/subagents/index.d.ts +16 -0
- package/dist/subagents/index.js +49 -0
- package/dist/subagents/index.js.map +1 -0
- package/dist/subagents/lane-follow.cjs +19 -0
- package/dist/subagents/lane-follow.cjs.map +1 -0
- package/dist/subagents/lane-follow.d.ts +9 -0
- package/dist/subagents/lane-follow.js +19 -0
- package/dist/subagents/lane-follow.js.map +1 -0
- package/dist/subagents/lane-model.cjs +178 -0
- package/dist/subagents/lane-model.cjs.map +1 -0
- package/dist/subagents/lane-model.d.ts +140 -0
- package/dist/subagents/lane-model.js +178 -0
- package/dist/subagents/lane-model.js.map +1 -0
- package/dist/subagents/lane-parts.cjs +517 -0
- package/dist/subagents/lane-parts.cjs.map +1 -0
- package/dist/subagents/lane-parts.d.ts +130 -0
- package/dist/subagents/lane-parts.js +517 -0
- package/dist/subagents/lane-parts.js.map +1 -0
- package/dist/subagents/subagent-lane-group.cjs +215 -0
- package/dist/subagents/subagent-lane-group.cjs.map +1 -0
- package/dist/subagents/subagent-lane-group.d.ts +67 -0
- package/dist/subagents/subagent-lane-group.js +215 -0
- package/dist/subagents/subagent-lane-group.js.map +1 -0
- package/dist/subagents/subagent-transcript-drawer.cjs +431 -0
- package/dist/subagents/subagent-transcript-drawer.cjs.map +1 -0
- package/dist/subagents/subagent-transcript-drawer.d.ts +78 -0
- package/dist/subagents/subagent-transcript-drawer.js +431 -0
- package/dist/subagents/subagent-transcript-drawer.js.map +1 -0
- package/dist/subagents/task-subagent-group.cjs +115 -0
- package/dist/subagents/task-subagent-group.cjs.map +1 -0
- package/dist/subagents/task-subagent-group.d.ts +36 -0
- package/dist/subagents/task-subagent-group.js +115 -0
- package/dist/subagents/task-subagent-group.js.map +1 -0
- package/dist/subagents/use-omitted-images-in-view.cjs +68 -0
- package/dist/subagents/use-omitted-images-in-view.cjs.map +1 -0
- package/dist/subagents/use-omitted-images-in-view.d.ts +21 -0
- package/dist/subagents/use-omitted-images-in-view.js +68 -0
- package/dist/subagents/use-omitted-images-in-view.js.map +1 -0
- package/dist/threads/Inbox.cjs +2 -2
- package/dist/threads/Inbox.cjs.map +1 -1
- package/dist/threads/SessionList.cjs +27 -24
- package/dist/threads/SessionList.cjs.map +1 -1
- package/dist/threads/SessionList.js +22 -19
- package/dist/threads/SessionList.js.map +1 -1
- package/dist/threads/SessionsPage.cjs +13 -7
- package/dist/threads/SessionsPage.cjs.map +1 -1
- package/dist/threads/SessionsPage.d.ts +10 -1
- package/dist/threads/SessionsPage.js +9 -3
- package/dist/threads/SessionsPage.js.map +1 -1
- package/dist/threads/live-session-rows.cjs +207 -0
- package/dist/threads/live-session-rows.cjs.map +1 -0
- package/dist/threads/live-session-rows.d.ts +175 -0
- package/dist/threads/live-session-rows.js +207 -0
- package/dist/threads/live-session-rows.js.map +1 -0
- package/dist/threads/session-list-model.cjs.map +1 -1
- package/dist/threads/session-list-model.d.ts +2 -1
- package/dist/threads/session-list-model.js.map +1 -1
- package/dist/threads/session-row-parts.cjs +3 -3
- package/dist/threads/session-row-parts.cjs.map +1 -1
- package/dist/threads/sessions-page-model.cjs +13 -5
- package/dist/threads/sessions-page-model.cjs.map +1 -1
- package/dist/threads/sessions-page-model.d.ts +7 -0
- package/dist/threads/sessions-page-model.js +11 -3
- package/dist/threads/sessions-page-model.js.map +1 -1
- package/dist/threads/sessions-page-storage.cjs +8 -8
- package/dist/threads/sessions-page-storage.cjs.map +1 -1
- package/dist/threads/sessions-page-storage.d.ts +5 -1
- package/dist/threads/sessions-page-storage.js +8 -8
- package/dist/threads/sessions-page-storage.js.map +1 -1
- package/dist/threads/statewire-thread-list.cjs +173 -20
- package/dist/threads/statewire-thread-list.cjs.map +1 -1
- package/dist/threads/statewire-thread-list.d.ts +44 -1
- package/dist/threads/statewire-thread-list.js +174 -21
- package/dist/threads/statewire-thread-list.js.map +1 -1
- package/dist/threads/use-athena-sessions.cjs +1 -0
- package/dist/threads/use-athena-sessions.cjs.map +1 -1
- package/dist/threads/use-athena-sessions.d.ts +7 -0
- package/dist/threads/use-athena-sessions.js +1 -0
- package/dist/threads/use-athena-sessions.js.map +1 -1
- package/dist/threads/use-athena-thread-agent.cjs +31 -0
- package/dist/threads/use-athena-thread-agent.cjs.map +1 -0
- package/dist/threads/use-athena-thread-agent.d.ts +38 -0
- package/dist/threads/use-athena-thread-agent.js +31 -0
- package/dist/threads/use-athena-thread-agent.js.map +1 -0
- package/dist/threads/use-athena-thread-plan-mode.cjs +18 -0
- package/dist/threads/use-athena-thread-plan-mode.cjs.map +1 -0
- package/dist/threads/use-athena-thread-plan-mode.d.ts +18 -0
- package/dist/threads/use-athena-thread-plan-mode.js +18 -0
- package/dist/threads/use-athena-thread-plan-mode.js.map +1 -0
- package/dist/threads/use-rest-conversation-history.d.ts +1 -0
- package/dist/tools/agent-creations.cjs +97 -0
- package/dist/tools/agent-creations.cjs.map +1 -0
- package/dist/tools/agent-creations.d.ts +38 -0
- package/dist/tools/agent-creations.js +97 -0
- package/dist/tools/agent-creations.js.map +1 -0
- package/dist/tools/agent-highlights.cjs +100 -0
- package/dist/tools/agent-highlights.cjs.map +1 -0
- package/dist/tools/agent-highlights.d.ts +57 -0
- package/dist/tools/agent-highlights.js +100 -0
- package/dist/tools/agent-highlights.js.map +1 -0
- package/dist/tools/append-document-tool-ui.cjs +1 -0
- package/dist/tools/append-document-tool-ui.cjs.map +1 -1
- package/dist/tools/append-document-tool-ui.d.ts +7 -0
- package/dist/tools/append-document-tool-ui.js +2 -1
- package/dist/tools/append-document-tool-ui.js.map +1 -1
- package/dist/tools/auto-open-tools.cjs +144 -71
- package/dist/tools/auto-open-tools.cjs.map +1 -1
- package/dist/tools/auto-open-tools.d.ts +131 -1
- package/dist/tools/auto-open-tools.js +145 -72
- package/dist/tools/auto-open-tools.js.map +1 -1
- package/dist/tools/browser-tool-uis.cjs +594 -0
- package/dist/tools/browser-tool-uis.cjs.map +1 -0
- package/dist/tools/browser-tool-uis.d.ts +8 -0
- package/dist/tools/browser-tool-uis.js +594 -0
- package/dist/tools/browser-tool-uis.js.map +1 -0
- package/dist/tools/computer-asset-tool-uis.cjs +313 -0
- package/dist/tools/computer-asset-tool-uis.cjs.map +1 -0
- package/dist/tools/computer-asset-tool-uis.d.ts +5 -0
- package/dist/tools/computer-asset-tool-uis.js +313 -0
- package/dist/tools/computer-asset-tool-uis.js.map +1 -0
- package/dist/tools/document-edit-tool-uis.cjs +218 -0
- package/dist/tools/document-edit-tool-uis.cjs.map +1 -0
- package/dist/tools/document-edit-tool-uis.d.ts +40 -0
- package/dist/tools/document-edit-tool-uis.js +218 -0
- package/dist/tools/document-edit-tool-uis.js.map +1 -0
- package/dist/tools/drive-tool-uis.cjs +425 -0
- package/dist/tools/drive-tool-uis.cjs.map +1 -0
- package/dist/tools/drive-tool-uis.d.ts +120 -0
- package/dist/tools/drive-tool-uis.js +425 -0
- package/dist/tools/drive-tool-uis.js.map +1 -0
- package/dist/tools/email-calendar-tool-uis.cjs +789 -0
- package/dist/tools/email-calendar-tool-uis.cjs.map +1 -0
- package/dist/tools/email-calendar-tool-uis.d.ts +129 -0
- package/dist/tools/email-calendar-tool-uis.js +789 -0
- package/dist/tools/email-calendar-tool-uis.js.map +1 -0
- package/dist/tools/ontology-tool-uis.cjs +83 -0
- package/dist/tools/ontology-tool-uis.cjs.map +1 -0
- package/dist/tools/ontology-tool-uis.d.ts +9 -0
- package/dist/tools/ontology-tool-uis.js +83 -0
- package/dist/tools/ontology-tool-uis.js.map +1 -0
- package/dist/tools/orchestration-tool-uis.cjs +586 -0
- package/dist/tools/orchestration-tool-uis.cjs.map +1 -0
- package/dist/tools/orchestration-tool-uis.d.ts +141 -0
- package/dist/tools/orchestration-tool-uis.js +586 -0
- package/dist/tools/orchestration-tool-uis.js.map +1 -0
- package/dist/tools/presentation-edit-tool-uis.cjs +516 -0
- package/dist/tools/presentation-edit-tool-uis.cjs.map +1 -0
- package/dist/tools/presentation-edit-tool-uis.d.ts +73 -0
- package/dist/tools/presentation-edit-tool-uis.js +516 -0
- package/dist/tools/presentation-edit-tool-uis.js.map +1 -0
- package/dist/tools/project-tool-uis.cjs +213 -0
- package/dist/tools/project-tool-uis.cjs.map +1 -0
- package/dist/tools/project-tool-uis.d.ts +14 -0
- package/dist/tools/project-tool-uis.js +213 -0
- package/dist/tools/project-tool-uis.js.map +1 -0
- package/dist/tools/sandbox-tool-uis.cjs +491 -0
- package/dist/tools/sandbox-tool-uis.cjs.map +1 -0
- package/dist/tools/sandbox-tool-uis.d.ts +116 -0
- package/dist/tools/sandbox-tool-uis.js +491 -0
- package/dist/tools/sandbox-tool-uis.js.map +1 -0
- package/dist/tools/sheet-query-tool-ui.cjs +138 -0
- package/dist/tools/sheet-query-tool-ui.cjs.map +1 -0
- package/dist/tools/sheet-query-tool-ui.d.ts +15 -0
- package/dist/tools/sheet-query-tool-ui.js +138 -0
- package/dist/tools/sheet-query-tool-ui.js.map +1 -0
- package/dist/tools/studio-screenshot-tool-uis.cjs +262 -0
- package/dist/tools/studio-screenshot-tool-uis.cjs.map +1 -0
- package/dist/tools/studio-screenshot-tool-uis.d.ts +52 -0
- package/dist/tools/studio-screenshot-tool-uis.js +262 -0
- package/dist/tools/studio-screenshot-tool-uis.js.map +1 -0
- package/dist/tools/subagent-task-tool-ui.cjs +24 -475
- package/dist/tools/subagent-task-tool-ui.cjs.map +1 -1
- package/dist/tools/subagent-task-tool-ui.d.ts +19 -103
- package/dist/tools/subagent-task-tool-ui.js +28 -479
- package/dist/tools/subagent-task-tool-ui.js.map +1 -1
- package/dist/tools/tool-summary.cjs +36 -0
- package/dist/tools/tool-summary.cjs.map +1 -1
- package/dist/tools/tool-summary.js +36 -0
- package/dist/tools/tool-summary.js.map +1 -1
- package/dist/tools/tool-uis.cjs +181 -53
- package/dist/tools/tool-uis.cjs.map +1 -1
- package/dist/tools/tool-uis.d.ts +40 -0
- package/dist/tools/tool-uis.js +183 -55
- package/dist/tools/tool-uis.js.map +1 -1
- package/dist/typed-interrupts/index.cjs +15 -0
- package/dist/typed-interrupts/index.cjs.map +1 -0
- package/dist/typed-interrupts/index.d.ts +20 -0
- package/dist/typed-interrupts/index.js +15 -0
- package/dist/typed-interrupts/index.js.map +1 -0
- package/dist/workbench/session-workbench-panes.cjs +6 -6
- package/dist/workbench/session-workbench-panes.cjs.map +1 -1
- package/package.json +28 -6
- package/dist/agent-runtime/src/chat-outbox-store.cjs +0 -510
- package/dist/agent-runtime/src/chat-outbox-store.cjs.map +0 -1
- package/dist/agent-runtime/src/chat-outbox-store.d.ts +0 -210
- package/dist/agent-runtime/src/chat-outbox-store.js +0 -510
- package/dist/agent-runtime/src/chat-outbox-store.js.map +0 -1
package/dist/chat/AthenaChat.js
CHANGED
|
@@ -2,6 +2,7 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { TiptapText } from "./tiptap-text.js";
|
|
3
3
|
import { AthenaChatErrorBoundary } from "./AthenaChatErrorBoundary.js";
|
|
4
4
|
import { StatewireApprovalCard } from "./StatewireApprovalCard.js";
|
|
5
|
+
import { statewireTypedInterrupts } from "./typed-interrupts/StatewireTypedInterruptCard.js";
|
|
5
6
|
import { AthenaPlanStrip } from "./AthenaPlanStrip.js";
|
|
6
7
|
import { StatewireQueuedMessages } from "./StatewireQueuedMessages.js";
|
|
7
8
|
import { StatewireConnectionBanner, StatewireErrorBanner } from "./statewire-banners.js";
|
|
@@ -12,6 +13,7 @@ import { WaitingOnYouBanner } from "./WaitingOnYouBanner.js";
|
|
|
12
13
|
import { DrivingOnChip } from "./DrivingOnChip.js";
|
|
13
14
|
import { OfflineSnapshotBanner } from "../offline/offline-history.js";
|
|
14
15
|
import { WakeMarkerMessage } from "../chat-ui/messages/wake-marker.js";
|
|
16
|
+
import { RuntimeMessageCard } from "../chat-ui/messages/runtime-message.js";
|
|
15
17
|
import { ToolFallback, ToolFallbackAppearanceProvider } from "../tools/tool-fallback.js";
|
|
16
18
|
import { AppendDocumentToolUI } from "../tools/append-document-tool-ui.js";
|
|
17
19
|
import { ReadAssetToolUI } from "../tools/read-asset-tool-ui.js";
|
|
@@ -29,6 +31,7 @@ import { ChatComposerDock } from "../chat-ui/thread/chat-composer-dock.js";
|
|
|
29
31
|
import { ChatThreadShell } from "../chat-ui/thread/chat-thread-shell.js";
|
|
30
32
|
import { HandoffCursorReveal } from "../chat-ui/thread/handoff-cursor.js";
|
|
31
33
|
import { StatewireHistoryEdge } from "../chat-ui/thread/statewire-history-edge.js";
|
|
34
|
+
import { DeepAgentLaneFollowScope } from "../subagents/lane-follow.js";
|
|
32
35
|
import { ThreadLoadingOverlay } from "../chat-ui/thread/thread-loading-overlay.js";
|
|
33
36
|
import { ComposerSendOrStop } from "../chat-ui/thread/composer-send-or-stop.js";
|
|
34
37
|
import { resolveComposerAction } from "../chat-ui/composer/composer-action.js";
|
|
@@ -42,6 +45,14 @@ import { useAthenaDictationEngine } from "../dictation/use-athena-dictation-engi
|
|
|
42
45
|
import { TiptapComposer } from "../chat-ui/composer/tiptap-composer.js";
|
|
43
46
|
import { MentionAuthCtx } from "../chat-ui/mentions/suggestions/data/api-client.js";
|
|
44
47
|
import { useAccountIdentity } from "../chat-ui/mentions/use-account-workspace-id.js";
|
|
48
|
+
import { readDeepAgentNamedAgents, keepDeepAgentNamedAgentsForIdentity } from "../agent-runtime/src/named-agents.js";
|
|
49
|
+
import { stageComposerNamedAgents } from "../chat-ui/composer/composer-named-agents.js";
|
|
50
|
+
import { useCatalogQueryClient, useAthenaViewerIsAdmin } from "../catalog/runtime-catalog.js";
|
|
51
|
+
import { usePendingAttachedReferences, stageThreadAttachedReferencesForSend, clearAttachedReferences, keepAttachedReferencesForIdentity } from "../composer/attached-references.js";
|
|
52
|
+
import { MessageAttachedReferences, ComposerAttachedReferences } from "../composer/ComposerAttachedReferences.js";
|
|
53
|
+
import { useAttachedReferencesComposerProps } from "../composer/useAttachedReferencesComposerProps.js";
|
|
54
|
+
import { ComposerNamedAgents } from "../composer/ComposerNamedAgents.js";
|
|
55
|
+
import { useAthenaChatAgentsMention } from "./chat-agent-mentions.js";
|
|
45
56
|
import { AnswerLabel } from "../chat-ui/messages/answer-label.js";
|
|
46
57
|
import { useMessageArrivalAnimation, MESSAGE_ARRIVAL_ANIMATION_CLASS } from "../chat-ui/messages/arrival-animation.js";
|
|
47
58
|
import { MessageImagePart, MessageImageGallery } from "../chat-ui/messages/message-images.js";
|
|
@@ -52,6 +63,7 @@ import { useAthenaRunLive } from "./use-athena-run-live.js";
|
|
|
52
63
|
import { DEFAULT_WELCOME_SUGGESTIONS, AthenaChatWelcomeSuggestions, AthenaChatWelcome, welcomeEntrance, welcomeComposerDelayMs } from "./athena-chat-welcome.js";
|
|
53
64
|
import { AthenaComposerSendButton, ATHENA_COMPOSER_COMPONENTS, AthenaComposerMentionButton } from "./athena-composer-controls.js";
|
|
54
65
|
import { useComposerKeyboardHint, ComposerKeyboardHint } from "./composer-keyboard-hint.js";
|
|
66
|
+
import { FollowUpSuggestions } from "./follow-up-suggestions.js";
|
|
55
67
|
import { usePrefersReducedMotion } from "../lib/use-prefers-reduced-motion.js";
|
|
56
68
|
import { useStatewireSessionLane } from "../runtime/statewire-session-lane.js";
|
|
57
69
|
import { AthenaAuthContext } from "../auth/AthenaAuthContext.js";
|
|
@@ -69,6 +81,7 @@ import { QuoteProvider, useQuoteFromPostMessage, useQuote } from "../composer/Qu
|
|
|
69
81
|
import { AttachmentProvider, useAttachments } from "../composer/AttachmentContext.js";
|
|
70
82
|
import { buildComposedSend, holdComposedSend } from "../composer/build-composed-message.js";
|
|
71
83
|
import { useAttachFiles } from "../composer/useAttachFiles.js";
|
|
84
|
+
import { AthenaChatComposerActionsContext } from "./composer-actions.js";
|
|
72
85
|
import { useAthenaConfig } from "../provider/AthenaContext.js";
|
|
73
86
|
import { createAthenaSpacesUrl } from "../lib/athena-urls.js";
|
|
74
87
|
import { isRecord } from "../lib/utils.js";
|
|
@@ -76,15 +89,17 @@ import { getToolkitDisplayInfo } from "../toolkits/index.js";
|
|
|
76
89
|
import { runActivityKey, runActivityVerb, isToolCallInFlight, runActivityLabel, runProgressKey, runElapsedLabel, isRunActivityStalled } from "./run-activity.js";
|
|
77
90
|
import { readMessageCreatedAt, parseMessageTime, isSameCalendarDay, formatDayLabel, formatMessageTime, formatMessageDateTime } from "./message-time.js";
|
|
78
91
|
import { ThreadScrollToBottom } from "./thread-scroll-to-bottom.js";
|
|
92
|
+
import { AthenaTurnChangesSlot, AthenaTurnChangesContext } from "./turn-changes.js";
|
|
79
93
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
80
|
-
import { useCatalogQueryClient } from "../catalog/runtime-catalog.js";
|
|
81
94
|
import { isStatewireChannelLive } from "../runtime/statewire-lifecycle.js";
|
|
82
95
|
import { useComposerChatVoice, ChatVoiceButton, ChatVoiceStatus, ChatVoiceContinueOffer } from "./chat-voice-controls.js";
|
|
83
96
|
import { TASK_TOOL_NAME } from "../agent-runtime/src/tool-names.js";
|
|
84
97
|
import { useTurnToolCallsAwaitingApproval } from "../agent-runtime/src/subagents.js";
|
|
98
|
+
import { readSoleRuntimeMessageKind, readRuntimeMessageFromSourceMessages } from "../agent-runtime/src/runtime-messages.js";
|
|
85
99
|
import { isGithubWakeMessage } from "../agent-runtime/src/github-wake-event.js";
|
|
86
100
|
import { isSubscriptionWakeMessage } from "../agent-runtime/src/subscription-wake-event.js";
|
|
87
101
|
import { useDeepAgentConnection, readRunLive } from "../agent-runtime/src/thread-status.js";
|
|
102
|
+
import { autoComposerSendOptions } from "../agent-runtime/src/run-send.js";
|
|
88
103
|
import { useChatOutboxReachable, useDeepAgentChatOutboxContext } from "../agent-runtime/src/use-deep-agent-chat-outbox.js";
|
|
89
104
|
import { CHAT_EDIT_UNREACHABLE_LABEL } from "../agent-runtime/src/chat-outbox.js";
|
|
90
105
|
import { cn } from "cnfast";
|
|
@@ -172,17 +187,21 @@ const AthenaChatContent = ({
|
|
|
172
187
|
confirmDecision,
|
|
173
188
|
toolUIs,
|
|
174
189
|
mentionTools,
|
|
190
|
+
mentionCategories = ATHENA_CHAT_MENTION_CATEGORIES,
|
|
175
191
|
welcomeSuggestions = DEFAULT_WELCOME_SUGGESTIONS,
|
|
176
192
|
components,
|
|
177
193
|
groupToolCalls = true,
|
|
178
194
|
composer: composerSlots,
|
|
179
195
|
dictation = true,
|
|
180
196
|
voice = true,
|
|
181
|
-
continueByVoice = null
|
|
197
|
+
continueByVoice = null,
|
|
198
|
+
turnChanges = null,
|
|
199
|
+
followUpSuggestions = false
|
|
182
200
|
}) => {
|
|
183
201
|
var _a, _b, _c, _d, _e, _f;
|
|
184
202
|
const athenaConfig = useAthenaConfig();
|
|
185
203
|
const authState = useContext(AthenaAuthContext);
|
|
204
|
+
const namesAgents = mentionCategories.includes("agents");
|
|
186
205
|
const statewireThreadId = useContext(AthenaStatewireThreadIdContext);
|
|
187
206
|
const startNewSession = (_a = useAthenaStatewireThreadList()) == null ? void 0 : _a.newThread;
|
|
188
207
|
const mentionCredentials = useMemo(
|
|
@@ -211,6 +230,13 @@ const AthenaChatContent = ({
|
|
|
211
230
|
);
|
|
212
231
|
const account = useAccountIdentity(mentionCredentials, { tokenGetter: athenaConfig.getToken });
|
|
213
232
|
const accountWorkspaceId = account.workspaceId;
|
|
233
|
+
const accountUserId = account.userId;
|
|
234
|
+
useEffect(() => {
|
|
235
|
+
if (namesAgents && accountUserId) keepDeepAgentNamedAgentsForIdentity(accountUserId);
|
|
236
|
+
}, [accountUserId, namesAgents]);
|
|
237
|
+
useEffect(() => {
|
|
238
|
+
if (accountUserId) keepAttachedReferencesForIdentity(accountUserId);
|
|
239
|
+
}, [accountUserId]);
|
|
214
240
|
const mentionAuth = useMemo(
|
|
215
241
|
() => ({
|
|
216
242
|
...mentionCredentials,
|
|
@@ -270,6 +296,21 @@ const AthenaChatContent = ({
|
|
|
270
296
|
userTextComponent
|
|
271
297
|
]
|
|
272
298
|
);
|
|
299
|
+
const turnChangesEnabled = (turnChanges == null ? void 0 : turnChanges.enabled) === true;
|
|
300
|
+
const turnChangesScope = turnChanges == null ? void 0 : turnChanges.reviewScope;
|
|
301
|
+
const turnChangesRead = turnChanges == null ? void 0 : turnChanges.read;
|
|
302
|
+
const turnChangesView = turnChanges == null ? void 0 : turnChanges.onView;
|
|
303
|
+
const turnChangesUndo = turnChanges == null ? void 0 : turnChanges.onUndo;
|
|
304
|
+
const turnChangesValue = useMemo(
|
|
305
|
+
() => turnChangesEnabled && turnChangesRead && turnChangesView && turnChangesUndo ? {
|
|
306
|
+
enabled: true,
|
|
307
|
+
...turnChangesScope !== void 0 && { reviewScope: turnChangesScope },
|
|
308
|
+
read: turnChangesRead,
|
|
309
|
+
onView: turnChangesView,
|
|
310
|
+
onUndo: turnChangesUndo
|
|
311
|
+
} : null,
|
|
312
|
+
[turnChangesEnabled, turnChangesScope, turnChangesRead, turnChangesView, turnChangesUndo]
|
|
313
|
+
);
|
|
273
314
|
const AssistantMessageComponent = (components == null ? void 0 : components.AssistantMessage) ?? AthenaDefaultAssistantMessage;
|
|
274
315
|
const UserMessageComponent = (components == null ? void 0 : components.UserMessage) ?? AthenaDefaultUserMessage;
|
|
275
316
|
const messageComponents = useMemo(
|
|
@@ -279,7 +320,7 @@ const AthenaChatContent = ({
|
|
|
279
320
|
}),
|
|
280
321
|
[AssistantMessageComponent, UserMessageComponent]
|
|
281
322
|
);
|
|
282
|
-
return /* @__PURE__ */ jsx(AthenaChatDefaultComponentsContext.Provider, { value: defaultComponentsContextValue, children: /* @__PURE__ */ jsx(AthenaChatErrorBoundary, { children: /* @__PURE__ */ jsx(StatewireApprovalWaitProvider, { children: /* @__PURE__ */ jsx(ToolFallbackAppearanceProvider, { appearance: "thread", children: /* @__PURE__ */ jsx(MentionAuthCtx.Provider, { value: mentionAuth, children: /* @__PURE__ */ jsx(
|
|
323
|
+
return /* @__PURE__ */ jsx(AthenaChatDefaultComponentsContext.Provider, { value: defaultComponentsContextValue, children: /* @__PURE__ */ jsx(AthenaTurnChangesContext.Provider, { value: turnChangesValue, children: /* @__PURE__ */ jsx(AthenaChatErrorBoundary, { children: /* @__PURE__ */ jsx(StatewireApprovalWaitProvider, { children: /* @__PURE__ */ jsx(DeepAgentLaneFollowScope, { children: /* @__PURE__ */ jsx(ToolFallbackAppearanceProvider, { appearance: "thread", children: /* @__PURE__ */ jsx(MentionAuthCtx.Provider, { value: mentionAuth, children: /* @__PURE__ */ jsx(
|
|
283
324
|
ChatThreadShell,
|
|
284
325
|
{
|
|
285
326
|
overlay: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -317,7 +358,13 @@ const AthenaChatContent = ({
|
|
|
317
358
|
/* @__PURE__ */ jsx(StatewireConnectionBanner, {}),
|
|
318
359
|
/* @__PURE__ */ jsx(StatewireErrorBanner, { onStartNewSession: startNewSession }),
|
|
319
360
|
/* @__PURE__ */ jsx(StatewireRunRefusalNotice, { onStartNewSession: startNewSession }),
|
|
320
|
-
/* @__PURE__ */ jsx(
|
|
361
|
+
/* @__PURE__ */ jsx(
|
|
362
|
+
StatewireApprovalCard,
|
|
363
|
+
{
|
|
364
|
+
confirmDecision,
|
|
365
|
+
typedInterrupts: statewireTypedInterrupts
|
|
366
|
+
}
|
|
367
|
+
),
|
|
321
368
|
plan === void 0 ? /* @__PURE__ */ jsx(AthenaPlanStrip, { className: "mx-3" }) : plan,
|
|
322
369
|
/* @__PURE__ */ jsx(StatewireQueuedMessages, {}),
|
|
323
370
|
/* @__PURE__ */ jsx(AttachmentProvider, { children: /* @__PURE__ */ jsxs(QuoteProvider, { children: [
|
|
@@ -326,17 +373,19 @@ const AthenaChatContent = ({
|
|
|
326
373
|
AthenaChatComposer,
|
|
327
374
|
{
|
|
328
375
|
tools,
|
|
376
|
+
mentionCategories,
|
|
329
377
|
slots: composerSlots,
|
|
330
378
|
dictation,
|
|
331
379
|
voice: readOnly ? false : voice,
|
|
332
380
|
continueByVoice: readOnly ? null : continueByVoice,
|
|
333
|
-
welcomeSuggestionCount: welcomeSuggestions.length
|
|
381
|
+
welcomeSuggestionCount: welcomeSuggestions.length,
|
|
382
|
+
followUpSuggestions: followUpSuggestions && !readOnly
|
|
334
383
|
}
|
|
335
384
|
)
|
|
336
385
|
] }) })
|
|
337
386
|
] })
|
|
338
387
|
}
|
|
339
|
-
) }) }) }) }, statewireThreadId ?? void 0) });
|
|
388
|
+
) }) }) }) }) }, statewireThreadId ?? void 0) }) });
|
|
340
389
|
};
|
|
341
390
|
const THREAD_VIEWPORT_ATTR = "data-aui-thread-viewport";
|
|
342
391
|
const useScrollToTop = () => {
|
|
@@ -395,12 +444,35 @@ const ATHENA_CHAT_MENTION_CATEGORIES = [
|
|
|
395
444
|
"projects",
|
|
396
445
|
"folders"
|
|
397
446
|
];
|
|
398
|
-
const
|
|
447
|
+
const ATHENA_CHAT_MENTION_ORDER = [
|
|
448
|
+
"favorites",
|
|
449
|
+
"assets",
|
|
450
|
+
"projects",
|
|
451
|
+
"browse_profiles",
|
|
452
|
+
"folders",
|
|
453
|
+
"toolkits",
|
|
454
|
+
"tools",
|
|
455
|
+
"team",
|
|
456
|
+
"agents",
|
|
457
|
+
"drives"
|
|
458
|
+
];
|
|
459
|
+
const AthenaChatComposer = ({
|
|
460
|
+
tools,
|
|
461
|
+
mentionCategories,
|
|
462
|
+
slots,
|
|
463
|
+
dictation,
|
|
464
|
+
voice: voiceOptions,
|
|
465
|
+
continueByVoice,
|
|
466
|
+
welcomeSuggestionCount,
|
|
467
|
+
followUpSuggestions
|
|
468
|
+
}) => {
|
|
399
469
|
const aui = useAui();
|
|
400
470
|
const threadId = useAthenaStatewireThreadId();
|
|
401
471
|
const { appUrl } = useAthenaConfig();
|
|
402
472
|
const { attachments, clearAttachments, isUploading, notice: attachNotice, setNotice: setAttachNotice } = useAttachments();
|
|
403
473
|
const { quote, clearQuote } = useQuote();
|
|
474
|
+
const attachedReferences = usePendingAttachedReferences(threadId);
|
|
475
|
+
const attachedReferencesComposerProps = useAttachedReferencesComposerProps(threadId);
|
|
404
476
|
const { attachFiles } = useAttachFiles();
|
|
405
477
|
const sessionLane = useStatewireSessionLane();
|
|
406
478
|
const composerRef = useRef(null);
|
|
@@ -440,9 +512,9 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
440
512
|
const appendSpokenText = useCallback(
|
|
441
513
|
(spoken) => {
|
|
442
514
|
if (!spoken) return;
|
|
443
|
-
const
|
|
444
|
-
if (
|
|
445
|
-
|
|
515
|
+
const composer2 = composerRef.current;
|
|
516
|
+
if (composer2 == null ? void 0 : composer2.appendText) {
|
|
517
|
+
composer2.appendText(spoken);
|
|
446
518
|
return;
|
|
447
519
|
}
|
|
448
520
|
aui.composer.setText(composeDictationDraft(aui.composer.getState().text ?? "", spoken));
|
|
@@ -464,16 +536,74 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
464
536
|
if (!dictationEnabled && dictationActive) cancelDictation();
|
|
465
537
|
}, [cancelDictation, dictationActive, dictationEnabled]);
|
|
466
538
|
const rootCategories = useMemo(() => {
|
|
467
|
-
const
|
|
468
|
-
if (tools.some((tool) => tool.type === "toolkit"))
|
|
469
|
-
if (tools.some((tool) => tool.type === "tool"))
|
|
470
|
-
return
|
|
471
|
-
}, [tools]);
|
|
539
|
+
const offered = new Set(mentionCategories);
|
|
540
|
+
if (tools.some((tool) => tool.type === "toolkit")) offered.add("toolkits");
|
|
541
|
+
if (tools.some((tool) => tool.type === "tool")) offered.add("tools");
|
|
542
|
+
return ATHENA_CHAT_MENTION_ORDER.filter((category) => offered.has(category));
|
|
543
|
+
}, [mentionCategories, tools]);
|
|
544
|
+
const namesAgents = rootCategories.includes("agents");
|
|
545
|
+
const viewerIsAdmin = useAthenaViewerIsAdmin({
|
|
546
|
+
enabled: namesAgents || rootCategories.includes("team")
|
|
547
|
+
});
|
|
548
|
+
const sayNamedAgentsLimit = useCallback((message) => {
|
|
549
|
+
queueMicrotask(() => setComposerNotice(message));
|
|
550
|
+
}, []);
|
|
551
|
+
const chatAgents = useAthenaChatAgentsMention({
|
|
552
|
+
threadId,
|
|
553
|
+
enabled: namesAgents,
|
|
554
|
+
isAdmin: viewerIsAdmin,
|
|
555
|
+
onLimit: sayNamedAgentsLimit
|
|
556
|
+
});
|
|
557
|
+
const focusComposer = useCallback(() => {
|
|
558
|
+
var _a, _b;
|
|
559
|
+
return (_b = (_a = composerRef.current) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
560
|
+
}, []);
|
|
561
|
+
const filePickerRef = useRef(null);
|
|
562
|
+
const composerActions = useMemo(
|
|
563
|
+
() => ({
|
|
564
|
+
openFilePicker: () => {
|
|
565
|
+
var _a;
|
|
566
|
+
if (needsConnectionReason) return;
|
|
567
|
+
(_a = filePickerRef.current) == null ? void 0 : _a.click();
|
|
568
|
+
},
|
|
569
|
+
openMentionMenu: () => {
|
|
570
|
+
var _a, _b;
|
|
571
|
+
return (_b = (_a = composerRef.current) == null ? void 0 : _a.openMentionMenu) == null ? void 0 : _b.call(_a);
|
|
572
|
+
},
|
|
573
|
+
needsConnectionReason
|
|
574
|
+
}),
|
|
575
|
+
[needsConnectionReason]
|
|
576
|
+
);
|
|
577
|
+
const pickFollowUp = useCallback(
|
|
578
|
+
(text) => {
|
|
579
|
+
var _a;
|
|
580
|
+
const composer2 = composerRef.current;
|
|
581
|
+
if (composer2 == null ? void 0 : composer2.appendText) composer2.appendText(text);
|
|
582
|
+
else aui.composer.setText(text);
|
|
583
|
+
(_a = composer2 == null ? void 0 : composer2.focus) == null ? void 0 : _a.call(composer2);
|
|
584
|
+
},
|
|
585
|
+
[aui]
|
|
586
|
+
);
|
|
472
587
|
const attachmentsRef = useRef(attachments);
|
|
473
588
|
attachmentsRef.current = attachments;
|
|
474
589
|
const quoteRef = useRef(quote);
|
|
475
590
|
quoteRef.current = quote;
|
|
591
|
+
const attachedReferencesRef = useRef(attachedReferences);
|
|
592
|
+
attachedReferencesRef.current = attachedReferences;
|
|
476
593
|
const hasExtras = attachments.length > 0 || quote !== null;
|
|
594
|
+
const sendStateRef = useRef({ isRunning, liveVoice: false });
|
|
595
|
+
sendStateRef.current = { isRunning, liveVoice: voice.phase === "live" && !hasExtras };
|
|
596
|
+
const onBeforeSend = slots == null ? void 0 : slots.onBeforeSend;
|
|
597
|
+
const beforeSubmit = useCallback(
|
|
598
|
+
async ({ text }) => {
|
|
599
|
+
if (!onBeforeSend) return;
|
|
600
|
+
const { isRunning: running, liveVoice } = sendStateRef.current;
|
|
601
|
+
const action = liveVoice ? "send" : resolveComposerAction({ hasDraft: true, isRunning: running });
|
|
602
|
+
if (action === "stop") return;
|
|
603
|
+
await onBeforeSend({ action, text });
|
|
604
|
+
},
|
|
605
|
+
[onBeforeSend]
|
|
606
|
+
);
|
|
477
607
|
const isUploadingRef = useRef(isUploading);
|
|
478
608
|
isUploadingRef.current = isUploading;
|
|
479
609
|
const uploadWaitersRef = useRef([]);
|
|
@@ -499,13 +629,23 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
499
629
|
});
|
|
500
630
|
if (!send) return false;
|
|
501
631
|
prepareComposerSend({ threadId, ...send });
|
|
632
|
+
if (namesAgents) {
|
|
633
|
+
stageComposerNamedAgents({
|
|
634
|
+
threadId,
|
|
635
|
+
text: send.text,
|
|
636
|
+
agents: readDeepAgentNamedAgents(threadId)
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
const references = stageThreadAttachedReferencesForSend({ threadId, text: send.text });
|
|
502
640
|
aui.composer.setText(send.text);
|
|
503
|
-
aui.composer.send(
|
|
641
|
+
aui.composer.send(
|
|
642
|
+
autoComposerSendOptions(aui.thread().getState().isRunning && references.length === 0)
|
|
643
|
+
);
|
|
504
644
|
clearAttachments();
|
|
505
645
|
clearQuote();
|
|
506
646
|
return true;
|
|
507
647
|
},
|
|
508
|
-
[appUrl, aui, clearAttachments, clearQuote, threadId]
|
|
648
|
+
[appUrl, aui, clearAttachments, clearQuote, namesAgents, threadId]
|
|
509
649
|
);
|
|
510
650
|
const continueByVoiceRef = useRef(continueByVoice);
|
|
511
651
|
continueByVoiceRef.current = continueByVoice;
|
|
@@ -520,7 +660,7 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
520
660
|
}, [onKeyboardHintSubmitted, settleContinueByVoice]);
|
|
521
661
|
const interceptSubmit = useCallback(
|
|
522
662
|
async (text, draftMarkdown) => {
|
|
523
|
-
if (attachmentsRef.current.length > 0 || quoteRef.current !== null) {
|
|
663
|
+
if (attachmentsRef.current.length > 0 || quoteRef.current !== null || attachedReferencesRef.current.length > 0 && text.length > 0) {
|
|
524
664
|
return sendComposed({ text, draftMarkdown });
|
|
525
665
|
}
|
|
526
666
|
return voice.phase === "live" && text.length > 0 ? voice.sendUserText(text) : false;
|
|
@@ -528,14 +668,18 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
528
668
|
[sendComposed, voice.phase, voice.sendUserText]
|
|
529
669
|
);
|
|
530
670
|
const hasPendingExtras = useCallback(
|
|
531
|
-
() =>
|
|
532
|
-
|
|
671
|
+
() => {
|
|
672
|
+
var _a, _b, _c;
|
|
673
|
+
return attachmentsRef.current.length > 0 || quoteRef.current !== null || attachedReferencesRef.current.length > 0 && Boolean(((_c = (_b = (_a = composerRef.current) == null ? void 0 : _a.captureSend) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.text) ?? aui.composer.getState().text);
|
|
674
|
+
},
|
|
675
|
+
[aui]
|
|
533
676
|
);
|
|
534
677
|
const holdPendingExtras = useCallback(
|
|
535
678
|
({
|
|
536
679
|
outbox,
|
|
537
680
|
send,
|
|
538
|
-
attachments: attachments2
|
|
681
|
+
attachments: attachments2,
|
|
682
|
+
addressedAgents
|
|
539
683
|
}) => {
|
|
540
684
|
const held = holdComposedSend({
|
|
541
685
|
outbox,
|
|
@@ -543,14 +687,19 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
543
687
|
carried: attachments2,
|
|
544
688
|
quote: quoteRef.current,
|
|
545
689
|
send,
|
|
546
|
-
appUrl
|
|
690
|
+
appUrl,
|
|
691
|
+
// The agents it names ride its message.
|
|
692
|
+
...addressedAgents && { addressedAgents },
|
|
693
|
+
// So do the references attached to it.
|
|
694
|
+
attachedReferences: attachedReferencesRef.current
|
|
547
695
|
});
|
|
548
696
|
if (!held) return false;
|
|
549
697
|
clearAttachments();
|
|
550
698
|
clearQuote();
|
|
699
|
+
clearAttachedReferences(threadId);
|
|
551
700
|
return true;
|
|
552
701
|
},
|
|
553
|
-
[appUrl, clearAttachments, clearQuote]
|
|
702
|
+
[appUrl, clearAttachments, clearQuote, threadId]
|
|
554
703
|
);
|
|
555
704
|
const fileIntake = useMemo(
|
|
556
705
|
() => ({
|
|
@@ -573,12 +722,12 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
573
722
|
text: aui.composer.getState().text ?? "",
|
|
574
723
|
draftMarkdown: aui.composer.getState().text ?? ""
|
|
575
724
|
};
|
|
576
|
-
const extras = attachmentsRef.current.length > 0 || quoteRef.current !== null;
|
|
725
|
+
const extras = attachmentsRef.current.length > 0 || quoteRef.current !== null || attachedReferencesRef.current.length > 0 && send.text.length > 0;
|
|
577
726
|
if (!send.text && !extras) return;
|
|
578
727
|
const action = resolveComposerAction({ hasDraft: true, isRunning });
|
|
579
728
|
if (action === "stop") return;
|
|
580
729
|
try {
|
|
581
|
-
await ((_c = slots == null ? void 0 : slots.onBeforeSend) == null ? void 0 : _c.call(slots, { action }));
|
|
730
|
+
await ((_c = slots == null ? void 0 : slots.onBeforeSend) == null ? void 0 : _c.call(slots, { action, text: send.text }));
|
|
582
731
|
} catch (error2) {
|
|
583
732
|
athenaDiagnostics.emit("composer.dictation", {
|
|
584
733
|
level: "warn",
|
|
@@ -589,27 +738,47 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
589
738
|
});
|
|
590
739
|
return;
|
|
591
740
|
}
|
|
741
|
+
const namedAgents = namesAgents ? readDeepAgentNamedAgents(threadId) : [];
|
|
592
742
|
settleContinueByVoice();
|
|
593
743
|
if (extras) {
|
|
594
744
|
sendComposed(send);
|
|
595
745
|
return;
|
|
596
746
|
}
|
|
597
747
|
prepareComposerSend({ threadId, ...send });
|
|
748
|
+
if (namesAgents) stageComposerNamedAgents({ threadId, text: send.text, agents: namedAgents });
|
|
598
749
|
aui.composer.setText(send.text);
|
|
599
|
-
aui.composer.send(
|
|
750
|
+
aui.composer.send(autoComposerSendOptions(aui.thread().getState().isRunning));
|
|
600
751
|
}, [
|
|
601
752
|
appendSpokenText,
|
|
602
753
|
aui,
|
|
603
754
|
dictationCtl,
|
|
604
755
|
isRunning,
|
|
756
|
+
namesAgents,
|
|
605
757
|
sendComposed,
|
|
606
758
|
sessionLane,
|
|
607
759
|
settleContinueByVoice,
|
|
608
760
|
slots,
|
|
609
761
|
threadId
|
|
610
762
|
]);
|
|
611
|
-
|
|
763
|
+
const composer = /* @__PURE__ */ jsxs(ComposerDropZone, { onDragActiveChange: setDragActive, children: [
|
|
612
764
|
/* @__PURE__ */ jsx("audio", { ref: audioRef, autoPlay: true, playsInline: true }),
|
|
765
|
+
/* @__PURE__ */ jsx(
|
|
766
|
+
"input",
|
|
767
|
+
{
|
|
768
|
+
ref: filePickerRef,
|
|
769
|
+
type: "file",
|
|
770
|
+
multiple: true,
|
|
771
|
+
className: "hidden",
|
|
772
|
+
"aria-hidden": true,
|
|
773
|
+
tabIndex: -1,
|
|
774
|
+
onChange: (event) => {
|
|
775
|
+
const input = event.currentTarget;
|
|
776
|
+
const files = input.files ? Array.from(input.files) : [];
|
|
777
|
+
input.value = "";
|
|
778
|
+
if (files.length > 0) void attachFiles(files, "paperclip");
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
),
|
|
613
782
|
/* @__PURE__ */ jsx(
|
|
614
783
|
"div",
|
|
615
784
|
{
|
|
@@ -621,6 +790,15 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
621
790
|
{
|
|
622
791
|
appearance: "paper",
|
|
623
792
|
dragActive,
|
|
793
|
+
aboveSurface: /* @__PURE__ */ jsx(
|
|
794
|
+
FollowUpSuggestions,
|
|
795
|
+
{
|
|
796
|
+
enabled: followUpSuggestions,
|
|
797
|
+
threadId,
|
|
798
|
+
hasDraft: hasText || hasExtras,
|
|
799
|
+
onPick: pickFollowUp
|
|
800
|
+
}
|
|
801
|
+
),
|
|
624
802
|
beforeEditor: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
625
803
|
slots == null ? void 0 : slots.aboveEditor,
|
|
626
804
|
/* @__PURE__ */ jsx(
|
|
@@ -641,6 +819,8 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
641
819
|
disabledReason: needsConnectionReason
|
|
642
820
|
}
|
|
643
821
|
),
|
|
822
|
+
namesAgents ? /* @__PURE__ */ jsx(ComposerNamedAgents, { threadId, onEmptied: focusComposer }) : null,
|
|
823
|
+
/* @__PURE__ */ jsx(ComposerAttachedReferences, { threadId, onEmptied: focusComposer }),
|
|
644
824
|
/* @__PURE__ */ jsx(ComposerQuotePreview, {}),
|
|
645
825
|
/* @__PURE__ */ jsx(ComposerAttachmentPreview, {})
|
|
646
826
|
] }),
|
|
@@ -650,19 +830,24 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
650
830
|
{
|
|
651
831
|
ref: composerRef,
|
|
652
832
|
threadId,
|
|
833
|
+
...attachedReferencesComposerProps,
|
|
653
834
|
appearance: "paper",
|
|
654
835
|
placeholder: (runLive ? slots == null ? void 0 : slots.runningPlaceholder : void 0) ?? (slots == null ? void 0 : slots.placeholder) ?? DEFAULT_COMPOSER_PLACEHOLDER,
|
|
655
836
|
tools,
|
|
656
837
|
rootCategories,
|
|
838
|
+
chatAgents,
|
|
839
|
+
viewerIsAdmin,
|
|
657
840
|
onDraftStateChange,
|
|
658
841
|
mentionSearchUnavailable: needsConnectionReason ? NEEDS_CONNECTION : null,
|
|
659
842
|
waitForHostUploads,
|
|
660
843
|
interceptSubmit,
|
|
844
|
+
beforeSubmit: onBeforeSend ? beforeSubmit : void 0,
|
|
661
845
|
hasPendingExtras,
|
|
662
846
|
holdPendingExtras,
|
|
663
847
|
onAttachmentError: setComposerNotice,
|
|
664
848
|
fileIntake,
|
|
665
|
-
onSubmitted: handleComposerSubmitted
|
|
849
|
+
onSubmitted: handleComposerSubmitted,
|
|
850
|
+
slashCommands: slots == null ? void 0 : slots.slashCommands
|
|
666
851
|
}
|
|
667
852
|
) }),
|
|
668
853
|
notice && /* @__PURE__ */ jsx("p", { className: "aui-composer-notice px-1.5 pb-1 text-destructive text-xs", role: "alert", children: notice }),
|
|
@@ -677,81 +862,89 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
677
862
|
),
|
|
678
863
|
dictationEnabled && dictationCtl.status === DICTATION_STATUSES.error && dictationCtl.error && /* @__PURE__ */ jsx("p", { className: "aui-dictation-error px-1.5 pb-1 text-destructive text-xs", role: "alert", children: dictationCtl.error.message })
|
|
679
864
|
] }),
|
|
680
|
-
toolbarStart:
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
865
|
+
toolbarStart: (
|
|
866
|
+
// `min-w-0 flex-wrap`: when the chips are wider than the composer (a narrow pane, or a
|
|
867
|
+
// host's own chips), they wrap onto another row instead of pushing voice and Send past
|
|
868
|
+
// its edge. A toolbar that fits lays out as before.
|
|
869
|
+
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-wrap items-center gap-1", children: recording ? /* @__PURE__ */ jsx(DictationCancelButton, { onClick: dictationCtl.cancel }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
870
|
+
(slots == null ? void 0 : slots.attachButton) === false ? null : /* @__PURE__ */ jsx(
|
|
871
|
+
FileUploadButton,
|
|
872
|
+
{
|
|
873
|
+
className: "aui-composer-attach size-8 rounded-full p-0 disabled:opacity-30",
|
|
874
|
+
disabledReason: needsConnectionReason
|
|
875
|
+
}
|
|
876
|
+
),
|
|
877
|
+
(slots == null ? void 0 : slots.mentionButton) === false ? null : /* @__PURE__ */ jsx(
|
|
878
|
+
AthenaComposerMentionButton,
|
|
879
|
+
{
|
|
880
|
+
onClick: () => {
|
|
881
|
+
var _a, _b;
|
|
882
|
+
return (_b = (_a = composerRef.current) == null ? void 0 : _a.openMentionMenu) == null ? void 0 : _b.call(_a);
|
|
883
|
+
},
|
|
884
|
+
disabledReason: needsConnectionReason
|
|
885
|
+
}
|
|
886
|
+
),
|
|
887
|
+
/* @__PURE__ */ jsx(AthenaChatModeMenu, {}),
|
|
888
|
+
slots == null ? void 0 : slots.toolbarStart
|
|
889
|
+
] }) })
|
|
890
|
+
),
|
|
891
|
+
toolbarEnd: (
|
|
892
|
+
// Never shrinks, and sits at the last row's end once the chips wrap.
|
|
893
|
+
/* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center gap-1 self-end", children: recording ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
894
|
+
/* @__PURE__ */ jsx(
|
|
895
|
+
DictationStopButton,
|
|
896
|
+
{
|
|
897
|
+
onClick: () => void stopDictation(),
|
|
898
|
+
disabled: dictationCtl.status === DICTATION_STATUSES.stopping
|
|
899
|
+
}
|
|
900
|
+
),
|
|
901
|
+
/* @__PURE__ */ jsx(
|
|
902
|
+
AthenaComposerSendButton,
|
|
903
|
+
{
|
|
904
|
+
action: isRunning ? "queue" : "send",
|
|
905
|
+
onSend: () => void sendDictation(),
|
|
906
|
+
disabled: dictationCtl.status !== DICTATION_STATUSES.listening || isUploading,
|
|
907
|
+
title: isUploading ? "Upload in progress..." : void 0
|
|
908
|
+
}
|
|
909
|
+
)
|
|
910
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
911
|
+
slots == null ? void 0 : slots.toolbarEnd,
|
|
912
|
+
showMic && /* @__PURE__ */ jsx(
|
|
913
|
+
DictationMicButton,
|
|
914
|
+
{
|
|
915
|
+
onClick: dictationCtl.start,
|
|
916
|
+
disabled: isUploading,
|
|
917
|
+
disabledReason: needsConnectionReason
|
|
918
|
+
}
|
|
919
|
+
),
|
|
920
|
+
voiceEnabled && /* @__PURE__ */ jsx(
|
|
921
|
+
ChatVoiceButton,
|
|
922
|
+
{
|
|
923
|
+
voice,
|
|
924
|
+
disabled: isUploading || dictationCtl.isActive || !isStatewireChannelLive(connection),
|
|
925
|
+
disabledReason: needsConnectionReason
|
|
926
|
+
}
|
|
927
|
+
),
|
|
928
|
+
/* @__PURE__ */ jsx(
|
|
929
|
+
ComposerSendOrStop,
|
|
930
|
+
{
|
|
931
|
+
composerRef,
|
|
932
|
+
hasDraft: hasText || hasExtras,
|
|
933
|
+
liveVoice: voice.phase === "live" && !hasExtras,
|
|
934
|
+
liveSession: voiceActive ? voice : null,
|
|
935
|
+
sendBlockedReason: isUploading ? "Upload in progress..." : null,
|
|
936
|
+
components: ATHENA_COMPOSER_COMPONENTS
|
|
937
|
+
}
|
|
938
|
+
)
|
|
939
|
+
] }) })
|
|
940
|
+
),
|
|
749
941
|
belowSurface: /* @__PURE__ */ jsx(ComposerKeyboardHint, { visible: keyboardHint.visible })
|
|
750
942
|
}
|
|
751
943
|
)
|
|
752
944
|
}
|
|
753
945
|
)
|
|
754
946
|
] });
|
|
947
|
+
return /* @__PURE__ */ jsx(AthenaChatComposerActionsContext.Provider, { value: composerActions, children: composer });
|
|
755
948
|
};
|
|
756
949
|
const MessageError = () => /* @__PURE__ */ jsx(MessagePrimitive.Error, { children: /* @__PURE__ */ jsxs(ErrorPrimitive.Root, { className: "aui-message-error-root mt-2 flex items-start gap-2 rounded-md border border-destructive bg-destructive/10 p-3 text-destructive text-sm dark:bg-destructive/5 dark:text-red-200", children: [
|
|
757
950
|
/* @__PURE__ */ jsx(AlertCircleIcon, { className: "mt-0.5 size-4 shrink-0" }),
|
|
@@ -1003,6 +1196,12 @@ const AthenaReasoningPart = ({
|
|
|
1003
1196
|
};
|
|
1004
1197
|
const noToolGrouping = () => null;
|
|
1005
1198
|
const isInlineToolOrSubagent = (toolName) => toolName === TASK_TOOL_NAME || isSdkInlineTool(toolName);
|
|
1199
|
+
const AthenaRuntimeEndingCard = () => {
|
|
1200
|
+
const message = useAuiState((s) => s.message);
|
|
1201
|
+
const runtime = useMemo(() => readRuntimeMessageFromSourceMessages(message), [message]);
|
|
1202
|
+
if (!runtime || runtime.silent) return null;
|
|
1203
|
+
return /* @__PURE__ */ jsx(RuntimeMessageCard, { message: runtime });
|
|
1204
|
+
};
|
|
1006
1205
|
const AthenaAssistantMessage = ({
|
|
1007
1206
|
toolUIs,
|
|
1008
1207
|
AvatarComponent,
|
|
@@ -1035,6 +1234,43 @@ const AthenaAssistantMessage = ({
|
|
|
1035
1234
|
[EmptyComponent, TextComponent, effectiveReasoningComponent, toolUIsWithNestedMessages]
|
|
1036
1235
|
);
|
|
1037
1236
|
const arrivedLive = useMessageArrivalAnimation();
|
|
1237
|
+
const soleEndingKind = useAuiState((s) => readSoleRuntimeMessageKind(s.message));
|
|
1238
|
+
const endingSilent = useAuiState(
|
|
1239
|
+
(s) => {
|
|
1240
|
+
var _a;
|
|
1241
|
+
return ((_a = readRuntimeMessageFromSourceMessages(s.message)) == null ? void 0 : _a.silent) === true;
|
|
1242
|
+
}
|
|
1243
|
+
);
|
|
1244
|
+
const chunkedEndingText = useAuiState((s) => {
|
|
1245
|
+
const runtime = readRuntimeMessageFromSourceMessages(s.message);
|
|
1246
|
+
if (!runtime || runtime.isSoleSourceMessage || runtime.kind === "handoff") return void 0;
|
|
1247
|
+
const markerText = runtime.text;
|
|
1248
|
+
const last = s.message.content.at(-1);
|
|
1249
|
+
if (markerText === void 0 || (last == null ? void 0 : last.type) !== "text" || last.text !== markerText) return void 0;
|
|
1250
|
+
const sameText = s.message.content.filter((part) => part.type === "text" && part.text === markerText);
|
|
1251
|
+
return sameText.length === 1 ? markerText : void 0;
|
|
1252
|
+
});
|
|
1253
|
+
const AnswerTextComponent = useMemo(() => {
|
|
1254
|
+
if (chunkedEndingText === void 0) return TextComponent;
|
|
1255
|
+
const Base = TextComponent;
|
|
1256
|
+
return function TextOrRunEnding(props) {
|
|
1257
|
+
return props.text === chunkedEndingText ? /* @__PURE__ */ jsx(AthenaRuntimeEndingCard, {}) : /* @__PURE__ */ jsx(Base, { ...props });
|
|
1258
|
+
};
|
|
1259
|
+
}, [TextComponent, chunkedEndingText]);
|
|
1260
|
+
if (soleEndingKind !== void 0 && soleEndingKind !== "handoff") {
|
|
1261
|
+
if (endingSilent) return null;
|
|
1262
|
+
return /* @__PURE__ */ jsxs(
|
|
1263
|
+
MessagePrimitive.Root,
|
|
1264
|
+
{
|
|
1265
|
+
className: "aui-assistant-message-root aui-run-ending-root mx-auto w-full max-w-(--thread-max-width) px-2 py-1",
|
|
1266
|
+
"data-role": "assistant",
|
|
1267
|
+
children: [
|
|
1268
|
+
/* @__PURE__ */ jsx(MessageDaySeparator, {}),
|
|
1269
|
+
/* @__PURE__ */ jsx(AthenaRuntimeEndingCard, {})
|
|
1270
|
+
]
|
|
1271
|
+
}
|
|
1272
|
+
);
|
|
1273
|
+
}
|
|
1038
1274
|
return /* @__PURE__ */ jsxs(
|
|
1039
1275
|
MessagePrimitive.Root,
|
|
1040
1276
|
{
|
|
@@ -1069,7 +1305,7 @@ const AthenaAssistantMessage = ({
|
|
|
1069
1305
|
renderRunningMeta: renderGroupedRunningMeta
|
|
1070
1306
|
}
|
|
1071
1307
|
),
|
|
1072
|
-
/* @__PURE__ */ jsx(SuperGroupingFinalText, { TextComponent })
|
|
1308
|
+
/* @__PURE__ */ jsx(SuperGroupingFinalText, { TextComponent: AnswerTextComponent })
|
|
1073
1309
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1074
1310
|
/* @__PURE__ */ jsx(AthenaMessageEmptyIndicator, { EmptyComponent }),
|
|
1075
1311
|
/* @__PURE__ */ jsx(MessagePrimitive.GroupedParts, { groupBy: noToolGrouping, children: ({ part }) => {
|
|
@@ -1089,7 +1325,7 @@ const AthenaAssistantMessage = ({
|
|
|
1089
1325
|
if (textPart.text === "" && ((_a = textPart.status) == null ? void 0 : _a.type) === "running") {
|
|
1090
1326
|
return /* @__PURE__ */ jsx(EmptyComponent, { status: textPart.status });
|
|
1091
1327
|
}
|
|
1092
|
-
return /* @__PURE__ */ jsx(
|
|
1328
|
+
return /* @__PURE__ */ jsx(AnswerTextComponent, { ...textPart });
|
|
1093
1329
|
}
|
|
1094
1330
|
default:
|
|
1095
1331
|
return null;
|
|
@@ -1099,6 +1335,7 @@ const AthenaAssistantMessage = ({
|
|
|
1099
1335
|
] }) }),
|
|
1100
1336
|
/* @__PURE__ */ jsx(MessageError, {})
|
|
1101
1337
|
] }) }),
|
|
1338
|
+
/* @__PURE__ */ jsx(AthenaTurnChangesSlot, { className: "mx-2" }),
|
|
1102
1339
|
/* @__PURE__ */ jsxs("div", { className: "aui-assistant-message-footer mt-1 ml-2 flex items-center gap-1", children: [
|
|
1103
1340
|
/* @__PURE__ */ jsx(BranchPicker, {}),
|
|
1104
1341
|
/* @__PURE__ */ jsx(ActionBarComponent, {}),
|
|
@@ -1266,6 +1503,7 @@ const AthenaUserMessage = ({
|
|
|
1266
1503
|
/* @__PURE__ */ jsx(MessageDaySeparator, {}),
|
|
1267
1504
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 max-w-[75%] flex-col items-end gap-1", children: [
|
|
1268
1505
|
/* @__PURE__ */ jsx(InboundChannelLine, {}),
|
|
1506
|
+
/* @__PURE__ */ jsx(MessageAttachedReferences, {}),
|
|
1269
1507
|
/* @__PURE__ */ jsxs("div", { className: "aui-user-message-content wrap-break-word min-w-0 max-w-full rounded-2xl bg-muted/70 px-4 py-2.5 text-foreground", children: [
|
|
1270
1508
|
/* @__PURE__ */ jsx(InboundChannelSubject, {}),
|
|
1271
1509
|
/* @__PURE__ */ jsx(MessageImageGallery, { children: /* @__PURE__ */ jsx(MessagePrimitive.Parts, { components: partComponents }) })
|