@truefoundry/trueforge 0.186.0-rc.2 → 0.186.0-rc.3
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/_frontend/assets/{AgentCodeSnippets-D2J3IH37-CQZZoOBC.js → AgentCodeSnippets-D2J3IH37-B16-5UJ8.js} +1 -1
- package/dist/_frontend/assets/AgentCodeSnippets-D2J3IH37-B16-5UJ8.js.br +0 -0
- package/dist/_frontend/assets/AgentCodeSnippets-D2J3IH37-B16-5UJ8.js.gz +0 -0
- package/dist/_frontend/assets/{AgentMetricChart-TCZEIIUV-5Rtf3TvY.js → AgentMetricChart-TCZEIIUV-DbrMMNdJ.js} +1 -1
- package/dist/_frontend/assets/AgentMetricChart-TCZEIIUV-DbrMMNdJ.js.br +0 -0
- package/dist/_frontend/assets/AgentMetricChart-TCZEIIUV-DbrMMNdJ.js.gz +0 -0
- package/dist/_frontend/assets/{AgentOverview-ZSZENAFZ-D0HM5BSW.js → AgentOverview-ZSZENAFZ-l5cpV4_J.js} +1 -1
- package/dist/_frontend/assets/AgentOverview-ZSZENAFZ-l5cpV4_J.js.br +0 -0
- package/dist/_frontend/assets/AgentOverview-ZSZENAFZ-l5cpV4_J.js.gz +0 -0
- package/dist/_frontend/assets/{AgentSessionEventTimeline-26TTGY3F-6FMUgy7r.js → AgentSessionEventTimeline-26TTGY3F-CsLh4dWe.js} +1 -1
- package/dist/_frontend/assets/AgentSessionEventTimeline-26TTGY3F-CsLh4dWe.js.br +0 -0
- package/dist/_frontend/assets/AgentSessionEventTimeline-26TTGY3F-CsLh4dWe.js.gz +0 -0
- package/dist/_frontend/assets/{AgentSessionEventTimelineChart-SV6ZYNU2-CNDMPnla.js → AgentSessionEventTimelineChart-SV6ZYNU2-DcBfkYyl.js} +1 -1
- package/dist/_frontend/assets/AgentSessionEventTimelineChart-SV6ZYNU2-DcBfkYyl.js.br +0 -0
- package/dist/_frontend/assets/AgentSessionEventTimelineChart-SV6ZYNU2-DcBfkYyl.js.gz +0 -0
- package/dist/_frontend/assets/{AgentSessions-W2EDVBCS-lqR7dkcO.js → AgentSessions-W2EDVBCS-CgUHXoz0.js} +1 -1
- package/dist/_frontend/assets/AgentSessions-W2EDVBCS-CgUHXoz0.js.br +0 -0
- package/dist/_frontend/assets/{AgentSessions-W2EDVBCS-lqR7dkcO.js.gz → AgentSessions-W2EDVBCS-CgUHXoz0.js.gz} +0 -0
- package/dist/_frontend/assets/{ConnectorSettings-E3KBW7HI-CMwC3bcI.js → ConnectorSettings-E3KBW7HI-Bqrsm5Dp.js} +1 -1
- package/dist/_frontend/assets/ConnectorSettings-E3KBW7HI-Bqrsm5Dp.js.br +0 -0
- package/dist/_frontend/assets/ConnectorSettings-E3KBW7HI-Bqrsm5Dp.js.gz +0 -0
- package/dist/_frontend/assets/{DockLayout-OYD7YJSD-CqCN5TbW.js → DockLayout-OYD7YJSD-CKhifnZT.js} +1 -1
- package/dist/_frontend/assets/{DrawerLayout-IGDKPIOC-CF0zSf6U.js → DrawerLayout-IGDKPIOC-BIDPsNsC.js} +2 -2
- package/dist/_frontend/assets/DrawerLayout-IGDKPIOC-BIDPsNsC.js.br +0 -0
- package/dist/_frontend/assets/DrawerLayout-IGDKPIOC-BIDPsNsC.js.gz +0 -0
- package/dist/_frontend/assets/{EnvironmentsPage-BUA2EGXE-Dt-L2w8t.js → EnvironmentsPage-BUA2EGXE-CcV5njoc.js} +1 -1
- package/dist/_frontend/assets/EnvironmentsPage-BUA2EGXE-CcV5njoc.js.br +0 -0
- package/dist/_frontend/assets/EnvironmentsPage-BUA2EGXE-CcV5njoc.js.gz +0 -0
- package/dist/_frontend/assets/{MemorySettings-Y6HNEYIW-DL6nR8e0.js → MemorySettings-Y6HNEYIW-O-E_902u.js} +1 -1
- package/dist/_frontend/assets/MemorySettings-Y6HNEYIW-O-E_902u.js.br +0 -0
- package/dist/_frontend/assets/MemorySettings-Y6HNEYIW-O-E_902u.js.gz +0 -0
- package/dist/_frontend/assets/{ModelSettings-3RSWQ5WD-YyI5xGN4.js → ModelSettings-3RSWQ5WD-BUbTYQmV.js} +1 -1
- package/dist/_frontend/assets/ModelSettings-3RSWQ5WD-BUbTYQmV.js.br +0 -0
- package/dist/_frontend/assets/ModelSettings-3RSWQ5WD-BUbTYQmV.js.gz +0 -0
- package/dist/_frontend/assets/{SandboxSettings-YIEGCYQO-Bn_-fbRJ.js → SandboxSettings-YIEGCYQO-CunudcIx.js} +1 -1
- package/dist/_frontend/assets/SandboxSettings-YIEGCYQO-CunudcIx.js.br +0 -0
- package/dist/_frontend/assets/SandboxSettings-YIEGCYQO-CunudcIx.js.gz +0 -0
- package/dist/_frontend/assets/{SchedulesPage-OVDMYD6Q-DWmVgOrq.js → SchedulesPage-OVDMYD6Q-BKu9sdHs.js} +1 -1
- package/dist/_frontend/assets/SchedulesPage-OVDMYD6Q-BKu9sdHs.js.br +0 -0
- package/dist/_frontend/assets/SchedulesPage-OVDMYD6Q-BKu9sdHs.js.gz +0 -0
- package/dist/_frontend/assets/{SettingsBuilder-6WNST3GI-CQudqTjg.js → SettingsBuilder-6WNST3GI-DtS3ib0p.js} +2 -2
- package/dist/_frontend/assets/SettingsBuilder-6WNST3GI-DtS3ib0p.js.br +0 -0
- package/dist/_frontend/assets/SettingsBuilder-6WNST3GI-DtS3ib0p.js.gz +0 -0
- package/dist/_frontend/assets/{ShellRouteSync-4T763MWC-BOFQkqAR.js → ShellRouteSync-4T763MWC-DJolNJIN.js} +1 -1
- package/dist/_frontend/assets/ShellRouteSync-4T763MWC-DJolNJIN.js.br +0 -0
- package/dist/_frontend/assets/ShellRouteSync-4T763MWC-DJolNJIN.js.gz +0 -0
- package/dist/_frontend/assets/{SidebarLayout-YWA6PPZM-CFjD1Kmo.js → SidebarLayout-YWA6PPZM-BMDCIIhu.js} +2 -2
- package/dist/_frontend/assets/SidebarLayout-YWA6PPZM-BMDCIIhu.js.br +0 -0
- package/dist/_frontend/assets/SidebarLayout-YWA6PPZM-BMDCIIhu.js.gz +0 -0
- package/dist/_frontend/assets/{SkillSettings-XLK6REIA-CJVGKalf.js → SkillSettings-XLK6REIA-UZs1mGXm.js} +1 -1
- package/dist/_frontend/assets/SkillSettings-XLK6REIA-UZs1mGXm.js.br +0 -0
- package/dist/_frontend/assets/SkillSettings-XLK6REIA-UZs1mGXm.js.gz +0 -0
- package/dist/_frontend/assets/{TrueForgeUIWithRouter-LFJ4E5VL-o7uC8O0Z.js → TrueForgeUIWithRouter-LFJ4E5VL-D9VrxQsf.js} +1 -1
- package/dist/_frontend/assets/{WebSearchSettings-PKYKXD26-Ccfvu3fp.js → WebSearchSettings-PKYKXD26-vhZuRM_V.js} +1 -1
- package/dist/_frontend/assets/WebSearchSettings-PKYKXD26-vhZuRM_V.js.br +0 -0
- package/dist/_frontend/assets/WebSearchSettings-PKYKXD26-vhZuRM_V.js.gz +0 -0
- package/dist/_frontend/assets/{WidgetLayout-HQZFWVZ2-CW9j2zi5.js → WidgetLayout-HQZFWVZ2-Cd_pMqY7.js} +1 -1
- package/dist/_frontend/assets/WidgetLayout-HQZFWVZ2-Cd_pMqY7.js.br +0 -0
- package/dist/_frontend/assets/WidgetLayout-HQZFWVZ2-Cd_pMqY7.js.gz +0 -0
- package/dist/_frontend/assets/{chunk-HED32BFK-CHoNWtNi.js → chunk-HED32BFK-BfnKrlUJ.js} +2 -2
- package/dist/_frontend/assets/chunk-HED32BFK-BfnKrlUJ.js.br +0 -0
- package/dist/_frontend/assets/chunk-HED32BFK-BfnKrlUJ.js.gz +0 -0
- package/dist/_frontend/assets/{chunk-HK4WITDD-Dk6A8b9_.js → chunk-HK4WITDD-DSX_ymmz.js} +1 -1
- package/dist/_frontend/assets/chunk-HK4WITDD-DSX_ymmz.js.br +0 -0
- package/dist/_frontend/assets/chunk-HK4WITDD-DSX_ymmz.js.gz +0 -0
- package/dist/_frontend/assets/{chunk-HWOHXUGH-IwYpHY-Y.js → chunk-HWOHXUGH-KXcUS5XW.js} +1 -1
- package/dist/_frontend/assets/chunk-HWOHXUGH-KXcUS5XW.js.br +0 -0
- package/dist/_frontend/assets/chunk-HWOHXUGH-KXcUS5XW.js.gz +0 -0
- package/dist/_frontend/assets/{chunk-LFIIKLPG-gJeIso6M.js → chunk-LFIIKLPG-DcaznAz-.js} +1 -1
- package/dist/_frontend/assets/{chunk-OB3PAWPO-B6HZEUGp.js → chunk-OB3PAWPO-Bm8RoZbE.js} +1 -1
- package/dist/_frontend/assets/chunk-OB3PAWPO-Bm8RoZbE.js.br +0 -0
- package/dist/_frontend/assets/chunk-OB3PAWPO-Bm8RoZbE.js.gz +0 -0
- package/dist/_frontend/assets/{chunk-OXW7TUTC-moy4-cpX.js → chunk-OXW7TUTC-UBWEIyxU.js} +1 -1
- package/dist/_frontend/assets/chunk-OXW7TUTC-UBWEIyxU.js.br +0 -0
- package/dist/_frontend/assets/chunk-OXW7TUTC-UBWEIyxU.js.gz +0 -0
- package/dist/_frontend/assets/{cssMode-BHHgzHoT.js → cssMode-CKX3vknZ.js} +1 -1
- package/dist/_frontend/assets/cssMode-CKX3vknZ.js.br +6 -0
- package/dist/_frontend/assets/cssMode-CKX3vknZ.js.gz +0 -0
- package/dist/_frontend/assets/{freemarker2-tWNHna9o.js → freemarker2-BxWZ5P9I.js} +1 -1
- package/dist/_frontend/assets/freemarker2-BxWZ5P9I.js.br +0 -0
- package/dist/_frontend/assets/freemarker2-BxWZ5P9I.js.gz +0 -0
- package/dist/_frontend/assets/{handlebars-YCt9F20a.js → handlebars-By1rPqIP.js} +1 -1
- package/dist/_frontend/assets/handlebars-By1rPqIP.js.br +0 -0
- package/dist/_frontend/assets/handlebars-By1rPqIP.js.gz +0 -0
- package/dist/_frontend/assets/{html-Vo6CgJvZ.js → html-DV1yPfEc.js} +1 -1
- package/dist/_frontend/assets/html-DV1yPfEc.js.br +0 -0
- package/dist/_frontend/assets/html-DV1yPfEc.js.gz +0 -0
- package/dist/_frontend/assets/{htmlMode-BkGzSsp7.js → htmlMode-Elrz_gVm.js} +1 -1
- package/dist/_frontend/assets/htmlMode-Elrz_gVm.js.br +0 -0
- package/dist/_frontend/assets/htmlMode-Elrz_gVm.js.gz +0 -0
- package/dist/_frontend/assets/{index-CdSOK6zy.js → index-DUcQ3h0s.js} +3 -3
- package/dist/_frontend/assets/index-DUcQ3h0s.js.br +0 -0
- package/dist/_frontend/assets/index-DUcQ3h0s.js.gz +0 -0
- package/dist/_frontend/assets/{index-DY4Vt5qS.js → index-aDyvsTqL.js} +5 -5
- package/dist/_frontend/assets/index-aDyvsTqL.js.br +0 -0
- package/dist/_frontend/assets/index-aDyvsTqL.js.gz +0 -0
- package/dist/_frontend/assets/{javascript-hhlexC1d.js → javascript-DItLzBZi.js} +1 -1
- package/dist/_frontend/assets/{jsonMode-CmaZrTmo.js → jsonMode-DqOjSnL2.js} +1 -1
- package/dist/_frontend/assets/jsonMode-DqOjSnL2.js.br +0 -0
- package/dist/_frontend/assets/jsonMode-DqOjSnL2.js.gz +0 -0
- package/dist/_frontend/assets/{liquid-B12Ow-wY.js → liquid-DLYzaUKm.js} +1 -1
- package/dist/_frontend/assets/liquid-DLYzaUKm.js.br +0 -0
- package/dist/_frontend/assets/liquid-DLYzaUKm.js.gz +0 -0
- package/dist/_frontend/assets/{lspLanguageFeatures-BAdtNMdy.js → lspLanguageFeatures-PB1varoG.js} +1 -1
- package/dist/_frontend/assets/lspLanguageFeatures-PB1varoG.js.br +0 -0
- package/dist/_frontend/assets/lspLanguageFeatures-PB1varoG.js.gz +0 -0
- package/dist/_frontend/assets/{mdx-DnqsUsp9.js → mdx-DHNySSed.js} +1 -1
- package/dist/_frontend/assets/mdx-DHNySSed.js.br +0 -0
- package/dist/_frontend/assets/mdx-DHNySSed.js.gz +0 -0
- package/dist/_frontend/assets/{python-zclzTpCV.js → python-yMHIyjYS.js} +1 -1
- package/dist/_frontend/assets/python-yMHIyjYS.js.br +0 -0
- package/dist/_frontend/assets/python-yMHIyjYS.js.gz +0 -0
- package/dist/_frontend/assets/{razor-DXCJzDhT.js → razor-Bnk6A3iA.js} +1 -1
- package/dist/_frontend/assets/razor-Bnk6A3iA.js.br +0 -0
- package/dist/_frontend/assets/razor-Bnk6A3iA.js.gz +0 -0
- package/dist/_frontend/assets/{tsMode-ba0WSSwR.js → tsMode-kj0LQhk5.js} +1 -1
- package/dist/_frontend/assets/tsMode-kj0LQhk5.js.br +0 -0
- package/dist/_frontend/assets/tsMode-kj0LQhk5.js.gz +0 -0
- package/dist/_frontend/assets/{typescript-Cxw8coCj.js → typescript-D7hMcG1O.js} +1 -1
- package/dist/_frontend/assets/typescript-D7hMcG1O.js.br +0 -0
- package/dist/_frontend/assets/typescript-D7hMcG1O.js.gz +0 -0
- package/dist/_frontend/assets/{workers-RQlmz_Lv.js → workers-CGQFLoPd.js} +1 -1
- package/dist/_frontend/assets/workers-CGQFLoPd.js.br +5 -0
- package/dist/_frontend/assets/workers-CGQFLoPd.js.gz +0 -0
- package/dist/_frontend/assets/{xml-Bb7-oq8W.js → xml-Bm7N302L.js} +1 -1
- package/dist/_frontend/assets/xml-Bm7N302L.js.br +0 -0
- package/dist/_frontend/assets/xml-Bm7N302L.js.gz +0 -0
- package/dist/_frontend/assets/{yaml-DqJHVcwV.js → yaml-DauWP5pc.js} +1 -1
- package/dist/_frontend/assets/yaml-DauWP5pc.js.br +0 -0
- package/dist/_frontend/assets/yaml-DauWP5pc.js.gz +0 -0
- package/dist/_frontend/index.html +1 -1
- package/package.json +2 -2
- package/dist/_frontend/assets/AgentCodeSnippets-D2J3IH37-CQZZoOBC.js.br +0 -0
- package/dist/_frontend/assets/AgentCodeSnippets-D2J3IH37-CQZZoOBC.js.gz +0 -0
- package/dist/_frontend/assets/AgentMetricChart-TCZEIIUV-5Rtf3TvY.js.br +0 -0
- package/dist/_frontend/assets/AgentMetricChart-TCZEIIUV-5Rtf3TvY.js.gz +0 -0
- package/dist/_frontend/assets/AgentOverview-ZSZENAFZ-D0HM5BSW.js.br +0 -0
- package/dist/_frontend/assets/AgentOverview-ZSZENAFZ-D0HM5BSW.js.gz +0 -0
- package/dist/_frontend/assets/AgentSessionEventTimeline-26TTGY3F-6FMUgy7r.js.br +0 -0
- package/dist/_frontend/assets/AgentSessionEventTimeline-26TTGY3F-6FMUgy7r.js.gz +0 -0
- package/dist/_frontend/assets/AgentSessionEventTimelineChart-SV6ZYNU2-CNDMPnla.js.br +0 -0
- package/dist/_frontend/assets/AgentSessionEventTimelineChart-SV6ZYNU2-CNDMPnla.js.gz +0 -0
- package/dist/_frontend/assets/AgentSessions-W2EDVBCS-lqR7dkcO.js.br +0 -0
- package/dist/_frontend/assets/ConnectorSettings-E3KBW7HI-CMwC3bcI.js.br +0 -0
- package/dist/_frontend/assets/ConnectorSettings-E3KBW7HI-CMwC3bcI.js.gz +0 -0
- package/dist/_frontend/assets/DrawerLayout-IGDKPIOC-CF0zSf6U.js.br +0 -0
- package/dist/_frontend/assets/DrawerLayout-IGDKPIOC-CF0zSf6U.js.gz +0 -0
- package/dist/_frontend/assets/EnvironmentsPage-BUA2EGXE-Dt-L2w8t.js.br +0 -0
- package/dist/_frontend/assets/EnvironmentsPage-BUA2EGXE-Dt-L2w8t.js.gz +0 -0
- package/dist/_frontend/assets/MemorySettings-Y6HNEYIW-DL6nR8e0.js.br +0 -0
- package/dist/_frontend/assets/MemorySettings-Y6HNEYIW-DL6nR8e0.js.gz +0 -0
- package/dist/_frontend/assets/ModelSettings-3RSWQ5WD-YyI5xGN4.js.br +0 -0
- package/dist/_frontend/assets/ModelSettings-3RSWQ5WD-YyI5xGN4.js.gz +0 -0
- package/dist/_frontend/assets/SandboxSettings-YIEGCYQO-Bn_-fbRJ.js.br +0 -0
- package/dist/_frontend/assets/SandboxSettings-YIEGCYQO-Bn_-fbRJ.js.gz +0 -0
- package/dist/_frontend/assets/SchedulesPage-OVDMYD6Q-DWmVgOrq.js.br +0 -0
- package/dist/_frontend/assets/SchedulesPage-OVDMYD6Q-DWmVgOrq.js.gz +0 -0
- package/dist/_frontend/assets/SettingsBuilder-6WNST3GI-CQudqTjg.js.br +0 -0
- package/dist/_frontend/assets/SettingsBuilder-6WNST3GI-CQudqTjg.js.gz +0 -0
- package/dist/_frontend/assets/ShellRouteSync-4T763MWC-BOFQkqAR.js.br +0 -0
- package/dist/_frontend/assets/ShellRouteSync-4T763MWC-BOFQkqAR.js.gz +0 -0
- package/dist/_frontend/assets/SidebarLayout-YWA6PPZM-CFjD1Kmo.js.br +0 -0
- package/dist/_frontend/assets/SidebarLayout-YWA6PPZM-CFjD1Kmo.js.gz +0 -0
- package/dist/_frontend/assets/SkillSettings-XLK6REIA-CJVGKalf.js.br +0 -0
- package/dist/_frontend/assets/SkillSettings-XLK6REIA-CJVGKalf.js.gz +0 -0
- package/dist/_frontend/assets/WebSearchSettings-PKYKXD26-Ccfvu3fp.js.br +0 -0
- package/dist/_frontend/assets/WebSearchSettings-PKYKXD26-Ccfvu3fp.js.gz +0 -0
- package/dist/_frontend/assets/WidgetLayout-HQZFWVZ2-CW9j2zi5.js.br +0 -0
- package/dist/_frontend/assets/WidgetLayout-HQZFWVZ2-CW9j2zi5.js.gz +0 -0
- package/dist/_frontend/assets/chunk-HED32BFK-CHoNWtNi.js.br +0 -0
- package/dist/_frontend/assets/chunk-HED32BFK-CHoNWtNi.js.gz +0 -0
- package/dist/_frontend/assets/chunk-HK4WITDD-Dk6A8b9_.js.br +0 -0
- package/dist/_frontend/assets/chunk-HK4WITDD-Dk6A8b9_.js.gz +0 -0
- package/dist/_frontend/assets/chunk-HWOHXUGH-IwYpHY-Y.js.br +0 -0
- package/dist/_frontend/assets/chunk-HWOHXUGH-IwYpHY-Y.js.gz +0 -0
- package/dist/_frontend/assets/chunk-OB3PAWPO-B6HZEUGp.js.br +0 -0
- package/dist/_frontend/assets/chunk-OB3PAWPO-B6HZEUGp.js.gz +0 -0
- package/dist/_frontend/assets/chunk-OXW7TUTC-moy4-cpX.js.br +0 -0
- package/dist/_frontend/assets/chunk-OXW7TUTC-moy4-cpX.js.gz +0 -0
- package/dist/_frontend/assets/cssMode-BHHgzHoT.js.br +0 -0
- package/dist/_frontend/assets/cssMode-BHHgzHoT.js.gz +0 -0
- package/dist/_frontend/assets/freemarker2-tWNHna9o.js.br +0 -0
- package/dist/_frontend/assets/freemarker2-tWNHna9o.js.gz +0 -0
- package/dist/_frontend/assets/handlebars-YCt9F20a.js.br +0 -0
- package/dist/_frontend/assets/handlebars-YCt9F20a.js.gz +0 -0
- package/dist/_frontend/assets/html-Vo6CgJvZ.js.br +0 -0
- package/dist/_frontend/assets/html-Vo6CgJvZ.js.gz +0 -0
- package/dist/_frontend/assets/htmlMode-BkGzSsp7.js.br +0 -0
- package/dist/_frontend/assets/htmlMode-BkGzSsp7.js.gz +0 -0
- package/dist/_frontend/assets/index-CdSOK6zy.js.br +0 -0
- package/dist/_frontend/assets/index-CdSOK6zy.js.gz +0 -0
- package/dist/_frontend/assets/index-DY4Vt5qS.js.br +0 -0
- package/dist/_frontend/assets/index-DY4Vt5qS.js.gz +0 -0
- package/dist/_frontend/assets/jsonMode-CmaZrTmo.js.br +0 -0
- package/dist/_frontend/assets/jsonMode-CmaZrTmo.js.gz +0 -0
- package/dist/_frontend/assets/liquid-B12Ow-wY.js.br +0 -0
- package/dist/_frontend/assets/liquid-B12Ow-wY.js.gz +0 -0
- package/dist/_frontend/assets/lspLanguageFeatures-BAdtNMdy.js.br +0 -0
- package/dist/_frontend/assets/lspLanguageFeatures-BAdtNMdy.js.gz +0 -0
- package/dist/_frontend/assets/mdx-DnqsUsp9.js.br +0 -0
- package/dist/_frontend/assets/mdx-DnqsUsp9.js.gz +0 -0
- package/dist/_frontend/assets/python-zclzTpCV.js.br +0 -0
- package/dist/_frontend/assets/python-zclzTpCV.js.gz +0 -0
- package/dist/_frontend/assets/razor-DXCJzDhT.js.br +0 -0
- package/dist/_frontend/assets/razor-DXCJzDhT.js.gz +0 -0
- package/dist/_frontend/assets/tsMode-ba0WSSwR.js.br +0 -0
- package/dist/_frontend/assets/tsMode-ba0WSSwR.js.gz +0 -0
- package/dist/_frontend/assets/typescript-Cxw8coCj.js.br +0 -0
- package/dist/_frontend/assets/typescript-Cxw8coCj.js.gz +0 -0
- package/dist/_frontend/assets/workers-RQlmz_Lv.js.br +0 -0
- package/dist/_frontend/assets/workers-RQlmz_Lv.js.gz +0 -0
- package/dist/_frontend/assets/xml-Bb7-oq8W.js.br +0 -0
- package/dist/_frontend/assets/xml-Bb7-oq8W.js.gz +0 -0
- package/dist/_frontend/assets/yaml-DqJHVcwV.js.br +0 -0
- package/dist/_frontend/assets/yaml-DqJHVcwV.js.gz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,a,j as o,T as n}from"./index-
|
|
1
|
+
import{r as t,a,j as o,T as n}from"./index-aDyvsTqL.js";import{B as u}from"./chunk-OB3PAWPO-Bm8RoZbE.js";function l({routes:e,...s}){const r=t.useMemo(()=>a(e),[e]);return o.jsx(u,{basename:r.basename||void 0,children:o.jsx(n,{...s,resolvedRoutes:r})})}export{l as TrueForgeUIWithRouter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as Z}from"./chunk-LFIIKLPG-
|
|
1
|
+
import{C as Z}from"./chunk-LFIIKLPG-DcaznAz-.js";import{ab as ee,b as ae,br as te,bz as se,p as re,q as ne,r as s,x as C,j as e,ao as le,I as F,E as B,_ as O,bG as ie,aa as ce}from"./index-aDyvsTqL.js";var oe=ce("h-11 shadow-sm"),de=({open:m,onOpenChange:p,onSave:k,title:l,description:n,requireApiKey:d=!0,busy:E=!1,error:r})=>{const[i,g]=s.useState(""),x=()=>{g("")};s.useEffect(()=>{m&&g("")},[m]);const w=c=>{c||x(),p(c)},v=i.trim(),y=!d||!!v,u=async c=>{if(c.preventDefault(),!(!y||E))try{await k({apiKey:v}),x(),p(!1)}catch{}};return e.jsx(ie,{open:m,onOpenChange:w,title:l,description:n,contentSized:!0,headerIcon:e.jsx("span",{className:"flex size-11 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(F,{name:"search",className:"size-6"})}),children:e.jsxs("form",{className:"flex flex-col overflow-y-auto p-5 md:p-6",onSubmit:u,children:[e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"web-search-api-key",className:"mb-1.5 block text-sm font-medium text-text-primary",children:["API key",d?null:e.jsx("span",{className:"font-normal text-text-secondary",children:" (optional)"})]}),e.jsx("input",{id:"web-search-api-key",type:"password",required:d,value:i,onChange:c=>{g(c.target.value)},placeholder:d?"Parallel API key":"Leave blank to keep existing",autoFocus:!0,className:oe})]})}),e.jsxs("div",{className:"mt-6 space-y-3",children:[r?e.jsx("p",{className:"text-failure-bg text-sm",children:r}):null,e.jsx(B.Primary,{type:"submit",size:"large",disabled:!y||E,className:"w-full shrink-0",children:"Save"})]})]})})},ue=de,he=()=>{var U,V;const m=ee(),p=(U=ae())==null?void 0:U.settings,k=te(),l=se(),n=re(),d=ne(),r=k&&((V=p==null?void 0:p.webSearch)==null?void 0:V.manageProviders)!==!1?m==null?void 0:m.webSearchCatalog:void 0,[i,g]=s.useState(null),[x,w]=s.useState(!1),[v,y]=s.useState(!1),[u,c]=s.useState([]),[P,R]=s.useState([]),[$,A]=s.useState(!0),[D,b]=s.useState(null),[G,f]=s.useState(null),[T,K]=s.useState(!1),[o,j]=s.useState(null),[h,S]=s.useState(null),W=s.useCallback(async({quiet:a=!1}={})=>{if(!r){c([]),R([]),A(!1);return}a||A(!0),b(null);try{const[t,N]=await Promise.all([r.listWebSearchProviders(),r.getWebSearchProviderCatalog()]);c(t),R(N)}catch(t){b(C(t,"Failed to load web search providers"))}finally{a||A(!1)}},[r]);s.useEffect(()=>{W()},[W]),s.useEffect(()=>{if(!l)return;let a=!1;return l.getConfiguration().then(t=>{a||g(t.webSearch.enabled)}).catch(t=>{a||b(C(t,"Failed to load the web search setting"))}),()=>{a=!0}},[l]);const L=async a=>{if(l){w(!0),b(null);try{const t=await l.updateConfiguration({webSearch:{enabled:a}});g(t.webSearch.enabled),n==null||n.showSuccess({title:t.webSearch.enabled?"Web search turned on":"Web search turned off"}),d(O.Settings.WEB_SEARCH_TENANT_TOGGLED,{enabled:t.webSearch.enabled})}catch(t){b(C(t,"Failed to save the web search setting"))}finally{w(!1)}}},_=u.length>0,I=s.useMemo(()=>{if(_)return[];const a=new Set(u.map(t=>t.catalogId));return P.filter(t=>!a.has(t.id))},[P,u,_]),H=l==null||i!==null,q=r!=null&&H&&i!==!1;if(r==null&&l==null)return e.jsx("p",{className:"text-sm text-text-secondary",children:"Web search provider catalog is not available."});const M=async(a,t=b)=>{K(!0),b(null);try{await a(),await W({quiet:!0})}catch(N){throw t(C(N,"Request failed")),N}finally{K(!1)}},Y=async a=>{!o||!r||(f(null),await M(async()=>{await r.createWebSearchProvider({catalogId:o.id,name:o.name,type:o.type,apiKey:a.apiKey})},f),j(null),setTimeout(()=>{n==null||n.showSuccess({title:`${o.name} configured`}),d(O.Settings.WEB_SEARCH_PROVIDER_SAVED,{provider_name:o.name,mode:"create"})},0))},J=async a=>{!h||!r||(f(null),await M(async()=>{await r.updateWebSearchProvider({id:h.id,...a.apiKey?{apiKey:a.apiKey}:{}})},f),S(null),setTimeout(()=>{n==null||n.showSuccess({title:`${h.name} updated`}),d(O.Settings.WEB_SEARCH_PROVIDER_SAVED,{provider_name:h.name,mode:"update"})},0))},Q=o!=null||h!=null,z=h!=null,X=h?`Update ${h.name}`:o?`Configure ${o.name}`:"Configure web search provider";return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"text-xl font-semibold tracking-tight text-text-primary",children:"Web search"}),e.jsx("p",{className:"mt-1 text-sm text-text-secondary",children:"Let agents search the web and fetch page content."}),D?e.jsx("p",{className:"mt-3 rounded-md border border-failure-bg/30 bg-failure-bg/10 px-3 py-2 text-sm text-failure-bg",children:D}):null,i!==null?e.jsxs("div",{className:"mt-4 flex items-center justify-between gap-4 rounded-xl border border-border bg-card-bg p-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h4",{className:"text-sm font-medium text-text-primary",children:"Allow web search"}),e.jsx("p",{className:"mt-0.5 text-xs text-text-secondary",children:i?"New chats may use web search. Chats already using it keep it.":"New chats cannot use web search. Chats already using it keep it."})]}),e.jsx(le,{checked:i,disabled:x,"aria-label":"Allow web search",onCheckedChange:a=>{if(a){L(!0);return}y(!0)}})]}):null,i===!1?e.jsxs("p",{className:"mt-3 text-sm text-text-secondary",children:["Turn this back on whenever you want. Nothing is deleted while web search is off",r==null?".":", and provider setup comes back with it."]}):null,e.jsx("div",{className:"mt-4 flex-1 overflow-y-auto",children:q?$?e.jsx("p",{className:"text-sm text-text-secondary",children:"Loading web search providers…"}):e.jsxs("div",{className:"space-y-6",children:[e.jsx("p",{className:"text-sm text-text-secondary",children:"Configure a provider so agents can search the web. Only one can be active at a time."}),u.length>0?e.jsxs("section",{children:[e.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:["Configured · ",u.length]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:u.map(a=>e.jsxs("article",{className:"flex flex-col gap-3 border-b border-border p-3 last:border-b-0 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(F,{name:"search",className:"size-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:a.name}),e.jsx("p",{className:"truncate text-xs text-text-secondary",children:"Parallel web search"})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 sm:justify-end",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-medium text-success-bg",children:[e.jsx("span",{className:"size-2 rounded-full bg-success-bg","aria-hidden":!0}),"Connected"]}),e.jsx(B.Secondary,{size:"small",type:"button",disabled:T,onClick:()=>{f(null),j(null),S(a)},children:"Update"})]})]},a.id))})]}):null,_?null:e.jsxs("section",{children:[e.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:["Available · ",I.length]}),I.length===0?e.jsx("p",{className:"text-sm text-text-secondary",children:P.length>0?"All catalog providers are configured.":"No web search providers in the catalog."}):e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:I.map(a=>e.jsxs("article",{className:"flex flex-col gap-3 border-b border-border p-3 last:border-b-0 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(F,{name:"search",className:"size-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:a.name}),e.jsx("p",{className:"truncate text-xs text-text-secondary",children:"Parallel web search"})]})]}),e.jsx(B.Secondary,{type:"button",disabled:T,onClick:()=>{f(null),S(null),j(a)},children:"Configure"})]},a.id))})]})]}):null}),v?e.jsx(Z,{title:"Turn off web search?",description:"Existing chats, agents, and schedules that already use web search keep access. New chats and agents created after this do not. You can turn this back on later.",confirmLabel:"Turn off",busy:x,onCancel:()=>{x||y(!1)},onConfirm:()=>{x||L(!1).finally(()=>y(!1))}}):null,e.jsx(ue,{open:Q,onOpenChange:a=>{a||(f(null),j(null),S(null))},onSave:z?J:Y,title:X,description:z?"Update this web search provider. Leave API key blank to keep the existing key.":"Configure this web search provider. API key is never stored in the catalog.",requireApiKey:!z,busy:T,error:G})]})},be=he;export{be as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as d}from"./chunk-HED32BFK-
|
|
1
|
+
import{S as d}from"./chunk-HED32BFK-BfnKrlUJ.js";import{u as x,bm as f,r,j as e,bl as p,I as b,a3 as h,c as v}from"./index-aDyvsTqL.js";import"./chunk-OXW7TUTC-UBWEIyxU.js";function j({className:u}){const m=x("BrandLogo"),{open:a,setOpen:n}=f(),l=r.useRef(null),s=r.useRef(null),i=r.useRef(!1);return r.useEffect(()=>{if(!a)return;const t=o=>{var c;o.key==="Escape"&&!((c=s.current)!=null&&c.querySelector("dialog[open]"))&&n(!1)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,n]),r.useEffect(()=>{var t,o;if(a){i.current=!0,(t=s.current)==null||t.focus();return}i.current&&((o=l.current)==null||o.focus(),i.current=!1)},[a]),e.jsxs("div",{className:v("pointer-events-none relative h-full min-h-0 w-full",u),children:[a?e.jsx("div",{ref:s,"data-aui-compact-layout":!0,className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[calc(5.25rem+env(safe-area-inset-bottom,0px))] z-[19] flex h-[min(560px,calc(100%-6.5rem-env(safe-area-inset-bottom,0px)))] max-h-[calc(100%-6.5rem)] w-[min(380px,calc(100%-2.5rem))] flex-col overflow-hidden rounded-xl border border-border bg-primary-bg shadow-[0_16px_48px_color-mix(in_oklab,var(--shadow-color)_14%,transparent)] outline-none",role:"dialog","aria-modal":!0,"aria-label":"Chat",tabIndex:-1,children:e.jsx(p,{children:e.jsx(d,{threadHeaderEnd:e.jsx("button",{type:"button","aria-label":"Close",title:"Close",className:h({variant:"ghost",size:"icon"}),onClick:()=>n(!1),children:e.jsx(b,{name:"xmark"})})})})}):null,e.jsx("button",{ref:l,type:"button",className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[max(1.25rem,env(safe-area-inset-bottom,0px))] z-20 flex size-14 cursor-pointer items-center justify-center rounded-full text-sm font-medium shadow-[0_8px_24px_color-mix(in_oklab,var(--primary-button-bg)_45%,transparent)]",style:{backgroundColor:"var(--primary-button-bg)",color:"var(--primary-button-text)"},"aria-expanded":a,"aria-label":a?"Close chat":"Open chat",onClick:()=>n(t=>!t),children:a?e.jsx("span",{"aria-hidden":!0,className:"text-xl leading-none",children:"×"}):e.jsx(m,{variant:"icon",className:"size-6"})})]})}export{j as WidgetLayout};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SettingsBuilder-6WNST3GI-
|
|
2
|
-
import{be as _,t as B,u as t,bg as L,r as a,j as s,bi as c,P as k,I as l,a3 as d,c as z,bk as u}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SettingsBuilder-6WNST3GI-DtS3ib0p.js","./index-aDyvsTqL.js","./index-B01pXqvC.css","./SchedulesPage-OVDMYD6Q-BKu9sdHs.js","./chunk-HWOHXUGH-KXcUS5XW.js","./EnvironmentsPage-BUA2EGXE-CcV5njoc.js","./chunk-LFIIKLPG-DcaznAz-.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{be as _,t as B,u as t,bg as L,r as a,j as s,bi as c,P as k,I as l,a3 as d,c as z,bk as u}from"./index-aDyvsTqL.js";import{N as I,T,S as D,A as R}from"./chunk-OXW7TUTC-UBWEIyxU.js";var V=a.lazy(()=>u(()=>import("./SettingsBuilder-6WNST3GI-DtS3ib0p.js"),__vite__mapDeps([0,1,2]),import.meta.url)),F=a.lazy(()=>u(()=>import("./SchedulesPage-OVDMYD6Q-BKu9sdHs.js"),__vite__mapDeps([3,4,1,2]),import.meta.url).then(n=>({default:n.SchedulesPage}))),H=a.lazy(()=>u(()=>import("./EnvironmentsPage-BUA2EGXE-CcV5njoc.js"),__vite__mapDeps([5,6,1,2,4]),import.meta.url).then(n=>({default:n.EnvironmentsPage})));function M({className:n,threadHeaderEnd:j}){const r=_(),e=B(),f=t("ClearChatButton"),g=t("ResetAgentBuilderButton"),b=t("AgentDetailsPage"),v=t("AgentsLibrary"),h=t("SessionsPage"),N=t("ShareChatButton"),y=t("SaveAgentButton"),A=t("SelectAgentEmptyState"),S=t("UserAvatar"),i=(e==null?void 0:e.mode.status)==="idle",C=(e==null?void 0:e.settingsOpen)===!0,o=(e==null?void 0:e.libraryOpen)===!0,O=(e==null?void 0:e.sessionsOpen)===!0,m=(e==null?void 0:e.schedulesOpen)===!0,x=(e==null?void 0:e.environmentsOpen)===!0,w=L(),p=(e==null?void 0:e.isNewChatEnabled)!==!1;a.useEffect(()=>{i||Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},[r,i]);const E=()=>{if(e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled){e.openDraft();return}e==null||e.setSettingsOpen(!1),e==null||e.setSchedulesOpen(!1),e==null||e.setEnvironmentsOpen(!1),Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},P=()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled&&e.openAgentBuilder()};return s.jsxs("div",{className:z("relative flex h-full min-h-0 flex-col",n),children:[C?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(V,{})})}):O?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(h,{})}):o&&(e==null?void 0:e.libraryAgentId)!=null?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(b,{agentId:e.libraryAgentId},e.libraryAgentId)}):o?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(v,{})}):m?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(F,{})})}):x?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(H,{})})}):s.jsxs(s.Fragment,{children:[s.jsx(k,{start:s.jsxs(s.Fragment,{children:[p&&!w?s.jsx("button",{type:"button","aria-label":"New Chat",title:"New Chat",className:d({variant:"ghost",size:"icon"}),onClick:E,children:s.jsx(l,{name:"square-pen"})}):null,p&&(e!=null&&e.isComposerEnabled)?s.jsx("button",{type:"button","aria-label":"New Agent",title:"New Agent",className:d({variant:"ghost",size:"icon"}),onClick:P,children:s.jsx(l,{name:"agent-2"})}):null]}),title:s.jsx(I,{}),end:s.jsxs(s.Fragment,{children:[s.jsx(g,{}),s.jsx(N,{}),s.jsx(f,{}),s.jsx(y,{}),j]})}),s.jsx("div",{className:"min-h-0 flex-1",children:i?s.jsx(A,{}):s.jsx(T,{})})]}),s.jsxs("footer",{className:"flex shrink-0 items-center justify-between border-t border-border px-2 py-1.5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[o||m||x?s.jsxs("button",{type:"button",className:d({variant:"ghost",size:"small"}),onClick:()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSchedulesOpen(!1),e==null||e.setEnvironmentsOpen(!1)},children:[s.jsx(l,{name:"arrow-left"}),"Back to chat"]}):null,s.jsx(S,{})]}),s.jsx(D,{},"shell-actions")]}),e!=null&&e.agentConfigOpen?s.jsx("aside",{role:"dialog","aria-label":"Agent Config",className:"absolute inset-0 z-20 border-l border-border shadow-xl",children:s.jsx(R,{showClose:!0})}):null]})}export{M as S};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"./index-
|
|
1
|
+
import{r as o}from"./index-aDyvsTqL.js";function f({intervalMs:t,poll:e}){const i=o.useRef(e);i.current=e,o.useEffect(()=>{if(t==null)return;let s=!1,n;const a=()=>{s||document.hidden||i.current()},r=()=>{n!=null&&window.clearInterval(n),n=window.setInterval(a,t)},u=()=>{if(document.hidden){n!=null&&(window.clearInterval(n),n=void 0);return}a(),r()};return a(),document.hidden||r(),document.addEventListener("visibilitychange",u),()=>{s=!0,n!=null&&window.clearInterval(n),document.removeEventListener("visibilitychange",u)}},[t])}var I=20,c=5e3;function S(t){for(const e of t)if(e==="running"||e==="paused")return c;return null}function A(t,e){const i=t.lastTurnDetails,s=e.lastTurnDetails,n=(i==null?void 0:i.id)===(s==null?void 0:s.id)&&(i==null?void 0:i.state.status)===(s==null?void 0:s.state.status);return n&&t.lastActivityAt===e.lastActivityAt?t:n?{...t,lastActivityAt:e.lastActivityAt}:{...t,lastActivityAt:e.lastActivityAt,lastTurnDetails:s}}function v({current:t,firstPage:e,mergeItem:i}){if(e.length===0)return t;const s=new Map(e.map(r=>[r.id,r]));let n=!1;const a=t.map(r=>{const u=s.get(r.id);if(u==null)return r;const l=i(r,u);return l!==r&&(n=!0),l});return n?a:t}export{I as S,A as a,v as m,S as s,f as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aq as o,j as t,c as s}from"./index-
|
|
1
|
+
import{aq as o,j as t,c as s}from"./index-aDyvsTqL.js";var u={default:"border-border bg-card-bg text-text-primary",success:"border-success-bg/30 bg-success-bg/10 text-success-bg",info:"border-primary-button-bg/30 bg-primary-button-bg/10 text-primary-button-bg",warning:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg",destructive:"border-failure-bg/30 bg-failure-bg/10 text-failure-bg",outline:"border-border bg-transparent text-text-secondary"},l={default:"bg-text-secondary",success:"bg-success-bg",info:"bg-primary-button-bg",warning:"bg-warning-bg",destructive:"bg-failure-bg",outline:"bg-text-secondary"},c={rounded:"rounded-sm",pill:"rounded-full"},x={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-0.5 text-xs"},m=o.forwardRef(({className:n,variant:e="default",shape:r="rounded",size:a="sm",dot:b=!1,children:d,...g},i)=>t.jsxs("span",{ref:i,"data-slot":"badge","data-variant":e,"data-shape":r,"data-size":a,className:s("inline-flex items-center gap-1.5 border font-medium leading-normal",u[e],c[r],x[a],n),...g,children:[b?t.jsx("span",{className:s("size-1.5 shrink-0 rounded-full",l[e]),"aria-hidden":!0}):null,d]}));m.displayName="Badge";export{m as B};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,R as m,U as u,V as h,W as j,X as p,E as n}from"./index-
|
|
1
|
+
import{j as e,R as m,U as u,V as h,W as j,X as p,E as n}from"./index-aDyvsTqL.js";function g(a){return a.replace(/\?$/,"").replace(/^Remove /i,"Can't remove ")}var f=({title:a,description:o,confirmLabel:c="Remove",busy:i=!1,error:l=null,onCancel:t,onConfirm:d})=>{const s=l!=null&&l!=="",r=s?g(a):a;return e.jsxs(m,{open:!0,onOpenChange:x=>{x||t()},"aria-label":r,className:"max-w-md",children:[e.jsx(u,{children:e.jsxs(h,{children:[e.jsx(j,{children:r}),s?e.jsx("p",{role:"alert",className:"text-sm text-failure-bg",children:l}):e.jsx("p",{className:"text-sm text-text-secondary",children:o})]})}),e.jsx(p,{children:s?e.jsx(n.Secondary,{type:"button",onClick:t,children:"Close"}):e.jsxs(e.Fragment,{children:[e.jsx(n.Secondary,{type:"button",disabled:i,onClick:t,children:"Cancel"}),e.jsx(n.Destructive,{type:"button",disabled:i,onClick:d,children:c})]})})]})},C=f;export{C};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as O,j as t,G as be,r as d,bT as Ce,u as b,bU as A,bV as Se,bW as we,bX as je,bY as ye,bZ as z,b_ as ee,be as te,b$ as ne,d as de,c0 as X,c1 as $,c2 as Ie,c3 as Ae,c4 as ke,c5 as Re,c6 as Ee,c7 as Me,c8 as Ne,bB as Te,bf as Pe,p as me,c9 as Le,ca as se,cb as fe,cc as he,cd as De,ab as ge,q as Q,ce as J,_ as T,cf as le,a4 as Oe,cg as _e,ch as Fe,ci as Be,cj as Ue,ck as D,E as ce,cl as He,cm as We,cn as ze,co as Ve,bK as qe,a9 as oe,cp as Ke,cq as G,cr as Qe,cs as Ge,bS as V,ct as Ye,cu as Xe,cv as pe,bq as $e,b as re,cw as Je,cx as Ze,cy as et,cz as tt,cA as nt,bn as st,w as ot,bh as rt,cB as at,cC as it,cD as lt,cE as ct,I as U,a3 as K,c as B,cF as Z,cG as ut,k as dt,cH as mt}from"./index-DY4Vt5qS.js";function ft(){var f;const{pending:n}=fe(),e=Ke(),[s,i]=d.useState({approvalId:null,index:0}),a=d.useRef(null),r=n.length,c=s.approvalId==null?-1:n.findIndex(h=>h.approvalId===s.approvalId),u=c>=0?c:r===0?0:Math.min(s.index,r-1),o=(f=n[u])==null?void 0:f.approvalId;d.useEffect(()=>{const h=o??null;s.approvalId===h&&s.index===u||i({approvalId:h,index:u})},[o,u,s.approvalId,s.index]),d.useEffect(()=>{if(o==null||e==null){o==null&&(a.current=null);return}a.current!==o&&(a.current=o,e.focus(o))},[o,e]);const l=d.useCallback(()=>{var v;const h=Math.max(0,u-1);i({approvalId:((v=n[h])==null?void 0:v.approvalId)??null,index:h})},[n,u]),m=d.useCallback(()=>{var v;const h=Math.min(Math.max(r-1,0),u+1);i({approvalId:((v=n[h])==null?void 0:v.approvalId)??null,index:h})},[r,n,u]),g=d.useCallback(()=>{o==null||e==null||e.focus(o)},[o,e]);return{count:r,index:u,canPrev:u>0,canNext:u<r-1,goPrev:l,goNext:m,focusCurrent:g}}function ht(){const n=b("ApprovalNavBanner"),{count:e,index:s,canPrev:i,canNext:a,goPrev:r,goNext:c,focusCurrent:u}=ft();return e===0?null:t.jsx(n,{total:e,current:s+1,canPrev:i,canNext:a,onPrev:r,onNext:c,onFocusCurrent:u})}var F={radioValue:"",custom:""};function gt({disabled:n=!1}){const e=b("AskUserPrompt"),{pending:s,respond:i}=se(),a=Q(),r=s[0],c=d.useMemo(()=>r==null?[]:[{id:r.toolCallId,question:r.question??"Answer required",options:r.options??[]}],[r]),[u,o]=d.useState(0),[l,m]=d.useState({});d.useEffect(()=>{o(0),m({})},[r==null?void 0:r.toolCallId]);const g=Math.min(u,Math.max(c.length-1,0)),f=c[g],h=f==null?F:l[f.id]??F,v=d.useCallback(I=>{const E=l[I]??F;return E.radioValue===J?E.custom.trim():E.radioValue.trim()},[l]),S=d.useMemo(()=>c.every(I=>v(I.id)),[v,c]),p=h.radioValue===J?h.custom.trim():h.radioValue.trim(),w=n||f==null||p.length===0,j=w||!S,R=d.useCallback((I,E)=>{m(M=>({...M,[I]:{...M[I]??F,...E}}))},[]),y=d.useCallback(()=>{if(n||r==null||!S)return;const I=v(r.toolCallId);if(!I)return;const E=l[r.toolCallId]??F;a(T.AskUser.SUBMITTED,{tool_call_id:r.toolCallId,question_count:c.length,is_custom_option:E.radioValue===J}),i({toolCallId:r.toolCallId,content:I})},[S,l,n,v,r,c.length,i,a]);return r==null||f==null?null:t.jsx(e,{questions:c,readOnly:n,currentQuestion:f,currentQuestionIndex:g,currentAnswer:h,totalQuestions:c.length,isMultiQuestion:c.length>1,isLastQuestion:g===c.length-1,allQuestionsAnswered:S,isSubmitDisabled:w,isSubmitAllDisabled:j,onCurrentQuestionIndexChange:o,onCurrentAnswerChange:R,onSubmit:y})}function pt(n){var i,a,r;const e=n.thread.messages,s=e[e.length-1];return(s==null?void 0:s.role)!=="assistant"||((i=s.status)==null?void 0:i.type)!=="requires-action"?!1:((r=(a=s.metadata)==null?void 0:a.custom)==null?void 0:r.pendingMcpAuth)===!0}function xt(){const n=A(pt),{pending:e}=se(),{pending:s}=fe(),i=he(),a=e[0];if(a!=null){const r=a.toolName;return r!=null&&(i==null?void 0:i[r])!=null?{kind:"custom",toolName:r}:{kind:"ask-user"}}return s.length>0?{kind:"approval"}:n?{kind:"mcp"}:{kind:"compose"}}function vt({disabled:n=!1}){const e=he(),{pending:s,respond:i}=se(),a=s[0],r=d.useCallback(u=>{if(n||a==null)return;const o=u.trim();o&&i({toolCallId:a.toolCallId,content:o})},[n,a,i]);if(a==null||a.toolName==null)return null;const c=e==null?void 0:e[a.toolName];return c==null?null:t.jsx(c,{args:a.args??{},disabled:n,onSubmit:r})}function bt({servers:n,onContinue:e,readOnly:s}){const i=b("McpAuthPrompt"),{handleAuthorize:a}=qe(),{refreshConnectors:r}=oe(),[c,u]=d.useState(()=>new Set),o=d.useRef(c),[l,m]=d.useState(!1),[g,f]=d.useState(!1),h=d.useRef(!1),v=d.useRef(0);d.useEffect(()=>()=>{v.current+=1},[]);const S=()=>{s||h.current||g||(h.current=!0,m(!0),e().then(()=>{f(!0)}).catch(()=>{}).finally(()=>{h.current=!1,m(!1)}))},p=w=>{const j=v.current;a(w,R=>{if(j!==v.current||!R)return;const y=new Set([...o.current,w]);o.current=y,u(y),r(),n.every(I=>y.has(I.id))&&S()})};return g?null:t.jsx(i,{servers:n,connectedServerIds:c,continueLoading:l,onConnect:p,onContinue:S,readOnly:s})}function Ct({servers:n,onContinue:e,readOnly:s}){const i=b("McpAuthPrompt"),[a,r]=d.useState(!1),[c,u]=d.useState(!1),o=d.useRef(!1),l=()=>{s||o.current||c||(o.current=!0,r(!0),e().then(()=>{u(!0)}).catch(()=>{}).finally(()=>{o.current=!1,r(!1)}))};if(c)return null;const m=g=>{const f=n.find(h=>h.id===g);f!=null&&f.authUrl&&window.open(f.authUrl,"_blank","noopener,noreferrer")};return t.jsx(i,{servers:n,continueLoading:a,onConnect:m,onContinue:l,readOnly:s})}function St({disabled:n=!1}){const{pending:e,continue:s}=De(),i=ge();if(!e)return null;const a=n,r=JSON.stringify(e.mcpServers.map(c=>c.id));return i?t.jsx(bt,{servers:e.mcpServers,onContinue:s,readOnly:a},r):t.jsx(Ct,{servers:e.mcpServers,onContinue:s,readOnly:a},r)}function wt(){var j;const{agentSpec:n,draftSessionId:e}=G(),s=pe(),i=$e(),a=re(),{environments:r,defaultEnvironment:c,loaded:u,loading:o,error:l}=Je(),m=(j=n==null?void 0:n.config)==null?void 0:j.sandbox,g=Ze({sandboxEnvironments:i,capabilities:a})&&(m==null?void 0:m.enabled)!==!1,f=et(m),h=e==null&&u&&!o&&l===null,v=r.some(R=>R.name===f&&R.enabled),S=c==null?void 0:c.name,p=h&&!v&&S!==f&&(S!==void 0||f!==void 0);return d.useEffect(()=>{p&&(s==null||s({config:{...n==null?void 0:n.config,sandbox:tt(m,S)}}))},[p,S]),{pending:g&&e==null&&(o||!u&&l===null||p)}}function jt(n){var s;const e=n.items;if(e.length>0){const i=[];let a=0;for(const r of Array.from(e)){if(r.kind!=="file")continue;const c=((s=r.webkitGetAsEntry)==null?void 0:s.call(r))??null;if((c==null?void 0:c.isDirectory)===!0){a+=1;continue}const u=r.getAsFile();u!=null&&i.push(u)}return{files:i,rejectedDirectoryCount:a}}return{files:Array.from(n.files),rejectedDirectoryCount:0}}function yt({disabled:n,hasText:e,hasAttachments:s,requiresModel:i,hasModel:a,isBlocked:r=!1}){return!n&&!r&&(e||s)&&(!i||a)}function xe({placeholder:n,connectedToBanner:e=!1,sendBlockedReason:s}){var ae,ie;const i=b("ComposerShell"),a=te(),r=O(),c=Q(),u=A(C=>C.threadListItem.remoteId),o=A(C=>C.composer.text.trim().length>0),l=A(C=>C.composer.attachments.length),m=l>0,g=o||m,{agentSpec:f}=G(),h=r==null||r.mode.status==="active"&&r.mode.isMutable,v=!!((ie=(ae=f==null?void 0:f.model)==null?void 0:ae.name)!=null&&ie.trim()),{isBusy:S,send:p,resetBusy:w}=Qe(),j=ee(),R=Ge(),y=me(),I=d.useRef(null),[E,M]=d.useState(!1),_=d.useRef(!1),N=!j,P=yt({disabled:N,hasText:o,hasAttachments:m,requiresModel:h,hasModel:v,isBlocked:s!=null}),x=(r==null?void 0:r.mode.status)==="active"?{agentId:r.mode.agentId,agentName:r.mode.agentName}:{},k=()=>{var C;P&&(c(T.Message.SENT,V({has_text:o,has_attachments:m,attachment_count:l,requires_model:h,model:(C=f==null?void 0:f.model)==null?void 0:C.name},{sessionId:u,...x})),p(()=>a.composer().send()))},H=C=>{C.key!=="Enter"||C.shiftKey||C.nativeEvent.isComposing||P&&(C.preventDefault(),k())};return t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:I,type:"file",multiple:!0,hidden:!0,onChange:C=>{const L=C.target.files;if(L){c(T.Attachment.PICKED,V({file_count:L.length},{sessionId:u,...x}));for(const W of L)a.composer().addAttachment(W).catch(Y=>{y==null||y.showError(Y)})}C.target.value=""}}),t.jsx(D.AttachmentDropzone,{disabled:N,"data-slot":"aui_composer-attachment-dropzone",className:"w-full rounded-[0.75rem] transition-[box-shadow] data-[dragging=true]:ring-focus-ring/20 data-[dragging=true]:ring-3",onDropCapture:C=>{if(N)return;const L=C.dataTransfer;if(L==null)return;const{files:W,rejectedDirectoryCount:Y}=jt(L);Y>0&&(y==null||y.showError(new Error("Folders cannot be attached. Attach individual files instead."))),W.length!==0&&c(T.Attachment.PICKED,V({file_count:W.length},{sessionId:u,...x}))},children:t.jsx(D.Root,{"data-slot":"aui_composer-root",className:"w-full",onSubmit:C=>{C.preventDefault(),k()},children:t.jsx(i,{className:e?"rounded-t-none border-t-0 focus-within:ring-0":void 0,attachments:t.jsx(Ye,{}),input:t.jsx(D.Input,{"data-slot":"aui_composer-input",placeholder:n,disabled:N,submitMode:"enter",onKeyDown:H,"aria-label":"Message input",className:"text-text-primary placeholder:text-text-secondary/80 max-h-[10lh] min-h-10 w-full resize-none overflow-y-auto rounded-lg border-none bg-transparent px-1 py-1 text-base leading-normal shadow-none outline-none disabled:cursor-not-allowed"}),disabled:N,canSubmit:P,hasContent:g,isRunning:S,isCancelling:E,blockedReason:s,onSubmit:k,onCancel:j?()=>{_.current||(_.current=!0,M(!0),c(T.Message.CANCELLED,V(void 0,{sessionId:u,...x})),w(),R().catch(()=>{}).finally(()=>{_.current=!1,M(!1)}))}:void 0,onAttach:j?()=>{var C;return(C=I.current)==null?void 0:C.click()}:void 0})})})]})}function It({placeholder:n,connectedToBanner:e=!1}){var o,l;const{pending:s}=wt(),{agentSpec:i}=G(),{loaded:a,loading:r}=oe(),u=!!!((l=(o=i==null?void 0:i.model)==null?void 0:o.name)!=null&&l.trim())&&(!a||r)?"Loading models…":s?"Preparing sandbox…":void 0;return t.jsx(xe,{placeholder:n,connectedToBanner:e,sendBlockedReason:u})}function q({placeholder:n,connectedToBanner:e=!1}){const s=O(),i=b("ComposerLeftSection"),a=b("ComposerRightSection"),r=le("ComposerLeftSection"),c=le("ComposerRightSection"),u=b("DraftComposerLeftSection"),o=b("DraftComposerRightSection");return(s==null?void 0:s.mode.status)==="active"&&s.mode.isMutable?t.jsx(Oe,{children:t.jsx(_e,{overrides:{ComposerLeftSection:r?u:i,ComposerRightSection:c?o:a},children:t.jsx(It,{placeholder:n,connectedToBanner:e})})}):t.jsx(xe,{placeholder:n,connectedToBanner:e})}function At({placeholder:n="Ask anything... (Shift+Enter for new line)"}){const e=xt(),s=ee(),i=e.kind==="mcp"?t.jsx(St,{disabled:!s}):e.kind==="custom"?t.jsx(vt,{disabled:!s}):e.kind==="ask-user"?t.jsx(gt,{disabled:!s}):e.kind==="approval"?t.jsx(ht,{}):null;return i==null?t.jsx(q,{placeholder:n}):e.kind==="approval"?t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"flex w-full flex-col",children:[i,t.jsx(q,{placeholder:n,connectedToBanner:!0})]}):e.kind==="mcp"?t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"relative flex w-full flex-col",children:[t.jsx("div",{className:"pb-2",children:i}),t.jsx("div",{className:"relative z-10 -mt-3",children:t.jsx(q,{placeholder:n})})]}):t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"flex w-full flex-col",children:[i,t.jsx("div",{className:"relative z-10 -mt-1",children:t.jsx(q,{placeholder:n})})]})}var kt=200,ue='[data-slot="aui_thread-viewport"]';function Rt(){const n=b("HistoryLoader"),{hasOlderHistory:e,isLoadingOlderHistory:s,loadOlderHistory:i}=ke(),[a,r]=d.useState(null),c=d.useRef(!1),u=d.useCallback(async()=>{if(c.current)return;c.current=!0;const o=(a==null?void 0:a.closest(ue))??null,l=(o==null?void 0:o.scrollHeight)??0,m=(o==null?void 0:o.scrollTop)??0;try{await i(),requestAnimationFrame(()=>{if(o==null)return;const g=o.scrollHeight-l;g>0&&o.scrollTo({top:m+g,behavior:"instant"})})}catch{}finally{c.current=!1}},[a,i]);return d.useEffect(()=>{if(a==null||!e)return;const o=a.closest(ue),l=new IntersectionObserver(m=>{m.some(g=>g.isIntersecting)&&u()},{root:o,rootMargin:`${kt}px 0px 0px 0px`});return l.observe(a),()=>l.disconnect()},[a,e,u]),e?t.jsx(n,{ref:r,isLoading:s}):null}function Et(){const n=b("ResumeUnavailable");return Me()?t.jsx(n,{}):null}function Mt(){return A(e=>{var s;return(((s=e.message.attachments)==null?void 0:s.length)??0)>0})?t.jsx("div",{className:"pointer-events-none mb-2 opacity-90",children:t.jsx(Xe,{})}):null}function Nt(){const n=b("UserMessageEdit"),e=b("MessageTimestamp"),s=ne(),i=ee(),a=A(o=>o.message.createdAt),{cancel:r,disabled:c}=Fe(),{disabled:u}=Be();return t.jsx(Ue.Root,{"data-role":"user",children:t.jsx(D.Root,{"data-slot":"aui_user-edit-composer-root",className:"fade-in slide-in-from-bottom-1 animate-in flex w-full justify-end px-2 duration-150",children:t.jsx(n,{timestamp:t.jsx(e,{createdAt:a}),attachments:t.jsx(Mt,{}),input:t.jsx("div",{className:"mt-1 rounded border border-border bg-secondary-bg p-2 text-text-primary",children:t.jsx(D.Input,{"data-slot":"aui_user-edit-input",disabled:s||!i,submitMode:"enter","aria-label":"Edit message",className:"max-h-32 min-h-10 w-full resize-none border-none bg-transparent p-0 text-base leading-[1.34] outline-none focus:shadow-none"})}),footer:t.jsxs("div",{className:"flex items-center justify-end gap-2",children:[t.jsx(ce.Secondary,{type:"button",disabled:c,onClick:r,children:"Cancel"}),t.jsx(D.Send,{asChild:!0,children:t.jsx(ce.Primary,{type:"button",disabled:u||s||!i,children:"Save & Rerun"})})]})})})})}function Tt(){const n=te(),e=A(l=>l.threadListItem.remoteId),s=A(l=>l.threadListItem.title),i=A(l=>{var m;return(m=l.thread.messages.find(g=>g.role==="user"))==null?void 0:m.id}),a=ne(),r=d.useRef(!1),c=d.useRef(e),u=d.useRef(i),o=d.useRef(void 0);d.useEffect(()=>{const l=c.current!==e;c.current=e;const m=!l&&r.current&&!a;r.current=a;const g=u.current;u.current=i;const f=!l&&a&&g!=null&&i!=null&&g!==i;if(l&&(o.current=void 0),!f&&!m||e==null||o.current===e||s!=null&&s.trim()!=="")return;o.current=e;const h=n.threadListItem();Promise.resolve().then(()=>h.generateTitle()).catch(()=>{})},[n,i,a,e,s])}function Pt(){const n=de(),e=te(),s=A(o=>o.threadListItem.remoteId),i=A(o=>o.threadListItem.lastMessageAt),a=ne(),r=d.useRef(!1),c=d.useRef(s),u=d.useRef(i);u.current=i,d.useEffect(()=>{if(!a||s==null)return;const o=e.threadListItem().getState().custom;X(o)!=="running"&&e.threadListItem().updateCustom($(o,"running",new Date().toISOString()))},[e,a,s]),d.useEffect(()=>{const o=c.current!==s;c.current=s;const l=!o&&r.current&&!a;if(r.current=a,!l||s==null)return;const m=e.threadListItem().getState().custom;if(X(m)==="running"&&e.threadListItem().updateCustom($(m,null)),n==null)return;let g=!1;return n.getSession({sessionId:s}).then(f=>{var w;if(g)return;const h=((w=f.lastTurnDetails)==null?void 0:w.state.status)??null,v=e.threadListItem().getState().custom,S=(X(v)??null)===h,p=Ie(v)??u.current;if(!(S&&!Ae(f.updatedAt,p)))return e.threadListItem().updateCustom($(v,h,f.updatedAt))}).catch(()=>{}),()=>{g=!0}},[e,a,s,n])}var ve="trueforge.file-preview-width";function Lt(){try{const n=sessionStorage.getItem(ve);if(n==null)return null;const e=Number(n);return Number.isFinite(e)?e:null}catch{return null}}function Dt(n){try{sessionStorage.setItem(ve,String(Math.round(n)))}catch{}}function Ot(){const n=Ne(),e=b("FilePreviewPanel"),s=Te(),i=Pe(),a=me(),[r,c]=d.useState(0),[u,o]=d.useState(!1),[l,m]=d.useState(Lt),g=Le(n.target,r),f=n.target,h=n.presentation==="full"?"full":s||i?"overlay":"side";if(d.useLayoutEffect(()=>{var j;if(f==null||h!=="side")return;const p=((j=document.querySelector('[data-slot="aui_file-preview-row"]'))==null?void 0:j.getBoundingClientRect().width)??0;if(p<=0)return;const w=l==null?He(p):We({requested:l,rowWidth:p});(l==null||Math.abs(w-l)>1)&&m(w)},[h,f,l]),f==null)return null;const v=g.view.status==="error",S=()=>{u||(o(!0),(async()=>{try{const p=g.blob??await f.load();ze(p,Ve(f.path))}catch(p){a!=null?a.showError(p):console.error("Failed to download sandbox file",p)}finally{o(!1)}})())};return t.jsx(e,{name:f.name,placement:h,view:g.view,onClose:n.close,onDownload:S,onEnterFullPage:()=>n.setPresentation("full"),onExitFullPage:()=>n.setPresentation("panel"),downloadBusy:u,...h==="side"&&l!=null?{widthPx:l}:{},...h==="side"?{onWidthChange:p=>{m(p),Dt(p)}}:{},...v?{onRetry:()=>c(p=>p+1)}:{}})}function _t({children:n}){return t.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 fill-mode-both duration-200",children:n})}function Ft({isEditing:n}){return A(s=>s.message.role)==="user"?n?t.jsx(Nt,{}):t.jsx(Re,{}):t.jsx(Ee,{})}function Bt({composer:n}){d.useEffect(()=>{Ce()},[]),Tt(),Pt();const e=O(),s=b("WelcomeScreen"),i=b("MessageListSkeleton"),a=b("ScrollToBottomButton"),r=b("MessageGroup"),c=b("ThreadComposerAreaShell"),u=b("ThreadRootShell"),o=b("ThreadViewportShell"),l=A(Se),m=A(f=>f.thread.isLoading),g=(e==null?void 0:e.mode.status)==="active"?e.mode.agentName!=null&&e.mode.agentName.length>0?e.mode.agentName:e.mode.isMutable&&e.mode.isCreateAgent?"Start building a new Agent":void 0:void 0;return t.jsx(we,{children:t.jsx(je,{children:t.jsx(ye,{children:t.jsx(z.Root,{asChild:!0,children:t.jsx(u,{children:t.jsxs("div",{"data-slot":"aui_file-preview-row",className:"relative flex min-h-0 w-full min-w-0 flex-1",children:[t.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[t.jsx(z.Viewport,{asChild:!0,autoScroll:!0,children:t.jsxs(o,{isEmpty:l,children:[l&&t.jsx(s,{heading:g}),l&&!m&&n,m?t.jsx(i,{}):!l&&t.jsxs(t.Fragment,{children:[t.jsx(Rt,{}),t.jsxs(r,{children:[t.jsx(z.Messages,{children:({message:f})=>t.jsx(_t,{children:t.jsx(Ft,{isEditing:f.role==="user"&&f.composer.isEditing})})}),t.jsx(Et,{})]})]})]})}),!m&&!l&&t.jsxs(c,{isEmpty:l,children:[t.jsx(z.ScrollToBottom,{asChild:!0,children:t.jsx(a,{})}),n]})]}),t.jsx(Ot,{})]})})})})})})}function Ht(){const n=O();return(n==null?void 0:n.sessionAccessError)!=null?t.jsx(be,{title:"Unable to load session",description:n.sessionAccessError,className:"bg-primary-bg"}):t.jsx(Bt,{composer:t.jsx(At,{})})}function Wt({className:n}){var o;const e=O(),s=Q(),i=ut(),a=A(l=>l.threadListItem.title);if(i===null)return null;const r=(a==null?void 0:a.trim())??"",c=i.allowThreadTitle&&r.length>0?r:i.name,u=(e==null?void 0:e.isLibraryEnabled)===!0&&((o=e.historyAgentFilter)==null?void 0:o.intent)==="try-agent";return t.jsxs("h1",{className:B("flex min-w-0 items-center gap-1.5",mt,n),children:[u?t.jsx("button",{type:"button","aria-label":"Back to all agents",title:"Back to all agents",className:K({variant:"ghost",size:"icon",className:"text-text-secondary"}),onClick:()=>{s(T.Library.OPENED),e==null||e.setLibraryOpen(!0)},children:t.jsx(U,{name:"arrow-left"})}):null,t.jsx("span",{className:"truncate",title:c,children:c}),i.isEditing?t.jsx(dt,{content:"Try changes here, then choose Update agent to save.",side:"bottom",children:t.jsxs("span",{className:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg inline-flex shrink-0 items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[t.jsx(U,{name:"pencil",className:"size-3"}),"Editing"]})}):null]})}function zt({className:n,labeled:e=!1,onAction:s}){const i=O(),a=Q(),r=ge(),c=re(),{mode:u,setTheme:o}=lt(),l=b("ShellActionsActionSlot"),m=u==="dark",g=m?"Light":"Dark",f=ct({catalog:r,capabilities:c}),h="hover:bg-secondary-button-hover hover:text-ghost-button-text";return t.jsxs("div",{className:B("flex shrink-0 items-center gap-1",e?"w-full flex-col items-center gap-1 text-sidebar-text":"text-text-primary",n),children:[t.jsxs("a",{href:"https://trueforge.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",title:"Documentation",className:K({variant:"ghost",size:e?void 0:"icon",className:B(h,e&&Z)}),onClick:()=>s==null?void 0:s(),children:[t.jsx(U,{name:"book-open",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:"Docs"}):null]}),t.jsxs("button",{type:"button","aria-label":m?"Switch to light theme":"Switch to dark theme",title:m?"Light theme":"Dark theme",className:K({variant:"ghost",size:e?void 0:"icon",className:B(h,e&&Z)}),onClick:()=>{o(m?"light":"dark"),s==null||s()},children:[t.jsx(U,{name:m?"sun":"moon",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:g}):null]}),i!=null&&f?t.jsxs("button",{type:"button","aria-label":"Settings",title:"Settings","aria-expanded":i.settingsOpen,"aria-current":i.settingsOpen?"page":void 0,className:K({variant:"ghost",size:e?void 0:"icon",className:B(h,e&&Z,i.settingsOpen&&"bg-primary-button-bg font-medium text-primary-button-text hover:bg-primary-button-hover hover:text-primary-button-text")}),onClick:()=>{i.settingsOpen||a(T.Settings.OPENED),i.setSettingsOpen(!0),s==null||s()},children:[t.jsx(U,{name:"settings",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:"Settings"}):null]}):null,t.jsx(l,{})]})}function Vt({showClose:n=!1}){var P;const{agentSpec:e}=G(),s=pe(),i=nt(),a=st(),r=a.mode.status==="active"?a.mode.agentId:void 0,{allows:c}=ot({resourceType:"agent",resourceIds:r==null?[]:[r]}),u=c(r,"MANAGE"),o=de(),l=re(),m=oe(),g=b("AgentConfigPanel"),f=b("AgentConfigEditors"),[h,v]=d.useState(null),S=rt(a.mode),{draft:p,flush:w}=at(),j=d.useCallback(()=>{w(),i(),a.setAgentConfigOpen(!1)},[i,w,a]);d.useEffect(()=>{S&&m.ensureLoaded()},[m,S]),d.useEffect(()=>{u||v(null)},[u]),d.useEffect(()=>{if(!n||!a.agentConfigOpen)return;const x=k=>{!k.defaultPrevented&&k.key==="Escape"&&h===null&&document.querySelector("dialog[open]")===null&&j()};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[j,h,a.agentConfigOpen,n]);const R=d.useRef({flushAgentSpec:i,flushInstructions:w});R.current={flushAgentSpec:i,flushInstructions:w},d.useEffect(()=>()=>{const{flushAgentSpec:x,flushInstructions:k}=R.current;k();try{x()}catch{}},[]);const y=d.useCallback(({next:x,instructions:k})=>{var H;if(u){if(x.skills&&x.skills.length>0&&(l==null?void 0:l.sandbox.enabled)===!0){s==null||s({...x,instructions:k||void 0,config:{...x.config,sandbox:{...(H=x.config)==null?void 0:H.sandbox,enabled:!0}}});return}s==null||s({...x,instructions:k||void 0})}},[u,l==null?void 0:l.sandbox.enabled,s]),I=d.useCallback(x=>{y({next:x,instructions:p})},[y,p]),E=d.useCallback(x=>{e!==null&&y({next:it({spec:e,messages:x.messages}),instructions:x.instructions})},[e,y]),M=d.useCallback(async x=>(o==null?void 0:o.getMcpTools)===void 0?[]:o.getMcpTools({connectorId:x}),[o]),_=d.useCallback(async x=>{var k;return(k=o==null?void 0:o.getMcpConnector)==null?void 0:k.call(o,{connectorId:x})},[o]);if(!S||e===null||n&&!a.agentConfigOpen)return null;const N=m.models.find(x=>x.name===e.model.name);return t.jsxs(t.Fragment,{children:[t.jsx(g,{spec:e,model:N,models:m.models,modelsLoading:m.loading,modelsError:m.error,skills:m.skills,skillsAvailable:(l==null?void 0:l.skill.enabled)===!0,webSearchAvailable:((P=l==null?void 0:l.webSearch)==null?void 0:P.enabled)===!0,memoryOffered:(l==null?void 0:l.memory)!=null,instructions:p,onOpenEditor:x=>{u&&v(x)},onChange:I,disabled:!u,onClose:n?j:void 0}),t.jsx(f,{editor:h,spec:e,models:m.models,connectors:m.connectors,skills:m.skills,loading:m.loading,error:m.error,skillsDisabled:(l==null?void 0:l.skill.enabled)!==!0,sandboxAvailable:(l==null?void 0:l.sandbox.enabled)===!0,instructions:p,onInstructionsSave:E,...(o==null?void 0:o.getMcpConnector)===void 0?{}:{loadMcpConnector:_},loadMcpTools:M,onRefreshConnectors:m.refreshConnectors,onChange:I,onClose:()=>v(null)})]})}export{Vt as A,Wt as N,zt as S,Ht as T};
|
|
1
|
+
import{t as O,j as t,G as be,r as d,bT as Ce,u as b,bU as A,bV as Se,bW as we,bX as je,bY as ye,bZ as z,b_ as ee,be as te,b$ as ne,d as de,c0 as X,c1 as $,c2 as Ie,c3 as Ae,c4 as ke,c5 as Re,c6 as Ee,c7 as Me,c8 as Ne,bB as Te,bf as Pe,p as me,c9 as Le,ca as se,cb as fe,cc as he,cd as De,ab as ge,q as Q,ce as J,_ as T,cf as le,a4 as Oe,cg as _e,ch as Fe,ci as Be,cj as Ue,ck as D,E as ce,cl as He,cm as We,cn as ze,co as Ve,bK as qe,a9 as oe,cp as Ke,cq as G,cr as Qe,cs as Ge,bS as V,ct as Ye,cu as Xe,cv as pe,bq as $e,b as re,cw as Je,cx as Ze,cy as et,cz as tt,cA as nt,bn as st,w as ot,bh as rt,cB as at,cC as it,cD as lt,cE as ct,I as U,a3 as K,c as B,cF as Z,cG as ut,k as dt,cH as mt}from"./index-aDyvsTqL.js";function ft(){var f;const{pending:n}=fe(),e=Ke(),[s,i]=d.useState({approvalId:null,index:0}),a=d.useRef(null),r=n.length,c=s.approvalId==null?-1:n.findIndex(h=>h.approvalId===s.approvalId),u=c>=0?c:r===0?0:Math.min(s.index,r-1),o=(f=n[u])==null?void 0:f.approvalId;d.useEffect(()=>{const h=o??null;s.approvalId===h&&s.index===u||i({approvalId:h,index:u})},[o,u,s.approvalId,s.index]),d.useEffect(()=>{if(o==null||e==null){o==null&&(a.current=null);return}a.current!==o&&(a.current=o,e.focus(o))},[o,e]);const l=d.useCallback(()=>{var v;const h=Math.max(0,u-1);i({approvalId:((v=n[h])==null?void 0:v.approvalId)??null,index:h})},[n,u]),m=d.useCallback(()=>{var v;const h=Math.min(Math.max(r-1,0),u+1);i({approvalId:((v=n[h])==null?void 0:v.approvalId)??null,index:h})},[r,n,u]),g=d.useCallback(()=>{o==null||e==null||e.focus(o)},[o,e]);return{count:r,index:u,canPrev:u>0,canNext:u<r-1,goPrev:l,goNext:m,focusCurrent:g}}function ht(){const n=b("ApprovalNavBanner"),{count:e,index:s,canPrev:i,canNext:a,goPrev:r,goNext:c,focusCurrent:u}=ft();return e===0?null:t.jsx(n,{total:e,current:s+1,canPrev:i,canNext:a,onPrev:r,onNext:c,onFocusCurrent:u})}var F={radioValue:"",custom:""};function gt({disabled:n=!1}){const e=b("AskUserPrompt"),{pending:s,respond:i}=se(),a=Q(),r=s[0],c=d.useMemo(()=>r==null?[]:[{id:r.toolCallId,question:r.question??"Answer required",options:r.options??[]}],[r]),[u,o]=d.useState(0),[l,m]=d.useState({});d.useEffect(()=>{o(0),m({})},[r==null?void 0:r.toolCallId]);const g=Math.min(u,Math.max(c.length-1,0)),f=c[g],h=f==null?F:l[f.id]??F,v=d.useCallback(I=>{const E=l[I]??F;return E.radioValue===J?E.custom.trim():E.radioValue.trim()},[l]),S=d.useMemo(()=>c.every(I=>v(I.id)),[v,c]),p=h.radioValue===J?h.custom.trim():h.radioValue.trim(),w=n||f==null||p.length===0,j=w||!S,R=d.useCallback((I,E)=>{m(M=>({...M,[I]:{...M[I]??F,...E}}))},[]),y=d.useCallback(()=>{if(n||r==null||!S)return;const I=v(r.toolCallId);if(!I)return;const E=l[r.toolCallId]??F;a(T.AskUser.SUBMITTED,{tool_call_id:r.toolCallId,question_count:c.length,is_custom_option:E.radioValue===J}),i({toolCallId:r.toolCallId,content:I})},[S,l,n,v,r,c.length,i,a]);return r==null||f==null?null:t.jsx(e,{questions:c,readOnly:n,currentQuestion:f,currentQuestionIndex:g,currentAnswer:h,totalQuestions:c.length,isMultiQuestion:c.length>1,isLastQuestion:g===c.length-1,allQuestionsAnswered:S,isSubmitDisabled:w,isSubmitAllDisabled:j,onCurrentQuestionIndexChange:o,onCurrentAnswerChange:R,onSubmit:y})}function pt(n){var i,a,r;const e=n.thread.messages,s=e[e.length-1];return(s==null?void 0:s.role)!=="assistant"||((i=s.status)==null?void 0:i.type)!=="requires-action"?!1:((r=(a=s.metadata)==null?void 0:a.custom)==null?void 0:r.pendingMcpAuth)===!0}function xt(){const n=A(pt),{pending:e}=se(),{pending:s}=fe(),i=he(),a=e[0];if(a!=null){const r=a.toolName;return r!=null&&(i==null?void 0:i[r])!=null?{kind:"custom",toolName:r}:{kind:"ask-user"}}return s.length>0?{kind:"approval"}:n?{kind:"mcp"}:{kind:"compose"}}function vt({disabled:n=!1}){const e=he(),{pending:s,respond:i}=se(),a=s[0],r=d.useCallback(u=>{if(n||a==null)return;const o=u.trim();o&&i({toolCallId:a.toolCallId,content:o})},[n,a,i]);if(a==null||a.toolName==null)return null;const c=e==null?void 0:e[a.toolName];return c==null?null:t.jsx(c,{args:a.args??{},disabled:n,onSubmit:r})}function bt({servers:n,onContinue:e,readOnly:s}){const i=b("McpAuthPrompt"),{handleAuthorize:a}=qe(),{refreshConnectors:r}=oe(),[c,u]=d.useState(()=>new Set),o=d.useRef(c),[l,m]=d.useState(!1),[g,f]=d.useState(!1),h=d.useRef(!1),v=d.useRef(0);d.useEffect(()=>()=>{v.current+=1},[]);const S=()=>{s||h.current||g||(h.current=!0,m(!0),e().then(()=>{f(!0)}).catch(()=>{}).finally(()=>{h.current=!1,m(!1)}))},p=w=>{const j=v.current;a(w,R=>{if(j!==v.current||!R)return;const y=new Set([...o.current,w]);o.current=y,u(y),r(),n.every(I=>y.has(I.id))&&S()})};return g?null:t.jsx(i,{servers:n,connectedServerIds:c,continueLoading:l,onConnect:p,onContinue:S,readOnly:s})}function Ct({servers:n,onContinue:e,readOnly:s}){const i=b("McpAuthPrompt"),[a,r]=d.useState(!1),[c,u]=d.useState(!1),o=d.useRef(!1),l=()=>{s||o.current||c||(o.current=!0,r(!0),e().then(()=>{u(!0)}).catch(()=>{}).finally(()=>{o.current=!1,r(!1)}))};if(c)return null;const m=g=>{const f=n.find(h=>h.id===g);f!=null&&f.authUrl&&window.open(f.authUrl,"_blank","noopener,noreferrer")};return t.jsx(i,{servers:n,continueLoading:a,onConnect:m,onContinue:l,readOnly:s})}function St({disabled:n=!1}){const{pending:e,continue:s}=De(),i=ge();if(!e)return null;const a=n,r=JSON.stringify(e.mcpServers.map(c=>c.id));return i?t.jsx(bt,{servers:e.mcpServers,onContinue:s,readOnly:a},r):t.jsx(Ct,{servers:e.mcpServers,onContinue:s,readOnly:a},r)}function wt(){var j;const{agentSpec:n,draftSessionId:e}=G(),s=pe(),i=$e(),a=re(),{environments:r,defaultEnvironment:c,loaded:u,loading:o,error:l}=Je(),m=(j=n==null?void 0:n.config)==null?void 0:j.sandbox,g=Ze({sandboxEnvironments:i,capabilities:a})&&(m==null?void 0:m.enabled)!==!1,f=et(m),h=e==null&&u&&!o&&l===null,v=r.some(R=>R.name===f&&R.enabled),S=c==null?void 0:c.name,p=h&&!v&&S!==f&&(S!==void 0||f!==void 0);return d.useEffect(()=>{p&&(s==null||s({config:{...n==null?void 0:n.config,sandbox:tt(m,S)}}))},[p,S]),{pending:g&&e==null&&(o||!u&&l===null||p)}}function jt(n){var s;const e=n.items;if(e.length>0){const i=[];let a=0;for(const r of Array.from(e)){if(r.kind!=="file")continue;const c=((s=r.webkitGetAsEntry)==null?void 0:s.call(r))??null;if((c==null?void 0:c.isDirectory)===!0){a+=1;continue}const u=r.getAsFile();u!=null&&i.push(u)}return{files:i,rejectedDirectoryCount:a}}return{files:Array.from(n.files),rejectedDirectoryCount:0}}function yt({disabled:n,hasText:e,hasAttachments:s,requiresModel:i,hasModel:a,isBlocked:r=!1}){return!n&&!r&&(e||s)&&(!i||a)}function xe({placeholder:n,connectedToBanner:e=!1,sendBlockedReason:s}){var ae,ie;const i=b("ComposerShell"),a=te(),r=O(),c=Q(),u=A(C=>C.threadListItem.remoteId),o=A(C=>C.composer.text.trim().length>0),l=A(C=>C.composer.attachments.length),m=l>0,g=o||m,{agentSpec:f}=G(),h=r==null||r.mode.status==="active"&&r.mode.isMutable,v=!!((ie=(ae=f==null?void 0:f.model)==null?void 0:ae.name)!=null&&ie.trim()),{isBusy:S,send:p,resetBusy:w}=Qe(),j=ee(),R=Ge(),y=me(),I=d.useRef(null),[E,M]=d.useState(!1),_=d.useRef(!1),N=!j,P=yt({disabled:N,hasText:o,hasAttachments:m,requiresModel:h,hasModel:v,isBlocked:s!=null}),x=(r==null?void 0:r.mode.status)==="active"?{agentId:r.mode.agentId,agentName:r.mode.agentName}:{},k=()=>{var C;P&&(c(T.Message.SENT,V({has_text:o,has_attachments:m,attachment_count:l,requires_model:h,model:(C=f==null?void 0:f.model)==null?void 0:C.name},{sessionId:u,...x})),p(()=>a.composer().send()))},H=C=>{C.key!=="Enter"||C.shiftKey||C.nativeEvent.isComposing||P&&(C.preventDefault(),k())};return t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:I,type:"file",multiple:!0,hidden:!0,onChange:C=>{const L=C.target.files;if(L){c(T.Attachment.PICKED,V({file_count:L.length},{sessionId:u,...x}));for(const W of L)a.composer().addAttachment(W).catch(Y=>{y==null||y.showError(Y)})}C.target.value=""}}),t.jsx(D.AttachmentDropzone,{disabled:N,"data-slot":"aui_composer-attachment-dropzone",className:"w-full rounded-[0.75rem] transition-[box-shadow] data-[dragging=true]:ring-focus-ring/20 data-[dragging=true]:ring-3",onDropCapture:C=>{if(N)return;const L=C.dataTransfer;if(L==null)return;const{files:W,rejectedDirectoryCount:Y}=jt(L);Y>0&&(y==null||y.showError(new Error("Folders cannot be attached. Attach individual files instead."))),W.length!==0&&c(T.Attachment.PICKED,V({file_count:W.length},{sessionId:u,...x}))},children:t.jsx(D.Root,{"data-slot":"aui_composer-root",className:"w-full",onSubmit:C=>{C.preventDefault(),k()},children:t.jsx(i,{className:e?"rounded-t-none border-t-0 focus-within:ring-0":void 0,attachments:t.jsx(Ye,{}),input:t.jsx(D.Input,{"data-slot":"aui_composer-input",placeholder:n,disabled:N,submitMode:"enter",onKeyDown:H,"aria-label":"Message input",className:"text-text-primary placeholder:text-text-secondary/80 max-h-[10lh] min-h-10 w-full resize-none overflow-y-auto rounded-lg border-none bg-transparent px-1 py-1 text-base leading-normal shadow-none outline-none disabled:cursor-not-allowed"}),disabled:N,canSubmit:P,hasContent:g,isRunning:S,isCancelling:E,blockedReason:s,onSubmit:k,onCancel:j?()=>{_.current||(_.current=!0,M(!0),c(T.Message.CANCELLED,V(void 0,{sessionId:u,...x})),w(),R().catch(()=>{}).finally(()=>{_.current=!1,M(!1)}))}:void 0,onAttach:j?()=>{var C;return(C=I.current)==null?void 0:C.click()}:void 0})})})]})}function It({placeholder:n,connectedToBanner:e=!1}){var o,l;const{pending:s}=wt(),{agentSpec:i}=G(),{loaded:a,loading:r}=oe(),u=!!!((l=(o=i==null?void 0:i.model)==null?void 0:o.name)!=null&&l.trim())&&(!a||r)?"Loading models…":s?"Preparing sandbox…":void 0;return t.jsx(xe,{placeholder:n,connectedToBanner:e,sendBlockedReason:u})}function q({placeholder:n,connectedToBanner:e=!1}){const s=O(),i=b("ComposerLeftSection"),a=b("ComposerRightSection"),r=le("ComposerLeftSection"),c=le("ComposerRightSection"),u=b("DraftComposerLeftSection"),o=b("DraftComposerRightSection");return(s==null?void 0:s.mode.status)==="active"&&s.mode.isMutable?t.jsx(Oe,{children:t.jsx(_e,{overrides:{ComposerLeftSection:r?u:i,ComposerRightSection:c?o:a},children:t.jsx(It,{placeholder:n,connectedToBanner:e})})}):t.jsx(xe,{placeholder:n,connectedToBanner:e})}function At({placeholder:n="Ask anything... (Shift+Enter for new line)"}){const e=xt(),s=ee(),i=e.kind==="mcp"?t.jsx(St,{disabled:!s}):e.kind==="custom"?t.jsx(vt,{disabled:!s}):e.kind==="ask-user"?t.jsx(gt,{disabled:!s}):e.kind==="approval"?t.jsx(ht,{}):null;return i==null?t.jsx(q,{placeholder:n}):e.kind==="approval"?t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"flex w-full flex-col",children:[i,t.jsx(q,{placeholder:n,connectedToBanner:!0})]}):e.kind==="mcp"?t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"relative flex w-full flex-col",children:[t.jsx("div",{className:"pb-2",children:i}),t.jsx("div",{className:"relative z-10 -mt-3",children:t.jsx(q,{placeholder:n})})]}):t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"flex w-full flex-col",children:[i,t.jsx("div",{className:"relative z-10 -mt-1",children:t.jsx(q,{placeholder:n})})]})}var kt=200,ue='[data-slot="aui_thread-viewport"]';function Rt(){const n=b("HistoryLoader"),{hasOlderHistory:e,isLoadingOlderHistory:s,loadOlderHistory:i}=ke(),[a,r]=d.useState(null),c=d.useRef(!1),u=d.useCallback(async()=>{if(c.current)return;c.current=!0;const o=(a==null?void 0:a.closest(ue))??null,l=(o==null?void 0:o.scrollHeight)??0,m=(o==null?void 0:o.scrollTop)??0;try{await i(),requestAnimationFrame(()=>{if(o==null)return;const g=o.scrollHeight-l;g>0&&o.scrollTo({top:m+g,behavior:"instant"})})}catch{}finally{c.current=!1}},[a,i]);return d.useEffect(()=>{if(a==null||!e)return;const o=a.closest(ue),l=new IntersectionObserver(m=>{m.some(g=>g.isIntersecting)&&u()},{root:o,rootMargin:`${kt}px 0px 0px 0px`});return l.observe(a),()=>l.disconnect()},[a,e,u]),e?t.jsx(n,{ref:r,isLoading:s}):null}function Et(){const n=b("ResumeUnavailable");return Me()?t.jsx(n,{}):null}function Mt(){return A(e=>{var s;return(((s=e.message.attachments)==null?void 0:s.length)??0)>0})?t.jsx("div",{className:"pointer-events-none mb-2 opacity-90",children:t.jsx(Xe,{})}):null}function Nt(){const n=b("UserMessageEdit"),e=b("MessageTimestamp"),s=ne(),i=ee(),a=A(o=>o.message.createdAt),{cancel:r,disabled:c}=Fe(),{disabled:u}=Be();return t.jsx(Ue.Root,{"data-role":"user",children:t.jsx(D.Root,{"data-slot":"aui_user-edit-composer-root",className:"fade-in slide-in-from-bottom-1 animate-in flex w-full justify-end px-2 duration-150",children:t.jsx(n,{timestamp:t.jsx(e,{createdAt:a}),attachments:t.jsx(Mt,{}),input:t.jsx("div",{className:"mt-1 rounded border border-border bg-secondary-bg p-2 text-text-primary",children:t.jsx(D.Input,{"data-slot":"aui_user-edit-input",disabled:s||!i,submitMode:"enter","aria-label":"Edit message",className:"max-h-32 min-h-10 w-full resize-none border-none bg-transparent p-0 text-base leading-[1.34] outline-none focus:shadow-none"})}),footer:t.jsxs("div",{className:"flex items-center justify-end gap-2",children:[t.jsx(ce.Secondary,{type:"button",disabled:c,onClick:r,children:"Cancel"}),t.jsx(D.Send,{asChild:!0,children:t.jsx(ce.Primary,{type:"button",disabled:u||s||!i,children:"Save & Rerun"})})]})})})})}function Tt(){const n=te(),e=A(l=>l.threadListItem.remoteId),s=A(l=>l.threadListItem.title),i=A(l=>{var m;return(m=l.thread.messages.find(g=>g.role==="user"))==null?void 0:m.id}),a=ne(),r=d.useRef(!1),c=d.useRef(e),u=d.useRef(i),o=d.useRef(void 0);d.useEffect(()=>{const l=c.current!==e;c.current=e;const m=!l&&r.current&&!a;r.current=a;const g=u.current;u.current=i;const f=!l&&a&&g!=null&&i!=null&&g!==i;if(l&&(o.current=void 0),!f&&!m||e==null||o.current===e||s!=null&&s.trim()!=="")return;o.current=e;const h=n.threadListItem();Promise.resolve().then(()=>h.generateTitle()).catch(()=>{})},[n,i,a,e,s])}function Pt(){const n=de(),e=te(),s=A(o=>o.threadListItem.remoteId),i=A(o=>o.threadListItem.lastMessageAt),a=ne(),r=d.useRef(!1),c=d.useRef(s),u=d.useRef(i);u.current=i,d.useEffect(()=>{if(!a||s==null)return;const o=e.threadListItem().getState().custom;X(o)!=="running"&&e.threadListItem().updateCustom($(o,"running",new Date().toISOString()))},[e,a,s]),d.useEffect(()=>{const o=c.current!==s;c.current=s;const l=!o&&r.current&&!a;if(r.current=a,!l||s==null)return;const m=e.threadListItem().getState().custom;if(X(m)==="running"&&e.threadListItem().updateCustom($(m,null)),n==null)return;let g=!1;return n.getSession({sessionId:s}).then(f=>{var w;if(g)return;const h=((w=f.lastTurnDetails)==null?void 0:w.state.status)??null,v=e.threadListItem().getState().custom,S=(X(v)??null)===h,p=Ie(v)??u.current;if(!(S&&!Ae(f.updatedAt,p)))return e.threadListItem().updateCustom($(v,h,f.updatedAt))}).catch(()=>{}),()=>{g=!0}},[e,a,s,n])}var ve="trueforge.file-preview-width";function Lt(){try{const n=sessionStorage.getItem(ve);if(n==null)return null;const e=Number(n);return Number.isFinite(e)?e:null}catch{return null}}function Dt(n){try{sessionStorage.setItem(ve,String(Math.round(n)))}catch{}}function Ot(){const n=Ne(),e=b("FilePreviewPanel"),s=Te(),i=Pe(),a=me(),[r,c]=d.useState(0),[u,o]=d.useState(!1),[l,m]=d.useState(Lt),g=Le(n.target,r),f=n.target,h=n.presentation==="full"?"full":s||i?"overlay":"side";if(d.useLayoutEffect(()=>{var j;if(f==null||h!=="side")return;const p=((j=document.querySelector('[data-slot="aui_file-preview-row"]'))==null?void 0:j.getBoundingClientRect().width)??0;if(p<=0)return;const w=l==null?He(p):We({requested:l,rowWidth:p});(l==null||Math.abs(w-l)>1)&&m(w)},[h,f,l]),f==null)return null;const v=g.view.status==="error",S=()=>{u||(o(!0),(async()=>{try{const p=g.blob??await f.load();ze(p,Ve(f.path))}catch(p){a!=null?a.showError(p):console.error("Failed to download sandbox file",p)}finally{o(!1)}})())};return t.jsx(e,{name:f.name,placement:h,view:g.view,onClose:n.close,onDownload:S,onEnterFullPage:()=>n.setPresentation("full"),onExitFullPage:()=>n.setPresentation("panel"),downloadBusy:u,...h==="side"&&l!=null?{widthPx:l}:{},...h==="side"?{onWidthChange:p=>{m(p),Dt(p)}}:{},...v?{onRetry:()=>c(p=>p+1)}:{}})}function _t({children:n}){return t.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 fill-mode-both duration-200",children:n})}function Ft({isEditing:n}){return A(s=>s.message.role)==="user"?n?t.jsx(Nt,{}):t.jsx(Re,{}):t.jsx(Ee,{})}function Bt({composer:n}){d.useEffect(()=>{Ce()},[]),Tt(),Pt();const e=O(),s=b("WelcomeScreen"),i=b("MessageListSkeleton"),a=b("ScrollToBottomButton"),r=b("MessageGroup"),c=b("ThreadComposerAreaShell"),u=b("ThreadRootShell"),o=b("ThreadViewportShell"),l=A(Se),m=A(f=>f.thread.isLoading),g=(e==null?void 0:e.mode.status)==="active"?e.mode.agentName!=null&&e.mode.agentName.length>0?e.mode.agentName:e.mode.isMutable&&e.mode.isCreateAgent?"Start building a new Agent":void 0:void 0;return t.jsx(we,{children:t.jsx(je,{children:t.jsx(ye,{children:t.jsx(z.Root,{asChild:!0,children:t.jsx(u,{children:t.jsxs("div",{"data-slot":"aui_file-preview-row",className:"relative flex min-h-0 w-full min-w-0 flex-1",children:[t.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[t.jsx(z.Viewport,{asChild:!0,autoScroll:!0,children:t.jsxs(o,{isEmpty:l,children:[l&&t.jsx(s,{heading:g}),l&&!m&&n,m?t.jsx(i,{}):!l&&t.jsxs(t.Fragment,{children:[t.jsx(Rt,{}),t.jsxs(r,{children:[t.jsx(z.Messages,{children:({message:f})=>t.jsx(_t,{children:t.jsx(Ft,{isEditing:f.role==="user"&&f.composer.isEditing})})}),t.jsx(Et,{})]})]})]})}),!m&&!l&&t.jsxs(c,{isEmpty:l,children:[t.jsx(z.ScrollToBottom,{asChild:!0,children:t.jsx(a,{})}),n]})]}),t.jsx(Ot,{})]})})})})})})}function Ht(){const n=O();return(n==null?void 0:n.sessionAccessError)!=null?t.jsx(be,{title:"Unable to load session",description:n.sessionAccessError,className:"bg-primary-bg"}):t.jsx(Bt,{composer:t.jsx(At,{})})}function Wt({className:n}){var o;const e=O(),s=Q(),i=ut(),a=A(l=>l.threadListItem.title);if(i===null)return null;const r=(a==null?void 0:a.trim())??"",c=i.allowThreadTitle&&r.length>0?r:i.name,u=(e==null?void 0:e.isLibraryEnabled)===!0&&((o=e.historyAgentFilter)==null?void 0:o.intent)==="try-agent";return t.jsxs("h1",{className:B("flex min-w-0 items-center gap-1.5",mt,n),children:[u?t.jsx("button",{type:"button","aria-label":"Back to all agents",title:"Back to all agents",className:K({variant:"ghost",size:"icon",className:"text-text-secondary"}),onClick:()=>{s(T.Library.OPENED),e==null||e.setLibraryOpen(!0)},children:t.jsx(U,{name:"arrow-left"})}):null,t.jsx("span",{className:"truncate",title:c,children:c}),i.isEditing?t.jsx(dt,{content:"Try changes here, then choose Update agent to save.",side:"bottom",children:t.jsxs("span",{className:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg inline-flex shrink-0 items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[t.jsx(U,{name:"pencil",className:"size-3"}),"Editing"]})}):null]})}function zt({className:n,labeled:e=!1,onAction:s}){const i=O(),a=Q(),r=ge(),c=re(),{mode:u,setTheme:o}=lt(),l=b("ShellActionsActionSlot"),m=u==="dark",g=m?"Light":"Dark",f=ct({catalog:r,capabilities:c}),h="hover:bg-secondary-button-hover hover:text-ghost-button-text";return t.jsxs("div",{className:B("flex shrink-0 items-center gap-1",e?"w-full flex-col items-center gap-1 text-sidebar-text":"text-text-primary",n),children:[t.jsxs("a",{href:"https://trueforge.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",title:"Documentation",className:K({variant:"ghost",size:e?void 0:"icon",className:B(h,e&&Z)}),onClick:()=>s==null?void 0:s(),children:[t.jsx(U,{name:"book-open",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:"Docs"}):null]}),t.jsxs("button",{type:"button","aria-label":m?"Switch to light theme":"Switch to dark theme",title:m?"Light theme":"Dark theme",className:K({variant:"ghost",size:e?void 0:"icon",className:B(h,e&&Z)}),onClick:()=>{o(m?"light":"dark"),s==null||s()},children:[t.jsx(U,{name:m?"sun":"moon",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:g}):null]}),i!=null&&f?t.jsxs("button",{type:"button","aria-label":"Settings",title:"Settings","aria-expanded":i.settingsOpen,"aria-current":i.settingsOpen?"page":void 0,className:K({variant:"ghost",size:e?void 0:"icon",className:B(h,e&&Z,i.settingsOpen&&"bg-primary-button-bg font-medium text-primary-button-text hover:bg-primary-button-hover hover:text-primary-button-text")}),onClick:()=>{i.settingsOpen||a(T.Settings.OPENED),i.setSettingsOpen(!0),s==null||s()},children:[t.jsx(U,{name:"settings",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:"Settings"}):null]}):null,t.jsx(l,{})]})}function Vt({showClose:n=!1}){var P;const{agentSpec:e}=G(),s=pe(),i=nt(),a=st(),r=a.mode.status==="active"?a.mode.agentId:void 0,{allows:c}=ot({resourceType:"agent",resourceIds:r==null?[]:[r]}),u=c(r,"MANAGE"),o=de(),l=re(),m=oe(),g=b("AgentConfigPanel"),f=b("AgentConfigEditors"),[h,v]=d.useState(null),S=rt(a.mode),{draft:p,flush:w}=at(),j=d.useCallback(()=>{w(),i(),a.setAgentConfigOpen(!1)},[i,w,a]);d.useEffect(()=>{S&&m.ensureLoaded()},[m,S]),d.useEffect(()=>{u||v(null)},[u]),d.useEffect(()=>{if(!n||!a.agentConfigOpen)return;const x=k=>{!k.defaultPrevented&&k.key==="Escape"&&h===null&&document.querySelector("dialog[open]")===null&&j()};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[j,h,a.agentConfigOpen,n]);const R=d.useRef({flushAgentSpec:i,flushInstructions:w});R.current={flushAgentSpec:i,flushInstructions:w},d.useEffect(()=>()=>{const{flushAgentSpec:x,flushInstructions:k}=R.current;k();try{x()}catch{}},[]);const y=d.useCallback(({next:x,instructions:k})=>{var H;if(u){if(x.skills&&x.skills.length>0&&(l==null?void 0:l.sandbox.enabled)===!0){s==null||s({...x,instructions:k||void 0,config:{...x.config,sandbox:{...(H=x.config)==null?void 0:H.sandbox,enabled:!0}}});return}s==null||s({...x,instructions:k||void 0})}},[u,l==null?void 0:l.sandbox.enabled,s]),I=d.useCallback(x=>{y({next:x,instructions:p})},[y,p]),E=d.useCallback(x=>{e!==null&&y({next:it({spec:e,messages:x.messages}),instructions:x.instructions})},[e,y]),M=d.useCallback(async x=>(o==null?void 0:o.getMcpTools)===void 0?[]:o.getMcpTools({connectorId:x}),[o]),_=d.useCallback(async x=>{var k;return(k=o==null?void 0:o.getMcpConnector)==null?void 0:k.call(o,{connectorId:x})},[o]);if(!S||e===null||n&&!a.agentConfigOpen)return null;const N=m.models.find(x=>x.name===e.model.name);return t.jsxs(t.Fragment,{children:[t.jsx(g,{spec:e,model:N,models:m.models,modelsLoading:m.loading,modelsError:m.error,skills:m.skills,skillsAvailable:(l==null?void 0:l.skill.enabled)===!0,webSearchAvailable:((P=l==null?void 0:l.webSearch)==null?void 0:P.enabled)===!0,memoryOffered:(l==null?void 0:l.memory)!=null,instructions:p,onOpenEditor:x=>{u&&v(x)},onChange:I,disabled:!u,onClose:n?j:void 0}),t.jsx(f,{editor:h,spec:e,models:m.models,connectors:m.connectors,skills:m.skills,loading:m.loading,error:m.error,skillsDisabled:(l==null?void 0:l.skill.enabled)!==!0,sandboxAvailable:(l==null?void 0:l.sandbox.enabled)===!0,instructions:p,onInstructionsSave:E,...(o==null?void 0:o.getMcpConnector)===void 0?{}:{loadMcpConnector:_},loadMcpTools:M,onRefreshConnectors:m.refreshConnectors,onChange:I,onClose:()=>v(null)})]})}export{Vt as A,Wt as N,zt as S,Ht as T};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./workers-
|
|
1
|
+
import{c as h}from"./workers-CGQFLoPd.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as C}from"./lspLanguageFeatures-PB1varoG.js";import{h as U,i as y,j as T,t as x,k as O}from"./lspLanguageFeatures-PB1varoG.js";import{l as s}from"./index-DUcQ3h0s.js";import"./index-aDyvsTqL.js";const I=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL(""+new URL("css.worker-CH7Os8C2.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new C(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,U as DocumentLinkAdapter,C as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,y as fromPosition,T as fromRange,E as setupMode,x as toRange,O as toTextEdit};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
������|9��&+��K�WZ!��
|
|
2
|
+
���~�Vo���Cj$"��D"E����<q4��D#T���!Nw�
|
|
3
|
+
$�1��Hب��1[p��$ۻ�=6��m�C�T���)ǖ��K��oT��$h'�0�+<�/��e�
|
|
4
|
+
Ü}W�~?�o���zђ���'������E|iy�ǒZI[��_�'L}Uf߂�c�&��z�����3j�v#�*�iws�L��x��E],�iŰ,J� &w6&�r�/�u�B��u��� F5�7үM�H�Ή�� u�šo��QJi!�&�����gK�P���=hv���oW�8���� �L����;��M�v�\�Vf,��bn�P|@�Vj�~�@n��P֪��_Z�LL�ARۋnG�i�����%���2-דl��nf�y������l�
|
|
5
|
+
!�����r睙� �G��k�^������E*]l��)/ �w�y�E��r��GVɞ~�j�%/��^������wv�`k9i��B�|&�`gR=��
|
|
6
|
+
�K��N<�C���u����!�����h�nw��&p�V��6�P�b]��M3gـT���g��Y=�1�ɯ���Q����R�8NLh�i�5�uu�7��8���7��%NDld��{3������,�؛w�^N#���M��ѹ@%�c�
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{l as c}from"./index-
|
|
1
|
+
import{l as c}from"./index-DUcQ3h0s.js";import"./index-aDyvsTqL.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],r={close:">",id:"angle",open:"<"},a={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
|
|
2
2
|
\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
|
|
3
3
|
\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(r,t),i=_(a,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,k)},E={conf:l(r),language:_(r,p)},B={conf:l(a),language:_(a,p)},D={conf:g(),language:A(k)},C={conf:g(),language:A(p)};export{E as TagAngleInterpolationBracket,x as TagAngleInterpolationDollar,C as TagAutoInterpolationBracket,D as TagAutoInterpolationDollar,B as TagBracketInterpolationBracket,$ as TagBracketInterpolationDollar};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./index-
|
|
1
|
+
import{l as e}from"./index-DUcQ3h0s.js";import"./index-aDyvsTqL.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{m as conf,r as language};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./index-
|
|
1
|
+
import{l as e}from"./index-DUcQ3h0s.js";import"./index-aDyvsTqL.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as D}from"./workers-
|
|
1
|
+
import{c as D}from"./workers-CGQFLoPd.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as f,C as R}from"./lspLanguageFeatures-PB1varoG.js";import{a as b,e as y,d as T,R as U,i as x,j as M,t as j,k as O}from"./lspLanguageFeatures-PB1varoG.js";import{l as t}from"./index-DUcQ3h0s.js";import"./index-aDyvsTqL.js";const I=120*1e3;class _{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL(""+new URL("html.worker-DTgyLzoY.js",import.meta.url).href,import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new _(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new f(e)))}function F(i){const n=[],e=[],r=new _(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new c(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new u(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new f(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,b as DefinitionAdapter,y as DiagnosticsAdapter,T as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,f as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,U as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,_ as WorkerManager,x as fromPosition,M as fromRange,F as setupMode,W as setupMode1,j as toRange,O as toTextEdit};
|
|
Binary file
|
|
Binary file
|