@agent-native/core 0.109.2 → 0.109.4
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 +2 -2
- package/corpus/core/CHANGELOG.md +16 -0
- package/corpus/core/docs/content/agent-native-toolkit.mdx +46 -13
- package/corpus/core/docs/content/locales/ar-SA/agent-native-toolkit.mdx +79 -55
- package/corpus/core/docs/content/locales/ar-SA/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/ar-SA/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/ar-SA/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/de-DE/agent-native-toolkit.mdx +82 -54
- package/corpus/core/docs/content/locales/de-DE/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/de-DE/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/de-DE/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/es-ES/agent-native-toolkit.mdx +81 -52
- package/corpus/core/docs/content/locales/es-ES/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/es-ES/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/es-ES/toolkit-editors-canvases.mdx +21 -0
- package/corpus/core/docs/content/locales/fr-FR/agent-native-toolkit.mdx +84 -54
- package/corpus/core/docs/content/locales/fr-FR/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/fr-FR/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/fr-FR/toolkit-editors-canvases.mdx +21 -0
- package/corpus/core/docs/content/locales/hi-IN/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/hi-IN/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/hi-IN/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/hi-IN/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/ja-JP/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/ja-JP/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/ja-JP/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/ja-JP/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/ko-KR/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/ko-KR/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/ko-KR/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/ko-KR/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/pt-BR/agent-native-toolkit.mdx +82 -54
- package/corpus/core/docs/content/locales/pt-BR/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/pt-BR/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/pt-BR/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/zh-CN/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/zh-CN/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/zh-CN/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/zh-CN/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/zh-TW/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/zh-TW/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/zh-TW/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/zh-TW/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/toolkit-capability-packages.mdx +52 -0
- package/corpus/core/docs/content/toolkit-context-knowledge.mdx +46 -0
- package/corpus/core/docs/content/toolkit-editors-canvases.mdx +55 -0
- package/corpus/core/package.json +35 -34
- package/corpus/core/src/cli/create.ts +57 -15
- package/corpus/core/src/cli/package-lifecycle.ts +2 -0
- package/corpus/core/src/cli/skills-content/visual-plan-skill.ts +2 -0
- package/corpus/core/src/client/context-xray/ContextMeter.tsx +31 -111
- package/corpus/core/src/client/context-xray/ContextSegmentRow.tsx +8 -111
- package/corpus/core/src/client/context-xray/ContextTreemap.tsx +6 -111
- package/corpus/core/src/client/context-xray/ContextXRayPanel.tsx +31 -391
- package/corpus/core/src/client/context-xray/SegmentProvenancePopover.tsx +4 -52
- package/corpus/core/src/client/context-xray/format.ts +0 -33
- package/corpus/core/src/client/require-session.tsx +19 -3
- package/corpus/core/src/client/rich-markdown-editor/index.ts +42 -57
- package/corpus/core/src/client/rich-markdown-editor/uploadEditorImage.ts +2 -1
- package/corpus/core/src/client/use-action.ts +145 -2
- package/corpus/core/src/client/use-session.ts +79 -48
- package/corpus/core/src/client/visual-style-controls.tsx +1 -1088
- package/corpus/core/src/collab/agent-identity.ts +5 -22
- package/corpus/core/src/collab/client.ts +1 -53
- package/corpus/core/src/db/client.ts +13 -7
- package/corpus/core/src/db/create-get-db.ts +20 -13
- package/corpus/core/src/db/request-telemetry.ts +154 -0
- package/corpus/core/src/integrations/index.ts +1 -0
- package/corpus/core/src/integrations/plugin.ts +9 -3
- package/corpus/core/src/integrations/remote-push-delivery-job.ts +48 -0
- package/corpus/core/src/integrations/remote-push-delivery.ts +370 -0
- package/corpus/core/src/integrations/remote-push-store.ts +275 -26
- package/corpus/core/src/server/better-auth-instance.ts +11 -3
- package/corpus/core/src/server/core-routes-plugin.ts +36 -14
- package/corpus/core/src/server/framework-request-handler.ts +11 -1
- package/corpus/core/src/server/http-response-telemetry.ts +233 -31
- package/corpus/core/src/styles/rich-markdown-editor.css +1 -510
- package/corpus/core/src/templates/workspace-core/.agents/skills/tracking/SKILL.md +19 -0
- package/corpus/core/src/testing.ts +1 -1
- package/corpus/core/src/vite/client.ts +3 -0
- package/corpus/templates/clips/actions/finalize-recording.ts +3 -1
- package/corpus/templates/clips/actions/set-mobile-capture-state.ts +4 -1
- package/corpus/templates/clips/app/components/library/library-layout.tsx +1 -6
- package/corpus/templates/clips/changelog/2026-07-18-new-recording-is-now-emphasized-as-the-primary-action-in-the.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-18-recordings-now-remain-safely-recoverable-until-the-stored-me.md +6 -0
- package/corpus/templates/content/app/components/editor/VisualEditor.tsx +5 -3
- package/corpus/templates/content/app/components/editor/extensions/DragHandle.tsx +4 -4
- package/corpus/templates/content/package.json +25 -25
- package/corpus/templates/design/app/components/design/TweaksPanel.tsx +2 -1
- package/corpus/templates/design/package.json +1 -1
- package/corpus/templates/mail/package.json +9 -9
- package/corpus/templates/plan/.agents/skills/visual-plan/SKILL.md +2 -0
- package/corpus/templates/plan/app/components/editor/PlanDocumentEditor.tsx +8 -8
- package/corpus/templates/plan/app/components/editor/planSlashCommands.ts +6 -6
- package/corpus/templates/plan/app/components/plan/PlanImageNode.tsx +4 -7
- package/corpus/templates/plan/app/components/plan/PlanMarkdownEditor.tsx +6 -4
- package/corpus/templates/plan/app/components/plan/PlanVisualSurface.tsx +1 -1
- package/corpus/templates/plan/changelog/2026-07-18-visual-plans-now-open-on-wireframes-by-default-when-a-protot.md +6 -0
- package/corpus/templates/plan/package.json +3 -3
- package/corpus/templates/slides/app/components/editor/SlideStyleInspector.tsx +2 -2
- package/corpus/templates/slides/app/components/editor/TweaksPanel.tsx +2 -2
- package/corpus/templates/slides/package.json +13 -13
- package/corpus/templates/tasks/AGENTS.md +3 -0
- package/corpus/templates/tasks/actions/render-task-list-inline.ts +202 -0
- package/corpus/templates/tasks/changelog/2026-07-18-task-lists-can-now-appear-as-interactive-widgets-inline-in-c.md +6 -0
- package/corpus/templates/tasks/docs/features/f8-chat.mdx +2 -0
- package/corpus/templates/tasks/server/plugins/agent-chat.ts +2 -0
- package/dist/catalog.json +39 -1
- package/dist/cli/create.d.ts +10 -1
- package/dist/cli/create.d.ts.map +1 -1
- package/dist/cli/create.js +49 -16
- package/dist/cli/create.js.map +1 -1
- package/dist/cli/package-lifecycle.d.ts.map +1 -1
- package/dist/cli/package-lifecycle.js +2 -0
- package/dist/cli/package-lifecycle.js.map +1 -1
- package/dist/cli/skills-content/visual-plan-skill.d.ts +1 -1
- package/dist/cli/skills-content/visual-plan-skill.d.ts.map +1 -1
- package/dist/cli/skills-content/visual-plan-skill.js +2 -0
- package/dist/cli/skills-content/visual-plan-skill.js.map +1 -1
- package/dist/client/context-xray/ContextMeter.d.ts.map +1 -1
- package/dist/client/context-xray/ContextMeter.js +8 -23
- package/dist/client/context-xray/ContextMeter.js.map +1 -1
- package/dist/client/context-xray/ContextSegmentRow.d.ts.map +1 -1
- package/dist/client/context-xray/ContextSegmentRow.js +3 -19
- package/dist/client/context-xray/ContextSegmentRow.js.map +1 -1
- package/dist/client/context-xray/ContextTreemap.d.ts.map +1 -1
- package/dist/client/context-xray/ContextTreemap.js +3 -54
- package/dist/client/context-xray/ContextTreemap.js.map +1 -1
- package/dist/client/context-xray/ContextXRayPanel.d.ts.map +1 -1
- package/dist/client/context-xray/ContextXRayPanel.js +21 -163
- package/dist/client/context-xray/ContextXRayPanel.js.map +1 -1
- package/dist/client/context-xray/SegmentProvenancePopover.d.ts.map +1 -1
- package/dist/client/context-xray/SegmentProvenancePopover.js +3 -4
- package/dist/client/context-xray/SegmentProvenancePopover.js.map +1 -1
- package/dist/client/context-xray/format.d.ts +0 -4
- package/dist/client/context-xray/format.d.ts.map +1 -1
- package/dist/client/context-xray/format.js +0 -49
- package/dist/client/context-xray/format.js.map +1 -1
- package/dist/client/require-session.d.ts.map +1 -1
- package/dist/client/require-session.js +6 -3
- package/dist/client/require-session.js.map +1 -1
- package/dist/client/rich-markdown-editor/index.d.ts +1 -12
- package/dist/client/rich-markdown-editor/index.d.ts.map +1 -1
- package/dist/client/rich-markdown-editor/index.js +1 -12
- package/dist/client/rich-markdown-editor/index.js.map +1 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts +1 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts.map +1 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.js.map +1 -1
- package/dist/client/use-action.d.ts.map +1 -1
- package/dist/client/use-action.js +117 -1
- package/dist/client/use-action.js.map +1 -1
- package/dist/client/use-session.d.ts.map +1 -1
- package/dist/client/use-session.js +72 -50
- package/dist/client/use-session.js.map +1 -1
- package/dist/client/visual-style-controls.d.ts +1 -89
- package/dist/client/visual-style-controls.d.ts.map +1 -1
- package/dist/client/visual-style-controls.js +1 -498
- package/dist/client/visual-style-controls.js.map +1 -1
- package/dist/collab/agent-identity.d.ts +1 -14
- package/dist/collab/agent-identity.d.ts.map +1 -1
- package/dist/collab/agent-identity.js +1 -13
- package/dist/collab/agent-identity.js.map +1 -1
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/awareness.d.ts.map +1 -1
- package/dist/collab/client.d.ts +1 -19
- package/dist/collab/client.d.ts.map +1 -1
- package/dist/collab/client.js +1 -53
- package/dist/collab/client.js.map +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +7 -1
- package/dist/db/client.js.map +1 -1
- package/dist/db/create-get-db.d.ts +3 -6
- package/dist/db/create-get-db.d.ts.map +1 -1
- package/dist/db/create-get-db.js +9 -2
- package/dist/db/create-get-db.js.map +1 -1
- package/dist/db/request-telemetry.d.ts +23 -0
- package/dist/db/request-telemetry.d.ts.map +1 -0
- package/dist/db/request-telemetry.js +95 -0
- package/dist/db/request-telemetry.js.map +1 -0
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +1 -0
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/plugin.d.ts.map +1 -1
- package/dist/integrations/plugin.js +8 -3
- package/dist/integrations/plugin.js.map +1 -1
- package/dist/integrations/remote-push-delivery-job.d.ts +4 -0
- package/dist/integrations/remote-push-delivery-job.d.ts.map +1 -0
- package/dist/integrations/remote-push-delivery-job.js +44 -0
- package/dist/integrations/remote-push-delivery-job.js.map +1 -0
- package/dist/integrations/remote-push-delivery.d.ts +11 -0
- package/dist/integrations/remote-push-delivery.d.ts.map +1 -0
- package/dist/integrations/remote-push-delivery.js +265 -0
- package/dist/integrations/remote-push-delivery.js.map +1 -0
- package/dist/integrations/remote-push-store.d.ts +33 -0
- package/dist/integrations/remote-push-store.d.ts.map +1 -1
- package/dist/integrations/remote-push-store.js +195 -26
- package/dist/integrations/remote-push-store.js.map +1 -1
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/resources/handlers.d.ts +3 -3
- package/dist/secrets/routes.d.ts +9 -9
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/better-auth-instance.js +7 -3
- package/dist/server/better-auth-instance.js.map +1 -1
- package/dist/server/core-routes-plugin.d.ts +8 -0
- package/dist/server/core-routes-plugin.d.ts.map +1 -1
- package/dist/server/core-routes-plugin.js +23 -8
- package/dist/server/core-routes-plugin.js.map +1 -1
- package/dist/server/framework-request-handler.d.ts.map +1 -1
- package/dist/server/framework-request-handler.js +9 -1
- package/dist/server/framework-request-handler.js.map +1 -1
- package/dist/server/http-response-telemetry.d.ts +3 -2
- package/dist/server/http-response-telemetry.d.ts.map +1 -1
- package/dist/server/http-response-telemetry.js +160 -27
- package/dist/server/http-response-telemetry.js.map +1 -1
- package/dist/server/transcribe-voice.d.ts +1 -1
- package/dist/styles/rich-markdown-editor.css +1 -510
- package/dist/templates/workspace-core/.agents/skills/tracking/SKILL.md +19 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/testing.js.map +1 -1
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +3 -0
- package/dist/vite/client.js.map +1 -1
- package/docs/content/agent-native-toolkit.mdx +46 -13
- package/docs/content/locales/ar-SA/agent-native-toolkit.mdx +79 -55
- package/docs/content/locales/ar-SA/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/ar-SA/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/ar-SA/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/de-DE/agent-native-toolkit.mdx +82 -54
- package/docs/content/locales/de-DE/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/de-DE/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/de-DE/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/es-ES/agent-native-toolkit.mdx +81 -52
- package/docs/content/locales/es-ES/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/es-ES/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/es-ES/toolkit-editors-canvases.mdx +21 -0
- package/docs/content/locales/fr-FR/agent-native-toolkit.mdx +84 -54
- package/docs/content/locales/fr-FR/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/fr-FR/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/fr-FR/toolkit-editors-canvases.mdx +21 -0
- package/docs/content/locales/hi-IN/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/hi-IN/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/hi-IN/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/hi-IN/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/ja-JP/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/ja-JP/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/ja-JP/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/ja-JP/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/ko-KR/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/ko-KR/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/ko-KR/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/ko-KR/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/pt-BR/agent-native-toolkit.mdx +82 -54
- package/docs/content/locales/pt-BR/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/pt-BR/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/pt-BR/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/zh-CN/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/zh-CN/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/zh-CN/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/zh-CN/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/zh-TW/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/zh-TW/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/zh-TW/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/zh-TW/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/toolkit-capability-packages.mdx +52 -0
- package/docs/content/toolkit-context-knowledge.mdx +46 -0
- package/docs/content/toolkit-editors-canvases.mdx +55 -0
- package/package.json +27 -26
- package/src/templates/workspace-core/.agents/skills/tracking/SKILL.md +19 -0
- package/corpus/core/src/client/rich-markdown-editor/BubbleToolbar.tsx +0 -253
- package/corpus/core/src/client/rich-markdown-editor/CodeBlockNode.tsx +0 -258
- package/corpus/core/src/client/rich-markdown-editor/DragHandle.ts +0 -1437
- package/corpus/core/src/client/rich-markdown-editor/ImageExtension.ts +0 -306
- package/corpus/core/src/client/rich-markdown-editor/RichMarkdownEditor.tsx +0 -80
- package/corpus/core/src/client/rich-markdown-editor/RunId.ts +0 -61
- package/corpus/core/src/client/rich-markdown-editor/SharedRichEditor.tsx +0 -321
- package/corpus/core/src/client/rich-markdown-editor/SlashCommandMenu.tsx +0 -310
- package/corpus/core/src/client/rich-markdown-editor/extensions.ts +0 -402
- package/corpus/core/src/client/rich-markdown-editor/gfmDoc.ts +0 -92
- package/corpus/core/src/client/rich-markdown-editor/surgical-apply.ts +0 -192
- package/corpus/core/src/client/rich-markdown-editor/useCollabReconcile.ts +0 -590
- package/dist/client/rich-markdown-editor/BubbleToolbar.d.ts +0 -37
- package/dist/client/rich-markdown-editor/BubbleToolbar.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/BubbleToolbar.js +0 -171
- package/dist/client/rich-markdown-editor/BubbleToolbar.js.map +0 -1
- package/dist/client/rich-markdown-editor/CodeBlockNode.d.ts +0 -49
- package/dist/client/rich-markdown-editor/CodeBlockNode.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/CodeBlockNode.js +0 -127
- package/dist/client/rich-markdown-editor/CodeBlockNode.js.map +0 -1
- package/dist/client/rich-markdown-editor/DragHandle.d.ts +0 -97
- package/dist/client/rich-markdown-editor/DragHandle.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/DragHandle.js +0 -1066
- package/dist/client/rich-markdown-editor/DragHandle.js.map +0 -1
- package/dist/client/rich-markdown-editor/ImageExtension.d.ts +0 -63
- package/dist/client/rich-markdown-editor/ImageExtension.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/ImageExtension.js +0 -243
- package/dist/client/rich-markdown-editor/ImageExtension.js.map +0 -1
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.d.ts +0 -51
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.js +0 -37
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.js.map +0 -1
- package/dist/client/rich-markdown-editor/RunId.d.ts +0 -28
- package/dist/client/rich-markdown-editor/RunId.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/RunId.js +0 -60
- package/dist/client/rich-markdown-editor/RunId.js.map +0 -1
- package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts +0 -110
- package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/SharedRichEditor.js +0 -144
- package/dist/client/rich-markdown-editor/SharedRichEditor.js.map +0 -1
- package/dist/client/rich-markdown-editor/SlashCommandMenu.d.ts +0 -41
- package/dist/client/rich-markdown-editor/SlashCommandMenu.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/SlashCommandMenu.js +0 -221
- package/dist/client/rich-markdown-editor/SlashCommandMenu.js.map +0 -1
- package/dist/client/rich-markdown-editor/extensions.d.ts +0 -178
- package/dist/client/rich-markdown-editor/extensions.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/extensions.js +0 -224
- package/dist/client/rich-markdown-editor/extensions.js.map +0 -1
- package/dist/client/rich-markdown-editor/gfmDoc.d.ts +0 -24
- package/dist/client/rich-markdown-editor/gfmDoc.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/gfmDoc.js +0 -83
- package/dist/client/rich-markdown-editor/gfmDoc.js.map +0 -1
- package/dist/client/rich-markdown-editor/surgical-apply.d.ts +0 -66
- package/dist/client/rich-markdown-editor/surgical-apply.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/surgical-apply.js +0 -147
- package/dist/client/rich-markdown-editor/surgical-apply.js.map +0 -1
- package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts +0 -110
- package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/useCollabReconcile.js +0 -441
- package/dist/client/rich-markdown-editor/useCollabReconcile.js.map +0 -1
|
@@ -1,510 +1 @@
|
|
|
1
|
-
.
|
|
2
|
-
min-height: 100%;
|
|
3
|
-
position: relative;
|
|
4
|
-
cursor: text;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.an-rich-md-wrapper--readonly {
|
|
8
|
-
cursor: default;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.an-rich-md-loading {
|
|
12
|
-
min-height: 7rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.an-rich-md-prose {
|
|
16
|
-
outline: none;
|
|
17
|
-
color: hsl(var(--foreground));
|
|
18
|
-
line-height: 1.65;
|
|
19
|
-
font-size: 0.95rem;
|
|
20
|
-
min-height: 1.65em;
|
|
21
|
-
text-align: start;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.an-rich-md-prose > *:first-child {
|
|
25
|
-
margin-top: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.an-rich-md-prose h1 {
|
|
29
|
-
font-size: 1.85em;
|
|
30
|
-
font-weight: 700;
|
|
31
|
-
margin: 1em 0 0.3em;
|
|
32
|
-
line-height: 1.18;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.an-rich-md-prose h2 {
|
|
36
|
-
font-size: 1.45em;
|
|
37
|
-
font-weight: 650;
|
|
38
|
-
margin: 0.9em 0 0.25em;
|
|
39
|
-
line-height: 1.25;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.an-rich-md-prose h3 {
|
|
43
|
-
font-size: 1.18em;
|
|
44
|
-
font-weight: 650;
|
|
45
|
-
margin: 0.75em 0 0.2em;
|
|
46
|
-
line-height: 1.32;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.an-rich-md-prose h4 {
|
|
50
|
-
font-size: 1em;
|
|
51
|
-
font-weight: 650;
|
|
52
|
-
margin: 0.65em 0 0.15em;
|
|
53
|
-
line-height: 1.35;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.an-rich-md-prose p {
|
|
57
|
-
margin: 0.45em 0;
|
|
58
|
-
min-height: 1.65em;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.an-rich-md-prose ul:not(.an-rich-md-task-list),
|
|
62
|
-
.an-rich-md-prose ol {
|
|
63
|
-
padding-inline-start: 1.45em;
|
|
64
|
-
margin: 0.35em 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.an-rich-md-prose ul:not(.an-rich-md-task-list) {
|
|
68
|
-
list-style-type: disc;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.an-rich-md-prose ol {
|
|
72
|
-
list-style-type: decimal;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.an-rich-md-prose li {
|
|
76
|
-
margin: 0.12em 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.an-rich-md-prose li p {
|
|
80
|
-
margin: 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.an-rich-md-task-list {
|
|
84
|
-
list-style: none;
|
|
85
|
-
margin: 0.35em 0;
|
|
86
|
-
padding-inline-start: 0;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.an-rich-md-task-list li {
|
|
90
|
-
display: flex;
|
|
91
|
-
align-items: flex-start;
|
|
92
|
-
gap: 0.45em;
|
|
93
|
-
margin: 0.18em 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.an-rich-md-task-list li label {
|
|
97
|
-
display: inline-flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
height: 1.65em;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.an-rich-md-task-list li input[type="checkbox"] {
|
|
103
|
-
width: 0.95em;
|
|
104
|
-
height: 0.95em;
|
|
105
|
-
accent-color: hsl(var(--primary));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.an-rich-md-task-list li > div {
|
|
109
|
-
flex: 1;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.an-rich-md-prose blockquote {
|
|
113
|
-
border-inline-start: 2px solid hsl(var(--border));
|
|
114
|
-
padding-inline-start: 0.9em;
|
|
115
|
-
margin: 0.45em 0;
|
|
116
|
-
color: hsl(var(--muted-foreground));
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.an-rich-md-prose code {
|
|
120
|
-
unicode-bidi: isolate;
|
|
121
|
-
font-family:
|
|
122
|
-
ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
123
|
-
font-size: 0.88em;
|
|
124
|
-
background: hsl(var(--muted));
|
|
125
|
-
padding: 0.12em 0.32em;
|
|
126
|
-
border-radius: 4px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.an-rich-md-prose :not(pre) > code {
|
|
130
|
-
direction: ltr;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.an-rich-md-prose pre {
|
|
134
|
-
font-family:
|
|
135
|
-
ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
136
|
-
font-size: 0.86em;
|
|
137
|
-
/* Theme-aware code surface: follows the app's muted/foreground/border tokens
|
|
138
|
-
so block code respects light and dark mode (the token palette below is
|
|
139
|
-
tuned to read on a muted surface in both). */
|
|
140
|
-
background: hsl(var(--muted));
|
|
141
|
-
color: hsl(var(--foreground));
|
|
142
|
-
border: 1px solid hsl(var(--border));
|
|
143
|
-
border-radius: 6px;
|
|
144
|
-
padding: 0.8em 1em;
|
|
145
|
-
margin: 0.55em 0;
|
|
146
|
-
overflow-x: auto;
|
|
147
|
-
line-height: 1.5;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.an-rich-md-prose pre code {
|
|
151
|
-
background: none;
|
|
152
|
-
border: none;
|
|
153
|
-
padding: 0;
|
|
154
|
-
font-size: inherit;
|
|
155
|
-
color: inherit;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/* highlight.js (lowlight) token palette. Scoped to block code so inline `code`
|
|
159
|
-
keeps its own background. No highlight.js base theme is imported; these rules
|
|
160
|
-
are the entire theme, tuned (mid-lightness HSL) to read on the muted surface
|
|
161
|
-
above in both light and dark mode. */
|
|
162
|
-
.an-rich-md-prose pre code .hljs-comment,
|
|
163
|
-
.an-rich-md-prose pre code .hljs-quote {
|
|
164
|
-
color: hsl(var(--muted-foreground));
|
|
165
|
-
font-style: italic;
|
|
166
|
-
}
|
|
167
|
-
.an-rich-md-prose pre code .hljs-keyword,
|
|
168
|
-
.an-rich-md-prose pre code .hljs-selector-tag,
|
|
169
|
-
.an-rich-md-prose pre code .hljs-literal,
|
|
170
|
-
.an-rich-md-prose pre code .hljs-doctag {
|
|
171
|
-
color: hsl(280 60% 58%);
|
|
172
|
-
}
|
|
173
|
-
.an-rich-md-prose pre code .hljs-string,
|
|
174
|
-
.an-rich-md-prose pre code .hljs-regexp,
|
|
175
|
-
.an-rich-md-prose pre code .hljs-addition {
|
|
176
|
-
color: hsl(140 52% 40%);
|
|
177
|
-
}
|
|
178
|
-
.an-rich-md-prose pre code .hljs-number,
|
|
179
|
-
.an-rich-md-prose pre code .hljs-symbol,
|
|
180
|
-
.an-rich-md-prose pre code .hljs-literal {
|
|
181
|
-
color: hsl(28 78% 48%);
|
|
182
|
-
}
|
|
183
|
-
.an-rich-md-prose pre code .hljs-meta {
|
|
184
|
-
color: hsl(var(--muted-foreground));
|
|
185
|
-
}
|
|
186
|
-
.an-rich-md-prose pre code .hljs-title,
|
|
187
|
-
.an-rich-md-prose pre code .hljs-title.function_,
|
|
188
|
-
.an-rich-md-prose pre code .hljs-section {
|
|
189
|
-
color: hsl(210 72% 52%);
|
|
190
|
-
}
|
|
191
|
-
.an-rich-md-prose pre code .hljs-built_in,
|
|
192
|
-
.an-rich-md-prose pre code .hljs-type,
|
|
193
|
-
.an-rich-md-prose pre code .hljs-title.class_,
|
|
194
|
-
.an-rich-md-prose pre code .hljs-variable.language_ {
|
|
195
|
-
color: hsl(190 64% 40%);
|
|
196
|
-
}
|
|
197
|
-
.an-rich-md-prose pre code .hljs-attr,
|
|
198
|
-
.an-rich-md-prose pre code .hljs-attribute,
|
|
199
|
-
.an-rich-md-prose pre code .hljs-property,
|
|
200
|
-
.an-rich-md-prose pre code .hljs-params {
|
|
201
|
-
color: hsl(35 68% 46%);
|
|
202
|
-
}
|
|
203
|
-
.an-rich-md-prose pre code .hljs-name,
|
|
204
|
-
.an-rich-md-prose pre code .hljs-tag,
|
|
205
|
-
.an-rich-md-prose pre code .hljs-selector-id,
|
|
206
|
-
.an-rich-md-prose pre code .hljs-selector-class {
|
|
207
|
-
color: hsl(350 62% 52%);
|
|
208
|
-
}
|
|
209
|
-
.an-rich-md-prose pre code .hljs-deletion {
|
|
210
|
-
color: hsl(0 62% 52%);
|
|
211
|
-
}
|
|
212
|
-
.an-rich-md-prose pre code .hljs-emphasis {
|
|
213
|
-
font-style: italic;
|
|
214
|
-
}
|
|
215
|
-
.an-rich-md-prose pre code .hljs-strong {
|
|
216
|
-
font-weight: 600;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
/* In dark mode, lift the token lightness for contrast on the dark muted surface. */
|
|
220
|
-
.dark .an-rich-md-prose pre code .hljs-keyword,
|
|
221
|
-
.dark .an-rich-md-prose pre code .hljs-selector-tag,
|
|
222
|
-
.dark .an-rich-md-prose pre code .hljs-literal,
|
|
223
|
-
.dark .an-rich-md-prose pre code .hljs-doctag {
|
|
224
|
-
color: hsl(280 72% 72%);
|
|
225
|
-
}
|
|
226
|
-
.dark .an-rich-md-prose pre code .hljs-string,
|
|
227
|
-
.dark .an-rich-md-prose pre code .hljs-regexp,
|
|
228
|
-
.dark .an-rich-md-prose pre code .hljs-addition {
|
|
229
|
-
color: hsl(140 48% 62%);
|
|
230
|
-
}
|
|
231
|
-
.dark .an-rich-md-prose pre code .hljs-number,
|
|
232
|
-
.dark .an-rich-md-prose pre code .hljs-symbol,
|
|
233
|
-
.dark .an-rich-md-prose pre code .hljs-literal {
|
|
234
|
-
color: hsl(30 85% 65%);
|
|
235
|
-
}
|
|
236
|
-
.dark .an-rich-md-prose pre code .hljs-title,
|
|
237
|
-
.dark .an-rich-md-prose pre code .hljs-title.function_,
|
|
238
|
-
.dark .an-rich-md-prose pre code .hljs-section {
|
|
239
|
-
color: hsl(210 80% 70%);
|
|
240
|
-
}
|
|
241
|
-
.dark .an-rich-md-prose pre code .hljs-built_in,
|
|
242
|
-
.dark .an-rich-md-prose pre code .hljs-type,
|
|
243
|
-
.dark .an-rich-md-prose pre code .hljs-title.class_,
|
|
244
|
-
.dark .an-rich-md-prose pre code .hljs-variable.language_ {
|
|
245
|
-
color: hsl(190 70% 62%);
|
|
246
|
-
}
|
|
247
|
-
.dark .an-rich-md-prose pre code .hljs-attr,
|
|
248
|
-
.dark .an-rich-md-prose pre code .hljs-attribute,
|
|
249
|
-
.dark .an-rich-md-prose pre code .hljs-property,
|
|
250
|
-
.dark .an-rich-md-prose pre code .hljs-params {
|
|
251
|
-
color: hsl(40 78% 66%);
|
|
252
|
-
}
|
|
253
|
-
.dark .an-rich-md-prose pre code .hljs-name,
|
|
254
|
-
.dark .an-rich-md-prose pre code .hljs-tag,
|
|
255
|
-
.dark .an-rich-md-prose pre code .hljs-selector-id,
|
|
256
|
-
.dark .an-rich-md-prose pre code .hljs-selector-class {
|
|
257
|
-
color: hsl(350 72% 68%);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.an-rich-md-prose hr {
|
|
261
|
-
border: none;
|
|
262
|
-
border-top: 1px solid hsl(var(--border));
|
|
263
|
-
margin: 1.1em 0;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.an-rich-md-table {
|
|
267
|
-
width: 100%;
|
|
268
|
-
border-collapse: collapse;
|
|
269
|
-
margin: 0.7em 0;
|
|
270
|
-
table-layout: fixed;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.an-rich-md-table td,
|
|
274
|
-
.an-rich-md-table th {
|
|
275
|
-
border: 1px solid hsl(var(--border));
|
|
276
|
-
padding: 0.45em 0.55em;
|
|
277
|
-
vertical-align: top;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.an-rich-md-table th {
|
|
281
|
-
background: hsl(var(--muted) / 0.6);
|
|
282
|
-
font-weight: 650;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.an-rich-md-table p {
|
|
286
|
-
margin: 0;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.an-rich-md-prose strong {
|
|
290
|
-
font-weight: 650;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.an-rich-md-prose em {
|
|
294
|
-
font-style: italic;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.an-rich-md-prose s {
|
|
298
|
-
text-decoration: line-through;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.an-rich-md-link {
|
|
302
|
-
color: hsl(var(--foreground));
|
|
303
|
-
text-decoration: underline;
|
|
304
|
-
text-underline-offset: 2px;
|
|
305
|
-
text-decoration-color: hsl(var(--muted-foreground));
|
|
306
|
-
cursor: pointer;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.an-rich-md-link:hover {
|
|
310
|
-
text-decoration-color: hsl(var(--foreground));
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.an-rich-md-prose p.is-editor-empty:first-child::before,
|
|
314
|
-
.an-rich-md-prose p.is-empty::before,
|
|
315
|
-
.an-rich-md-prose h1.is-empty::before,
|
|
316
|
-
.an-rich-md-prose h2.is-empty::before,
|
|
317
|
-
.an-rich-md-prose h3.is-empty::before,
|
|
318
|
-
.an-rich-md-prose h4.is-empty::before {
|
|
319
|
-
content: attr(data-placeholder);
|
|
320
|
-
float: inline-start;
|
|
321
|
-
color: hsl(var(--muted-foreground));
|
|
322
|
-
opacity: 0.55;
|
|
323
|
-
pointer-events: none;
|
|
324
|
-
height: 0;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.an-rich-md-prose ::selection {
|
|
328
|
-
background: hsl(var(--ring) / 0.22);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.an-rich-md-bubble-toolbar {
|
|
332
|
-
z-index: 9999;
|
|
333
|
-
display: flex;
|
|
334
|
-
align-items: center;
|
|
335
|
-
border-radius: 6px;
|
|
336
|
-
background: hsl(var(--popover));
|
|
337
|
-
color: hsl(var(--popover-foreground));
|
|
338
|
-
padding: 3px;
|
|
339
|
-
box-shadow:
|
|
340
|
-
0 4px 16px rgb(0 0 0 / 0.25),
|
|
341
|
-
0 0 0 1px hsl(var(--border));
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.an-rich-md-bubble-items,
|
|
345
|
-
.an-rich-md-link-editor {
|
|
346
|
-
display: flex;
|
|
347
|
-
align-items: center;
|
|
348
|
-
gap: 2px;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.an-rich-md-bubble-button {
|
|
352
|
-
padding: 3px 6px;
|
|
353
|
-
border-radius: 4px;
|
|
354
|
-
font-size: 12px;
|
|
355
|
-
color: hsl(var(--popover-foreground) / 0.76);
|
|
356
|
-
background: none;
|
|
357
|
-
border: none;
|
|
358
|
-
cursor: pointer;
|
|
359
|
-
line-height: 1;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.an-rich-md-bubble-button:hover {
|
|
363
|
-
background: hsl(var(--accent));
|
|
364
|
-
color: hsl(var(--accent-foreground));
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.an-rich-md-bubble-button--active {
|
|
368
|
-
background: hsl(var(--accent));
|
|
369
|
-
color: hsl(var(--accent-foreground));
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.an-rich-md-bubble-divider {
|
|
373
|
-
width: 1px;
|
|
374
|
-
height: 16px;
|
|
375
|
-
margin: 0 2px;
|
|
376
|
-
background: hsl(var(--border));
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.an-rich-md-link-editor {
|
|
380
|
-
padding: 4px;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
.an-rich-md-link-editor input {
|
|
384
|
-
width: 10rem;
|
|
385
|
-
border: none;
|
|
386
|
-
outline: none;
|
|
387
|
-
background: transparent;
|
|
388
|
-
color: hsl(var(--popover-foreground));
|
|
389
|
-
font-size: 12px;
|
|
390
|
-
padding: 2px 4px;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.an-rich-md-link-editor button {
|
|
394
|
-
border: none;
|
|
395
|
-
background: none;
|
|
396
|
-
color: hsl(var(--primary));
|
|
397
|
-
cursor: pointer;
|
|
398
|
-
font-size: 11px;
|
|
399
|
-
font-weight: 500;
|
|
400
|
-
padding: 2px 6px;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.an-rich-md-slash-menu {
|
|
404
|
-
z-index: 9999;
|
|
405
|
-
width: min(420px, calc(100vw - 24px));
|
|
406
|
-
min-width: 230px;
|
|
407
|
-
max-height: 320px;
|
|
408
|
-
overflow-y: auto;
|
|
409
|
-
color: hsl(var(--foreground));
|
|
410
|
-
background: hsl(var(--popover));
|
|
411
|
-
border: 1px solid hsl(var(--border));
|
|
412
|
-
border-radius: 7px;
|
|
413
|
-
box-shadow:
|
|
414
|
-
0 4px 20px rgb(0 0 0 / 0.12),
|
|
415
|
-
0 0 0 1px rgb(0 0 0 / 0.04);
|
|
416
|
-
padding: 4px 0;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
.an-rich-md-slash-heading {
|
|
420
|
-
padding: 4px 10px;
|
|
421
|
-
font-size: 10px;
|
|
422
|
-
font-weight: 650;
|
|
423
|
-
text-transform: uppercase;
|
|
424
|
-
letter-spacing: 0.06em;
|
|
425
|
-
color: hsl(var(--muted-foreground));
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
.an-rich-md-slash-item {
|
|
429
|
-
width: 100%;
|
|
430
|
-
min-width: 0;
|
|
431
|
-
min-height: 44px;
|
|
432
|
-
display: flex;
|
|
433
|
-
align-items: center;
|
|
434
|
-
gap: 8px;
|
|
435
|
-
padding: 6px 10px;
|
|
436
|
-
text-align: start;
|
|
437
|
-
background: none;
|
|
438
|
-
border: none;
|
|
439
|
-
cursor: pointer;
|
|
440
|
-
color: hsl(var(--foreground));
|
|
441
|
-
font-size: 13px;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.an-rich-md-slash-item:hover,
|
|
445
|
-
.an-rich-md-slash-item--active {
|
|
446
|
-
background: hsl(var(--accent));
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.an-rich-md-slash-icon {
|
|
450
|
-
display: flex;
|
|
451
|
-
align-items: center;
|
|
452
|
-
justify-content: center;
|
|
453
|
-
width: 28px;
|
|
454
|
-
height: 28px;
|
|
455
|
-
border-radius: 4px;
|
|
456
|
-
border: 1px solid hsl(var(--border));
|
|
457
|
-
background: hsl(var(--background));
|
|
458
|
-
font-size: 11px;
|
|
459
|
-
font-weight: 650;
|
|
460
|
-
color: hsl(var(--muted-foreground));
|
|
461
|
-
flex-shrink: 0;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.an-rich-md-slash-copy {
|
|
465
|
-
display: block;
|
|
466
|
-
min-width: 0;
|
|
467
|
-
flex: 1;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.an-rich-md-slash-title {
|
|
471
|
-
display: block;
|
|
472
|
-
overflow: hidden;
|
|
473
|
-
text-overflow: ellipsis;
|
|
474
|
-
white-space: nowrap;
|
|
475
|
-
font-weight: 500;
|
|
476
|
-
font-size: 13px;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.an-rich-md-slash-description {
|
|
480
|
-
display: block;
|
|
481
|
-
overflow: hidden;
|
|
482
|
-
text-overflow: ellipsis;
|
|
483
|
-
white-space: nowrap;
|
|
484
|
-
font-size: 11px;
|
|
485
|
-
color: hsl(var(--muted-foreground));
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
/* Shared block-level image node (the editor's `.an-rich-md-image` and the
|
|
489
|
-
read-only markdown renderer's <img>). Constrained to the prose width and
|
|
490
|
-
responsive; a still-uploading placeholder (empty src) shows a subtle frame. */
|
|
491
|
-
.an-rich-md-prose img,
|
|
492
|
-
.an-rich-md-image {
|
|
493
|
-
display: block;
|
|
494
|
-
max-width: 100%;
|
|
495
|
-
height: auto;
|
|
496
|
-
margin: 12px 0;
|
|
497
|
-
border-radius: 8px;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
.an-rich-md-image[src=""],
|
|
501
|
-
.an-rich-md-image:not([src]) {
|
|
502
|
-
min-height: 64px;
|
|
503
|
-
background: hsl(var(--muted));
|
|
504
|
-
border: 1px dashed hsl(var(--border));
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
.ProseMirror-selectednode.an-rich-md-image {
|
|
508
|
-
outline: 2px solid hsl(var(--ring));
|
|
509
|
-
outline-offset: 2px;
|
|
510
|
-
}
|
|
1
|
+
@import "@agent-native/toolkit/editor.css";
|
|
@@ -138,6 +138,25 @@ Attribution parsing is fully defensive and never blocks signup — a missing/mal
|
|
|
138
138
|
Other framework-level baseline events:
|
|
139
139
|
|
|
140
140
|
- `session status` from `useSession()`, with `signed_in`
|
|
141
|
+
- `action.response` from the browser action transport, with action name,
|
|
142
|
+
browser-perceived duration and TTFB, response status/outcome, response size
|
|
143
|
+
when known, and parsed `Server-Timing` phases for framework readiness and
|
|
144
|
+
database work. Its `request_id` joins the exact browser and server events.
|
|
145
|
+
This separates server time from CDN/network/body overhead.
|
|
146
|
+
- `http.response` from Nitro request/response hooks, with normalized path,
|
|
147
|
+
status, request duration, first-request-in-isolate cold marker, process age,
|
|
148
|
+
framework readiness wait, deploy/runtime fingerprint, database
|
|
149
|
+
connection/query counts and timings, retries, timeouts, and failures. It also
|
|
150
|
+
emits `Server-Timing` for `app`, `startup`, `db`, `db-connect`, and
|
|
151
|
+
`db-slowest` plus an `X-Agent-Native-Request-Id` correlation header where
|
|
152
|
+
applicable. Query text and parameters are never captured.
|
|
153
|
+
Database activity that begins during the first two minutes of process/plugin
|
|
154
|
+
initialization is reported separately as `startup_db_*` on the first
|
|
155
|
+
framework request that passes the readiness gate.
|
|
156
|
+
Slow, cold-isolate, server failures, and 4xx action routes are always
|
|
157
|
+
retained; fast successful requests default to 10% sampling. Override with
|
|
158
|
+
`AGENT_NATIVE_HTTP_TELEMETRY_SAMPLE_RATE` on the server and
|
|
159
|
+
`VITE_AGENT_NATIVE_ACTION_TELEMETRY_SAMPLE_RATE` in the browser.
|
|
141
160
|
- `signup` from Better Auth user creation, with `auth_provider`, `auth_user_id`, and first-touch referral attribution (`referral_source`, `referrer_user`, `referral_medium`, `referral_campaign`, `utm_*`, `first_touch_path`, `landing_referrer` — see "Referral / viral attribution" above)
|
|
142
161
|
- `builder connect clicked` and `builder connect popup blocked` from browser Connect Builder CTAs
|
|
143
162
|
- `builder connect started`, `builder connect succeeded`, `builder connect failed`, `builder disconnect succeeded`, and `builder disconnect failed` from the Builder connection routes, with LLM connection context when resolvable
|
|
@@ -811,6 +811,9 @@ const TOOLKIT_CLIENT_SUBPATHS = [
|
|
|
811
811
|
"@agent-native/toolkit",
|
|
812
812
|
"@agent-native/toolkit/app-shell",
|
|
813
813
|
"@agent-native/toolkit/collab-ui",
|
|
814
|
+
"@agent-native/toolkit/context-ui",
|
|
815
|
+
"@agent-native/toolkit/design-tweaks",
|
|
816
|
+
"@agent-native/toolkit/editor",
|
|
814
817
|
"@agent-native/toolkit/hooks",
|
|
815
818
|
"@agent-native/toolkit/onboarding",
|
|
816
819
|
"@agent-native/toolkit/provider",
|
|
@@ -204,7 +204,9 @@ async function verifyServedMediaUrl(videoUrl: string): Promise<number | null> {
|
|
|
204
204
|
const statusOk = response.status === 200 || response.status === 206;
|
|
205
205
|
if (statusOk) {
|
|
206
206
|
const servedBytes = servedMediaSizeBytes(response);
|
|
207
|
-
if (
|
|
207
|
+
if (servedBytes === null) {
|
|
208
|
+
lastFailure = "Stored media byte count could not be verified";
|
|
209
|
+
} else if (await responseHasReadableMediaBytes(response)) {
|
|
208
210
|
// Builder stable video URLs intentionally replace the source object
|
|
209
211
|
// with a smaller compressed generation at the same URL. A positive,
|
|
210
212
|
// readable object is the invariant here; source-byte equality is
|
|
@@ -6,7 +6,7 @@ export const MOBILE_CAPTURE_STATE_KEY = "mobile-capture-state";
|
|
|
6
6
|
|
|
7
7
|
const mobileCaptureStateSchema = z
|
|
8
8
|
.object({
|
|
9
|
-
view: z.enum(["home", "dictate", "meeting", "video"]),
|
|
9
|
+
view: z.enum(["home", "dictate", "meeting", "video", "clips"]),
|
|
10
10
|
phase: z.enum([
|
|
11
11
|
"idle",
|
|
12
12
|
"ready",
|
|
@@ -15,9 +15,12 @@ const mobileCaptureStateSchema = z
|
|
|
15
15
|
"saving",
|
|
16
16
|
"processing",
|
|
17
17
|
"review",
|
|
18
|
+
"browsing",
|
|
19
|
+
"playing",
|
|
18
20
|
"error",
|
|
19
21
|
]),
|
|
20
22
|
captureId: z.string().trim().min(1).max(200).optional(),
|
|
23
|
+
recordingId: z.string().trim().min(1).max(200).optional(),
|
|
21
24
|
})
|
|
22
25
|
.strict();
|
|
23
26
|
|
|
@@ -384,12 +384,7 @@ export function LibraryLayout({ children }: LibraryLayoutProps) {
|
|
|
384
384
|
) : (
|
|
385
385
|
<>
|
|
386
386
|
<div className="px-3 py-3">
|
|
387
|
-
<Button
|
|
388
|
-
className="w-full gap-1.5"
|
|
389
|
-
variant="outline"
|
|
390
|
-
size="sm"
|
|
391
|
-
asChild
|
|
392
|
-
>
|
|
387
|
+
<Button className="w-full gap-1.5" size="sm" asChild>
|
|
393
388
|
<NavLink to="/record">
|
|
394
389
|
<IconPlayerRecord className="h-4 w-4" />
|
|
395
390
|
{t("navigation.newRecording")}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createSharedEditorExtensions,
|
|
3
|
-
useCollabReconcile,
|
|
4
2
|
usePresence,
|
|
5
3
|
useRecentEdits,
|
|
6
4
|
RecentEditHighlights,
|
|
@@ -8,8 +6,12 @@ import {
|
|
|
8
6
|
useT,
|
|
9
7
|
type AttributedRecentEdit,
|
|
10
8
|
type RegistryBlockSideMapBlock,
|
|
11
|
-
type UseCollabReconcileResult,
|
|
12
9
|
} from "@agent-native/core/client";
|
|
10
|
+
import {
|
|
11
|
+
createSharedEditorExtensions,
|
|
12
|
+
useCollabReconcile,
|
|
13
|
+
type UseCollabReconcileResult,
|
|
14
|
+
} from "@agent-native/toolkit/editor";
|
|
13
15
|
import { canonicalizeNfm, docToNfm, nfmToDoc } from "@shared/nfm";
|
|
14
16
|
import {
|
|
15
17
|
serializeRegistryBlockToMdx,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { DragHandle as
|
|
1
|
+
import { DragHandle as ToolkitDragHandle } from "@agent-native/toolkit/editor";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Content's drag-handle extension.
|
|
5
5
|
*
|
|
6
|
-
* The implementation
|
|
7
|
-
* (`packages/
|
|
6
|
+
* The implementation lives in Toolkit
|
|
7
|
+
* (`packages/toolkit/src/editor/DragHandle.ts`) so other apps
|
|
8
8
|
* (e.g. the plan editor) can reuse the same `::` grip + block-selection +
|
|
9
9
|
* drag-to-reorder affordance. This module is a thin re-export configured with
|
|
10
10
|
* Content's wrapper selector so the behavior stays byte-identical and existing
|
|
11
11
|
* imports (`./extensions/DragHandle`) keep working unchanged.
|
|
12
12
|
*/
|
|
13
|
-
export const DragHandle =
|
|
13
|
+
export const DragHandle = ToolkitDragHandle.configure({
|
|
14
14
|
wrapperSelector: ".visual-editor-wrapper",
|
|
15
15
|
});
|