@athenaintel/react 0.41.3 → 0.42.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/README.md +102 -9
- package/dist/agent-runtime/src/asset-attachment.d.ts +98 -0
- package/dist/agent-runtime/src/athena-asset-drag.d.ts +32 -0
- package/dist/agent-runtime/src/auth-denial.d.ts +29 -0
- package/dist/agent-runtime/src/chat-outbox-attachments.cjs +41 -0
- package/dist/agent-runtime/src/chat-outbox-attachments.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-attachments.d.ts +38 -0
- package/dist/agent-runtime/src/chat-outbox-attachments.js +41 -0
- package/dist/agent-runtime/src/chat-outbox-attachments.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-signals.cjs +63 -0
- package/dist/agent-runtime/src/chat-outbox-signals.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-signals.d.ts +12 -0
- package/dist/agent-runtime/src/chat-outbox-signals.js +63 -0
- package/dist/agent-runtime/src/chat-outbox-signals.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-store.cjs +509 -0
- package/dist/agent-runtime/src/chat-outbox-store.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-store.d.ts +203 -0
- package/dist/agent-runtime/src/chat-outbox-store.js +509 -0
- package/dist/agent-runtime/src/chat-outbox-store.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-thread.cjs +136 -0
- package/dist/agent-runtime/src/chat-outbox-thread.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-thread.d.ts +118 -0
- package/dist/agent-runtime/src/chat-outbox-thread.js +136 -0
- package/dist/agent-runtime/src/chat-outbox-thread.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox.cjs +696 -0
- package/dist/agent-runtime/src/chat-outbox.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox.d.ts +285 -0
- package/dist/agent-runtime/src/chat-outbox.js +696 -0
- package/dist/agent-runtime/src/chat-outbox.js.map +1 -0
- package/dist/agent-runtime/src/chat-socket-reachability.d.ts +45 -0
- package/dist/agent-runtime/src/client-tool-bridge.d.ts +152 -0
- package/dist/agent-runtime/src/client-tools.d.ts +133 -0
- package/dist/agent-runtime/src/composer-markdown.cjs +10 -0
- package/dist/agent-runtime/src/composer-markdown.cjs.map +1 -1
- package/dist/agent-runtime/src/composer-markdown.d.ts +108 -0
- package/dist/agent-runtime/src/composer-markdown.js +10 -0
- package/dist/agent-runtime/src/composer-markdown.js.map +1 -1
- package/dist/agent-runtime/src/config-mutations.d.ts +51 -0
- package/dist/agent-runtime/src/conversation-index.d.ts +110 -0
- package/dist/agent-runtime/src/conversation-list.d.ts +343 -0
- package/dist/agent-runtime/src/deep-agent-transport-recipe.cjs +3 -2
- package/dist/agent-runtime/src/deep-agent-transport-recipe.cjs.map +1 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.d.ts +166 -0
- package/dist/agent-runtime/src/deep-agent-transport-recipe.js +3 -2
- package/dist/agent-runtime/src/deep-agent-transport-recipe.js.map +1 -1
- package/dist/agent-runtime/src/desktop-handoff.d.ts +139 -0
- package/dist/agent-runtime/src/durable-thread-snapshot-cache.d.ts +60 -0
- package/dist/agent-runtime/src/edit-command.d.ts +156 -0
- package/dist/agent-runtime/src/errors.d.ts +174 -0
- package/dist/agent-runtime/src/execute-output.d.ts +31 -0
- package/dist/agent-runtime/src/generated/runconfig-contract.cjs +16 -2
- package/dist/agent-runtime/src/generated/runconfig-contract.cjs.map +1 -1
- package/dist/agent-runtime/src/generated/runconfig-contract.d.ts +202 -0
- package/dist/agent-runtime/src/generated/runconfig-contract.js +16 -2
- package/dist/agent-runtime/src/generated/runconfig-contract.js.map +1 -1
- package/dist/agent-runtime/src/github-wake-event.d.ts +77 -0
- package/dist/agent-runtime/src/index.d.ts +74 -0
- package/dist/agent-runtime/src/interrupts.cjs +17 -0
- package/dist/agent-runtime/src/interrupts.cjs.map +1 -1
- package/dist/agent-runtime/src/interrupts.d.ts +348 -0
- package/dist/agent-runtime/src/interrupts.js +17 -0
- package/dist/agent-runtime/src/interrupts.js.map +1 -1
- package/dist/agent-runtime/src/lane-follow.d.ts +121 -0
- package/dist/agent-runtime/src/lane-history.cjs +209 -0
- package/dist/agent-runtime/src/lane-history.cjs.map +1 -0
- package/dist/agent-runtime/src/lane-history.d.ts +175 -0
- package/dist/agent-runtime/src/lane-history.js +209 -0
- package/dist/agent-runtime/src/lane-history.js.map +1 -0
- package/dist/agent-runtime/src/lane-images.d.ts +184 -0
- package/dist/agent-runtime/src/message-author.d.ts +43 -0
- package/dist/agent-runtime/src/message-text.cjs +15 -0
- package/dist/agent-runtime/src/message-text.cjs.map +1 -0
- package/dist/agent-runtime/src/message-text.d.ts +47 -0
- package/dist/agent-runtime/src/message-text.js +15 -0
- package/dist/agent-runtime/src/message-text.js.map +1 -0
- package/dist/agent-runtime/src/message-window.cjs +15 -1
- package/dist/agent-runtime/src/message-window.cjs.map +1 -1
- package/dist/agent-runtime/src/message-window.d.ts +159 -0
- package/dist/agent-runtime/src/message-window.js +16 -2
- package/dist/agent-runtime/src/message-window.js.map +1 -1
- package/dist/agent-runtime/src/messages.cjs +88 -4
- package/dist/agent-runtime/src/messages.cjs.map +1 -1
- package/dist/agent-runtime/src/messages.d.ts +603 -0
- package/dist/agent-runtime/src/messages.js +88 -4
- package/dist/agent-runtime/src/messages.js.map +1 -1
- package/dist/agent-runtime/src/model-context.d.ts +22 -0
- package/dist/agent-runtime/src/offline-status.d.ts +157 -0
- package/dist/agent-runtime/src/optimistic-content.d.ts +21 -0
- package/dist/agent-runtime/src/protocol.cjs +12 -4
- package/dist/agent-runtime/src/protocol.cjs.map +1 -1
- package/dist/agent-runtime/src/protocol.d.ts +119 -0
- package/dist/agent-runtime/src/protocol.js +13 -5
- package/dist/agent-runtime/src/protocol.js.map +1 -1
- package/dist/agent-runtime/src/ptc-subcalls.d.ts +51 -0
- package/dist/agent-runtime/src/queue.d.ts +138 -0
- package/dist/agent-runtime/src/quota-safe-local-storage-session.d.ts +154 -0
- package/dist/agent-runtime/src/running-tool-placeholder.cjs +11 -0
- package/dist/agent-runtime/src/running-tool-placeholder.cjs.map +1 -0
- package/dist/agent-runtime/src/running-tool-placeholder.d.ts +25 -0
- package/dist/agent-runtime/src/running-tool-placeholder.js +11 -0
- package/dist/agent-runtime/src/running-tool-placeholder.js.map +1 -0
- package/dist/agent-runtime/src/runtime-messages.d.ts +104 -0
- package/dist/agent-runtime/src/screen-point.d.ts +151 -0
- package/dist/agent-runtime/src/sealed-idb.cjs +112 -0
- package/dist/agent-runtime/src/sealed-idb.cjs.map +1 -0
- package/dist/agent-runtime/src/sealed-idb.d.ts +106 -0
- package/dist/agent-runtime/src/sealed-idb.js +112 -0
- package/dist/agent-runtime/src/sealed-idb.js.map +1 -0
- package/dist/agent-runtime/src/send-recovery.d.ts +40 -0
- package/dist/agent-runtime/src/statewire-attach-observer.d.ts +194 -0
- package/dist/agent-runtime/src/statewire-diagnostics.d.ts +74 -0
- package/dist/agent-runtime/src/statewire-state.d.ts +29 -0
- package/dist/agent-runtime/src/statewire-suspended.cjs.map +1 -1
- package/dist/agent-runtime/src/statewire-suspended.d.ts +27 -0
- package/dist/agent-runtime/src/statewire-suspended.js.map +1 -1
- package/dist/agent-runtime/src/statewire-transport.d.ts +40 -0
- package/dist/agent-runtime/src/streaming-markdown.d.ts +46 -0
- package/dist/agent-runtime/src/subagent-transcripts.cjs +209 -0
- package/dist/agent-runtime/src/subagent-transcripts.cjs.map +1 -0
- package/dist/agent-runtime/src/subagent-transcripts.d.ts +71 -0
- package/dist/agent-runtime/src/subagent-transcripts.js +209 -0
- package/dist/agent-runtime/src/subagent-transcripts.js.map +1 -0
- package/dist/agent-runtime/src/subagents.cjs +253 -0
- package/dist/agent-runtime/src/subagents.cjs.map +1 -0
- package/dist/agent-runtime/src/subagents.d.ts +311 -0
- package/dist/agent-runtime/src/subagents.js +253 -0
- package/dist/agent-runtime/src/subagents.js.map +1 -0
- package/dist/agent-runtime/src/subscription-wake-event.d.ts +111 -0
- package/dist/agent-runtime/src/thread-extras.d.ts +43 -0
- package/dist/agent-runtime/src/thread-handoff.d.ts +364 -0
- package/dist/agent-runtime/src/thread-prewarm-controller.d.ts +76 -0
- package/dist/agent-runtime/src/thread-prewarm.d.ts +118 -0
- package/dist/agent-runtime/src/thread-snapshot-cache.d.ts +99 -0
- package/dist/agent-runtime/src/thread-snapshot-mirror.cjs +46 -117
- package/dist/agent-runtime/src/thread-snapshot-mirror.cjs.map +1 -1
- package/dist/agent-runtime/src/thread-snapshot-mirror.d.ts +101 -0
- package/dist/agent-runtime/src/thread-snapshot-mirror.js +17 -88
- package/dist/agent-runtime/src/thread-snapshot-mirror.js.map +1 -1
- package/dist/agent-runtime/src/thread-status.d.ts +53 -0
- package/dist/agent-runtime/src/tool-metadata.d.ts +146 -0
- package/dist/agent-runtime/src/tool-names.cjs +67 -0
- package/dist/agent-runtime/src/tool-names.cjs.map +1 -1
- package/dist/agent-runtime/src/tool-names.d.ts +60 -0
- package/dist/agent-runtime/src/tool-names.js +68 -1
- package/dist/agent-runtime/src/tool-names.js.map +1 -1
- package/dist/agent-runtime/src/tool-outputs.d.ts +35 -0
- package/dist/agent-runtime/src/tool-result.cjs +1 -0
- package/dist/agent-runtime/src/tool-result.cjs.map +1 -1
- package/dist/agent-runtime/src/tool-result.d.ts +126 -0
- package/dist/agent-runtime/src/tool-result.js +1 -0
- package/dist/agent-runtime/src/tool-result.js.map +1 -1
- package/dist/agent-runtime/src/types.d.ts +159 -0
- package/dist/agent-runtime/src/use-conversation-list.d.ts +76 -0
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.cjs +136 -0
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.cjs.map +1 -0
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.d.ts +64 -0
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.js +136 -0
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.js.map +1 -0
- package/dist/agent-runtime/src/use-deep-agent-config.d.ts +169 -0
- package/dist/agent-runtime/src/use-deep-agent-edit-submit.cjs +13 -0
- package/dist/agent-runtime/src/use-deep-agent-edit-submit.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-edit-submit.d.ts +22 -0
- package/dist/agent-runtime/src/use-deep-agent-edit-submit.js +13 -0
- package/dist/agent-runtime/src/use-deep-agent-edit-submit.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-runtime.cjs +20 -2
- package/dist/agent-runtime/src/use-deep-agent-runtime.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-runtime.d.ts +168 -0
- package/dist/agent-runtime/src/use-deep-agent-runtime.js +20 -2
- package/dist/agent-runtime/src/use-deep-agent-runtime.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.cjs +12 -4
- package/dist/agent-runtime/src/use-deep-agent-thread.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.d.ts +320 -0
- package/dist/agent-runtime/src/use-deep-agent-thread.js +12 -4
- package/dist/agent-runtime/src/use-deep-agent-thread.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-voice.cjs +999 -0
- package/dist/agent-runtime/src/use-deep-agent-voice.cjs.map +1 -0
- package/dist/agent-runtime/src/use-deep-agent-voice.d.ts +409 -0
- package/dist/agent-runtime/src/use-deep-agent-voice.js +999 -0
- package/dist/agent-runtime/src/use-deep-agent-voice.js.map +1 -0
- package/dist/agent-runtime/src/use-deep-agent-window-sync.d.ts +102 -0
- package/dist/agent-runtime/src/use-historical-edit-attachments.d.ts +2 -0
- package/dist/agent-runtime/src/use-thread-handoff-flow.d.ts +84 -0
- package/dist/agent-runtime/src/voice-presentation.d.ts +80 -0
- package/dist/agent-runtime/src/voice-turn-grouping.d.ts +28 -0
- package/dist/agent-runtime/src/voice-wire-types.d.ts +15 -0
- package/dist/agent-runtime/src/withdrawn-turns.d.ts +97 -0
- package/dist/chat/AthenaChat.cjs +72 -5
- package/dist/chat/AthenaChat.cjs.map +1 -1
- package/dist/chat/AthenaChat.js +73 -6
- package/dist/chat/AthenaChat.js.map +1 -1
- package/dist/chat/StatewireApprovalCard.d.ts +1 -1
- package/dist/chat/StatewireClientToolBridge.d.ts +1 -1
- package/dist/chat/StatewireQueuedMessages.cjs +11 -4
- package/dist/chat/StatewireQueuedMessages.cjs.map +1 -1
- package/dist/chat/StatewireQueuedMessages.d.ts +1 -1
- package/dist/chat/StatewireQueuedMessages.js +11 -4
- package/dist/chat/StatewireQueuedMessages.js.map +1 -1
- package/dist/chat/chat-outbox-rows.cjs +223 -0
- package/dist/chat/chat-outbox-rows.cjs.map +1 -0
- package/dist/chat/chat-outbox-rows.d.ts +29 -0
- package/dist/chat/chat-outbox-rows.js +223 -0
- package/dist/chat/chat-outbox-rows.js.map +1 -0
- package/dist/chat/statewire-approval.d.ts +1 -1
- package/dist/chat/statewire-client-tools.d.ts +1 -1
- package/dist/chat/super-grouping/SuperGroupingCard.cjs +3 -1
- package/dist/chat/super-grouping/SuperGroupingCard.cjs.map +1 -1
- package/dist/chat/super-grouping/SuperGroupingCard.d.ts +7 -1
- package/dist/chat/super-grouping/SuperGroupingCard.js +3 -1
- package/dist/chat/super-grouping/SuperGroupingCard.js.map +1 -1
- package/dist/chat/super-grouping/SuperGroupingTranscript.cjs +7 -2
- package/dist/chat/super-grouping/SuperGroupingTranscript.cjs.map +1 -1
- package/dist/chat/super-grouping/SuperGroupingTranscript.d.ts +2 -2
- package/dist/chat/super-grouping/SuperGroupingTranscript.js +7 -2
- package/dist/chat/super-grouping/SuperGroupingTranscript.js.map +1 -1
- package/dist/chat/super-grouping/activity-timeline.cjs +15 -8
- package/dist/chat/super-grouping/activity-timeline.cjs.map +1 -1
- package/dist/chat/super-grouping/activity-timeline.d.ts +18 -8
- package/dist/chat/super-grouping/activity-timeline.js +15 -8
- package/dist/chat/super-grouping/activity-timeline.js.map +1 -1
- package/dist/chat/use-statewire-approval-request.cjs +36 -0
- package/dist/chat/use-statewire-approval-request.cjs.map +1 -1
- package/dist/chat/use-statewire-approval-request.d.ts +49 -1
- package/dist/chat/use-statewire-approval-request.js +39 -3
- package/dist/chat/use-statewire-approval-request.js.map +1 -1
- package/dist/chat-ui/composer/tiptap-composer.cjs +102 -3
- package/dist/chat-ui/composer/tiptap-composer.cjs.map +1 -1
- package/dist/chat-ui/composer/tiptap-composer.d.ts +32 -1
- package/dist/chat-ui/composer/tiptap-composer.js +103 -4
- package/dist/chat-ui/composer/tiptap-composer.js.map +1 -1
- package/dist/chat-ui/header/conversation-history-panel.d.ts +1 -1
- package/dist/chat-ui/index.d.ts +1 -1
- package/dist/chat-ui/messages/message-components.cjs +15 -0
- package/dist/chat-ui/messages/message-components.cjs.map +1 -1
- package/dist/chat-ui/messages/message-components.js +15 -0
- package/dist/chat-ui/messages/message-components.js.map +1 -1
- package/dist/chat-ui/messages/runtime-message.d.ts +1 -1
- package/dist/chat-ui/messages/statewire-continue-run.d.ts +1 -1
- package/dist/chat-ui/messages/user-edit-composer.cjs +15 -2
- package/dist/chat-ui/messages/user-edit-composer.cjs.map +1 -1
- package/dist/chat-ui/messages/user-edit-composer.d.ts +4 -2
- package/dist/chat-ui/messages/user-edit-composer.js +15 -2
- package/dist/chat-ui/messages/user-edit-composer.js.map +1 -1
- package/dist/chat-ui/messages/wake-marker.d.ts +1 -1
- package/dist/chat-ui/rich-text/chat-text-schema.cjs +1 -0
- package/dist/chat-ui/rich-text/chat-text-schema.cjs.map +1 -1
- package/dist/chat-ui/rich-text/chat-text-schema.d.ts +3 -0
- package/dist/chat-ui/rich-text/chat-text-schema.js +1 -0
- package/dist/chat-ui/rich-text/chat-text-schema.js.map +1 -1
- package/dist/chat-ui/statewire.cjs +1 -0
- package/dist/chat-ui/statewire.cjs.map +1 -1
- package/dist/chat-ui/statewire.d.ts +2 -2
- package/dist/chat-ui/statewire.js +2 -1
- package/dist/chat-ui/thread/statewire-history-edge.d.ts +1 -1
- package/dist/composer/AttachmentContext.cjs +8 -4
- package/dist/composer/AttachmentContext.cjs.map +1 -1
- package/dist/composer/AttachmentContext.d.ts +7 -0
- package/dist/composer/AttachmentContext.js +8 -4
- package/dist/composer/AttachmentContext.js.map +1 -1
- package/dist/composer/build-composed-message.cjs +34 -0
- package/dist/composer/build-composed-message.cjs.map +1 -1
- package/dist/composer/build-composed-message.d.ts +20 -0
- package/dist/composer/build-composed-message.js +35 -1
- package/dist/composer/build-composed-message.js.map +1 -1
- package/dist/composer/composer-handoff.cjs +39 -2
- package/dist/composer/composer-handoff.cjs.map +1 -1
- package/dist/composer/composer-handoff.d.ts +28 -3
- package/dist/composer/composer-handoff.js +39 -2
- package/dist/composer/composer-handoff.js.map +1 -1
- package/dist/composer/useAttachFiles.cjs +15 -2
- package/dist/composer/useAttachFiles.cjs.map +1 -1
- package/dist/composer/useAttachFiles.d.ts +11 -0
- package/dist/composer/useAttachFiles.js +15 -2
- package/dist/composer/useAttachFiles.js.map +1 -1
- package/dist/composer/useSendMessage.cjs.map +1 -1
- package/dist/composer/useSendMessage.d.ts +4 -3
- package/dist/composer/useSendMessage.js.map +1 -1
- package/dist/diagnostics/athena-diagnostics.cjs.map +1 -1
- package/dist/diagnostics/athena-diagnostics.d.ts +3 -1
- package/dist/diagnostics/athena-diagnostics.js.map +1 -1
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -6
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/offline/chat-outbox.cjs +57 -0
- package/dist/offline/chat-outbox.cjs.map +1 -0
- package/dist/offline/chat-outbox.d.ts +80 -0
- package/dist/offline/chat-outbox.js +57 -0
- package/dist/offline/chat-outbox.js.map +1 -0
- package/dist/offline/offline-history.d.ts +1 -1
- package/dist/provider/AthenaProvider.cjs +162 -8
- package/dist/provider/AthenaProvider.cjs.map +1 -1
- package/dist/provider/AthenaProvider.d.ts +15 -1
- package/dist/provider/AthenaProvider.js +163 -9
- package/dist/provider/AthenaProvider.js.map +1 -1
- package/dist/provider/statewire-window-context.d.ts +1 -1
- package/dist/react/package.json.cjs +1 -1
- package/dist/react/package.json.js +1 -1
- package/dist/references/src/anchors/file-line-range.d.ts +58 -0
- package/dist/references/src/anchors/format.d.ts +21 -0
- package/dist/references/src/anchors/message-anchors.d.ts +71 -0
- package/dist/references/src/anchors/parse.d.ts +8 -0
- package/dist/references/src/anchors/registry-contract.d.ts +24 -0
- package/dist/references/src/anchors/registry.d.ts +19 -0
- package/dist/references/src/anchors/schemas.d.ts +194 -0
- package/dist/references/src/anchors/serialize.d.ts +8 -0
- package/dist/references/src/anchors/time.d.ts +78 -0
- package/dist/references/src/anchors/types.d.ts +474 -0
- package/dist/references/src/asset-bounds.d.ts +27 -0
- package/dist/references/src/asset-links.d.ts +23 -0
- package/dist/references/src/asset-reference.d.ts +16 -0
- package/dist/references/src/formats/format-catalog.d.ts +79 -0
- package/dist/references/src/formats/markdown/parse-reference-markdown.d.ts +28 -0
- package/dist/references/src/formats/markdown/reference-display-name.d.ts +6 -0
- package/dist/references/src/formats/object/asset-object.d.ts +9 -0
- package/dist/references/src/formats/object/callable-object.d.ts +6 -0
- package/dist/references/src/formats/object/decode-reference-object-payload.d.ts +3 -0
- package/dist/references/src/formats/object/external-url-object.d.ts +9 -0
- package/dist/references/src/formats/object/group-object.d.ts +9 -0
- package/dist/references/src/formats/object/navigation-object.d.ts +9 -0
- package/dist/references/src/formats/object/parse-reference-object.d.ts +11 -0
- package/dist/references/src/formats/object/person-object.d.ts +9 -0
- package/dist/references/src/formats/uri/asset-mention-uri.d.ts +9 -0
- package/dist/references/src/formats/uri/asset-spaces-url.d.ts +9 -0
- package/dist/references/src/formats/uri/callable-mention-uris.d.ts +9 -0
- package/dist/references/src/formats/uri/detect-uri-wire.d.ts +9 -0
- package/dist/references/src/formats/uri/group-mention-uri.d.ts +12 -0
- package/dist/references/src/formats/uri/navigation-spaces-url.d.ts +14 -0
- package/dist/references/src/formats/uri/parse-reference-uri.d.ts +20 -0
- package/dist/references/src/formats/uri/person-mention-uri.d.ts +9 -0
- package/dist/references/src/formats/uri/template-placeholder.d.ts +12 -0
- package/dist/references/src/index.d.ts +47 -0
- package/dist/references/src/legacy/index.d.ts +14 -0
- package/dist/references/src/legacy/pre-reference-asset-url.d.ts +57 -0
- package/dist/references/src/legacy/pre-reference-citation-bridge.d.ts +22 -0
- package/dist/references/src/legacy/pre-reference-citation.d.ts +138 -0
- package/dist/references/src/legacy/pre-reference-external-url.d.ts +31 -0
- package/dist/references/src/legacy/pre-reference-format.d.ts +8 -0
- package/dist/references/src/legacy/pre-reference-mention.d.ts +27 -0
- package/dist/references/src/legacy/pre-reference-object.d.ts +8 -0
- package/dist/references/src/legacy/pre-reference-uri.d.ts +12 -0
- package/dist/references/src/legacy.d.ts +2 -0
- package/dist/references/src/mention-href-patterns.d.ts +19 -0
- package/dist/references/src/mention-node/index.d.ts +5 -0
- package/dist/references/src/mention-node/mention-node.d.ts +31 -0
- package/dist/references/src/mention-node/resolve-node-attrs.d.ts +27 -0
- package/dist/references/src/parse-reference.d.ts +23 -0
- package/dist/references/src/schemas.d.ts +463 -0
- package/dist/references/src/serialize-reference.d.ts +50 -0
- package/dist/references/src/sheet-name.d.ts +10 -0
- package/dist/references/src/tool-option-schemas.d.ts +597 -0
- package/dist/references/src/types.d.ts +125 -0
- package/dist/references/src/version-ref.d.ts +30 -0
- package/dist/runtime/statewire-lifecycle.d.ts +1 -1
- package/dist/runtime/statewire-model-lane.d.ts +1 -1
- package/dist/runtime/statewire-server-lane-context.d.ts +1 -1
- package/dist/runtime/statewire-session-key.cjs +7 -0
- package/dist/runtime/statewire-session-key.cjs.map +1 -1
- package/dist/runtime/statewire-session-key.d.ts +16 -0
- package/dist/runtime/statewire-session-key.js +8 -1
- package/dist/runtime/statewire-session-key.js.map +1 -1
- package/dist/runtime/statewire-session-lane.cjs +48 -0
- package/dist/runtime/statewire-session-lane.cjs.map +1 -0
- package/dist/runtime/statewire-session-lane.d.ts +29 -0
- package/dist/runtime/statewire-session-lane.js +48 -0
- package/dist/runtime/statewire-session-lane.js.map +1 -0
- package/dist/runtime/statewire-thread-config-lane.d.ts +1 -1
- package/dist/runtime/useAthenaStatewireRuntime.cjs +16 -5
- package/dist/runtime/useAthenaStatewireRuntime.cjs.map +1 -1
- package/dist/runtime/useAthenaStatewireRuntime.d.ts +15 -1
- package/dist/runtime/useAthenaStatewireRuntime.js +17 -6
- package/dist/runtime/useAthenaStatewireRuntime.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/threads/api.d.ts +1 -1
- package/dist/threads/conversation-list-fetcher.d.ts +1 -1
- package/dist/threads/index-triggered-refresh.cjs +164 -0
- package/dist/threads/index-triggered-refresh.cjs.map +1 -0
- package/dist/threads/index-triggered-refresh.d.ts +70 -0
- package/dist/threads/index-triggered-refresh.js +164 -0
- package/dist/threads/index-triggered-refresh.js.map +1 -0
- package/dist/threads/offline-session-list.d.ts +1 -1
- package/dist/threads/pull-request-display.d.ts +1 -1
- package/dist/threads/session-list-model.d.ts +1 -1
- package/dist/threads/session-list-tab-share.cjs +150 -0
- package/dist/threads/session-list-tab-share.cjs.map +1 -0
- package/dist/threads/session-list-tab-share.d.ts +73 -0
- package/dist/threads/session-list-tab-share.js +150 -0
- package/dist/threads/session-list-tab-share.js.map +1 -0
- package/dist/threads/session-row-parts.d.ts +1 -1
- package/dist/threads/sessions-query.d.ts +1 -1
- package/dist/threads/statewire-thread-list.cjs +42 -16
- package/dist/threads/statewire-thread-list.cjs.map +1 -1
- package/dist/threads/statewire-thread-list.d.ts +11 -2
- package/dist/threads/statewire-thread-list.js +43 -17
- package/dist/threads/statewire-thread-list.js.map +1 -1
- package/dist/threads/thread-prefetcher.d.ts +1 -1
- package/dist/threads/use-athena-session-attention.d.ts +1 -1
- package/dist/threads/use-athena-sessions.cjs +32 -22
- package/dist/threads/use-athena-sessions.cjs.map +1 -1
- package/dist/threads/use-athena-sessions.js +33 -23
- package/dist/threads/use-athena-sessions.js.map +1 -1
- package/dist/threads/use-rest-conversation-history.d.ts +1 -1
- package/dist/threads/use-statewire-conversation-history.d.ts +5 -5
- package/dist/tiptap-markdown-table/src/markdown-table-serializer.d.ts +56 -0
- package/dist/tools/NestedPtcMessages.cjs +14 -9
- package/dist/tools/NestedPtcMessages.cjs.map +1 -1
- package/dist/tools/NestedPtcMessages.d.ts +9 -0
- package/dist/tools/NestedPtcMessages.js +6 -1
- package/dist/tools/NestedPtcMessages.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/primitives.d.ts +1 -1
- package/dist/tools/subagent-task-tool-ui.cjs +494 -0
- package/dist/tools/subagent-task-tool-ui.cjs.map +1 -0
- package/dist/tools/subagent-task-tool-ui.d.ts +109 -0
- package/dist/tools/subagent-task-tool-ui.js +494 -0
- package/dist/tools/subagent-task-tool-ui.js.map +1 -0
- package/dist/tools/tool-fallback.d.ts +1 -1
- package/dist/tools/tool-icons.d.ts +1 -1
- package/dist/tools/tool-summary.d.ts +1 -1
- package/dist/tools/tool-uis.cjs +4 -0
- package/dist/tools/tool-uis.cjs.map +1 -1
- package/dist/tools/tool-uis.js +4 -0
- package/dist/tools/tool-uis.js.map +1 -1
- package/dist/voice/chat.cjs +6 -0
- package/dist/voice/chat.cjs.map +1 -0
- package/dist/voice/chat.d.ts +2 -0
- package/dist/voice/chat.js +6 -0
- package/dist/voice/chat.js.map +1 -0
- package/dist/voice/livekit-join.cjs +119 -0
- package/dist/voice/livekit-join.cjs.map +1 -0
- package/dist/voice/livekit-join.d.ts +8 -0
- package/dist/voice/livekit-join.js +119 -0
- package/dist/voice/livekit-join.js.map +1 -0
- package/dist/voice/livekit.cjs +32 -0
- package/dist/voice/livekit.cjs.map +1 -0
- package/dist/voice/livekit.d.ts +80 -0
- package/dist/voice/livekit.js +32 -0
- package/dist/voice/livekit.js.map +1 -0
- package/package.json +20 -10
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User turns this client took back before the run answered them.
|
|
3
|
+
*
|
|
4
|
+
* A user stop before any assistant output retracts the turn server-side — the
|
|
5
|
+
* host drops it from the wire and hands its text back through the stop verdict
|
|
6
|
+
* (see `run/stop` → `retracted`). That verdict is a network round trip away;
|
|
7
|
+
* the client that asked for it already knows the outcome, so it withdraws the
|
|
8
|
+
* turn locally the moment it stops: the converter omits the message (and the
|
|
9
|
+
* "thinking" placeholder it would otherwise earn) until the wire agrees, and
|
|
10
|
+
* the host restores the text to its composer at once. The seam is
|
|
11
|
+
* subscribable so the thread re-converts when a withdrawal opens or closes,
|
|
12
|
+
* the same way a fetched tool output re-runs the converter.
|
|
13
|
+
*/
|
|
14
|
+
export interface DeepAgentWithdrawnTurns {
|
|
15
|
+
/** Whether the transcript should omit the user message `messageId`. */
|
|
16
|
+
isWithdrawn(messageId: string): boolean;
|
|
17
|
+
subscribe(listener: () => void): () => void;
|
|
18
|
+
}
|
|
19
|
+
/** The user turn a stop right now would take back, read off a raw statewire state. */
|
|
20
|
+
export interface DeepAgentWithdrawableTurn {
|
|
21
|
+
messageId: string;
|
|
22
|
+
text: string;
|
|
23
|
+
/** The composer markdown the turn was sent from (see `composer-markdown.ts`), when it carries one. */
|
|
24
|
+
composerMarkdown: string | null;
|
|
25
|
+
runId: string;
|
|
26
|
+
epoch: number | undefined;
|
|
27
|
+
/** The turn is the transcript's only visible message: taking it back empties the chat. */
|
|
28
|
+
first: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The turn an immediate user stop retracts, or `null` when the stop would be
|
|
32
|
+
* an ordinary one. Mirrors the host's own predicate from the client's side:
|
|
33
|
+
* the run is live and the transcript's last visible message is the user's —
|
|
34
|
+
* nothing has answered it yet. A run whose latest visible message is the
|
|
35
|
+
* assistant's (any output, a notice) keeps its turn; so does a run the wire
|
|
36
|
+
* does not show as running.
|
|
37
|
+
*/
|
|
38
|
+
export declare function readDeepAgentWithdrawableTurn(state: unknown): DeepAgentWithdrawableTurn | null;
|
|
39
|
+
/** A send the transport failed, as the thread retains it in its failed lane. */
|
|
40
|
+
export interface DeepAgentFailedSend {
|
|
41
|
+
/** The failed message's id — the lane keeps entries by identity. */
|
|
42
|
+
id: string;
|
|
43
|
+
/** The message's text parts joined the way the library hands them back to the composer. */
|
|
44
|
+
text: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The sends the thread retains in its failed lane (`runs.failed`, read
|
|
48
|
+
* structurally off the thread extras). A withdrawn turn never lands there —
|
|
49
|
+
* its send was accepted — so the lane tells a failed send's text apart from a
|
|
50
|
+
* stop verdict's echo of the same words. Absent extras or lane read as empty.
|
|
51
|
+
*/
|
|
52
|
+
export declare function readDeepAgentFailedSends(extras: unknown): DeepAgentFailedSend[];
|
|
53
|
+
/**
|
|
54
|
+
* Whether `text`, just handed to the composer, is a failed send's rather than
|
|
55
|
+
* a stop verdict's echo: some failed-lane entry carries that text and is new
|
|
56
|
+
* since `seen` last recorded the lane. Every entry now in the lane is recorded
|
|
57
|
+
* as seen — a failure the composer has already been handed back (or that
|
|
58
|
+
* predates a withdrawal, see the caller) cannot be the one returning this
|
|
59
|
+
* text, however many times the same words come back later.
|
|
60
|
+
*/
|
|
61
|
+
export declare function claimDeepAgentFailedSendText({ extras, text, seen, }: {
|
|
62
|
+
extras: unknown;
|
|
63
|
+
text: string;
|
|
64
|
+
seen: Set<string>;
|
|
65
|
+
}): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The wire's answer to a withdrawal: `retracted` once the turn is gone from
|
|
68
|
+
* the wire altogether — dropped from the transcript and held in no lane —
|
|
69
|
+
* with the run at rest (or the host's retraction named); `kept` once the wire
|
|
70
|
+
* shows it stayed — the run answered it, or rested with it durably in place
|
|
71
|
+
* and no retraction named, so the stop was an ordinary one — and `pending`
|
|
72
|
+
* while neither has happened (or before any snapshot).
|
|
73
|
+
*
|
|
74
|
+
* The stop lifecycle passes through snapshots that look like neither: the
|
|
75
|
+
* run's status leaves `running` (`stopping`, or the mount's `ready` before the
|
|
76
|
+
* host admits the dispatch) while the turn is still materialized from the
|
|
77
|
+
* `dispatching` lane, and the host hands a retracted turn back through the
|
|
78
|
+
* queue lane for the stopping client to pop. A turn the host still holds in a
|
|
79
|
+
* lane is not durably kept, and a turn missing from a run that is still live
|
|
80
|
+
* is not durably gone — both stay `pending`. A live run that is not the one
|
|
81
|
+
* the turn was withdrawn from (`withdrawnFrom`: a newer send's epoch) says
|
|
82
|
+
* nothing about it, so a turn missing under it is gone. `retractionNamed` is
|
|
83
|
+
* the host's own verdict for this run (`retractedRun`), which lands ahead of
|
|
84
|
+
* the drop.
|
|
85
|
+
*/
|
|
86
|
+
export type DeepAgentWithdrawnTurnVerdict = 'pending' | 'retracted' | 'kept';
|
|
87
|
+
/** The run a turn was withdrawn from, as the withdrawal recorded it. */
|
|
88
|
+
export interface DeepAgentWithdrawnFromRun {
|
|
89
|
+
runId: string;
|
|
90
|
+
epoch: number | undefined;
|
|
91
|
+
}
|
|
92
|
+
export declare function readDeepAgentWithdrawnTurnVerdict({ state, messageId, retractionNamed, withdrawnFrom, }: {
|
|
93
|
+
state: unknown;
|
|
94
|
+
messageId: string;
|
|
95
|
+
retractionNamed: boolean;
|
|
96
|
+
withdrawnFrom?: DeepAgentWithdrawnFromRun;
|
|
97
|
+
}): DeepAgentWithdrawnTurnVerdict;
|
package/dist/chat/AthenaChat.cjs
CHANGED
|
@@ -14,9 +14,12 @@ const wakeMarker = require("../chat-ui/messages/wake-marker.cjs");
|
|
|
14
14
|
const toolFallback = require("../tools/tool-fallback.cjs");
|
|
15
15
|
const appendDocumentToolUi = require("../tools/append-document-tool-ui.cjs");
|
|
16
16
|
const readAssetToolUi = require("../tools/read-asset-tool-ui.cjs");
|
|
17
|
+
const inlineTools = require("../tools/inline-tools.cjs");
|
|
18
|
+
const subagentTaskToolUi = require("../tools/subagent-task-tool-ui.cjs");
|
|
17
19
|
const toolUis = require("../tools/tool-uis.cjs");
|
|
18
20
|
const SuperGroupingCard = require("./super-grouping/SuperGroupingCard.cjs");
|
|
19
21
|
const SuperGroupingTranscript = require("./super-grouping/SuperGroupingTranscript.cjs");
|
|
22
|
+
const useStatewireApprovalRequest = require("./use-statewire-approval-request.cjs");
|
|
20
23
|
const NestedPtcMessages = require("../tools/NestedPtcMessages.cjs");
|
|
21
24
|
const tooltipIconButton = require("./tooltip-icon-button.cjs");
|
|
22
25
|
const button = require("../ui/button.cjs");
|
|
@@ -44,6 +47,7 @@ const athenaChatWelcome = require("./athena-chat-welcome.cjs");
|
|
|
44
47
|
const athenaComposerControls = require("./athena-composer-controls.cjs");
|
|
45
48
|
const composerKeyboardHint = require("./composer-keyboard-hint.cjs");
|
|
46
49
|
const usePrefersReducedMotion = require("../lib/use-prefers-reduced-motion.cjs");
|
|
50
|
+
const statewireSessionLane = require("../runtime/statewire-session-lane.cjs");
|
|
47
51
|
const AthenaAuthContext = require("../auth/AthenaAuthContext.cjs");
|
|
48
52
|
const react = require("@assistant-ui/react");
|
|
49
53
|
const lucideReact = require("lucide-react");
|
|
@@ -66,9 +70,13 @@ const index = require("../toolkits/index.cjs");
|
|
|
66
70
|
const runActivity = require("./run-activity.cjs");
|
|
67
71
|
const messageTime = require("./message-time.cjs");
|
|
68
72
|
const threadScrollToBottom = require("./thread-scroll-to-bottom.cjs");
|
|
73
|
+
const toolNames = require("../agent-runtime/src/tool-names.cjs");
|
|
74
|
+
const subagents = require("../agent-runtime/src/subagents.cjs");
|
|
69
75
|
const githubWakeEvent = require("../agent-runtime/src/github-wake-event.cjs");
|
|
70
76
|
const subscriptionWakeEvent = require("../agent-runtime/src/subscription-wake-event.cjs");
|
|
71
77
|
const threadStatus = require("../agent-runtime/src/thread-status.cjs");
|
|
78
|
+
const useDeepAgentChatOutbox = require("../agent-runtime/src/use-deep-agent-chat-outbox.cjs");
|
|
79
|
+
const chatOutbox = require("../agent-runtime/src/chat-outbox.cjs");
|
|
72
80
|
const cnfast = require("cnfast");
|
|
73
81
|
const DEFAULT_COMPOSER_PLACEHOLDER = "Type @ to tag an asset";
|
|
74
82
|
function QuotePostMessageBridge() {
|
|
@@ -251,7 +259,7 @@ const AthenaChat = ({
|
|
|
251
259
|
}),
|
|
252
260
|
[AssistantMessageComponent, UserMessageComponent]
|
|
253
261
|
);
|
|
254
|
-
return /* @__PURE__ */ jsxRuntime.jsx(AthenaChatDefaultComponentsContext.Provider, { value: defaultComponentsContextValue, children: /* @__PURE__ */ jsxRuntime.jsx(AthenaChatErrorBoundary.AthenaChatErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsx(toolFallback.ToolFallbackAppearanceProvider, { appearance: "thread", children: /* @__PURE__ */ jsxRuntime.jsx(apiClient.MentionAuthCtx.Provider, { value: mentionAuth, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
262
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AthenaChatDefaultComponentsContext.Provider, { value: defaultComponentsContextValue, children: /* @__PURE__ */ jsxRuntime.jsx(AthenaChatErrorBoundary.AthenaChatErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsx(useStatewireApprovalRequest.StatewireApprovalWaitProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(toolFallback.ToolFallbackAppearanceProvider, { appearance: "thread", children: /* @__PURE__ */ jsxRuntime.jsx(apiClient.MentionAuthCtx.Provider, { value: mentionAuth, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
255
263
|
chatThreadShell.ChatThreadShell,
|
|
256
264
|
{
|
|
257
265
|
overlay: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -299,7 +307,7 @@ const AthenaChat = ({
|
|
|
299
307
|
] }) })
|
|
300
308
|
] })
|
|
301
309
|
}
|
|
302
|
-
) }) }) }, statewireThreadId ?? void 0) });
|
|
310
|
+
) }) }) }) }, statewireThreadId ?? void 0) });
|
|
303
311
|
};
|
|
304
312
|
const THREAD_VIEWPORT_ATTR = "data-aui-thread-viewport";
|
|
305
313
|
const useScrollToTop = () => {
|
|
@@ -355,11 +363,22 @@ const AthenaChatComposer = ({ tools, slots, dictation, welcomeSuggestionCount })
|
|
|
355
363
|
const aui = react.useAui();
|
|
356
364
|
const threadId = threadIdContext.useAthenaStatewireThreadId();
|
|
357
365
|
const { appUrl } = AthenaContext.useAthenaConfig();
|
|
358
|
-
const { attachments, clearAttachments, isUploading } = AttachmentContext.useAttachments();
|
|
366
|
+
const { attachments, clearAttachments, isUploading, notice: attachNotice, setNotice: setAttachNotice } = AttachmentContext.useAttachments();
|
|
359
367
|
const { quote, clearQuote } = QuoteContext.useQuote();
|
|
360
368
|
const { attachFiles } = useAttachFiles.useAttachFiles();
|
|
369
|
+
const sessionLane = statewireSessionLane.useStatewireSessionLane();
|
|
361
370
|
const composerRef = react$1.useRef(null);
|
|
362
371
|
const [hasText, setHasText] = react$1.useState(false);
|
|
372
|
+
const [composerNotice, setComposerNotice] = react$1.useState(null);
|
|
373
|
+
const onDraftStateChange = react$1.useCallback(
|
|
374
|
+
(next) => {
|
|
375
|
+
setHasText(next);
|
|
376
|
+
setComposerNotice(null);
|
|
377
|
+
setAttachNotice(null);
|
|
378
|
+
},
|
|
379
|
+
[setAttachNotice]
|
|
380
|
+
);
|
|
381
|
+
const notice = composerNotice ?? attachNotice;
|
|
363
382
|
const isRunning = react.useAuiState((state) => {
|
|
364
383
|
var _a;
|
|
365
384
|
return ((_a = state.optional.thread) == null ? void 0 : _a.isRunning) ?? false;
|
|
@@ -454,6 +473,31 @@ const AthenaChatComposer = ({ tools, slots, dictation, welcomeSuggestionCount })
|
|
|
454
473
|
(text, draftMarkdown) => attachmentsRef.current.length > 0 || quoteRef.current !== null ? sendComposed({ text, draftMarkdown }) : false,
|
|
455
474
|
[sendComposed]
|
|
456
475
|
);
|
|
476
|
+
const hasPendingExtras = react$1.useCallback(
|
|
477
|
+
() => attachmentsRef.current.length > 0 || quoteRef.current !== null,
|
|
478
|
+
[]
|
|
479
|
+
);
|
|
480
|
+
const holdPendingExtras = react$1.useCallback(
|
|
481
|
+
({
|
|
482
|
+
outbox,
|
|
483
|
+
send,
|
|
484
|
+
attachments: attachments2
|
|
485
|
+
}) => {
|
|
486
|
+
const held = buildComposedMessage.holdComposedSend({
|
|
487
|
+
outbox,
|
|
488
|
+
attachments: attachmentsRef.current,
|
|
489
|
+
carried: attachments2,
|
|
490
|
+
quote: quoteRef.current,
|
|
491
|
+
send,
|
|
492
|
+
appUrl
|
|
493
|
+
});
|
|
494
|
+
if (!held) return false;
|
|
495
|
+
clearAttachments();
|
|
496
|
+
clearQuote();
|
|
497
|
+
return true;
|
|
498
|
+
},
|
|
499
|
+
[appUrl, clearAttachments, clearQuote]
|
|
500
|
+
);
|
|
457
501
|
const fileIntake = react$1.useMemo(
|
|
458
502
|
() => ({
|
|
459
503
|
onPaste: (files) => {
|
|
@@ -470,6 +514,7 @@ const AthenaChatComposer = ({ tools, slots, dictation, welcomeSuggestionCount })
|
|
|
470
514
|
const { text: spoken, error } = await dictationCtl.stop();
|
|
471
515
|
appendSpokenText(spoken);
|
|
472
516
|
if (error) return;
|
|
517
|
+
if (sessionLane == null ? void 0 : sessionLane.isPending()) await sessionLane.whenKnown();
|
|
473
518
|
const send = ((_b = (_a = composerRef.current) == null ? void 0 : _a.captureSend) == null ? void 0 : _b.call(_a)) ?? {
|
|
474
519
|
text: aui.composer.getState().text ?? "",
|
|
475
520
|
draftMarkdown: aui.composer.getState().text ?? ""
|
|
@@ -497,7 +542,7 @@ const AthenaChatComposer = ({ tools, slots, dictation, welcomeSuggestionCount })
|
|
|
497
542
|
composerMessage.prepareComposerSend({ threadId, ...send });
|
|
498
543
|
aui.composer.setText(send.text);
|
|
499
544
|
aui.composer.send({ steer: false });
|
|
500
|
-
}, [appendSpokenText, aui, dictationCtl, isRunning, sendComposed, slots, threadId]);
|
|
545
|
+
}, [appendSpokenText, aui, dictationCtl, isRunning, sendComposed, sessionLane, slots, threadId]);
|
|
501
546
|
return /* @__PURE__ */ jsxRuntime.jsx(ComposerDropZone.ComposerDropZone, { onDragActiveChange: setDragActive, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
502
547
|
"div",
|
|
503
548
|
{
|
|
@@ -524,13 +569,17 @@ const AthenaChatComposer = ({ tools, slots, dictation, welcomeSuggestionCount })
|
|
|
524
569
|
placeholder: (runLive ? slots == null ? void 0 : slots.runningPlaceholder : void 0) ?? (slots == null ? void 0 : slots.placeholder) ?? DEFAULT_COMPOSER_PLACEHOLDER,
|
|
525
570
|
tools,
|
|
526
571
|
rootCategories,
|
|
527
|
-
onDraftStateChange
|
|
572
|
+
onDraftStateChange,
|
|
528
573
|
waitForHostUploads,
|
|
529
574
|
interceptSubmit,
|
|
575
|
+
hasPendingExtras,
|
|
576
|
+
holdPendingExtras,
|
|
577
|
+
onAttachmentError: setComposerNotice,
|
|
530
578
|
fileIntake,
|
|
531
579
|
onSubmitted: keyboardHint.onSubmitted
|
|
532
580
|
}
|
|
533
581
|
) }),
|
|
582
|
+
notice && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "aui-composer-notice px-1.5 pb-1 text-destructive text-xs", role: "alert", children: notice }),
|
|
534
583
|
recording && /* @__PURE__ */ jsxRuntime.jsx(
|
|
535
584
|
DictationStrip.DictationStrip,
|
|
536
585
|
{
|
|
@@ -842,6 +891,7 @@ const AthenaReasoningPart = ({
|
|
|
842
891
|
);
|
|
843
892
|
};
|
|
844
893
|
const noToolGrouping = () => null;
|
|
894
|
+
const isInlineToolOrSubagent = (toolName) => toolName === toolNames.TASK_TOOL_NAME || inlineTools.isSdkInlineTool(toolName);
|
|
845
895
|
const AthenaAssistantMessage = ({
|
|
846
896
|
toolUIs,
|
|
847
897
|
AvatarComponent,
|
|
@@ -859,6 +909,8 @@ const AthenaAssistantMessage = ({
|
|
|
859
909
|
}
|
|
860
910
|
return wrappedToolUIs;
|
|
861
911
|
}, [toolUIs]);
|
|
912
|
+
const isInlineTool = toolUIs[toolNames.TASK_TOOL_NAME] === subagentTaskToolUi.SubagentTaskToolUI ? isInlineToolOrSubagent : inlineTools.isSdkInlineTool;
|
|
913
|
+
const waitingToolCallIds = subagents.useTurnToolCallsAwaitingApproval(useStatewireApprovalRequest.useApprovalWaitInScope().toolCallIds);
|
|
862
914
|
const nestedPtcComponents = react$1.useMemo(
|
|
863
915
|
() => ({
|
|
864
916
|
Text: TextComponent,
|
|
@@ -896,6 +948,8 @@ const AthenaAssistantMessage = ({
|
|
|
896
948
|
toolUIs: toolUIsWithNestedMessages,
|
|
897
949
|
TextComponent,
|
|
898
950
|
ReasoningComponent: effectiveReasoningComponent,
|
|
951
|
+
isInlineTool,
|
|
952
|
+
waitingToolCallIds,
|
|
899
953
|
renderRunningMeta: renderGroupedRunningMeta
|
|
900
954
|
}
|
|
901
955
|
),
|
|
@@ -953,7 +1007,20 @@ const EditMessageButton = () => {
|
|
|
953
1007
|
const allowEdit = react.useAuiState((s) => s.thread.capabilities.edit);
|
|
954
1008
|
const isRunning = useAthenaRunLive.useAthenaRunLive();
|
|
955
1009
|
const readOnly = messageActionsConfig.useMessageActionsReadOnly();
|
|
1010
|
+
const reachable = useDeepAgentChatOutbox.useChatOutboxReachable(useDeepAgentChatOutbox.useDeepAgentChatOutboxContext());
|
|
956
1011
|
if (!allowEdit || isRunning || readOnly) return null;
|
|
1012
|
+
if (!reachable) {
|
|
1013
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1014
|
+
tooltipIconButton.TooltipIconButton,
|
|
1015
|
+
{
|
|
1016
|
+
tooltip: chatOutbox.CHAT_EDIT_UNREACHABLE_LABEL,
|
|
1017
|
+
"aria-disabled": true,
|
|
1018
|
+
"data-testid": "chat-message-edit-unreachable",
|
|
1019
|
+
className: "cursor-not-allowed opacity-50",
|
|
1020
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PencilIcon, {})
|
|
1021
|
+
}
|
|
1022
|
+
);
|
|
1023
|
+
}
|
|
957
1024
|
return /* @__PURE__ */ jsxRuntime.jsx(react.ActionBarPrimitive.Edit, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(tooltipIconButton.TooltipIconButton, { tooltip: "Edit", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PencilIcon, {}) }) });
|
|
958
1025
|
};
|
|
959
1026
|
const AthenaUserActionBar = () => {
|