@arbidocs/blocks 0.5.164 → 0.5.166
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/{ConnectedCallDock-SD4DKTMX.cjs → ConnectedCallDock-RUBZWNBS.cjs} +31 -31
- package/dist/{ConnectedCallDock-SD4DKTMX.cjs.map → ConnectedCallDock-RUBZWNBS.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-2FLGH3JB.cjs → ConnectedCallRoom-UE73GPNR.cjs} +23 -23
- package/dist/{ConnectedCallRoom-2FLGH3JB.cjs.map → ConnectedCallRoom-UE73GPNR.cjs.map} +1 -1
- package/dist/{ConnectedMailInviteCard-VMFTQ5PW.cjs → ConnectedMailInviteCard-HPOHLB72.cjs} +5 -5
- package/dist/{ConnectedMailInviteCard-VMFTQ5PW.cjs.map → ConnectedMailInviteCard-HPOHLB72.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-PV3SDVMZ.cjs → ConnectedNativeDocxComparison-P5TX46HD.cjs} +21 -21
- package/dist/{ConnectedNativeDocxComparison-PV3SDVMZ.cjs.map → ConnectedNativeDocxComparison-P5TX46HD.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-Y37YBY4S.cjs → ConnectedPresentation-CQJB3BOB.cjs} +26 -26
- package/dist/{ConnectedPresentation-Y37YBY4S.cjs.map → ConnectedPresentation-CQJB3BOB.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-LB5B7OXR.cjs → ConnectedProductionSetDialog-O5RX57PS.cjs} +11 -10
- package/dist/ConnectedProductionSetDialog-O5RX57PS.cjs.map +1 -0
- package/dist/{ConnectedSlidesTab-BYS7HFNK.cjs → ConnectedSlidesTab-LEA5OW75.cjs} +19 -19
- package/dist/{ConnectedSlidesTab-BYS7HFNK.cjs.map → ConnectedSlidesTab-LEA5OW75.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-T6GE5GME.cjs → ConnectedStreamedWordArtifact-XO4ULCQO.cjs} +21 -21
- package/dist/{ConnectedStreamedWordArtifact-T6GE5GME.cjs.map → ConnectedStreamedWordArtifact-XO4ULCQO.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-UXGPQNTN.cjs → DocumentReviewCard-OHWZ6YI3.cjs} +21 -21
- package/dist/{DocumentReviewCard-UXGPQNTN.cjs.map → DocumentReviewCard-OHWZ6YI3.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-WESCK7AH.cjs → FilesViewerDialog-M6MRG2X7.cjs} +58 -56
- package/dist/FilesViewerDialog-M6MRG2X7.cjs.map +1 -0
- package/dist/{WorkspaceTableView-NMERZJZZ.cjs → WorkspaceTableView-ZAN4C4IZ.cjs} +8 -8
- package/dist/{WorkspaceTableView-NMERZJZZ.cjs.map → WorkspaceTableView-ZAN4C4IZ.cjs.map} +1 -1
- package/dist/agents/index.cjs +286 -286
- package/dist/{ai-QFY4LYQZ.cjs → ai-AV4LQ5AW.cjs} +29 -30
- package/dist/ai-AV4LQ5AW.cjs.map +1 -0
- package/dist/auth/index.cjs +12 -11
- package/dist/calls/index.cjs +148 -148
- package/dist/chat/generatedDocuments.d.ts +2 -0
- package/dist/chat/generatedDocuments.js +6 -3
- package/dist/chat/generatedDocuments.js.map +2 -2
- package/dist/chat/index.cjs +102 -102
- package/dist/chat/rehype-doc-entity-pills.js +5 -3
- package/dist/chat/rehype-doc-entity-pills.js.map +2 -2
- package/dist/{chunk-UJHQ4DA4.cjs → chunk-3DRBJGRR.cjs} +14 -14
- package/dist/{chunk-UJHQ4DA4.cjs.map → chunk-3DRBJGRR.cjs.map} +1 -1
- package/dist/{chunk-UD3LPATQ.cjs → chunk-3EIO4ZH5.cjs} +14 -14
- package/dist/{chunk-UD3LPATQ.cjs.map → chunk-3EIO4ZH5.cjs.map} +1 -1
- package/dist/{chunk-EGOLLSH7.cjs → chunk-3QHVDOQT.cjs} +57 -54
- package/dist/chunk-3QHVDOQT.cjs.map +1 -0
- package/dist/{chunk-LOSCXAAF.cjs → chunk-3UCRJRNI.cjs} +34 -4
- package/dist/chunk-3UCRJRNI.cjs.map +1 -0
- package/dist/{chunk-GS2C25ID.cjs → chunk-4RDXW7KP.cjs} +25 -25
- package/dist/{chunk-GS2C25ID.cjs.map → chunk-4RDXW7KP.cjs.map} +1 -1
- package/dist/{chunk-G3MRW4WB.cjs → chunk-5FSULBPE.cjs} +9 -9
- package/dist/{chunk-G3MRW4WB.cjs.map → chunk-5FSULBPE.cjs.map} +1 -1
- package/dist/{chunk-VU2MESEX.cjs → chunk-5G33DATM.cjs} +50 -41
- package/dist/chunk-5G33DATM.cjs.map +1 -0
- package/dist/{chunk-6XKQAQWF.cjs → chunk-5K6XHSAM.cjs} +4 -4
- package/dist/{chunk-6XKQAQWF.cjs.map → chunk-5K6XHSAM.cjs.map} +1 -1
- package/dist/{chunk-EG3DPKXM.cjs → chunk-6AFAYGJW.cjs} +5 -5
- package/dist/{chunk-EG3DPKXM.cjs.map → chunk-6AFAYGJW.cjs.map} +1 -1
- package/dist/{chunk-2EWDPIGO.cjs → chunk-6DHDITKK.cjs} +11 -6
- package/dist/chunk-6DHDITKK.cjs.map +1 -0
- package/dist/{chunk-QDZDHP23.cjs → chunk-7D3OMWIZ.cjs} +4 -4
- package/dist/{chunk-QDZDHP23.cjs.map → chunk-7D3OMWIZ.cjs.map} +1 -1
- package/dist/{chunk-SH7W4WVI.cjs → chunk-7FWP7W34.cjs} +9 -6
- package/dist/chunk-7FWP7W34.cjs.map +1 -0
- package/dist/{chunk-6P4U63HO.cjs → chunk-7GVKG3G4.cjs} +13 -13
- package/dist/{chunk-6P4U63HO.cjs.map → chunk-7GVKG3G4.cjs.map} +1 -1
- package/dist/{chunk-KCTQM3WO.cjs → chunk-7OMRSZOJ.cjs} +28 -28
- package/dist/{chunk-KCTQM3WO.cjs.map → chunk-7OMRSZOJ.cjs.map} +1 -1
- package/dist/{chunk-2QLO3HBN.cjs → chunk-7QSZSGUQ.cjs} +6 -6
- package/dist/{chunk-2QLO3HBN.cjs.map → chunk-7QSZSGUQ.cjs.map} +1 -1
- package/dist/{chunk-CQHVNV6W.cjs → chunk-AG5XZ3AM.cjs} +7 -7
- package/dist/{chunk-CQHVNV6W.cjs.map → chunk-AG5XZ3AM.cjs.map} +1 -1
- package/dist/{chunk-WQ2KG4LS.cjs → chunk-BCU65RJM.cjs} +3 -3
- package/dist/{chunk-WQ2KG4LS.cjs.map → chunk-BCU65RJM.cjs.map} +1 -1
- package/dist/chunk-BNXWT3DX.cjs +516 -0
- package/dist/chunk-BNXWT3DX.cjs.map +1 -0
- package/dist/{chunk-2P7VH2SK.cjs → chunk-C25KF2TM.cjs} +4 -4
- package/dist/{chunk-2P7VH2SK.cjs.map → chunk-C25KF2TM.cjs.map} +1 -1
- package/dist/{chunk-U4KUTO6O.cjs → chunk-CI777IPA.cjs} +21 -21
- package/dist/{chunk-U4KUTO6O.cjs.map → chunk-CI777IPA.cjs.map} +1 -1
- package/dist/{chunk-35UL4GE7.cjs → chunk-DI6UEQCZ.cjs} +4 -4
- package/dist/{chunk-35UL4GE7.cjs.map → chunk-DI6UEQCZ.cjs.map} +1 -1
- package/dist/{chunk-V27WLYTG.cjs → chunk-ER2MRSLT.cjs} +5 -5
- package/dist/{chunk-V27WLYTG.cjs.map → chunk-ER2MRSLT.cjs.map} +1 -1
- package/dist/{chunk-YHXJWYOF.cjs → chunk-FUKN3PI5.cjs} +4 -4
- package/dist/{chunk-YHXJWYOF.cjs.map → chunk-FUKN3PI5.cjs.map} +1 -1
- package/dist/{chunk-DWN5AUMH.cjs → chunk-GD5OYIOV.cjs} +6 -6
- package/dist/{chunk-DWN5AUMH.cjs.map → chunk-GD5OYIOV.cjs.map} +1 -1
- package/dist/{chunk-NGM4HIPP.cjs → chunk-H3VVUNEX.cjs} +21 -21
- package/dist/{chunk-NGM4HIPP.cjs.map → chunk-H3VVUNEX.cjs.map} +1 -1
- package/dist/{chunk-GF6AYAMI.cjs → chunk-HH5MKRBL.cjs} +9 -9
- package/dist/{chunk-GF6AYAMI.cjs.map → chunk-HH5MKRBL.cjs.map} +1 -1
- package/dist/{chunk-46LX6EQT.cjs → chunk-HN56WWBR.cjs} +2 -2
- package/dist/{chunk-46LX6EQT.cjs.map → chunk-HN56WWBR.cjs.map} +1 -1
- package/dist/chunk-IRUQZI6P.cjs +17 -0
- package/dist/chunk-IRUQZI6P.cjs.map +1 -0
- package/dist/{chunk-SLCH5JRI.cjs → chunk-IXCWZ4HC.cjs} +5 -5
- package/dist/{chunk-SLCH5JRI.cjs.map → chunk-IXCWZ4HC.cjs.map} +1 -1
- package/dist/{chunk-5HPUGSTJ.cjs → chunk-J37DOAGN.cjs} +7 -7
- package/dist/{chunk-5HPUGSTJ.cjs.map → chunk-J37DOAGN.cjs.map} +1 -1
- package/dist/{chunk-DLGYR4JL.cjs → chunk-J5CBCUQE.cjs} +8 -8
- package/dist/{chunk-DLGYR4JL.cjs.map → chunk-J5CBCUQE.cjs.map} +1 -1
- package/dist/{chunk-AHUEBRLX.cjs → chunk-JEHGTPS2.cjs} +4 -4
- package/dist/{chunk-AHUEBRLX.cjs.map → chunk-JEHGTPS2.cjs.map} +1 -1
- package/dist/{chunk-36NQMOJE.cjs → chunk-JFCTB5YI.cjs} +6 -6
- package/dist/{chunk-36NQMOJE.cjs.map → chunk-JFCTB5YI.cjs.map} +1 -1
- package/dist/{chunk-T26UYA6Q.cjs → chunk-JTBWI74K.cjs} +7 -7
- package/dist/{chunk-T26UYA6Q.cjs.map → chunk-JTBWI74K.cjs.map} +1 -1
- package/dist/{chunk-CX4VR3ZT.cjs → chunk-LE4Z2UIG.cjs} +115 -93
- package/dist/chunk-LE4Z2UIG.cjs.map +1 -0
- package/dist/{chunk-ZC6EPBVL.cjs → chunk-LZGGR63X.cjs} +4 -4
- package/dist/{chunk-ZC6EPBVL.cjs.map → chunk-LZGGR63X.cjs.map} +1 -1
- package/dist/{chunk-ZVQMCGUK.cjs → chunk-N2SJR2Y7.cjs} +36 -36
- package/dist/{chunk-ZVQMCGUK.cjs.map → chunk-N2SJR2Y7.cjs.map} +1 -1
- package/dist/{chunk-JARBYN6Z.cjs → chunk-NAXF2KHT.cjs} +5 -3
- package/dist/chunk-NAXF2KHT.cjs.map +1 -0
- package/dist/{chunk-ZPBTXRMG.cjs → chunk-NFXHBTAO.cjs} +4 -4
- package/dist/{chunk-ZPBTXRMG.cjs.map → chunk-NFXHBTAO.cjs.map} +1 -1
- package/dist/{chunk-Z2XZ2D4N.cjs → chunk-O2NHBB3D.cjs} +8 -5
- package/dist/chunk-O2NHBB3D.cjs.map +1 -0
- package/dist/{chunk-7UPEFZCV.cjs → chunk-OHWYQI3B.cjs} +15 -15
- package/dist/{chunk-7UPEFZCV.cjs.map → chunk-OHWYQI3B.cjs.map} +1 -1
- package/dist/{chunk-TU46WKTN.cjs → chunk-OIYKKUAN.cjs} +3 -3
- package/dist/{chunk-TU46WKTN.cjs.map → chunk-OIYKKUAN.cjs.map} +1 -1
- package/dist/{chunk-CULUTYOD.cjs → chunk-OO452QD5.cjs} +4 -4
- package/dist/{chunk-CULUTYOD.cjs.map → chunk-OO452QD5.cjs.map} +1 -1
- package/dist/{chunk-4RR7ZZPD.cjs → chunk-PJ5OQ5VB.cjs} +5 -5
- package/dist/{chunk-4RR7ZZPD.cjs.map → chunk-PJ5OQ5VB.cjs.map} +1 -1
- package/dist/{chunk-VHD5DZW4.cjs → chunk-PK5H5SVS.cjs} +10 -8
- package/dist/chunk-PK5H5SVS.cjs.map +1 -0
- package/dist/{chunk-2XHJVYNY.cjs → chunk-PYKTUGPE.cjs} +4 -4
- package/dist/{chunk-2XHJVYNY.cjs.map → chunk-PYKTUGPE.cjs.map} +1 -1
- package/dist/{chunk-MTN6HOY3.cjs → chunk-QD2XCNJH.cjs} +68 -68
- package/dist/{chunk-MTN6HOY3.cjs.map → chunk-QD2XCNJH.cjs.map} +1 -1
- package/dist/{chunk-P7VUIW24.cjs → chunk-QDXZVJWN.cjs} +23 -9
- package/dist/chunk-QDXZVJWN.cjs.map +1 -0
- package/dist/{chunk-MB2Y2ZGM.cjs → chunk-SJPKXXB5.cjs} +6 -6
- package/dist/{chunk-MB2Y2ZGM.cjs.map → chunk-SJPKXXB5.cjs.map} +1 -1
- package/dist/{chunk-5GBM7BQB.cjs → chunk-SOT7NPIB.cjs} +4 -4
- package/dist/{chunk-5GBM7BQB.cjs.map → chunk-SOT7NPIB.cjs.map} +1 -1
- package/dist/{chunk-BX3WRCXV.cjs → chunk-SX6KL6UN.cjs} +4 -4
- package/dist/{chunk-BX3WRCXV.cjs.map → chunk-SX6KL6UN.cjs.map} +1 -1
- package/dist/{chunk-AIKPZJNI.cjs → chunk-SXBQAMHV.cjs} +240 -8
- package/dist/chunk-SXBQAMHV.cjs.map +1 -0
- package/dist/{chunk-XTWHFHEK.cjs → chunk-TKO24ZZ6.cjs} +4 -4
- package/dist/{chunk-XTWHFHEK.cjs.map → chunk-TKO24ZZ6.cjs.map} +1 -1
- package/dist/{chunk-U4YOVI5D.cjs → chunk-TLIZD6DV.cjs} +6 -6
- package/dist/{chunk-U4YOVI5D.cjs.map → chunk-TLIZD6DV.cjs.map} +1 -1
- package/dist/{chunk-3GQQUR27.cjs → chunk-TNBNDY2J.cjs} +4 -4
- package/dist/{chunk-3GQQUR27.cjs.map → chunk-TNBNDY2J.cjs.map} +1 -1
- package/dist/{chunk-SGYURQ23.cjs → chunk-UNSZLNA4.cjs} +12 -12
- package/dist/{chunk-SGYURQ23.cjs.map → chunk-UNSZLNA4.cjs.map} +1 -1
- package/dist/{chunk-XMSK3LQX.cjs → chunk-UXGIMOIN.cjs} +4 -4
- package/dist/{chunk-XMSK3LQX.cjs.map → chunk-UXGIMOIN.cjs.map} +1 -1
- package/dist/{chunk-LLVE5TST.cjs → chunk-VDHBLDQC.cjs} +4 -4
- package/dist/{chunk-LLVE5TST.cjs.map → chunk-VDHBLDQC.cjs.map} +1 -1
- package/dist/{chunk-DYIZ7W4P.cjs → chunk-VDT7TEAH.cjs} +6 -6
- package/dist/{chunk-DYIZ7W4P.cjs.map → chunk-VDT7TEAH.cjs.map} +1 -1
- package/dist/{chunk-EKFA2OS3.cjs → chunk-VJNJ4G6Y.cjs} +4 -4
- package/dist/{chunk-EKFA2OS3.cjs.map → chunk-VJNJ4G6Y.cjs.map} +1 -1
- package/dist/{chunk-63FEMB6U.cjs → chunk-VNYMWFIT.cjs} +56 -27
- package/dist/chunk-VNYMWFIT.cjs.map +1 -0
- package/dist/{chunk-GB5MN5FC.cjs → chunk-VWSOHZK2.cjs} +4 -4
- package/dist/{chunk-GB5MN5FC.cjs.map → chunk-VWSOHZK2.cjs.map} +1 -1
- package/dist/{chunk-JHDCDEXY.cjs → chunk-W5JTACMK.cjs} +8 -5
- package/dist/chunk-W5JTACMK.cjs.map +1 -0
- package/dist/{chunk-WOVNXJK5.cjs → chunk-W7XZKTDG.cjs} +28 -28
- package/dist/{chunk-WOVNXJK5.cjs.map → chunk-W7XZKTDG.cjs.map} +1 -1
- package/dist/{chunk-ZC7X4ZIX.cjs → chunk-WGRXQ7PI.cjs} +24 -24
- package/dist/{chunk-ZC7X4ZIX.cjs.map → chunk-WGRXQ7PI.cjs.map} +1 -1
- package/dist/{chunk-W5QSKW7T.cjs → chunk-WHHBEV4G.cjs} +4 -4
- package/dist/{chunk-W5QSKW7T.cjs.map → chunk-WHHBEV4G.cjs.map} +1 -1
- package/dist/{chunk-PIWXX2M4.cjs → chunk-WV3RNWAG.cjs} +11 -11
- package/dist/{chunk-PIWXX2M4.cjs.map → chunk-WV3RNWAG.cjs.map} +1 -1
- package/dist/{chunk-TD5V5BZ3.cjs → chunk-XKXKEVHH.cjs} +8 -8
- package/dist/{chunk-TD5V5BZ3.cjs.map → chunk-XKXKEVHH.cjs.map} +1 -1
- package/dist/{chunk-K4U4TM23.cjs → chunk-YTDVWIHU.cjs} +1067 -1058
- package/dist/chunk-YTDVWIHU.cjs.map +1 -0
- package/dist/{chunk-73KNWWBW.cjs → chunk-ZLXTGHK3.cjs} +78 -78
- package/dist/{chunk-73KNWWBW.cjs.map → chunk-ZLXTGHK3.cjs.map} +1 -1
- package/dist/{chunk-YA6GXWC2.cjs → chunk-ZQQVXRYZ.cjs} +4 -4
- package/dist/{chunk-YA6GXWC2.cjs.map → chunk-ZQQVXRYZ.cjs.map} +1 -1
- package/dist/citations/index.cjs +8 -8
- package/dist/collaboration/direct-messages/DmParts.d.ts +2 -1
- package/dist/collaboration/direct-messages/DmParts.js +21 -7
- package/dist/collaboration/direct-messages/DmParts.js.map +2 -2
- package/dist/collaboration/index.cjs +69 -69
- package/dist/components/EntityChip.d.ts +2 -1
- package/dist/components/EntityChip.js +2 -0
- package/dist/components/EntityChip.js.map +2 -2
- package/dist/connect/docx.cjs +24 -24
- package/dist/connect/index.cjs +2244 -1728
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +43 -41
- package/dist/connection/ConnectedAgentChatPanel.d.ts +3 -1
- package/dist/connection/ConnectedAgentChatPanel.js +5 -0
- package/dist/connection/ConnectedAgentChatPanel.js.map +2 -2
- package/dist/connection/agents/ConnectedAgentsPage.js +6 -1
- package/dist/connection/agents/ConnectedAgentsPage.js.map +2 -2
- package/dist/connection/contacts/ConnectedContactsPanel.js +4 -2
- package/dist/connection/contacts/ConnectedContactsPanel.js.map +2 -2
- package/dist/connection/conversation/ConnectedMarkdown.js +58 -24
- package/dist/connection/conversation/ConnectedMarkdown.js.map +2 -2
- package/dist/connection/conversation/ConnectedMessage.js +19 -14
- package/dist/connection/conversation/ConnectedMessage.js.map +2 -2
- package/dist/connection/conversation/DocumentWorkspaceContext.d.ts +7 -2
- package/dist/connection/conversation/DocumentWorkspaceContext.js +31 -11
- package/dist/connection/conversation/DocumentWorkspaceContext.js.map +2 -2
- package/dist/connection/conversation/EntityReference.d.ts +8 -0
- package/dist/connection/conversation/EntityReference.js +124 -0
- package/dist/connection/conversation/EntityReference.js.map +7 -0
- package/dist/connection/conversation/entity-references.d.ts +1 -0
- package/dist/connection/conversation/entity-references.js +7 -0
- package/dist/connection/conversation/entity-references.js.map +7 -0
- package/dist/connection/conversation/open-entity-reference.d.ts +5 -0
- package/dist/connection/conversation/open-entity-reference.js +57 -0
- package/dist/connection/conversation/open-entity-reference.js.map +7 -0
- package/dist/connection/databases/ConnectedDatabasesPage.js +15 -2
- package/dist/connection/databases/ConnectedDatabasesPage.js.map +2 -2
- package/dist/connection/databases/DatabaseViewsMenu.d.ts +2 -1
- package/dist/connection/databases/DatabaseViewsMenu.js +9 -0
- package/dist/connection/databases/DatabaseViewsMenu.js.map +2 -2
- package/dist/connection/entities/ConnectedDocumentPill.js +5 -1
- package/dist/connection/entities/ConnectedDocumentPill.js.map +2 -2
- package/dist/connection/entities/ConnectedUserEntity.js +3 -0
- package/dist/connection/entities/ConnectedUserEntity.js.map +2 -2
- package/dist/connection/entities/ConnectedWorkspaceEntity.js +4 -0
- package/dist/connection/entities/ConnectedWorkspaceEntity.js.map +2 -2
- package/dist/connection/files/grid/cells.js +11 -2
- package/dist/connection/files/grid/cells.js.map +2 -2
- package/dist/connection/files/views/ViewSelector.js +13 -1
- package/dist/connection/files/views/ViewSelector.js.map +2 -2
- package/dist/connection/messenger/ConnectedChatThread.d.ts +0 -9
- package/dist/connection/messenger/ConnectedChatThread.js +72 -41
- package/dist/connection/messenger/ConnectedChatThread.js.map +2 -2
- package/dist/connection/messenger/ConnectedMessenger.js +6 -4
- package/dist/connection/messenger/ConnectedMessenger.js.map +2 -2
- package/dist/connection/messenger/DmAgentProgress.d.ts +7 -0
- package/dist/connection/messenger/DmAgentProgress.js +47 -0
- package/dist/connection/messenger/DmAgentProgress.js.map +7 -0
- package/dist/connection/panels/ConnectedPanelHost.d.ts +2 -10
- package/dist/connection/panels/ConnectedPanelHost.js +31 -4
- package/dist/connection/panels/ConnectedPanelHost.js.map +2 -2
- package/dist/connection/panels/ConnectedPanelRegistry.d.ts +1 -1
- package/dist/connection/panels/ConnectedPanelRegistry.js +1 -0
- package/dist/connection/panels/ConnectedPanelRegistry.js.map +2 -2
- package/dist/connection/panels/ConversationPresentation.d.ts +15 -0
- package/dist/connection/panels/ConversationPresentation.js +13 -0
- package/dist/connection/panels/ConversationPresentation.js.map +7 -0
- package/dist/connection/report-problem/ConnectedReportProblem.d.ts +3 -1
- package/dist/connection/report-problem/ConnectedReportProblem.js +9 -2
- package/dist/connection/report-problem/ConnectedReportProblem.js.map +2 -2
- package/dist/connection/report-problem/ReportProblemDialog.d.ts +6 -1
- package/dist/connection/report-problem/ReportProblemDialog.js +21 -7
- package/dist/connection/report-problem/ReportProblemDialog.js.map +2 -2
- package/dist/connection/report-problem/SupportVideoEvidence.d.ts +7 -0
- package/dist/connection/report-problem/SupportVideoEvidence.js +161 -0
- package/dist/connection/report-problem/SupportVideoEvidence.js.map +7 -0
- package/dist/connection/report-problem/screen-capture.d.ts +2 -0
- package/dist/connection/report-problem/screen-capture.js +11 -6
- package/dist/connection/report-problem/screen-capture.js.map +2 -2
- package/dist/connection/report-problem/support-browser-context.d.ts +5 -0
- package/dist/connection/report-problem/support-browser-context.js +19 -0
- package/dist/connection/report-problem/support-browser-context.js.map +7 -0
- package/dist/connection/report-problem/useReportProblem.js +23 -2
- package/dist/connection/report-problem/useReportProblem.js.map +2 -2
- package/dist/connection/report-problem/useSupportVideo.d.ts +19 -0
- package/dist/connection/report-problem/useSupportVideo.js +166 -0
- package/dist/connection/report-problem/useSupportVideo.js.map +7 -0
- package/dist/connection/routes/useDeepLinkSync.js +41 -5
- package/dist/connection/routes/useDeepLinkSync.js.map +2 -2
- package/dist/connection/shell/workspace-project-line.js +1 -0
- package/dist/connection/shell/workspace-project-line.js.map +2 -2
- package/dist/connection/tags/ConnectedTagsPage.js +10 -1
- package/dist/connection/tags/ConnectedTagsPage.js.map +2 -2
- package/dist/connection/threads/ConversationEntity.js +8 -1
- package/dist/connection/threads/ConversationEntity.js.map +2 -2
- package/dist/connection/viewer/ViewerPdfPane.js +18 -2
- package/dist/connection/viewer/ViewerPdfPane.js.map +2 -2
- package/dist/connection/viewer/useViewedDocument.d.ts +1 -0
- package/dist/connection/viewer/useViewedDocument.js +4 -1
- package/dist/connection/viewer/useViewedDocument.js.map +2 -2
- package/dist/connection/viewer/useViewerTabs.js +6 -3
- package/dist/connection/viewer/useViewerTabs.js.map +2 -2
- package/dist/dashboards/index.cjs +19 -19
- package/dist/embed/index.cjs +49 -48
- package/dist/facts/index.cjs +44 -44
- package/dist/files/cells/DocumentNameCell.d.ts +2 -1
- package/dist/files/cells/DocumentNameCell.js +7 -1
- package/dist/files/cells/DocumentNameCell.js.map +2 -2
- package/dist/files/index.cjs +229 -229
- package/dist/home/index.cjs +25 -25
- package/dist/index.cjs +1704 -1700
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +2 -2
- package/dist/lib/entity-id.d.ts +5 -0
- package/dist/lib/entity-id.js +14 -0
- package/dist/lib/entity-id.js.map +7 -0
- package/dist/lib/routes.d.ts +2 -0
- package/dist/lib/routes.js +32 -2
- package/dist/lib/routes.js.map +2 -2
- package/dist/pages/index.cjs +43 -43
- package/dist/provider/environment.d.ts +4 -0
- package/dist/provider/environment.js.map +2 -2
- package/dist/retrieval/index.cjs +4 -4
- package/dist/settings/index.cjs +137 -137
- package/dist/shell/PanelPortal.d.ts +2 -13
- package/dist/shell/PanelPortal.js +58 -7
- package/dist/shell/PanelPortal.js.map +2 -2
- package/dist/shell/index.cjs +85 -85
- package/dist/shell/useFloatingDrag.d.ts +23 -0
- package/dist/shell/useFloatingDrag.js +195 -0
- package/dist/shell/useFloatingDrag.js.map +7 -0
- package/dist/studio/index.cjs +43 -44
- package/dist/studio/index.cjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +70 -71
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workspaces/index.cjs +17 -17
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedProductionSetDialog-LB5B7OXR.cjs.map +0 -1
- package/dist/FilesViewerDialog-WESCK7AH.cjs.map +0 -1
- package/dist/ai-QFY4LYQZ.cjs.map +0 -1
- package/dist/chunk-2EWDPIGO.cjs.map +0 -1
- package/dist/chunk-63FEMB6U.cjs.map +0 -1
- package/dist/chunk-AIKPZJNI.cjs.map +0 -1
- package/dist/chunk-CX4VR3ZT.cjs.map +0 -1
- package/dist/chunk-CYWOL2LS.cjs +0 -320
- package/dist/chunk-CYWOL2LS.cjs.map +0 -1
- package/dist/chunk-EGOLLSH7.cjs.map +0 -1
- package/dist/chunk-JARBYN6Z.cjs.map +0 -1
- package/dist/chunk-JHDCDEXY.cjs.map +0 -1
- package/dist/chunk-K4U4TM23.cjs.map +0 -1
- package/dist/chunk-LOSCXAAF.cjs.map +0 -1
- package/dist/chunk-MCXS6X37.cjs +0 -13
- package/dist/chunk-MCXS6X37.cjs.map +0 -1
- package/dist/chunk-P7VUIW24.cjs.map +0 -1
- package/dist/chunk-SH7W4WVI.cjs.map +0 -1
- package/dist/chunk-VHD5DZW4.cjs.map +0 -1
- package/dist/chunk-VU2MESEX.cjs.map +0 -1
- package/dist/chunk-Z2XZ2D4N.cjs.map +0 -1
|
@@ -15,12 +15,15 @@ function groupOutputsByConversation(docs) {
|
|
|
15
15
|
return out;
|
|
16
16
|
}
|
|
17
17
|
function findMessageDocument(docs, messageExtId) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
return findMessageDocuments(docs, messageExtId)[0];
|
|
19
|
+
}
|
|
20
|
+
function findMessageDocuments(docs, messageExtId) {
|
|
21
|
+
if (!docs || !messageExtId) return [];
|
|
22
|
+
return docs.filter((d) => latestThreadVersionMessage(d) === messageExtId).sort(newestFirst);
|
|
21
23
|
}
|
|
22
24
|
export {
|
|
23
25
|
findMessageDocument,
|
|
26
|
+
findMessageDocuments,
|
|
24
27
|
groupOutputsByConversation,
|
|
25
28
|
latestThreadVersionMessage
|
|
26
29
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/chat/generatedDocuments.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Generated-document helpers. A generated document names the assistant message that made it\n * (`source_message_ext_id`) and that message's conversation (`conversation_ext_id`, null for\n * uploads). Every edit is a new version of the same document, and each version names the message\n * whose turn made it (and its conversation): none for a person's upload or save.\n */\n\nimport type { components } from '@arbidocs/client'\n\ntype Doc = components['schemas']['DocResponse']\n\ntype LinkedDoc = Pick<\n Doc,\n 'external_id' | 'source_message_ext_id' | 'conversation_ext_id' | 'created_at' | 'updated_at'\n> & {\n versions?: ReadonlyArray<\n Pick<Doc['versions'][number], 'source_message_ext_id' | 'conversation_ext_id'>\n >\n}\n\nconst newestFirst = (a: LinkedDoc, b: LinkedDoc): number =>\n (b.created_at ?? '').localeCompare(a.created_at ?? '')\n\n/**\n * The message that made a document's latest version a thread made (a person's later save does not\n * move it): the newest version naming a message, else the generating message.\n */\nexport function latestThreadVersionMessage(d: LinkedDoc): string | null {\n const named = (d.versions ?? []).filter((v) => v.source_message_ext_id)\n return named.at(-1)?.source_message_ext_id ?? d.source_message_ext_id ?? null\n}\n\n/** The threads a document was made or edited in. */\nfunction threadsOf(d: LinkedDoc): string[] {\n const ids = [d.conversation_ext_id, ...(d.versions ?? []).map((v) => v.conversation_ext_id)]\n return [...new Set(ids.filter((id): id is string => !!id))]\n}\n\n/**\n * Generated documents grouped by the conversations they were made or edited in, newest first.\n * Uploads nobody's thread touched are excluded.\n */\nexport function groupOutputsByConversation<T extends LinkedDoc>(\n docs: readonly T[]\n): Record<string, T[]> {\n const out: Record<string, T[]> = {}\n for (const d of docs) for (const id of threadsOf(d)) (out[id] ??= []).push(d)\n for (const list of Object.values(out)) list.sort(newestFirst)\n return out\n}\n\n/**\n * The document to show under an assistant message: the newest document whose latest thread-made\n * version this message made. A document edited by a later message shows under that later\n * message, so the earlier message no longer matches; a person's own save changes nothing.\n */\nexport function findMessageDocument<T extends LinkedDoc>(\n docs: readonly T[] | undefined,\n messageExtId: string | undefined\n): T | undefined {\n if (!docs || !messageExtId) return
|
|
5
|
-
"mappings": ";AAoBA,MAAM,cAAc,CAAC,GAAc,OAChC,EAAE,cAAc,IAAI,cAAc,EAAE,cAAc,EAAE;AAMhD,SAAS,2BAA2B,GAA6B;AACtE,QAAM,SAAS,EAAE,YAAY,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,qBAAqB;AACtE,SAAO,MAAM,GAAG,EAAE,GAAG,yBAAyB,EAAE,yBAAyB;AAC3E;AAGA,SAAS,UAAU,GAAwB;AACzC,QAAM,MAAM,CAAC,EAAE,qBAAqB,IAAI,EAAE,YAAY,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,mBAAmB,CAAC;AAC3F,SAAO,CAAC,GAAG,IAAI,IAAI,IAAI,OAAO,CAAC,OAAqB,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5D;AAMO,SAAS,2BACd,MACqB;AACrB,QAAM,MAA2B,CAAC;AAClC,aAAW,KAAK,KAAM,YAAW,MAAM,UAAU,CAAC,EAAG,EAAC,IAAI,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;AAC5E,aAAW,QAAQ,OAAO,OAAO,GAAG,EAAG,MAAK,KAAK,WAAW;AAC5D,SAAO;AACT;AAOO,SAAS,oBACd,MACA,cACe;AACf,MAAI,CAAC,QAAQ,CAAC,aAAc,QAAO;
|
|
4
|
+
"sourcesContent": ["/**\n * Generated-document helpers. A generated document names the assistant message that made it\n * (`source_message_ext_id`) and that message's conversation (`conversation_ext_id`, null for\n * uploads). Every edit is a new version of the same document, and each version names the message\n * whose turn made it (and its conversation): none for a person's upload or save.\n */\n\nimport type { components } from '@arbidocs/client'\n\ntype Doc = components['schemas']['DocResponse']\n\ntype LinkedDoc = Pick<\n Doc,\n 'external_id' | 'source_message_ext_id' | 'conversation_ext_id' | 'created_at' | 'updated_at'\n> & {\n versions?: ReadonlyArray<\n Pick<Doc['versions'][number], 'source_message_ext_id' | 'conversation_ext_id'>\n >\n}\n\nconst newestFirst = (a: LinkedDoc, b: LinkedDoc): number =>\n (b.created_at ?? '').localeCompare(a.created_at ?? '')\n\n/**\n * The message that made a document's latest version a thread made (a person's later save does not\n * move it): the newest version naming a message, else the generating message.\n */\nexport function latestThreadVersionMessage(d: LinkedDoc): string | null {\n const named = (d.versions ?? []).filter((v) => v.source_message_ext_id)\n return named.at(-1)?.source_message_ext_id ?? d.source_message_ext_id ?? null\n}\n\n/** The threads a document was made or edited in. */\nfunction threadsOf(d: LinkedDoc): string[] {\n const ids = [d.conversation_ext_id, ...(d.versions ?? []).map((v) => v.conversation_ext_id)]\n return [...new Set(ids.filter((id): id is string => !!id))]\n}\n\n/**\n * Generated documents grouped by the conversations they were made or edited in, newest first.\n * Uploads nobody's thread touched are excluded.\n */\nexport function groupOutputsByConversation<T extends LinkedDoc>(\n docs: readonly T[]\n): Record<string, T[]> {\n const out: Record<string, T[]> = {}\n for (const d of docs) for (const id of threadsOf(d)) (out[id] ??= []).push(d)\n for (const list of Object.values(out)) list.sort(newestFirst)\n return out\n}\n\n/**\n * The document to show under an assistant message: the newest document whose latest thread-made\n * version this message made. A document edited by a later message shows under that later\n * message, so the earlier message no longer matches; a person's own save changes nothing.\n */\nexport function findMessageDocument<T extends LinkedDoc>(\n docs: readonly T[] | undefined,\n messageExtId: string | undefined\n): T | undefined {\n return findMessageDocuments(docs, messageExtId)[0]\n}\n\n/** Every output made by a turn, including a sandbox task's multiple deliverables. */\nexport function findMessageDocuments<T extends LinkedDoc>(\n docs: readonly T[] | undefined,\n messageExtId: string | undefined\n): T[] {\n if (!docs || !messageExtId) return []\n return docs.filter((d) => latestThreadVersionMessage(d) === messageExtId).sort(newestFirst)\n}\n"],
|
|
5
|
+
"mappings": ";AAoBA,MAAM,cAAc,CAAC,GAAc,OAChC,EAAE,cAAc,IAAI,cAAc,EAAE,cAAc,EAAE;AAMhD,SAAS,2BAA2B,GAA6B;AACtE,QAAM,SAAS,EAAE,YAAY,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,qBAAqB;AACtE,SAAO,MAAM,GAAG,EAAE,GAAG,yBAAyB,EAAE,yBAAyB;AAC3E;AAGA,SAAS,UAAU,GAAwB;AACzC,QAAM,MAAM,CAAC,EAAE,qBAAqB,IAAI,EAAE,YAAY,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,mBAAmB,CAAC;AAC3F,SAAO,CAAC,GAAG,IAAI,IAAI,IAAI,OAAO,CAAC,OAAqB,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5D;AAMO,SAAS,2BACd,MACqB;AACrB,QAAM,MAA2B,CAAC;AAClC,aAAW,KAAK,KAAM,YAAW,MAAM,UAAU,CAAC,EAAG,EAAC,IAAI,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;AAC5E,aAAW,QAAQ,OAAO,OAAO,GAAG,EAAG,MAAK,KAAK,WAAW;AAC5D,SAAO;AACT;AAOO,SAAS,oBACd,MACA,cACe;AACf,SAAO,qBAAqB,MAAM,YAAY,EAAE,CAAC;AACnD;AAGO,SAAS,qBACd,MACA,cACK;AACL,MAAI,CAAC,QAAQ,CAAC,aAAc,QAAO,CAAC;AACpC,SAAO,KAAK,OAAO,CAAC,MAAM,2BAA2B,CAAC,MAAM,YAAY,EAAE,KAAK,WAAW;AAC5F;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/chat/index.cjs
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkSJPKXXB5_cjs = require('../chunk-SJPKXXB5.cjs');
|
|
5
5
|
var chunkKLMNCBLY_cjs = require('../chunk-KLMNCBLY.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
6
|
+
var chunkJFCTB5YI_cjs = require('../chunk-JFCTB5YI.cjs');
|
|
7
|
+
var chunkUXGIMOIN_cjs = require('../chunk-UXGIMOIN.cjs');
|
|
8
|
+
var chunkCI777IPA_cjs = require('../chunk-CI777IPA.cjs');
|
|
9
|
+
var chunkW5JTACMK_cjs = require('../chunk-W5JTACMK.cjs');
|
|
10
|
+
var chunkPK5H5SVS_cjs = require('../chunk-PK5H5SVS.cjs');
|
|
11
11
|
var chunk5F4DCIHS_cjs = require('../chunk-5F4DCIHS.cjs');
|
|
12
12
|
require('../chunk-CT3SLXB7.cjs');
|
|
13
13
|
require('../chunk-DEXUL3T6.cjs');
|
|
14
14
|
require('../chunk-AFQTQC7A.cjs');
|
|
15
15
|
require('../chunk-XJEXFEWG.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunkO2NHBB3D_cjs = require('../chunk-O2NHBB3D.cjs');
|
|
17
17
|
require('../chunk-YZSQ7F5K.cjs');
|
|
18
|
-
require('../chunk-MCXS6X37.cjs');
|
|
19
18
|
require('../chunk-KQF7POTG.cjs');
|
|
20
19
|
var chunk75BNMCUX_cjs = require('../chunk-75BNMCUX.cjs');
|
|
21
20
|
require('../chunk-IN6ILI5A.cjs');
|
|
@@ -25,19 +24,20 @@ require('../chunk-Y3GJBLAI.cjs');
|
|
|
25
24
|
require('../chunk-SQCCQU3K.cjs');
|
|
26
25
|
require('../chunk-UDSHVNU3.cjs');
|
|
27
26
|
require('../chunk-IPSHAMO2.cjs');
|
|
27
|
+
require('../chunk-IRUQZI6P.cjs');
|
|
28
28
|
var chunkZBP4ZSAJ_cjs = require('../chunk-ZBP4ZSAJ.cjs');
|
|
29
29
|
require('../chunk-PPCATBOY.cjs');
|
|
30
|
-
require('../chunk-
|
|
30
|
+
require('../chunk-LJJJ6CYH.cjs');
|
|
31
|
+
require('../chunk-HN56WWBR.cjs');
|
|
31
32
|
require('../chunk-K67VMSOX.cjs');
|
|
32
33
|
require('../chunk-CVPV4I7Z.cjs');
|
|
33
|
-
require('../chunk-LJJJ6CYH.cjs');
|
|
34
34
|
require('../chunk-PLIF5CUV.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
Object.defineProperty(exports, "AssistantToaster", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkSJPKXXB5_cjs.AssistantToaster; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "ComposerAccessories", {
|
|
43
43
|
enumerable: true,
|
|
@@ -181,355 +181,355 @@ Object.defineProperty(exports, "useDismissibleCard", {
|
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "AssistantDock", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkJFCTB5YI_cjs.AssistantDock; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "AssistantDockToggle", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkJFCTB5YI_cjs.AssistantDockToggle; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "useAssistantDock", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkJFCTB5YI_cjs.useAssistantDock; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "useOpenCitation", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkUXGIMOIN_cjs.useOpenCitation; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "AssistantModeToggle", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkCI777IPA_cjs.AssistantModeToggle; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "ChatDocuments", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkCI777IPA_cjs.ChatDocuments; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "ChatMessageContent", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkCI777IPA_cjs.ChatMessageContent; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "ChatPage", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkCI777IPA_cjs.ChatPage; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "ChatThreadList", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkCI777IPA_cjs.ChatThreadList; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "ChatThreadSelect", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkCI777IPA_cjs.ChatThreadSelect; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "CitationMark", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkCI777IPA_cjs.CitationMark; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "ContextChip", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkCI777IPA_cjs.ContextChip; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "ConversationEmpty", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkCI777IPA_cjs.ConversationEmpty; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkCI777IPA_cjs.DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "DEFAULT_CHAT_PAGE_LABELS", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkCI777IPA_cjs.DEFAULT_CHAT_PAGE_LABELS; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_EMPTY_LABELS", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkCI777IPA_cjs.DEFAULT_CONVERSATION_EMPTY_LABELS; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "DEFAULT_MESSAGE_ALERT_LABELS", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkCI777IPA_cjs.DEFAULT_MESSAGE_ALERT_LABELS; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "MessageAlert", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkCI777IPA_cjs.MessageAlert; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "useChatSurface", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkCI777IPA_cjs.useChatSurface; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "useControlledThread", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkCI777IPA_cjs.useControlledThread; }
|
|
261
261
|
});
|
|
262
262
|
Object.defineProperty(exports, "useRegisterEmbeddedChat", {
|
|
263
263
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkCI777IPA_cjs.useRegisterEmbeddedChat; }
|
|
265
265
|
});
|
|
266
266
|
Object.defineProperty(exports, "useStartRequestedConversation", {
|
|
267
267
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkCI777IPA_cjs.useStartRequestedConversation; }
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "BranchControls", {
|
|
271
271
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkW5JTACMK_cjs.BranchControls; }
|
|
273
273
|
});
|
|
274
274
|
Object.defineProperty(exports, "ContextUsageBar", {
|
|
275
275
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkW5JTACMK_cjs.ContextUsageBar; }
|
|
277
277
|
});
|
|
278
278
|
Object.defineProperty(exports, "DEFAULT_BRANCH_CONTROLS_LABELS", {
|
|
279
279
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkW5JTACMK_cjs.DEFAULT_BRANCH_CONTROLS_LABELS; }
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperty(exports, "DEFAULT_MODEL_PRICING_TIP_LABELS", {
|
|
283
283
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkW5JTACMK_cjs.DEFAULT_MODEL_PRICING_TIP_LABELS; }
|
|
285
285
|
});
|
|
286
286
|
Object.defineProperty(exports, "DEFAULT_THREAD_MAP_LABELS", {
|
|
287
287
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkW5JTACMK_cjs.DEFAULT_THREAD_MAP_LABELS; }
|
|
289
289
|
});
|
|
290
290
|
Object.defineProperty(exports, "DEFAULT_THREAD_VISUALIZER_LABELS", {
|
|
291
291
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkW5JTACMK_cjs.DEFAULT_THREAD_VISUALIZER_LABELS; }
|
|
293
293
|
});
|
|
294
294
|
Object.defineProperty(exports, "ModelAutoIcon", {
|
|
295
295
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkW5JTACMK_cjs.ModelAutoIcon; }
|
|
297
297
|
});
|
|
298
298
|
Object.defineProperty(exports, "ModelConfigureButton", {
|
|
299
299
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkW5JTACMK_cjs.ModelConfigureButton; }
|
|
301
301
|
});
|
|
302
302
|
Object.defineProperty(exports, "ModelDot", {
|
|
303
303
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkW5JTACMK_cjs.ModelDot; }
|
|
305
305
|
});
|
|
306
306
|
Object.defineProperty(exports, "ModelMenuDivider", {
|
|
307
307
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunkW5JTACMK_cjs.ModelMenuDivider; }
|
|
309
309
|
});
|
|
310
310
|
Object.defineProperty(exports, "ModelMenuMessage", {
|
|
311
311
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunkW5JTACMK_cjs.ModelMenuMessage; }
|
|
313
313
|
});
|
|
314
314
|
Object.defineProperty(exports, "ModelOption", {
|
|
315
315
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkW5JTACMK_cjs.ModelOption; }
|
|
317
317
|
});
|
|
318
318
|
Object.defineProperty(exports, "ModelOptionLabel", {
|
|
319
319
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkW5JTACMK_cjs.ModelOptionLabel; }
|
|
321
321
|
});
|
|
322
322
|
Object.defineProperty(exports, "ModelPickerPopover", {
|
|
323
323
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkW5JTACMK_cjs.ModelPickerPopover; }
|
|
325
325
|
});
|
|
326
326
|
Object.defineProperty(exports, "ModelPickerTrigger", {
|
|
327
327
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkW5JTACMK_cjs.ModelPickerTrigger; }
|
|
329
329
|
});
|
|
330
330
|
Object.defineProperty(exports, "ModelPricingTip", {
|
|
331
331
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkW5JTACMK_cjs.ModelPricingTip; }
|
|
333
333
|
});
|
|
334
334
|
Object.defineProperty(exports, "ModelTierIcon", {
|
|
335
335
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkW5JTACMK_cjs.ModelTierIcon; }
|
|
337
337
|
});
|
|
338
338
|
Object.defineProperty(exports, "ModelTierOption", {
|
|
339
339
|
enumerable: true,
|
|
340
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkW5JTACMK_cjs.ModelTierOption; }
|
|
341
341
|
});
|
|
342
342
|
Object.defineProperty(exports, "ModelTriggerContent", {
|
|
343
343
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunkW5JTACMK_cjs.ModelTriggerContent; }
|
|
345
345
|
});
|
|
346
346
|
Object.defineProperty(exports, "ThreadMap", {
|
|
347
347
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkW5JTACMK_cjs.ThreadMap; }
|
|
349
349
|
});
|
|
350
350
|
Object.defineProperty(exports, "ThreadMapDiagram", {
|
|
351
351
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkW5JTACMK_cjs.ThreadMapDiagram; }
|
|
353
353
|
});
|
|
354
354
|
Object.defineProperty(exports, "ThreadMapError", {
|
|
355
355
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkW5JTACMK_cjs.ThreadMapError; }
|
|
357
357
|
});
|
|
358
358
|
Object.defineProperty(exports, "ThreadMapLoading", {
|
|
359
359
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkW5JTACMK_cjs.ThreadMapLoading; }
|
|
361
361
|
});
|
|
362
362
|
Object.defineProperty(exports, "ThreadVisualizer", {
|
|
363
363
|
enumerable: true,
|
|
364
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkW5JTACMK_cjs.ThreadVisualizer; }
|
|
365
365
|
});
|
|
366
366
|
Object.defineProperty(exports, "buildMessageLink", {
|
|
367
367
|
enumerable: true,
|
|
368
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkW5JTACMK_cjs.buildMessageLink; }
|
|
369
369
|
});
|
|
370
370
|
Object.defineProperty(exports, "buildThreadDiagram", {
|
|
371
371
|
enumerable: true,
|
|
372
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkW5JTACMK_cjs.buildThreadDiagram; }
|
|
373
373
|
});
|
|
374
374
|
Object.defineProperty(exports, "copyMessageToClipboard", {
|
|
375
375
|
enumerable: true,
|
|
376
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkW5JTACMK_cjs.copyMessageToClipboard; }
|
|
377
377
|
});
|
|
378
378
|
Object.defineProperty(exports, "downloadTableAsCsv", {
|
|
379
379
|
enumerable: true,
|
|
380
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkW5JTACMK_cjs.downloadTableAsCsv; }
|
|
381
381
|
});
|
|
382
382
|
Object.defineProperty(exports, "findMessageDocument", {
|
|
383
383
|
enumerable: true,
|
|
384
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkW5JTACMK_cjs.findMessageDocument; }
|
|
385
385
|
});
|
|
386
386
|
Object.defineProperty(exports, "flashMessage", {
|
|
387
387
|
enumerable: true,
|
|
388
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkW5JTACMK_cjs.flashMessage; }
|
|
389
389
|
});
|
|
390
390
|
Object.defineProperty(exports, "getParticipantTints", {
|
|
391
391
|
enumerable: true,
|
|
392
|
-
get: function () { return
|
|
392
|
+
get: function () { return chunkW5JTACMK_cjs.getParticipantTints; }
|
|
393
393
|
});
|
|
394
394
|
Object.defineProperty(exports, "groupOutputsByConversation", {
|
|
395
395
|
enumerable: true,
|
|
396
|
-
get: function () { return
|
|
396
|
+
get: function () { return chunkW5JTACMK_cjs.groupOutputsByConversation; }
|
|
397
397
|
});
|
|
398
398
|
Object.defineProperty(exports, "isLongPastedText", {
|
|
399
399
|
enumerable: true,
|
|
400
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkW5JTACMK_cjs.isLongPastedText; }
|
|
401
401
|
});
|
|
402
402
|
Object.defineProperty(exports, "latestThreadVersionMessage", {
|
|
403
403
|
enumerable: true,
|
|
404
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkW5JTACMK_cjs.latestThreadVersionMessage; }
|
|
405
405
|
});
|
|
406
406
|
Object.defineProperty(exports, "threadForNode", {
|
|
407
407
|
enumerable: true,
|
|
408
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkW5JTACMK_cjs.threadForNode; }
|
|
409
409
|
});
|
|
410
410
|
Object.defineProperty(exports, "useLongPaste", {
|
|
411
411
|
enumerable: true,
|
|
412
|
-
get: function () { return
|
|
412
|
+
get: function () { return chunkW5JTACMK_cjs.useLongPaste; }
|
|
413
413
|
});
|
|
414
414
|
Object.defineProperty(exports, "useRecipientDraft", {
|
|
415
415
|
enumerable: true,
|
|
416
|
-
get: function () { return
|
|
416
|
+
get: function () { return chunkW5JTACMK_cjs.useRecipientDraft; }
|
|
417
417
|
});
|
|
418
418
|
Object.defineProperty(exports, "Composer", {
|
|
419
419
|
enumerable: true,
|
|
420
|
-
get: function () { return
|
|
420
|
+
get: function () { return chunkPK5H5SVS_cjs.Composer; }
|
|
421
421
|
});
|
|
422
422
|
Object.defineProperty(exports, "ComposerContainer", {
|
|
423
423
|
enumerable: true,
|
|
424
|
-
get: function () { return
|
|
424
|
+
get: function () { return chunkPK5H5SVS_cjs.ComposerContainer; }
|
|
425
425
|
});
|
|
426
426
|
Object.defineProperty(exports, "ComposerDock", {
|
|
427
427
|
enumerable: true,
|
|
428
|
-
get: function () { return
|
|
428
|
+
get: function () { return chunkPK5H5SVS_cjs.ComposerDock; }
|
|
429
429
|
});
|
|
430
430
|
Object.defineProperty(exports, "ComposerSend", {
|
|
431
431
|
enumerable: true,
|
|
432
|
-
get: function () { return
|
|
432
|
+
get: function () { return chunkPK5H5SVS_cjs.ComposerSend; }
|
|
433
433
|
});
|
|
434
434
|
Object.defineProperty(exports, "ComposerVoiceButton", {
|
|
435
435
|
enumerable: true,
|
|
436
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunkPK5H5SVS_cjs.ComposerVoiceButton; }
|
|
437
437
|
});
|
|
438
438
|
Object.defineProperty(exports, "DEFAULT_COMPOSER_LABELS", {
|
|
439
439
|
enumerable: true,
|
|
440
|
-
get: function () { return
|
|
440
|
+
get: function () { return chunkPK5H5SVS_cjs.DEFAULT_COMPOSER_LABELS; }
|
|
441
441
|
});
|
|
442
442
|
Object.defineProperty(exports, "DEFAULT_MESSAGE_LABELS", {
|
|
443
443
|
enumerable: true,
|
|
444
|
-
get: function () { return
|
|
444
|
+
get: function () { return chunkPK5H5SVS_cjs.DEFAULT_MESSAGE_LABELS; }
|
|
445
445
|
});
|
|
446
446
|
Object.defineProperty(exports, "DEFAULT_MESSAGE_LIST_LABELS", {
|
|
447
447
|
enumerable: true,
|
|
448
|
-
get: function () { return
|
|
448
|
+
get: function () { return chunkPK5H5SVS_cjs.DEFAULT_MESSAGE_LIST_LABELS; }
|
|
449
449
|
});
|
|
450
450
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_STEP_CHIP_LABELS", {
|
|
451
451
|
enumerable: true,
|
|
452
|
-
get: function () { return
|
|
452
|
+
get: function () { return chunkPK5H5SVS_cjs.DEFAULT_WORKFLOW_STEP_CHIP_LABELS; }
|
|
453
453
|
});
|
|
454
454
|
Object.defineProperty(exports, "Message", {
|
|
455
455
|
enumerable: true,
|
|
456
|
-
get: function () { return
|
|
456
|
+
get: function () { return chunkPK5H5SVS_cjs.Message; }
|
|
457
457
|
});
|
|
458
458
|
Object.defineProperty(exports, "MessageActionButton", {
|
|
459
459
|
enumerable: true,
|
|
460
|
-
get: function () { return
|
|
460
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageActionButton; }
|
|
461
461
|
});
|
|
462
462
|
Object.defineProperty(exports, "MessageActionMenu", {
|
|
463
463
|
enumerable: true,
|
|
464
|
-
get: function () { return
|
|
464
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageActionMenu; }
|
|
465
465
|
});
|
|
466
466
|
Object.defineProperty(exports, "MessageAuthor", {
|
|
467
467
|
enumerable: true,
|
|
468
|
-
get: function () { return
|
|
468
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageAuthor; }
|
|
469
469
|
});
|
|
470
470
|
Object.defineProperty(exports, "MessageBody", {
|
|
471
471
|
enumerable: true,
|
|
472
|
-
get: function () { return
|
|
472
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageBody; }
|
|
473
473
|
});
|
|
474
474
|
Object.defineProperty(exports, "MessageBubble", {
|
|
475
475
|
enumerable: true,
|
|
476
|
-
get: function () { return
|
|
476
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageBubble; }
|
|
477
477
|
});
|
|
478
478
|
Object.defineProperty(exports, "MessageByline", {
|
|
479
479
|
enumerable: true,
|
|
480
|
-
get: function () { return
|
|
480
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageByline; }
|
|
481
481
|
});
|
|
482
482
|
Object.defineProperty(exports, "MessageContent", {
|
|
483
483
|
enumerable: true,
|
|
484
|
-
get: function () { return
|
|
484
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageContent; }
|
|
485
485
|
});
|
|
486
486
|
Object.defineProperty(exports, "MessageFooter", {
|
|
487
487
|
enumerable: true,
|
|
488
|
-
get: function () { return
|
|
488
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageFooter; }
|
|
489
489
|
});
|
|
490
490
|
Object.defineProperty(exports, "MessageList", {
|
|
491
491
|
enumerable: true,
|
|
492
|
-
get: function () { return
|
|
492
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageList; }
|
|
493
493
|
});
|
|
494
494
|
Object.defineProperty(exports, "MessageListEmpty", {
|
|
495
495
|
enumerable: true,
|
|
496
|
-
get: function () { return
|
|
496
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageListEmpty; }
|
|
497
497
|
});
|
|
498
498
|
Object.defineProperty(exports, "MessageListRoot", {
|
|
499
499
|
enumerable: true,
|
|
500
|
-
get: function () { return
|
|
500
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageListRoot; }
|
|
501
501
|
});
|
|
502
502
|
Object.defineProperty(exports, "MessageNarration", {
|
|
503
503
|
enumerable: true,
|
|
504
|
-
get: function () { return
|
|
504
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageNarration; }
|
|
505
505
|
});
|
|
506
506
|
Object.defineProperty(exports, "MessageRoot", {
|
|
507
507
|
enumerable: true,
|
|
508
|
-
get: function () { return
|
|
508
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageRoot; }
|
|
509
509
|
});
|
|
510
510
|
Object.defineProperty(exports, "MessageSubagentBadge", {
|
|
511
511
|
enumerable: true,
|
|
512
|
-
get: function () { return
|
|
512
|
+
get: function () { return chunkPK5H5SVS_cjs.MessageSubagentBadge; }
|
|
513
513
|
});
|
|
514
514
|
Object.defineProperty(exports, "ScrollToBottom", {
|
|
515
515
|
enumerable: true,
|
|
516
|
-
get: function () { return
|
|
516
|
+
get: function () { return chunkPK5H5SVS_cjs.ScrollToBottom; }
|
|
517
517
|
});
|
|
518
518
|
Object.defineProperty(exports, "WorkflowStepChip", {
|
|
519
519
|
enumerable: true,
|
|
520
|
-
get: function () { return
|
|
520
|
+
get: function () { return chunkPK5H5SVS_cjs.WorkflowStepChip; }
|
|
521
521
|
});
|
|
522
522
|
Object.defineProperty(exports, "toSpeakableText", {
|
|
523
523
|
enumerable: true,
|
|
524
|
-
get: function () { return
|
|
524
|
+
get: function () { return chunkPK5H5SVS_cjs.toSpeakableText; }
|
|
525
525
|
});
|
|
526
526
|
Object.defineProperty(exports, "useMentionAutocomplete", {
|
|
527
527
|
enumerable: true,
|
|
528
|
-
get: function () { return
|
|
528
|
+
get: function () { return chunkPK5H5SVS_cjs.useMentionAutocomplete; }
|
|
529
529
|
});
|
|
530
530
|
Object.defineProperty(exports, "useStreamAnnouncement", {
|
|
531
531
|
enumerable: true,
|
|
532
|
-
get: function () { return
|
|
532
|
+
get: function () { return chunkPK5H5SVS_cjs.useStreamAnnouncement; }
|
|
533
533
|
});
|
|
534
534
|
Object.defineProperty(exports, "DEFAULT_SLASH_MENU_LABELS", {
|
|
535
535
|
enumerable: true,
|
|
@@ -553,15 +553,15 @@ Object.defineProperty(exports, "parseSlashToken", {
|
|
|
553
553
|
});
|
|
554
554
|
Object.defineProperty(exports, "DOC_ID_IN_HREF", {
|
|
555
555
|
enumerable: true,
|
|
556
|
-
get: function () { return
|
|
556
|
+
get: function () { return chunkO2NHBB3D_cjs.DOC_ID_IN_HREF; }
|
|
557
557
|
});
|
|
558
558
|
Object.defineProperty(exports, "rehypeDocEntityPills", {
|
|
559
559
|
enumerable: true,
|
|
560
|
-
get: function () { return
|
|
560
|
+
get: function () { return chunkO2NHBB3D_cjs.rehypeDocEntityPills; }
|
|
561
561
|
});
|
|
562
562
|
Object.defineProperty(exports, "workspaceDocIdFromHref", {
|
|
563
563
|
enumerable: true,
|
|
564
|
-
get: function () { return
|
|
564
|
+
get: function () { return chunkO2NHBB3D_cjs.workspaceDocIdFromHref; }
|
|
565
565
|
});
|
|
566
566
|
Object.defineProperty(exports, "DEFAULT_MENTION_LABELS", {
|
|
567
567
|
enumerable: true,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { ENTITY_ID_SOURCE } from "../connection/conversation/entity-references.js";
|
|
3
|
+
const DOC_ID_PATTERN = new RegExp(`\\b(${ENTITY_ID_SOURCE})\\b`);
|
|
3
4
|
const MAX_CACHE_ENTRIES = 512;
|
|
4
5
|
const textCache = /* @__PURE__ */ new Map();
|
|
5
6
|
function cacheGet(key) {
|
|
@@ -32,7 +33,7 @@ function buildReplacementNodes(text) {
|
|
|
32
33
|
newNodes.push({
|
|
33
34
|
type: "element",
|
|
34
35
|
tagName: "span",
|
|
35
|
-
properties: m[1].startsWith("eml-") ? { dataMailId: m[1] } : { dataDocId: m[1] },
|
|
36
|
+
properties: m[1].startsWith("eml-") ? { dataMailId: m[1] } : m[1].startsWith("doc-") ? { dataDocId: m[1] } : { dataEntityId: m[1] },
|
|
36
37
|
children: []
|
|
37
38
|
});
|
|
38
39
|
lastIndex = m.index + m[0].length;
|
|
@@ -45,7 +46,8 @@ function buildReplacementNodes(text) {
|
|
|
45
46
|
function transformChildren(parent) {
|
|
46
47
|
const children = parent.children;
|
|
47
48
|
if (!children) return;
|
|
48
|
-
const inCode = parent.tagName === "code" || parent.tagName === "pre";
|
|
49
|
+
const inCode = parent.tagName === "code" || parent.tagName === "pre" || parent.tagName === "a";
|
|
50
|
+
if (inCode) return;
|
|
49
51
|
for (let index = 0; index < children.length; index++) {
|
|
50
52
|
const node = children[index];
|
|
51
53
|
if (node.type !== "text") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/chat/rehype-doc-entity-pills.ts"],
|
|
4
|
-
"sourcesContent": ["// A document (doc-\u2026) or an email of the person's own mailbox (eml-\u2026): both render as entity pills.\n// Exactly eight alphanumerics, as every id the server makes: a streaming answer shows an id a few\n// characters at a time, and a partial one (\"doc-e\") would be looked up and 404.\nconst DOC_ID_PATTERN =
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { ENTITY_ID_SOURCE } from '../connection/conversation/entity-references'\n// A document (doc-\u2026) or an email of the person's own mailbox (eml-\u2026): both render as entity pills.\n// Exactly eight alphanumerics, as every id the server makes: a streaming answer shows an id a few\n// characters at a time, and a partial one (\"doc-e\") would be looked up and 404.\nconst DOC_ID_PATTERN = new RegExp(`\\\\b(${ENTITY_ID_SOURCE})\\\\b`)\n\n/**\n * Per-text-node transform cache.\n *\n * Keyed by the raw text-node value. For the vast majority of text nodes \u2014 those\n * without any `doc-\u2026` substring \u2014 we memoize the \"no match\" decision so a repeat\n * render of an unchanged message skips the regex entirely. When a node does\n * contain doc IDs we also cache the pre-built replacement children, so repeated\n * renders of a finished message don't re-scan or re-allocate.\n *\n * Uses a bounded LRU-ish Map \u2014 oldest entries are evicted when we exceed the\n * cap. This is a module singleton; across the app the hottest entries (tool\n * responses, common answer fragments) end up cached permanently for the session.\n */\nconst MAX_CACHE_ENTRIES = 512\nconst textCache = new Map<string, ReadonlyArray<unknown> | null>()\n\nfunction cacheGet(key: string): ReadonlyArray<unknown> | null | undefined {\n if (!textCache.has(key)) return undefined\n const value = textCache.get(key)\n // Touch to move it to the end of the insertion order (LRU).\n textCache.delete(key)\n textCache.set(key, value as ReadonlyArray<unknown> | null)\n return value\n}\n\nfunction cacheSet(key: string, value: ReadonlyArray<unknown> | null): void {\n if (textCache.size >= MAX_CACHE_ENTRIES) {\n const oldest = textCache.keys().next().value\n if (oldest !== undefined) textCache.delete(oldest)\n }\n textCache.set(key, value)\n}\n\n/**\n * Test-only helper to reset the memoization cache.\n * @internal\n */\nexport function __resetDocEntityPillCache(): void {\n textCache.clear()\n}\n\nfunction buildReplacementNodes(text: string): ReadonlyArray<unknown> | null {\n if (!DOC_ID_PATTERN.test(text)) return null\n\n const globalPattern = new RegExp(DOC_ID_PATTERN.source, 'g')\n const newNodes: unknown[] = []\n let lastIndex = 0\n let m: RegExpExecArray | null\n\n while ((m = globalPattern.exec(text)) !== null) {\n if (m.index > lastIndex) {\n newNodes.push({ type: 'text', value: text.slice(lastIndex, m.index) })\n }\n newNodes.push({\n type: 'element',\n tagName: 'span',\n properties: m[1].startsWith('eml-')\n ? { dataMailId: m[1] }\n : m[1].startsWith('doc-')\n ? { dataDocId: m[1] }\n : { dataEntityId: m[1] },\n children: [],\n })\n lastIndex = m.index + m[0].length\n }\n\n if (lastIndex < text.length) {\n newNodes.push({ type: 'text', value: text.slice(lastIndex) })\n }\n\n return newNodes\n}\n\n/**\n * Rehype plugin that detects doc external IDs in text nodes and converts them to\n * <span data-doc-id=\"...\"> elements for rendering as entity pills in MarkdownRenderer.\n *\n * Skips text inside code/pre elements so IDs in code blocks are left as plain text.\n *\n * Results are memoized per text-node value \u2014 stable messages re-use the cached\n * decision instead of re-running the regex on every render.\n */\n/** A node of the HTML tree (hast), as far as the transform reads it. */\ninterface TreeNode {\n type: string\n tagName?: string\n value?: string\n children?: unknown[]\n}\n\n/** Replace the doc/mail ids in the text nodes under `parent` (code and pre are left alone). */\nfunction transformChildren(parent: TreeNode): void {\n const children = parent.children\n if (!children) return\n const inCode = parent.tagName === 'code' || parent.tagName === 'pre' || parent.tagName === 'a'\n if (inCode) return\n for (let index = 0; index < children.length; index++) {\n const node = children[index] as TreeNode\n if (node.type !== 'text') {\n transformChildren(node)\n continue\n }\n if (inCode) continue\n const text = node.value ?? ''\n let replacement = cacheGet(text)\n if (replacement === undefined) {\n replacement = buildReplacementNodes(text)\n cacheSet(text, replacement)\n }\n if (replacement === null) continue\n // Clone cached nodes so each tree gets its own object identity. AST transforms by other\n // plugins may otherwise mutate shared references.\n const cloned = replacement.map((n) =>\n typeof n === 'object' && n !== null ? { ...(n as object) } : n\n )\n children.splice(index, 1, ...cloned)\n index += cloned.length - 1\n }\n}\n\nexport function rehypeDocEntityPills() {\n return (tree: TreeNode) => {\n transformChildren(tree)\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,wBAAwB;AAIjC,MAAM,iBAAiB,IAAI,OAAO,OAAO,gBAAgB,MAAM;AAe/D,MAAM,oBAAoB;AAC1B,MAAM,YAAY,oBAAI,IAA2C;AAEjE,SAAS,SAAS,KAAwD;AACxE,MAAI,CAAC,UAAU,IAAI,GAAG,EAAG,QAAO;AAChC,QAAM,QAAQ,UAAU,IAAI,GAAG;AAE/B,YAAU,OAAO,GAAG;AACpB,YAAU,IAAI,KAAK,KAAsC;AACzD,SAAO;AACT;AAEA,SAAS,SAAS,KAAa,OAA4C;AACzE,MAAI,UAAU,QAAQ,mBAAmB;AACvC,UAAM,SAAS,UAAU,KAAK,EAAE,KAAK,EAAE;AACvC,QAAI,WAAW,OAAW,WAAU,OAAO,MAAM;AAAA,EACnD;AACA,YAAU,IAAI,KAAK,KAAK;AAC1B;AAMO,SAAS,4BAAkC;AAChD,YAAU,MAAM;AAClB;AAEA,SAAS,sBAAsB,MAA6C;AAC1E,MAAI,CAAC,eAAe,KAAK,IAAI,EAAG,QAAO;AAEvC,QAAM,gBAAgB,IAAI,OAAO,eAAe,QAAQ,GAAG;AAC3D,QAAM,WAAsB,CAAC;AAC7B,MAAI,YAAY;AAChB,MAAI;AAEJ,UAAQ,IAAI,cAAc,KAAK,IAAI,OAAO,MAAM;AAC9C,QAAI,EAAE,QAAQ,WAAW;AACvB,eAAS,KAAK,EAAE,MAAM,QAAQ,OAAO,KAAK,MAAM,WAAW,EAAE,KAAK,EAAE,CAAC;AAAA,IACvE;AACA,aAAS,KAAK;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,YAAY,EAAE,CAAC,EAAE,WAAW,MAAM,IAC9B,EAAE,YAAY,EAAE,CAAC,EAAE,IACnB,EAAE,CAAC,EAAE,WAAW,MAAM,IACpB,EAAE,WAAW,EAAE,CAAC,EAAE,IAClB,EAAE,cAAc,EAAE,CAAC,EAAE;AAAA,MAC3B,UAAU,CAAC;AAAA,IACb,CAAC;AACD,gBAAY,EAAE,QAAQ,EAAE,CAAC,EAAE;AAAA,EAC7B;AAEA,MAAI,YAAY,KAAK,QAAQ;AAC3B,aAAS,KAAK,EAAE,MAAM,QAAQ,OAAO,KAAK,MAAM,SAAS,EAAE,CAAC;AAAA,EAC9D;AAEA,SAAO;AACT;AAoBA,SAAS,kBAAkB,QAAwB;AACjD,QAAM,WAAW,OAAO;AACxB,MAAI,CAAC,SAAU;AACf,QAAM,SAAS,OAAO,YAAY,UAAU,OAAO,YAAY,SAAS,OAAO,YAAY;AAC3F,MAAI,OAAQ;AACZ,WAAS,QAAQ,GAAG,QAAQ,SAAS,QAAQ,SAAS;AACpD,UAAM,OAAO,SAAS,KAAK;AAC3B,QAAI,KAAK,SAAS,QAAQ;AACxB,wBAAkB,IAAI;AACtB;AAAA,IACF;AACA,QAAI,OAAQ;AACZ,UAAM,OAAO,KAAK,SAAS;AAC3B,QAAI,cAAc,SAAS,IAAI;AAC/B,QAAI,gBAAgB,QAAW;AAC7B,oBAAc,sBAAsB,IAAI;AACxC,eAAS,MAAM,WAAW;AAAA,IAC5B;AACA,QAAI,gBAAgB,KAAM;AAG1B,UAAM,SAAS,YAAY;AAAA,MAAI,CAAC,MAC9B,OAAO,MAAM,YAAY,MAAM,OAAO,EAAE,GAAI,EAAa,IAAI;AAAA,IAC/D;AACA,aAAS,OAAO,OAAO,GAAG,GAAG,MAAM;AACnC,aAAS,OAAO,SAAS;AAAA,EAC3B;AACF;AAEO,SAAS,uBAAuB;AACrC,SAAO,CAAC,SAAmB;AACzB,sBAAkB,IAAI;AAAA,EACxB;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|