@agent-native/core 0.110.3 → 0.111.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/corpus/README.md +1 -1
- package/corpus/core/CHANGELOG.md +11 -0
- package/corpus/core/docs/content/components.mdx +7 -0
- package/corpus/core/docs/content/locales/ar-SA/components.mdx +4 -2
- package/corpus/core/docs/content/locales/de-DE/components.mdx +4 -2
- package/corpus/core/docs/content/locales/es-ES/components.mdx +4 -2
- package/corpus/core/docs/content/locales/fr-FR/components.mdx +4 -2
- package/corpus/core/docs/content/locales/hi-IN/components.mdx +3 -2
- package/corpus/core/docs/content/locales/ja-JP/components.mdx +3 -2
- package/corpus/core/docs/content/locales/ko-KR/components.mdx +3 -2
- package/corpus/core/docs/content/locales/pt-BR/components.mdx +4 -2
- package/corpus/core/docs/content/locales/zh-CN/components.mdx +3 -2
- package/corpus/core/docs/content/locales/zh-TW/components.mdx +3 -2
- package/corpus/core/docs/content/toolkit-agent-ux.mdx +8 -3
- package/corpus/core/migration-manifest.json +133 -266
- package/corpus/core/package.json +32 -33
- package/corpus/core/scripts/check-dist-imports.mjs +25 -1
- package/corpus/core/scripts/finalize-build.mjs +59 -2
- package/corpus/core/src/client/AgentAskPopover.tsx +1 -1
- package/corpus/core/src/client/AgentPanel.tsx +1 -1
- package/corpus/core/src/client/AssistantChat.tsx +12 -14
- package/corpus/core/src/client/NewWorkspaceAppFlow.tsx +1 -1
- package/corpus/core/src/client/agent-chat-adapter.ts +1 -1
- package/corpus/core/src/client/blocks/RegistryBlockDataProvider.tsx +121 -0
- package/corpus/core/src/client/blocks/index.ts +6 -0
- package/corpus/core/src/client/chat/attachment-adapters.ts +4 -5
- package/corpus/core/src/client/chat/index.ts +0 -1
- package/corpus/core/src/client/chat/message-components.tsx +2 -2
- package/corpus/core/src/client/code-agent-chat-adapter.ts +2 -2
- package/corpus/core/src/client/collab/index.ts +0 -22
- package/corpus/core/src/client/composer/index.ts +5 -66
- package/corpus/core/src/client/composer/runtime-adapters.tsx +123 -0
- package/corpus/core/src/client/composer/use-mention-search.ts +2 -79
- package/corpus/core/src/client/composer/wired-components.tsx +53 -0
- package/corpus/core/src/client/extensions/ExtensionViewer.tsx +1 -1
- package/corpus/core/src/client/extensions/ExtensionsListPage.tsx +1 -1
- package/corpus/core/src/client/extensions/ExtensionsSidebarSection.tsx +1 -1
- package/corpus/core/src/client/index.ts +0 -156
- package/corpus/core/src/client/resources/ResourceEditor.tsx +29 -681
- package/corpus/core/src/client/resources/ResourcesPanel.tsx +1 -1
- package/corpus/core/src/client/settings/AutomationsSection.tsx +1 -1
- package/corpus/core/src/client/sharing/index.ts +0 -4
- package/corpus/core/src/client/tombstone/agent-presence-chip.ts +17 -0
- package/corpus/core/src/client/tombstone/editor.ts +265 -0
- package/corpus/core/src/client/tombstone/live-cursor-overlay.ts +21 -0
- package/corpus/core/src/client/tombstone/presence-bar.ts +17 -0
- package/corpus/core/src/client/tombstone/recent-edit-highlights.ts +17 -0
- package/corpus/core/src/client/tombstone/remote-selection-rings.ts +21 -0
- package/corpus/core/src/client/tombstone/rich-markdown-editor.ts +265 -0
- package/corpus/core/src/client/tombstone/ui-dialog.ts +49 -0
- package/corpus/core/src/client/tombstone/ui-dropdown-menu.ts +69 -0
- package/corpus/core/src/client/tombstone/ui-hover-card.ts +21 -0
- package/corpus/core/src/client/tombstone/ui-popover.ts +25 -0
- package/corpus/core/src/client/tombstone/ui-sheet.ts +49 -0
- package/corpus/core/src/client/tombstone/ui-tooltip.ts +29 -0
- package/corpus/core/src/client/tombstone/visual-style-controls.ts +61 -0
- package/corpus/core/src/client/uploads/index.ts +5 -0
- package/corpus/core/src/client/{rich-markdown-editor/uploadEditorImage.ts → uploads/upload-editor-image.ts} +11 -4
- package/corpus/core/src/package-lifecycle/tombstone.ts +16 -2
- package/corpus/core/src/package-lifecycle/upgrade-error.ts +23 -5
- package/corpus/core/src/testing.ts +1 -4
- package/corpus/core/src/vite/client.ts +62 -22
- package/corpus/templates/content/app/components/editor/VisualEditor.tsx +2 -4
- package/corpus/templates/content/app/components/editor/extensions/registryBlocks.ts +1 -1
- package/corpus/templates/content/app/components/editor/registrySlashItems.ts +53 -52
- package/corpus/templates/plan/app/components/editor/PlanBlockNode.tsx +2 -2
- package/corpus/templates/plan/app/components/editor/planSlashCommands.ts +1 -1
- package/corpus/templates/plan/app/components/plan/DocumentArea.tsx +1 -1
- package/corpus/templates/plan/app/components/plan/PlanImageNode.tsx +1 -1
- package/corpus/templates/plan/app/components/plan/PlanMarkdownEditor.tsx +1 -1
- package/dist/catalog.json +1 -0
- package/dist/client/AgentAskPopover.js +1 -1
- package/dist/client/AgentAskPopover.js.map +1 -1
- package/dist/client/AgentPanel.js +1 -1
- package/dist/client/AgentPanel.js.map +1 -1
- package/dist/client/AssistantChat.d.ts +2 -2
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +5 -6
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/NewWorkspaceAppFlow.js +1 -1
- package/dist/client/NewWorkspaceAppFlow.js.map +1 -1
- package/dist/client/agent-chat-adapter.d.ts.map +1 -1
- package/dist/client/agent-chat-adapter.js +1 -1
- package/dist/client/agent-chat-adapter.js.map +1 -1
- package/dist/client/blocks/RegistryBlockDataProvider.d.ts +7 -0
- package/dist/client/blocks/RegistryBlockDataProvider.d.ts.map +1 -0
- package/dist/client/blocks/RegistryBlockDataProvider.js +54 -0
- package/dist/client/blocks/RegistryBlockDataProvider.js.map +1 -0
- package/dist/client/blocks/index.d.ts +2 -0
- package/dist/client/blocks/index.d.ts.map +1 -1
- package/dist/client/blocks/index.js +1 -0
- package/dist/client/blocks/index.js.map +1 -1
- package/dist/client/chat/attachment-adapters.d.ts.map +1 -1
- package/dist/client/chat/attachment-adapters.js +1 -1
- package/dist/client/chat/attachment-adapters.js.map +1 -1
- package/dist/client/chat/index.d.ts +0 -1
- package/dist/client/chat/index.d.ts.map +1 -1
- package/dist/client/chat/index.js +0 -1
- package/dist/client/chat/index.js.map +1 -1
- package/dist/client/chat/message-components.d.ts.map +1 -1
- package/dist/client/chat/message-components.js +2 -2
- package/dist/client/chat/message-components.js.map +1 -1
- package/dist/client/code-agent-chat-adapter.d.ts.map +1 -1
- package/dist/client/code-agent-chat-adapter.js +1 -1
- package/dist/client/code-agent-chat-adapter.js.map +1 -1
- package/dist/client/collab/index.d.ts +0 -5
- package/dist/client/collab/index.d.ts.map +1 -1
- package/dist/client/collab/index.js +0 -5
- package/dist/client/collab/index.js.map +1 -1
- package/dist/client/composer/index.d.ts +3 -11
- package/dist/client/composer/index.d.ts.map +1 -1
- package/dist/client/composer/index.js +3 -10
- package/dist/client/composer/index.js.map +1 -1
- package/dist/client/composer/runtime-adapters.d.ts +5 -0
- package/dist/client/composer/runtime-adapters.d.ts.map +1 -0
- package/dist/client/composer/runtime-adapters.js +85 -0
- package/dist/client/composer/runtime-adapters.js.map +1 -0
- package/dist/client/composer/use-mention-search.d.ts +1 -2
- package/dist/client/composer/use-mention-search.d.ts.map +1 -1
- package/dist/client/composer/use-mention-search.js +2 -69
- package/dist/client/composer/use-mention-search.js.map +1 -1
- package/dist/client/composer/wired-components.d.ts +10 -0
- package/dist/client/composer/wired-components.d.ts.map +1 -0
- package/dist/client/composer/wired-components.js +20 -0
- package/dist/client/composer/wired-components.js.map +1 -0
- package/dist/client/extensions/ExtensionViewer.js +1 -1
- package/dist/client/extensions/ExtensionViewer.js.map +1 -1
- package/dist/client/extensions/ExtensionsListPage.js +1 -1
- package/dist/client/extensions/ExtensionsListPage.js.map +1 -1
- package/dist/client/extensions/ExtensionsSidebarSection.js +1 -1
- package/dist/client/extensions/ExtensionsSidebarSection.js.map +1 -1
- package/dist/client/index.d.ts +0 -10
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +0 -26
- package/dist/client/index.js.map +1 -1
- package/dist/client/resources/ResourceEditor.d.ts.map +1 -1
- package/dist/client/resources/ResourceEditor.js +14 -532
- package/dist/client/resources/ResourceEditor.js.map +1 -1
- package/dist/client/resources/ResourcesPanel.js +1 -1
- package/dist/client/resources/ResourcesPanel.js.map +1 -1
- package/dist/client/settings/AutomationsSection.js +1 -1
- package/dist/client/settings/AutomationsSection.js.map +1 -1
- package/dist/client/sharing/index.d.ts +0 -1
- package/dist/client/sharing/index.d.ts.map +1 -1
- package/dist/client/sharing/index.js +0 -1
- package/dist/client/sharing/index.js.map +1 -1
- package/dist/client/tombstone/agent-presence-chip.d.ts +6 -0
- package/dist/client/tombstone/agent-presence-chip.d.ts.map +1 -0
- package/dist/client/tombstone/agent-presence-chip.js +5 -0
- package/dist/client/tombstone/agent-presence-chip.js.map +1 -0
- package/dist/client/tombstone/editor.d.ts +128 -0
- package/dist/client/tombstone/editor.d.ts.map +1 -0
- package/dist/client/tombstone/editor.js +76 -0
- package/dist/client/tombstone/editor.js.map +1 -0
- package/dist/client/tombstone/live-cursor-overlay.d.ts +8 -0
- package/dist/client/tombstone/live-cursor-overlay.d.ts.map +1 -0
- package/dist/client/tombstone/live-cursor-overlay.js +5 -0
- package/dist/client/tombstone/live-cursor-overlay.js.map +1 -0
- package/dist/client/tombstone/presence-bar.d.ts +6 -0
- package/dist/client/tombstone/presence-bar.d.ts.map +1 -0
- package/dist/client/tombstone/presence-bar.js +5 -0
- package/dist/client/tombstone/presence-bar.js.map +1 -0
- package/dist/client/tombstone/recent-edit-highlights.d.ts +6 -0
- package/dist/client/tombstone/recent-edit-highlights.d.ts.map +1 -0
- package/dist/client/tombstone/recent-edit-highlights.js +5 -0
- package/dist/client/tombstone/recent-edit-highlights.js.map +1 -0
- package/dist/client/tombstone/remote-selection-rings.d.ts +8 -0
- package/dist/client/tombstone/remote-selection-rings.d.ts.map +1 -0
- package/dist/client/tombstone/remote-selection-rings.js +5 -0
- package/dist/client/tombstone/remote-selection-rings.js.map +1 -0
- package/dist/client/tombstone/rich-markdown-editor.d.ts +128 -0
- package/dist/client/tombstone/rich-markdown-editor.d.ts.map +1 -0
- package/dist/client/tombstone/rich-markdown-editor.js +76 -0
- package/dist/client/tombstone/rich-markdown-editor.js.map +1 -0
- package/dist/client/tombstone/ui-dialog.d.ts +22 -0
- package/dist/client/tombstone/ui-dialog.d.ts.map +1 -0
- package/dist/client/tombstone/ui-dialog.js +23 -0
- package/dist/client/tombstone/ui-dialog.js.map +1 -0
- package/dist/client/tombstone/ui-dropdown-menu.d.ts +32 -0
- package/dist/client/tombstone/ui-dropdown-menu.d.ts.map +1 -0
- package/dist/client/tombstone/ui-dropdown-menu.js +33 -0
- package/dist/client/tombstone/ui-dropdown-menu.js.map +1 -0
- package/dist/client/tombstone/ui-hover-card.d.ts +8 -0
- package/dist/client/tombstone/ui-hover-card.d.ts.map +1 -0
- package/dist/client/tombstone/ui-hover-card.js +9 -0
- package/dist/client/tombstone/ui-hover-card.js.map +1 -0
- package/dist/client/tombstone/ui-popover.d.ts +10 -0
- package/dist/client/tombstone/ui-popover.d.ts.map +1 -0
- package/dist/client/tombstone/ui-popover.js +11 -0
- package/dist/client/tombstone/ui-popover.js.map +1 -0
- package/dist/client/tombstone/ui-sheet.d.ts +22 -0
- package/dist/client/tombstone/ui-sheet.d.ts.map +1 -0
- package/dist/client/tombstone/ui-sheet.js +23 -0
- package/dist/client/tombstone/ui-sheet.js.map +1 -0
- package/dist/client/tombstone/ui-tooltip.d.ts +12 -0
- package/dist/client/tombstone/ui-tooltip.d.ts.map +1 -0
- package/dist/client/tombstone/ui-tooltip.js +13 -0
- package/dist/client/tombstone/ui-tooltip.js.map +1 -0
- package/dist/client/tombstone/visual-style-controls.d.ts +28 -0
- package/dist/client/tombstone/visual-style-controls.d.ts.map +1 -0
- package/dist/client/tombstone/visual-style-controls.js +23 -0
- package/dist/client/tombstone/visual-style-controls.js.map +1 -0
- package/dist/client/uploads/index.d.ts +1 -0
- package/dist/client/uploads/index.d.ts.map +1 -1
- package/dist/client/uploads/index.js +1 -0
- package/dist/client/uploads/index.js.map +1 -1
- package/dist/client/{rich-markdown-editor/uploadEditorImage.d.ts → uploads/upload-editor-image.d.ts} +8 -4
- package/dist/client/uploads/upload-editor-image.d.ts.map +1 -0
- package/dist/client/{rich-markdown-editor/uploadEditorImage.js → uploads/upload-editor-image.js} +2 -2
- package/dist/client/uploads/upload-editor-image.js.map +1 -0
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/awareness.d.ts.map +1 -1
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/package-lifecycle/tombstone.d.ts.map +1 -1
- package/dist/package-lifecycle/tombstone.js +13 -3
- package/dist/package-lifecycle/tombstone.js.map +1 -1
- package/dist/package-lifecycle/upgrade-error.d.ts +2 -2
- package/dist/package-lifecycle/upgrade-error.d.ts.map +1 -1
- package/dist/package-lifecycle/upgrade-error.js +8 -5
- package/dist/package-lifecycle/upgrade-error.js.map +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/transcribe-voice.d.ts +1 -1
- package/dist/testing.d.ts +1 -3
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +1 -3
- package/dist/testing.js.map +1 -1
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +26 -22
- package/dist/vite/client.js.map +1 -1
- package/docs/content/components.mdx +7 -0
- package/docs/content/locales/ar-SA/components.mdx +4 -2
- package/docs/content/locales/de-DE/components.mdx +4 -2
- package/docs/content/locales/es-ES/components.mdx +4 -2
- package/docs/content/locales/fr-FR/components.mdx +4 -2
- package/docs/content/locales/hi-IN/components.mdx +3 -2
- package/docs/content/locales/ja-JP/components.mdx +3 -2
- package/docs/content/locales/ko-KR/components.mdx +3 -2
- package/docs/content/locales/pt-BR/components.mdx +4 -2
- package/docs/content/locales/zh-CN/components.mdx +3 -2
- package/docs/content/locales/zh-TW/components.mdx +3 -2
- package/docs/content/toolkit-agent-ux.mdx +8 -3
- package/migration-manifest.json +133 -266
- package/package.json +31 -32
- package/corpus/core/src/client/composer/AgentComposerFrame.tsx +0 -59
- package/corpus/core/src/client/composer/ComposerPlusMenu.tsx +0 -988
- package/corpus/core/src/client/composer/MentionPopover.tsx +0 -412
- package/corpus/core/src/client/composer/PastedTextChip.tsx +0 -150
- package/corpus/core/src/client/composer/PromptComposer.tsx +0 -714
- package/corpus/core/src/client/composer/RealtimeVoiceMode.tsx +0 -860
- package/corpus/core/src/client/composer/TiptapComposer.tsx +0 -2928
- package/corpus/core/src/client/composer/VoiceButton.tsx +0 -262
- package/corpus/core/src/client/composer/asset-picker-url.ts +0 -80
- package/corpus/core/src/client/composer/attachment-accept.ts +0 -71
- package/corpus/core/src/client/composer/draft-key.ts +0 -7
- package/corpus/core/src/client/composer/extensions/FileReference.tsx +0 -55
- package/corpus/core/src/client/composer/extensions/MentionReference.tsx +0 -93
- package/corpus/core/src/client/composer/extensions/SkillReference.tsx +0 -56
- package/corpus/core/src/client/composer/pasted-text.ts +0 -160
- package/corpus/core/src/client/composer/prompt-attachments.ts +0 -70
- package/corpus/core/src/client/composer/realtime-voice-audio-level.ts +0 -64
- package/corpus/core/src/client/composer/realtime-voice-transcript.ts +0 -134
- package/corpus/core/src/client/composer/types.ts +0 -66
- package/corpus/core/src/client/composer/use-file-search.ts +0 -63
- package/corpus/core/src/client/composer/use-skills.ts +0 -44
- package/corpus/core/src/client/composer/useRealtimeVoiceMode.tsx +0 -2095
- package/corpus/core/src/client/composer/useVoiceDictation.ts +0 -1155
- package/corpus/core/src/client/editor/index.ts +0 -1
- package/corpus/core/src/client/rich-markdown-editor/RegistryBlockNode.tsx +0 -799
- package/corpus/core/src/client/rich-markdown-editor/index.ts +0 -70
- package/corpus/core/src/client/rich-markdown-editor/registrySlashCommands.ts +0 -112
- package/dist/client/composer/AgentComposerFrame.d.ts +0 -19
- package/dist/client/composer/AgentComposerFrame.d.ts.map +0 -1
- package/dist/client/composer/AgentComposerFrame.js +0 -14
- package/dist/client/composer/AgentComposerFrame.js.map +0 -1
- package/dist/client/composer/ComposerPlusMenu.d.ts +0 -17
- package/dist/client/composer/ComposerPlusMenu.d.ts.map +0 -1
- package/dist/client/composer/ComposerPlusMenu.js +0 -501
- package/dist/client/composer/ComposerPlusMenu.js.map +0 -1
- package/dist/client/composer/MentionPopover.d.ts +0 -29
- package/dist/client/composer/MentionPopover.d.ts.map +0 -1
- package/dist/client/composer/MentionPopover.js +0 -180
- package/dist/client/composer/MentionPopover.js.map +0 -1
- package/dist/client/composer/PastedTextChip.d.ts +0 -9
- package/dist/client/composer/PastedTextChip.d.ts.map +0 -1
- package/dist/client/composer/PastedTextChip.js +0 -47
- package/dist/client/composer/PastedTextChip.js.map +0 -1
- package/dist/client/composer/PromptComposer.d.ts +0 -115
- package/dist/client/composer/PromptComposer.d.ts.map +0 -1
- package/dist/client/composer/PromptComposer.js +0 -299
- package/dist/client/composer/PromptComposer.js.map +0 -1
- package/dist/client/composer/RealtimeVoiceMode.d.ts +0 -104
- package/dist/client/composer/RealtimeVoiceMode.d.ts.map +0 -1
- package/dist/client/composer/RealtimeVoiceMode.js +0 -245
- package/dist/client/composer/RealtimeVoiceMode.js.map +0 -1
- package/dist/client/composer/TiptapComposer.d.ts +0 -222
- package/dist/client/composer/TiptapComposer.d.ts.map +0 -1
- package/dist/client/composer/TiptapComposer.js +0 -1834
- package/dist/client/composer/TiptapComposer.js.map +0 -1
- package/dist/client/composer/VoiceButton.d.ts +0 -23
- package/dist/client/composer/VoiceButton.d.ts.map +0 -1
- package/dist/client/composer/VoiceButton.js +0 -100
- package/dist/client/composer/VoiceButton.js.map +0 -1
- package/dist/client/composer/asset-picker-url.d.ts +0 -16
- package/dist/client/composer/asset-picker-url.d.ts.map +0 -1
- package/dist/client/composer/asset-picker-url.js +0 -64
- package/dist/client/composer/asset-picker-url.js.map +0 -1
- package/dist/client/composer/attachment-accept.d.ts +0 -9
- package/dist/client/composer/attachment-accept.d.ts.map +0 -1
- package/dist/client/composer/attachment-accept.js +0 -65
- package/dist/client/composer/attachment-accept.js.map +0 -1
- package/dist/client/composer/draft-key.d.ts +0 -2
- package/dist/client/composer/draft-key.d.ts.map +0 -1
- package/dist/client/composer/draft-key.js +0 -8
- package/dist/client/composer/draft-key.js.map +0 -1
- package/dist/client/composer/extensions/FileReference.d.ts +0 -3
- package/dist/client/composer/extensions/FileReference.d.ts.map +0 -1
- package/dist/client/composer/extensions/FileReference.js +0 -36
- package/dist/client/composer/extensions/FileReference.js.map +0 -1
- package/dist/client/composer/extensions/MentionReference.d.ts +0 -3
- package/dist/client/composer/extensions/MentionReference.d.ts.map +0 -1
- package/dist/client/composer/extensions/MentionReference.js +0 -66
- package/dist/client/composer/extensions/MentionReference.js.map +0 -1
- package/dist/client/composer/extensions/SkillReference.d.ts +0 -3
- package/dist/client/composer/extensions/SkillReference.d.ts.map +0 -1
- package/dist/client/composer/extensions/SkillReference.js +0 -40
- package/dist/client/composer/extensions/SkillReference.js.map +0 -1
- package/dist/client/composer/pasted-text.d.ts +0 -31
- package/dist/client/composer/pasted-text.d.ts.map +0 -1
- package/dist/client/composer/pasted-text.js +0 -130
- package/dist/client/composer/pasted-text.js.map +0 -1
- package/dist/client/composer/prompt-attachments.d.ts +0 -11
- package/dist/client/composer/prompt-attachments.d.ts.map +0 -1
- package/dist/client/composer/prompt-attachments.js +0 -45
- package/dist/client/composer/prompt-attachments.js.map +0 -1
- package/dist/client/composer/realtime-voice-audio-level.d.ts +0 -14
- package/dist/client/composer/realtime-voice-audio-level.d.ts.map +0 -1
- package/dist/client/composer/realtime-voice-audio-level.js +0 -47
- package/dist/client/composer/realtime-voice-audio-level.js.map +0 -1
- package/dist/client/composer/realtime-voice-transcript.d.ts +0 -26
- package/dist/client/composer/realtime-voice-transcript.d.ts.map +0 -1
- package/dist/client/composer/realtime-voice-transcript.js +0 -103
- package/dist/client/composer/realtime-voice-transcript.js.map +0 -1
- package/dist/client/composer/types.d.ts +0 -60
- package/dist/client/composer/types.d.ts.map +0 -1
- package/dist/client/composer/types.js +0 -2
- package/dist/client/composer/types.js.map +0 -1
- package/dist/client/composer/use-file-search.d.ts +0 -6
- package/dist/client/composer/use-file-search.d.ts.map +0 -1
- package/dist/client/composer/use-file-search.js +0 -52
- package/dist/client/composer/use-file-search.js.map +0 -1
- package/dist/client/composer/use-skills.d.ts +0 -7
- package/dist/client/composer/use-skills.d.ts.map +0 -1
- package/dist/client/composer/use-skills.js +0 -39
- package/dist/client/composer/use-skills.js.map +0 -1
- package/dist/client/composer/useRealtimeVoiceMode.d.ts +0 -172
- package/dist/client/composer/useRealtimeVoiceMode.d.ts.map +0 -1
- package/dist/client/composer/useRealtimeVoiceMode.js +0 -1648
- package/dist/client/composer/useRealtimeVoiceMode.js.map +0 -1
- package/dist/client/composer/useVoiceDictation.d.ts +0 -57
- package/dist/client/composer/useVoiceDictation.d.ts.map +0 -1
- package/dist/client/composer/useVoiceDictation.js +0 -975
- package/dist/client/composer/useVoiceDictation.js.map +0 -1
- package/dist/client/editor/index.d.ts +0 -2
- package/dist/client/editor/index.d.ts.map +0 -1
- package/dist/client/editor/index.js +0 -2
- package/dist/client/editor/index.js.map +0 -1
- package/dist/client/rich-markdown-editor/RegistryBlockNode.d.ts +0 -130
- package/dist/client/rich-markdown-editor/RegistryBlockNode.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/RegistryBlockNode.js +0 -426
- package/dist/client/rich-markdown-editor/RegistryBlockNode.js.map +0 -1
- package/dist/client/rich-markdown-editor/index.d.ts +0 -5
- package/dist/client/rich-markdown-editor/index.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/index.js +0 -5
- package/dist/client/rich-markdown-editor/index.js.map +0 -1
- package/dist/client/rich-markdown-editor/registrySlashCommands.d.ts +0 -60
- package/dist/client/rich-markdown-editor/registrySlashCommands.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/registrySlashCommands.js +0 -51
- package/dist/client/rich-markdown-editor/registrySlashCommands.js.map +0 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.js.map +0 -1
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
applyDocSurgically,
|
|
3
|
-
BubbleToolbar,
|
|
4
|
-
buildDefaultBubbleItems,
|
|
5
|
-
createCodeBlockNode,
|
|
6
|
-
createImageExtension,
|
|
7
|
-
createImageSlashCommand,
|
|
8
|
-
createRichMarkdownExtensions,
|
|
9
|
-
createSharedEditorExtensions,
|
|
10
|
-
DEFAULT_CODE_LANGUAGES,
|
|
11
|
-
DEFAULT_DRAG_HANDLE_WRAPPER_SELECTOR,
|
|
12
|
-
DEFAULT_SLASH_COMMANDS,
|
|
13
|
-
defaultParseValue,
|
|
14
|
-
diffTopLevel,
|
|
15
|
-
DragHandle,
|
|
16
|
-
getEditorMarkdown,
|
|
17
|
-
gfmToProseJSON,
|
|
18
|
-
MARKDOWN_DIALECT_CONFIG,
|
|
19
|
-
pickAndInsertImage,
|
|
20
|
-
proseJSONToGfm,
|
|
21
|
-
RICH_MARKDOWN_PROGRAMMATIC_TRANSACTION,
|
|
22
|
-
RichMarkdownEditor,
|
|
23
|
-
RunId,
|
|
24
|
-
RUN_ID_NODE_TYPES,
|
|
25
|
-
SharedImage,
|
|
26
|
-
SharedRichEditor,
|
|
27
|
-
SlashCommandMenu,
|
|
28
|
-
useCollabReconcile,
|
|
29
|
-
type BubbleToolbarItem,
|
|
30
|
-
type BubbleToolbarProps,
|
|
31
|
-
type CodeBlockClassNames,
|
|
32
|
-
type CodeLanguageOption,
|
|
33
|
-
type CreateCodeBlockNodeOptions,
|
|
34
|
-
type CreateRichMarkdownExtensionsOptions,
|
|
35
|
-
type CreateSharedEditorExtensionsOptions,
|
|
36
|
-
type DragHandleDropContext,
|
|
37
|
-
type DragHandleDropPlacement,
|
|
38
|
-
type DragHandleOptions,
|
|
39
|
-
type ImageUploadFn,
|
|
40
|
-
type RichMarkdownCollabUser,
|
|
41
|
-
type RichMarkdownDialect,
|
|
42
|
-
type RichMarkdownEditorPreset,
|
|
43
|
-
type RichMarkdownEditorProps,
|
|
44
|
-
type SharedEditorCollab,
|
|
45
|
-
type SharedEditorFeatures,
|
|
46
|
-
type SharedImageOptions,
|
|
47
|
-
type SharedRichEditorProps,
|
|
48
|
-
type SlashCommandItem,
|
|
49
|
-
type SlashCommandMenuProps,
|
|
50
|
-
type TopLevelDiff,
|
|
51
|
-
type UseCollabReconcileOptions,
|
|
52
|
-
type UseCollabReconcileResult,
|
|
53
|
-
} from "@agent-native/toolkit/editor";
|
|
54
|
-
|
|
55
|
-
export { uploadEditorImage } from "./uploadEditorImage.js";
|
|
56
|
-
export {
|
|
57
|
-
createRegistryBlockNode,
|
|
58
|
-
RegistryBlockNodeView,
|
|
59
|
-
RegistryBlockDataProvider,
|
|
60
|
-
useRegistryBlockData,
|
|
61
|
-
type CreateRegistryBlockNodeOptions,
|
|
62
|
-
type RegistryBlockDataValue,
|
|
63
|
-
type RegistryBlockSideMapBlock,
|
|
64
|
-
} from "./RegistryBlockNode.js";
|
|
65
|
-
export {
|
|
66
|
-
buildRegistryBlockSlashItems,
|
|
67
|
-
getRegistryBlockSlashDescription,
|
|
68
|
-
getRegistryBlockSlashSearchText,
|
|
69
|
-
type BuildRegistryBlockSlashItemsOptions,
|
|
70
|
-
} from "./registrySlashCommands.js";
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import type { BlockRegistry, BlockSpec } from "../blocks/index.js";
|
|
2
|
-
|
|
3
|
-
const COMPACT_REGISTRY_BLOCK_DESCRIPTIONS: Record<string, string> = {
|
|
4
|
-
callout: "Emphasized note",
|
|
5
|
-
diagram: "Inline diagram",
|
|
6
|
-
wireframe: "Screen mockup",
|
|
7
|
-
"question-form": "Interactive questions",
|
|
8
|
-
checklist: "Checklist items",
|
|
9
|
-
table: "Editable grid",
|
|
10
|
-
"table-block": "Editable grid",
|
|
11
|
-
"code-tabs": "Tabbed code snippets",
|
|
12
|
-
"custom-html": "Sandboxed HTML",
|
|
13
|
-
tabs: "Tabbed block group",
|
|
14
|
-
columns: "Side-by-side columns",
|
|
15
|
-
mermaid: "Mermaid diagram",
|
|
16
|
-
"api-endpoint": "API reference",
|
|
17
|
-
"openapi-spec": "OpenAPI document",
|
|
18
|
-
"data-model": "ERD schema",
|
|
19
|
-
diff: "Code diff",
|
|
20
|
-
"file-tree": "File/change tree",
|
|
21
|
-
"json-explorer": "JSON tree",
|
|
22
|
-
"annotated-code": "Code walkthrough",
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Compact, user-facing slash-menu copy for structured registry blocks. The full
|
|
27
|
-
* registry description remains available through search text, but the visible
|
|
28
|
-
* row should scan like a command palette, not a block reference page.
|
|
29
|
-
*/
|
|
30
|
-
export function getRegistryBlockSlashDescription(
|
|
31
|
-
spec: Pick<BlockSpec, "type" | "description">,
|
|
32
|
-
): string {
|
|
33
|
-
return (
|
|
34
|
-
COMPACT_REGISTRY_BLOCK_DESCRIPTIONS[spec.type] ??
|
|
35
|
-
spec.description.trim().replace(/\s+/g, " ")
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/** Searchable text for registry block slash items, including raw type keywords. */
|
|
40
|
-
export function getRegistryBlockSlashSearchText(
|
|
41
|
-
spec: Pick<BlockSpec, "type" | "label" | "description">,
|
|
42
|
-
): string {
|
|
43
|
-
return [spec.label, spec.description, spec.type]
|
|
44
|
-
.filter(Boolean)
|
|
45
|
-
.join(" ")
|
|
46
|
-
.toLowerCase();
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Shared builder for the registry-derived block slash commands both the plan and
|
|
51
|
-
* content editors offer. Both apps take every `BlockSpec` whose `placement`
|
|
52
|
-
* includes `"block"`, gate it by Notion-compatibility when the open document is
|
|
53
|
-
* linked to a Notion page, and emit one slash item per surviving spec that
|
|
54
|
-
* inserts that block's atom node. The only legitimate per-app differences are:
|
|
55
|
-
*
|
|
56
|
-
* - the ITEM SHAPE (plan uses a text-glyph `icon`, content a React component),
|
|
57
|
-
* - the Notion-compat PREDICATE (plan unions in prose-only NFM analogs, content
|
|
58
|
-
* reads the registry `notionCompatible` flag directly), and
|
|
59
|
-
* - the INSERT behavior (plan inserts a `planBlock` node, content a
|
|
60
|
-
* `registryBlock` node seeded with inline `__raw`).
|
|
61
|
-
*
|
|
62
|
-
* Those three are injected; everything else (the `list("block")` source, the
|
|
63
|
-
* Notion filter wiring, the one-item-per-spec mapping) lives here so adding a
|
|
64
|
-
* new library block only touches the registry, never the slash builders.
|
|
65
|
-
*/
|
|
66
|
-
export interface BuildRegistryBlockSlashItemsOptions<TItem, TEditor> {
|
|
67
|
-
/**
|
|
68
|
-
* When `true`, only specs the predicate accepts are offered (the open document
|
|
69
|
-
* is linked to a Notion page, so blocks that can't round-trip to NFM are
|
|
70
|
-
* hidden). When unset/false, every block-placed spec is offered.
|
|
71
|
-
*/
|
|
72
|
-
notionCompatibleOnly?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Decide whether a spec round-trips to Notion. Defaults to the spec's own
|
|
75
|
-
* `notionCompatible` flag (content's rule). Plan passes a predicate that unions
|
|
76
|
-
* in prose-only NFM analogs not carried as registry flags.
|
|
77
|
-
*/
|
|
78
|
-
isNotionCompatible?: (spec: BlockSpec) => boolean;
|
|
79
|
-
/** Build one app-shaped slash item from a surviving block spec. */
|
|
80
|
-
toItem: (spec: BlockSpec, insert: (editor: TEditor) => void) => TItem;
|
|
81
|
-
/**
|
|
82
|
-
* Optional app-level capability gate. Use this for blocks whose schema is
|
|
83
|
-
* registered for parse/render compatibility but whose authoring experience is
|
|
84
|
-
* not available in this editor yet.
|
|
85
|
-
*/
|
|
86
|
-
includeSpec?: (spec: BlockSpec) => boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Insert this spec's block atom into the editor. Plan inserts a `planBlock`
|
|
89
|
-
* node; content inserts a `registryBlock` node seeded with inline `__raw`.
|
|
90
|
-
*/
|
|
91
|
-
insertBlock: (editor: TEditor, spec: BlockSpec) => void;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Build the registry-derived block slash items, shared by plan and content. Each
|
|
96
|
-
* app prepends its own prose/base commands and wraps the result in its own item
|
|
97
|
-
* type via {@link BuildRegistryBlockSlashItemsOptions.toItem}.
|
|
98
|
-
*/
|
|
99
|
-
export function buildRegistryBlockSlashItems<TItem, TEditor>(
|
|
100
|
-
registry: BlockRegistry,
|
|
101
|
-
options: BuildRegistryBlockSlashItemsOptions<TItem, TEditor>,
|
|
102
|
-
): TItem[] {
|
|
103
|
-
const isCompatible =
|
|
104
|
-
options.isNotionCompatible ?? ((spec) => Boolean(spec.notionCompatible));
|
|
105
|
-
return registry
|
|
106
|
-
.list("block")
|
|
107
|
-
.filter((spec) => options.includeSpec?.(spec) ?? true)
|
|
108
|
-
.filter((spec) => !options.notionCompatibleOnly || isCompatible(spec))
|
|
109
|
-
.map((spec) =>
|
|
110
|
-
options.toItem(spec, (editor) => options.insertBlock(editor, spec)),
|
|
111
|
-
);
|
|
112
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
import type { AgentComposerLayoutVariant } from "./types.js";
|
|
3
|
-
export interface AgentComposerFrameProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
rootClassName?: string;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
rootStyle?: React.CSSProperties;
|
|
9
|
-
layoutVariant?: AgentComposerLayoutVariant;
|
|
10
|
-
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The single visual shell for agent chat composition.
|
|
14
|
-
*
|
|
15
|
-
* AssistantChat, PromptComposer, and host surfaces such as Agent-Native Code
|
|
16
|
-
* all render this same frame so the composer does not drift across products.
|
|
17
|
-
*/
|
|
18
|
-
export declare function AgentComposerFrame({ children, className, rootClassName, style, rootStyle, layoutVariant, onClick, }: AgentComposerFrameProps): React.JSX.Element;
|
|
19
|
-
//# sourceMappingURL=AgentComposerFrame.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentComposerFrame.d.ts","sourceRoot":"","sources":["../../../src/client/composer/AgentComposerFrame.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAE7D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAC3C,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,SAAS,EACT,aAAa,EACb,KAAK,EACL,SAAS,EACT,aAAyB,EACzB,OAAO,GACR,EAAE,uBAAuB,qBA4BzB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ComposerPrimitive } from "@assistant-ui/react";
|
|
3
|
-
import { cn } from "../utils.js";
|
|
4
|
-
/**
|
|
5
|
-
* The single visual shell for agent chat composition.
|
|
6
|
-
*
|
|
7
|
-
* AssistantChat, PromptComposer, and host surfaces such as Agent-Native Code
|
|
8
|
-
* all render this same frame so the composer does not drift across products.
|
|
9
|
-
*/
|
|
10
|
-
export function AgentComposerFrame({ children, className, rootClassName, style, rootStyle, layoutVariant = "default", onClick, }) {
|
|
11
|
-
return (_jsx("div", { "data-agent-composer-variant": layoutVariant, "data-agent-composer-slot": "area", className: cn("agent-composer-area shrink-0 px-3 py-2", layoutVariant !== "default" && `agent-composer-area--${layoutVariant}`, className), style: style, onClick: onClick, children: _jsx(ComposerPrimitive.Root, { "data-agent-composer-variant": layoutVariant, "data-agent-composer-slot": "root", className: cn("agent-composer-root flex flex-col rounded-lg border border-input bg-muted/45 transition-colors focus-within:border-ring", layoutVariant !== "default" &&
|
|
12
|
-
`agent-composer-root--${layoutVariant}`, rootClassName), style: rootStyle, children: children }) }));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=AgentComposerFrame.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentComposerFrame.js","sourceRoot":"","sources":["../../../src/client/composer/AgentComposerFrame.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAajC;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,EACjC,QAAQ,EACR,SAAS,EACT,aAAa,EACb,KAAK,EACL,SAAS,EACT,aAAa,GAAG,SAAS,EACzB,OAAO,GACiB;IACxB,OAAO,CACL,6CAC+B,aAAa,8BACjB,MAAM,EAC/B,SAAS,EAAE,EAAE,CACX,wCAAwC,EACxC,aAAa,KAAK,SAAS,IAAI,wBAAwB,aAAa,EAAE,EACtE,SAAS,CACV,EACD,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,YAEhB,KAAC,iBAAiB,CAAC,IAAI,mCACQ,aAAa,8BACjB,MAAM,EAC/B,SAAS,EAAE,EAAE,CACX,yHAAyH,EACzH,aAAa,KAAK,SAAS;gBACzB,wBAAwB,aAAa,EAAE,EACzC,aAAa,CACd,EACD,KAAK,EAAE,SAAS,YAEf,QAAQ,GACc,GACrB,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { ComposerPrimitive } from \"@assistant-ui/react\";\nimport type React from \"react\";\n\nimport { cn } from \"../utils.js\";\nimport type { AgentComposerLayoutVariant } from \"./types.js\";\n\nexport interface AgentComposerFrameProps {\n children: React.ReactNode;\n className?: string;\n rootClassName?: string;\n style?: React.CSSProperties;\n rootStyle?: React.CSSProperties;\n layoutVariant?: AgentComposerLayoutVariant;\n onClick?: React.MouseEventHandler<HTMLDivElement>;\n}\n\n/**\n * The single visual shell for agent chat composition.\n *\n * AssistantChat, PromptComposer, and host surfaces such as Agent-Native Code\n * all render this same frame so the composer does not drift across products.\n */\nexport function AgentComposerFrame({\n children,\n className,\n rootClassName,\n style,\n rootStyle,\n layoutVariant = \"default\",\n onClick,\n}: AgentComposerFrameProps) {\n return (\n <div\n data-agent-composer-variant={layoutVariant}\n data-agent-composer-slot=\"area\"\n className={cn(\n \"agent-composer-area shrink-0 px-3 py-2\",\n layoutVariant !== \"default\" && `agent-composer-area--${layoutVariant}`,\n className,\n )}\n style={style}\n onClick={onClick}\n >\n <ComposerPrimitive.Root\n data-agent-composer-variant={layoutVariant}\n data-agent-composer-slot=\"root\"\n className={cn(\n \"agent-composer-root flex flex-col rounded-lg border border-input bg-muted/45 transition-colors focus-within:border-ring\",\n layoutVariant !== \"default\" &&\n `agent-composer-root--${layoutVariant}`,\n rootClassName,\n )}\n style={rootStyle}\n >\n {children}\n </ComposerPrimitive.Root>\n </div>\n );\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { ComposerMode } from "./types.js";
|
|
3
|
-
interface ComposerPlusMenuProps {
|
|
4
|
-
onSelectMode?: (mode: ComposerMode) => void;
|
|
5
|
-
onAttachmentError?: (message: string) => void;
|
|
6
|
-
/**
|
|
7
|
-
* "full" (default): full + menu with Upload File, Create Skill, Schedule Task,
|
|
8
|
-
* Automation, Extension, MCP Server. "upload-only": clicking + opens the file
|
|
9
|
-
* picker directly — no popover, no other modes. Use for prompt popovers
|
|
10
|
-
* (create extension, create deck, create dashboard, etc.) where the only thing
|
|
11
|
-
* to attach is a file.
|
|
12
|
-
*/
|
|
13
|
-
mode?: "full" | "upload-only";
|
|
14
|
-
}
|
|
15
|
-
export declare function ComposerPlusMenu({ onSelectMode, onAttachmentError, mode, }: ComposerPlusMenuProps): React.JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=ComposerPlusMenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerPlusMenu.d.ts","sourceRoot":"","sources":["../../../src/client/composer/ComposerPlusMenu.tsx"],"names":[],"mappings":"AAcA,OAAO,KAMN,MAAM,OAAO,CAAC;AA6Bf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;CAC/B;AAyLD,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,EACZ,iBAAiB,EACjB,IAAa,GACd,EAAE,qBAAqB,qBAUvB"}
|