@athenaintel/react 0.41.3 → 0.42.2
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 +132 -10
- package/dist/agent-runtime/src/asset-attachment.d.ts +98 -0
- package/dist/agent-runtime/src/athena-asset-drag.d.ts +32 -0
- package/dist/agent-runtime/src/auth-denial.d.ts +29 -0
- package/dist/agent-runtime/src/chat-outbox-attachments.cjs +41 -0
- package/dist/agent-runtime/src/chat-outbox-attachments.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-attachments.d.ts +38 -0
- package/dist/agent-runtime/src/chat-outbox-attachments.js +41 -0
- package/dist/agent-runtime/src/chat-outbox-attachments.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-signals.cjs +63 -0
- package/dist/agent-runtime/src/chat-outbox-signals.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-signals.d.ts +12 -0
- package/dist/agent-runtime/src/chat-outbox-signals.js +63 -0
- package/dist/agent-runtime/src/chat-outbox-signals.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-store.cjs +509 -0
- package/dist/agent-runtime/src/chat-outbox-store.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-store.d.ts +203 -0
- package/dist/agent-runtime/src/chat-outbox-store.js +509 -0
- package/dist/agent-runtime/src/chat-outbox-store.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-thread.cjs +136 -0
- package/dist/agent-runtime/src/chat-outbox-thread.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox-thread.d.ts +118 -0
- package/dist/agent-runtime/src/chat-outbox-thread.js +136 -0
- package/dist/agent-runtime/src/chat-outbox-thread.js.map +1 -0
- package/dist/agent-runtime/src/chat-outbox.cjs +696 -0
- package/dist/agent-runtime/src/chat-outbox.cjs.map +1 -0
- package/dist/agent-runtime/src/chat-outbox.d.ts +285 -0
- package/dist/agent-runtime/src/chat-outbox.js +696 -0
- package/dist/agent-runtime/src/chat-outbox.js.map +1 -0
- package/dist/agent-runtime/src/chat-socket-reachability.d.ts +45 -0
- package/dist/agent-runtime/src/client-tool-bridge.d.ts +152 -0
- package/dist/agent-runtime/src/client-tools.d.ts +133 -0
- package/dist/agent-runtime/src/composer-markdown.cjs +10 -0
- package/dist/agent-runtime/src/composer-markdown.cjs.map +1 -1
- package/dist/agent-runtime/src/composer-markdown.d.ts +108 -0
- package/dist/agent-runtime/src/composer-markdown.js +10 -0
- package/dist/agent-runtime/src/composer-markdown.js.map +1 -1
- package/dist/agent-runtime/src/config-mutations.d.ts +51 -0
- package/dist/agent-runtime/src/conversation-index.d.ts +110 -0
- package/dist/agent-runtime/src/conversation-list.d.ts +343 -0
- package/dist/agent-runtime/src/deep-agent-transport-recipe.cjs +3 -2
- package/dist/agent-runtime/src/deep-agent-transport-recipe.cjs.map +1 -1
- package/dist/agent-runtime/src/deep-agent-transport-recipe.d.ts +166 -0
- package/dist/agent-runtime/src/deep-agent-transport-recipe.js +3 -2
- package/dist/agent-runtime/src/deep-agent-transport-recipe.js.map +1 -1
- package/dist/agent-runtime/src/desktop-handoff.d.ts +139 -0
- package/dist/agent-runtime/src/durable-thread-snapshot-cache.d.ts +60 -0
- package/dist/agent-runtime/src/edit-command.d.ts +156 -0
- package/dist/agent-runtime/src/errors.d.ts +174 -0
- package/dist/agent-runtime/src/execute-output.d.ts +31 -0
- package/dist/agent-runtime/src/generated/runconfig-contract.cjs +16 -2
- package/dist/agent-runtime/src/generated/runconfig-contract.cjs.map +1 -1
- package/dist/agent-runtime/src/generated/runconfig-contract.d.ts +202 -0
- package/dist/agent-runtime/src/generated/runconfig-contract.js +16 -2
- package/dist/agent-runtime/src/generated/runconfig-contract.js.map +1 -1
- package/dist/agent-runtime/src/github-wake-event.d.ts +77 -0
- package/dist/agent-runtime/src/index.d.ts +74 -0
- package/dist/agent-runtime/src/interrupts.cjs +17 -0
- package/dist/agent-runtime/src/interrupts.cjs.map +1 -1
- package/dist/agent-runtime/src/interrupts.d.ts +348 -0
- package/dist/agent-runtime/src/interrupts.js +17 -0
- package/dist/agent-runtime/src/interrupts.js.map +1 -1
- package/dist/agent-runtime/src/lane-follow.d.ts +121 -0
- package/dist/agent-runtime/src/lane-history.cjs +209 -0
- package/dist/agent-runtime/src/lane-history.cjs.map +1 -0
- package/dist/agent-runtime/src/lane-history.d.ts +175 -0
- package/dist/agent-runtime/src/lane-history.js +209 -0
- package/dist/agent-runtime/src/lane-history.js.map +1 -0
- package/dist/agent-runtime/src/lane-images.d.ts +184 -0
- package/dist/agent-runtime/src/message-author.d.ts +43 -0
- package/dist/agent-runtime/src/message-text.cjs +15 -0
- package/dist/agent-runtime/src/message-text.cjs.map +1 -0
- package/dist/agent-runtime/src/message-text.d.ts +47 -0
- package/dist/agent-runtime/src/message-text.js +15 -0
- package/dist/agent-runtime/src/message-text.js.map +1 -0
- package/dist/agent-runtime/src/message-window.cjs +15 -1
- package/dist/agent-runtime/src/message-window.cjs.map +1 -1
- package/dist/agent-runtime/src/message-window.d.ts +159 -0
- package/dist/agent-runtime/src/message-window.js +16 -2
- package/dist/agent-runtime/src/message-window.js.map +1 -1
- package/dist/agent-runtime/src/messages.cjs +123 -8
- package/dist/agent-runtime/src/messages.cjs.map +1 -1
- package/dist/agent-runtime/src/messages.d.ts +621 -0
- package/dist/agent-runtime/src/messages.js +123 -8
- package/dist/agent-runtime/src/messages.js.map +1 -1
- package/dist/agent-runtime/src/model-context.d.ts +22 -0
- package/dist/agent-runtime/src/offline-status.d.ts +157 -0
- package/dist/agent-runtime/src/optimistic-content.d.ts +21 -0
- package/dist/agent-runtime/src/protocol.cjs +12 -4
- package/dist/agent-runtime/src/protocol.cjs.map +1 -1
- package/dist/agent-runtime/src/protocol.d.ts +119 -0
- package/dist/agent-runtime/src/protocol.js +13 -5
- package/dist/agent-runtime/src/protocol.js.map +1 -1
- package/dist/agent-runtime/src/ptc-subcalls.d.ts +51 -0
- package/dist/agent-runtime/src/queue.d.ts +138 -0
- package/dist/agent-runtime/src/quota-safe-local-storage-session.cjs +10 -0
- 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 +161 -0
- package/dist/agent-runtime/src/quota-safe-local-storage-session.js +10 -0
- package/dist/agent-runtime/src/quota-safe-local-storage-session.js.map +1 -1
- package/dist/agent-runtime/src/running-tool-placeholder.cjs +11 -0
- package/dist/agent-runtime/src/running-tool-placeholder.cjs.map +1 -0
- package/dist/agent-runtime/src/running-tool-placeholder.d.ts +25 -0
- package/dist/agent-runtime/src/running-tool-placeholder.js +11 -0
- package/dist/agent-runtime/src/running-tool-placeholder.js.map +1 -0
- package/dist/agent-runtime/src/runtime-messages.d.ts +104 -0
- package/dist/agent-runtime/src/screen-point.d.ts +151 -0
- package/dist/agent-runtime/src/sealed-idb.cjs +112 -0
- package/dist/agent-runtime/src/sealed-idb.cjs.map +1 -0
- package/dist/agent-runtime/src/sealed-idb.d.ts +106 -0
- package/dist/agent-runtime/src/sealed-idb.js +112 -0
- package/dist/agent-runtime/src/sealed-idb.js.map +1 -0
- package/dist/agent-runtime/src/send-recovery.d.ts +40 -0
- package/dist/agent-runtime/src/session-lane-scope.cjs +25 -0
- package/dist/agent-runtime/src/session-lane-scope.cjs.map +1 -0
- package/dist/agent-runtime/src/session-lane-scope.d.ts +59 -0
- package/dist/agent-runtime/src/session-lane-scope.js +25 -0
- package/dist/agent-runtime/src/session-lane-scope.js.map +1 -0
- package/dist/agent-runtime/src/statewire-attach-observer.d.ts +194 -0
- package/dist/agent-runtime/src/statewire-diagnostics.d.ts +74 -0
- package/dist/agent-runtime/src/statewire-state.d.ts +29 -0
- package/dist/agent-runtime/src/statewire-suspended.cjs.map +1 -1
- package/dist/agent-runtime/src/statewire-suspended.d.ts +27 -0
- package/dist/agent-runtime/src/statewire-suspended.js.map +1 -1
- package/dist/agent-runtime/src/statewire-transport.d.ts +40 -0
- package/dist/agent-runtime/src/streaming-markdown.d.ts +46 -0
- package/dist/agent-runtime/src/subagent-transcripts.cjs +209 -0
- package/dist/agent-runtime/src/subagent-transcripts.cjs.map +1 -0
- package/dist/agent-runtime/src/subagent-transcripts.d.ts +71 -0
- package/dist/agent-runtime/src/subagent-transcripts.js +209 -0
- package/dist/agent-runtime/src/subagent-transcripts.js.map +1 -0
- package/dist/agent-runtime/src/subagents.cjs +253 -0
- package/dist/agent-runtime/src/subagents.cjs.map +1 -0
- package/dist/agent-runtime/src/subagents.d.ts +311 -0
- package/dist/agent-runtime/src/subagents.js +253 -0
- package/dist/agent-runtime/src/subagents.js.map +1 -0
- package/dist/agent-runtime/src/subscription-wake-event.d.ts +111 -0
- package/dist/agent-runtime/src/thread-extras.d.ts +43 -0
- package/dist/agent-runtime/src/thread-handoff.d.ts +364 -0
- package/dist/agent-runtime/src/thread-prewarm-controller.d.ts +76 -0
- package/dist/agent-runtime/src/thread-prewarm.d.ts +118 -0
- package/dist/agent-runtime/src/thread-snapshot-cache.d.ts +99 -0
- package/dist/agent-runtime/src/thread-snapshot-mirror.cjs +46 -117
- package/dist/agent-runtime/src/thread-snapshot-mirror.cjs.map +1 -1
- package/dist/agent-runtime/src/thread-snapshot-mirror.d.ts +101 -0
- package/dist/agent-runtime/src/thread-snapshot-mirror.js +17 -88
- package/dist/agent-runtime/src/thread-snapshot-mirror.js.map +1 -1
- package/dist/agent-runtime/src/thread-status.d.ts +53 -0
- package/dist/agent-runtime/src/tool-metadata.d.ts +146 -0
- package/dist/agent-runtime/src/tool-names.cjs +71 -0
- package/dist/agent-runtime/src/tool-names.cjs.map +1 -1
- package/dist/agent-runtime/src/tool-names.d.ts +67 -0
- package/dist/agent-runtime/src/tool-names.js +72 -1
- package/dist/agent-runtime/src/tool-names.js.map +1 -1
- package/dist/agent-runtime/src/tool-outputs.d.ts +35 -0
- package/dist/agent-runtime/src/tool-result.cjs +1 -0
- package/dist/agent-runtime/src/tool-result.cjs.map +1 -1
- package/dist/agent-runtime/src/tool-result.d.ts +126 -0
- package/dist/agent-runtime/src/tool-result.js +1 -0
- package/dist/agent-runtime/src/tool-result.js.map +1 -1
- package/dist/agent-runtime/src/types.d.ts +159 -0
- package/dist/agent-runtime/src/use-conversation-list.d.ts +76 -0
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.cjs +136 -0
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.cjs.map +1 -0
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.d.ts +64 -0
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.js +136 -0
- package/dist/agent-runtime/src/use-deep-agent-chat-outbox.js.map +1 -0
- package/dist/agent-runtime/src/use-deep-agent-config.d.ts +169 -0
- package/dist/agent-runtime/src/use-deep-agent-edit-submit.cjs +13 -0
- package/dist/agent-runtime/src/use-deep-agent-edit-submit.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-edit-submit.d.ts +22 -0
- package/dist/agent-runtime/src/use-deep-agent-edit-submit.js +13 -0
- package/dist/agent-runtime/src/use-deep-agent-edit-submit.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-runtime.cjs +37 -2
- package/dist/agent-runtime/src/use-deep-agent-runtime.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-runtime.d.ts +177 -0
- package/dist/agent-runtime/src/use-deep-agent-runtime.js +38 -3
- package/dist/agent-runtime/src/use-deep-agent-runtime.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.cjs +39 -13
- package/dist/agent-runtime/src/use-deep-agent-thread.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-thread.d.ts +352 -0
- package/dist/agent-runtime/src/use-deep-agent-thread.js +39 -13
- package/dist/agent-runtime/src/use-deep-agent-thread.js.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-voice.cjs +1019 -0
- package/dist/agent-runtime/src/use-deep-agent-voice.cjs.map +1 -0
- package/dist/agent-runtime/src/use-deep-agent-voice.d.ts +409 -0
- package/dist/agent-runtime/src/use-deep-agent-voice.js +1019 -0
- package/dist/agent-runtime/src/use-deep-agent-voice.js.map +1 -0
- package/dist/agent-runtime/src/use-deep-agent-window-sync.d.ts +102 -0
- package/dist/agent-runtime/src/use-historical-edit-attachments.d.ts +2 -0
- package/dist/agent-runtime/src/use-thread-handoff-flow.d.ts +84 -0
- package/dist/agent-runtime/src/voice-presentation.cjs +2 -0
- package/dist/agent-runtime/src/voice-presentation.cjs.map +1 -1
- package/dist/agent-runtime/src/voice-presentation.d.ts +80 -0
- package/dist/agent-runtime/src/voice-presentation.js +2 -0
- package/dist/agent-runtime/src/voice-presentation.js.map +1 -1
- package/dist/agent-runtime/src/voice-turn-grouping.d.ts +28 -0
- package/dist/agent-runtime/src/voice-wire-types.d.ts +15 -0
- package/dist/agent-runtime/src/withdrawn-turns.d.ts +97 -0
- package/dist/catalog/runtime-catalog.js +1 -1
- package/dist/chat/AthenaChat.cjs +192 -103
- package/dist/chat/AthenaChat.cjs.map +1 -1
- package/dist/chat/AthenaChat.d.ts +9 -0
- package/dist/chat/AthenaChat.js +194 -105
- package/dist/chat/AthenaChat.js.map +1 -1
- package/dist/chat/StatewireApprovalCard.d.ts +1 -1
- package/dist/chat/StatewireClientToolBridge.d.ts +1 -1
- package/dist/chat/StatewireQueuedMessages.cjs +11 -4
- package/dist/chat/StatewireQueuedMessages.cjs.map +1 -1
- package/dist/chat/StatewireQueuedMessages.d.ts +1 -1
- package/dist/chat/StatewireQueuedMessages.js +11 -4
- package/dist/chat/StatewireQueuedMessages.js.map +1 -1
- package/dist/chat/chat-outbox-rows.cjs +223 -0
- package/dist/chat/chat-outbox-rows.cjs.map +1 -0
- package/dist/chat/chat-outbox-rows.d.ts +29 -0
- package/dist/chat/chat-outbox-rows.js +223 -0
- package/dist/chat/chat-outbox-rows.js.map +1 -0
- package/dist/chat/chat-voice-controls.cjs +128 -0
- package/dist/chat/chat-voice-controls.cjs.map +1 -0
- package/dist/chat/chat-voice-controls.d.ts +19 -0
- package/dist/chat/chat-voice-controls.js +128 -0
- package/dist/chat/chat-voice-controls.js.map +1 -0
- package/dist/chat/statewire-approval.d.ts +1 -1
- package/dist/chat/statewire-client-tools.d.ts +1 -1
- package/dist/chat/super-grouping/SuperGroupingCard.cjs +3 -1
- package/dist/chat/super-grouping/SuperGroupingCard.cjs.map +1 -1
- package/dist/chat/super-grouping/SuperGroupingCard.d.ts +7 -1
- package/dist/chat/super-grouping/SuperGroupingCard.js +3 -1
- package/dist/chat/super-grouping/SuperGroupingCard.js.map +1 -1
- package/dist/chat/super-grouping/SuperGroupingTranscript.cjs +7 -2
- package/dist/chat/super-grouping/SuperGroupingTranscript.cjs.map +1 -1
- package/dist/chat/super-grouping/SuperGroupingTranscript.d.ts +2 -2
- package/dist/chat/super-grouping/SuperGroupingTranscript.js +7 -2
- package/dist/chat/super-grouping/SuperGroupingTranscript.js.map +1 -1
- package/dist/chat/super-grouping/activity-timeline.cjs +15 -8
- package/dist/chat/super-grouping/activity-timeline.cjs.map +1 -1
- package/dist/chat/super-grouping/activity-timeline.d.ts +18 -8
- package/dist/chat/super-grouping/activity-timeline.js +15 -8
- package/dist/chat/super-grouping/activity-timeline.js.map +1 -1
- package/dist/chat/use-statewire-approval-request.cjs +36 -0
- package/dist/chat/use-statewire-approval-request.cjs.map +1 -1
- package/dist/chat/use-statewire-approval-request.d.ts +49 -1
- package/dist/chat/use-statewire-approval-request.js +39 -3
- package/dist/chat/use-statewire-approval-request.js.map +1 -1
- package/dist/chat-ui/composer/tiptap-composer.cjs +133 -14
- package/dist/chat-ui/composer/tiptap-composer.cjs.map +1 -1
- package/dist/chat-ui/composer/tiptap-composer.d.ts +33 -1
- package/dist/chat-ui/composer/tiptap-composer.js +135 -16
- package/dist/chat-ui/composer/tiptap-composer.js.map +1 -1
- package/dist/chat-ui/header/conversation-history-panel.d.ts +1 -1
- package/dist/chat-ui/index.d.ts +1 -1
- package/dist/chat-ui/mentions/suggestions/data/api-client.cjs +2 -1
- package/dist/chat-ui/mentions/suggestions/data/api-client.cjs.map +1 -1
- package/dist/chat-ui/mentions/suggestions/data/api-client.d.ts +3 -1
- package/dist/chat-ui/mentions/suggestions/data/api-client.js +2 -1
- package/dist/chat-ui/mentions/suggestions/data/api-client.js.map +1 -1
- package/dist/chat-ui/mentions/use-account-workspace-id.cjs +29 -51
- package/dist/chat-ui/mentions/use-account-workspace-id.cjs.map +1 -1
- package/dist/chat-ui/mentions/use-account-workspace-id.d.ts +2 -2
- package/dist/chat-ui/mentions/use-account-workspace-id.js +30 -52
- package/dist/chat-ui/mentions/use-account-workspace-id.js.map +1 -1
- package/dist/chat-ui/messages/message-components.cjs +15 -0
- package/dist/chat-ui/messages/message-components.cjs.map +1 -1
- package/dist/chat-ui/messages/message-components.js +15 -0
- package/dist/chat-ui/messages/message-components.js.map +1 -1
- package/dist/chat-ui/messages/runtime-message.d.ts +1 -1
- package/dist/chat-ui/messages/statewire-continue-run.d.ts +1 -1
- package/dist/chat-ui/messages/user-edit-composer.cjs +15 -2
- package/dist/chat-ui/messages/user-edit-composer.cjs.map +1 -1
- package/dist/chat-ui/messages/user-edit-composer.d.ts +4 -2
- package/dist/chat-ui/messages/user-edit-composer.js +15 -2
- package/dist/chat-ui/messages/user-edit-composer.js.map +1 -1
- package/dist/chat-ui/messages/wake-marker.d.ts +1 -1
- package/dist/chat-ui/rich-text/chat-text-schema.cjs +1 -0
- package/dist/chat-ui/rich-text/chat-text-schema.cjs.map +1 -1
- package/dist/chat-ui/rich-text/chat-text-schema.d.ts +3 -0
- package/dist/chat-ui/rich-text/chat-text-schema.js +1 -0
- package/dist/chat-ui/rich-text/chat-text-schema.js.map +1 -1
- package/dist/chat-ui/statewire.cjs +1 -0
- package/dist/chat-ui/statewire.cjs.map +1 -1
- package/dist/chat-ui/statewire.d.ts +2 -2
- package/dist/chat-ui/statewire.js +2 -1
- package/dist/chat-ui/thread/composer-send-or-stop.cjs +2 -1
- package/dist/chat-ui/thread/composer-send-or-stop.cjs.map +1 -1
- package/dist/chat-ui/thread/composer-send-or-stop.d.ts +2 -0
- package/dist/chat-ui/thread/composer-send-or-stop.js +2 -1
- package/dist/chat-ui/thread/composer-send-or-stop.js.map +1 -1
- package/dist/chat-ui/thread/statewire-history-edge.d.ts +1 -1
- package/dist/composer/AttachmentContext.cjs +8 -4
- package/dist/composer/AttachmentContext.cjs.map +1 -1
- package/dist/composer/AttachmentContext.d.ts +7 -0
- package/dist/composer/AttachmentContext.js +8 -4
- package/dist/composer/AttachmentContext.js.map +1 -1
- package/dist/composer/build-composed-message.cjs +34 -0
- package/dist/composer/build-composed-message.cjs.map +1 -1
- package/dist/composer/build-composed-message.d.ts +20 -0
- package/dist/composer/build-composed-message.js +35 -1
- package/dist/composer/build-composed-message.js.map +1 -1
- package/dist/composer/composer-handoff.cjs +39 -2
- package/dist/composer/composer-handoff.cjs.map +1 -1
- package/dist/composer/composer-handoff.d.ts +28 -3
- package/dist/composer/composer-handoff.js +39 -2
- package/dist/composer/composer-handoff.js.map +1 -1
- package/dist/composer/useAttachFiles.cjs +15 -2
- package/dist/composer/useAttachFiles.cjs.map +1 -1
- package/dist/composer/useAttachFiles.d.ts +11 -0
- package/dist/composer/useAttachFiles.js +15 -2
- package/dist/composer/useAttachFiles.js.map +1 -1
- package/dist/composer/useSendMessage.cjs.map +1 -1
- package/dist/composer/useSendMessage.d.ts +4 -3
- package/dist/composer/useSendMessage.js.map +1 -1
- package/dist/diagnostics/athena-diagnostics.cjs.map +1 -1
- package/dist/diagnostics/athena-diagnostics.d.ts +3 -1
- package/dist/diagnostics/athena-diagnostics.js.map +1 -1
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -7
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/offline/chat-outbox.cjs +57 -0
- package/dist/offline/chat-outbox.cjs.map +1 -0
- package/dist/offline/chat-outbox.d.ts +80 -0
- package/dist/offline/chat-outbox.js +57 -0
- package/dist/offline/chat-outbox.js.map +1 -0
- package/dist/offline/offline-history.d.ts +1 -1
- package/dist/provider/AthenaProvider.cjs +162 -8
- package/dist/provider/AthenaProvider.cjs.map +1 -1
- package/dist/provider/AthenaProvider.d.ts +15 -1
- package/dist/provider/AthenaProvider.js +163 -9
- package/dist/provider/AthenaProvider.js.map +1 -1
- package/dist/provider/statewire-window-context.d.ts +1 -1
- package/dist/react/package.json.cjs +1 -1
- package/dist/react/package.json.js +1 -1
- package/dist/references/src/anchors/file-line-range.d.ts +58 -0
- package/dist/references/src/anchors/format.d.ts +21 -0
- package/dist/references/src/anchors/message-anchors.d.ts +71 -0
- package/dist/references/src/anchors/parse.d.ts +8 -0
- package/dist/references/src/anchors/registry-contract.d.ts +24 -0
- package/dist/references/src/anchors/registry.d.ts +19 -0
- package/dist/references/src/anchors/schemas.d.ts +194 -0
- package/dist/references/src/anchors/serialize.d.ts +8 -0
- package/dist/references/src/anchors/time.d.ts +78 -0
- package/dist/references/src/anchors/types.d.ts +474 -0
- package/dist/references/src/asset-bounds.d.ts +27 -0
- package/dist/references/src/asset-links.d.ts +23 -0
- package/dist/references/src/asset-reference.d.ts +16 -0
- package/dist/references/src/formats/format-catalog.d.ts +79 -0
- package/dist/references/src/formats/markdown/parse-reference-markdown.d.ts +28 -0
- package/dist/references/src/formats/markdown/reference-display-name.d.ts +6 -0
- package/dist/references/src/formats/object/asset-object.d.ts +9 -0
- package/dist/references/src/formats/object/callable-object.d.ts +6 -0
- package/dist/references/src/formats/object/decode-reference-object-payload.d.ts +3 -0
- package/dist/references/src/formats/object/external-url-object.d.ts +9 -0
- package/dist/references/src/formats/object/group-object.d.ts +9 -0
- package/dist/references/src/formats/object/navigation-object.d.ts +9 -0
- package/dist/references/src/formats/object/parse-reference-object.d.ts +11 -0
- package/dist/references/src/formats/object/person-object.d.ts +9 -0
- package/dist/references/src/formats/uri/asset-mention-uri.d.ts +9 -0
- package/dist/references/src/formats/uri/asset-spaces-url.d.ts +9 -0
- package/dist/references/src/formats/uri/callable-mention-uris.d.ts +9 -0
- package/dist/references/src/formats/uri/detect-uri-wire.d.ts +9 -0
- package/dist/references/src/formats/uri/group-mention-uri.d.ts +12 -0
- package/dist/references/src/formats/uri/navigation-spaces-url.d.ts +14 -0
- package/dist/references/src/formats/uri/parse-reference-uri.d.ts +20 -0
- package/dist/references/src/formats/uri/person-mention-uri.d.ts +9 -0
- package/dist/references/src/formats/uri/template-placeholder.d.ts +12 -0
- package/dist/references/src/index.d.ts +47 -0
- package/dist/references/src/legacy/index.d.ts +14 -0
- package/dist/references/src/legacy/pre-reference-asset-url.d.ts +57 -0
- package/dist/references/src/legacy/pre-reference-citation-bridge.d.ts +22 -0
- package/dist/references/src/legacy/pre-reference-citation.d.ts +138 -0
- package/dist/references/src/legacy/pre-reference-external-url.d.ts +31 -0
- package/dist/references/src/legacy/pre-reference-format.d.ts +8 -0
- package/dist/references/src/legacy/pre-reference-mention.d.ts +27 -0
- package/dist/references/src/legacy/pre-reference-object.d.ts +8 -0
- package/dist/references/src/legacy/pre-reference-uri.d.ts +12 -0
- package/dist/references/src/legacy.d.ts +2 -0
- package/dist/references/src/mention-href-patterns.d.ts +19 -0
- package/dist/references/src/mention-node/index.d.ts +5 -0
- package/dist/references/src/mention-node/mention-node.d.ts +31 -0
- package/dist/references/src/mention-node/resolve-node-attrs.d.ts +27 -0
- package/dist/references/src/parse-reference.d.ts +23 -0
- package/dist/references/src/schemas.d.ts +463 -0
- package/dist/references/src/serialize-reference.d.ts +50 -0
- package/dist/references/src/sheet-name.d.ts +10 -0
- package/dist/references/src/tool-option-schemas.d.ts +597 -0
- package/dist/references/src/types.d.ts +125 -0
- package/dist/references/src/version-ref.d.ts +30 -0
- package/dist/runtime/statewire-lifecycle.d.ts +1 -1
- package/dist/runtime/statewire-model-lane.d.ts +1 -1
- package/dist/runtime/statewire-server-lane-context.d.ts +1 -1
- package/dist/runtime/statewire-session-key.cjs +7 -0
- package/dist/runtime/statewire-session-key.cjs.map +1 -1
- package/dist/runtime/statewire-session-key.d.ts +19 -0
- package/dist/runtime/statewire-session-key.js +8 -1
- package/dist/runtime/statewire-session-key.js.map +1 -1
- package/dist/runtime/statewire-session-lane.cjs +48 -0
- package/dist/runtime/statewire-session-lane.cjs.map +1 -0
- package/dist/runtime/statewire-session-lane.d.ts +29 -0
- package/dist/runtime/statewire-session-lane.js +48 -0
- package/dist/runtime/statewire-session-lane.js.map +1 -0
- package/dist/runtime/statewire-thread-config-lane.d.ts +1 -1
- package/dist/runtime/useAthenaStatewireRuntime.cjs +19 -5
- package/dist/runtime/useAthenaStatewireRuntime.cjs.map +1 -1
- package/dist/runtime/useAthenaStatewireRuntime.d.ts +15 -1
- package/dist/runtime/useAthenaStatewireRuntime.js +20 -6
- package/dist/runtime/useAthenaStatewireRuntime.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/threads/api.d.ts +1 -1
- package/dist/threads/conversation-list-fetcher.d.ts +1 -1
- package/dist/threads/index-triggered-refresh.cjs +164 -0
- package/dist/threads/index-triggered-refresh.cjs.map +1 -0
- package/dist/threads/index-triggered-refresh.d.ts +70 -0
- package/dist/threads/index-triggered-refresh.js +164 -0
- package/dist/threads/index-triggered-refresh.js.map +1 -0
- package/dist/threads/offline-session-list.d.ts +1 -1
- package/dist/threads/pull-request-display.d.ts +1 -1
- package/dist/threads/session-list-model.d.ts +1 -1
- package/dist/threads/session-list-tab-share.cjs +150 -0
- package/dist/threads/session-list-tab-share.cjs.map +1 -0
- package/dist/threads/session-list-tab-share.d.ts +73 -0
- package/dist/threads/session-list-tab-share.js +150 -0
- package/dist/threads/session-list-tab-share.js.map +1 -0
- package/dist/threads/session-row-parts.d.ts +1 -1
- package/dist/threads/sessions-query.d.ts +1 -1
- package/dist/threads/statewire-thread-list.cjs +42 -16
- package/dist/threads/statewire-thread-list.cjs.map +1 -1
- package/dist/threads/statewire-thread-list.d.ts +11 -2
- package/dist/threads/statewire-thread-list.js +43 -17
- package/dist/threads/statewire-thread-list.js.map +1 -1
- package/dist/threads/thread-prefetcher.d.ts +1 -1
- package/dist/threads/use-athena-session-attention.d.ts +1 -1
- package/dist/threads/use-athena-sessions.cjs +32 -22
- package/dist/threads/use-athena-sessions.cjs.map +1 -1
- package/dist/threads/use-athena-sessions.js +33 -23
- package/dist/threads/use-athena-sessions.js.map +1 -1
- package/dist/threads/use-rest-conversation-history.d.ts +1 -1
- package/dist/threads/use-statewire-conversation-history.d.ts +5 -5
- package/dist/tiptap-markdown-table/src/markdown-table-serializer.d.ts +56 -0
- package/dist/tools/NestedPtcMessages.cjs +14 -9
- package/dist/tools/NestedPtcMessages.cjs.map +1 -1
- package/dist/tools/NestedPtcMessages.d.ts +9 -0
- package/dist/tools/NestedPtcMessages.js +6 -1
- package/dist/tools/NestedPtcMessages.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/primitives.d.ts +1 -1
- package/dist/tools/subagent-task-tool-ui.cjs +494 -0
- package/dist/tools/subagent-task-tool-ui.cjs.map +1 -0
- package/dist/tools/subagent-task-tool-ui.d.ts +109 -0
- package/dist/tools/subagent-task-tool-ui.js +494 -0
- package/dist/tools/subagent-task-tool-ui.js.map +1 -0
- package/dist/tools/tool-fallback.d.ts +1 -1
- package/dist/tools/tool-icons.d.ts +1 -1
- package/dist/tools/tool-summary.d.ts +1 -1
- package/dist/tools/tool-uis.cjs +4 -0
- package/dist/tools/tool-uis.cjs.map +1 -1
- package/dist/tools/tool-uis.js +4 -0
- package/dist/tools/tool-uis.js.map +1 -1
- package/dist/voice/chat.cjs +6 -0
- package/dist/voice/chat.cjs.map +1 -0
- package/dist/voice/chat.d.ts +2 -0
- package/dist/voice/chat.js +6 -0
- package/dist/voice/chat.js.map +1 -0
- package/dist/voice/livekit-join.cjs +119 -0
- package/dist/voice/livekit-join.cjs.map +1 -0
- package/dist/voice/livekit-join.d.ts +8 -0
- package/dist/voice/livekit-join.js +119 -0
- package/dist/voice/livekit-join.js.map +1 -0
- package/dist/voice/livekit.cjs +32 -0
- package/dist/voice/livekit.cjs.map +1 -0
- package/dist/voice/livekit.d.ts +80 -0
- package/dist/voice/livekit.js +32 -0
- package/dist/voice/livekit.js.map +1 -0
- package/dist/voice/use-chat-voice-enabled.cjs +43 -0
- package/dist/voice/use-chat-voice-enabled.cjs.map +1 -0
- package/dist/voice/use-chat-voice-enabled.d.ts +9 -0
- package/dist/voice/use-chat-voice-enabled.js +43 -0
- package/dist/voice/use-chat-voice-enabled.js.map +1 -0
- package/package.json +22 -16
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Anchor types — Level 2 of the reference system.
|
|
3
|
+
*
|
|
4
|
+
* Each anchor describes a specific location within an asset.
|
|
5
|
+
* Discriminated union on `type`. Ordered alphabetically.
|
|
6
|
+
*
|
|
7
|
+
* Property names use camelCase; the `type` discriminator string stays snake_case
|
|
8
|
+
* (it's a version identifier, not a property name).
|
|
9
|
+
*/
|
|
10
|
+
export type CellAnchor = {
|
|
11
|
+
type: 'cell';
|
|
12
|
+
cellId: string;
|
|
13
|
+
};
|
|
14
|
+
export type CellRangeAnchor = {
|
|
15
|
+
type: 'cell_range';
|
|
16
|
+
startCellId: string;
|
|
17
|
+
endCellId: string;
|
|
18
|
+
};
|
|
19
|
+
export type CommentAnchor = {
|
|
20
|
+
type: 'comment';
|
|
21
|
+
threadId: string;
|
|
22
|
+
commentId: string;
|
|
23
|
+
};
|
|
24
|
+
export type CommentThreadAnchor = {
|
|
25
|
+
type: 'comment_thread';
|
|
26
|
+
threadId: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* An inclusive, 1-based line range of one file of a repository source — a
|
|
30
|
+
* GitHub `catalog` asset whose files Clio indexes
|
|
31
|
+
* (`docs/clio/21-repository-source.md`). `path` is the repo-relative,
|
|
32
|
+
* `/`-separated file path: structure, not content. Distinct from the
|
|
33
|
+
* path-less `line_range` so a reader that does not know the kind fails closed
|
|
34
|
+
* instead of dropping the file. Bounds, path grammar and the byte cap are
|
|
35
|
+
* shared with Clio's `LineRangeLocator` (`./file-line-range.ts`).
|
|
36
|
+
*
|
|
37
|
+
* Wire form (canonical — parameters sorted, as Clio writes it):
|
|
38
|
+
* `anchor=file_line_range&end_line=<m>&path=<path>&start_line=<n>`.
|
|
39
|
+
*/
|
|
40
|
+
export type FileLineRangeAnchor = {
|
|
41
|
+
type: 'file_line_range';
|
|
42
|
+
path: string;
|
|
43
|
+
startLine: number;
|
|
44
|
+
endLine: number;
|
|
45
|
+
};
|
|
46
|
+
export type LineAnchor = {
|
|
47
|
+
type: 'line';
|
|
48
|
+
line: number;
|
|
49
|
+
};
|
|
50
|
+
export type LineRangeAnchor = {
|
|
51
|
+
type: 'line_range';
|
|
52
|
+
startLine: number;
|
|
53
|
+
endLine: number;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* A single chat message in a session transcript.
|
|
57
|
+
*
|
|
58
|
+
* `messageId` is the **Athena message tracking id** — the same uuid4 that
|
|
59
|
+
* appears as `user_message_tracking_id` / `ai_message_tracking_id` in Keryx
|
|
60
|
+
* activity attributions (built by `build_agent_attributions`,
|
|
61
|
+
* agora/services/keryx/client.py), as `trackingId` on session Y.Doc
|
|
62
|
+
* liveMessages, as the `data-message-tracking-id` DOM attribute, and as the
|
|
63
|
+
* existing `scroll_to_message` URL param in Olympus. It is NOT the LangChain
|
|
64
|
+
* checkpoint `message.id`.
|
|
65
|
+
*
|
|
66
|
+
* Wire form: `anchor=msg&msg_id=…` (the pre-rename spellings
|
|
67
|
+
* `anchor=message&message_id=…` are still parsed).
|
|
68
|
+
*/
|
|
69
|
+
export type MessageAnchor = {
|
|
70
|
+
type: 'msg';
|
|
71
|
+
messageId: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Inclusive span of session messages in transcript order. Both ids are
|
|
75
|
+
* Athena message tracking ids (see `MessageAnchor`).
|
|
76
|
+
*/
|
|
77
|
+
export type MessageRangeAnchor = {
|
|
78
|
+
type: 'msg_range';
|
|
79
|
+
startMessageId: string;
|
|
80
|
+
endMessageId: string;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* One top-level block (paragraph, heading, list, table, code fence, …) of a
|
|
84
|
+
* session message's markdown body. `messageId` is the Athena message tracking
|
|
85
|
+
* id (see `MessageAnchor`); `block` is the 1-based position among the
|
|
86
|
+
* message's top-level blocks. `hash` is an optional short fingerprint of the
|
|
87
|
+
* block's normalized text (see `messageBlockHash`) so consumers can detect
|
|
88
|
+
* that the block at that position no longer holds the linked content.
|
|
89
|
+
*
|
|
90
|
+
* URL params: `msg_id`, `block`, `hash`.
|
|
91
|
+
*/
|
|
92
|
+
export type MessageBlockAnchor = {
|
|
93
|
+
type: 'msg_block';
|
|
94
|
+
messageId: string;
|
|
95
|
+
block: number;
|
|
96
|
+
hash?: string;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* A heading-delimited section of a session message: the heading whose slug
|
|
100
|
+
* (see `messageHeadingSlug`) equals `heading`, through the block before the
|
|
101
|
+
* next heading of the same or a higher level. `nth` (1-based) disambiguates
|
|
102
|
+
* repeated headings; absent ⇒ first.
|
|
103
|
+
*
|
|
104
|
+
* URL params: `msg_id`, `heading`, `nth`.
|
|
105
|
+
*/
|
|
106
|
+
export type MessageSectionAnchor = {
|
|
107
|
+
type: 'msg_section';
|
|
108
|
+
messageId: string;
|
|
109
|
+
heading: string;
|
|
110
|
+
nth?: number;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* An exact text span inside a session message. `text` is the quoted excerpt,
|
|
114
|
+
* matched against the message's whitespace-normalized plain text (see
|
|
115
|
+
* `normalizeMessageText`). Optional `block` narrows the search to one
|
|
116
|
+
* top-level block (1-based); optional `prefix` / `suffix` are the normalized
|
|
117
|
+
* text immediately before / after the span, used to pick between repeated
|
|
118
|
+
* occurrences. Consumers fall back to the block, then the whole message, when
|
|
119
|
+
* the span can't be found.
|
|
120
|
+
*
|
|
121
|
+
* URL params: `msg_id`, `text`, `block`, `prefix`, `suffix`.
|
|
122
|
+
*/
|
|
123
|
+
export type MessageTextAnchor = {
|
|
124
|
+
type: 'msg_text';
|
|
125
|
+
messageId: string;
|
|
126
|
+
text: string;
|
|
127
|
+
block?: number;
|
|
128
|
+
prefix?: string;
|
|
129
|
+
suffix?: string;
|
|
130
|
+
};
|
|
131
|
+
export type PageAnchor = {
|
|
132
|
+
type: 'page';
|
|
133
|
+
page: number;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* A file path inside an asset, optionally narrowed to a 1-based source
|
|
137
|
+
* location. `column` is only meaningful when `line` is present.
|
|
138
|
+
*/
|
|
139
|
+
export type PathAnchor = {
|
|
140
|
+
type: 'path';
|
|
141
|
+
path: string;
|
|
142
|
+
line?: number;
|
|
143
|
+
column?: number;
|
|
144
|
+
};
|
|
145
|
+
export type PageRangeAnchor = {
|
|
146
|
+
type: 'page_range';
|
|
147
|
+
startPage: number;
|
|
148
|
+
endPage: number;
|
|
149
|
+
};
|
|
150
|
+
/** Coordinate unit for a `page_rect` anchor. Absent ⇒ `percent`. */
|
|
151
|
+
export declare const PageRectUnit: {
|
|
152
|
+
/** Percentages of the page dimensions (0-100). Resolution-independent. */
|
|
153
|
+
readonly Percent: 'percent';
|
|
154
|
+
/**
|
|
155
|
+
* PDF points (1/72"), the unit of the legacy `bbox_left/bbox_top/...`
|
|
156
|
+
* citation-URL params and of PDF viewer page coordinates.
|
|
157
|
+
*/
|
|
158
|
+
readonly Point: 'point';
|
|
159
|
+
};
|
|
160
|
+
export type PageRectUnit = (typeof PageRectUnit)[keyof typeof PageRectUnit];
|
|
161
|
+
/**
|
|
162
|
+
* Rectangular region on a specific page. `x`/`y`/`width`/`height` are in
|
|
163
|
+
* `unit` coordinates — percentages of the page dimensions (0-100) when
|
|
164
|
+
* `unit` is absent or `percent`, PDF points when `unit` is `point`.
|
|
165
|
+
*/
|
|
166
|
+
export type PageRectAnchor = {
|
|
167
|
+
type: 'page_rect';
|
|
168
|
+
page: number;
|
|
169
|
+
x: number;
|
|
170
|
+
y: number;
|
|
171
|
+
width: number;
|
|
172
|
+
height: number;
|
|
173
|
+
unit?: PageRectUnit;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* A quoted text span on a specific page. `text` is the selected excerpt,
|
|
177
|
+
* re-located by text search when the anchor is resolved. Optional `prefix` /
|
|
178
|
+
* `suffix` are the normalized text immediately before / after the span, used
|
|
179
|
+
* to pick between repeated occurrences of `text` on the page (the same
|
|
180
|
+
* contract as `MessageTextAnchor`). Optional `hash` is a short fingerprint of
|
|
181
|
+
* the cited unit's normalized text (the `MessageBlockAnchor` pattern:
|
|
182
|
+
* `messageBlockHash`, 32-bit FNV-1a as 8 hex chars) so a consumer can tell a
|
|
183
|
+
* stale citation from a live one and fall back to text search. The anchor
|
|
184
|
+
* never stores geometry; rectangles are derived when it is resolved.
|
|
185
|
+
*
|
|
186
|
+
* URL params: `page`, `text`, `prefix`, `suffix`, `hash`.
|
|
187
|
+
*/
|
|
188
|
+
export type PageTextAnchor = {
|
|
189
|
+
type: 'page_text';
|
|
190
|
+
page: number;
|
|
191
|
+
text: string;
|
|
192
|
+
prefix?: string;
|
|
193
|
+
suffix?: string;
|
|
194
|
+
hash?: string;
|
|
195
|
+
};
|
|
196
|
+
export type PmNodeAnchor = {
|
|
197
|
+
type: 'pm_node';
|
|
198
|
+
nodeId: string;
|
|
199
|
+
};
|
|
200
|
+
export type PmNodeRangeAnchor = {
|
|
201
|
+
type: 'pm_node_range';
|
|
202
|
+
startNodeId: string;
|
|
203
|
+
endNodeId: string;
|
|
204
|
+
};
|
|
205
|
+
/** Pixel-based region anchor for images. Coordinates relative to natural image dimensions. */
|
|
206
|
+
export type PixelRangeAnchor = {
|
|
207
|
+
type: 'pixel_range';
|
|
208
|
+
x: number;
|
|
209
|
+
y: number;
|
|
210
|
+
width: number;
|
|
211
|
+
height: number;
|
|
212
|
+
};
|
|
213
|
+
/** ProseMirror mark pointer; composite `markType:instanceId` (e.g. CommentsKit `thread` + thread id). */
|
|
214
|
+
export type PmMarkAnchor = {
|
|
215
|
+
type: 'pm_mark';
|
|
216
|
+
markId: string;
|
|
217
|
+
};
|
|
218
|
+
/** Percentage-based region (0-100). Resolution-independent. */
|
|
219
|
+
export type RectAnchor = {
|
|
220
|
+
type: 'rect';
|
|
221
|
+
x: number;
|
|
222
|
+
y: number;
|
|
223
|
+
width: number;
|
|
224
|
+
height: number;
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Named slice of an asset's persisted metadata (e.g. a computer asset's `status` / `ports`
|
|
228
|
+
* section), or a section of a recording's generated notes (`decisions`, `action_items`,
|
|
229
|
+
* `open_questions`, `notes`). `topic` is the 1-based `### topic` under a recording's Notes
|
|
230
|
+
* (`section=notes&topic=2`), as Clio's notes hits name it; absent for every other section.
|
|
231
|
+
*/
|
|
232
|
+
export type SectionAnchor = {
|
|
233
|
+
type: 'section';
|
|
234
|
+
section: string;
|
|
235
|
+
topic?: number;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* How a cited value relates to a generative (query) anchor's result.
|
|
239
|
+
*
|
|
240
|
+
* Absent ⇒ consumers MUST treat it as `supporting`. The (de)serializer never
|
|
241
|
+
* defaults it, so round-trips stay exact.
|
|
242
|
+
*/
|
|
243
|
+
export declare const QueryResultRelationship: {
|
|
244
|
+
/** The cell value IS (a cell of) the query result — a 1:1 extraction. */
|
|
245
|
+
readonly Exact: 'exact';
|
|
246
|
+
/**
|
|
247
|
+
* The cell value is authored (e.g. a narrative claim); the query result is
|
|
248
|
+
* supporting evidence / justification, not the value itself. Re-running the
|
|
249
|
+
* query is read-only verification and never replaces the cell value.
|
|
250
|
+
*/
|
|
251
|
+
readonly Supporting: 'supporting';
|
|
252
|
+
};
|
|
253
|
+
export type QueryResultRelationship = (typeof QueryResultRelationship)[keyof typeof QueryResultRelationship];
|
|
254
|
+
/**
|
|
255
|
+
* Generative anchor — a value derived from a semantic-model (Cube.js) query.
|
|
256
|
+
*
|
|
257
|
+
* Unlike positional anchors (page/cell/line), the "location" is the
|
|
258
|
+
* transformation itself: the full Cube.js query spec that was run. Re-running
|
|
259
|
+
* it is read-only verification; it never overwrites the cited value.
|
|
260
|
+
*/
|
|
261
|
+
export type SemanticQueryAnchor = {
|
|
262
|
+
type: 'semantic_query';
|
|
263
|
+
/** The full Cube.js query spec that produced the result (the codified transformation). */
|
|
264
|
+
query: Record<string, unknown>;
|
|
265
|
+
/** Cited measure/dimension id, e.g. `orders.total_revenue`. Omit ⇒ the whole result is the evidence. */
|
|
266
|
+
field?: string;
|
|
267
|
+
/** Dimension/key values identifying the cited row. Robust to re-ordering, unlike `rowIndex`. */
|
|
268
|
+
rowKey?: Record<string, string>;
|
|
269
|
+
/** Positional fallback row selector. */
|
|
270
|
+
rowIndex?: number;
|
|
271
|
+
/** Whether the cell value equals the result (`exact`) or is authored evidence (`supporting`). */
|
|
272
|
+
relationship?: QueryResultRelationship;
|
|
273
|
+
/** Provenance: semantic-model schema version at run time. */
|
|
274
|
+
schemaVersion?: number;
|
|
275
|
+
/** Provenance: sha256 of the deployed YAML at run time, for drift detection. */
|
|
276
|
+
schemaHash?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Provenance for lakehouse-backed models: each source table's Iceberg identity
|
|
279
|
+
* and snapshot when the value was computed (`"<namespace>.<table>"` →
|
|
280
|
+
* `"<table_uuid>:<snapshot_id>"`, the snapshot empty for a table never written).
|
|
281
|
+
* Compared with the live tables by the freshness check.
|
|
282
|
+
*/
|
|
283
|
+
sourceSnapshots?: Record<string, string>;
|
|
284
|
+
/** Provenance: the result's "data as of" instant (ISO-8601 UTC) at capture. */
|
|
285
|
+
dataAsOf?: string;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* One or more shapes on a presentation slide. `shapeIds` are stable Yjs
|
|
289
|
+
* ElementIds (the SDK's `shape.shape_id`) and resolve the anchor on their
|
|
290
|
+
* own; `slideId` / `slideIndex` (1-based) are optional refinements.
|
|
291
|
+
*/
|
|
292
|
+
export type ShapeAnchor = {
|
|
293
|
+
type: 'shape';
|
|
294
|
+
slideId?: string;
|
|
295
|
+
slideIndex?: number;
|
|
296
|
+
shapeIds: string[];
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* A single cell. `chartId` (`chart=`) names the chart anchored at the cell
|
|
300
|
+
* when the place is that chart, not the cell's value: a chart sits right of
|
|
301
|
+
* and below its anchor cell, so a reader reveals it from that corner.
|
|
302
|
+
*/
|
|
303
|
+
export type SheetCellAnchor = {
|
|
304
|
+
type: 'sheet_cell';
|
|
305
|
+
sheetId: number;
|
|
306
|
+
cell: string;
|
|
307
|
+
chartId?: string;
|
|
308
|
+
};
|
|
309
|
+
export type SheetRangeAnchor = {
|
|
310
|
+
type: 'sheet_range';
|
|
311
|
+
sheetId: number;
|
|
312
|
+
range: string;
|
|
313
|
+
/**
|
|
314
|
+
* The spreadsheet engine's shift-log frontier (writer id → seq, `RncEngine.shiftLogFrontier`) the
|
|
315
|
+
* moment `range` was taken, so a reader with the live engine can resolve the range to its current
|
|
316
|
+
* coordinates after rows/columns were inserted or deleted since (`RncEngine.transformRange`).
|
|
317
|
+
* Absent on an anchor taken without an engine, which resolves to `range` as stored.
|
|
318
|
+
*/
|
|
319
|
+
frontier?: Record<string, number>;
|
|
320
|
+
};
|
|
321
|
+
/** A whole worksheet / sheet tab in a spreadsheet. */
|
|
322
|
+
export type SheetTabAnchor = {
|
|
323
|
+
type: 'sheet_tab';
|
|
324
|
+
sheetId: number;
|
|
325
|
+
};
|
|
326
|
+
/**
|
|
327
|
+
* A named Excel table (ListObject) within a worksheet. Stable identity:
|
|
328
|
+
* the table's name survives sorts, inserts, and row additions that would
|
|
329
|
+
* break a raw `sheet_range`. Use this anchor in preference to
|
|
330
|
+
* `sheet_range` whenever the user is binding to a structured table.
|
|
331
|
+
*
|
|
332
|
+
* `fallbackRange` is an optional A1-style range used by resolvers when
|
|
333
|
+
* the table has been deleted or renamed — best-effort recovery.
|
|
334
|
+
*/
|
|
335
|
+
export type SheetTableAnchor = {
|
|
336
|
+
type: 'sheet_table';
|
|
337
|
+
sheetId: number;
|
|
338
|
+
tableName: string;
|
|
339
|
+
fallbackRange?: string;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* One table of an Orion lakehouse namespace, addressed on the namespace asset
|
|
343
|
+
* (tables have no asset rows). `table` is the name within the namespace;
|
|
344
|
+
* `tableUuid` is the Iceberg table UUID, the stable identity that detects a
|
|
345
|
+
* drop-and-recreate or rename; `snapshotId` pins a read to one Iceberg
|
|
346
|
+
* snapshot (an unsupported pinned read is rejected, never served from current
|
|
347
|
+
* data).
|
|
348
|
+
*/
|
|
349
|
+
export type LakehouseTableAnchor = {
|
|
350
|
+
type: 'lakehouse_table';
|
|
351
|
+
table: string;
|
|
352
|
+
tableUuid?: string;
|
|
353
|
+
snapshotId?: string;
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* A whole slide of a PPTX deck. `slideId` is the stable Yjs SlideId (the
|
|
357
|
+
* SDK's `slide.slide_id`); `slideIndex` is the 1-based display position.
|
|
358
|
+
* At least one must be present; producers should emit both when known.
|
|
359
|
+
*/
|
|
360
|
+
export type SlideAnchor = {
|
|
361
|
+
type: 'slide';
|
|
362
|
+
slideId?: string;
|
|
363
|
+
slideIndex?: number;
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* Generative anchor — a value derived from a SQL query.
|
|
367
|
+
*
|
|
368
|
+
* The transformation is the SQL text, carried inline or (preferred) as a
|
|
369
|
+
* governed, re-runnable `query_snippet` asset. Re-running it is read-only
|
|
370
|
+
* verification; it never overwrites the cited value.
|
|
371
|
+
*/
|
|
372
|
+
export type SqlQueryAnchor = {
|
|
373
|
+
type: 'sql_query';
|
|
374
|
+
/** The SQL that produced the result. Optional when `querySnippetAssetId` is set. */
|
|
375
|
+
sql?: string;
|
|
376
|
+
/** A re-runnable `query_snippet` asset that holds the SQL (preferred over inline `sql`). */
|
|
377
|
+
querySnippetAssetId?: string;
|
|
378
|
+
/** SQL dialect, e.g. `postgres`, `snowflake`. */
|
|
379
|
+
dialect?: string;
|
|
380
|
+
/** Cited result column name. Omit ⇒ the whole result is the evidence. */
|
|
381
|
+
field?: string;
|
|
382
|
+
/** Identifying column values for the cited row. Robust to re-ordering, unlike `rowIndex`. */
|
|
383
|
+
rowKey?: Record<string, string>;
|
|
384
|
+
/** Positional fallback row selector. */
|
|
385
|
+
rowIndex?: number;
|
|
386
|
+
/** Whether the cell value equals the result (`exact`) or is authored evidence (`supporting`). */
|
|
387
|
+
relationship?: QueryResultRelationship;
|
|
388
|
+
};
|
|
389
|
+
/** Time string in "H:MM:SS" / "MM:SS" / "M:SS" format. No plain seconds. */
|
|
390
|
+
export type TimeAnchor = {
|
|
391
|
+
type: 'time';
|
|
392
|
+
time: string;
|
|
393
|
+
};
|
|
394
|
+
export type TimeRangeAnchor = {
|
|
395
|
+
type: 'time_range';
|
|
396
|
+
startTime: string;
|
|
397
|
+
endTime: string;
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* A tool invocation in a session transcript. `toolCallId` is the
|
|
401
|
+
* LangChain-native tool call id (the key used by session Y.Doc
|
|
402
|
+
* liveToolCalls), NOT an Athena message tracking id. `messageId` is the
|
|
403
|
+
* tracking id of the assistant message that issued the call, when the
|
|
404
|
+
* producer knows it (Keryx activity carries both as `tool_call_id` and
|
|
405
|
+
* `ai_message_tracking_id`); it lets a consumer still land on the owning
|
|
406
|
+
* message when the call itself is not in view (e.g. an abandoned branch).
|
|
407
|
+
*/
|
|
408
|
+
export type ToolCallAnchor = {
|
|
409
|
+
type: 'tool_call';
|
|
410
|
+
toolCallId: string;
|
|
411
|
+
messageId?: string;
|
|
412
|
+
};
|
|
413
|
+
export type Anchor = CellAnchor | CellRangeAnchor | CommentAnchor | CommentThreadAnchor | FileLineRangeAnchor | LineAnchor | LineRangeAnchor | MessageAnchor | MessageRangeAnchor | MessageBlockAnchor | MessageSectionAnchor | MessageTextAnchor | PageAnchor | PageRangeAnchor | PathAnchor | PageRectAnchor | PageTextAnchor | PixelRangeAnchor | PmNodeAnchor | PmNodeRangeAnchor | PmMarkAnchor | RectAnchor | SectionAnchor | SemanticQueryAnchor | ShapeAnchor | SheetCellAnchor | SheetRangeAnchor | SheetTabAnchor | SheetTableAnchor | LakehouseTableAnchor | SlideAnchor | SqlQueryAnchor | TimeAnchor | TimeRangeAnchor | ToolCallAnchor;
|
|
414
|
+
export type AnchorType = Anchor['type'];
|
|
415
|
+
export declare const AnchorType: {
|
|
416
|
+
readonly Cell: 'cell';
|
|
417
|
+
readonly CellRange: 'cell_range';
|
|
418
|
+
readonly Comment: 'comment';
|
|
419
|
+
readonly CommentThread: 'comment_thread';
|
|
420
|
+
readonly FileLineRange: 'file_line_range';
|
|
421
|
+
readonly Line: 'line';
|
|
422
|
+
readonly LineRange: 'line_range';
|
|
423
|
+
readonly Message: 'msg';
|
|
424
|
+
readonly MessageRange: 'msg_range';
|
|
425
|
+
readonly MessageBlock: 'msg_block';
|
|
426
|
+
readonly MessageSection: 'msg_section';
|
|
427
|
+
readonly MessageText: 'msg_text';
|
|
428
|
+
readonly Page: 'page';
|
|
429
|
+
readonly PageRange: 'page_range';
|
|
430
|
+
readonly Path: 'path';
|
|
431
|
+
readonly PageRect: 'page_rect';
|
|
432
|
+
readonly PageText: 'page_text';
|
|
433
|
+
readonly PixelRange: 'pixel_range';
|
|
434
|
+
readonly PmMark: 'pm_mark';
|
|
435
|
+
readonly PmNode: 'pm_node';
|
|
436
|
+
readonly PmNodeRange: 'pm_node_range';
|
|
437
|
+
readonly Rect: 'rect';
|
|
438
|
+
readonly Section: 'section';
|
|
439
|
+
readonly SemanticQuery: 'semantic_query';
|
|
440
|
+
readonly Shape: 'shape';
|
|
441
|
+
readonly SheetCell: 'sheet_cell';
|
|
442
|
+
readonly SheetRange: 'sheet_range';
|
|
443
|
+
readonly SheetTab: 'sheet_tab';
|
|
444
|
+
readonly SheetTable: 'sheet_table';
|
|
445
|
+
readonly LakehouseTable: 'lakehouse_table';
|
|
446
|
+
readonly Slide: 'slide';
|
|
447
|
+
readonly SqlQuery: 'sql_query';
|
|
448
|
+
readonly Time: 'time';
|
|
449
|
+
readonly TimeRange: 'time_range';
|
|
450
|
+
readonly ToolCall: 'tool_call';
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* Pre-rename session anchor spellings that are still accepted on input so
|
|
454
|
+
* links shared before the `msg*` rename keep resolving. Output always uses
|
|
455
|
+
* the current names (see `serialize.ts`).
|
|
456
|
+
*/
|
|
457
|
+
export declare const LEGACY_ANCHOR_TYPES: Readonly<Record<string, AnchorType>>;
|
|
458
|
+
export declare function isAnchorType(value: unknown): value is AnchorType;
|
|
459
|
+
/**
|
|
460
|
+
* Quick check: validates only the `type` discriminator string.
|
|
461
|
+
* For full structural validation, use `parseAnchor` from `./schemas`.
|
|
462
|
+
*/
|
|
463
|
+
export declare function isAnchor(value: unknown): value is Anchor;
|
|
464
|
+
/** Runtime form of TimeAnchor with pre-computed seconds. */
|
|
465
|
+
export type TimeAnchorSeconds = {
|
|
466
|
+
type: 'time_seconds';
|
|
467
|
+
timeSeconds: number;
|
|
468
|
+
};
|
|
469
|
+
/** Runtime form of TimeRangeAnchor with pre-computed seconds. */
|
|
470
|
+
export type TimeRangeAnchorSeconds = {
|
|
471
|
+
type: 'time_range_seconds';
|
|
472
|
+
startTimeSeconds: number;
|
|
473
|
+
endTimeSeconds: number;
|
|
474
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset bounds for anchor validation.
|
|
3
|
+
* Used when editing anchors — validates time inputs against duration,
|
|
4
|
+
* rect inputs against dimensions, etc.
|
|
5
|
+
*/
|
|
6
|
+
export type AssetBounds = {
|
|
7
|
+
type: 'audio' | 'video' | 'meeting' | 'phone_call' | 'browse' | 'desktop_session' | 'mobile_session';
|
|
8
|
+
/** Total duration in seconds */
|
|
9
|
+
duration: number;
|
|
10
|
+
/** Current playback position in seconds (optional, for "use current" default) */
|
|
11
|
+
currentTime?: number;
|
|
12
|
+
} | {
|
|
13
|
+
type: 'image' | 'pdf';
|
|
14
|
+
/** Width in pixels */
|
|
15
|
+
width: number;
|
|
16
|
+
/** Height in pixels */
|
|
17
|
+
height: number;
|
|
18
|
+
} | {
|
|
19
|
+
type: 'page_rect';
|
|
20
|
+
page: number;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
} | {
|
|
24
|
+
type: 'line' | 'line_range';
|
|
25
|
+
/** Total line count for validation (optional) */
|
|
26
|
+
lineCount?: number;
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@athenaintel/references/asset-links` — what a renderer of asset mentions
|
|
3
|
+
* and citations needs, with no schema validation behind it.
|
|
4
|
+
*
|
|
5
|
+
* An asset mention is `[@Label](…/dashboard/spaces/?asset_ids=…&type=…)` (or
|
|
6
|
+
* `mention://asset?id=…`); with an anchor it is a citation. This entry decodes
|
|
7
|
+
* those links into an `AssetReference` (anchor, version, `meta.assetType`,
|
|
8
|
+
* `meta.excerpt`), labels the anchor the way Olympus's chips label it, and
|
|
9
|
+
* writes the anchor (or the whole reference, as a Spaces link) back in its
|
|
10
|
+
* canonical query form.
|
|
11
|
+
*
|
|
12
|
+
* It is the one entry the `@athenaintel/react` SDK bundles, so it must stay
|
|
13
|
+
* free of `zod` (the root entry's object and callable codecs validate with
|
|
14
|
+
* it, and the published SDK carries no zod): `asset-links.test.ts` walks its
|
|
15
|
+
* import graph and fails on a module that reaches it.
|
|
16
|
+
*/
|
|
17
|
+
export { formatReferenceAnchor, type ReferenceAnchorFormatMode } from './anchors/format';
|
|
18
|
+
export { serializeAnchorToParams } from './anchors/serialize';
|
|
19
|
+
export type { Anchor } from './anchors/types';
|
|
20
|
+
export { decodeFromAssetMentionUri } from './formats/uri/asset-mention-uri';
|
|
21
|
+
export { decodeFromAssetSpacesUrl, encodeToAssetSpacesUrl } from './formats/uri/asset-spaces-url';
|
|
22
|
+
export { quoteSheetName } from './sheet-name';
|
|
23
|
+
export type { AssetMeta, AssetReference } from './types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Anchor } from './anchors/types';
|
|
2
|
+
import type { AssetMeta, AssetReference } from './types';
|
|
3
|
+
/** What an asset reference is built from: an asset's id, title and type. */
|
|
4
|
+
export interface AssetLike {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly title: string;
|
|
7
|
+
readonly athenaOriginalType: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Build a canonical {@link AssetReference}: the asset's id, an optional anchor, and its meta (title
|
|
11
|
+
* and type, which `opts.meta` overrides key by key).
|
|
12
|
+
*/
|
|
13
|
+
export declare function assetToReference(asset: AssetLike, opts?: {
|
|
14
|
+
anchor?: Anchor;
|
|
15
|
+
meta?: Partial<AssetMeta>;
|
|
16
|
+
}): AssetReference;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single inventory of every format the reference system recognises.
|
|
3
|
+
*
|
|
4
|
+
* This file is the source of truth for:
|
|
5
|
+
* - Format name constants (`UriFormat`, `ObjectFormat`)
|
|
6
|
+
* - The flat catalog listing every format with its wire type, `Referenced`
|
|
7
|
+
* discriminator, and preferred flag
|
|
8
|
+
* - Derived helpers for lookup
|
|
9
|
+
*
|
|
10
|
+
* Detection, decode, and encode functions live in their own files — they
|
|
11
|
+
* accept different shapes and can't be meaningfully unified. But the
|
|
12
|
+
* *metadata* about each format belongs here so nothing drifts.
|
|
13
|
+
*
|
|
14
|
+
* Add new formats here first, then wire up detection + codec.
|
|
15
|
+
*/
|
|
16
|
+
import type { Referenced } from '../types';
|
|
17
|
+
export type WireType = 'uri' | 'object';
|
|
18
|
+
export declare const UriFormat: {
|
|
19
|
+
readonly AssetSpacesUrl: 'asset_spaces_url';
|
|
20
|
+
readonly NavigationSpacesUrl: 'navigation_spaces_url';
|
|
21
|
+
readonly AssetMentionUri: 'asset_mention_uri';
|
|
22
|
+
readonly CallableMentionUri: 'callable_mention_uri';
|
|
23
|
+
readonly PersonMentionUri: 'person_mention_uri';
|
|
24
|
+
readonly GroupMentionUri: 'group_mention_uri';
|
|
25
|
+
readonly PreReferenceUri: 'pre_reference_uri';
|
|
26
|
+
};
|
|
27
|
+
export type UriFormat = (typeof UriFormat)[keyof typeof UriFormat];
|
|
28
|
+
export declare const ObjectFormat: {
|
|
29
|
+
readonly Asset: 'asset_object';
|
|
30
|
+
readonly Callable: 'callable_object';
|
|
31
|
+
readonly Person: 'person_object';
|
|
32
|
+
readonly Group: 'group_object';
|
|
33
|
+
readonly ExternalUrl: 'external_url_object';
|
|
34
|
+
readonly Navigation: 'navigation_object';
|
|
35
|
+
readonly PreReferenceObject: 'pre_reference_object';
|
|
36
|
+
};
|
|
37
|
+
export type ObjectFormat = (typeof ObjectFormat)[keyof typeof ObjectFormat];
|
|
38
|
+
export declare function isCanonicalObjectFormat(format: unknown): format is ObjectFormat;
|
|
39
|
+
export type DetectedUriFormat = {
|
|
40
|
+
kind: 'uri';
|
|
41
|
+
format: UriFormat;
|
|
42
|
+
url: URL;
|
|
43
|
+
} | {
|
|
44
|
+
kind: 'unknown_url';
|
|
45
|
+
url: string;
|
|
46
|
+
} | {
|
|
47
|
+
kind: 'unrecognized';
|
|
48
|
+
};
|
|
49
|
+
export type DetectedObjectFormat = {
|
|
50
|
+
kind: 'object';
|
|
51
|
+
format: ObjectFormat;
|
|
52
|
+
data: Record<string, unknown>;
|
|
53
|
+
} | {
|
|
54
|
+
kind: 'unrecognized';
|
|
55
|
+
};
|
|
56
|
+
export type FormatEntry = {
|
|
57
|
+
/** Wire-level name — the string stored or detected at runtime. */
|
|
58
|
+
format: string;
|
|
59
|
+
/** URI or object. */
|
|
60
|
+
wire: WireType;
|
|
61
|
+
/**
|
|
62
|
+
* Level 1 discriminator this format always produces.
|
|
63
|
+
* `null` when the format is polymorphic (pre-reference formats determine
|
|
64
|
+
* `referenced` at decode time from the payload itself).
|
|
65
|
+
*/
|
|
66
|
+
referenced: Referenced | null;
|
|
67
|
+
/** True when this is the canonical write format for its `referenced` + `wire` pair. */
|
|
68
|
+
preferred: boolean;
|
|
69
|
+
};
|
|
70
|
+
export declare const FORMAT_CATALOG: readonly FormatEntry[];
|
|
71
|
+
/** Look up the catalog entry for a format name. */
|
|
72
|
+
export declare function getFormatEntry(format: string): FormatEntry | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Level 1 discriminator for a known format.
|
|
75
|
+
* Returns `null` for polymorphic legacy formats, `undefined` if the format is unknown.
|
|
76
|
+
*/
|
|
77
|
+
export declare function getReferencedForFormat(format: string): Referenced | null | undefined;
|
|
78
|
+
/** The preferred format name for a given `referenced` + wire combination. */
|
|
79
|
+
export declare function getPreferredFormat(referenced: Referenced, wire: WireType): string | undefined;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Reference } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Pattern for `[@Title](url)`.
|
|
4
|
+
* Group 1: full match, 2: display name (without `@`), 3: inner URL.
|
|
5
|
+
*
|
|
6
|
+
* The title may hold balanced brackets one level deep, as CommonMark link text
|
|
7
|
+
* does (`[@Plan [Q3]](url)`), or a lone `[` (`[@Draft [WIP](url)`): asset titles
|
|
8
|
+
* carry both and the serializer writes titles verbatim.
|
|
9
|
+
* A pair followed by `(scheme://` or `(/` ends the title there, so a
|
|
10
|
+
* lone-bracket title cannot swallow the mention after it; `[@Plan [Q3](Review)](url)` still
|
|
11
|
+
* keeps its whole title.
|
|
12
|
+
*
|
|
13
|
+
* Not global — callers add `g` when scanning prose:
|
|
14
|
+
* `new RegExp(MARKDOWN_AT_LINK.source, 'g')`
|
|
15
|
+
*/
|
|
16
|
+
export declare const MARKDOWN_AT_LINK: RegExp;
|
|
17
|
+
/**
|
|
18
|
+
* Parse already-split markdown at-link chunks into a runtime Reference.
|
|
19
|
+
*
|
|
20
|
+
* Callers are responsible for splitting the `[@Title](url)` format; this
|
|
21
|
+
* function takes the two parts directly. The `displayName` should NOT
|
|
22
|
+
* include the leading `@` — that is a wire-level marker added/stripped
|
|
23
|
+
* by serializers and renderers.
|
|
24
|
+
*
|
|
25
|
+
* Internally delegates to `parseReferenceURI` for the inner URL, then
|
|
26
|
+
* merges `displayName` into the appropriate `meta` field.
|
|
27
|
+
*/
|
|
28
|
+
export declare function parseReferenceMarkdownChunks(displayName: string, innerUrl: string): Reference;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Reference } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Default display label for markdown `[@Title](uri)` when no explicit title is passed.
|
|
4
|
+
* Aligns with converter-olympus `getDisplayNameFromReference` behaviour.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getDisplayNameFromReference(ref: Reference): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AssetReference } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Decode: `{ format: 'asset_object', ... }` → AssetReference
|
|
4
|
+
*/
|
|
5
|
+
export declare function decodeFromAssetObject(data: Record<string, unknown>): AssetReference;
|
|
6
|
+
/**
|
|
7
|
+
* Encode: AssetReference → object with `format: 'asset_object'`
|
|
8
|
+
*/
|
|
9
|
+
export declare function encodeToAssetObject(reference: AssetReference): Record<string, unknown>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CallableReference } from '../../types';
|
|
2
|
+
export declare function decodeFromCallableObject(data: Record<string, unknown>): CallableReference;
|
|
3
|
+
/**
|
|
4
|
+
* Encode: CallableReference → object with `format: 'callable_object'`
|
|
5
|
+
*/
|
|
6
|
+
export declare function encodeToCallableObject(ref: CallableReference): Record<string, unknown>;
|