@athenaintel/react 0.57.1 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +778 -9
- package/dist/agent-runtime/src/addressed-agents.cjs +16 -0
- package/dist/agent-runtime/src/addressed-agents.cjs.map +1 -0
- package/dist/agent-runtime/src/addressed-agents.d.ts +30 -0
- package/dist/agent-runtime/src/addressed-agents.js +16 -0
- package/dist/agent-runtime/src/addressed-agents.js.map +1 -0
- package/dist/agent-runtime/src/answer-label.cjs +4 -3
- package/dist/agent-runtime/src/answer-label.cjs.map +1 -1
- package/dist/agent-runtime/src/answer-label.d.ts +13 -6
- package/dist/agent-runtime/src/answer-label.js +4 -3
- package/dist/agent-runtime/src/answer-label.js.map +1 -1
- package/dist/agent-runtime/src/chat-outbox-attachments.cjs.map +1 -1
- package/dist/agent-runtime/src/chat-outbox-attachments.d.ts +1 -1
- package/dist/agent-runtime/src/chat-outbox-attachments.js.map +1 -1
- package/dist/agent-runtime/src/chat-outbox-entry.cjs +101 -0
- package/dist/agent-runtime/src/chat-outbox-entry.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-entry.d.ts +99 -0
- package/dist/agent-runtime/src/chat-outbox-entry.js +101 -0
- package/dist/agent-runtime/src/chat-outbox-entry.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-legacy.cjs +252 -0
- package/dist/agent-runtime/src/chat-outbox-legacy.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-legacy.d.ts +96 -0
- package/dist/agent-runtime/src/chat-outbox-legacy.js +252 -0
- package/dist/agent-runtime/src/chat-outbox-legacy.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-policy.cjs +30 -0
- package/dist/agent-runtime/src/chat-outbox-policy.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-policy.d.ts +42 -0
- package/dist/agent-runtime/src/chat-outbox-policy.js +30 -0
- package/dist/agent-runtime/src/chat-outbox-policy.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-storage.cjs +306 -0
- package/dist/agent-runtime/src/chat-outbox-storage.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-storage.d.ts +194 -0
- package/dist/agent-runtime/src/chat-outbox-storage.js +306 -0
- package/dist/agent-runtime/src/chat-outbox-storage.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-thread.cjs +21 -94
- package/dist/agent-runtime/src/chat-outbox-thread.cjs.map +1 -1
- package/dist/agent-runtime/src/chat-outbox-thread.d.ts +22 -18
- package/dist/agent-runtime/src/chat-outbox-thread.js +21 -94
- package/dist/agent-runtime/src/chat-outbox-thread.js.map +1 -1
- package/dist/agent-runtime/src/chat-outbox.cjs +492 -547
- package/dist/agent-runtime/src/chat-outbox.cjs.map +1 -1
- package/dist/agent-runtime/src/chat-outbox.d.ts +110 -142
- package/dist/agent-runtime/src/chat-outbox.js +492 -547
- package/dist/agent-runtime/src/chat-outbox.js.map +1 -1
- package/dist/agent-runtime/src/composer-markdown.cjs.map +1 -1
- package/dist/agent-runtime/src/composer-markdown.d.ts +1 -1
- package/dist/agent-runtime/src/composer-markdown.js.map +1 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.cjs +3 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.cjs.map +1 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.d.ts +8 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.js +3 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.js.map +1 -1
- package/dist/agent-runtime/src/dictation-preferences.d.ts +356 -0
- package/dist/agent-runtime/src/dictation-record.d.ts +279 -0
- package/dist/agent-runtime/src/dictation-session.d.ts +106 -7
- package/dist/agent-runtime/src/dictation-snippets.d.ts +9 -0
- package/dist/agent-runtime/src/dictation-transfer.d.ts +142 -0
- package/dist/agent-runtime/src/edit-command.cjs.map +1 -1
- package/dist/agent-runtime/src/edit-command.d.ts +1 -1
- package/dist/agent-runtime/src/edit-command.js.map +1 -1
- package/dist/agent-runtime/src/errors.cjs +1 -0
- package/dist/agent-runtime/src/errors.cjs.map +1 -1
- package/dist/agent-runtime/src/errors.js +1 -0
- package/dist/agent-runtime/src/errors.js.map +1 -1
- package/dist/agent-runtime/src/generated/runconfig-contract.cjs +24 -0
- package/dist/agent-runtime/src/generated/runconfig-contract.cjs.map +1 -1
- package/dist/agent-runtime/src/generated/runconfig-contract.d.ts +3 -3
- package/dist/agent-runtime/src/generated/runconfig-contract.js +24 -0
- package/dist/agent-runtime/src/generated/runconfig-contract.js.map +1 -1
- package/dist/agent-runtime/src/index.d.ts +14 -8
- package/dist/agent-runtime/src/lane-follow.cjs +289 -0
- package/dist/agent-runtime/src/lane-follow.cjs.map +1 -0
- package/dist/agent-runtime/src/lane-follow.js +289 -0
- package/dist/agent-runtime/src/lane-follow.js.map +1 -0
- package/dist/agent-runtime/src/lane-images.cjs +387 -0
- package/dist/agent-runtime/src/lane-images.cjs.map +1 -0
- package/dist/agent-runtime/src/lane-images.js +387 -0
- package/dist/agent-runtime/src/lane-images.js.map +1 -0
- package/dist/agent-runtime/src/message-window.js +1 -1
- package/dist/agent-runtime/src/messages.cjs +19 -1
- package/dist/agent-runtime/src/messages.cjs.map +1 -1
- package/dist/agent-runtime/src/messages.d.ts +8 -0
- package/dist/agent-runtime/src/messages.js +21 -3
- package/dist/agent-runtime/src/messages.js.map +1 -1
- package/dist/agent-runtime/src/named-agents.cjs +301 -0
- package/dist/agent-runtime/src/named-agents.cjs.map +1 -0
- package/dist/agent-runtime/src/named-agents.d.ts +246 -0
- package/dist/agent-runtime/src/named-agents.js +301 -0
- package/dist/agent-runtime/src/named-agents.js.map +1 -0
- package/dist/agent-runtime/src/offline-status.cjs.map +1 -1
- package/dist/agent-runtime/src/offline-status.d.ts +66 -2
- package/dist/agent-runtime/src/offline-status.js.map +1 -1
- package/dist/agent-runtime/src/ptc-subcalls.cjs +41 -0
- package/dist/agent-runtime/src/ptc-subcalls.cjs.map +1 -0
- package/dist/agent-runtime/src/ptc-subcalls.js +41 -0
- package/dist/agent-runtime/src/ptc-subcalls.js.map +1 -0
- package/dist/agent-runtime/src/queue.cjs +2 -2
- package/dist/agent-runtime/src/queue.cjs.map +1 -1
- package/dist/agent-runtime/src/queue.d.ts +20 -25
- package/dist/agent-runtime/src/queue.js +2 -2
- package/dist/agent-runtime/src/queue.js.map +1 -1
- package/dist/agent-runtime/src/quota-safe-local-storage-session.cjs +314 -84
- package/dist/agent-runtime/src/quota-safe-local-storage-session.cjs.map +1 -1
- package/dist/agent-runtime/src/quota-safe-local-storage-session.d.ts +137 -40
- package/dist/agent-runtime/src/quota-safe-local-storage-session.js +318 -88
- package/dist/agent-runtime/src/quota-safe-local-storage-session.js.map +1 -1
- package/dist/agent-runtime/src/run-send.cjs +54 -0
- package/dist/agent-runtime/src/run-send.cjs.map +1 -0
- package/dist/agent-runtime/src/run-send.d.ts +51 -0
- package/dist/agent-runtime/src/run-send.js +54 -0
- package/dist/agent-runtime/src/run-send.js.map +1 -0
- package/dist/agent-runtime/src/running-tool-placeholder.cjs +6 -0
- package/dist/agent-runtime/src/running-tool-placeholder.cjs.map +1 -1
- package/dist/agent-runtime/src/running-tool-placeholder.js +6 -0
- package/dist/agent-runtime/src/running-tool-placeholder.js.map +1 -1
- package/dist/agent-runtime/src/runtime.d.ts +9 -5
- package/dist/agent-runtime/src/sealed-idb.cjs +64 -0
- package/dist/agent-runtime/src/sealed-idb.cjs.map +1 -1
- package/dist/agent-runtime/src/sealed-idb.d.ts +16 -0
- package/dist/agent-runtime/src/sealed-idb.js +64 -0
- package/dist/agent-runtime/src/sealed-idb.js.map +1 -1
- package/dist/agent-runtime/src/send-recovery.cjs +90 -118
- package/dist/agent-runtime/src/send-recovery.cjs.map +1 -1
- package/dist/agent-runtime/src/send-recovery.d.ts +25 -29
- package/dist/agent-runtime/src/send-recovery.js +90 -118
- package/dist/agent-runtime/src/send-recovery.js.map +1 -1
- package/dist/agent-runtime/src/statewire-diagnostics.d.ts +4 -1
- package/dist/agent-runtime/src/statewire-held-sends.cjs +191 -0
- package/dist/agent-runtime/src/statewire-held-sends.cjs.map +1 -0
- package/dist/agent-runtime/src/statewire-held-sends.d.ts +119 -0
- package/dist/agent-runtime/src/statewire-held-sends.js +191 -0
- package/dist/agent-runtime/src/statewire-held-sends.js.map +1 -0
- package/dist/agent-runtime/src/statewire-state.cjs +4 -0
- package/dist/agent-runtime/src/statewire-state.cjs.map +1 -1
- package/dist/agent-runtime/src/statewire-state.js +4 -0
- package/dist/agent-runtime/src/statewire-state.js.map +1 -1
- package/dist/agent-runtime/src/statewire-transport.cjs +8 -2
- package/dist/agent-runtime/src/statewire-transport.cjs.map +1 -1
- package/dist/agent-runtime/src/statewire-transport.d.ts +14 -5
- package/dist/agent-runtime/src/statewire-transport.js +8 -2
- package/dist/agent-runtime/src/statewire-transport.js.map +1 -1
- package/dist/agent-runtime/src/subagent-transcripts.cjs +1 -23
- package/dist/agent-runtime/src/subagent-transcripts.cjs.map +1 -1
- package/dist/agent-runtime/src/subagent-transcripts.js +3 -25
- package/dist/agent-runtime/src/subagent-transcripts.js.map +1 -1
- package/dist/agent-runtime/src/subagents.cjs +22 -29
- package/dist/agent-runtime/src/subagents.cjs.map +1 -1
- package/dist/agent-runtime/src/subagents.js +23 -30
- package/dist/agent-runtime/src/subagents.js.map +1 -1
- package/dist/agent-runtime/src/thread-extras.cjs +27 -19
- package/dist/agent-runtime/src/thread-extras.cjs.map +1 -1
- package/dist/agent-runtime/src/thread-extras.d.ts +19 -6
- package/dist/agent-runtime/src/thread-extras.js +27 -19
- package/dist/agent-runtime/src/thread-extras.js.map +1 -1
- package/dist/agent-runtime/src/thread-handoff-flow-machine.d.ts +8 -8
- package/dist/agent-runtime/src/tool-metadata.cjs +12 -0
- package/dist/agent-runtime/src/tool-metadata.cjs.map +1 -1
- package/dist/agent-runtime/src/tool-metadata.js +12 -0
- package/dist/agent-runtime/src/tool-metadata.js.map +1 -1
- package/dist/agent-runtime/src/tool-names.cjs +21 -0
- package/dist/agent-runtime/src/tool-names.cjs.map +1 -1
- package/dist/agent-runtime/src/tool-names.d.ts +8 -0
- package/dist/agent-runtime/src/tool-names.js +21 -0
- package/dist/agent-runtime/src/tool-names.js.map +1 -1
- package/dist/agent-runtime/src/typed-interrupt-kinds.cjs +247 -0
- package/dist/agent-runtime/src/typed-interrupt-kinds.cjs.map +1 -0
- package/dist/agent-runtime/src/typed-interrupt-kinds.d.ts +173 -0
- package/dist/agent-runtime/src/typed-interrupt-kinds.js +247 -0
- package/dist/agent-runtime/src/typed-interrupt-kinds.js.map +1 -0
- package/dist/agent-runtime/src/typed-interrupts.cjs +48 -0
- package/dist/agent-runtime/src/typed-interrupts.cjs.map +1 -0
- package/dist/agent-runtime/src/typed-interrupts.d.ts +75 -0
- package/dist/agent-runtime/src/typed-interrupts.js +48 -0
- package/dist/agent-runtime/src/typed-interrupts.js.map +1 -0
- package/dist/agent-runtime/src/types.d.ts +1 -1
- package/dist/agent-runtime/src/use-conversation-list.cjs +1 -0
- package/dist/agent-runtime/src/use-conversation-list.cjs.map +1 -1
- package/dist/agent-runtime/src/use-conversation-list.d.ts +7 -0
- package/dist/agent-runtime/src/use-conversation-list.js +1 -0
- package/dist/agent-runtime/src/use-conversation-list.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.cjs +46 -29
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.d.ts +14 -22
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.js +46 -29
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-runtime.cjs +78 -14
- package/dist/agent-runtime/src/use-deep-agent-runtime.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-runtime.d.ts +34 -7
- package/dist/agent-runtime/src/use-deep-agent-runtime.js +79 -15
- package/dist/agent-runtime/src/use-deep-agent-runtime.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.cjs +16 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.d.ts +7 -2
- package/dist/agent-runtime/src/use-deep-agent-thread.js +16 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-voice.cjs +30 -4
- package/dist/agent-runtime/src/use-deep-agent-voice.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-voice.d.ts +22 -4
- package/dist/agent-runtime/src/use-deep-agent-voice.js +30 -4
- package/dist/agent-runtime/src/use-deep-agent-voice.js.map +1 -1
- package/dist/agent-runtime/src/withdrawn-turns.d.ts +5 -4
- package/dist/agent-runtime/src/word-device-fit.d.ts +174 -0
- package/dist/agent-runtime/src/work-in.d.ts +127 -0
- package/dist/assets/AthenaAssetEmbed.cjs.map +1 -1
- package/dist/assets/AthenaAssetEmbed.d.ts +6 -1
- package/dist/assets/AthenaAssetEmbed.js.map +1 -1
- package/dist/assets/asset-panel-store.cjs +13 -5
- package/dist/assets/asset-panel-store.cjs.map +1 -1
- package/dist/assets/asset-panel-store.d.ts +33 -2
- package/dist/assets/asset-panel-store.js +13 -5
- package/dist/assets/asset-panel-store.js.map +1 -1
- package/dist/auth/AthenaCredentialSourceContext.cjs +11 -0
- package/dist/auth/AthenaCredentialSourceContext.cjs.map +1 -1
- package/dist/auth/AthenaCredentialSourceContext.d.ts +6 -0
- package/dist/auth/AthenaCredentialSourceContext.js +11 -0
- package/dist/auth/AthenaCredentialSourceContext.js.map +1 -1
- package/dist/auth/account-identity.cjs +13 -2
- package/dist/auth/account-identity.cjs.map +1 -1
- package/dist/auth/account-identity.d.ts +9 -0
- package/dist/auth/account-identity.js +13 -2
- package/dist/auth/account-identity.js.map +1 -1
- package/dist/auth/credential-source.cjs +20 -4
- package/dist/auth/credential-source.cjs.map +1 -1
- package/dist/auth/credential-source.d.ts +9 -0
- package/dist/auth/credential-source.js +20 -4
- package/dist/auth/credential-source.js.map +1 -1
- package/dist/catalog/chat-pickers.cjs +31 -0
- package/dist/catalog/chat-pickers.cjs.map +1 -1
- package/dist/catalog/chat-pickers.d.ts +17 -0
- package/dist/catalog/chat-pickers.js +33 -2
- package/dist/catalog/chat-pickers.js.map +1 -1
- package/dist/catalog/runtime-catalog.cjs +63 -3
- package/dist/catalog/runtime-catalog.cjs.map +1 -1
- package/dist/catalog/runtime-catalog.d.ts +63 -3
- package/dist/catalog/runtime-catalog.js +64 -4
- package/dist/catalog/runtime-catalog.js.map +1 -1
- package/dist/chat/AthenaChat.cjs +337 -99
- package/dist/chat/AthenaChat.cjs.map +1 -1
- package/dist/chat/AthenaChat.d.ts +80 -4
- package/dist/chat/AthenaChat.js +337 -99
- package/dist/chat/AthenaChat.js.map +1 -1
- package/dist/chat/StatewireApprovalCard.cjs +35 -5
- package/dist/chat/StatewireApprovalCard.cjs.map +1 -1
- package/dist/chat/StatewireApprovalCard.d.ts +55 -2
- package/dist/chat/StatewireApprovalCard.js +37 -7
- package/dist/chat/StatewireApprovalCard.js.map +1 -1
- package/dist/chat/StatewireQueuedMessages.cjs +17 -2
- package/dist/chat/StatewireQueuedMessages.cjs.map +1 -1
- package/dist/chat/StatewireQueuedMessages.d.ts +8 -45
- package/dist/chat/StatewireQueuedMessages.js +18 -3
- package/dist/chat/StatewireQueuedMessages.js.map +1 -1
- package/dist/chat/chat-agent-mentions.cjs +70 -0
- package/dist/chat/chat-agent-mentions.cjs.map +1 -0
- package/dist/chat/chat-agent-mentions.d.ts +13 -0
- package/dist/chat/chat-agent-mentions.js +70 -0
- package/dist/chat/chat-agent-mentions.js.map +1 -0
- package/dist/chat/composer-actions.cjs +12 -0
- package/dist/chat/composer-actions.cjs.map +1 -0
- package/dist/chat/composer-actions.d.ts +22 -0
- package/dist/chat/composer-actions.js +12 -0
- package/dist/chat/composer-actions.js.map +1 -0
- package/dist/chat/follow-up-suggestions.cjs +185 -0
- package/dist/chat/follow-up-suggestions.cjs.map +1 -0
- package/dist/chat/follow-up-suggestions.d.ts +64 -0
- package/dist/chat/follow-up-suggestions.js +185 -0
- package/dist/chat/follow-up-suggestions.js.map +1 -0
- package/dist/chat/super-grouping/ToolTimeline.cjs +4 -3
- package/dist/chat/super-grouping/ToolTimeline.cjs.map +1 -1
- package/dist/chat/super-grouping/ToolTimeline.d.ts +7 -3
- package/dist/chat/super-grouping/ToolTimeline.js +4 -3
- package/dist/chat/super-grouping/ToolTimeline.js.map +1 -1
- package/dist/chat/turn-changes.cjs +284 -0
- package/dist/chat/turn-changes.cjs.map +1 -0
- package/dist/chat/turn-changes.d.ts +130 -0
- package/dist/chat/turn-changes.js +284 -0
- package/dist/chat/turn-changes.js.map +1 -0
- package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.cjs +31 -0
- package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.cjs.map +1 -0
- package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.d.ts +31 -0
- package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.js +31 -0
- package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.js.map +1 -0
- package/dist/chat/typed-interrupts/approval-cards.cjs +250 -0
- package/dist/chat/typed-interrupts/approval-cards.cjs.map +1 -0
- package/dist/chat/typed-interrupts/approval-cards.d.ts +22 -0
- package/dist/chat/typed-interrupts/approval-cards.js +250 -0
- package/dist/chat/typed-interrupts/approval-cards.js.map +1 -0
- package/dist/chat/typed-interrupts/form-cards.cjs +289 -0
- package/dist/chat/typed-interrupts/form-cards.cjs.map +1 -0
- package/dist/chat/typed-interrupts/form-cards.d.ts +6 -0
- package/dist/chat/typed-interrupts/form-cards.js +289 -0
- package/dist/chat/typed-interrupts/form-cards.js.map +1 -0
- package/dist/chat/typed-interrupts/interrupt-card-shell.cjs +182 -0
- package/dist/chat/typed-interrupts/interrupt-card-shell.cjs.map +1 -0
- package/dist/chat/typed-interrupts/interrupt-card-shell.d.ts +47 -0
- package/dist/chat/typed-interrupts/interrupt-card-shell.js +182 -0
- package/dist/chat/typed-interrupts/interrupt-card-shell.js.map +1 -0
- package/dist/chat/typed-interrupts/json-schema-form.cjs +388 -0
- package/dist/chat/typed-interrupts/json-schema-form.cjs.map +1 -0
- package/dist/chat/typed-interrupts/json-schema-form.d.ts +33 -0
- package/dist/chat/typed-interrupts/json-schema-form.js +388 -0
- package/dist/chat/typed-interrupts/json-schema-form.js.map +1 -0
- package/dist/chat/typed-interrupts/questionnaire-card.cjs +449 -0
- package/dist/chat/typed-interrupts/questionnaire-card.cjs.map +1 -0
- package/dist/chat/typed-interrupts/questionnaire-card.d.ts +20 -0
- package/dist/chat/typed-interrupts/questionnaire-card.js +449 -0
- package/dist/chat/typed-interrupts/questionnaire-card.js.map +1 -0
- package/dist/chat/typed-interrupts/request-file-card.cjs +159 -0
- package/dist/chat/typed-interrupts/request-file-card.cjs.map +1 -0
- package/dist/chat/typed-interrupts/request-file-card.d.ts +2 -0
- package/dist/chat/typed-interrupts/request-file-card.js +159 -0
- package/dist/chat/typed-interrupts/request-file-card.js.map +1 -0
- package/dist/chat/typed-interrupts/toolkit-selection-card.cjs +189 -0
- package/dist/chat/typed-interrupts/toolkit-selection-card.cjs.map +1 -0
- package/dist/chat/typed-interrupts/toolkit-selection-card.d.ts +23 -0
- package/dist/chat/typed-interrupts/toolkit-selection-card.js +189 -0
- package/dist/chat/typed-interrupts/toolkit-selection-card.js.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-body.cjs +26 -0
- package/dist/chat/typed-interrupts/typed-interrupt-body.cjs.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-body.d.ts +3 -0
- package/dist/chat/typed-interrupts/typed-interrupt-body.js +26 -0
- package/dist/chat/typed-interrupts/typed-interrupt-body.js.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-graphql.cjs +105 -0
- package/dist/chat/typed-interrupts/typed-interrupt-graphql.cjs.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-graphql.d.ts +29 -0
- package/dist/chat/typed-interrupts/typed-interrupt-graphql.js +105 -0
- package/dist/chat/typed-interrupts/typed-interrupt-graphql.js.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-notice.cjs +70 -0
- package/dist/chat/typed-interrupts/typed-interrupt-notice.cjs.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-notice.d.ts +45 -0
- package/dist/chat/typed-interrupts/typed-interrupt-notice.js +70 -0
- package/dist/chat/typed-interrupts/typed-interrupt-notice.js.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-panel.cjs +76 -0
- package/dist/chat/typed-interrupts/typed-interrupt-panel.cjs.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-panel.d.ts +11 -0
- package/dist/chat/typed-interrupts/typed-interrupt-panel.js +76 -0
- package/dist/chat/typed-interrupts/typed-interrupt-panel.js.map +1 -0
- package/dist/chat/typed-interrupts/typed-interrupt-types.d.ts +46 -0
- package/dist/chat/typed-interrupts/use-interrupt-draft.cjs +106 -0
- package/dist/chat/typed-interrupts/use-interrupt-draft.cjs.map +1 -0
- package/dist/chat/typed-interrupts/use-interrupt-draft.d.ts +29 -0
- package/dist/chat/typed-interrupts/use-interrupt-draft.js +106 -0
- package/dist/chat/typed-interrupts/use-interrupt-draft.js.map +1 -0
- package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.cjs +231 -0
- package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.cjs.map +1 -0
- package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.d.ts +66 -0
- package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.js +231 -0
- package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.js.map +1 -0
- package/dist/chat-ui/composer/composer-named-agents.cjs +13 -0
- package/dist/chat-ui/composer/composer-named-agents.cjs.map +1 -0
- package/dist/chat-ui/composer/composer-named-agents.d.ts +20 -0
- package/dist/chat-ui/composer/composer-named-agents.js +13 -0
- package/dist/chat-ui/composer/composer-named-agents.js.map +1 -0
- package/dist/chat-ui/composer/slash-command-menu.cjs +143 -0
- package/dist/chat-ui/composer/slash-command-menu.cjs.map +1 -0
- package/dist/chat-ui/composer/slash-command-menu.d.ts +19 -0
- package/dist/chat-ui/composer/slash-command-menu.js +143 -0
- package/dist/chat-ui/composer/slash-command-menu.js.map +1 -0
- package/dist/chat-ui/composer/slash-commands-extension.cjs +51 -0
- package/dist/chat-ui/composer/slash-commands-extension.cjs.map +1 -0
- package/dist/chat-ui/composer/slash-commands-extension.d.ts +39 -0
- package/dist/chat-ui/composer/slash-commands-extension.js +51 -0
- package/dist/chat-ui/composer/slash-commands-extension.js.map +1 -0
- package/dist/chat-ui/composer/slash-commands.cjs +74 -0
- package/dist/chat-ui/composer/slash-commands.cjs.map +1 -0
- package/dist/chat-ui/composer/slash-commands.d.ts +82 -0
- package/dist/chat-ui/composer/slash-commands.js +74 -0
- package/dist/chat-ui/composer/slash-commands.js.map +1 -0
- package/dist/chat-ui/composer/tiptap-composer.cjs +135 -9
- package/dist/chat-ui/composer/tiptap-composer.cjs.map +1 -1
- package/dist/chat-ui/composer/tiptap-composer.d.ts +61 -2
- package/dist/chat-ui/composer/tiptap-composer.js +135 -9
- package/dist/chat-ui/composer/tiptap-composer.js.map +1 -1
- package/dist/chat-ui/index.cjs +3 -0
- package/dist/chat-ui/index.cjs.map +1 -1
- package/dist/chat-ui/index.d.ts +3 -2
- package/dist/chat-ui/index.js +3 -0
- package/dist/chat-ui/index.js.map +1 -1
- package/dist/chat-ui/mentions/mention-chip.cjs +1 -1
- package/dist/chat-ui/mentions/mention-chip.cjs.map +1 -1
- package/dist/chat-ui/mentions/mention-chip.js +2 -2
- package/dist/chat-ui/mentions/mention-chip.js.map +1 -1
- package/dist/chat-ui/mentions/mention-extension.cjs +8 -1
- package/dist/chat-ui/mentions/mention-extension.cjs.map +1 -1
- package/dist/chat-ui/mentions/mention-extension.js +8 -1
- package/dist/chat-ui/mentions/mention-extension.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/get-scope-name.cjs +1 -0
- package/dist/chat-ui/mentions/suggestions/components/get-scope-name.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/get-scope-name.js +1 -0
- package/dist/chat-ui/mentions/suggestions/components/get-scope-name.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/mention-icon.cjs +2 -0
- package/dist/chat-ui/mentions/suggestions/components/mention-icon.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/mention-icon.js +3 -1
- package/dist/chat-ui/mentions/suggestions/components/mention-icon.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/menu-item.cjs +1 -1
- package/dist/chat-ui/mentions/suggestions/components/menu-item.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/components/menu-item.js +1 -1
- package/dist/chat-ui/mentions/suggestions/components/menu-item.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/api-client.cjs +36 -0
- package/dist/chat-ui/mentions/suggestions/data/api-client.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/api-client.d.ts +42 -0
- package/dist/chat-ui/mentions/suggestions/data/api-client.js +36 -0
- package/dist/chat-ui/mentions/suggestions/data/api-client.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/sources/index.cjs +235 -19
- package/dist/chat-ui/mentions/suggestions/data/sources/index.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/sources/index.d.ts +88 -10
- package/dist/chat-ui/mentions/suggestions/data/sources/index.js +236 -20
- package/dist/chat-ui/mentions/suggestions/data/sources/index.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/types.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/types.d.ts +27 -1
- package/dist/chat-ui/mentions/suggestions/data/types.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.cjs +56 -5
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.d.ts +26 -6
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.js +57 -6
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.js.map +1 -1
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.cjs +34 -17
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.d.ts +19 -1
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.js +35 -18
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.js.map +1 -1
- package/dist/chat-ui/statewire.d.ts +1 -1
- package/dist/chat-ui/thread/statewire-history-edge.cjs +15 -0
- package/dist/chat-ui/thread/statewire-history-edge.cjs.map +1 -1
- package/dist/chat-ui/thread/statewire-history-edge.d.ts +4 -1
- package/dist/chat-ui/thread/statewire-history-edge.js +15 -0
- package/dist/chat-ui/thread/statewire-history-edge.js.map +1 -1
- package/dist/collab/client.cjs +17 -5
- package/dist/collab/client.cjs.map +1 -1
- package/dist/collab/client.d.ts +22 -7
- package/dist/collab/client.js +17 -5
- package/dist/collab/client.js.map +1 -1
- package/dist/composer/ComposerAttachedReferences.cjs +119 -0
- package/dist/composer/ComposerAttachedReferences.cjs.map +1 -0
- package/dist/composer/ComposerAttachedReferences.d.ts +26 -0
- package/dist/composer/ComposerAttachedReferences.js +119 -0
- package/dist/composer/ComposerAttachedReferences.js.map +1 -0
- package/dist/composer/ComposerNamedAgents.cjs +63 -0
- package/dist/composer/ComposerNamedAgents.cjs.map +1 -0
- package/dist/composer/ComposerNamedAgents.d.ts +16 -0
- package/dist/composer/ComposerNamedAgents.js +63 -0
- package/dist/composer/ComposerNamedAgents.js.map +1 -0
- package/dist/composer/attached-references.cjs +159 -0
- package/dist/composer/attached-references.cjs.map +1 -0
- package/dist/composer/attached-references.d.ts +86 -0
- package/dist/composer/attached-references.js +159 -0
- package/dist/composer/attached-references.js.map +1 -0
- package/dist/composer/build-composed-message.cjs +14 -7
- package/dist/composer/build-composed-message.cjs.map +1 -1
- package/dist/composer/build-composed-message.d.ts +6 -1
- package/dist/composer/build-composed-message.js +14 -7
- package/dist/composer/build-composed-message.js.map +1 -1
- package/dist/composer/composer-handoff.cjs +6 -2
- package/dist/composer/composer-handoff.cjs.map +1 -1
- package/dist/composer/composer-handoff.d.ts +7 -1
- package/dist/composer/composer-handoff.js +6 -2
- package/dist/composer/composer-handoff.js.map +1 -1
- package/dist/composer/folder-upload.cjs +149 -0
- package/dist/composer/folder-upload.cjs.map +1 -0
- package/dist/composer/folder-upload.d.ts +79 -0
- package/dist/composer/folder-upload.js +149 -0
- package/dist/composer/folder-upload.js.map +1 -0
- package/dist/composer/index.d.ts +1 -1
- package/dist/composer/useAttachToChat.cjs +35 -0
- package/dist/composer/useAttachToChat.cjs.map +1 -0
- package/dist/composer/useAttachToChat.d.ts +54 -0
- package/dist/composer/useAttachToChat.js +35 -0
- package/dist/composer/useAttachToChat.js.map +1 -0
- package/dist/composer/useAttachedReferencesComposerProps.cjs +19 -0
- package/dist/composer/useAttachedReferencesComposerProps.cjs.map +1 -0
- package/dist/composer/useAttachedReferencesComposerProps.d.ts +12 -0
- package/dist/composer/useAttachedReferencesComposerProps.js +19 -0
- package/dist/composer/useAttachedReferencesComposerProps.js.map +1 -0
- package/dist/composer/useFileUpload.cjs +95 -7
- package/dist/composer/useFileUpload.cjs.map +1 -1
- package/dist/composer/useFileUpload.d.ts +21 -2
- package/dist/composer/useFileUpload.js +95 -7
- package/dist/composer/useFileUpload.js.map +1 -1
- package/dist/data/athena-api-error.cjs +125 -0
- package/dist/data/athena-api-error.cjs.map +1 -0
- package/dist/data/athena-api-error.d.ts +96 -0
- package/dist/data/athena-api-error.js +125 -0
- package/dist/data/athena-api-error.js.map +1 -0
- package/dist/data/athena-data-client.cjs +106 -0
- package/dist/data/athena-data-client.cjs.map +1 -0
- package/dist/data/athena-data-client.d.ts +74 -0
- package/dist/data/athena-data-client.js +106 -0
- package/dist/data/athena-data-client.js.map +1 -0
- package/dist/data/athena-member.cjs +93 -0
- package/dist/data/athena-member.cjs.map +1 -0
- package/dist/data/athena-member.d.ts +125 -0
- package/dist/data/athena-member.js +93 -0
- package/dist/data/athena-member.js.map +1 -0
- package/dist/data/athena-request.cjs +458 -0
- package/dist/data/athena-request.cjs.map +1 -0
- package/dist/data/athena-request.d.ts +120 -0
- package/dist/data/athena-request.js +458 -0
- package/dist/data/athena-request.js.map +1 -0
- package/dist/data/use-athena-fetch.cjs +14 -0
- package/dist/data/use-athena-fetch.cjs.map +1 -0
- package/dist/data/use-athena-fetch.d.ts +19 -0
- package/dist/data/use-athena-fetch.js +14 -0
- package/dist/data/use-athena-fetch.js.map +1 -0
- package/dist/data/use-athena-graphql.cjs +66 -0
- package/dist/data/use-athena-graphql.cjs.map +1 -0
- package/dist/data/use-athena-graphql.d.ts +56 -0
- package/dist/data/use-athena-graphql.js +66 -0
- package/dist/data/use-athena-graphql.js.map +1 -0
- package/dist/data/use-athena-rest.cjs +33 -0
- package/dist/data/use-athena-rest.cjs.map +1 -0
- package/dist/data/use-athena-rest.d.ts +21 -0
- package/dist/data/use-athena-rest.js +33 -0
- package/dist/data/use-athena-rest.js.map +1 -0
- package/dist/data/use-semantic-query.cjs +44 -0
- package/dist/data/use-semantic-query.cjs.map +1 -0
- package/dist/data/use-semantic-query.d.ts +92 -0
- package/dist/data/use-semantic-query.js +44 -0
- package/dist/data/use-semantic-query.js.map +1 -0
- package/dist/diagnostics/athena-diagnostics.cjs.map +1 -1
- package/dist/diagnostics/athena-diagnostics.d.ts +5 -1
- package/dist/diagnostics/athena-diagnostics.js.map +1 -1
- package/dist/diagnostics/errors.cjs +7 -0
- package/dist/diagnostics/errors.cjs.map +1 -1
- package/dist/diagnostics/errors.d.ts +7 -0
- package/dist/diagnostics/errors.js +7 -0
- package/dist/diagnostics/errors.js.map +1 -1
- package/dist/index.cjs +155 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +72 -13
- package/dist/index.js +148 -4
- package/dist/index.js.map +1 -1
- package/dist/keryx-http/src/initial-sync.cjs +64 -16
- package/dist/keryx-http/src/initial-sync.cjs.map +1 -1
- package/dist/keryx-http/src/initial-sync.d.ts +31 -1
- package/dist/keryx-http/src/initial-sync.js +64 -16
- package/dist/keryx-http/src/initial-sync.js.map +1 -1
- package/dist/keryx-http/src/own-awareness.cjs +20 -0
- package/dist/keryx-http/src/own-awareness.cjs.map +1 -0
- package/dist/keryx-http/src/own-awareness.d.ts +50 -0
- package/dist/keryx-http/src/own-awareness.js +20 -0
- package/dist/keryx-http/src/own-awareness.js.map +1 -0
- package/dist/keryx-http/src/update-attributions.cjs +26 -1
- package/dist/keryx-http/src/update-attributions.cjs.map +1 -1
- package/dist/keryx-http/src/update-attributions.d.ts +10 -1
- package/dist/keryx-http/src/update-attributions.js +26 -1
- package/dist/keryx-http/src/update-attributions.js.map +1 -1
- package/dist/offline/chat-outbox.cjs +262 -26
- package/dist/offline/chat-outbox.cjs.map +1 -1
- package/dist/offline/chat-outbox.d.ts +90 -12
- package/dist/offline/chat-outbox.js +263 -27
- package/dist/offline/chat-outbox.js.map +1 -1
- package/dist/provider/AthenaProvider.cjs +63 -19
- package/dist/provider/AthenaProvider.cjs.map +1 -1
- package/dist/provider/AthenaProvider.d.ts +24 -8
- package/dist/provider/AthenaProvider.js +66 -22
- package/dist/provider/AthenaProvider.js.map +1 -1
- package/dist/react/package.json.cjs +1 -1
- package/dist/react/package.json.js +1 -1
- package/dist/references/src/anchors/types.cjs +5 -0
- package/dist/references/src/anchors/types.cjs.map +1 -1
- package/dist/references/src/anchors/types.js +5 -0
- package/dist/references/src/anchors/types.js.map +1 -1
- package/dist/references/src/attachable.cjs +149 -0
- package/dist/references/src/attachable.cjs.map +1 -0
- package/dist/references/src/attachable.d.ts +87 -0
- package/dist/references/src/attachable.js +149 -0
- package/dist/references/src/attachable.js.map +1 -0
- package/dist/runtime/StatewirePlanModeLaneSync.cjs +93 -0
- package/dist/runtime/StatewirePlanModeLaneSync.cjs.map +1 -0
- package/dist/runtime/StatewirePlanModeLaneSync.d.ts +34 -0
- package/dist/runtime/StatewirePlanModeLaneSync.js +93 -0
- package/dist/runtime/StatewirePlanModeLaneSync.js.map +1 -0
- package/dist/runtime/StatewireThreadConfigLaneSync.cjs +2 -0
- package/dist/runtime/StatewireThreadConfigLaneSync.cjs.map +1 -1
- package/dist/runtime/StatewireThreadConfigLaneSync.d.ts +4 -0
- package/dist/runtime/StatewireThreadConfigLaneSync.js +2 -0
- package/dist/runtime/StatewireThreadConfigLaneSync.js.map +1 -1
- package/dist/runtime/statewire-plan-mode.cjs +71 -0
- package/dist/runtime/statewire-plan-mode.cjs.map +1 -0
- package/dist/runtime/statewire-plan-mode.d.ts +88 -0
- package/dist/runtime/statewire-plan-mode.js +71 -0
- package/dist/runtime/statewire-plan-mode.js.map +1 -0
- package/dist/runtime/statewire-run-config.cjs +18 -1
- package/dist/runtime/statewire-run-config.cjs.map +1 -1
- package/dist/runtime/statewire-run-config.d.ts +20 -0
- package/dist/runtime/statewire-run-config.js +18 -1
- package/dist/runtime/statewire-run-config.js.map +1 -1
- package/dist/runtime/statewire-session-key.cjs +11 -5
- package/dist/runtime/statewire-session-key.cjs.map +1 -1
- package/dist/runtime/statewire-session-key.d.ts +22 -10
- package/dist/runtime/statewire-session-key.js +11 -5
- package/dist/runtime/statewire-session-key.js.map +1 -1
- package/dist/runtime/useAthenaStatewireRuntime.cjs +65 -8
- package/dist/runtime/useAthenaStatewireRuntime.cjs.map +1 -1
- package/dist/runtime/useAthenaStatewireRuntime.d.ts +26 -10
- package/dist/runtime/useAthenaStatewireRuntime.js +67 -10
- package/dist/runtime/useAthenaStatewireRuntime.js.map +1 -1
- package/dist/search/useAthenaAssets.cjs +394 -0
- package/dist/search/useAthenaAssets.cjs.map +1 -0
- package/dist/search/useAthenaAssets.d.ts +186 -0
- package/dist/search/useAthenaAssets.js +394 -0
- package/dist/search/useAthenaAssets.js.map +1 -0
- package/dist/sheet-range/index.cjs +4 -0
- package/dist/sheet-range/index.cjs.map +1 -1
- package/dist/sheet-range/index.d.ts +4 -2
- package/dist/sheet-range/index.js +4 -0
- package/dist/sheet-range/index.js.map +1 -1
- package/dist/sheet-range/query-range.cjs +102 -0
- package/dist/sheet-range/query-range.cjs.map +1 -0
- package/dist/sheet-range/query-range.d.ts +46 -0
- package/dist/sheet-range/query-range.js +102 -0
- package/dist/sheet-range/query-range.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/subagents/index.cjs +49 -0
- package/dist/subagents/index.cjs.map +1 -0
- package/dist/subagents/index.d.ts +16 -0
- package/dist/subagents/index.js +49 -0
- package/dist/subagents/index.js.map +1 -0
- package/dist/subagents/lane-follow.cjs +19 -0
- package/dist/subagents/lane-follow.cjs.map +1 -0
- package/dist/subagents/lane-follow.d.ts +9 -0
- package/dist/subagents/lane-follow.js +19 -0
- package/dist/subagents/lane-follow.js.map +1 -0
- package/dist/subagents/lane-model.cjs +178 -0
- package/dist/subagents/lane-model.cjs.map +1 -0
- package/dist/subagents/lane-model.d.ts +140 -0
- package/dist/subagents/lane-model.js +178 -0
- package/dist/subagents/lane-model.js.map +1 -0
- package/dist/subagents/lane-parts.cjs +517 -0
- package/dist/subagents/lane-parts.cjs.map +1 -0
- package/dist/subagents/lane-parts.d.ts +130 -0
- package/dist/subagents/lane-parts.js +517 -0
- package/dist/subagents/lane-parts.js.map +1 -0
- package/dist/subagents/subagent-lane-group.cjs +215 -0
- package/dist/subagents/subagent-lane-group.cjs.map +1 -0
- package/dist/subagents/subagent-lane-group.d.ts +67 -0
- package/dist/subagents/subagent-lane-group.js +215 -0
- package/dist/subagents/subagent-lane-group.js.map +1 -0
- package/dist/subagents/subagent-transcript-drawer.cjs +431 -0
- package/dist/subagents/subagent-transcript-drawer.cjs.map +1 -0
- package/dist/subagents/subagent-transcript-drawer.d.ts +78 -0
- package/dist/subagents/subagent-transcript-drawer.js +431 -0
- package/dist/subagents/subagent-transcript-drawer.js.map +1 -0
- package/dist/subagents/task-subagent-group.cjs +115 -0
- package/dist/subagents/task-subagent-group.cjs.map +1 -0
- package/dist/subagents/task-subagent-group.d.ts +36 -0
- package/dist/subagents/task-subagent-group.js +115 -0
- package/dist/subagents/task-subagent-group.js.map +1 -0
- package/dist/subagents/use-omitted-images-in-view.cjs +68 -0
- package/dist/subagents/use-omitted-images-in-view.cjs.map +1 -0
- package/dist/subagents/use-omitted-images-in-view.d.ts +21 -0
- package/dist/subagents/use-omitted-images-in-view.js +68 -0
- package/dist/subagents/use-omitted-images-in-view.js.map +1 -0
- package/dist/threads/Inbox.cjs +2 -2
- package/dist/threads/Inbox.cjs.map +1 -1
- package/dist/threads/SessionList.cjs +27 -24
- package/dist/threads/SessionList.cjs.map +1 -1
- package/dist/threads/SessionList.js +22 -19
- package/dist/threads/SessionList.js.map +1 -1
- package/dist/threads/SessionsPage.cjs +13 -7
- package/dist/threads/SessionsPage.cjs.map +1 -1
- package/dist/threads/SessionsPage.d.ts +10 -1
- package/dist/threads/SessionsPage.js +9 -3
- package/dist/threads/SessionsPage.js.map +1 -1
- package/dist/threads/live-session-rows.cjs +207 -0
- package/dist/threads/live-session-rows.cjs.map +1 -0
- package/dist/threads/live-session-rows.d.ts +175 -0
- package/dist/threads/live-session-rows.js +207 -0
- package/dist/threads/live-session-rows.js.map +1 -0
- package/dist/threads/session-list-model.cjs.map +1 -1
- package/dist/threads/session-list-model.d.ts +2 -1
- package/dist/threads/session-list-model.js.map +1 -1
- package/dist/threads/session-row-parts.cjs +3 -3
- package/dist/threads/session-row-parts.cjs.map +1 -1
- package/dist/threads/sessions-page-model.cjs +13 -5
- package/dist/threads/sessions-page-model.cjs.map +1 -1
- package/dist/threads/sessions-page-model.d.ts +7 -0
- package/dist/threads/sessions-page-model.js +11 -3
- package/dist/threads/sessions-page-model.js.map +1 -1
- package/dist/threads/sessions-page-storage.cjs +8 -8
- package/dist/threads/sessions-page-storage.cjs.map +1 -1
- package/dist/threads/sessions-page-storage.d.ts +5 -1
- package/dist/threads/sessions-page-storage.js +8 -8
- package/dist/threads/sessions-page-storage.js.map +1 -1
- package/dist/threads/statewire-thread-list.cjs +173 -20
- package/dist/threads/statewire-thread-list.cjs.map +1 -1
- package/dist/threads/statewire-thread-list.d.ts +44 -1
- package/dist/threads/statewire-thread-list.js +174 -21
- package/dist/threads/statewire-thread-list.js.map +1 -1
- package/dist/threads/use-athena-sessions.cjs +1 -0
- package/dist/threads/use-athena-sessions.cjs.map +1 -1
- package/dist/threads/use-athena-sessions.d.ts +7 -0
- package/dist/threads/use-athena-sessions.js +1 -0
- package/dist/threads/use-athena-sessions.js.map +1 -1
- package/dist/threads/use-athena-thread-agent.cjs +31 -0
- package/dist/threads/use-athena-thread-agent.cjs.map +1 -0
- package/dist/threads/use-athena-thread-agent.d.ts +38 -0
- package/dist/threads/use-athena-thread-agent.js +31 -0
- package/dist/threads/use-athena-thread-agent.js.map +1 -0
- package/dist/threads/use-athena-thread-plan-mode.cjs +18 -0
- package/dist/threads/use-athena-thread-plan-mode.cjs.map +1 -0
- package/dist/threads/use-athena-thread-plan-mode.d.ts +18 -0
- package/dist/threads/use-athena-thread-plan-mode.js +18 -0
- package/dist/threads/use-athena-thread-plan-mode.js.map +1 -0
- package/dist/threads/use-rest-conversation-history.d.ts +1 -0
- package/dist/tools/agent-creations.cjs +97 -0
- package/dist/tools/agent-creations.cjs.map +1 -0
- package/dist/tools/agent-creations.d.ts +38 -0
- package/dist/tools/agent-creations.js +97 -0
- package/dist/tools/agent-creations.js.map +1 -0
- package/dist/tools/agent-highlights.cjs +100 -0
- package/dist/tools/agent-highlights.cjs.map +1 -0
- package/dist/tools/agent-highlights.d.ts +57 -0
- package/dist/tools/agent-highlights.js +100 -0
- package/dist/tools/agent-highlights.js.map +1 -0
- package/dist/tools/append-document-tool-ui.cjs +1 -0
- package/dist/tools/append-document-tool-ui.cjs.map +1 -1
- package/dist/tools/append-document-tool-ui.d.ts +7 -0
- package/dist/tools/append-document-tool-ui.js +2 -1
- package/dist/tools/append-document-tool-ui.js.map +1 -1
- package/dist/tools/auto-open-tools.cjs +144 -71
- package/dist/tools/auto-open-tools.cjs.map +1 -1
- package/dist/tools/auto-open-tools.d.ts +131 -1
- package/dist/tools/auto-open-tools.js +145 -72
- package/dist/tools/auto-open-tools.js.map +1 -1
- package/dist/tools/browser-tool-uis.cjs +594 -0
- package/dist/tools/browser-tool-uis.cjs.map +1 -0
- package/dist/tools/browser-tool-uis.d.ts +8 -0
- package/dist/tools/browser-tool-uis.js +594 -0
- package/dist/tools/browser-tool-uis.js.map +1 -0
- package/dist/tools/computer-asset-tool-uis.cjs +313 -0
- package/dist/tools/computer-asset-tool-uis.cjs.map +1 -0
- package/dist/tools/computer-asset-tool-uis.d.ts +5 -0
- package/dist/tools/computer-asset-tool-uis.js +313 -0
- package/dist/tools/computer-asset-tool-uis.js.map +1 -0
- package/dist/tools/document-edit-tool-uis.cjs +218 -0
- package/dist/tools/document-edit-tool-uis.cjs.map +1 -0
- package/dist/tools/document-edit-tool-uis.d.ts +40 -0
- package/dist/tools/document-edit-tool-uis.js +218 -0
- package/dist/tools/document-edit-tool-uis.js.map +1 -0
- package/dist/tools/drive-tool-uis.cjs +425 -0
- package/dist/tools/drive-tool-uis.cjs.map +1 -0
- package/dist/tools/drive-tool-uis.d.ts +120 -0
- package/dist/tools/drive-tool-uis.js +425 -0
- package/dist/tools/drive-tool-uis.js.map +1 -0
- package/dist/tools/email-calendar-tool-uis.cjs +789 -0
- package/dist/tools/email-calendar-tool-uis.cjs.map +1 -0
- package/dist/tools/email-calendar-tool-uis.d.ts +129 -0
- package/dist/tools/email-calendar-tool-uis.js +789 -0
- package/dist/tools/email-calendar-tool-uis.js.map +1 -0
- package/dist/tools/ontology-tool-uis.cjs +83 -0
- package/dist/tools/ontology-tool-uis.cjs.map +1 -0
- package/dist/tools/ontology-tool-uis.d.ts +9 -0
- package/dist/tools/ontology-tool-uis.js +83 -0
- package/dist/tools/ontology-tool-uis.js.map +1 -0
- package/dist/tools/orchestration-tool-uis.cjs +586 -0
- package/dist/tools/orchestration-tool-uis.cjs.map +1 -0
- package/dist/tools/orchestration-tool-uis.d.ts +141 -0
- package/dist/tools/orchestration-tool-uis.js +586 -0
- package/dist/tools/orchestration-tool-uis.js.map +1 -0
- package/dist/tools/presentation-edit-tool-uis.cjs +516 -0
- package/dist/tools/presentation-edit-tool-uis.cjs.map +1 -0
- package/dist/tools/presentation-edit-tool-uis.d.ts +73 -0
- package/dist/tools/presentation-edit-tool-uis.js +516 -0
- package/dist/tools/presentation-edit-tool-uis.js.map +1 -0
- package/dist/tools/project-tool-uis.cjs +213 -0
- package/dist/tools/project-tool-uis.cjs.map +1 -0
- package/dist/tools/project-tool-uis.d.ts +14 -0
- package/dist/tools/project-tool-uis.js +213 -0
- package/dist/tools/project-tool-uis.js.map +1 -0
- package/dist/tools/sandbox-tool-uis.cjs +491 -0
- package/dist/tools/sandbox-tool-uis.cjs.map +1 -0
- package/dist/tools/sandbox-tool-uis.d.ts +116 -0
- package/dist/tools/sandbox-tool-uis.js +491 -0
- package/dist/tools/sandbox-tool-uis.js.map +1 -0
- package/dist/tools/sheet-query-tool-ui.cjs +138 -0
- package/dist/tools/sheet-query-tool-ui.cjs.map +1 -0
- package/dist/tools/sheet-query-tool-ui.d.ts +15 -0
- package/dist/tools/sheet-query-tool-ui.js +138 -0
- package/dist/tools/sheet-query-tool-ui.js.map +1 -0
- package/dist/tools/studio-screenshot-tool-uis.cjs +262 -0
- package/dist/tools/studio-screenshot-tool-uis.cjs.map +1 -0
- package/dist/tools/studio-screenshot-tool-uis.d.ts +52 -0
- package/dist/tools/studio-screenshot-tool-uis.js +262 -0
- package/dist/tools/studio-screenshot-tool-uis.js.map +1 -0
- package/dist/tools/subagent-task-tool-ui.cjs +24 -475
- package/dist/tools/subagent-task-tool-ui.cjs.map +1 -1
- package/dist/tools/subagent-task-tool-ui.d.ts +19 -103
- package/dist/tools/subagent-task-tool-ui.js +28 -479
- package/dist/tools/subagent-task-tool-ui.js.map +1 -1
- package/dist/tools/tool-summary.cjs +36 -0
- package/dist/tools/tool-summary.cjs.map +1 -1
- package/dist/tools/tool-summary.js +36 -0
- package/dist/tools/tool-summary.js.map +1 -1
- package/dist/tools/tool-uis.cjs +181 -53
- package/dist/tools/tool-uis.cjs.map +1 -1
- package/dist/tools/tool-uis.d.ts +40 -0
- package/dist/tools/tool-uis.js +183 -55
- package/dist/tools/tool-uis.js.map +1 -1
- package/dist/typed-interrupts/index.cjs +15 -0
- package/dist/typed-interrupts/index.cjs.map +1 -0
- package/dist/typed-interrupts/index.d.ts +20 -0
- package/dist/typed-interrupts/index.js +15 -0
- package/dist/typed-interrupts/index.js.map +1 -0
- package/dist/workbench/session-workbench-panes.cjs +6 -6
- package/dist/workbench/session-workbench-panes.cjs.map +1 -1
- package/package.json +28 -6
- package/dist/agent-runtime/src/chat-outbox-store.cjs +0 -510
- package/dist/agent-runtime/src/chat-outbox-store.cjs.map +0 -1
- package/dist/agent-runtime/src/chat-outbox-store.d.ts +0 -210
- package/dist/agent-runtime/src/chat-outbox-store.js +0 -510
- package/dist/agent-runtime/src/chat-outbox-store.js.map +0 -1
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
export type DictationSurface = 'desktop' | 'web' | 'mobile';
|
|
2
|
+
export type DictationClientPlatform = 'macos' | 'windows' | 'linux' | 'ios' | 'android' | 'web';
|
|
3
|
+
/** How a dictation ended. Agora takes any lowercase snake_case code; these are the shared ones. */
|
|
4
|
+
export declare const DictationOutcome: {
|
|
5
|
+
readonly INSERTED: 'inserted';
|
|
6
|
+
readonly COPIED: 'copied';
|
|
7
|
+
readonly COMMENT_DRAFTED: 'comment_drafted';
|
|
8
|
+
readonly INSERT_FAILED: 'insert_failed';
|
|
9
|
+
readonly NOT_INSERTED: 'not_inserted';
|
|
10
|
+
readonly CANCELLED: 'cancelled';
|
|
11
|
+
readonly RESTORED: 'restored';
|
|
12
|
+
readonly EMPTY: 'empty';
|
|
13
|
+
readonly FAILED: 'failed';
|
|
14
|
+
};
|
|
15
|
+
export type DictationOutcome = (typeof DictationOutcome)[keyof typeof DictationOutcome];
|
|
16
|
+
export declare const DictationMode: {
|
|
17
|
+
readonly PUSH_TO_TALK: 'push_to_talk';
|
|
18
|
+
readonly HANDS_FREE: 'hands_free';
|
|
19
|
+
};
|
|
20
|
+
export type DictationMode = (typeof DictationMode)[keyof typeof DictationMode];
|
|
21
|
+
/** The moments a dictation's latency is measured between. */
|
|
22
|
+
export declare const DictationMark: {
|
|
23
|
+
readonly MIC_STARTED: 'mic_started';
|
|
24
|
+
readonly STREAM_OPEN: 'stream_open';
|
|
25
|
+
readonly FIRST_RESULT: 'first_result';
|
|
26
|
+
readonly STOPPED: 'stopped';
|
|
27
|
+
readonly FINALIZED: 'finalized';
|
|
28
|
+
readonly DELIVERED: 'delivered';
|
|
29
|
+
};
|
|
30
|
+
export type DictationMark = (typeof DictationMark)[keyof typeof DictationMark];
|
|
31
|
+
/** One hour of audio: what one tab holds for one dictation (~115 MB at 16 kHz). */
|
|
32
|
+
export declare const MAX_CAPTURED_AUDIO_SECONDS: number;
|
|
33
|
+
/** Agora's ceiling on `text` and `raw_transcript`. */
|
|
34
|
+
export declare const MAX_DICTATION_TEXT_CHARS = 1000000;
|
|
35
|
+
/** A v4 UUID: agora keys a person's dictation by it, so a retry lands on the same record. */
|
|
36
|
+
export declare function mintDictationId(): string;
|
|
37
|
+
/**
|
|
38
|
+
* Where the WAV meets the recognizer's clock. From `wav_seconds` on, a result
|
|
39
|
+
* at stream time `t` sits at `wav_seconds + (t - stream_seconds)` in the WAV.
|
|
40
|
+
* Each socket the session opens starts its clock at zero, so a reconnect
|
|
41
|
+
* starts a new segment.
|
|
42
|
+
*/
|
|
43
|
+
export interface DictationStreamSegment {
|
|
44
|
+
wav_seconds: number;
|
|
45
|
+
stream_seconds: number;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Everything one dictation produced while the person spoke. Appends are copies
|
|
49
|
+
* and counters only, so feeding it from the audio callback and the session's
|
|
50
|
+
* events costs the dictation nothing; the record is built afterwards.
|
|
51
|
+
*/
|
|
52
|
+
export declare class DictationCapture {
|
|
53
|
+
readonly clientDictationId: string;
|
|
54
|
+
/** Epoch ms the dictation began (the person asked to dictate). */
|
|
55
|
+
readonly startedAt: number;
|
|
56
|
+
readonly sampleRate: number;
|
|
57
|
+
private readonly now;
|
|
58
|
+
private readonly maxAudioBytes;
|
|
59
|
+
private readonly audio;
|
|
60
|
+
private audioBytes;
|
|
61
|
+
private audioBytesDropped;
|
|
62
|
+
private readonly results;
|
|
63
|
+
private resultsBytes;
|
|
64
|
+
private resultsDropped;
|
|
65
|
+
private readonly marks;
|
|
66
|
+
private readonly segments;
|
|
67
|
+
private readonly resultSegments;
|
|
68
|
+
private resolveSettled;
|
|
69
|
+
private readonly settledPromise;
|
|
70
|
+
constructor({ clientDictationId, now, sampleRate, maxAudioSeconds, }?: {
|
|
71
|
+
clientDictationId?: string;
|
|
72
|
+
now?: () => number;
|
|
73
|
+
sampleRate?: number;
|
|
74
|
+
maxAudioSeconds?: number;
|
|
75
|
+
});
|
|
76
|
+
/** One chunk of mono 16-bit little-endian PCM, as handed to the session's `sendAudio`. */
|
|
77
|
+
addAudio(chunk: ArrayBuffer): void;
|
|
78
|
+
/** A final `Results` message as Deepgram sent it (the session's `final-result` event). */
|
|
79
|
+
addResult(message: unknown): void;
|
|
80
|
+
/** Records when `mark` happened; the first time wins. */
|
|
81
|
+
mark(mark: DictationMark, at?: number): void;
|
|
82
|
+
markedAt(mark: DictationMark): number | null;
|
|
83
|
+
/**
|
|
84
|
+
* Where the next chunk lands on the recognizer's clock: the session's
|
|
85
|
+
* `sentAudioSeconds` while its socket is open, `null` while the chunk waits
|
|
86
|
+
* for one. Call it before `addAudio`. A jump in the clock (a new socket)
|
|
87
|
+
* starts a new segment.
|
|
88
|
+
*/
|
|
89
|
+
noteStreamPosition(streamSeconds: number | null): void;
|
|
90
|
+
get hasAudio(): boolean;
|
|
91
|
+
get audioSeconds(): number;
|
|
92
|
+
/** What the recognizer finalized, joined: the transcript before any edit or delivery. */
|
|
93
|
+
get finalTranscript(): string;
|
|
94
|
+
get finalResults(): readonly unknown[];
|
|
95
|
+
get audioChunks(): readonly ArrayBuffer[];
|
|
96
|
+
/** What the capture had to leave out to stay inside its bounds (empty when nothing). */
|
|
97
|
+
get truncation(): Record<string, number>;
|
|
98
|
+
get streamSegments(): readonly DictationStreamSegment[];
|
|
99
|
+
/** For each kept final result, the index of the stream segment it was heard on. */
|
|
100
|
+
get resultSegmentIndexes(): readonly number[];
|
|
101
|
+
/** The recognizer has flushed what it will say about this dictation (or it was superseded). */
|
|
102
|
+
settle(): void;
|
|
103
|
+
/** Resolves once settled, or after `timeoutMs` at the latest. */
|
|
104
|
+
whenSettled({ timeoutMs }: {
|
|
105
|
+
timeoutMs: number;
|
|
106
|
+
}): Promise<void>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* A RIFF/WAVE file of uncompressed 16-bit PCM around `chunks`: what agora
|
|
110
|
+
* stores for a dictation (lossless, never Opus or MP3).
|
|
111
|
+
*/
|
|
112
|
+
export declare function encodeDictationWav({ chunks, sampleRate, channels, }: {
|
|
113
|
+
chunks: readonly ArrayBuffer[];
|
|
114
|
+
sampleRate: number;
|
|
115
|
+
channels?: number;
|
|
116
|
+
}): Uint8Array<ArrayBuffer>;
|
|
117
|
+
/** Lowercase hex SHA-256, or `null` on a runtime without WebCrypto (Hermes). */
|
|
118
|
+
export declare function sha256Hex(bytes: Uint8Array): Promise<string | null>;
|
|
119
|
+
/** Milliseconds each step took; `null` where the step never happened. */
|
|
120
|
+
export interface DictationLatency {
|
|
121
|
+
/** Dictation start → the microphone producing audio. */
|
|
122
|
+
mic_start_ms: number | null;
|
|
123
|
+
/** Dictation start → the recognizer's stream open (≈0 for a warm one). */
|
|
124
|
+
stream_open_ms: number | null;
|
|
125
|
+
/** Dictation start → the first words on screen. */
|
|
126
|
+
first_result_ms: number | null;
|
|
127
|
+
/** The person stopping → the recognizer's last result. */
|
|
128
|
+
stop_to_final_ms: number | null;
|
|
129
|
+
/** The person stopping → the text delivered. */
|
|
130
|
+
stop_to_insert_ms: number | null;
|
|
131
|
+
}
|
|
132
|
+
/** The body of `PUT /api/dictations/{client_dictation_id}` (agora's `DictationUpsert`). */
|
|
133
|
+
export interface DictationRecordBody {
|
|
134
|
+
workspace_id: string;
|
|
135
|
+
surface: DictationSurface;
|
|
136
|
+
client_app: string;
|
|
137
|
+
client_version: string;
|
|
138
|
+
client_platform: DictationClientPlatform;
|
|
139
|
+
client_os_version: string | null;
|
|
140
|
+
device_id: string | null;
|
|
141
|
+
started_at: string;
|
|
142
|
+
ended_at: string;
|
|
143
|
+
duration_ms: number;
|
|
144
|
+
mode: string;
|
|
145
|
+
stop_method: string | null;
|
|
146
|
+
outcome: string;
|
|
147
|
+
text: string;
|
|
148
|
+
raw_transcript: string | null;
|
|
149
|
+
/** `null`: agora counts the words of `text`. */
|
|
150
|
+
word_count: number | null;
|
|
151
|
+
language: string | null;
|
|
152
|
+
model: string | null;
|
|
153
|
+
stt_params: Record<string, unknown> | null;
|
|
154
|
+
transcript_results: unknown[] | null;
|
|
155
|
+
target_app_bundle_id: string | null;
|
|
156
|
+
target_app_name: string | null;
|
|
157
|
+
microphone_label: string | null;
|
|
158
|
+
latency: DictationLatency;
|
|
159
|
+
metadata: Record<string, unknown>;
|
|
160
|
+
}
|
|
161
|
+
/** A dictation ready to file: its JSON record and, when anything was heard, its WAV. */
|
|
162
|
+
export interface DictationRecord {
|
|
163
|
+
clientDictationId: string;
|
|
164
|
+
body: DictationRecordBody;
|
|
165
|
+
wav: Uint8Array<ArrayBuffer> | null;
|
|
166
|
+
}
|
|
167
|
+
export interface DictationClient {
|
|
168
|
+
surface: DictationSurface;
|
|
169
|
+
app: string;
|
|
170
|
+
version: string;
|
|
171
|
+
platform: DictationClientPlatform;
|
|
172
|
+
osVersion?: string | null;
|
|
173
|
+
deviceId?: string | null;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The record agora stores for `capture`. `text` is what was delivered (or left
|
|
177
|
+
* on screen); the recognizer's own words go in `raw_transcript` and its final
|
|
178
|
+
* messages in `transcript_results`. Language and model come from the session's
|
|
179
|
+
* listen parameters (`DeepgramDictationSession.listenParams`); `stt_params` is
|
|
180
|
+
* `sttParams` when given (the session's whole request, its keyterms and
|
|
181
|
+
* replacements as lists: `DeepgramDictationSession.sttParams`), else them.
|
|
182
|
+
*/
|
|
183
|
+
export declare function buildDictationRecord({ capture, workspaceId, client, mode, stopMethod, outcome, text, listenParams, sttParams, targetAppBundleId, targetAppName, microphoneLabel, metadata, now, }: {
|
|
184
|
+
capture: DictationCapture;
|
|
185
|
+
workspaceId: string;
|
|
186
|
+
client: DictationClient;
|
|
187
|
+
mode: string;
|
|
188
|
+
stopMethod?: string | null;
|
|
189
|
+
outcome: string;
|
|
190
|
+
text: string;
|
|
191
|
+
listenParams?: Readonly<Record<string, string>>;
|
|
192
|
+
sttParams?: Readonly<Record<string, unknown>>;
|
|
193
|
+
targetAppBundleId?: string | null;
|
|
194
|
+
targetAppName?: string | null;
|
|
195
|
+
microphoneLabel?: string | null;
|
|
196
|
+
metadata?: Record<string, unknown>;
|
|
197
|
+
now?: () => number;
|
|
198
|
+
}): DictationRecord;
|
|
199
|
+
/**
|
|
200
|
+
* One request to agora's dictation routes. `path` is relative to the `/api/`
|
|
201
|
+
* root (`dictations/{id}`), so a host can hand it to a client already rooted there.
|
|
202
|
+
*/
|
|
203
|
+
export type DictationHttpRequest = {
|
|
204
|
+
kind: 'record';
|
|
205
|
+
path: string;
|
|
206
|
+
json: DictationRecordBody;
|
|
207
|
+
} | {
|
|
208
|
+
kind: 'audio';
|
|
209
|
+
path: string;
|
|
210
|
+
wav: Uint8Array<ArrayBuffer>;
|
|
211
|
+
sha256: string | null;
|
|
212
|
+
};
|
|
213
|
+
/** The answer, whatever its status; a send that never got one throws. */
|
|
214
|
+
export interface DictationHttpResponse {
|
|
215
|
+
status: number;
|
|
216
|
+
/** The `Retry-After` header, when the server sent one. */
|
|
217
|
+
retryAfter: string | null;
|
|
218
|
+
/** The parsed JSON body, when there was one. */
|
|
219
|
+
body: unknown;
|
|
220
|
+
}
|
|
221
|
+
export type DictationSend = (request: DictationHttpRequest) => Promise<DictationHttpResponse>;
|
|
222
|
+
export type DictationUploadResult = {
|
|
223
|
+
status: 'stored';
|
|
224
|
+
audio: 'stored' | 'none';
|
|
225
|
+
}
|
|
226
|
+
/** Not stored yet and worth sending again later (offline, server busy, signed out). */
|
|
227
|
+
| {
|
|
228
|
+
status: 'retry_later';
|
|
229
|
+
recordStored: boolean;
|
|
230
|
+
httpStatus: number | null;
|
|
231
|
+
}
|
|
232
|
+
/** Agora refused it for good (a 4xx a retry cannot change). */
|
|
233
|
+
| {
|
|
234
|
+
status: 'refused';
|
|
235
|
+
step: 'record' | 'audio';
|
|
236
|
+
httpStatus: number;
|
|
237
|
+
recordStored: boolean;
|
|
238
|
+
};
|
|
239
|
+
export declare const dictationRecordPath: (clientDictationId: string) => string;
|
|
240
|
+
export declare const dictationAudioPath: (clientDictationId: string) => string;
|
|
241
|
+
/**
|
|
242
|
+
* Files `record`: the JSON record (an idempotent upsert keyed by its id), then
|
|
243
|
+
* its WAV. Each request is tried at most `maxAttempts` times, waiting the
|
|
244
|
+
* server's `Retry-After` (capped at 30 s) or a capped backoff between tries.
|
|
245
|
+
* `recordStored` skips a record an earlier call already stored. The same WAV
|
|
246
|
+
* sent again answers 200; a 409 (`audio_already_stored`: agora holds a
|
|
247
|
+
* different recording for this id, which it never replaces) is a refusal.
|
|
248
|
+
* Never throws.
|
|
249
|
+
*/
|
|
250
|
+
export declare function uploadDictationRecord({ record, send, recordStored, maxAttempts, sleep, backoffMs, }: {
|
|
251
|
+
record: DictationRecord;
|
|
252
|
+
send: DictationSend;
|
|
253
|
+
recordStored?: boolean;
|
|
254
|
+
maxAttempts?: number;
|
|
255
|
+
sleep?: (ms: number) => Promise<void>;
|
|
256
|
+
backoffMs?: (attempt: number) => number;
|
|
257
|
+
}): Promise<DictationUploadResult>;
|
|
258
|
+
interface FetchLikeResponse {
|
|
259
|
+
status: number;
|
|
260
|
+
headers: {
|
|
261
|
+
get: (name: string) => string | null;
|
|
262
|
+
};
|
|
263
|
+
text: () => Promise<string>;
|
|
264
|
+
}
|
|
265
|
+
export type DictationFetch = (url: string, init: {
|
|
266
|
+
method: string;
|
|
267
|
+
headers: Record<string, string>;
|
|
268
|
+
body: string | Uint8Array;
|
|
269
|
+
}) => Promise<FetchLikeResponse>;
|
|
270
|
+
/**
|
|
271
|
+
* A `DictationSend` over `fetch`, for a host without its own API client (the
|
|
272
|
+
* phone app). `baseUrl` is agora's origin; `headers` supplies auth per request.
|
|
273
|
+
*/
|
|
274
|
+
export declare function createFetchDictationSend({ baseUrl, headers, fetchImpl, }: {
|
|
275
|
+
baseUrl: string;
|
|
276
|
+
headers: () => Promise<Record<string, string>> | Record<string, string>;
|
|
277
|
+
fetchImpl?: DictationFetch;
|
|
278
|
+
}): DictationSend;
|
|
279
|
+
export {};
|
|
@@ -57,6 +57,15 @@ export type DeepgramDictationEvent = {
|
|
|
57
57
|
type: 'listened';
|
|
58
58
|
until: number;
|
|
59
59
|
audioSecondsSent: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* A final `Results` message exactly as Deepgram sent it (this recording's, never a reset
|
|
63
|
+
* recording's tail), before the transcript event it produces: what a host keeps to file the
|
|
64
|
+
* dictation (`DictationCapture.addResult`, `./dictation-record`).
|
|
65
|
+
*/
|
|
66
|
+
| {
|
|
67
|
+
type: 'final-result';
|
|
68
|
+
message: unknown;
|
|
60
69
|
};
|
|
61
70
|
type DeepgramDictationListener = (event: DeepgramDictationEvent) => void;
|
|
62
71
|
export type DictationSocketLike = Pick<WebSocket, 'send' | 'close' | 'readyState' | 'binaryType'> & {
|
|
@@ -69,21 +78,72 @@ export interface CreateDictationSocketOptions {
|
|
|
69
78
|
url: string;
|
|
70
79
|
protocols: string[];
|
|
71
80
|
}
|
|
72
|
-
|
|
81
|
+
/** A find-and-replace Deepgram applies to the transcript; an empty `replace` removes what it finds. */
|
|
82
|
+
export interface DictationStreamReplacement {
|
|
83
|
+
find: string;
|
|
84
|
+
replace: string;
|
|
85
|
+
}
|
|
86
|
+
/** What a session's sockets ask Deepgram for, beyond the fixed audio parameters. */
|
|
87
|
+
export interface DictationListenOptions {
|
|
88
|
+
/** Extra Deepgram listen parameters (e.g. `language`, `utterance_end_ms`), one value each. */
|
|
89
|
+
listenParams?: Record<string, string>;
|
|
90
|
+
/** The person's dictionary, one repeated `keyterm` each, in order. */
|
|
91
|
+
keyterms?: readonly string[];
|
|
92
|
+
/** The person's replacements, one repeated `replace` each (`find` or `find:replacement`). */
|
|
93
|
+
replacements?: readonly DictationStreamReplacement[];
|
|
94
|
+
/**
|
|
95
|
+
* Voice lock: only the first speaker heard is kept. It reads Deepgram's speaker labels, so it
|
|
96
|
+
* goes with `diarize: 'true'`; results without labels pass through.
|
|
97
|
+
*/
|
|
98
|
+
voiceLock?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface DeepgramDictationSessionOptions extends DictationListenOptions {
|
|
73
101
|
fetchToken: () => Promise<string>;
|
|
74
102
|
/** Agora origin (http(s)) hosting the dictation relay, e.g. `CONFIG.serverUrl`. */
|
|
75
103
|
serverUrl: string;
|
|
76
|
-
/** Extra Deepgram listen parameters (e.g. `keyterm`, `utterance_end_ms`), one value each. */
|
|
77
|
-
listenParams?: Record<string, string>;
|
|
78
104
|
createSocket?: (options: CreateDictationSocketOptions) => DictationSocketLike;
|
|
79
105
|
keepAliveIntervalMs?: number;
|
|
80
106
|
idleCloseMs?: number;
|
|
81
107
|
finalizeTimeoutMs?: number;
|
|
82
108
|
}
|
|
83
|
-
|
|
109
|
+
/**
|
|
110
|
+
* The relay's URL: the fixed parameters and `listenParams`, then each keyterm as a repeated
|
|
111
|
+
* `keyterm` and each replacement as a repeated `replace`, `find` or `find:replacement` with each
|
|
112
|
+
* part percent-encoded and the separator a literal colon, the way Deepgram (and agora's relay,
|
|
113
|
+
* which refuses the whole stream for one value it does not take) reads it, so a colon inside a
|
|
114
|
+
* part survives.
|
|
115
|
+
*/
|
|
116
|
+
export declare function buildDictationStreamUrl({ serverUrl, listenParams, keyterms, replacements, }: {
|
|
84
117
|
serverUrl: string;
|
|
85
118
|
listenParams?: Record<string, string>;
|
|
119
|
+
keyterms?: readonly string[];
|
|
120
|
+
replacements?: readonly DictationStreamReplacement[];
|
|
86
121
|
}): string;
|
|
122
|
+
/** Voice lock locks onto a speaker once a final result gives them this many words. */
|
|
123
|
+
export declare const VOICE_LOCK_MIN_WORDS = 3;
|
|
124
|
+
/** A result's word with the speaker Deepgram labelled it with (`null` without `diarize`). */
|
|
125
|
+
export interface SpeakerWord {
|
|
126
|
+
text: string;
|
|
127
|
+
speaker: number | null;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Voice lock (Hades' `applyVoiceLock`, as the desktop app runs it): the words of the locked
|
|
131
|
+
* speaker, as text. Until a speaker is locked an interim result shows nothing (the diarizer's
|
|
132
|
+
* interim labels are not settled), and a final result locks onto the speaker with the most words in
|
|
133
|
+
* it once they have `VOICE_LOCK_MIN_WORDS`; before that it is dropped, so background speech never
|
|
134
|
+
* leaks in ahead of the lock. Results without speaker labels pass through.
|
|
135
|
+
*/
|
|
136
|
+
export declare function voiceLocked({ result, lockedSpeaker, }: {
|
|
137
|
+
result: {
|
|
138
|
+
isFinal: boolean;
|
|
139
|
+
transcript: string;
|
|
140
|
+
words: readonly SpeakerWord[];
|
|
141
|
+
};
|
|
142
|
+
lockedSpeaker: number | null;
|
|
143
|
+
}): {
|
|
144
|
+
text: string;
|
|
145
|
+
lockedSpeaker: number | null;
|
|
146
|
+
};
|
|
87
147
|
/**
|
|
88
148
|
* Owns one browser -> Deepgram streaming socket for dictation.
|
|
89
149
|
*
|
|
@@ -93,7 +153,22 @@ export declare function buildDictationStreamUrl({ serverUrl, listenParams, }: {
|
|
|
93
153
|
*/
|
|
94
154
|
export declare class DeepgramDictationSession {
|
|
95
155
|
private readonly fetchToken;
|
|
96
|
-
private readonly
|
|
156
|
+
private readonly serverUrl;
|
|
157
|
+
/** What the next socket opens with (`setListenOptions`). */
|
|
158
|
+
private streamUrl;
|
|
159
|
+
private configuredListenParams;
|
|
160
|
+
private keyterms;
|
|
161
|
+
private replacements;
|
|
162
|
+
private voiceLock;
|
|
163
|
+
/** The URL the socket now open (or opening) was opened with. */
|
|
164
|
+
private socketStreamUrl;
|
|
165
|
+
/**
|
|
166
|
+
* Whether the recording now running filters its results by voice lock: taken from the settings
|
|
167
|
+
* at each new recording and each new socket, so a change applies to the next dictation without
|
|
168
|
+
* a socket of its own (voice lock reads labels the stream already carries, or passes through).
|
|
169
|
+
*/
|
|
170
|
+
private activeVoiceLock;
|
|
171
|
+
private lockedSpeaker;
|
|
97
172
|
private readonly createSocket;
|
|
98
173
|
private readonly keepAliveIntervalMs;
|
|
99
174
|
private readonly idleCloseMs;
|
|
@@ -117,16 +192,40 @@ export declare class DeepgramDictationSession {
|
|
|
117
192
|
private interimSegment;
|
|
118
193
|
private listeners;
|
|
119
194
|
status: DeepgramSocketStatus;
|
|
120
|
-
constructor({ fetchToken, serverUrl, listenParams, createSocket, keepAliveIntervalMs, idleCloseMs, finalizeTimeoutMs, }: DeepgramDictationSessionOptions);
|
|
195
|
+
constructor({ fetchToken, serverUrl, listenParams, keyterms, replacements, voiceLock, createSocket, keepAliveIntervalMs, idleCloseMs, finalizeTimeoutMs, }: DeepgramDictationSessionOptions);
|
|
196
|
+
/** The Deepgram listen parameters the session's sockets open with (one value each). */
|
|
197
|
+
get listenParams(): Readonly<Record<string, string>>;
|
|
198
|
+
/**
|
|
199
|
+
* What a dictation's record keeps of the request: every listen parameter, the keyterms as
|
|
200
|
+
* `keyterm` and the replacements as `replace` (lists), or `replace_count` when listing them would
|
|
201
|
+
* outgrow agora's bound on the record.
|
|
202
|
+
*/
|
|
203
|
+
get sttParams(): Readonly<Record<string, unknown>>;
|
|
204
|
+
/**
|
|
205
|
+
* What the session's sockets ask for from now on (the person changed their settings). Never
|
|
206
|
+
* waits and never cuts a socket short: the socket open now keeps its parameters until the next
|
|
207
|
+
* `connect` replaces it (one still finishing a dictation's last words is kept until it is done),
|
|
208
|
+
* so a change applies to the next dictation.
|
|
209
|
+
*/
|
|
210
|
+
setListenOptions({ listenParams, keyterms, replacements, voiceLock }: DictationListenOptions): void;
|
|
121
211
|
get transcript(): string;
|
|
122
212
|
/** Finalized results only, excluding the in-flight interim segment. */
|
|
123
213
|
get finalizedTranscript(): string;
|
|
214
|
+
/**
|
|
215
|
+
* Seconds of audio the open socket has carried: where the next chunk sent on it starts on
|
|
216
|
+
* Deepgram's result clock. 0 while no socket is open (a socket's clock starts when it opens).
|
|
217
|
+
*/
|
|
218
|
+
get sentAudioSeconds(): number;
|
|
124
219
|
subscribe(listener: DeepgramDictationListener): () => void;
|
|
125
220
|
/** Marks active demand: cancels the idle close and keeps the socket warm. */
|
|
126
221
|
retain(): void;
|
|
127
222
|
/** Ends active demand: flushes pending results and schedules the idle close. */
|
|
128
223
|
release(): void;
|
|
129
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* Resolves once a socket is open. Reuses an open or opening socket, unless the open one asks for
|
|
226
|
+
* what the person's settings no longer do: that one is replaced, once it has nothing left to
|
|
227
|
+
* finalize.
|
|
228
|
+
*/
|
|
130
229
|
connect(): Promise<void>;
|
|
131
230
|
sendAudio(chunk: ArrayBuffer): void;
|
|
132
231
|
/**
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type DictationSnippet } from './dictation-preferences';
|
|
2
|
+
/**
|
|
3
|
+
* `text` with every trigger said in it replaced by its snippet's text (above). The same `text`
|
|
4
|
+
* when there are no snippets or none was said.
|
|
5
|
+
*/
|
|
6
|
+
export declare function expandSnippets({ text, snippets, }: {
|
|
7
|
+
text: string;
|
|
8
|
+
snippets: readonly DictationSnippet[];
|
|
9
|
+
}): string;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type DictationReplacement, type DictationSnippet } from './dictation-preferences';
|
|
3
|
+
/**
|
|
4
|
+
* A person's dictionary, replacements and snippets in and out of Athena as a file, the same in
|
|
5
|
+
* every app that dictates (Settings ▸ Dictation ▸ Snippets on the web and on the desktop).
|
|
6
|
+
*
|
|
7
|
+
* Export is one JSON file of Athena's own (`DICTATION_EXPORT_FORMAT`). Import reads that file back,
|
|
8
|
+
* a plain list with one dictionary word per line, or a two-column CSV whose first row names its
|
|
9
|
+
* columns: `find,replace` for replacements, `trigger,text` for snippets. Nothing else is read as
|
|
10
|
+
* another app's export. An import only adds: what the lists already hold stays as it is (an entry
|
|
11
|
+
* already there, in any case for a replacement's find or a snippet's trigger, is not added again),
|
|
12
|
+
* nothing is removed, and the person is told what was added and what did not fit.
|
|
13
|
+
*/
|
|
14
|
+
export declare const DICTATION_EXPORT_FORMAT = "athena-dictation";
|
|
15
|
+
export declare const DICTATION_EXPORT_VERSION = 1;
|
|
16
|
+
/** The most a file to import may weigh (an export of every snippet at its longest fits). */
|
|
17
|
+
export declare const DICTATION_IMPORT_MAX_BYTES: number;
|
|
18
|
+
/** The most entries of each list a file is read for: past them, entries are counted, not read. */
|
|
19
|
+
export declare const DICTATION_IMPORT_MAX_ENTRIES = 2000;
|
|
20
|
+
/** The most entries a summary names, of each kind; the rest it counts. */
|
|
21
|
+
export declare const DICTATION_IMPORT_MAX_NAMED = 20;
|
|
22
|
+
/** The file kinds an import reads, by extension (each app's file picker offers them). */
|
|
23
|
+
export declare const DICTATION_IMPORT_EXTENSIONS: readonly ['json', 'csv', 'txt'];
|
|
24
|
+
/** The lists a file carries. */
|
|
25
|
+
export interface DictationLists {
|
|
26
|
+
dictionary: readonly string[];
|
|
27
|
+
replacements: readonly DictationReplacement[];
|
|
28
|
+
snippets: readonly DictationSnippet[];
|
|
29
|
+
}
|
|
30
|
+
export declare const DictationList: {
|
|
31
|
+
readonly Dictionary: 'dictionary';
|
|
32
|
+
readonly Replacements: 'replacements';
|
|
33
|
+
readonly Snippets: 'snippets';
|
|
34
|
+
};
|
|
35
|
+
export type DictationList = (typeof DictationList)[keyof typeof DictationList];
|
|
36
|
+
/** Athena's export: what a person keeps in each list, as JSON. */
|
|
37
|
+
export declare function dictationExportOf({ lists, now }: {
|
|
38
|
+
lists: DictationLists;
|
|
39
|
+
now: Date;
|
|
40
|
+
}): string;
|
|
41
|
+
/** The export's file name: the day it was made, in the person's own time zone. */
|
|
42
|
+
export declare function dictationExportFileName({ now }: {
|
|
43
|
+
now: Date;
|
|
44
|
+
}): string;
|
|
45
|
+
declare const EntryCountsSchema: z.ZodObject<{
|
|
46
|
+
dictionary: z.ZodNumber;
|
|
47
|
+
replacements: z.ZodNumber;
|
|
48
|
+
snippets: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type DictationEntryCounts = z.infer<typeof EntryCountsSchema>;
|
|
51
|
+
/**
|
|
52
|
+
* A file read for import: the entries it offers each list (each once, as the lists keep them), the
|
|
53
|
+
* ones it holds that no list can keep as they are (empty, too long, or with a character agora
|
|
54
|
+
* refuses), named by a short label, and how many entries of each list it held past what is read.
|
|
55
|
+
*/
|
|
56
|
+
export declare const DictationImportSchema: z.ZodObject<{
|
|
57
|
+
dictionary: z.ZodArray<z.ZodString>;
|
|
58
|
+
replacements: z.ZodArray<z.ZodObject<{
|
|
59
|
+
find: z.ZodString;
|
|
60
|
+
replace: z.ZodString;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
snippets: z.ZodArray<z.ZodObject<{
|
|
63
|
+
trigger: z.ZodString;
|
|
64
|
+
text: z.ZodString;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
unusable: z.ZodArray<z.ZodString>;
|
|
67
|
+
unusableCount: z.ZodNumber;
|
|
68
|
+
extra: z.ZodObject<{
|
|
69
|
+
dictionary: z.ZodNumber;
|
|
70
|
+
replacements: z.ZodNumber;
|
|
71
|
+
snippets: z.ZodNumber;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export type DictationImport = z.infer<typeof DictationImportSchema>;
|
|
75
|
+
/** Why a file could not be read for import. */
|
|
76
|
+
export declare const DictationImportRefusal: {
|
|
77
|
+
/** Not a file this reads: not Athena's export, a list or a CSV it can name the columns of. */
|
|
78
|
+
readonly NotReadable: 'not-readable';
|
|
79
|
+
/** A two-column CSV whose first row does not name its columns. */
|
|
80
|
+
readonly CsvColumns: 'csv-columns';
|
|
81
|
+
/** Nothing in it to import. */
|
|
82
|
+
readonly Empty: 'empty';
|
|
83
|
+
/** Heavier than `DICTATION_IMPORT_MAX_BYTES`. */
|
|
84
|
+
readonly TooLarge: 'too-large';
|
|
85
|
+
};
|
|
86
|
+
export type DictationImportRefusal = (typeof DictationImportRefusal)[keyof typeof DictationImportRefusal];
|
|
87
|
+
/** What each app says when a file could not be read. */
|
|
88
|
+
export declare const DICTATION_IMPORT_REFUSAL_WORDS: Readonly<Record<DictationImportRefusal, string>>;
|
|
89
|
+
export type DictationImportReading = {
|
|
90
|
+
ok: true;
|
|
91
|
+
imported: DictationImport;
|
|
92
|
+
} | {
|
|
93
|
+
ok: false;
|
|
94
|
+
refusal: DictationImportRefusal;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* The file a person chose to import, read: by its extension (`.json` Athena's export, `.csv` a
|
|
98
|
+
* CSV, `.txt` a list), or by what it holds when the name says nothing (an object is the export, a
|
|
99
|
+
* first row naming `find,replace` or `trigger,text` a CSV, anything else a list).
|
|
100
|
+
*/
|
|
101
|
+
export declare function readDictationImport({ name, text, }: {
|
|
102
|
+
name: string;
|
|
103
|
+
text: string;
|
|
104
|
+
}): DictationImportReading;
|
|
105
|
+
/** What an import came to. */
|
|
106
|
+
export interface DictationImportSummary {
|
|
107
|
+
added: DictationEntryCounts;
|
|
108
|
+
/** Entries a list already held (a replacement's find or a snippet's trigger in any case). */
|
|
109
|
+
alreadyThere: number;
|
|
110
|
+
/** Entries left out because their list is full: the first few named, all counted. */
|
|
111
|
+
full: Record<DictationList, {
|
|
112
|
+
named: string[];
|
|
113
|
+
count: number;
|
|
114
|
+
}>;
|
|
115
|
+
/** Entries no list can keep as they are: the first few named, all counted. */
|
|
116
|
+
unusable: {
|
|
117
|
+
named: string[];
|
|
118
|
+
count: number;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/** The lists as an app keeps them, which an import adds to. */
|
|
122
|
+
export interface EditableDictationLists {
|
|
123
|
+
dictionary: string[];
|
|
124
|
+
replacements: DictationReplacement[];
|
|
125
|
+
snippets: DictationSnippet[];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* `preferences` with what `imported` offers added at the end of each list, within each list's
|
|
129
|
+
* limit, and what that came to. Nothing already there is changed or removed.
|
|
130
|
+
*/
|
|
131
|
+
export declare function withImported<T extends EditableDictationLists>({ preferences, imported, }: {
|
|
132
|
+
preferences: T;
|
|
133
|
+
imported: DictationImport;
|
|
134
|
+
}): {
|
|
135
|
+
preferences: T;
|
|
136
|
+
summary: DictationImportSummary;
|
|
137
|
+
};
|
|
138
|
+
/** What each app tells the person an import came to, a sentence a line. */
|
|
139
|
+
export declare function dictationImportSummaryLines({ summary, }: {
|
|
140
|
+
summary: DictationImportSummary;
|
|
141
|
+
}): string[];
|
|
142
|
+
export {};
|