@pstdio/ui 0.44.0 → 0.45.0-nightly.20261021030241
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/dist/{MermaidComponent-DhNTaUMt.js → MermaidComponent-CTWuGAqI.js} +2 -2
- package/dist/{MermaidComponent-DhNTaUMt.js.map → MermaidComponent-CTWuGAqI.js.map} +1 -1
- package/dist/alert-CO-uOKLm.js +409 -0
- package/dist/alert-CO-uOKLm.js.map +1 -0
- package/dist/chat-ui.d.ts +7 -5
- package/dist/chat-ui.js +1110 -1119
- package/dist/chat-ui.js.map +1 -1
- package/dist/{collection-view-grouping-BKIr4QAb.js → collection-view-grouping-BQMfKdQG.js} +2 -2
- package/dist/{collection-view-grouping-BKIr4QAb.js.map → collection-view-grouping-BQMfKdQG.js.map} +1 -1
- package/dist/{collection-view-search-D7HFymZW.js → collection-view-search-DS9U9WAl.js} +2 -2
- package/dist/{collection-view-search-D7HFymZW.js.map → collection-view-search-DS9U9WAl.js.map} +1 -1
- package/dist/collection-view.d.ts +90 -3
- package/dist/collection-view.js +1 -1
- package/dist/data-table.d.ts +1 -2
- package/dist/data-table.js +4 -4
- package/dist/{diff-viewer-Cpiw-1ut.js → diff-viewer-ChEyTNpa.js} +2 -2
- package/dist/{diff-viewer-Cpiw-1ut.js.map → diff-viewer-ChEyTNpa.js.map} +1 -1
- package/dist/diff.js +2 -2
- package/dist/{display-sort-control-BuqijDAl.js → display-sort-control-BUMkmlIu.js} +3 -3
- package/dist/{display-sort-control-BuqijDAl.js.map → display-sort-control-BUMkmlIu.js.map} +1 -1
- package/dist/{edit-mode-data-table-BwNTRik5.js → edit-mode-data-table-MKEjfFUw.js} +4 -4
- package/dist/{edit-mode-data-table-BwNTRik5.js.map → edit-mode-data-table-MKEjfFUw.js.map} +1 -1
- package/dist/icon-options-DpzDAnlu.js +313 -0
- package/dist/icon-options-DpzDAnlu.js.map +1 -0
- package/dist/{index-DTjRTEez.d.ts → index-C0PaeiBy.d.ts} +8 -1
- package/dist/{index-Bq1BDCBk.d.ts → index-eV_0Gjzo.d.ts} +4 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +862 -780
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +2 -2
- package/dist/kanban-renderer.js +596 -397
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{markdown-editor-DUBUE7M-.js → markdown-editor-BPGIS9ku.js} +996 -876
- package/dist/markdown-editor-BPGIS9ku.js.map +1 -0
- package/dist/param-editor-Bva0M7Ns.js +374 -0
- package/dist/param-editor-Bva0M7Ns.js.map +1 -0
- package/dist/{param-editor-field-B5z6200g.js → param-editor-field-BPBlweVg.js} +1183 -1161
- package/dist/param-editor-field-BPBlweVg.js.map +1 -0
- package/dist/param-editor.d.ts +57 -2
- package/dist/param-editor.js +3 -3
- package/dist/{resolve-icon-component-Ck6ZyRnc.js → resolve-icon-component-Dy0pOuj5.js} +2 -2
- package/dist/{resolve-icon-component-Ck6ZyRnc.js.map → resolve-icon-component-Dy0pOuj5.js.map} +1 -1
- package/dist/{rich-text-2c_ra5gK.js → rich-text-CH2psble.js} +569 -524
- package/dist/rich-text-CH2psble.js.map +1 -0
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +3 -3
- package/dist/terminal.js +1 -1
- package/dist/{theme-Chgjys_o.js → theme-BsStBWWL.js} +255 -155
- package/dist/theme-BsStBWWL.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{tree-list-B8Gtot1M.js → tree-list-aNC_UTGS.js} +396 -341
- package/dist/tree-list-aNC_UTGS.js.map +1 -0
- package/package.json +2 -2
- package/dist/alert-MQ47wy7f.js +0 -388
- package/dist/alert-MQ47wy7f.js.map +0 -1
- package/dist/icon-options-Tt6Wzhtv.js +0 -308
- package/dist/icon-options-Tt6Wzhtv.js.map +0 -1
- package/dist/index-kYQwGcym.d.ts +0 -91
- package/dist/markdown-editor-DUBUE7M-.js.map +0 -1
- package/dist/param-editor-DK1uCOh3.js +0 -225
- package/dist/param-editor-DK1uCOh3.js.map +0 -1
- package/dist/param-editor-field-B5z6200g.js.map +0 -1
- package/dist/rich-text-2c_ra5gK.js.map +0 -1
- package/dist/theme-Chgjys_o.js.map +0 -1
- package/dist/tree-list-B8Gtot1M.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-text-CH2psble.js","names":["AwarenessCursorsCSS","$","_c","t0","Symbol","for","_c","Box","Flex","LexicalCollaboration","CollaborationPluginV2__EXPERIMENTAL","LexicalComposer","LexicalErrorBoundary","HorizontalRulePlugin","LinkPlugin","ListPlugin","RichTextPlugin","TabIndentationPlugin","Provider","useEffect","useRef","useState","WebsocketProvider","Y","ContentEditable","editorNodes","editorTheme","CodeBlockActionsPlugin","ImportCodeBlocksPlugin","CodeHighlightingPlugin","EquationPlugin","FloatingTextFormatToolbarPlugin","ListMarkerWidthPlugin","AwarenessCursorsCSS","CollaborativeMarkdownEditorProps","roomId","wsUrl","wsParams","Record","userName","userColor","placeholder","CollaborativeMarkdownEditor","props","$","_c","t0","t1","t2","t3","undefined","editorContainerRef","floatingToolbarAnchorElem","setFloatingToolbarAnchorElem","synced","setSynced","doc","_temp","t4","nextProvider","params","connect","on","isSynced","provider","t5","t6","disconnect","t7","t8","Symbol","for","current","t9","namespace","nodes","editorState","onError","_temp2","editable","theme","initialConfig","t10","t11","t12","t13","t14","t15","t16","t17","t18","t19","t20","t21","t22","t23","t24","t25","t26","error","console","Doc","_c","_temp","_temp2","INSERT_BLOCK","createCommand","INSERT_BLOCK","INSERT_BLOCK_COMMAND","addClassNamesToElement","$createParagraphNode","DOMConversionMap","DOMConversionOutput","DOMExportOutput","EditorConfig","ElementFormatType","ElementNode","isHTMLElement","LexicalEditor","ParagraphNode","RangeSelection","SerializedElementNode","SerializedCommentNode","convertCommentElement","element","HTMLElement","node","$createCommentNode","style","setFormat","textAlign","CommentNode","getType","clone","__key","createDOM","config","document","createElement","theme","comment","updateDOM","importDOM","blockquote","conversion","priority","exportDOM","editor","isEmpty","append","formatType","getFormatType","direction","getDirection","dir","importJSON","serializedNode","format","setIndent","indent","setDirection","exportJSON","type","getTextContent","originalText","withEscapedReferences","replace","insertNewAfter","_","restoreSelection","newBlock","insertAfter","collapseAtStart","paragraph","children","getChildren","forEach","child","useLexicalComposerContext","$setBlocksType","mergeRegister","$getSelection","$isRangeSelection","COMMAND_PRIORITY_LOW","TextNode","useEffect","INSERT_BLOCK_COMMAND","$createCommentNode","insertCommentBlock","_blockType","nodeToReplace","selection","commentNode","nodeParent","getParent","replace","remove","selectEnd","InsertBlockEvent","optionId","useCommentCommands","$","_c","editor","t0","t1","registerCommand","_temp","event","_c","_temp","useLexicalComposerContext","mergeRegister","$createParagraphNode","useEffect","CommentNode","useCommentSchema","$","_c","editor","t0","t1","registerNodeTransform","node","children","getChildren","invalidChildren","filter","_temp","length","update","forEach","_temp2","child","getType","child_0","replace","_c","_temp","_temp2","useCommentCommands","useCommentSchema","CommentPlugin","matchCommandQuery","text","fragment","exec","leadOffset","length","matchingString","slice","replaceableString","useLexicalComposerContext","LexicalTypeaheadMenuPlugin","MenuOption","$createTextNode","$getSelection","$setSelection","useEffect","useState","createPortal","ListRow","ScrollArea","matchCommandQuery","PromptCommand","name","description","argumentHelp","disabledReason","onSelect","CommandOption","command","constructor","CommandMenuProps","options","selectedIndex","option","index","onHighlight","CommandMenu","props","$","_c","t0","Symbol","for","key","t1","useSlotRecipe","t2","styles","t3","t4","ref","current","scrollIntoView","block","t5","content","t6","t7","setRefElement","Boolean","_temp","map","t8","CommandMenuPlugin","commands","editor","query","setQuery","root","getRootElement","contains","ownerDocument","activeElement","update","_temp2","startsWith","matches","filter","_temp3","text","match","some","command_1","matchingString","node","closeMenu","replace","selectEnd","_temp4","Box","event","preventDefault","selection","clone","command_0","anchor","options_0","selectOptionAndCleanUp","setHighlightedIndex","setAttribute","option_0","_c","_temp","ScrollArea","_temp2","useLexicalComposerContext","useLexicalEditable","useLayoutEffect","FocusRequestPlugin","props","$","_c","requested","isEditable","onComplete","editor","rendered","t0","t1","root","getRootElement","active","document","activeElement","typingElsewhere","HTMLElement","contains","isContentEditable","matches","focus","_c","$isElementNode","RootNode","$getTextContent","root","textContent","children","getChildren","childrenLength","length","i","child","getTextContent","isInline","SerializedNode","type","text","SerializedRoot","shouldAppendParagraphBreak","node","Boolean","traverseSerializedNode","Array","isArray","getTextFromSerializedEditorState","state","parsed","JSON","parse","emptyEditorState","direction","format","indent","version","textFormat","undefined","generateEditorStateFromString","input","trim","stringify","paragraphs","split","map","line","detail","mode","style","useLexicalComposerContext","$getRoot","useImperativeHandle","generateEditorStateFromString","PromptEditorRef","setEditorValue","value","ImperativeAPIPlugin","t0","$","_c","editorRef","previousTextRef","editor","t1","t2","state","parseEditorState","JSON","stringify","_temp","setEditorState","current","focus","selectEnd","_c","_temp","KeyDownLikeEvent","key","ctrlKey","metaKey","shiftKey","altKey","shouldSubmitOnEnter","event","shouldRecallPrevious","shouldRecallNext","useLexicalComposerContext","COMMAND_PRIORITY_HIGH","INSERT_LINE_BREAK_COMMAND","INSERT_PARAGRAPH_COMMAND","KEY_DOWN_COMMAND","LexicalEditor","useEffect","shouldRecallNext","shouldRecallPrevious","shouldSubmitOnEnter","KeyboardShortcutPluginProps","onSubmit","onRecallPrevious","onRecallNext","insertModifiedEnter","editor","event","KeyboardEvent","preventDefault","shiftKey","dispatchCommand","undefined","KeyboardShortcutPlugin","props","$","_c","t0","t1","registerCommand","getRootElement","hasAttribute","key","_c","useLexicalComposerContext","$createRangeSelection","$getNodeByKey","$getRoot","$getSelection","$isElementNode","$isRangeSelection","$isTextNode","$setSelection","LexicalNode","PointType","RangeSelection","useLayoutEffect","useRef","validPoint","point","node","key","isAttached","type","offset","getTextContentSize","getChildrenSize","PromptSelectionSnapshot","anchor","path","focus","pointSnapshot","getParent","unshift","getIndexWithinParent","restorePoint","saved","index","getChildAtIndex","undefined","getKey","PreserveSelectionPlugin","props","isEditable","initialSelection","onSelectionChange","selection","initial","changed","current","editor","editing","registerUpdateListener","editorState","read","clone","root","getRootElement","contains","document","activeElement","restoreSelection","update","range","set","discrete","addEventListener","once","removeEventListener","EditorThemeClasses","baseTheme","promptInputTheme","paragraph","baseTheme","Flex","Text","MarkNode","LexicalComposer","LexicalErrorBoundary","HistoryPlugin","OnChangePlugin","RichTextPlugin","$getRoot","ReactElement","ForwardRefRenderFunction","forwardRef","useRef","ContentEditable","ToggleEditablePlugin","TreeViewPlugin","CommentPlugin","CommentNode","CommandMenuPlugin","PromptCommand","FocusRequestPlugin","ImperativeAPIPlugin","PromptEditorRef","KeyboardShortcutPlugin","PreserveSelectionPlugin","PromptSelectionSnapshot","theme","$getTextContent","getTextFromSerializedEditorState","PromptEditorProps","defaultState","initialSelection","onSelectionChange","selection","debug","isEditable","focusRequested","onFocusRequestComplete","placeholder","onChange","text","state","onError","error","Error","onSubmit","onRecallPrevious","onRecallNext","commands","nodes","BasePromptEditor","props","ref","$","_c","t0","t1","undefined","t2","t3","t4","_temp","t5","namespace","editorState","editable","initialConfig","t6","previousTextRef","t7","placeholderNode","T0","t8","t9","t10","t11","T1","t12","Symbol","for","t13","t14","t15","read","root","rawText","current","toJSON","t16","t17","t18","t19","t20","t21","T2","t22","map","_temp2","join","t23","t24","t25","t26","PromptEditor","command","name","_c","_temp","_temp2","EditorConfig","NodeKey","SerializedTextNode","TextNode","ChatCodeLinkNode","__href","__description","__animateArrival","getType","clone","node","__text","__key","constructor","text","href","description","key","animateArrival","importJSON","value","updateFromJSON","exportJSON","type","createDOM","config","anchor","document","createElement","classList","add","setAttribute","tabIndex","dataset","chatSource","chatOrigin","title","append","updateDOM","previous","__format","$isTextNode","DecoratorNode","LexicalNode","NodeKey","SerializedLexicalNode","ReactElement","resolveMarkdownUrl","MarkdownLinkNode","CHAT_TEXT_FORMAT_TAGS","hasChatTextFormat","ChatLinkCandidate","ChatResourceLink","SerializedChatResourceLink","candidate","label","format","ChatResourceLinkNode","__candidate","__label","__format","getType","clone","node","__key","constructor","key","importJSON","value","exportJSON","type","version","createDOM","document","createElement","importDOM","exportDOM","element","HTMLElement","Text","createTextNode","tag","toReversed","wrapper","append","href","origin","source","anchor","setAttribute","updateDOM","isInline","getTextContent","matchesSource","getSource","getFormat","decorate","TextNode","StreamingTextNode","ChatCodeLinkNode","ChatLinkCandidate","ChatLinkHandler","parseChatLink","ChatResourceLinkNode","resolveChatCodeLink","node","handler","origin","bubble","hasFormat","parent","getParent","getType","includes","candidate","source","getTextContent","parsed","kind","replace","getFormat","replacement","resolveHref","describe","undefined","setFormat","$isTextNode","LexicalNode","parseChatLink","delimiters","Record","pathToken","value","start","end","replace","length","pending","close","index","pairs","Map","character","push","includes","opening","pop","set","test","slice","undefined","get","source","offset","findChatTextPaths","text","paths","token","matchAll","path","parsed","origin","kind","explicit","fileName","splitChatTextPaths","node","hasFormat","parent","getParent","getType","getTextContentSize","offsets","Set","getTextContent","flatMap","filter","sort","left","right","splitText","$isTextNode","TextNode","ChatResourceLinkNode","findChatTextPaths","splitChatTextPaths","resolveChatTextLinks","node","hasFormat","parent","getParent","getType","includes","part","source","getTextContent","path","start","end","length","replace","origin","getFormat","ChatResourceLinkNode","SerializedChatResourceLink","ChatWebLink","ChatWebLinkNode","getType","clone","node","__candidate","__label","__format","__key","importJSON","value","candidate","label","format","decorate","source","useLexicalComposerContext","$isTextNode","TextNode","useEffect","MarkdownLinkNode","StreamingTextNode","resolveChatCodeLink","ChatLinkCandidate","ChatLinkHandler","isChatWebLink","parseChatLink","useChatLinkHandler","ChatResourceLinkNode","resolveChatTextLinks","ChatWebLinkNode","isModifiedClick","event","MouseEvent","KeyboardEvent","button","metaKey","ctrlKey","shiftKey","altKey","activateChatLink","handler","key","target","Element","anchor","closest","dataset","chatSource","candidate","source","origin","chatOrigin","parsed","window","location","href","resolveHref","kind","preventDefault","stopImmediatePropagation","open","ChatLinkPlugin","$","_c","editor","t0","t1","removeLink","registerNodeTransform","node","getSource","isEditable","getChildren","every","replace","getTextContent","setResolvedURL","removeLinkPresentation","registerMutationListener","mutations","mutation","getElementByKey","candidate_0","parsed_0","title","describe","transformCode","node_0","isAttached","removeCode","removeStreamingCode","activate","removeRoot","registerRootListener","root","previous","removeEventListener","addEventListener","chatLinks","_c","$getRoot","$isElementNode","$isTextNode","ElementNode","LexicalNode","TextNode","ChatCodeLinkNode","ChatResourceLinkNode","splitChatTextPaths","createMarkdownLexicalNodes","MarkdownUrlResolver","$createStreamingTextNode","sameAttributes","left","right","attributes","node","children","_children","rest","exportJSON","ReturnType","JSON","stringify","href","__href","description","__description","sameTextFormat","getFormat","getStyle","isChunkText","Boolean","includes","getType","arrivingText","next","text","setFormat","setStyle","markNewText","animate","getTextContent","pending","length","current","pop","child","getChildren","replace","push","reconcileText","previous","start","nodes","cursor","old","remaining","startsWith","getTextContentSize","slice","setTextContent","toggleUnmergeable","reconcileChildren","parent","nextNodes","result","flatMap","matchesSource","some","index","getKey","splice","getChildrenSize","importStreamingMarkdownToLexical","markdown","resolver","useLexicalComposerContext","$addUpdateTag","RefObject","useEffect","createMarkdownSourceDocument","MarkdownSourceDocument","MarkdownUrlResolver","importStreamingMarkdownToLexical","SOURCE_IMPORT_TAG","LoadedRichMessage","body","resolver","RichMessageStatePluginProps","isEditable","streaming","loadedRef","sourceDocumentRef","RichMessageStatePlugin","props","$","_c","editor","t0","t1","previous","current","sourceUnchanged","update","document","importToLexical","startsWith","tag","_c","Flex","useRecipe","ClickableLinkPlugin","LexicalComposer","LexicalErrorBoundary","HorizontalRulePlugin","LinkPlugin","ListPlugin","OnChangePlugin","RichTextPlugin","TabIndentationPlugin","$addUpdateTag","$getRoot","useRef","ChatCodeLinkNode","ChatLinkProps","ChatLinkProvider","ChatLinkStreamingContext","useChatLinkHandler","ChatLinkPlugin","ChatResourceLinkNode","ChatWebLinkNode","ContentEditable","editorNodes","editorTheme","importMarkdownToLexical","createMarkdownSourceDocument","MarkdownTableSettingsContext","MarkdownUrlResolver","MarkdownUrlProvider","ImportCodeBlocksPlugin","CodeHighlightingPlugin","EquationPlugin","ListMarkerWidthPlugin","ToggleEditablePlugin","TreeViewPlugin","splitFrontmatter","RichMessageStatePlugin","SOURCE_IMPORT_TAG","RichMessageProps","debug","defaultState","fullWidth","isEditable","streaming","resolveMarkdownUrl","onChange","value","CHAT_TABLE_SETTINGS","rowNumbers","wrapRows","RichMessage","props","$","_c","inherited","t0","linkHandler","t1","t2","t3","t4","RichMessageContent","undefined","t5","frontmatter","body","shouldTrackChanges","Boolean","t6","Symbol","for","key","motion","t7","resolver","loadedRef","sourceDocumentRef","t8","t9","document","current","importToLexical","t10","namespace","nodes","editorState","onError","_temp","editable","theme","initialConfig","t11","t12","t13","t14","t15","t16","t17","t18","t19","t20","t21","t22","t23","t24","_editor","tags","has","read","root","markdownBody","exportFromLexical","t25","t26","t27","t28","t29","error","console","_c","_temp","StackProps","Button","HStack","Icon","Spinner","Stack","Text","Activity","Bell","CircleAlert","Component","ExternalLink","GitBranch","Info","MessageCircle","ScanSearch","Sparkles","ComponentType","ReactNode","ActivityActor","ActivityComment","ActivityEvent","ActivityFeed","ActivityTimeline","AlertMessage","EmptyState","RichMessage","ResourceActivityFeedSize","ResourceActivityIconName","ResourceActivityRelatedResource","id","type","label","ResourceActivityFeedAction","icon","ResourceActivityFeedAttention","statusLabel","actions","ResourceActivityFeedItemBase","createdAt","timestampLabel","actor","relatedResources","ResourceActivityFeedEventItem","kind","summary","ResourceActivityFeedMessageItem","markdown","attention","ResourceActivityFeedItem","ResourceActivityFeedProps","Omit","items","size","isLoading","error","hasMore","isLoadingMore","emptyTitle","emptyDescription","errorTitle","loadMoreLabel","loadingLabel","fallbackActorName","formatTimestamp","item","onActionSelect","action","onLoadMore","onRelatedResourceSelect","resource","ItemActionsProps","ResourceActivityItemProps","NonNullable","iconComponents","Record","activity","bell","component","info","sparkles","ActivityIcon","props","$","_c","IconComponent","name","t0","ItemActions","attentionActions","undefined","length","map","t1","t2","AttentionStatus","t3","ResourceActivityItem","timestamp","t4","t5","t6","t7","attentionIcon","t8","t9","t10","t11","t12","defaultFormatTimestamp","ResourceActivityFeed","rootProps","Symbol","for","t13","t14","Component","_c","EmptyState","Box","Table","Text","Textarea","ScrollArea","CodeEditorProps","DataTableProps","scaledSmallFontSize","formatValue","value","undefined","length","String","toUpperCase","Date","toISOString","JSON","stringify","DefaultRichTextCodeEditor","props","$","_c","defaultCode","t0","isEditable","t1","showLineNumbers","t2","disableScroll","t3","t4","lines","split","map","_temp","codeBlock","t5","DefaultRichTextDataTable","data","fullWidth","noBorder","hiddenColumns","Symbol","for","t6","Set","hiddenSet","Object","keys","filter","key","has","columns","t7","t8","t9","_temp2","t10","t11","row","rowIndex","join","column_0","column","t12","line","index","_c","ScrollArea","ResourceType","inferResourceTypeFromMediaType","mediaType","normalized","toLowerCase","trim","startsWith","fallback","extensionToMediaType","Record","csv","tsv","json","md","markdown","txt","pdf","png","jpg","jpeg","gif","svg","webp","mp4","mov","ts","tsx","js","jsx","sql","yml","yaml","mediaTypeFromPath","path","cleaned","split","ext","pop","toLowerCase","ActivityTimeline","ActivityEvent","ActivityFeed","ActivityComment","AlertMessage","ScrollArea$1","ListRow","EmptyState$1","ChatResourceLink","parseChatLink","MarkdownUrlProvider","ChatLinkProvider","ChatLinkStreamingContext","useChatLinkHandler","hasChatTextFormat","theme","ChatWebLink","isChatWebLink","ContentEditable","EquationPlugin","ToggleEditablePlugin","MarkdownLinkNode","importMarkdownToLexical","CodeHighlightingPlugin","ImportCodeBlocksPlugin","editorTheme","TreeViewPlugin","CHAT_TEXT_FORMAT_TAGS","resolveMarkdownUrl","ListMarkerWidthPlugin","editorNodes","createMarkdownSourceDocument","CodeBlockActionsPlugin","splitFrontmatter","createMarkdownLexicalNodes","FloatingTextFormatToolbarPlugin","$createStreamingTextNode","MarkdownTableSettingsContext","StreamingTextNode","Component$1","Y","AwarenessCursorsCSS","$","c","t0","CollaborativeMarkdownEditor","t1","t2","props","t3","wsParams","userName","userColor","editorContainerRef","useRef","floatingToolbarAnchorElem","setFloatingToolbarAnchorElem","useState","synced","setSynced","doc","_temp$7","t4","roomId","wsUrl","nextProvider","WebsocketProvider","isSynced","provider","t5","t6","useEffect","t7","t8","t9","_temp2$4","initialConfig","t10","t11","t12","CollaborationPluginV2__EXPERIMENTAL","t13","t14","t15","t16","t17","t18","t19","LinkPlugin","ListPlugin","TabIndentationPlugin","HorizontalRulePlugin","t20","t21","t22","t23","placeholder","Box","t24","RichTextPlugin","LexicalErrorBoundary","t25","t26","Flex","LexicalComposer","LexicalCollaboration","error","INSERT_BLOCK_COMMAND","createCommand","convertCommentElement","node","$createCommentNode","element","CommentNode","ElementNode","addClassNamesToElement","config","editor","isHTMLElement","formatType","direction","serializedNode","newBlock","$createParagraphNode","restoreSelection","paragraph","child","insertCommentBlock","selection","$getSelection","commentNode","nodeToReplace","$isRangeSelection","$setBlocksType","useCommentCommands","useLexicalComposerContext","mergeRegister","_temp$6","COMMAND_PRIORITY_LOW","event","optionId","useCommentSchema","invalidChildren","_temp$5","_temp2$3","CommentPlugin","matchCommandQuery","fragment","text","CommandOption","MenuOption","command","CommandMenu","useSlotRecipe","styles","options","selectedIndex","onHighlight","onSelect","index","option","_temp$4","CommandMenuPlugin","query","setQuery","root","_temp2$2","commands","_temp3","match","command_1","$createTextNode","closeMenu","LexicalTypeaheadMenuPlugin","_temp4","$setSelection","command_0","options_0","anchor","createPortal","setHighlightedIndex","selectOptionAndCleanUp","option_0","FocusRequestPlugin","rendered","useLexicalEditable","isEditable","onComplete","requested","active","useLayoutEffect","$getTextContent","textContent","children","childrenLength","i","$isElementNode","shouldAppendParagraphBreak","traverseSerializedNode","getTextFromSerializedEditorState","state","emptyEditorState","generateEditorStateFromString","input","line","ImperativeAPIPlugin","previousTextRef","value","_temp$3","useImperativeHandle","editorRef","shouldSubmitOnEnter","shouldRecallPrevious","shouldRecallNext","insertModifiedEnter","INSERT_LINE_BREAK_COMMAND","INSERT_PARAGRAPH_COMMAND","KeyboardShortcutPlugin","onRecallNext","onRecallPrevious","onSubmit","KEY_DOWN_COMMAND","COMMAND_PRIORITY_HIGH","validPoint","$getNodeByKey","point","$isTextNode","pointSnapshot","path","restorePoint","$getRoot","saved","PreserveSelectionPlugin","initial","initialSelection","changed","onSelectionChange","editing","current","focus","range","$createRangeSelection","saved_0","promptInputTheme","nodes","MarkNode","PromptEditor","forwardRef","debug","focusRequested","onError","_temp$2","defaultState","Text","placeholderNode","T0","T1","HistoryPlugin","onChange","OnChangePlugin","rawText","editorState","ref","onFocusRequestComplete","T2","_temp2$1","ChatCodeLinkNode","TextNode","key","href","description","animateArrival","previous","ChatResourceLinkNode","DecoratorNode","candidate","label","format","type","tag","wrapper","resolveChatCodeLink","parent","parsed","origin","bubble","replacement","handler","delimiters","pathToken","start","end","pending","pairs","character","close","opening","findChatTextPaths","paths","token","explicit","source","fileName","offset","splitChatTextPaths","length","offsets","left","right","resolveChatTextLinks","part","ChatWebLinkNode","isModifiedClick","activateChatLink","target","ChatLinkPlugin","removeLink","removeLinkPresentation","mutation","mutations","candidate_0","parsed_0","transformCode","node_0","removeCode","removeStreamingCode","activate","removeRoot","sameAttributes","attributes","_children","rest","sameTextFormat","isChunkText","arrivingText","next","markNewText","animate","reconcileText","cursor","old","remaining","reconcileChildren","result","nextNodes","importStreamingMarkdownToLexical","markdown","resolver","SOURCE_IMPORT_TAG","RichMessageStatePlugin","body","loadedRef","sourceDocumentRef","streaming","$addUpdateTag","document","CHAT_TABLE_SETTINGS","RichMessage","inherited","RichMessageContent","fullWidth","shouldTrackChanges","motion","useRecipe","_temp$1","ClickableLinkPlugin","frontmatter","tags","markdownBody","t27","t28","t29","iconComponents","Activity","Bell","CircleAlert","ExternalLink","GitBranch","Info","MessageCircle","ScanSearch","Sparkles","ActivityIcon","IconComponent","Icon","ItemActions","attentionActions","item","onActionSelect","size","Button","action","onRelatedResourceSelect","resource","HStack","AttentionStatus","attention","ResourceActivityItem","fallbackActorName","actor","formatTimestamp","timestamp","attentionIcon","Stack","defaultFormatTimestamp","createdAt","ResourceActivityFeed","items","onLoadMore","rootProps","isLoading","hasMore","isLoadingMore","emptyTitle","emptyDescription","errorTitle","loadMoreLabel","loadingLabel","Spinner","scaledSmallFontSize","formatValue","DefaultRichTextCodeEditor","defaultCode","showLineNumbers","disableScroll","Textarea","lines","_temp","codeBlock","DefaultRichTextDataTable","noBorder","hiddenColumns","data","hiddenSet","columns","Table","_temp2","row","column_0","rowIndex","column","inferResourceTypeFromMediaType","normalized","mediaType","extensionToMediaType","mediaTypeFromPath","ext"],"sources":["../src/components/rich-text/collaborative-markdown-editor/awareness-cursors.tsx","../src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.tsx","../src/components/rich-text/prompt-input/events.ts","../src/components/rich-text/prompt-input/commands.ts","../src/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.tsx","../src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.ts","../src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.ts","../src/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.tsx","../src/components/rich-text/prompt-input/plugins/command-query.ts","../src/components/rich-text/prompt-input/plugins/command-menu-plugin.tsx","../src/components/rich-text/prompt-input/plugins/focus-request-plugin.tsx","../src/components/rich-text/prompt-input/utils.ts","../src/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.tsx","../src/components/rich-text/prompt-input/plugins/keyboard-shortcuts.ts","../src/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.tsx","../src/components/rich-text/prompt-input/plugins/preserve-selection-plugin.tsx","../src/components/rich-text/prompt-input/theme/prompt-input-theme.ts","../src/components/rich-text/prompt-input/prompt-input.tsx","../src/components/chat-ui/links/chat-code-link-node.ts","../src/components/chat-ui/links/chat-resource-link-node.tsx","../src/components/chat-ui/links/chat-code-link-transform.ts","../src/components/chat-ui/links/chat-text-paths.ts","../src/components/chat-ui/links/chat-text-link-transform.ts","../src/components/chat-ui/links/chat-web-link-node.tsx","../src/components/chat-ui/links/chat-link-plugin.tsx","../src/components/rich-text/shared/streaming-markdown.ts","../src/components/rich-text/rich-message/rich-message-state-plugin.tsx","../src/components/rich-text/rich-message/rich-message.tsx","../src/components/rich-text/resource-activity-feed/resource-activity-feed.tsx","../src/components/rich-text/shared/components/default-rich-text-components.tsx","../src/components/rich-text/utils/inferResourceType.ts","../src/components/rich-text/utils/mediaType.ts"],"sourcesContent":["/**\n * Injects CSS for Yjs awareness cursor rendering in the collaborative editor.\n * @lexical/yjs injects cursor elements with data-* attributes; this styles them.\n */\nexport function AwarenessCursorsCSS() {\n return (\n <style>\n {`\n .collaboration-cursor-container {\n position: relative;\n display: inline;\n }\n\n .collaboration-cursor-caret {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 2px;\n pointer-events: none;\n }\n\n .collaboration-cursor-label {\n position: absolute;\n top: -18px;\n left: -2px;\n padding: 1px 6px;\n font-size: 11px;\n font-weight: 600;\n line-height: 16px;\n white-space: nowrap;\n border-radius: 4px 4px 4px 0;\n color: #fff;\n pointer-events: none;\n user-select: none;\n }\n\n .collaboration-cursor-selection {\n position: absolute;\n pointer-events: none;\n opacity: 0.25;\n }\n `}\n </style>\n );\n}\n","import \"../theme/rich-text-theme.css\";\n\nimport { Box, Flex } from \"@chakra-ui/react\";\nimport { LexicalCollaboration } from \"@lexical/react/LexicalCollaborationContext\";\nimport { CollaborationPluginV2__EXPERIMENTAL } from \"@lexical/react/LexicalCollaborationPlugin\";\nimport { LexicalComposer } from \"@lexical/react/LexicalComposer\";\nimport { LexicalErrorBoundary } from \"@lexical/react/LexicalErrorBoundary\";\nimport { HorizontalRulePlugin } from \"@lexical/react/LexicalHorizontalRulePlugin\";\nimport { LinkPlugin } from \"@lexical/react/LexicalLinkPlugin\";\nimport { ListPlugin } from \"@lexical/react/LexicalListPlugin\";\nimport { RichTextPlugin } from \"@lexical/react/LexicalRichTextPlugin\";\nimport { TabIndentationPlugin } from \"@lexical/react/LexicalTabIndentationPlugin\";\nimport type { Provider } from \"@lexical/yjs\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { WebsocketProvider } from \"y-websocket\";\nimport * as Y from \"yjs\";\nimport { ContentEditable } from \"../shared/components/content-editable\";\nimport { editorNodes, editorTheme } from \"../shared/editor-config\";\nimport { CodeBlockActionsPlugin } from \"../shared/plugins/CodePlugin/CodeBlockActionsPlugin\";\nimport { ImportCodeBlocksPlugin } from \"../shared/plugins/CodePlugin/CodeBlockPlugin\";\nimport { CodeHighlightingPlugin } from \"../shared/plugins/CodePlugin/CodeHighlightingPlugin\";\nimport { EquationPlugin } from \"../shared/plugins/EquationPlugin/EquationPlugin\";\nimport { FloatingTextFormatToolbarPlugin } from \"../shared/plugins/FloatingTextFormatToolbarPlugin\";\nimport { ListMarkerWidthPlugin } from \"../shared/plugins/list-marker-width-plugin\";\nimport { AwarenessCursorsCSS } from \"./awareness-cursors\";\n\nexport interface CollaborativeMarkdownEditorProps {\n roomId: string;\n wsUrl: string;\n wsParams?: Record<string, string>;\n userName?: string;\n userColor?: string;\n placeholder?: string;\n}\n\nexport function CollaborativeMarkdownEditor(props: CollaborativeMarkdownEditorProps) {\n const { roomId, wsUrl, wsParams = {}, userName = \"Anonymous\", userColor = \"#30bced\", placeholder } = props;\n\n const editorContainerRef = useRef<HTMLDivElement>(null);\n const [floatingToolbarAnchorElem, setFloatingToolbarAnchorElem] = useState<HTMLElement | null>(null);\n const [synced, setSynced] = useState(false);\n\n // Keep collaborative state stable for the component lifetime.\n const [doc] = useState(() => new Y.Doc());\n const [provider] = useState(() => {\n const nextProvider = new WebsocketProvider(wsUrl, roomId, doc, { params: wsParams, connect: false });\n\n nextProvider.on(\"sync\", (isSynced: boolean) => {\n if (isSynced) setSynced(true);\n });\n\n return nextProvider;\n });\n\n // Manage provider connect/disconnect lifecycle\n useEffect(() => {\n provider.connect();\n\n return () => {\n provider.disconnect();\n };\n }, [provider]);\n\n useEffect(() => {\n setFloatingToolbarAnchorElem(editorContainerRef.current);\n }, []);\n\n const initialConfig = {\n namespace: \"COLLABORATIVE_EDITOR\",\n nodes: editorNodes,\n editorState: null,\n onError: (error: Error) => console.error(error),\n editable: true,\n theme: editorTheme,\n };\n\n return (\n <Flex\n ref={editorContainerRef}\n className=\"rich-text\"\n justifyContent=\"space-between\"\n width=\"100%\"\n maxWidth=\"100%\"\n height=\"100%\"\n position=\"relative\"\n direction=\"column\"\n overflow=\"visible\"\n >\n <AwarenessCursorsCSS />\n\n <LexicalComposer initialConfig={initialConfig}>\n <LexicalCollaboration>\n <CollaborationPluginV2__EXPERIMENTAL\n id={roomId}\n doc={doc}\n provider={provider as unknown as Provider}\n __shouldBootstrapUnsafe={false}\n username={userName}\n cursorColor={userColor}\n />\n <LinkPlugin />\n <ListPlugin />\n <ListMarkerWidthPlugin />\n <TabIndentationPlugin maxIndent={7} />\n <HorizontalRulePlugin />\n <CodeHighlightingPlugin />\n <ImportCodeBlocksPlugin />\n <CodeBlockActionsPlugin anchorElem={floatingToolbarAnchorElem} />\n <EquationPlugin />\n <RichTextPlugin\n contentEditable={<ContentEditable fullWidth={false} layerStyle=\"markdownEditorInset\" />}\n placeholder={\n synced && placeholder ? (\n <Box\n position=\"absolute\"\n top=\"0\"\n left=\"0\"\n right=\"0\"\n layerStyle=\"markdownEditorInset\"\n color=\"fg.muted\"\n pointerEvents=\"none\"\n userSelect=\"none\"\n textStyle=\"paragraph/M/regular\"\n >\n {placeholder}\n </Box>\n ) : null\n }\n ErrorBoundary={LexicalErrorBoundary}\n />\n {floatingToolbarAnchorElem ? (\n <FloatingTextFormatToolbarPlugin anchorElem={floatingToolbarAnchorElem} />\n ) : null}\n </LexicalCollaboration>\n </LexicalComposer>\n </Flex>\n );\n}\n","export const INSERT_BLOCK = \"INSERT_BLOCK\";\n","import { createCommand } from \"lexical\";\nimport { INSERT_BLOCK } from \"./events\";\n\nexport const INSERT_BLOCK_COMMAND = createCommand(INSERT_BLOCK);\n","import { addClassNamesToElement } from \"@lexical/utils\";\nimport {\n $createParagraphNode,\n type DOMConversionMap,\n type DOMConversionOutput,\n type DOMExportOutput,\n type EditorConfig,\n type ElementFormatType,\n ElementNode,\n isHTMLElement,\n type LexicalEditor,\n type ParagraphNode,\n type RangeSelection,\n type SerializedElementNode,\n} from \"lexical\";\n\nexport type SerializedCommentNode = SerializedElementNode;\n\nfunction convertCommentElement(element: HTMLElement): DOMConversionOutput {\n const node = $createCommentNode();\n if (element.style !== null) {\n node.setFormat(element.style.textAlign as ElementFormatType);\n }\n return { node };\n}\n\nexport class CommentNode extends ElementNode {\n static getType(): string {\n return \"comment\";\n }\n\n static clone(node: CommentNode): CommentNode {\n return new CommentNode(node.__key);\n }\n\n createDOM(config: EditorConfig): HTMLElement {\n const element = document.createElement(\"blockquote\");\n addClassNamesToElement(element, config.theme.comment);\n return element;\n }\n\n updateDOM(): boolean {\n return false;\n }\n\n static importDOM(): DOMConversionMap | null {\n return {\n blockquote: () => ({\n conversion: convertCommentElement,\n priority: 0,\n }),\n };\n }\n\n exportDOM(editor: LexicalEditor): DOMExportOutput {\n const { element } = super.exportDOM(editor);\n\n if (element && isHTMLElement(element)) {\n if (this.isEmpty()) {\n element.append(document.createElement(\"br\"));\n }\n\n const formatType = this.getFormatType();\n element.style.textAlign = formatType;\n\n const direction = this.getDirection();\n if (direction) {\n element.dir = direction;\n }\n }\n\n return {\n element,\n };\n }\n\n static importJSON(serializedNode: SerializedCommentNode): CommentNode {\n const node = $createCommentNode();\n node.setFormat(serializedNode.format);\n node.setIndent(serializedNode.indent);\n node.setDirection(serializedNode.direction);\n return node;\n }\n\n exportJSON(): SerializedElementNode {\n return {\n ...super.exportJSON(),\n type: \"comment\",\n };\n }\n\n getTextContent(): string {\n const originalText = super.getTextContent();\n // escape { and } symbols\n const withEscapedReferences = originalText.replace(/([{}])/g, \"\\\\$1\");\n return `{{! ${withEscapedReferences} }}`;\n }\n\n // mutation\n\n insertNewAfter(_: RangeSelection, restoreSelection?: boolean): ParagraphNode {\n const newBlock = $createParagraphNode();\n const direction = this.getDirection();\n newBlock.setDirection(direction);\n this.insertAfter(newBlock, restoreSelection);\n return newBlock;\n }\n\n collapseAtStart(): true {\n const paragraph = $createParagraphNode();\n const children = this.getChildren();\n children.forEach((child) => {\n paragraph.append(child);\n });\n this.replace(paragraph);\n return true;\n }\n}\n\nexport function $createCommentNode(): CommentNode {\n return new CommentNode();\n}\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { $setBlocksType } from \"@lexical/selection\";\nimport { mergeRegister } from \"@lexical/utils\";\nimport { $getSelection, $isRangeSelection, COMMAND_PRIORITY_LOW, type TextNode } from \"lexical\";\nimport { useEffect } from \"react\";\nimport { INSERT_BLOCK_COMMAND } from \"../../../commands\";\nimport { $createCommentNode } from \"../nodes/CommentNode/CommentNode\";\n\nexport const insertCommentBlock = (_blockType: string, nodeToReplace?: TextNode) => {\n const selection = $getSelection();\n const commentNode = $createCommentNode();\n\n if (nodeToReplace) {\n const nodeParent = nodeToReplace.getParent();\n nodeParent?.replace(commentNode, true);\n nodeToReplace.remove();\n commentNode.selectEnd();\n return;\n }\n\n if ($isRangeSelection(selection)) {\n $setBlocksType(selection, $createCommentNode);\n }\n};\n\ntype InsertBlockEvent = {\n optionId: string;\n nodeToReplace?: TextNode;\n};\n\nexport function useCommentCommands(): null {\n const [editor] = useLexicalComposerContext();\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand(\n INSERT_BLOCK_COMMAND,\n (event: InsertBlockEvent) => {\n const { optionId, nodeToReplace } = event;\n insertCommentBlock(optionId, nodeToReplace);\n return false;\n },\n COMMAND_PRIORITY_LOW,\n ),\n );\n }, [editor]);\n\n return null;\n}\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { mergeRegister } from \"@lexical/utils\";\nimport { $createParagraphNode } from \"lexical\";\nimport { useEffect } from \"react\";\nimport { CommentNode } from \"../nodes/CommentNode/CommentNode\";\n\nexport const useCommentSchema = () => {\n const [editor] = useLexicalComposerContext();\n\n useEffect(() => {\n return mergeRegister(\n editor.registerNodeTransform(CommentNode, (node) => {\n const children = node.getChildren();\n\n /**\n * Comment nodes cannot have other comments as children\n */\n const invalidChildren = children.filter((child) => child.getType() === \"comment\");\n\n if (invalidChildren.length > 0) {\n editor.update(() => {\n invalidChildren.forEach((child) => {\n child.replace($createParagraphNode(), true);\n });\n });\n }\n }),\n );\n }, [editor]);\n};\n","import { useCommentCommands } from \"./hooks/useCommentCommands\";\nimport { useCommentSchema } from \"./hooks/useCommentSchema\";\n\nexport function CommentPlugin(): null {\n useCommentSchema();\n useCommentCommands();\n return null;\n}\n","export const matchCommandQuery = (text: string) => {\n const fragment = /(?:^|\\s)(\\/[^\\s/]*)$/.exec(text)?.[1];\n if (!fragment) return null;\n return {\n leadOffset: text.length - fragment.length,\n matchingString: fragment.slice(1),\n replaceableString: fragment,\n };\n};\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { LexicalTypeaheadMenuPlugin, MenuOption } from \"@lexical/react/LexicalTypeaheadMenuPlugin\";\nimport { $createTextNode, $getSelection, $setSelection } from \"lexical\";\nimport { useEffect, useState } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { ListRow } from \"@/components/list-row/list-row\";\nimport { ScrollArea } from \"@/components/primitives/scroll-area\";\nimport { matchCommandQuery } from \"./command-query\";\n\nexport interface PromptCommand {\n name: string;\n description: string;\n argumentHelp?: string;\n disabledReason?: string;\n /** Select local draft intent without inserting native command text. */\n onSelect?: () => void;\n}\n\nclass CommandOption extends MenuOption {\n readonly command: PromptCommand;\n constructor(command: PromptCommand) {\n super(command.name);\n this.command = command;\n }\n}\n\ninterface CommandMenuProps {\n options: CommandOption[];\n selectedIndex: number | null;\n onSelect: (option: CommandOption, index: number) => void;\n onHighlight: (index: number) => void;\n}\n\nconst CommandMenu = (props: CommandMenuProps) => {\n const { options, selectedIndex, onSelect, onHighlight } = props;\n const styles = useSlotRecipe({ key: \"menu\" })();\n useEffect(() => {\n options[selectedIndex ?? -1]?.ref?.current?.scrollIntoView({ block: \"nearest\" });\n }, [options, selectedIndex]);\n return (\n <Box css={styles.content} position=\"absolute\" bottom=\"100%\" mb=\"2xs\" zIndex=\"popover\">\n <ScrollArea maxH=\"xs\" showHorizontalScrollbar={false}>\n {options.map((option, index) => (\n <ListRow\n key={option.key}\n id={`typeahead-item-${index}`}\n ref={option.setRefElement}\n role=\"option\"\n aria-label={option.command.name}\n aria-disabled={Boolean(option.command.disabledReason)}\n tabIndex={-1}\n variant=\"full-width\"\n label={option.command.name}\n description={option.command.disabledReason ?? option.command.description}\n disabled={Boolean(option.command.disabledReason)}\n isSelected={selectedIndex === index}\n onMouseDown={(event) => event.preventDefault()}\n onPointerMove={() => onHighlight(index)}\n onActivate={() => onSelect(option, index)}\n />\n ))}\n </ScrollArea>\n </Box>\n );\n};\n\nexport const CommandMenuPlugin = (props: { commands: PromptCommand[] }) => {\n const { commands } = props;\n const [editor] = useLexicalComposerContext();\n const [query, setQuery] = useState<string | null>(null);\n useEffect(() => {\n // Refresh completion after discovery only while the editor owns focus.\n const root = editor.getRootElement();\n if (!root?.contains(root.ownerDocument.activeElement)) return;\n editor.update(() => {\n const selection = $getSelection();\n if (selection) $setSelection(selection.clone());\n });\n }, [editor]);\n const matches = commands.filter((command) => command.name.startsWith(`/${query ?? \"\"}`));\n const options = matches.map((command) => new CommandOption(command));\n return (\n <LexicalTypeaheadMenuPlugin<CommandOption>\n onQueryChange={setQuery}\n options={options}\n triggerFn={(text) => {\n const match = matchCommandQuery(text);\n if (!match || !commands.some((command) => command.name.startsWith(`/${match.matchingString}`))) return null;\n return match;\n }}\n onSelectOption={(option, node, closeMenu) => {\n if (option.command.disabledReason) return;\n editor.update(() => {\n node?.replace($createTextNode(option.command.onSelect ? \"\" : `${option.command.name} `)).selectEnd();\n closeMenu();\n });\n option.command.onSelect?.();\n }}\n menuRenderFn={(anchor, { options, selectedIndex, selectOptionAndCleanUp, setHighlightedIndex }) => {\n anchor.current?.setAttribute(\"aria-label\", \"Harness commands\");\n return anchor.current\n ? createPortal(\n <CommandMenu\n options={options}\n selectedIndex={selectedIndex}\n onHighlight={setHighlightedIndex}\n onSelect={(option, index) => {\n setHighlightedIndex(index);\n selectOptionAndCleanUp(option);\n }}\n />,\n anchor.current,\n )\n : null;\n }}\n />\n );\n};\n\nimport { Box, useSlotRecipe } from \"@chakra-ui/react\";\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { useLexicalEditable } from \"@lexical/react/useLexicalEditable\";\nimport { useLayoutEffect } from \"react\";\n\n/** Focus the editor once a request is pending and the editor is editable, then report completion. */\nexport const FocusRequestPlugin = (props: { requested: boolean; isEditable: boolean; onComplete?: () => void }) => {\n const { requested, isEditable, onComplete } = props;\n const [editor] = useLexicalComposerContext();\n // `isEditable` is the intended state. Lexical renders the DOM attribute in the same commit as\n // `rendered`, so both are true only when the browser can focus the editor and it stays unlocked.\n const rendered = useLexicalEditable();\n\n useLayoutEffect(() => {\n if (!requested || !isEditable || !rendered) return;\n const root = editor.getRootElement();\n const active = document.activeElement;\n // A request can wait while the editor is locked. Keep focus in a field or embedded view the person chose.\n const typingElsewhere =\n active instanceof HTMLElement &&\n !root?.contains(active) &&\n (active.isContentEditable || active.matches(\"input, textarea, select, iframe\"));\n if (!typingElsewhere) root?.focus();\n onComplete?.();\n }, [requested, isEditable, rendered, editor, onComplete]);\n\n return null;\n};\n","import { $isElementNode, type RootNode } from \"lexical\";\n\nexport const $getTextContent = (root: RootNode) => {\n let textContent = \"\";\n const children = root.getChildren();\n const childrenLength = children.length;\n for (let i = 0; i < childrenLength; i++) {\n const child = children[i];\n textContent += child.getTextContent();\n if ($isElementNode(child) && i !== childrenLength - 1 && !child.isInline()) {\n textContent += \"\\n\";\n }\n }\n return textContent;\n};\n\ntype SerializedNode = {\n type?: string;\n text?: string;\n children?: SerializedNode[];\n};\n\ntype SerializedRoot = {\n root?: SerializedNode;\n};\n\nconst shouldAppendParagraphBreak = (node: SerializedNode) => {\n return node.type === \"paragraph\" && Boolean(node.children?.length);\n};\n\nconst traverseSerializedNode = (node: SerializedNode): string => {\n if (node.type === \"comment\") {\n return \"\";\n }\n\n let text = typeof node.text === \"string\" ? node.text : \"\";\n const children = node.children;\n if (!Array.isArray(children)) return text;\n\n const childrenLength = children.length;\n for (let i = 0; i < childrenLength; i += 1) {\n const child = children[i];\n if (child.type === \"comment\") {\n if (i !== childrenLength - 1) {\n text += \"\\n\";\n }\n continue;\n }\n\n text += traverseSerializedNode(child);\n if (shouldAppendParagraphBreak(child)) {\n text += \"\\n\";\n }\n }\n\n return text;\n};\n\nexport const getTextFromSerializedEditorState = (state: string): string => {\n try {\n const parsed = JSON.parse(state) as SerializedRoot;\n return traverseSerializedNode(parsed.root ?? {});\n } catch {\n return \"\";\n }\n};\n\nexport const emptyEditorState = {\n root: {\n direction: \"ltr\",\n format: \"\",\n indent: 0,\n type: \"root\",\n version: 1,\n children: [\n {\n type: \"paragraph\",\n version: 1,\n format: \"\",\n indent: 0,\n textFormat: undefined,\n direction: null,\n children: [],\n },\n ],\n },\n};\n\nexport function generateEditorStateFromString(input = \"\") {\n if (!input.trim()) {\n return JSON.parse(JSON.stringify(emptyEditorState));\n }\n\n // Split on line breaks → one paragraph per line\n const paragraphs = input.split(/\\r?\\n/);\n\n const children = paragraphs.map((line) => ({\n type: \"paragraph\",\n version: 1,\n format: \"\",\n indent: 0,\n textFormat: undefined,\n direction: null,\n children: line\n ? [\n {\n type: \"text\",\n version: 1,\n text: line,\n format: \"\",\n detail: 0,\n mode: \"normal\",\n style: \"\",\n },\n ]\n : [],\n }));\n\n return {\n root: {\n direction: \"ltr\",\n format: \"\",\n indent: 0,\n type: \"root\",\n version: 1,\n children,\n },\n };\n}\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { $getRoot } from \"lexical\";\nimport { useImperativeHandle } from \"react\";\nimport { generateEditorStateFromString } from \"../utils\";\n\nexport interface PromptEditorRef {\n setEditorValue: (value: string) => void;\n}\n\nexport function ImperativeAPIPlugin({\n editorRef,\n previousTextRef,\n}: {\n editorRef: React.ForwardedRef<PromptEditorRef>;\n previousTextRef: React.MutableRefObject<string>;\n}) {\n const [editor] = useLexicalComposerContext();\n\n useImperativeHandle(\n editorRef,\n () => ({\n setEditorValue: (value: string) => {\n // Keep text and selection in one state when replacement runs inside a key command.\n const state = editor.parseEditorState(JSON.stringify(generateEditorStateFromString(value)), () => {\n $getRoot().selectEnd();\n });\n editor.setEditorState(state);\n previousTextRef.current = value;\n editor.focus();\n },\n }),\n [editor, previousTextRef],\n );\n\n return null;\n}\n","type KeyDownLikeEvent = {\n key: string;\n ctrlKey: boolean;\n metaKey: boolean;\n shiftKey: boolean;\n altKey: boolean;\n};\n\nexport const shouldSubmitOnEnter = (event: KeyDownLikeEvent) => {\n if (event.key !== \"Enter\") return false;\n\n return !event.ctrlKey && !event.metaKey && !event.shiftKey && !event.altKey;\n};\n\nexport const shouldRecallPrevious = (event: KeyDownLikeEvent) =>\n event.key === \"ArrowUp\" && !event.ctrlKey && !event.metaKey && !event.shiftKey && !event.altKey;\n\nexport const shouldRecallNext = (event: KeyDownLikeEvent) =>\n event.key === \"ArrowDown\" && !event.ctrlKey && !event.metaKey && !event.shiftKey && !event.altKey;\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport {\n COMMAND_PRIORITY_HIGH,\n INSERT_LINE_BREAK_COMMAND,\n INSERT_PARAGRAPH_COMMAND,\n KEY_DOWN_COMMAND,\n type LexicalEditor,\n} from \"lexical\";\nimport { useEffect } from \"react\";\nimport { shouldRecallNext, shouldRecallPrevious, shouldSubmitOnEnter } from \"./keyboard-shortcuts\";\n\nexport interface KeyboardShortcutPluginProps {\n onSubmit?: () => void;\n onRecallPrevious?: () => boolean;\n onRecallNext?: () => boolean;\n}\n\nconst insertModifiedEnter = (editor: LexicalEditor, event: KeyboardEvent) => {\n event.preventDefault();\n if (event.shiftKey) editor.dispatchCommand(INSERT_LINE_BREAK_COMMAND, false);\n else editor.dispatchCommand(INSERT_PARAGRAPH_COMMAND, undefined);\n};\n\nexport function KeyboardShortcutPlugin(props: KeyboardShortcutPluginProps) {\n const { onSubmit, onRecallPrevious, onRecallNext } = props;\n const [editor] = useLexicalComposerContext();\n\n useEffect(() => {\n return editor.registerCommand(\n KEY_DOWN_COMMAND,\n (event: KeyboardEvent) => {\n // The editor's typeahead menu owns Enter, Tab, and arrow keys while it is open.\n if (editor.getRootElement()?.hasAttribute(\"aria-controls\")) {\n if (event.key === \"Enter\" && !shouldSubmitOnEnter(event)) {\n insertModifiedEnter(editor, event);\n return true;\n }\n return false;\n }\n if (shouldSubmitOnEnter(event)) {\n event.preventDefault();\n onSubmit?.();\n return true;\n }\n\n if ((shouldRecallPrevious(event) && onRecallPrevious?.()) || (shouldRecallNext(event) && onRecallNext?.())) {\n event.preventDefault();\n return true;\n }\n return false;\n },\n COMMAND_PRIORITY_HIGH,\n );\n }, [editor, onSubmit, onRecallPrevious, onRecallNext]);\n\n return null;\n}\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport {\n $createRangeSelection,\n $getNodeByKey,\n $getRoot,\n $getSelection,\n $isElementNode,\n $isRangeSelection,\n $isTextNode,\n $setSelection,\n type LexicalNode,\n type PointType,\n type RangeSelection,\n} from \"lexical\";\nimport { useLayoutEffect, useRef } from \"react\";\n\nconst validPoint = (point: PointType) => {\n const node = $getNodeByKey(point.key);\n if (!node?.isAttached()) return false;\n if (point.type === \"text\") return $isTextNode(node) && point.offset <= node.getTextContentSize();\n return $isElementNode(node) && point.offset <= node.getChildrenSize();\n};\n\nexport interface PromptSelectionSnapshot {\n anchor: { path: number[]; offset: number; type: \"text\" | \"element\" };\n focus: { path: number[]; offset: number; type: \"text\" | \"element\" };\n}\nconst pointSnapshot = (point: PointType) => {\n const path: number[] = [];\n let node = $getNodeByKey(point.key);\n while (node?.getParent()) {\n path.unshift(node.getIndexWithinParent());\n node = node.getParent();\n }\n return { path, offset: point.offset, type: point.type };\n};\nconst restorePoint = (saved: PromptSelectionSnapshot[\"anchor\"]) => {\n let node: LexicalNode | undefined = $getRoot();\n for (const index of saved.path) node = $isElementNode(node) ? (node.getChildAtIndex(index) ?? undefined) : undefined;\n return node ? { key: node.getKey(), offset: saved.offset, type: saved.type } : undefined;\n};\n\n/** Keep the last editing range when a temporarily disabled editor loses DOM selection. */\nexport const PreserveSelectionPlugin = (props: {\n isEditable: boolean;\n initialSelection?: PromptSelectionSnapshot;\n onSelectionChange?: (selection: PromptSelectionSnapshot) => void;\n}) => {\n const { isEditable, initialSelection, onSelectionChange } = props;\n const initial = useRef(initialSelection);\n const changed = useRef(onSelectionChange);\n changed.current = onSelectionChange;\n const [editor] = useLexicalComposerContext();\n const selection = useRef<RangeSelection | null>(null);\n const editing = useRef(isEditable);\n editing.current = isEditable;\n useLayoutEffect(\n () =>\n editor.registerUpdateListener(({ editorState }) => {\n editorState.read(() => {\n const saved = selection.current;\n if (saved && (!validPoint(saved.anchor) || !validPoint(saved.focus))) selection.current = null;\n if (!editing.current) return;\n const current = $getSelection();\n if ($isRangeSelection(current)) {\n selection.current = current.clone();\n changed.current?.({ anchor: pointSnapshot(current.anchor), focus: pointSnapshot(current.focus) });\n }\n });\n }),\n [editor],\n );\n useLayoutEffect(() => {\n if (!isEditable) return;\n const root = editor.getRootElement();\n if (!root || root.contains(document.activeElement) || (!selection.current && !initial.current)) return;\n // Restore on return even when another control had focus before takeover. Flush during native focus\n // so a later click or select-all can choose its own range without a deferred restore overwriting it.\n const restoreSelection = () => {\n editor.update(\n () => {\n if (!selection.current && initial.current) {\n const anchor = restorePoint(initial.current.anchor);\n const focus = restorePoint(initial.current.focus);\n if (anchor && focus) {\n const range = $createRangeSelection();\n range.anchor.set(anchor.key, anchor.offset, anchor.type);\n range.focus.set(focus.key, focus.offset, focus.type);\n selection.current = range;\n }\n initial.current = undefined;\n }\n const saved = selection.current;\n if (saved && validPoint(saved.anchor) && validPoint(saved.focus)) $setSelection(saved.clone());\n },\n { discrete: true },\n );\n };\n root.addEventListener(\"focus\", restoreSelection, { once: true });\n return () => root.removeEventListener(\"focus\", restoreSelection);\n }, [editor, isEditable]);\n return null;\n};\n","import type { EditorThemeClasses } from \"lexical\";\nimport baseTheme from \"../../theme/rich-text-theme\";\nimport \"./prompt-input-theme.css\";\n\nconst promptInputTheme: EditorThemeClasses = {\n ...baseTheme,\n // Override paragraph class to remove margins specifically for prompt input\n paragraph: \"rich-text__p rich-text__p--no-margin\",\n};\n\nexport default promptInputTheme;\n","import { Flex, Text } from \"@chakra-ui/react\";\nimport { MarkNode } from \"@lexical/mark\";\nimport { LexicalComposer } from \"@lexical/react/LexicalComposer\";\nimport { LexicalErrorBoundary } from \"@lexical/react/LexicalErrorBoundary\";\nimport { HistoryPlugin } from \"@lexical/react/LexicalHistoryPlugin\";\nimport { OnChangePlugin } from \"@lexical/react/LexicalOnChangePlugin\";\nimport { RichTextPlugin } from \"@lexical/react/LexicalRichTextPlugin\";\nimport { $getRoot } from \"lexical\";\nimport type { ReactElement } from \"react\";\nimport { type ForwardRefRenderFunction, forwardRef, useRef } from \"react\";\nimport { ContentEditable } from \"../shared/components/content-editable\";\nimport ToggleEditablePlugin from \"../shared/plugins/ToggleEditablePlugin\";\nimport { TreeViewPlugin } from \"../shared/plugins/TreeViewPlugin/TreeViewPlugin\";\nimport { CommentPlugin } from \"./plugins/CommentPlugin/CommentPlugin\";\nimport { CommentNode } from \"./plugins/CommentPlugin/nodes/CommentNode/CommentNode\";\nimport { CommandMenuPlugin, type PromptCommand } from \"./plugins/command-menu-plugin\";\nimport { FocusRequestPlugin } from \"./plugins/focus-request-plugin\";\nimport { ImperativeAPIPlugin, type PromptEditorRef } from \"./plugins/ImperativeAPIPlugin\";\nimport { KeyboardShortcutPlugin } from \"./plugins/KeyboardShortcutPlugin\";\nimport { PreserveSelectionPlugin, type PromptSelectionSnapshot } from \"./plugins/preserve-selection-plugin\";\nimport theme from \"./theme/prompt-input-theme\";\nimport { $getTextContent, getTextFromSerializedEditorState } from \"./utils\";\n\nexport interface PromptEditorProps {\n defaultState: string;\n initialSelection?: PromptSelectionSnapshot;\n onSelectionChange?: (selection: PromptSelectionSnapshot) => void;\n debug?: boolean;\n isEditable?: boolean;\n /**\n * Focus the editor as soon as it is editable, then call `onFocusRequestComplete`. The caller clears the\n * request there. Focus stays in a field or embedded view the person moved to while the editor was locked.\n */\n focusRequested?: boolean;\n onFocusRequestComplete?: () => void;\n placeholder?: ReactElement | ((isEditable: boolean) => ReactElement | null);\n onChange?: (text: string, state: object) => void;\n onError?: (error: Error) => void;\n onSubmit?: () => void;\n onRecallPrevious?: () => boolean;\n onRecallNext?: () => boolean;\n /** Native command suggestions shown in the slash popover. Selection inserts plain text. */\n commands?: PromptCommand[];\n}\n\nconst nodes = [CommentNode, MarkNode];\n\nexport const BasePromptEditor: ForwardRefRenderFunction<PromptEditorRef, PromptEditorProps> = (props, ref) => {\n const { initialSelection, onSelectionChange, defaultState, debug = false, isEditable = true, placeholder } = props;\n const { focusRequested = false, onFocusRequestComplete } = props;\n const { onChange, onError = () => {}, onSubmit, onRecallPrevious, onRecallNext, commands = [] } = props;\n\n const initialConfig = {\n namespace: \"PROMPT_EDITOR\",\n nodes,\n editorState: defaultState,\n editable: isEditable,\n onError,\n theme,\n };\n\n const previousTextRef = useRef<string>(getTextFromSerializedEditorState(defaultState));\n const placeholderNode: ReactElement | ((isEditable: boolean) => ReactElement | null) = placeholder ?? (\n <Text textStyle=\"label/M/regular\" color=\"fg.subtle\" pointerEvents=\"none\" position=\"absolute\" top=\"0\">\n Type your message here.\n </Text>\n );\n\n return (\n <Flex direction=\"column\" justifyContent=\"space-between\" width=\"100%\" position=\"relative\">\n <LexicalComposer initialConfig={initialConfig}>\n <HistoryPlugin />\n <RichTextPlugin\n contentEditable={<ContentEditable fullWidth />}\n placeholder={placeholderNode}\n ErrorBoundary={LexicalErrorBoundary}\n />\n <OnChangePlugin\n ignoreSelectionChange\n ignoreHistoryMergeTagChange={false}\n onChange={(editorState) => {\n editorState.read(() => {\n // handle comment blocks properly\n const root = $getRoot();\n const rawText = $getTextContent(root);\n\n if (rawText !== previousTextRef.current) {\n previousTextRef.current = rawText;\n onChange?.(rawText, editorState.toJSON());\n }\n });\n }}\n />\n <ImperativeAPIPlugin editorRef={ref} previousTextRef={previousTextRef} />\n <ToggleEditablePlugin isEditable={isEditable} />\n <PreserveSelectionPlugin\n isEditable={isEditable}\n initialSelection={initialSelection}\n onSelectionChange={onSelectionChange}\n />\n {/* After selection preservation, so the restore listener exists before this plugin focuses. */}\n <FocusRequestPlugin requested={focusRequested} isEditable={isEditable} onComplete={onFocusRequestComplete} />\n <CommentPlugin />\n <KeyboardShortcutPlugin onSubmit={onSubmit} onRecallPrevious={onRecallPrevious} onRecallNext={onRecallNext} />\n <CommandMenuPlugin key={commands.map((command) => command.name).join(\"\\n\")} commands={commands} />\n {debug ? <TreeViewPlugin /> : \"\"}\n </LexicalComposer>\n </Flex>\n );\n};\n\nexport const PromptEditor = forwardRef(BasePromptEditor);\n\nexport type { PromptCommand } from \"./plugins/command-menu-plugin\";\nexport type { PromptEditorRef } from \"./plugins/ImperativeAPIPlugin\";\n","import { type EditorConfig, type NodeKey, type SerializedTextNode, TextNode } from \"lexical\";\n\nexport class ChatCodeLinkNode extends TextNode {\n __href: string | null;\n __description?: string;\n __animateArrival: boolean;\n static getType() {\n return \"chat-code-link\";\n }\n static clone(node: ChatCodeLinkNode) {\n return new ChatCodeLinkNode(node.__text, node.__href, node.__description, node.__key, node.__animateArrival);\n }\n constructor(text: string, href: string | null, description?: string, key?: NodeKey, animateArrival = false) {\n super(text, key);\n this.__href = href;\n this.__description = description;\n this.__animateArrival = animateArrival;\n }\n static importJSON(value: SerializedTextNode) {\n return new ChatCodeLinkNode(value.text, null).updateFromJSON(value);\n }\n exportJSON(): SerializedTextNode {\n return { ...super.exportJSON(), type: \"chat-code-link\" };\n }\n createDOM(config: EditorConfig) {\n const anchor = document.createElement(\"a\");\n if (this.__animateArrival) anchor.classList.add(\"streaming-text-chunk\");\n if (this.__href) anchor.href = this.__href;\n else {\n anchor.setAttribute(\"role\", \"button\");\n anchor.tabIndex = 0;\n }\n anchor.dataset.chatSource = this.__text;\n anchor.dataset.chatOrigin = \"inline-code\";\n anchor.title = this.__description ?? `Open file: ${this.__text}`;\n anchor.append(super.createDOM(config));\n return anchor;\n }\n updateDOM(previous: ChatCodeLinkNode) {\n return previous.__text !== this.__text || previous.__format !== this.__format || previous.__href !== this.__href;\n }\n}\n","import { $isTextNode, DecoratorNode, type LexicalNode, type NodeKey, type SerializedLexicalNode } from \"lexical\";\nimport type { ReactElement } from \"react\";\nimport { resolveMarkdownUrl } from \"@/components/rich-text/shared/markdown-url\";\nimport { MarkdownLinkNode } from \"@/components/rich-text/shared/nodes/MarkdownLinkNode\";\nimport { CHAT_TEXT_FORMAT_TAGS, hasChatTextFormat } from \"./chat-guess-text\";\nimport type { ChatLinkCandidate } from \"./chat-link\";\nimport { ChatResourceLink } from \"./chat-resource-link\";\n\nexport interface SerializedChatResourceLink extends SerializedLexicalNode {\n candidate: ChatLinkCandidate;\n label: string;\n format?: number;\n}\n\nexport class ChatResourceLinkNode extends DecoratorNode<ReactElement> {\n __candidate: ChatLinkCandidate;\n __label: string;\n // The replaced text's bold, italic and code formats, kept for text that stays unlinked.\n __format: number;\n static getType() {\n return \"chat-resource-link\";\n }\n static clone(node: ChatResourceLinkNode) {\n return new ChatResourceLinkNode(node.__candidate, node.__label, node.__format, node.__key);\n }\n constructor(candidate: ChatLinkCandidate, label: string, format = 0, key?: NodeKey) {\n super(key);\n this.__candidate = candidate;\n this.__label = label;\n this.__format = format;\n }\n static importJSON(value: SerializedChatResourceLink) {\n return new ChatResourceLinkNode(value.candidate, value.label, value.format);\n }\n exportJSON(): SerializedChatResourceLink {\n return {\n ...super.exportJSON(),\n type: this.getType(),\n version: 1,\n candidate: this.__candidate,\n label: this.__label,\n format: this.__format,\n };\n }\n createDOM() {\n return document.createElement(\"span\");\n }\n // Pasted HTML stays links, code and text; it never recreates a bubble.\n static importDOM() {\n return null;\n }\n // Copy writes HTML from this export. Keep the text so a pasted message has no gaps.\n exportDOM() {\n let element: HTMLElement | Text = document.createTextNode(this.__label);\n for (const [type, tag] of CHAT_TEXT_FORMAT_TAGS.toReversed()) {\n if (!hasChatTextFormat(this.__format, type)) continue;\n const wrapper = document.createElement(tag);\n wrapper.append(element);\n element = wrapper;\n }\n const href = this.__candidate.origin === \"markdown\" && resolveMarkdownUrl(this.__candidate.source, \"link\");\n if (!href) return { element };\n const anchor = document.createElement(\"a\");\n anchor.setAttribute(\"href\", href);\n anchor.append(element);\n return { element: anchor };\n }\n updateDOM() {\n return false;\n }\n isInline() {\n return true;\n }\n getTextContent() {\n return this.__label;\n }\n matchesSource(node: LexicalNode) {\n if (this.__candidate.origin === \"markdown\")\n return (\n node instanceof MarkdownLinkNode &&\n node.getSource() === this.__candidate.source &&\n node.getTextContent() === this.__label\n );\n return $isTextNode(node) && node.getFormat() === this.__format && node.getTextContent() === this.__candidate.source;\n }\n decorate() {\n return <ChatResourceLink candidate={this.__candidate} label={this.__label} format={this.__format} />;\n }\n}\n","import type { TextNode } from \"lexical\";\nimport { StreamingTextNode } from \"../../rich-text/shared/nodes/streaming-text-node\";\nimport { ChatCodeLinkNode } from \"./chat-code-link-node\";\nimport { type ChatLinkCandidate, type ChatLinkHandler, parseChatLink } from \"./chat-link\";\nimport { ChatResourceLinkNode } from \"./chat-resource-link-node\";\n\nexport const resolveChatCodeLink = (node: TextNode, handler: ChatLinkHandler, origin: string, bubble = false) => {\n if (node instanceof ChatCodeLinkNode || !node.hasFormat(\"code\")) return;\n const parent = node.getParent();\n if (!parent || parent.getType() === \"code\" || parent.getType().includes(\"link\")) return;\n const candidate: ChatLinkCandidate = { source: node.getTextContent(), origin: \"inline-code\" };\n const parsed = parseChatLink(candidate, origin);\n if (!parsed || parsed.kind === \"external\") return;\n if (bubble) {\n node.replace(new ChatResourceLinkNode(candidate, candidate.source, node.getFormat()));\n return;\n }\n const replacement = new ChatCodeLinkNode(\n candidate.source,\n handler.resolveHref(candidate),\n handler.describe?.(candidate),\n undefined,\n node instanceof StreamingTextNode,\n );\n replacement.setFormat(node.getFormat());\n node.replace(replacement);\n};\n","import { $isTextNode, type LexicalNode } from \"lexical\";\nimport { parseChatLink } from \"./chat-link\";\n\nconst delimiters: Record<string, string> = { \"(\": \")\", \"[\": \"]\", \"{\": \"}\" };\n\nconst pathToken = (value: string) => {\n let start = 0;\n let end = value.replace(/[.,;:!?]+$/, \"\").length;\n const pending: { close: string; index: number }[] = [];\n const pairs = new Map<number, number>();\n for (let index = 0; index < end; index++) {\n const character = value[index]!;\n const close = delimiters[character];\n if (close) pending.push({ close, index });\n else if (\")]}\".includes(character)) {\n const opening = pending.pop();\n if (opening?.close === character) pairs.set(opening.index, index);\n else if (!opening && /^[)\\]}]+$/.test(value.slice(index, end))) {\n end = index;\n break;\n } else return undefined;\n }\n }\n if (pending.length) return undefined;\n // Prose may wrap a path in brackets; route groups and dynamic segments belong\n // to the path. Only unwrap a pair when it encloses the complete token.\n while (start < end && pairs.get(start) === end - 1) {\n start += 1;\n end -= 1;\n }\n return { source: value.slice(start, end), offset: start };\n};\n\nexport const findChatTextPaths = (text: string) => {\n const paths: { source: string; start: number; end: number }[] = [];\n for (const token of text.matchAll(/[^\\s`\"'<>]+/g)) {\n const path = pathToken(token[0]);\n if (!path) continue;\n const { source, offset } = path;\n const parsed = parseChatLink({ source, origin: \"text\" });\n if (parsed?.kind !== \"file\") continue;\n const explicit = /^(?:\\.\\.?[/\\\\]|\\/|[a-z]:[/\\\\]|file:|\\$PROJECT\\/)/i.test(source);\n const fileName = /(?:^|[/\\\\])[^/\\\\]+\\.[a-z][\\w-]*$/i.test(parsed.path);\n if (!explicit && (!fileName || /^(?:@|v\\d|e\\.g$|i\\.e$)/i.test(source))) continue;\n const start = token.index + offset;\n paths.push({ source, start, end: start + source.length });\n }\n return paths;\n};\n\n// Split complete paths before streaming reconciliation, so a path assembled across\n// arrival chunks can become one bubble and keep its identity on later updates.\nexport const splitChatTextPaths = (node: LexicalNode) => {\n if (!$isTextNode(node) || node.hasFormat(\"code\")) return [node];\n const parent = node.getParent();\n if (!parent || parent.getType() === \"code\" || parent.getType().includes(\"link\")) return [node];\n const length = node.getTextContentSize();\n const offsets = [...new Set(findChatTextPaths(node.getTextContent()).flatMap(({ start, end }) => [start, end]))]\n .filter((offset) => offset > 0 && offset < length)\n .sort((left, right) => left - right);\n return offsets.length ? node.splitText(...offsets) : [node];\n};\n","import { $isTextNode, type TextNode } from \"lexical\";\nimport { ChatResourceLinkNode } from \"./chat-resource-link-node\";\nimport { findChatTextPaths, splitChatTextPaths } from \"./chat-text-paths\";\n\nexport const resolveChatTextLinks = (node: TextNode) => {\n if (node.hasFormat(\"code\")) return;\n const parent = node.getParent();\n if (!parent || parent.getType() === \"code\" || parent.getType().includes(\"link\")) return;\n for (const part of splitChatTextPaths(node)) {\n const source = part.getTextContent();\n const path = findChatTextPaths(source)[0];\n if ($isTextNode(part) && path?.start === 0 && path.end === source.length) {\n part.replace(new ChatResourceLinkNode({ source, origin: \"text\" }, source, part.getFormat()));\n }\n }\n};\n","import { ChatResourceLinkNode, type SerializedChatResourceLink } from \"./chat-resource-link-node\";\nimport { ChatWebLink } from \"./chat-web-link\";\n\n// A read-only web link bubble. It copies, pastes and streams like the other chat bubbles.\nexport class ChatWebLinkNode extends ChatResourceLinkNode {\n static getType() {\n return \"chat-web-link\";\n }\n static clone(node: ChatWebLinkNode) {\n return new ChatWebLinkNode(node.__candidate, node.__label, node.__format, node.__key);\n }\n static importJSON(value: SerializedChatResourceLink) {\n return new ChatWebLinkNode(value.candidate, value.label, value.format);\n }\n decorate() {\n return <ChatWebLink source={this.__candidate.source} label={this.__label} />;\n }\n}\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { $isTextNode, TextNode } from \"lexical\";\nimport { useEffect } from \"react\";\nimport { MarkdownLinkNode } from \"@/components/rich-text/shared/nodes/MarkdownLinkNode\";\nimport { StreamingTextNode } from \"@/components/rich-text/shared/nodes/streaming-text-node\";\nimport { resolveChatCodeLink } from \"./chat-code-link-transform\";\nimport { type ChatLinkCandidate, type ChatLinkHandler, isChatWebLink, parseChatLink } from \"./chat-link\";\nimport { useChatLinkHandler } from \"./chat-link-context\";\nimport { ChatResourceLinkNode } from \"./chat-resource-link-node\";\nimport { resolveChatTextLinks } from \"./chat-text-link-transform\";\nimport { ChatWebLinkNode } from \"./chat-web-link-node\";\n\nconst isModifiedClick = (event: MouseEvent | KeyboardEvent) =>\n event instanceof MouseEvent &&\n (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey);\n\nconst activateChatLink = (handler: ChatLinkHandler, event: MouseEvent | KeyboardEvent) => {\n if (event instanceof KeyboardEvent && event.key !== \"Enter\") return;\n const target = event.target;\n if (!(target instanceof Element)) return;\n const anchor = target.closest(\"a\");\n if (!anchor) return;\n if (!anchor.dataset.chatSource) return;\n const candidate: ChatLinkCandidate = {\n source: anchor.dataset.chatSource,\n origin: anchor.dataset.chatOrigin === \"markdown\" ? \"markdown\" : \"inline-code\",\n };\n const parsed = parseChatLink(candidate, window.location.origin);\n if (!parsed) return;\n const href = handler.resolveHref(candidate);\n if (parsed.kind === \"external\" && !href) return;\n if (href && isModifiedClick(event)) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n void handler.open(candidate);\n};\n\nexport const ChatLinkPlugin = () => {\n const [editor] = useLexicalComposerContext();\n const handler = useChatLinkHandler();\n useEffect(() => {\n if (!handler) return;\n const removeLink = editor.registerNodeTransform(MarkdownLinkNode, (node) => {\n const candidate: ChatLinkCandidate = { source: node.getSource(), origin: \"markdown\" };\n // Links around images, such as badges, keep their image.\n if (!editor.isEditable() && node.getChildren().every($isTextNode) && isChatWebLink(handler, candidate)) {\n node.replace(new ChatWebLinkNode(candidate, node.getTextContent()));\n return;\n }\n const parsed = parseChatLink(candidate, window.location.origin);\n if (parsed && (parsed.kind !== \"external\" || handler.resolveHref(candidate))) {\n if (!editor.isEditable()) {\n node.replace(new ChatResourceLinkNode(candidate, node.getTextContent()));\n return;\n }\n node.setResolvedURL(handler.resolveHref(candidate) ?? \"#\");\n }\n });\n const removeLinkPresentation = editor.registerMutationListener(MarkdownLinkNode, (mutations) => {\n for (const [key, mutation] of mutations) {\n if (mutation === \"destroyed\") continue;\n const anchor = editor.getElementByKey(key);\n const source = anchor?.dataset.chatSource;\n if (!anchor || !source) continue;\n const candidate: ChatLinkCandidate = { source, origin: \"markdown\" };\n const parsed = parseChatLink(candidate, window.location.origin);\n if (parsed && (parsed.kind !== \"external\" || handler.resolveHref(candidate)))\n anchor.title = handler.describe?.(candidate) ?? `Open file or document: ${source}`;\n }\n });\n const transformCode = (node: TextNode) => {\n resolveChatCodeLink(node, handler, window.location.origin, !editor.isEditable());\n if (!editor.isEditable() && node.isAttached()) resolveChatTextLinks(node);\n };\n const removeCode = editor.registerNodeTransform(TextNode, transformCode);\n const removeStreamingCode = editor.registerNodeTransform(StreamingTextNode, transformCode);\n const activate = (event: MouseEvent | KeyboardEvent) => activateChatLink(handler, event);\n const removeRoot = editor.registerRootListener((root, previous) => {\n // Root listeners are replaced with the editor's root, including streamed content.\n previous?.removeEventListener(\"click\", activate, true);\n previous?.removeEventListener(\"keydown\", activate, true);\n root?.addEventListener(\"click\", activate, true);\n root?.addEventListener(\"keydown\", activate, true);\n if (root) root.dataset.chatLinks = \"true\";\n });\n return () => {\n removeLink();\n removeCode();\n removeStreamingCode();\n removeLinkPresentation();\n removeRoot();\n };\n }, [editor, handler]);\n return null;\n};\n","import { $getRoot, $isElementNode, $isTextNode, type ElementNode, type LexicalNode, type TextNode } from \"lexical\";\nimport { ChatCodeLinkNode } from \"../../chat-ui/links/chat-code-link-node\";\nimport { ChatResourceLinkNode } from \"../../chat-ui/links/chat-resource-link-node\";\nimport { splitChatTextPaths } from \"../../chat-ui/links/chat-text-paths\";\nimport { createMarkdownLexicalNodes } from \"./markdown-import\";\nimport type { MarkdownUrlResolver } from \"./markdown-url\";\nimport { $createStreamingTextNode } from \"./nodes/streaming-text-node\";\n\nconst sameAttributes = (left: LexicalNode, right: LexicalNode) => {\n const attributes = (node: LexicalNode) => {\n const { children: _children, ...rest } = node.exportJSON() as ReturnType<LexicalNode[\"exportJSON\"]> & {\n children?: unknown;\n };\n if (node instanceof ChatCodeLinkNode) {\n return JSON.stringify({ ...rest, href: node.__href, description: node.__description });\n }\n return JSON.stringify(rest);\n };\n return attributes(left) === attributes(right);\n};\n\nconst sameTextFormat = (left: TextNode, right: TextNode) =>\n left.getFormat() === right.getFormat() && left.getStyle() === right.getStyle();\nconst isChunkText = (node: LexicalNode | undefined): node is TextNode =>\n Boolean(node && $isTextNode(node) && [\"text\", \"streaming-text\"].includes(node.getType()));\nconst arrivingText = (next: TextNode, text: string) =>\n $createStreamingTextNode(text).setFormat(next.getFormat()).setStyle(next.getStyle());\n\nconst markNewText = (node: LexicalNode, animate: boolean) => {\n if (!animate) return node;\n if (isChunkText(node)) return arrivingText(node, node.getTextContent());\n const pending = [node];\n while (pending.length) {\n const current = pending.pop();\n if (!$isElementNode(current)) continue;\n for (const child of current.getChildren()) {\n if (isChunkText(child)) child.replace(arrivingText(child, child.getTextContent()));\n else pending.push(child);\n }\n }\n return node;\n};\n\nconst reconcileText = (next: TextNode, previous: LexicalNode[], start: number, animate: boolean) => {\n const nodes: LexicalNode[] = [];\n let cursor = start;\n let old = previous[cursor];\n let remaining = next.getTextContent();\n while (\n $isTextNode(old) &&\n sameTextFormat(old, next) &&\n old.getTextContent().length > 0 &&\n remaining.startsWith(old.getTextContent()) &&\n (remaining.length === old.getTextContentSize() || isChunkText(old))\n ) {\n remaining = remaining.slice(old.getTextContentSize());\n nodes.push(old);\n old = previous[++cursor];\n }\n if (remaining && isChunkText(old)) {\n // Reinterpreted text is already visible; do not fade it a second time.\n old.setTextContent(remaining).setFormat(next.getFormat()).setStyle(next.getStyle());\n nodes.push(old);\n cursor += 1;\n } else if (remaining) {\n nodes.push(animate ? arrivingText(next, remaining) : next.setTextContent(remaining).toggleUnmergeable());\n }\n return { nodes, cursor };\n};\n\n// Markdown may reinterpret unfinished syntax. Reconcile that affected structure,\n// while completed blocks and earlier chunks keep their keys and DOM.\nconst reconcileChildren = (parent: ElementNode, nextNodes: LexicalNode[], animate: boolean) => {\n const previous = parent.getChildren();\n const result: LexicalNode[] = [];\n let cursor = 0;\n for (const next of nextNodes.flatMap(splitChatTextPaths)) {\n const old = previous[cursor];\n if (old instanceof ChatResourceLinkNode && old.matchesSource(next)) {\n result.push(old);\n cursor += 1;\n continue;\n }\n if (isChunkText(next)) {\n const text = reconcileText(next, previous, cursor, animate);\n result.push(...text.nodes);\n cursor = text.cursor;\n continue;\n }\n if (old && sameAttributes(old, next)) {\n if ($isElementNode(old) && $isElementNode(next)) reconcileChildren(old, next.getChildren(), animate);\n result.push(old);\n cursor += 1;\n } else {\n result.push(markNewText(next, animate && !old));\n if (old) cursor += 1;\n }\n }\n if (result.length !== previous.length || result.some((node, index) => node.getKey() !== previous[index]?.getKey())) {\n parent.splice(0, parent.getChildrenSize(), result);\n }\n};\n\nexport const importStreamingMarkdownToLexical = (markdown: string, resolver?: MarkdownUrlResolver, animate = true) => {\n reconcileChildren($getRoot(), createMarkdownLexicalNodes(markdown, resolver), animate);\n};\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { $addUpdateTag } from \"lexical\";\nimport { type RefObject, useEffect } from \"react\";\nimport { createMarkdownSourceDocument, type MarkdownSourceDocument } from \"../shared/markdown-source-document\";\nimport type { MarkdownUrlResolver } from \"../shared/markdown-url\";\nimport { importStreamingMarkdownToLexical } from \"../shared/streaming-markdown\";\n\nexport const SOURCE_IMPORT_TAG = \"markdown-source-import\";\n\nexport interface LoadedRichMessage {\n body: string;\n resolver?: MarkdownUrlResolver;\n}\n\ninterface RichMessageStatePluginProps {\n body: string;\n resolver?: MarkdownUrlResolver;\n isEditable: boolean;\n streaming: boolean;\n loadedRef: RefObject<LoadedRichMessage>;\n sourceDocumentRef: RefObject<MarkdownSourceDocument | null>;\n}\n\nexport function RichMessageStatePlugin(props: RichMessageStatePluginProps) {\n const { body, resolver, isEditable, streaming, loadedRef, sourceDocumentRef } = props;\n const [editor] = useLexicalComposerContext();\n useEffect(() => {\n const previous = loadedRef.current;\n const sourceUnchanged = previous.body === body && previous.resolver === resolver;\n if (sourceUnchanged && (!isEditable || sourceDocumentRef.current)) return;\n editor.update(\n () => {\n $addUpdateTag(SOURCE_IMPORT_TAG);\n if (isEditable) {\n const document = createMarkdownSourceDocument(body, resolver);\n sourceDocumentRef.current = document;\n document.importToLexical();\n } else {\n sourceDocumentRef.current = null;\n importStreamingMarkdownToLexical(body, resolver, streaming && body.startsWith(previous.body));\n }\n loadedRef.current = { body, resolver };\n },\n { tag: \"history-merge\" },\n );\n }, [body, resolver, isEditable, streaming, editor, loadedRef, sourceDocumentRef]);\n return null;\n}\n","import \"../theme/rich-text-theme.css\";\n\nimport { Flex, useRecipe } from \"@chakra-ui/react\";\nimport { ClickableLinkPlugin } from \"@lexical/react/LexicalClickableLinkPlugin\";\nimport { LexicalComposer } from \"@lexical/react/LexicalComposer\";\nimport { LexicalErrorBoundary } from \"@lexical/react/LexicalErrorBoundary\";\nimport { HorizontalRulePlugin } from \"@lexical/react/LexicalHorizontalRulePlugin\";\nimport { LinkPlugin } from \"@lexical/react/LexicalLinkPlugin\";\nimport { ListPlugin } from \"@lexical/react/LexicalListPlugin\";\nimport { OnChangePlugin } from \"@lexical/react/LexicalOnChangePlugin\";\nimport { RichTextPlugin } from \"@lexical/react/LexicalRichTextPlugin\";\nimport { TabIndentationPlugin } from \"@lexical/react/LexicalTabIndentationPlugin\";\nimport { $addUpdateTag, $getRoot } from \"lexical\";\nimport { useRef } from \"react\";\nimport { ChatCodeLinkNode } from \"@/components/chat-ui/links/chat-code-link-node\";\nimport type { ChatLinkProps } from \"@/components/chat-ui/links/chat-link\";\nimport {\n ChatLinkProvider,\n ChatLinkStreamingContext,\n useChatLinkHandler,\n} from \"@/components/chat-ui/links/chat-link-context\";\nimport { ChatLinkPlugin } from \"@/components/chat-ui/links/chat-link-plugin\";\nimport { ChatResourceLinkNode } from \"@/components/chat-ui/links/chat-resource-link-node\";\nimport { ChatWebLinkNode } from \"@/components/chat-ui/links/chat-web-link-node\";\nimport { ContentEditable } from \"../shared/components/content-editable\";\nimport { editorNodes, editorTheme } from \"../shared/editor-config\";\nimport { importMarkdownToLexical } from \"../shared/markdown-import\";\nimport { createMarkdownSourceDocument } from \"../shared/markdown-source-document\";\nimport { MarkdownTableSettingsContext } from \"../shared/markdown-table-settings-context\";\nimport type { MarkdownUrlResolver } from \"../shared/markdown-url\";\nimport { MarkdownUrlProvider } from \"../shared/markdown-url-context\";\nimport { ImportCodeBlocksPlugin } from \"../shared/plugins/CodePlugin/CodeBlockPlugin\";\nimport { CodeHighlightingPlugin } from \"../shared/plugins/CodePlugin/CodeHighlightingPlugin\";\nimport { EquationPlugin } from \"../shared/plugins/EquationPlugin/EquationPlugin\";\nimport { ListMarkerWidthPlugin } from \"../shared/plugins/list-marker-width-plugin\";\nimport ToggleEditablePlugin from \"../shared/plugins/ToggleEditablePlugin\";\nimport { TreeViewPlugin } from \"../shared/plugins/TreeViewPlugin/TreeViewPlugin\";\nimport { splitFrontmatter } from \"../utils/markdown\";\nimport { RichMessageStatePlugin, SOURCE_IMPORT_TAG } from \"./rich-message-state-plugin\";\n\nexport interface RichMessageProps extends ChatLinkProps {\n debug?: boolean;\n defaultState: string;\n fullWidth?: boolean;\n isEditable?: boolean;\n streaming?: boolean;\n resolveMarkdownUrl?: MarkdownUrlResolver;\n onChange?: (value: string) => void;\n}\n\nconst CHAT_TABLE_SETTINGS = { rowNumbers: false, wrapRows: true };\n\nexport function RichMessage(props: RichMessageProps) {\n const inherited = useChatLinkHandler();\n return (\n <ChatLinkProvider handler={props.linkHandler ?? inherited}>\n <ChatLinkStreamingContext value={props.streaming ?? false}>\n <RichMessageContent {...props} />\n </ChatLinkStreamingContext>\n </ChatLinkProvider>\n );\n}\n\nfunction RichMessageContent(props: RichMessageProps) {\n const {\n debug = false,\n defaultState = \"\",\n fullWidth = false,\n isEditable = false,\n streaming = false,\n resolveMarkdownUrl,\n onChange,\n } = props;\n const { frontmatter, body } = splitFrontmatter(defaultState);\n const shouldTrackChanges = isEditable && Boolean(onChange);\n const motion = useRecipe({ key: \"streamingText\" });\n const loadedRef = useRef({ body, resolver: resolveMarkdownUrl });\n const sourceDocumentRef = useRef<ReturnType<typeof createMarkdownSourceDocument> | null>(null);\n\n const initialConfig = {\n namespace: \"RICH_MESSAGE\",\n nodes: [...editorNodes, ChatCodeLinkNode, ChatResourceLinkNode, ChatWebLinkNode],\n editorState: () => {\n $addUpdateTag(SOURCE_IMPORT_TAG);\n if (isEditable) {\n const document = createMarkdownSourceDocument(body, resolveMarkdownUrl);\n sourceDocumentRef.current = document;\n document.importToLexical();\n } else importMarkdownToLexical(body, resolveMarkdownUrl);\n },\n onError: (error: Error) => console.error(error),\n editable: isEditable,\n theme: editorTheme,\n };\n\n return (\n <Flex\n className=\"rich-text\"\n data-rich-message=\"true\"\n css={motion()}\n justifyContent=\"space-between\"\n width=\"100%\"\n maxWidth=\"100%\"\n height=\"100%\"\n position=\"relative\"\n direction=\"column\"\n overflow=\"hidden\"\n >\n <MarkdownUrlProvider resolver={resolveMarkdownUrl}>\n <MarkdownTableSettingsContext value={CHAT_TABLE_SETTINGS}>\n <LexicalComposer initialConfig={initialConfig}>\n <RichMessageStatePlugin\n body={body}\n resolver={resolveMarkdownUrl}\n isEditable={isEditable}\n streaming={streaming}\n loadedRef={loadedRef}\n sourceDocumentRef={sourceDocumentRef}\n />\n {isEditable ? <LinkPlugin /> : null}\n <ChatLinkPlugin />\n <ClickableLinkPlugin newTab />\n {isEditable ? <ListPlugin /> : null}\n <ListMarkerWidthPlugin />\n {isEditable ? <TabIndentationPlugin maxIndent={7} /> : null}\n {isEditable ? <HorizontalRulePlugin /> : null}\n {!streaming ? <CodeHighlightingPlugin /> : null}\n {isEditable ? <ImportCodeBlocksPlugin /> : null}\n <EquationPlugin />\n <RichTextPlugin\n contentEditable={<ContentEditable fullWidth={fullWidth} isRichMessage />}\n ErrorBoundary={LexicalErrorBoundary}\n />\n {shouldTrackChanges ? (\n <OnChangePlugin\n ignoreSelectionChange\n ignoreHistoryMergeTagChange={false}\n onChange={(editorState, _editor, tags) => {\n if (tags.has(SOURCE_IMPORT_TAG)) return;\n editorState.read(() => {\n const root = $getRoot();\n const markdownBody = sourceDocumentRef.current?.exportFromLexical(root) ?? \"\";\n onChange?.(frontmatter + markdownBody);\n });\n }}\n />\n ) : null}\n <ToggleEditablePlugin isEditable={isEditable} />\n {debug && <TreeViewPlugin />}\n </LexicalComposer>\n </MarkdownTableSettingsContext>\n </MarkdownUrlProvider>\n </Flex>\n );\n}\n","import type { StackProps } from \"@chakra-ui/react\";\nimport { Button, HStack, Icon, Spinner, Stack, Text } from \"@chakra-ui/react\";\nimport {\n Activity,\n Bell,\n CircleAlert,\n Component,\n ExternalLink,\n GitBranch,\n Info,\n MessageCircle,\n ScanSearch,\n Sparkles,\n} from \"lucide-react\";\nimport type { ComponentType, ReactNode } from \"react\";\n\nimport {\n type ActivityActor,\n ActivityComment,\n ActivityEvent,\n ActivityFeed,\n ActivityTimeline,\n} from \"@/components/activity\";\nimport { AlertMessage } from \"@/components/primitives/alert\";\nimport { EmptyState } from \"@/components/primitives/empty-state\";\nimport { RichMessage } from \"../rich-message/rich-message\";\n\nexport type ResourceActivityFeedSize = \"comfortable\" | \"compact\";\n\nexport type ResourceActivityIconName =\n | \"activity\"\n | \"bell\"\n | \"circle-alert\"\n | \"component\"\n | \"external-link\"\n | \"git-branch\"\n | \"info\"\n | \"message-circle\"\n | \"scan-search\"\n | \"sparkles\";\n\nexport interface ResourceActivityRelatedResource {\n id: string;\n type: string;\n label: string;\n}\n\nexport interface ResourceActivityFeedAction {\n id: string;\n label: string;\n icon?: ResourceActivityIconName;\n}\n\nexport interface ResourceActivityFeedAttention {\n statusLabel?: string;\n icon?: ResourceActivityIconName;\n actions?: readonly ResourceActivityFeedAction[];\n}\n\ninterface ResourceActivityFeedItemBase {\n id: string;\n createdAt: string;\n timestampLabel?: string;\n actor?: ActivityActor;\n icon?: ResourceActivityIconName;\n relatedResources?: readonly ResourceActivityRelatedResource[];\n}\n\nexport interface ResourceActivityFeedEventItem extends ResourceActivityFeedItemBase {\n kind: \"event\";\n summary: string;\n}\n\nexport interface ResourceActivityFeedMessageItem extends ResourceActivityFeedItemBase {\n kind: \"message\";\n markdown: string;\n attention?: ResourceActivityFeedAttention;\n}\n\nexport type ResourceActivityFeedItem = ResourceActivityFeedEventItem | ResourceActivityFeedMessageItem;\n\nexport interface ResourceActivityFeedProps extends Omit<StackProps, \"children\"> {\n items: readonly ResourceActivityFeedItem[];\n size?: ResourceActivityFeedSize;\n isLoading?: boolean;\n error?: string | null;\n hasMore?: boolean;\n isLoadingMore?: boolean;\n emptyTitle?: string;\n emptyDescription?: string;\n errorTitle?: string;\n loadMoreLabel?: string;\n loadingLabel?: string;\n fallbackActorName?: string;\n formatTimestamp?: (createdAt: string, item: ResourceActivityFeedItem) => ReactNode;\n onActionSelect?: (action: ResourceActivityFeedAction, item: ResourceActivityFeedMessageItem) => void;\n onLoadMore?: () => void;\n onRelatedResourceSelect?: (resource: ResourceActivityRelatedResource, item: ResourceActivityFeedItem) => void;\n}\n\ninterface ItemActionsProps {\n item: ResourceActivityFeedItem;\n size: ResourceActivityFeedSize;\n onActionSelect?: ResourceActivityFeedProps[\"onActionSelect\"];\n onRelatedResourceSelect?: ResourceActivityFeedProps[\"onRelatedResourceSelect\"];\n}\n\ninterface ResourceActivityItemProps extends ItemActionsProps {\n fallbackActorName: string;\n formatTimestamp: NonNullable<ResourceActivityFeedProps[\"formatTimestamp\"]>;\n}\n\nconst iconComponents: Record<ResourceActivityIconName, ComponentType> = {\n activity: Activity,\n bell: Bell,\n \"circle-alert\": CircleAlert,\n component: Component,\n \"external-link\": ExternalLink,\n \"git-branch\": GitBranch,\n info: Info,\n \"message-circle\": MessageCircle,\n \"scan-search\": ScanSearch,\n sparkles: Sparkles,\n};\n\nconst ActivityIcon = (props: { name: ResourceActivityIconName }) => {\n const IconComponent = iconComponents[props.name];\n return <Icon as={IconComponent} boxSize=\"13px\" />;\n};\n\nconst ItemActions = (props: ItemActionsProps) => {\n const { item, size, onActionSelect, onRelatedResourceSelect } = props;\n const attentionActions = item.kind === \"message\" ? item.attention?.actions : undefined;\n if (!item.relatedResources?.length && !attentionActions?.length) return null;\n\n return (\n <HStack gap=\"2xs\" flexWrap=\"wrap\">\n {attentionActions?.map((action) => (\n <Button\n key={action.id}\n type=\"button\"\n size={size === \"compact\" ? \"2xs\" : \"xs\"}\n variant=\"outline\"\n disabled={!onActionSelect}\n onClick={() => onActionSelect?.(action, item as ResourceActivityFeedMessageItem)}\n >\n {action.icon ? <ActivityIcon name={action.icon} /> : null}\n {action.label}\n </Button>\n ))}\n {item.relatedResources?.map((resource) => (\n <Button\n key={`${resource.type}:${resource.id}`}\n type=\"button\"\n size={size === \"compact\" ? \"2xs\" : \"xs\"}\n variant=\"ghost\"\n disabled={!onRelatedResourceSelect}\n onClick={() => onRelatedResourceSelect?.(resource, item)}\n >\n {resource.label}\n </Button>\n ))}\n </HStack>\n );\n};\n\nconst AttentionStatus = (props: { attention: ResourceActivityFeedAttention }) => {\n const { attention } = props;\n if (!attention.statusLabel) return null;\n\n return (\n <HStack gap=\"2xs\" color=\"fg.warning\">\n <ActivityIcon name={attention.icon ?? \"bell\"} />\n <Text textStyle=\"label/XS/medium\">{attention.statusLabel}</Text>\n </HStack>\n );\n};\n\nconst ResourceActivityItem = (props: ResourceActivityItemProps) => {\n const { item, size, fallbackActorName, formatTimestamp, onActionSelect, onRelatedResourceSelect } = props;\n const actor = item.actor ?? { name: fallbackActorName };\n const timestamp = (\n <time dateTime={item.createdAt}>{item.timestampLabel ?? formatTimestamp(item.createdAt, item)}</time>\n );\n\n if (item.kind === \"event\") {\n return (\n <ActivityTimeline>\n <ActivityEvent\n actor={actor}\n icon={item.icon ? <ActivityIcon name={item.icon} /> : undefined}\n timestamp={timestamp}\n paddingX={size === \"compact\" ? \"sm\" : \"md\"}\n >\n <Text as=\"span\">{item.summary}</Text>\n <ItemActions item={item} size={size} onRelatedResourceSelect={onRelatedResourceSelect} />\n </ActivityEvent>\n </ActivityTimeline>\n );\n }\n\n const attentionIcon = item.attention?.icon ?? \"bell\";\n\n return (\n <ActivityComment\n actor={actor}\n icon={item.attention ? <ActivityIcon name={attentionIcon} /> : undefined}\n iconColor={item.attention ? \"fg.warning\" : undefined}\n iconBackground={item.attention ? \"bg.warning\" : undefined}\n timestamp={timestamp}\n actions={item.attention ? <AttentionStatus attention={item.attention} /> : undefined}\n tone={item.attention ? \"attention\" : \"default\"}\n size={size}\n >\n <Stack gap={size === \"compact\" ? \"xs\" : \"sm\"}>\n <RichMessage defaultState={item.markdown} fullWidth />\n <ItemActions\n item={item}\n size={size}\n onActionSelect={onActionSelect}\n onRelatedResourceSelect={onRelatedResourceSelect}\n />\n </Stack>\n </ActivityComment>\n );\n};\n\nconst defaultFormatTimestamp = (createdAt: string) => createdAt;\n\nexport const ResourceActivityFeed = (props: ResourceActivityFeedProps) => {\n const {\n items,\n size = \"comfortable\",\n isLoading = false,\n error,\n hasMore = false,\n isLoadingMore = false,\n emptyTitle = \"No activity yet\",\n emptyDescription = \"Events and messages will appear here.\",\n errorTitle = \"Activity unavailable\",\n loadMoreLabel = \"Load more\",\n loadingLabel = \"Loading activity\",\n fallbackActorName = \"System\",\n formatTimestamp = defaultFormatTimestamp,\n onActionSelect,\n onLoadMore,\n onRelatedResourceSelect,\n ...rootProps\n } = props;\n\n if (error) {\n return (\n <AlertMessage status=\"error\" colorPalette=\"red\" title={errorTitle} size=\"sm\" {...rootProps}>\n {error}\n </AlertMessage>\n );\n }\n\n if (isLoading && items.length === 0) {\n return (\n <HStack role=\"status\" aria-live=\"polite\" gap=\"xs\" color=\"fg.muted\" {...rootProps}>\n <Spinner size=\"sm\" />\n <Text textStyle=\"label/S/regular\">{loadingLabel}</Text>\n </HStack>\n );\n }\n\n if (items.length === 0) {\n return <EmptyState title={emptyTitle} description={emptyDescription} {...rootProps} />;\n }\n\n return (\n <ActivityFeed gap={size === \"compact\" ? \"sm\" : \"md\"} {...rootProps}>\n {items.map((item) => (\n <ResourceActivityItem\n key={item.id}\n item={item}\n size={size}\n fallbackActorName={fallbackActorName}\n formatTimestamp={formatTimestamp}\n onActionSelect={onActionSelect}\n onRelatedResourceSelect={onRelatedResourceSelect}\n />\n ))}\n {hasMore ? (\n <Button\n type=\"button\"\n width=\"full\"\n size={size === \"compact\" ? \"xs\" : \"sm\"}\n variant=\"ghost\"\n loading={isLoadingMore}\n onClick={onLoadMore}\n >\n {loadMoreLabel}\n </Button>\n ) : null}\n </ActivityFeed>\n );\n};\n","import { Box, Table, Text, Textarea } from \"@chakra-ui/react\";\nimport { ScrollArea } from \"@/components/primitives/scroll-area\";\nimport type { CodeEditorProps, DataTableProps } from \"../types/rich-text-components\";\n\nconst scaledSmallFontSize = \"calc(var(--chakra-font-sizes-sm) * var(--rich-text-font-scale))\";\n\nconst formatValue = (value: unknown) => {\n if (value === null || value === undefined) return \"-\";\n if (typeof value === \"string\") return value.length ? value : \"-\";\n if (typeof value === \"number\" || typeof value === \"boolean\") return String(value).toUpperCase();\n if (value instanceof Date) return value.toISOString();\n return JSON.stringify(value);\n};\n\nexport const DefaultRichTextCodeEditor = (props: CodeEditorProps) => {\n const { defaultCode = \"\", isEditable = false, showLineNumbers = false, disableScroll = false } = props;\n\n if (isEditable) {\n return (\n <Textarea\n defaultValue={defaultCode}\n fontFamily=\"mono\"\n fontSize={scaledSmallFontSize}\n resize=\"vertical\"\n minHeight=\"100%\"\n />\n );\n }\n\n const lines = showLineNumbers ? defaultCode.split(\"\\n\") : [defaultCode];\n\n const codeBlock = (\n <Box\n as=\"pre\"\n margin={0}\n padding=\"sm\"\n fontFamily=\"mono\"\n fontSize={scaledSmallFontSize}\n lineHeight=\"1.5\"\n background=\"bg.code\"\n borderRadius=\"md\"\n width=\"100%\"\n overflowY={disableScroll ? \"hidden\" : undefined}\n >\n {showLineNumbers ? (\n <Box as=\"code\" display=\"grid\" gridTemplateColumns=\"auto 1fr\" columnGap=\"sm\">\n {lines.map((line, index) => (\n <Box as=\"span\" key={`${index}-${line}`} display=\"contents\">\n <Text as=\"span\" color=\"fg.muted\" textAlign=\"right\" fontSize=\"inherit\">\n {index + 1}\n </Text>\n <Text as=\"span\" fontSize=\"inherit\">\n {line.length ? line : \" \"}\n </Text>\n </Box>\n ))}\n </Box>\n ) : (\n <Box as=\"code\">{defaultCode}</Box>\n )}\n </Box>\n );\n\n if (disableScroll) return codeBlock;\n\n return (\n <ScrollArea width=\"100%\" background=\"bg.code\" borderRadius=\"md\" showHorizontalScrollbar>\n {codeBlock}\n </ScrollArea>\n );\n};\n\nexport const DefaultRichTextDataTable = (props: DataTableProps) => {\n const { data, fullWidth = false, noBorder = false, hiddenColumns = [] } = props;\n\n if (!data.length) {\n return (\n <Box padding=\"sm\" borderWidth={noBorder ? \"0\" : \"1px\"} borderColor=\"border.subtle\">\n <Text textStyle=\"label/S/regular\" fontSize={scaledSmallFontSize} color=\"fg.muted\">\n No data\n </Text>\n </Box>\n );\n }\n\n const hiddenSet = new Set(hiddenColumns);\n const columns = Object.keys(data[0] ?? {}).filter((key) => !hiddenSet.has(key));\n\n return (\n <ScrollArea maxWidth=\"100%\" showHorizontalScrollbar showVerticalScrollbar={false}>\n <Table.Root\n size=\"sm\"\n width={fullWidth ? \"100%\" : \"fit-content\"}\n borderWidth={noBorder ? \"0\" : \"1px\"}\n borderColor=\"border.subtle\"\n >\n <Table.Header>\n <Table.Row background=\"bg.muted\">\n {columns.map((column) => (\n <Table.ColumnHeader key={column} textTransform=\"none\" paddingX=\"xs\" paddingY=\"2xs\">\n <Text textStyle=\"label/S/medium\" fontSize={scaledSmallFontSize}>\n {column}\n </Text>\n </Table.ColumnHeader>\n ))}\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {data.map((row, rowIndex) => (\n <Table.Row key={`${rowIndex}-${columns.join(\"-\")}`}>\n {columns.map((column) => (\n <Table.Cell key={`${rowIndex}-${column}`} paddingX=\"xs\" paddingY=\"2xs\">\n <Text textStyle=\"paragraph/S/regular\" fontSize={scaledSmallFontSize}>\n {formatValue(row[column])}\n </Text>\n </Table.Cell>\n ))}\n </Table.Row>\n ))}\n </Table.Body>\n </Table.Root>\n </ScrollArea>\n );\n};\n","import type { ResourceType } from \"../types\";\n\nexport function inferResourceTypeFromMediaType(mediaType: string) {\n const normalized = mediaType.toLowerCase().trim();\n if (!normalized) return \"text\";\n\n if (normalized.startsWith(\"image/\")) return \"image\";\n if (normalized === \"application/pdf\") return \"pdf\";\n if (normalized === \"text/markdown\") return \"markdown\";\n if (normalized === \"text/csv\" || normalized === \"text/tab-separated-values\") return \"table\";\n if (normalized === \"application/json\") return \"json\";\n if (normalized.startsWith(\"text/\")) return \"text\";\n if (normalized.startsWith(\"application/\")) return \"text\";\n\n const fallback: ResourceType = \"text\";\n return fallback;\n}\n","const extensionToMediaType: Record<string, string> = {\n csv: \"text/csv\",\n tsv: \"text/tab-separated-values\",\n json: \"application/json\",\n md: \"text/markdown\",\n markdown: \"text/markdown\",\n txt: \"text/plain\",\n pdf: \"application/pdf\",\n png: \"image/png\",\n jpg: \"image/jpeg\",\n jpeg: \"image/jpeg\",\n gif: \"image/gif\",\n svg: \"image/svg+xml\",\n webp: \"image/webp\",\n mp4: \"video/mp4\",\n mov: \"video/quicktime\",\n ts: \"text/typescript\",\n tsx: \"text/typescript\",\n js: \"text/javascript\",\n jsx: \"text/javascript\",\n sql: \"text/x-sql\",\n yml: \"text/yaml\",\n yaml: \"text/yaml\",\n};\n\nexport function mediaTypeFromPath(path: string) {\n const cleaned = path.split(\"?\")[0]?.split(\"#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CA,MAAe,kBAAwB,aACvCA,MAAe,cAAcA,MAAe,8BAAoC,UAChFA,MAAe,qBAA2B,UAC1CA,EAAWG,WAAW,OAAO,KAC7BH,EAAWG,WAAW,cAAc,GAAU,UAR1B;AAY1B;;;AChBA,IAAME,KAA+C;CACnDE,KAAK;CACLC,KAAK;CACLC,MAAM;CACNC,IAAI;CACJC,UAAU;CACVC,KAAK;CACLC,KAAK;CACLC,KAAK;CACLC,KAAK;CACLC,MAAM;CACNC,KAAK;CACLC,KAAK;CACLC,MAAM;CACNC,KAAK;CACLC,KAAK;CACLC,IAAI;CACJC,KAAK;CACLC,IAAI;CACJC,KAAK;CACLC,KAAK;CACLC,KAAK;CACLC,MAAM;AACR;AAEA,SAAgBC,GAAkBC,GAAc;CAE9C,IAAMG,KADUH,EAAKE,MAAM,GAAG,CAAC,CAAC,EAAE,EAAEA,MAAM,GAAG,CAAC,CAAC,MAAM,GAAA,CACjCA,MAAM,GAAG,CAAC,CAACE,IAAI,CAAC,EAAEC,YAAY;CAElD,OADKF,IACE5B,GAAqB4B,MAAQ,OADnB;AAEnB"}
|
package/dist/rich-text.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as CollaborativeMarkdownEditor, C as ResourceActivityFeedSize, D as getTextFromSerializedEditorState, E as generateEditorStateFromString, F as MarkdownEditorProps, I as MarkdownSectionAnchor, L as MarkdownSectionNavigation, M as PromptCommand, N as LazyMarkdownEditor, O as PromptEditor, P as MarkdownEditor, R as MarkdownUrlKind, S as ResourceActivityFeedProps, T as ResourceActivityRelatedResource, V as CollaborativeMarkdownEditorProps, _ as ResourceActivityFeedAction, a as DefaultRichTextCodeEditor, b as ResourceActivityFeedItem, c as DataTableProps, g as ResourceActivityFeed, i as ResourceType, j as PromptEditorRef, k as PromptEditorProps, l as RichMessage, n as inferResourceTypeFromMediaType, o as DefaultRichTextDataTable, r as Resource, s as CodeEditorProps, t as mediaTypeFromPath, u as RichMessageProps, v as ResourceActivityFeedAttention, w as ResourceActivityIconName, x as ResourceActivityFeedMessageItem, y as ResourceActivityFeedEventItem, z as MarkdownUrlResolver } from "./index-eV_0Gjzo.js";
|
|
2
2
|
export { type CodeEditorProps, CollaborativeMarkdownEditor, type CollaborativeMarkdownEditorProps, type DataTableProps, DefaultRichTextCodeEditor, DefaultRichTextDataTable, LazyMarkdownEditor, MarkdownEditor, type MarkdownEditorProps, RichMessage as MarkdownPreview, RichMessage, type MarkdownSectionAnchor, type MarkdownSectionNavigation, type MarkdownUrlKind, type MarkdownUrlResolver, type PromptCommand, PromptEditor, type PromptEditorProps, type PromptEditorRef, type Resource, ResourceActivityFeed, type ResourceActivityFeedAction, type ResourceActivityFeedAttention, type ResourceActivityFeedEventItem, type ResourceActivityFeedItem, type ResourceActivityFeedMessageItem, type ResourceActivityFeedProps, type ResourceActivityFeedSize, type ResourceActivityIconName, type ResourceActivityRelatedResource, type ResourceType, type RichMessageProps, generateEditorStateFromString, getTextFromSerializedEditorState, inferResourceTypeFromMediaType, mediaTypeFromPath };
|
|
3
3
|
export {};
|
package/dist/rich-text.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./markdown-editor-
|
|
2
|
-
import {
|
|
3
|
-
import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./rich-text-
|
|
1
|
+
import { t as e } from "./markdown-editor-BPGIS9ku.js";
|
|
2
|
+
import { y as t } from "./param-editor-field-BPBlweVg.js";
|
|
3
|
+
import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./rich-text-CH2psble.js";
|
|
4
4
|
export { d as CollaborativeMarkdownEditor, c as DefaultRichTextCodeEditor, i as DefaultRichTextDataTable, t as LazyMarkdownEditor, e as MarkdownEditor, s as MarkdownPreview, s as RichMessage, l as PromptEditor, n as ResourceActivityFeed, r as generateEditorStateFromString, a as getTextFromSerializedEditorState, o as inferResourceTypeFromMediaType, u as mediaTypeFromPath };
|
package/dist/terminal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./split-panel-motion-context-YB0sduVv.js";
|
|
2
|
-
import { t } from "./theme-
|
|
2
|
+
import { t } from "./theme-BsStBWWL.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import { useContext as i, useEffect as a, useRef as o, useState as s } from "react";
|