@athenaintel/react 0.57.2 → 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 +759 -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 +290 -97
- package/dist/chat/AthenaChat.cjs.map +1 -1
- package/dist/chat/AthenaChat.d.ts +80 -4
- package/dist/chat/AthenaChat.js +290 -97
- 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 +56 -19
- package/dist/provider/AthenaProvider.cjs.map +1 -1
- package/dist/provider/AthenaProvider.d.ts +24 -8
- package/dist/provider/AthenaProvider.js +57 -20
- 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 +3 -1
- package/dist/runtime/statewire-run-config.cjs.map +1 -1
- package/dist/runtime/statewire-run-config.d.ts +7 -0
- package/dist/runtime/statewire-run-config.js +3 -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 +6 -6
- package/dist/threads/SessionList.cjs.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/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/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
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const lucideReact = require("lucide-react");
|
|
5
|
+
const require$$0 = require("react");
|
|
6
|
+
const assetPanelStore = require("../assets/asset-panel-store.cjs");
|
|
7
|
+
const primitives = require("./primitives.cjs");
|
|
8
|
+
const studioScreenshotToolUis = require("./studio-screenshot-tool-uis.cjs");
|
|
9
|
+
const toolFallback = require("./tool-fallback.cjs");
|
|
10
|
+
const ptcSubcalls = require("../agent-runtime/src/ptc-subcalls.cjs");
|
|
11
|
+
const toolResult = require("../agent-runtime/src/tool-result.cjs");
|
|
12
|
+
const toolMetadata = require("../agent-runtime/src/tool-metadata.cjs");
|
|
13
|
+
const cnfast = require("cnfast");
|
|
14
|
+
const TOOL_STATUS = {
|
|
15
|
+
running: "running",
|
|
16
|
+
awaiting: "requires-action",
|
|
17
|
+
complete: "complete",
|
|
18
|
+
failed: "incomplete"
|
|
19
|
+
};
|
|
20
|
+
function callState(call) {
|
|
21
|
+
const classification = toolResult.classifyToolResult({
|
|
22
|
+
status: call.status,
|
|
23
|
+
result: call.result,
|
|
24
|
+
isError: call.isError
|
|
25
|
+
});
|
|
26
|
+
switch (classification.state) {
|
|
27
|
+
case "running":
|
|
28
|
+
return { kind: "running" };
|
|
29
|
+
case "requires-action":
|
|
30
|
+
return { kind: "awaiting" };
|
|
31
|
+
case "complete":
|
|
32
|
+
return { kind: "complete" };
|
|
33
|
+
case "error":
|
|
34
|
+
return { kind: "failed", error: classification.failure.message };
|
|
35
|
+
case "rejected":
|
|
36
|
+
case "paused":
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function browserCall(props) {
|
|
41
|
+
return {
|
|
42
|
+
toolName: props.toolName,
|
|
43
|
+
args: toolResult.isRecord(props.args) ? props.args : {},
|
|
44
|
+
result: props.result,
|
|
45
|
+
status: props.status,
|
|
46
|
+
isError: props.isError
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function withoutEllipsis(text) {
|
|
50
|
+
return text.replace(/(\.{3}|…)\s*$/u, "");
|
|
51
|
+
}
|
|
52
|
+
function cardLine(state, words, toolName) {
|
|
53
|
+
switch (state.kind) {
|
|
54
|
+
case "running":
|
|
55
|
+
return words.running;
|
|
56
|
+
case "complete":
|
|
57
|
+
return words.done;
|
|
58
|
+
case "awaiting":
|
|
59
|
+
return {
|
|
60
|
+
title: `Waiting for confirmation of ${toolMetadata.getToolDisplayMeta(toolName).displayName}`,
|
|
61
|
+
subtitle: words.running.subtitle
|
|
62
|
+
};
|
|
63
|
+
case "failed":
|
|
64
|
+
return { title: withoutEllipsis(words.running.title), subtitle: words.running.subtitle };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function failureText(state) {
|
|
68
|
+
return state.kind === "failed" ? state.error : void 0;
|
|
69
|
+
}
|
|
70
|
+
function browserToolUI(Card, icon, displayName) {
|
|
71
|
+
const Impl = (props) => {
|
|
72
|
+
const call = browserCall(props);
|
|
73
|
+
const state = callState(call);
|
|
74
|
+
if (!state) return /* @__PURE__ */ jsxRuntime.jsx(toolFallback.ToolFallback, { ...props, icon });
|
|
75
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Card, { call, state });
|
|
76
|
+
};
|
|
77
|
+
const ToolUI = require$$0.memo(Impl);
|
|
78
|
+
ToolUI.displayName = displayName;
|
|
79
|
+
return ToolUI;
|
|
80
|
+
}
|
|
81
|
+
function stringArg(value) {
|
|
82
|
+
return typeof value === "string" ? value : void 0;
|
|
83
|
+
}
|
|
84
|
+
function scalarArg(value) {
|
|
85
|
+
if (typeof value === "string") return value;
|
|
86
|
+
if (typeof value === "number" && Number.isFinite(value)) return String(value);
|
|
87
|
+
return void 0;
|
|
88
|
+
}
|
|
89
|
+
function httpUrl(value) {
|
|
90
|
+
return typeof value === "string" && /^https?:\/\//i.test(value) ? value : void 0;
|
|
91
|
+
}
|
|
92
|
+
function assetIdOf(value) {
|
|
93
|
+
return typeof value === "string" && value.startsWith("asset_") ? value : void 0;
|
|
94
|
+
}
|
|
95
|
+
function resultItems(result) {
|
|
96
|
+
if (Array.isArray(result)) return result;
|
|
97
|
+
if (typeof result !== "string") return result == null ? [] : [result];
|
|
98
|
+
try {
|
|
99
|
+
const parsed = JSON.parse(result);
|
|
100
|
+
if (typeof parsed === "string") return [];
|
|
101
|
+
return Array.isArray(parsed) ? parsed : [parsed];
|
|
102
|
+
} catch {
|
|
103
|
+
}
|
|
104
|
+
const items = [];
|
|
105
|
+
for (const line of result.split("\n")) {
|
|
106
|
+
const trimmed = line.trim();
|
|
107
|
+
if (!trimmed) continue;
|
|
108
|
+
try {
|
|
109
|
+
const parsed = JSON.parse(trimmed);
|
|
110
|
+
if (typeof parsed !== "string") items.push(parsed);
|
|
111
|
+
} catch {
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return items;
|
|
115
|
+
}
|
|
116
|
+
const IMAGE_MEDIA_TYPE = /^image\/[\w.+-]+$/i;
|
|
117
|
+
function screenshotSource(result) {
|
|
118
|
+
for (const item of resultItems(result)) {
|
|
119
|
+
if (Array.isArray(item)) {
|
|
120
|
+
const nested = screenshotSource(item);
|
|
121
|
+
if (nested !== void 0) return nested;
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
if (!toolResult.isRecord(item)) continue;
|
|
125
|
+
if (item.type === "image" && toolResult.isRecord(item.source)) {
|
|
126
|
+
const source = item.source;
|
|
127
|
+
const s3Key = source.type === "s3_key" && typeof source.data === "string" && source.data ? source.data : null;
|
|
128
|
+
const url2 = httpUrl(source.presigned_url) ?? httpUrl(source.url);
|
|
129
|
+
if (url2) return { url: url2, s3Key };
|
|
130
|
+
if (source.type === "base64" && typeof source.data === "string" && source.data) {
|
|
131
|
+
const mediaType = typeof source.media_type === "string" && IMAGE_MEDIA_TYPE.test(source.media_type) ? source.media_type : "image/png";
|
|
132
|
+
return { url: `data:${mediaType};base64,${source.data}`, s3Key: null };
|
|
133
|
+
}
|
|
134
|
+
if (s3Key) return { url: null, s3Key };
|
|
135
|
+
}
|
|
136
|
+
const url = httpUrl(item.presigned_url);
|
|
137
|
+
if (url) return { url, s3Key: null };
|
|
138
|
+
}
|
|
139
|
+
return void 0;
|
|
140
|
+
}
|
|
141
|
+
function ZoomScreenshot({ source, region }) {
|
|
142
|
+
const src = studioScreenshotToolUis.useScreenshotUrl({ s3Key: source.s3Key, fallbackUrl: source.url });
|
|
143
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
144
|
+
ScreenshotPreview,
|
|
145
|
+
{
|
|
146
|
+
src,
|
|
147
|
+
alt: "Zoomed region screenshot",
|
|
148
|
+
aspectRatio: zoomRegionAspectRatio(region),
|
|
149
|
+
className: "max-w-full rounded border border-border"
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
function zoomRegionAspectRatio(region) {
|
|
154
|
+
if (!Array.isArray(region) || region.length !== 4) return void 0;
|
|
155
|
+
const [x0, y0, x1, y1] = region;
|
|
156
|
+
if (typeof x0 !== "number" || typeof y0 !== "number" || typeof x1 !== "number" || typeof y1 !== "number" || ![x0, y0, x1, y1].every(Number.isFinite)) {
|
|
157
|
+
return void 0;
|
|
158
|
+
}
|
|
159
|
+
const width = Math.abs(x1 - x0);
|
|
160
|
+
const height = Math.abs(y1 - y0);
|
|
161
|
+
return width > 0 && height > 0 ? width / height : void 0;
|
|
162
|
+
}
|
|
163
|
+
function ScreenshotPreview({
|
|
164
|
+
src,
|
|
165
|
+
alt,
|
|
166
|
+
aspectRatio,
|
|
167
|
+
className
|
|
168
|
+
}) {
|
|
169
|
+
const [failedSrc, setFailedSrc] = require$$0.useState(null);
|
|
170
|
+
const framed = aspectRatio !== void 0;
|
|
171
|
+
const content = src === null || failedSrc === src ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
172
|
+
"div",
|
|
173
|
+
{
|
|
174
|
+
className: cnfast.cn(
|
|
175
|
+
"flex items-center justify-center rounded border border-dashed border-border bg-muted px-4 py-6 text-center text-sm text-muted-foreground",
|
|
176
|
+
framed ? "h-full w-full" : className
|
|
177
|
+
),
|
|
178
|
+
children: "Screenshot preview is no longer available."
|
|
179
|
+
}
|
|
180
|
+
) : (
|
|
181
|
+
// biome-ignore lint/a11y/noNoninteractiveElementInteractions: a failed load, not an interaction; the placeholder replaces the image
|
|
182
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
183
|
+
"img",
|
|
184
|
+
{
|
|
185
|
+
src,
|
|
186
|
+
alt,
|
|
187
|
+
className: framed ? "h-full w-full object-contain" : className,
|
|
188
|
+
onError: () => setFailedSrc(src)
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
);
|
|
192
|
+
if (!framed) return content;
|
|
193
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
194
|
+
"div",
|
|
195
|
+
{
|
|
196
|
+
"data-testid": "screenshot-frame",
|
|
197
|
+
className: cnfast.cn("flex w-full items-center justify-center overflow-hidden", className),
|
|
198
|
+
style: { aspectRatio },
|
|
199
|
+
children: content
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
const FIXED_COMPUTER_WORDS = /* @__PURE__ */ new Map([
|
|
204
|
+
["left_click", ["Left-Clicking...", "Did Left-Click"]],
|
|
205
|
+
["right_click", ["Right-Clicking...", "Did Right-Click"]],
|
|
206
|
+
["middle_click", ["Middle-Clicking...", "Did Middle-Click"]],
|
|
207
|
+
["double_click", ["Double-Clicking...", "Did Double-Click"]],
|
|
208
|
+
["triple_click", ["Triple-Clicking...", "Did Triple-Click"]],
|
|
209
|
+
["screenshot", ["Taking Screenshot...", "Took Screenshot"]],
|
|
210
|
+
["cursor_position", ["Getting Cursor Position...", "Got Cursor Position"]],
|
|
211
|
+
["move", ["Moving Mouse...", "Moved Mouse"]],
|
|
212
|
+
["drag", ["Dragging...", "Dragged"]],
|
|
213
|
+
["mouse_move", ["Moving Mouse...", "Moved Mouse"]],
|
|
214
|
+
["left_click_drag", ["Dragging...", "Dragged"]],
|
|
215
|
+
["left_mouse_down", ["Pressing Mouse Button...", "Pressed Mouse Button"]],
|
|
216
|
+
["left_mouse_up", ["Releasing Mouse Button...", "Released Mouse Button"]],
|
|
217
|
+
["zoom", ["Zooming...", "Zoomed"]]
|
|
218
|
+
]);
|
|
219
|
+
function computerWords(args) {
|
|
220
|
+
const action = stringArg(args.action);
|
|
221
|
+
if (!action) return { running: { title: "Using Computer..." }, done: { title: "Used Computer" } };
|
|
222
|
+
const fixed = FIXED_COMPUTER_WORDS.get(action);
|
|
223
|
+
if (fixed) return { running: { title: fixed[0] }, done: { title: fixed[1] } };
|
|
224
|
+
const text = scalarArg(args.text);
|
|
225
|
+
switch (action) {
|
|
226
|
+
case "type": {
|
|
227
|
+
const typed = `"${text ?? ""}"`;
|
|
228
|
+
return {
|
|
229
|
+
running: { title: "Typing...", subtitle: typed },
|
|
230
|
+
done: { title: "Typed", subtitle: typed }
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
case "key":
|
|
234
|
+
return {
|
|
235
|
+
running: { title: `Pressing ${text || "key"}...` },
|
|
236
|
+
done: { title: `Pressed ${text || "key"}` }
|
|
237
|
+
};
|
|
238
|
+
case "hold_key":
|
|
239
|
+
return {
|
|
240
|
+
running: { title: `Holding ${text || "key"}...` },
|
|
241
|
+
done: { title: `Held ${text || "key"}` }
|
|
242
|
+
};
|
|
243
|
+
case "scroll": {
|
|
244
|
+
const direction = scalarArg(args.scroll_direction);
|
|
245
|
+
return direction ? {
|
|
246
|
+
running: { title: `Scrolling ${direction}...` },
|
|
247
|
+
done: { title: `Scrolled ${direction}` }
|
|
248
|
+
} : { running: { title: "Scrolling..." }, done: { title: "Scrolled" } };
|
|
249
|
+
}
|
|
250
|
+
case "wait": {
|
|
251
|
+
const seconds = scalarArg(args.duration) || "0";
|
|
252
|
+
return {
|
|
253
|
+
running: { title: `Waiting ${seconds}s...` },
|
|
254
|
+
done: { title: `Waited ${seconds}s` }
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
default:
|
|
258
|
+
return {
|
|
259
|
+
running: { title: `Performing ${action}...` },
|
|
260
|
+
done: { title: `Performed ${action}` }
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function ComputerCard({ call, state }) {
|
|
265
|
+
const line = cardLine(state, computerWords(call.args), call.toolName);
|
|
266
|
+
const screenshot = call.args.action === "zoom" && state.kind === "complete" ? screenshotSource(call.result) : void 0;
|
|
267
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
+
primitives.ToolCard,
|
|
269
|
+
{
|
|
270
|
+
icon: lucideReact.MousePointerClickIcon,
|
|
271
|
+
status: TOOL_STATUS[state.kind],
|
|
272
|
+
title: line.title,
|
|
273
|
+
subtitle: line.subtitle,
|
|
274
|
+
toolName: call.toolName,
|
|
275
|
+
error: failureText(state),
|
|
276
|
+
args: call.args,
|
|
277
|
+
result: call.result,
|
|
278
|
+
children: screenshot !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(primitives.ExpandableSection, { defaultOpen: true, children: /* @__PURE__ */ jsxRuntime.jsx(studioScreenshotToolUis.ScreenshotQueryScope, { children: /* @__PURE__ */ jsxRuntime.jsx(ZoomScreenshot, { source: screenshot, region: call.args.region }) }) }) : null
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
const ComputerToolUI = browserToolUI(ComputerCard, lucideReact.MousePointerClickIcon, "ComputerToolUI");
|
|
283
|
+
function GoToUrlCard({ call, state }) {
|
|
284
|
+
const url = stringArg(call.args.url);
|
|
285
|
+
if (!url && state.kind === "running") return null;
|
|
286
|
+
const line = cardLine(
|
|
287
|
+
state,
|
|
288
|
+
{ running: { title: "Visiting", subtitle: url }, done: { title: "Visited", subtitle: url } },
|
|
289
|
+
call.toolName
|
|
290
|
+
);
|
|
291
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
292
|
+
primitives.ToolCard,
|
|
293
|
+
{
|
|
294
|
+
icon: lucideReact.GlobeIcon,
|
|
295
|
+
status: TOOL_STATUS[state.kind],
|
|
296
|
+
title: line.title,
|
|
297
|
+
subtitle: line.subtitle,
|
|
298
|
+
toolName: call.toolName,
|
|
299
|
+
error: failureText(state),
|
|
300
|
+
args: call.args,
|
|
301
|
+
result: call.result
|
|
302
|
+
}
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
const GoToUrlToolUI = browserToolUI(GoToUrlCard, lucideReact.GlobeIcon, "GoToUrlToolUI");
|
|
306
|
+
function currentUrlOf(result) {
|
|
307
|
+
var _a;
|
|
308
|
+
const record = toolResult.resultRecord(result);
|
|
309
|
+
if (record) return stringArg(record.url) || stringArg(record.current_url) || "Unknown";
|
|
310
|
+
if (typeof result === "string") return ((_a = /https?:\/\/[^\s"']+/i.exec(result)) == null ? void 0 : _a[0]) ?? "Unknown";
|
|
311
|
+
return "Unknown";
|
|
312
|
+
}
|
|
313
|
+
function GetCurrentUrlCard({ call, state }) {
|
|
314
|
+
const line = cardLine(
|
|
315
|
+
state,
|
|
316
|
+
{
|
|
317
|
+
running: { title: "Getting current URL..." },
|
|
318
|
+
done: { title: "Current URL", subtitle: currentUrlOf(call.result) }
|
|
319
|
+
},
|
|
320
|
+
call.toolName
|
|
321
|
+
);
|
|
322
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
323
|
+
primitives.ToolCard,
|
|
324
|
+
{
|
|
325
|
+
icon: lucideReact.LinkIcon,
|
|
326
|
+
status: TOOL_STATUS[state.kind],
|
|
327
|
+
title: line.title,
|
|
328
|
+
subtitle: line.subtitle,
|
|
329
|
+
toolName: call.toolName,
|
|
330
|
+
error: failureText(state),
|
|
331
|
+
args: call.args,
|
|
332
|
+
result: call.result
|
|
333
|
+
}
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
const GetCurrentUrlToolUI = browserToolUI(
|
|
337
|
+
GetCurrentUrlCard,
|
|
338
|
+
lucideReact.LinkIcon,
|
|
339
|
+
"GetCurrentUrlToolUI"
|
|
340
|
+
);
|
|
341
|
+
function GetPageTextCard({ call, state }) {
|
|
342
|
+
const line = cardLine(
|
|
343
|
+
state,
|
|
344
|
+
{ running: { title: "Reading page content..." }, done: { title: "Read page content" } },
|
|
345
|
+
call.toolName
|
|
346
|
+
);
|
|
347
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
348
|
+
primitives.ToolCard,
|
|
349
|
+
{
|
|
350
|
+
icon: lucideReact.FileTextIcon,
|
|
351
|
+
status: TOOL_STATUS[state.kind],
|
|
352
|
+
title: line.title,
|
|
353
|
+
subtitle: line.subtitle,
|
|
354
|
+
toolName: call.toolName,
|
|
355
|
+
error: failureText(state),
|
|
356
|
+
args: call.args,
|
|
357
|
+
result: call.result
|
|
358
|
+
}
|
|
359
|
+
);
|
|
360
|
+
}
|
|
361
|
+
const GetPageTextToolUI = browserToolUI(GetPageTextCard, lucideReact.FileTextIcon, "GetPageTextToolUI");
|
|
362
|
+
function stopSummary(result) {
|
|
363
|
+
const record = toolResult.resultRecord(result);
|
|
364
|
+
const seconds = record == null ? void 0 : record.duration_seconds;
|
|
365
|
+
const parts = [
|
|
366
|
+
typeof seconds === "number" ? seconds >= 60 ? `after ${Math.round(seconds / 60)}m` : `after ${seconds}s` : null,
|
|
367
|
+
(record == null ? void 0 : record.persisted_changes_to_profile) === true ? "changes persisted to the browse profile" : null
|
|
368
|
+
].filter((part) => part !== null);
|
|
369
|
+
return parts.length > 0 ? parts.join(" — ") : void 0;
|
|
370
|
+
}
|
|
371
|
+
function StopBrowserSessionCard({ call, state }) {
|
|
372
|
+
const line = state.kind === "failed" ? { title: "Could not stop browser session" } : cardLine(
|
|
373
|
+
state,
|
|
374
|
+
{
|
|
375
|
+
running: { title: "Stopping browser session..." },
|
|
376
|
+
done: { title: "Stopped browser session", subtitle: stopSummary(call.result) }
|
|
377
|
+
},
|
|
378
|
+
call.toolName
|
|
379
|
+
);
|
|
380
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
381
|
+
primitives.ToolCard,
|
|
382
|
+
{
|
|
383
|
+
icon: lucideReact.CircleStopIcon,
|
|
384
|
+
status: TOOL_STATUS[state.kind],
|
|
385
|
+
title: line.title,
|
|
386
|
+
subtitle: line.subtitle,
|
|
387
|
+
toolName: call.toolName,
|
|
388
|
+
error: failureText(state),
|
|
389
|
+
args: call.args,
|
|
390
|
+
result: call.result
|
|
391
|
+
}
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
const StopBrowserSessionToolUI = browserToolUI(
|
|
395
|
+
StopBrowserSessionCard,
|
|
396
|
+
lucideReact.CircleStopIcon,
|
|
397
|
+
"StopBrowserSessionToolUI"
|
|
398
|
+
);
|
|
399
|
+
function browseProfilesOf(args, record) {
|
|
400
|
+
const requested = Array.isArray(args.browse_profile_asset_ids) ? args.browse_profile_asset_ids.filter((id) => typeof id === "string") : [];
|
|
401
|
+
const single = stringArg(args.browse_profile_asset_id);
|
|
402
|
+
const ids = requested.length > 0 ? requested : single ? [single] : [];
|
|
403
|
+
const loaded = Array.isArray(record == null ? void 0 : record.browse_profiles) ? record.browse_profiles : [];
|
|
404
|
+
const lines = [];
|
|
405
|
+
for (const assetId of ids) {
|
|
406
|
+
const profile = loaded.find((entry) => toolResult.isRecord(entry) && entry.asset_id === assetId);
|
|
407
|
+
const title = toolResult.isRecord(profile) ? stringArg(profile.title) : void 0;
|
|
408
|
+
if (title) lines.push({ assetId, title });
|
|
409
|
+
}
|
|
410
|
+
return lines;
|
|
411
|
+
}
|
|
412
|
+
function CreateNewBrowseSessionCard({ call, state }) {
|
|
413
|
+
const openAsset = assetPanelStore.useAssetPanelStore((s) => s.openAsset);
|
|
414
|
+
const record = toolResult.resultRecord(call.result);
|
|
415
|
+
const assetId = assetIdOf(record == null ? void 0 : record.asset_id);
|
|
416
|
+
const argTitle = stringArg(call.args.title);
|
|
417
|
+
const title = stringArg(record == null ? void 0 : record.title) ?? argTitle;
|
|
418
|
+
const profiles = state.kind === "complete" ? browseProfilesOf(call.args, record) : [];
|
|
419
|
+
const line = cardLine(
|
|
420
|
+
state,
|
|
421
|
+
{
|
|
422
|
+
running: { title: "Creating browse session...", subtitle: argTitle },
|
|
423
|
+
done: { title: "Browse session created", subtitle: title }
|
|
424
|
+
},
|
|
425
|
+
call.toolName
|
|
426
|
+
);
|
|
427
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
428
|
+
primitives.ToolCard,
|
|
429
|
+
{
|
|
430
|
+
icon: lucideReact.GlobeIcon,
|
|
431
|
+
status: TOOL_STATUS[state.kind],
|
|
432
|
+
title: line.title,
|
|
433
|
+
subtitle: line.subtitle,
|
|
434
|
+
toolName: call.toolName,
|
|
435
|
+
error: failureText(state),
|
|
436
|
+
args: call.args,
|
|
437
|
+
result: call.result,
|
|
438
|
+
children: [
|
|
439
|
+
profiles.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(primitives.ExpandableSection, { children: profiles.map((profile) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
440
|
+
"button",
|
|
441
|
+
{
|
|
442
|
+
type: "button",
|
|
443
|
+
onClick: () => openAsset(profile.assetId, { name: profile.title, type: "unknown" }),
|
|
444
|
+
className: "mt-2 flex w-full items-center gap-2 rounded border border-border bg-muted p-2 text-left transition-colors first:mt-0 hover:bg-muted/70",
|
|
445
|
+
children: [
|
|
446
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleUserRoundIcon, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
447
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-sm text-foreground", children: [
|
|
448
|
+
"using profile: ",
|
|
449
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: profile.title })
|
|
450
|
+
] })
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
profile.assetId
|
|
454
|
+
)) }) : null,
|
|
455
|
+
state.kind === "complete" && assetId ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 border-t border-border/40 px-4 py-2", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
456
|
+
"button",
|
|
457
|
+
{
|
|
458
|
+
type: "button",
|
|
459
|
+
onClick: () => openAsset(assetId, { name: title, type: "unknown" }),
|
|
460
|
+
className: "flex items-center gap-1.5 rounded-md border border-border/60 px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground",
|
|
461
|
+
children: [
|
|
462
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ExternalLinkIcon, { className: "size-3" }),
|
|
463
|
+
"Open session"
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
) }) : null
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
const CreateNewBrowseSessionToolUI = browserToolUI(
|
|
472
|
+
CreateNewBrowseSessionCard,
|
|
473
|
+
lucideReact.GlobeIcon,
|
|
474
|
+
"CreateNewBrowseSessionToolUI"
|
|
475
|
+
);
|
|
476
|
+
const BATCH_HEADER = /^[a-z_]+:\s+(\d+)\/(\d+)\s+ok(?:\s+—\s+STOPPED at step (\d+)\s+\(([^)]*)\))?/;
|
|
477
|
+
function parseBrowserBatchSummary(result) {
|
|
478
|
+
if (typeof result !== "string") return null;
|
|
479
|
+
const match = BATCH_HEADER.exec(result.trimStart());
|
|
480
|
+
if (!match) return null;
|
|
481
|
+
return {
|
|
482
|
+
okCount: Number(match[1]),
|
|
483
|
+
totalSteps: Number(match[2]),
|
|
484
|
+
stoppedAtStep: match[3] ? Number(match[3]) : null,
|
|
485
|
+
stoppedAtLabel: match[4] ?? null
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
function countBrowserBatchSteps(steps) {
|
|
489
|
+
if (Array.isArray(steps)) return steps.length;
|
|
490
|
+
if (typeof steps !== "string") return 0;
|
|
491
|
+
try {
|
|
492
|
+
const parsed = JSON.parse(steps);
|
|
493
|
+
return Array.isArray(parsed) ? parsed.length : 0;
|
|
494
|
+
} catch {
|
|
495
|
+
return 0;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
function describeBrowserBatchSteps(count) {
|
|
499
|
+
return `${count} browser ${count === 1 ? "step" : "steps"}`;
|
|
500
|
+
}
|
|
501
|
+
function formatBrowserBatchSummary(summary) {
|
|
502
|
+
const steps = describeBrowserBatchSteps(summary.totalSteps);
|
|
503
|
+
if (summary.stoppedAtStep !== null) {
|
|
504
|
+
const label = summary.stoppedAtLabel ? ` (${summary.stoppedAtLabel})` : "";
|
|
505
|
+
return `Stopped at step ${summary.stoppedAtStep}${label} — ${summary.okCount}/${summary.totalSteps} steps ok`;
|
|
506
|
+
}
|
|
507
|
+
if (summary.okCount < summary.totalSteps) {
|
|
508
|
+
return `Ran ${steps}, ${summary.totalSteps - summary.okCount} failed`;
|
|
509
|
+
}
|
|
510
|
+
return `Ran ${steps}`;
|
|
511
|
+
}
|
|
512
|
+
const BATCH_STEP_CARDS = /* @__PURE__ */ new Map([
|
|
513
|
+
["computer", ComputerCard],
|
|
514
|
+
["go_to_url", GoToUrlCard],
|
|
515
|
+
["get_current_url", GetCurrentUrlCard],
|
|
516
|
+
["get_page_text", GetPageTextCard]
|
|
517
|
+
]);
|
|
518
|
+
function batchStepCall(step) {
|
|
519
|
+
return {
|
|
520
|
+
toolName: step.name,
|
|
521
|
+
args: step.args,
|
|
522
|
+
result: step.result,
|
|
523
|
+
status: step.status === "in_flight" ? { type: "running" } : { type: "complete" },
|
|
524
|
+
isError: step.status === "error"
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
function batchStepDetail(step) {
|
|
528
|
+
const assetId = step.args.assetId;
|
|
529
|
+
if (typeof assetId === "string" && assetId) return assetId;
|
|
530
|
+
const first = Object.values(step.args).find(
|
|
531
|
+
(value) => typeof value === "string" && value.length > 0
|
|
532
|
+
);
|
|
533
|
+
const detail = first ? first.replace(/\s+/g, " ").trim() : "";
|
|
534
|
+
return detail.length > 60 ? `${detail.slice(0, 59)}…` : detail;
|
|
535
|
+
}
|
|
536
|
+
function BatchStepRow({ step }) {
|
|
537
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-center gap-2 py-0.5", children: [
|
|
538
|
+
step.status === "error" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XCircleIcon, { className: "size-3.5 shrink-0 text-destructive" }) : step.status === "completed" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2Icon, { className: "size-3.5 shrink-0 text-emerald-600" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.LoaderIcon, { className: "size-3.5 shrink-0 animate-spin text-muted-foreground" }),
|
|
539
|
+
/* @__PURE__ */ jsxRuntime.jsx("code", { className: "shrink-0 font-mono text-xs text-foreground", children: step.name }),
|
|
540
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-[11px] text-muted-foreground", children: batchStepDetail(step) })
|
|
541
|
+
] });
|
|
542
|
+
}
|
|
543
|
+
function BatchStep({ step }) {
|
|
544
|
+
const call = batchStepCall(step);
|
|
545
|
+
const state = callState(call);
|
|
546
|
+
const Card = BATCH_STEP_CARDS.get(step.name);
|
|
547
|
+
if (Card && state) return /* @__PURE__ */ jsxRuntime.jsx(Card, { call, state });
|
|
548
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BatchStepRow, { step });
|
|
549
|
+
}
|
|
550
|
+
const BrowserBatchToolUIImpl = (props) => {
|
|
551
|
+
var _a;
|
|
552
|
+
const call = browserCall(props);
|
|
553
|
+
const state = callState(call);
|
|
554
|
+
if (!state) return /* @__PURE__ */ jsxRuntime.jsx(toolFallback.ToolFallback, { ...props, icon: lucideReact.ListChecksIcon });
|
|
555
|
+
const requested = countBrowserBatchSteps(call.args.steps);
|
|
556
|
+
const summary = parseBrowserBatchSummary(call.result);
|
|
557
|
+
const running = {
|
|
558
|
+
title: requested > 0 ? `Running ${describeBrowserBatchSteps(requested)}...` : "Running browser steps..."
|
|
559
|
+
};
|
|
560
|
+
const done = {
|
|
561
|
+
title: summary ? formatBrowserBatchSummary(summary) : requested > 0 ? `Ran ${describeBrowserBatchSteps(requested)}` : "Ran browser steps"
|
|
562
|
+
};
|
|
563
|
+
const line = state.kind === "failed" && summary ? done : cardLine(state, { running, done }, call.toolName);
|
|
564
|
+
const hasNestedMessages = (((_a = props.messages) == null ? void 0 : _a.length) ?? 0) > 0;
|
|
565
|
+
const steps = hasNestedMessages ? [] : ptcSubcalls.ptcSubcallsFromArtifact(props.artifact);
|
|
566
|
+
const showsReport = steps.length === 0 && !hasNestedMessages && (state.kind === "complete" || state.kind === "failed" && summary !== null);
|
|
567
|
+
const report = showsReport && typeof call.result === "string" ? call.result.trim() : "";
|
|
568
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
569
|
+
primitives.ToolCard,
|
|
570
|
+
{
|
|
571
|
+
icon: lucideReact.ListChecksIcon,
|
|
572
|
+
status: TOOL_STATUS[state.kind],
|
|
573
|
+
title: line.title,
|
|
574
|
+
subtitle: line.subtitle,
|
|
575
|
+
toolName: call.toolName,
|
|
576
|
+
error: failureText(state),
|
|
577
|
+
args: call.args,
|
|
578
|
+
result: call.result,
|
|
579
|
+
children: steps.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(primitives.ExpandableSection, { defaultOpen: state.kind === "running", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1", children: steps.map((step) => /* @__PURE__ */ jsxRuntime.jsx(BatchStep, { step }, step.id)) }) }) : report ? /* @__PURE__ */ jsxRuntime.jsx(primitives.ExpandableSection, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "whitespace-pre-wrap text-sm text-foreground", children: report }) }) : null
|
|
580
|
+
}
|
|
581
|
+
);
|
|
582
|
+
};
|
|
583
|
+
const BrowserBatchToolUI = require$$0.memo(
|
|
584
|
+
BrowserBatchToolUIImpl
|
|
585
|
+
);
|
|
586
|
+
BrowserBatchToolUI.displayName = "BrowserBatchToolUI";
|
|
587
|
+
exports.BrowserBatchToolUI = BrowserBatchToolUI;
|
|
588
|
+
exports.ComputerToolUI = ComputerToolUI;
|
|
589
|
+
exports.CreateNewBrowseSessionToolUI = CreateNewBrowseSessionToolUI;
|
|
590
|
+
exports.GetCurrentUrlToolUI = GetCurrentUrlToolUI;
|
|
591
|
+
exports.GetPageTextToolUI = GetPageTextToolUI;
|
|
592
|
+
exports.GoToUrlToolUI = GoToUrlToolUI;
|
|
593
|
+
exports.StopBrowserSessionToolUI = StopBrowserSessionToolUI;
|
|
594
|
+
//# sourceMappingURL=browser-tool-uis.cjs.map
|