@zythum02/fello-server 0.1.53 → 0.1.54
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/out/renderer/assets/{_baseUniq-CJr3HkLS.js → _baseUniq-DYINnBRJ.js} +1 -1
- package/out/renderer/assets/_baseUniq-DYINnBRJ.js.br +0 -0
- package/out/renderer/assets/_baseUniq-DYINnBRJ.js.gz +0 -0
- package/out/renderer/assets/{arc-POsBroTF.js → arc-BSUyw88k.js} +1 -1
- package/out/renderer/assets/arc-BSUyw88k.js.br +0 -0
- package/out/renderer/assets/arc-BSUyw88k.js.gz +0 -0
- package/out/renderer/assets/{architectureDiagram-Q4EWVU46-CmToUhDb.js → architectureDiagram-Q4EWVU46-Cxb8DhYZ.js} +6 -6
- package/out/renderer/assets/architectureDiagram-Q4EWVU46-Cxb8DhYZ.js.br +0 -0
- package/out/renderer/assets/architectureDiagram-Q4EWVU46-Cxb8DhYZ.js.gz +0 -0
- package/out/renderer/assets/{arrow-left-CxS1t3f7.js → arrow-left-CQqe9rrj.js} +1 -1
- package/out/renderer/assets/arrow-up-1eI4tva4.js +21 -0
- package/out/renderer/assets/{automation-Cyz3eLWp.js → automation-CQAOpWYp.js} +7 -7
- package/out/renderer/assets/automation-CQAOpWYp.js.br +0 -0
- package/out/renderer/assets/automation-CQAOpWYp.js.gz +0 -0
- package/out/renderer/assets/{blockDiagram-DXYQGD6D-M2nnTg9f.js → blockDiagram-DXYQGD6D-CFozis-v.js} +7 -7
- package/out/renderer/assets/blockDiagram-DXYQGD6D-CFozis-v.js.br +0 -0
- package/out/renderer/assets/blockDiagram-DXYQGD6D-CFozis-v.js.gz +0 -0
- package/out/renderer/assets/{c4Diagram-AHTNJAMY-CwLtsy_0.js → c4Diagram-AHTNJAMY-CcDDkZUp.js} +3 -3
- package/out/renderer/assets/c4Diagram-AHTNJAMY-CcDDkZUp.js.br +0 -0
- package/out/renderer/assets/c4Diagram-AHTNJAMY-CcDDkZUp.js.gz +0 -0
- package/out/renderer/assets/{channel-BUNDMqpH.js → channel-B-VC_ZcK.js} +1 -1
- package/out/renderer/assets/{chunk-4BX2VUAB-B2qXmkDT.js → chunk-4BX2VUAB-ClHmnOTC.js} +1 -1
- package/out/renderer/assets/{chunk-4TB4RGXK-DXLZpPY5.js → chunk-4TB4RGXK-mwOvn19G.js} +5 -5
- package/out/renderer/assets/chunk-4TB4RGXK-mwOvn19G.js.br +0 -0
- package/out/renderer/assets/chunk-4TB4RGXK-mwOvn19G.js.gz +0 -0
- package/out/renderer/assets/{chunk-55IACEB6-CJeyefxI.js → chunk-55IACEB6-CE8f6iip.js} +1 -1
- package/out/renderer/assets/{chunk-EDXVE4YY-CNjJEQfY.js → chunk-EDXVE4YY-CU7aY96h.js} +1 -1
- package/out/renderer/assets/chunk-EDXVE4YY-CU7aY96h.js.br +0 -0
- package/out/renderer/assets/chunk-EDXVE4YY-CU7aY96h.js.gz +0 -0
- package/out/renderer/assets/{chunk-FMBD7UC4-DOAOsjRu.js → chunk-FMBD7UC4-B38kFkjv.js} +1 -1
- package/out/renderer/assets/{chunk-OYMX7WX6-BG4B1VQ7.js → chunk-OYMX7WX6-BriTCtaz.js} +3 -3
- package/out/renderer/assets/chunk-OYMX7WX6-BriTCtaz.js.br +0 -0
- package/out/renderer/assets/chunk-OYMX7WX6-BriTCtaz.js.gz +0 -0
- package/out/renderer/assets/{chunk-QZHKN3VN-B9zfXYIQ.js → chunk-QZHKN3VN-BwJ37p5G.js} +1 -1
- package/out/renderer/assets/{chunk-YZCP3GAM-jeoI2tsD.js → chunk-YZCP3GAM-BlHAYoQe.js} +1 -1
- package/out/renderer/assets/chunk-YZCP3GAM-BlHAYoQe.js.br +0 -0
- package/out/renderer/assets/chunk-YZCP3GAM-BlHAYoQe.js.gz +0 -0
- package/out/renderer/assets/{circle-x-B1kBsMlS.js → circle-x-D_gJIgxf.js} +1 -1
- package/out/renderer/assets/{classDiagram-v2-HSJHXN6E-DWPFF3Yt.js → classDiagram-6PBFFD2Q-D01ZMeaj.js} +7 -7
- package/out/renderer/assets/{classDiagram-6PBFFD2Q-DWPFF3Yt.js → classDiagram-v2-HSJHXN6E-D01ZMeaj.js} +7 -7
- package/out/renderer/assets/{clone-Dcvr9oKv.js → clone-qctAbdCx.js} +1 -1
- package/out/renderer/assets/{code-editor-CEXlC4aV.js → code-editor-tm0AYOLz.js} +2 -2
- package/out/renderer/assets/code-editor-tm0AYOLz.js.br +0 -0
- package/out/renderer/assets/code-editor-tm0AYOLz.js.gz +0 -0
- package/out/renderer/assets/{collapsible-CMuCJUWG.js → collapsible-DD6NlDid.js} +1 -1
- package/out/renderer/assets/collapsible-DD6NlDid.js.br +0 -0
- package/out/renderer/assets/collapsible-DD6NlDid.js.gz +0 -0
- package/out/renderer/assets/command-BF4jOeoL.js +11 -0
- package/out/renderer/assets/{cose-bilkent-S5V4N54A-B3bgImVS.js → cose-bilkent-S5V4N54A-CF4brbsf.js} +2 -2
- package/out/renderer/assets/cose-bilkent-S5V4N54A-CF4brbsf.js.br +0 -0
- package/out/renderer/assets/cose-bilkent-S5V4N54A-CF4brbsf.js.gz +0 -0
- package/out/renderer/assets/{dagre-KV5264BT-DTbumBA_.js → dagre-KV5264BT-C6I5VgRp.js} +7 -7
- package/out/renderer/assets/dagre-KV5264BT-C6I5VgRp.js.br +0 -0
- package/out/renderer/assets/dagre-KV5264BT-C6I5VgRp.js.gz +0 -0
- package/out/renderer/assets/{diagram-5BDNPKRD-B34Y6e8q.js → diagram-5BDNPKRD-BAO72D5R.js} +7 -7
- package/out/renderer/assets/diagram-5BDNPKRD-BAO72D5R.js.br +0 -0
- package/out/renderer/assets/diagram-5BDNPKRD-BAO72D5R.js.gz +0 -0
- package/out/renderer/assets/{diagram-G4DWMVQ6-BBiBmFR4.js → diagram-G4DWMVQ6-BmpkrtJs.js} +7 -7
- package/out/renderer/assets/diagram-G4DWMVQ6-BmpkrtJs.js.br +0 -0
- package/out/renderer/assets/diagram-G4DWMVQ6-BmpkrtJs.js.gz +0 -0
- package/out/renderer/assets/{diagram-MMDJMWI5-P-YslDjG.js → diagram-MMDJMWI5-8keZZjgB.js} +6 -6
- package/out/renderer/assets/diagram-MMDJMWI5-8keZZjgB.js.br +0 -0
- package/out/renderer/assets/diagram-MMDJMWI5-8keZZjgB.js.gz +0 -0
- package/out/renderer/assets/{diagram-TYMM5635-D_cLard_.js → diagram-TYMM5635-Be4uDvHI.js} +6 -6
- package/out/renderer/assets/diagram-TYMM5635-Be4uDvHI.js.br +0 -0
- package/out/renderer/assets/diagram-TYMM5635-Be4uDvHI.js.gz +0 -0
- package/out/renderer/assets/{ellipsis-D1agTYu1.js → ellipsis-92s4sSUO.js} +1 -1
- package/out/renderer/assets/{erDiagram-SMLLAGMA-C1MHqKvC.js → erDiagram-SMLLAGMA-C6IgAbhi.js} +5 -5
- package/out/renderer/assets/erDiagram-SMLLAGMA-C6IgAbhi.js.br +0 -0
- package/out/renderer/assets/erDiagram-SMLLAGMA-C6IgAbhi.js.gz +0 -0
- package/out/renderer/assets/{field-DR3J0r9e.js → field-BPsDfe4e.js} +1 -1
- package/out/renderer/assets/field-BPsDfe4e.js.br +0 -0
- package/out/renderer/assets/field-BPsDfe4e.js.gz +0 -0
- package/out/renderer/assets/{file-text-nGCW6zu1.js → file-text-ITbWr8iW.js} +1 -1
- package/out/renderer/assets/{flowDiagram-DWJPFMVM-DprlEc3Z.js → flowDiagram-DWJPFMVM-vbYKBn4t.js} +7 -7
- package/out/renderer/assets/flowDiagram-DWJPFMVM-vbYKBn4t.js.br +0 -0
- package/out/renderer/assets/flowDiagram-DWJPFMVM-vbYKBn4t.js.gz +0 -0
- package/out/renderer/assets/{ganttDiagram-T4ZO3ILL-CbTdumBm.js → ganttDiagram-T4ZO3ILL-AxXIe9I4.js} +3 -3
- package/out/renderer/assets/ganttDiagram-T4ZO3ILL-AxXIe9I4.js.br +0 -0
- package/out/renderer/assets/ganttDiagram-T4ZO3ILL-AxXIe9I4.js.gz +0 -0
- package/out/renderer/assets/{gitGraphDiagram-UUTBAWPF-06bme-w8.js → gitGraphDiagram-UUTBAWPF-DSipARMB.js} +7 -7
- package/out/renderer/assets/gitGraphDiagram-UUTBAWPF-DSipARMB.js.br +0 -0
- package/out/renderer/assets/gitGraphDiagram-UUTBAWPF-DSipARMB.js.gz +0 -0
- package/out/renderer/assets/{graph-BZhxluo9.js → graph-mNaHfg3r.js} +2 -2
- package/out/renderer/assets/graph-mNaHfg3r.js.br +0 -0
- package/out/renderer/assets/graph-mNaHfg3r.js.gz +0 -0
- package/out/renderer/assets/{highlighted-body-OFNGDK62-CvDMJtXf.js → highlighted-body-OFNGDK62-8846XFj-.js} +2 -2
- package/out/renderer/assets/{index-LmYTNvdF.js → index-BUwXrbHW.js} +1643 -776
- package/out/renderer/assets/index-BUwXrbHW.js.br +0 -0
- package/out/renderer/assets/index-BUwXrbHW.js.gz +0 -0
- package/out/renderer/assets/index-DOIzYXAl.css +382 -0
- package/out/renderer/assets/index-DOIzYXAl.css.br +0 -0
- package/out/renderer/assets/index-DOIzYXAl.css.gz +0 -0
- package/out/renderer/assets/{infoDiagram-42DDH7IO-DqivEzWL.js → infoDiagram-42DDH7IO-ThYxaM6U.js} +5 -5
- package/out/renderer/assets/infoDiagram-42DDH7IO-ThYxaM6U.js.br +0 -0
- package/out/renderer/assets/infoDiagram-42DDH7IO-ThYxaM6U.js.gz +0 -0
- package/out/renderer/assets/{ishikawaDiagram-UXIWVN3A-BKcg_z4w.js → ishikawaDiagram-UXIWVN3A-EcWEDDQ3.js} +2 -2
- package/out/renderer/assets/ishikawaDiagram-UXIWVN3A-EcWEDDQ3.js.br +0 -0
- package/out/renderer/assets/ishikawaDiagram-UXIWVN3A-EcWEDDQ3.js.gz +0 -0
- package/out/renderer/assets/{item-BHEUMM9H.js → item-Dph2aCdz.js} +20 -2
- package/out/renderer/assets/item-Dph2aCdz.js.br +0 -0
- package/out/renderer/assets/item-Dph2aCdz.js.gz +0 -0
- package/out/renderer/assets/{journeyDiagram-VCZTEJTY-Bvv8xuxQ.js → journeyDiagram-VCZTEJTY-Ct6VLkXK.js} +5 -5
- package/out/renderer/assets/journeyDiagram-VCZTEJTY-Ct6VLkXK.js.br +0 -0
- package/out/renderer/assets/journeyDiagram-VCZTEJTY-Ct6VLkXK.js.gz +0 -0
- package/out/renderer/assets/{kanban-definition-6JOO6SKY-C-gRMpeM.js → kanban-definition-6JOO6SKY-DHWulQen.js} +3 -3
- package/out/renderer/assets/kanban-definition-6JOO6SKY-DHWulQen.js.br +0 -0
- package/out/renderer/assets/kanban-definition-6JOO6SKY-DHWulQen.js.gz +0 -0
- package/out/renderer/assets/{layout-B4dSyItA.js → layout-pfquJ3N_.js} +4 -4
- package/out/renderer/assets/layout-pfquJ3N_.js.br +0 -0
- package/out/renderer/assets/layout-pfquJ3N_.js.gz +0 -0
- package/out/renderer/assets/{linear-CoVhuer7.js → linear-CdfVBcAB.js} +1 -1
- package/out/renderer/assets/linear-CdfVBcAB.js.br +0 -0
- package/out/renderer/assets/linear-CdfVBcAB.js.gz +0 -0
- package/out/renderer/assets/{link-2-DHUPzNSt.js → link-2-DpdZfD3m.js} +1 -1
- package/out/renderer/assets/{mermaid-GHXKKRXX-CZqkhGx7.js → mermaid-GHXKKRXX-CqMNodCp.js} +36 -36
- package/out/renderer/assets/mermaid-GHXKKRXX-CqMNodCp.js.br +0 -0
- package/out/renderer/assets/mermaid-GHXKKRXX-CqMNodCp.js.gz +0 -0
- package/out/renderer/assets/{mic-BgSvicCB.js → mic-CT1bYBEV.js} +1 -1
- package/out/renderer/assets/{min-emzuJjmk.js → min-CiK16GFr.js} +2 -2
- package/out/renderer/assets/min-CiK16GFr.js.br +0 -0
- package/out/renderer/assets/min-CiK16GFr.js.gz +0 -0
- package/out/renderer/assets/{mindmap-definition-QFDTVHPH-DQ4JNECm.js → mindmap-definition-QFDTVHPH-BvmM-Xdx.js} +4 -4
- package/out/renderer/assets/mindmap-definition-QFDTVHPH-BvmM-Xdx.js.br +0 -0
- package/out/renderer/assets/mindmap-definition-QFDTVHPH-BvmM-Xdx.js.gz +0 -0
- package/out/renderer/assets/{open-guide-CfLO-Sdk.js → open-guide-BqiUQfrM.js} +1 -1
- package/out/renderer/assets/{package-search-CrF2Iegl.js → package-search-BxIuIl9F.js} +1 -1
- package/out/renderer/assets/{pieDiagram-DEJITSTG-0H6CGQQt.js → pieDiagram-DEJITSTG-CQY4NZ_4.js} +7 -7
- package/out/renderer/assets/pieDiagram-DEJITSTG-CQY4NZ_4.js.br +0 -0
- package/out/renderer/assets/pieDiagram-DEJITSTG-CQY4NZ_4.js.gz +0 -0
- package/out/renderer/assets/{plus-YNCXW-GD.js → plus-C5XdFVFm.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-34T5L4WZ-D0aPKp5z.js → quadrantDiagram-34T5L4WZ-BiDWKNht.js} +3 -3
- package/out/renderer/assets/quadrantDiagram-34T5L4WZ-BiDWKNht.js.br +0 -0
- package/out/renderer/assets/quadrantDiagram-34T5L4WZ-BiDWKNht.js.gz +0 -0
- package/out/renderer/assets/{requirementDiagram-MS252O5E-BkzwapW_.js → requirementDiagram-MS252O5E-D-KxL9Tf.js} +4 -4
- package/out/renderer/assets/requirementDiagram-MS252O5E-D-KxL9Tf.js.br +0 -0
- package/out/renderer/assets/requirementDiagram-MS252O5E-D-KxL9Tf.js.gz +0 -0
- package/out/renderer/assets/{resizable-cStzNJ8V.js → resizable-ObbINbIB.js} +1 -1
- package/out/renderer/assets/resizable-ObbINbIB.js.br +0 -0
- package/out/renderer/assets/resizable-ObbINbIB.js.gz +0 -0
- package/out/renderer/assets/{sankeyDiagram-XADWPNL6-Dbde7usj.js → sankeyDiagram-XADWPNL6-BIFbqkzs.js} +2 -2
- package/out/renderer/assets/sankeyDiagram-XADWPNL6-BIFbqkzs.js.br +0 -0
- package/out/renderer/assets/sankeyDiagram-XADWPNL6-BIFbqkzs.js.gz +0 -0
- package/out/renderer/assets/{schedule-DNMCsk-G.js → schedule-BtuArq_x.js} +9 -9
- package/out/renderer/assets/schedule-BtuArq_x.js.br +0 -0
- package/out/renderer/assets/schedule-BtuArq_x.js.gz +0 -0
- package/out/renderer/assets/{search-BEY9yGF_.js → search-TCnuQyCi.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-FGHM5R23-DI8l1pSL.js → sequenceDiagram-FGHM5R23-DQX-_zuj.js} +4 -4
- package/out/renderer/assets/sequenceDiagram-FGHM5R23-DQX-_zuj.js.br +0 -0
- package/out/renderer/assets/sequenceDiagram-FGHM5R23-DQX-_zuj.js.gz +0 -0
- package/out/renderer/assets/{session-Bn5k9ScR.js → session-C_1BpGhU.js} +956 -269
- package/out/renderer/assets/session-C_1BpGhU.js.br +0 -0
- package/out/renderer/assets/session-C_1BpGhU.js.gz +0 -0
- package/out/renderer/assets/{setting-dialog-sqfPfGsy.js → setting-dialog-D1_-4H95.js} +3 -3
- package/out/renderer/assets/setting-dialog-D1_-4H95.js.br +0 -0
- package/out/renderer/assets/setting-dialog-D1_-4H95.js.gz +0 -0
- package/out/renderer/assets/{settings-2-DRhoXOO8.js → settings-2-BwfZrIw6.js} +1 -1
- package/out/renderer/assets/{settings-agents-Bntc31Nn.js → settings-agents-BtuYXQ1V.js} +26 -14
- package/out/renderer/assets/settings-agents-BtuYXQ1V.js.br +0 -0
- package/out/renderer/assets/settings-agents-BtuYXQ1V.js.gz +0 -0
- package/out/renderer/assets/{settings-general-DhbLb9cP.js → settings-general-cHqsKFFa.js} +36 -3
- package/out/renderer/assets/settings-general-cHqsKFFa.js.br +0 -0
- package/out/renderer/assets/settings-general-cHqsKFFa.js.gz +0 -0
- package/out/renderer/assets/{settings-ilink-C7nGGjwT.js → settings-ilink-BR1Vd9t9.js} +3 -3
- package/out/renderer/assets/settings-ilink-BR1Vd9t9.js.br +0 -0
- package/out/renderer/assets/settings-ilink-BR1Vd9t9.js.gz +0 -0
- package/out/renderer/assets/{settings-image-generation-H2dgqG7Y.js → settings-image-generation-MUHYnpbm.js} +6 -6
- package/out/renderer/assets/settings-image-generation-MUHYnpbm.js.br +0 -0
- package/out/renderer/assets/settings-image-generation-MUHYnpbm.js.gz +0 -0
- package/out/renderer/assets/{settings-layout-ATto1xpJ.js → settings-layout-SBihzFfb.js} +10 -3
- package/out/renderer/assets/settings-layout-SBihzFfb.js.br +0 -0
- package/out/renderer/assets/settings-layout-SBihzFfb.js.gz +0 -0
- package/out/renderer/assets/{settings-mcp-DUdMuoJ-.js → settings-mcp-Co88s-0y.js} +8 -8
- package/out/renderer/assets/settings-mcp-Co88s-0y.js.br +0 -0
- package/out/renderer/assets/settings-mcp-Co88s-0y.js.gz +0 -0
- package/out/renderer/assets/{settings-memory-CJLG4aHW.js → settings-memory-CNH9gHYC.js} +2 -3
- package/out/renderer/assets/settings-memory-CNH9gHYC.js.br +0 -0
- package/out/renderer/assets/settings-memory-CNH9gHYC.js.gz +0 -0
- package/out/renderer/assets/settings-shortcuts-C1s7YIMj.js +267 -0
- package/out/renderer/assets/settings-shortcuts-C1s7YIMj.js.br +0 -0
- package/out/renderer/assets/settings-shortcuts-C1s7YIMj.js.gz +0 -0
- package/out/renderer/assets/{settings-snippets-B4VcnD5Z.js → settings-snippets-DGgI6mxm.js} +7 -7
- package/out/renderer/assets/settings-snippets-DGgI6mxm.js.br +0 -0
- package/out/renderer/assets/settings-snippets-DGgI6mxm.js.gz +0 -0
- package/out/renderer/assets/{settings-speech-to-text-DQ7lfkTu.js → settings-speech-to-text-CV0xM7yz.js} +5 -5
- package/out/renderer/assets/settings-speech-to-text-CV0xM7yz.js.br +0 -0
- package/out/renderer/assets/settings-speech-to-text-CV0xM7yz.js.gz +0 -0
- package/out/renderer/assets/{settings-webui-DZf9O-6j.js → settings-webui-Bj9dJDcm.js} +2 -2
- package/out/renderer/assets/settings-webui-Bj9dJDcm.js.br +0 -0
- package/out/renderer/assets/settings-webui-Bj9dJDcm.js.gz +0 -0
- package/out/renderer/assets/{skills-installed-Dp0r_4I-.js → skills-installed-Bhd5a33I.js} +4 -4
- package/out/renderer/assets/skills-installed-Bhd5a33I.js.br +0 -0
- package/out/renderer/assets/skills-installed-Bhd5a33I.js.gz +0 -0
- package/out/renderer/assets/{skills-layout-D-5rlY38.js → skills-layout-DZFDa1cw.js} +2 -2
- package/out/renderer/assets/skills-layout-DZFDa1cw.js.br +0 -0
- package/out/renderer/assets/skills-layout-DZFDa1cw.js.gz +0 -0
- package/out/renderer/assets/{skills-skills-sh-CcLoIrSw.js → skills-skills-sh-DF59nekm.js} +4 -4
- package/out/renderer/assets/skills-skills-sh-DF59nekm.js.br +0 -0
- package/out/renderer/assets/skills-skills-sh-DF59nekm.js.gz +0 -0
- package/out/renderer/assets/{sortable.esm-knFxDx0Y.js → sortable.esm-BlhN8Kkg.js} +1 -1
- package/out/renderer/assets/sortable.esm-BlhN8Kkg.js.br +0 -0
- package/out/renderer/assets/sortable.esm-BlhN8Kkg.js.gz +0 -0
- package/out/renderer/assets/{standard-schema-dKXoCekr.js → standard-schema-CGAs4bGi.js} +1 -1
- package/out/renderer/assets/standard-schema-CGAs4bGi.js.br +0 -0
- package/out/renderer/assets/standard-schema-CGAs4bGi.js.gz +0 -0
- package/out/renderer/assets/{stateDiagram-FHFEXIEX-DWWz4PMv.js → stateDiagram-FHFEXIEX-DappRrGm.js} +9 -9
- package/out/renderer/assets/stateDiagram-FHFEXIEX-DappRrGm.js.br +0 -0
- package/out/renderer/assets/stateDiagram-FHFEXIEX-DappRrGm.js.gz +0 -0
- package/out/renderer/assets/{stateDiagram-v2-QKLJ7IA2-Dm2qD5bg.js → stateDiagram-v2-QKLJ7IA2-mbgJN2Ya.js} +5 -5
- package/out/renderer/assets/{task-C5dyYbfn.js → task-C7tCZ6e3.js} +11 -11
- package/out/renderer/assets/task-C7tCZ6e3.js.br +0 -0
- package/out/renderer/assets/task-C7tCZ6e3.js.gz +0 -0
- package/out/renderer/assets/{textarea-DTqKlQbL.js → textarea-DNSPhqFr.js} +2 -2
- package/out/renderer/assets/{timeline-definition-GMOUNBTQ-A1tEoL9d.js → timeline-definition-GMOUNBTQ-o8XIUDyn.js} +3 -3
- package/out/renderer/assets/timeline-definition-GMOUNBTQ-o8XIUDyn.js.br +0 -0
- package/out/renderer/assets/timeline-definition-GMOUNBTQ-o8XIUDyn.js.gz +0 -0
- package/out/renderer/assets/{vennDiagram-DHZGUBPP-tNdYrJi_.js → vennDiagram-DHZGUBPP-mnc6bpmR.js} +2 -2
- package/out/renderer/assets/vennDiagram-DHZGUBPP-mnc6bpmR.js.br +0 -0
- package/out/renderer/assets/vennDiagram-DHZGUBPP-mnc6bpmR.js.gz +0 -0
- package/out/renderer/assets/{wardley-RL74JXVD-BxN5_Sp6.js → wardley-RL74JXVD-wdJYeEiD.js} +4 -4
- package/out/renderer/assets/wardley-RL74JXVD-wdJYeEiD.js.br +0 -0
- package/out/renderer/assets/wardley-RL74JXVD-wdJYeEiD.js.gz +0 -0
- package/out/renderer/assets/{wardleyDiagram-NUSXRM2D-B_3jA8zU.js → wardleyDiagram-NUSXRM2D-Ddx6k7tJ.js} +6 -6
- package/out/renderer/assets/wardleyDiagram-NUSXRM2D-Ddx6k7tJ.js.br +0 -0
- package/out/renderer/assets/wardleyDiagram-NUSXRM2D-Ddx6k7tJ.js.gz +0 -0
- package/out/renderer/assets/{wrench-7r-g9MUq.js → wrench-BsjH8RPm.js} +1 -1
- package/out/renderer/assets/wrench-BsjH8RPm.js.br +0 -0
- package/out/renderer/assets/wrench-BsjH8RPm.js.gz +0 -0
- package/out/renderer/assets/{xlsx-view-Bv0YhA5m.js → xlsx-view-CQd4jbk-.js} +21 -13
- package/out/renderer/assets/xlsx-view-CQd4jbk-.js.br +0 -0
- package/out/renderer/assets/xlsx-view-CQd4jbk-.js.gz +0 -0
- package/out/renderer/assets/{xychartDiagram-5P7HB3ND-NNVuzC4j.js → xychartDiagram-5P7HB3ND-VIQ9wuz0.js} +3 -3
- package/out/renderer/assets/xychartDiagram-5P7HB3ND-VIQ9wuz0.js.br +0 -0
- package/out/renderer/assets/xychartDiagram-5P7HB3ND-VIQ9wuz0.js.gz +0 -0
- package/out/renderer/index.html +2 -2
- package/out/renderer/index.html.br +0 -0
- package/out/renderer/index.html.gz +0 -0
- package/out/scripts/mcp-skills/server.mjs +1 -1
- package/out/server/main.js +44 -1
- package/package.json +1 -1
- package/out/renderer/assets/_baseUniq-CJr3HkLS.js.br +0 -0
- package/out/renderer/assets/_baseUniq-CJr3HkLS.js.gz +0 -0
- package/out/renderer/assets/arc-POsBroTF.js.br +0 -0
- package/out/renderer/assets/arc-POsBroTF.js.gz +0 -0
- package/out/renderer/assets/architectureDiagram-Q4EWVU46-CmToUhDb.js.br +0 -0
- package/out/renderer/assets/architectureDiagram-Q4EWVU46-CmToUhDb.js.gz +0 -0
- package/out/renderer/assets/automation-Cyz3eLWp.js.br +0 -0
- package/out/renderer/assets/automation-Cyz3eLWp.js.gz +0 -0
- package/out/renderer/assets/blockDiagram-DXYQGD6D-M2nnTg9f.js.br +0 -0
- package/out/renderer/assets/blockDiagram-DXYQGD6D-M2nnTg9f.js.gz +0 -0
- package/out/renderer/assets/c4Diagram-AHTNJAMY-CwLtsy_0.js.br +0 -0
- package/out/renderer/assets/c4Diagram-AHTNJAMY-CwLtsy_0.js.gz +0 -0
- package/out/renderer/assets/chunk-4TB4RGXK-DXLZpPY5.js.br +0 -0
- package/out/renderer/assets/chunk-4TB4RGXK-DXLZpPY5.js.gz +0 -0
- package/out/renderer/assets/chunk-EDXVE4YY-CNjJEQfY.js.br +0 -0
- package/out/renderer/assets/chunk-EDXVE4YY-CNjJEQfY.js.gz +0 -0
- package/out/renderer/assets/chunk-OYMX7WX6-BG4B1VQ7.js.br +0 -0
- package/out/renderer/assets/chunk-OYMX7WX6-BG4B1VQ7.js.gz +0 -0
- package/out/renderer/assets/chunk-YZCP3GAM-jeoI2tsD.js.br +0 -0
- package/out/renderer/assets/chunk-YZCP3GAM-jeoI2tsD.js.gz +0 -0
- package/out/renderer/assets/code-editor-CEXlC4aV.js.br +0 -0
- package/out/renderer/assets/code-editor-CEXlC4aV.js.gz +0 -0
- package/out/renderer/assets/collapsible-CMuCJUWG.js.br +0 -0
- package/out/renderer/assets/collapsible-CMuCJUWG.js.gz +0 -0
- package/out/renderer/assets/cose-bilkent-S5V4N54A-B3bgImVS.js.br +0 -0
- package/out/renderer/assets/cose-bilkent-S5V4N54A-B3bgImVS.js.gz +0 -0
- package/out/renderer/assets/dagre-KV5264BT-DTbumBA_.js.br +0 -0
- package/out/renderer/assets/dagre-KV5264BT-DTbumBA_.js.gz +0 -0
- package/out/renderer/assets/diagram-5BDNPKRD-B34Y6e8q.js.br +0 -0
- package/out/renderer/assets/diagram-5BDNPKRD-B34Y6e8q.js.gz +0 -0
- package/out/renderer/assets/diagram-G4DWMVQ6-BBiBmFR4.js.br +0 -0
- package/out/renderer/assets/diagram-G4DWMVQ6-BBiBmFR4.js.gz +0 -0
- package/out/renderer/assets/diagram-MMDJMWI5-P-YslDjG.js.br +0 -0
- package/out/renderer/assets/diagram-MMDJMWI5-P-YslDjG.js.gz +0 -0
- package/out/renderer/assets/diagram-TYMM5635-D_cLard_.js.br +0 -0
- package/out/renderer/assets/diagram-TYMM5635-D_cLard_.js.gz +0 -0
- package/out/renderer/assets/erDiagram-SMLLAGMA-C1MHqKvC.js.br +0 -0
- package/out/renderer/assets/erDiagram-SMLLAGMA-C1MHqKvC.js.gz +0 -0
- package/out/renderer/assets/field-DR3J0r9e.js.br +0 -0
- package/out/renderer/assets/field-DR3J0r9e.js.gz +0 -0
- package/out/renderer/assets/flowDiagram-DWJPFMVM-DprlEc3Z.js.br +0 -0
- package/out/renderer/assets/flowDiagram-DWJPFMVM-DprlEc3Z.js.gz +0 -0
- package/out/renderer/assets/ganttDiagram-T4ZO3ILL-CbTdumBm.js.br +0 -0
- package/out/renderer/assets/ganttDiagram-T4ZO3ILL-CbTdumBm.js.gz +0 -0
- package/out/renderer/assets/gitGraphDiagram-UUTBAWPF-06bme-w8.js.br +0 -0
- package/out/renderer/assets/gitGraphDiagram-UUTBAWPF-06bme-w8.js.gz +0 -0
- package/out/renderer/assets/graph-BZhxluo9.js.br +0 -0
- package/out/renderer/assets/graph-BZhxluo9.js.gz +0 -0
- package/out/renderer/assets/index-LmYTNvdF.js.br +0 -0
- package/out/renderer/assets/index-LmYTNvdF.js.gz +0 -0
- package/out/renderer/assets/index-aGJ_yZib.css +0 -382
- package/out/renderer/assets/index-aGJ_yZib.css.br +0 -0
- package/out/renderer/assets/index-aGJ_yZib.css.gz +0 -0
- package/out/renderer/assets/infoDiagram-42DDH7IO-DqivEzWL.js.br +0 -0
- package/out/renderer/assets/infoDiagram-42DDH7IO-DqivEzWL.js.gz +0 -0
- package/out/renderer/assets/ishikawaDiagram-UXIWVN3A-BKcg_z4w.js.br +0 -0
- package/out/renderer/assets/ishikawaDiagram-UXIWVN3A-BKcg_z4w.js.gz +0 -0
- package/out/renderer/assets/item-BHEUMM9H.js.br +0 -0
- package/out/renderer/assets/item-BHEUMM9H.js.gz +0 -0
- package/out/renderer/assets/journeyDiagram-VCZTEJTY-Bvv8xuxQ.js.br +0 -0
- package/out/renderer/assets/journeyDiagram-VCZTEJTY-Bvv8xuxQ.js.gz +0 -0
- package/out/renderer/assets/kanban-definition-6JOO6SKY-C-gRMpeM.js.br +0 -0
- package/out/renderer/assets/kanban-definition-6JOO6SKY-C-gRMpeM.js.gz +0 -0
- package/out/renderer/assets/layout-B4dSyItA.js.br +0 -0
- package/out/renderer/assets/layout-B4dSyItA.js.gz +0 -0
- package/out/renderer/assets/linear-CoVhuer7.js.br +0 -0
- package/out/renderer/assets/linear-CoVhuer7.js.gz +0 -0
- package/out/renderer/assets/mermaid-GHXKKRXX-CZqkhGx7.js.br +0 -0
- package/out/renderer/assets/mermaid-GHXKKRXX-CZqkhGx7.js.gz +0 -0
- package/out/renderer/assets/min-emzuJjmk.js.br +0 -0
- package/out/renderer/assets/min-emzuJjmk.js.gz +0 -0
- package/out/renderer/assets/mindmap-definition-QFDTVHPH-DQ4JNECm.js.br +0 -0
- package/out/renderer/assets/mindmap-definition-QFDTVHPH-DQ4JNECm.js.gz +0 -0
- package/out/renderer/assets/pieDiagram-DEJITSTG-0H6CGQQt.js.br +0 -0
- package/out/renderer/assets/pieDiagram-DEJITSTG-0H6CGQQt.js.gz +0 -0
- package/out/renderer/assets/quadrantDiagram-34T5L4WZ-D0aPKp5z.js.br +0 -0
- package/out/renderer/assets/quadrantDiagram-34T5L4WZ-D0aPKp5z.js.gz +0 -0
- package/out/renderer/assets/refresh-cw-Bvm578nW.js +0 -11
- package/out/renderer/assets/requirementDiagram-MS252O5E-BkzwapW_.js.br +0 -0
- package/out/renderer/assets/requirementDiagram-MS252O5E-BkzwapW_.js.gz +0 -0
- package/out/renderer/assets/resizable-cStzNJ8V.js.br +0 -0
- package/out/renderer/assets/resizable-cStzNJ8V.js.gz +0 -0
- package/out/renderer/assets/sankeyDiagram-XADWPNL6-Dbde7usj.js.br +0 -0
- package/out/renderer/assets/sankeyDiagram-XADWPNL6-Dbde7usj.js.gz +0 -0
- package/out/renderer/assets/schedule-DNMCsk-G.js.br +0 -0
- package/out/renderer/assets/schedule-DNMCsk-G.js.gz +0 -0
- package/out/renderer/assets/sequenceDiagram-FGHM5R23-DI8l1pSL.js.br +0 -0
- package/out/renderer/assets/sequenceDiagram-FGHM5R23-DI8l1pSL.js.gz +0 -0
- package/out/renderer/assets/session-Bn5k9ScR.js.br +0 -0
- package/out/renderer/assets/session-Bn5k9ScR.js.gz +0 -0
- package/out/renderer/assets/setting-dialog-sqfPfGsy.js.br +0 -0
- package/out/renderer/assets/setting-dialog-sqfPfGsy.js.gz +0 -0
- package/out/renderer/assets/settings-agents-Bntc31Nn.js.br +0 -0
- package/out/renderer/assets/settings-agents-Bntc31Nn.js.gz +0 -0
- package/out/renderer/assets/settings-general-DhbLb9cP.js.br +0 -0
- package/out/renderer/assets/settings-general-DhbLb9cP.js.gz +0 -0
- package/out/renderer/assets/settings-ilink-C7nGGjwT.js.br +0 -0
- package/out/renderer/assets/settings-ilink-C7nGGjwT.js.gz +0 -0
- package/out/renderer/assets/settings-image-generation-H2dgqG7Y.js.br +0 -0
- package/out/renderer/assets/settings-image-generation-H2dgqG7Y.js.gz +0 -0
- package/out/renderer/assets/settings-layout-ATto1xpJ.js.br +0 -0
- package/out/renderer/assets/settings-layout-ATto1xpJ.js.gz +0 -0
- package/out/renderer/assets/settings-mcp-DUdMuoJ-.js.br +0 -0
- package/out/renderer/assets/settings-mcp-DUdMuoJ-.js.gz +0 -0
- package/out/renderer/assets/settings-memory-CJLG4aHW.js.br +0 -0
- package/out/renderer/assets/settings-memory-CJLG4aHW.js.gz +0 -0
- package/out/renderer/assets/settings-snippets-B4VcnD5Z.js.br +0 -0
- package/out/renderer/assets/settings-snippets-B4VcnD5Z.js.gz +0 -0
- package/out/renderer/assets/settings-speech-to-text-DQ7lfkTu.js.br +0 -0
- package/out/renderer/assets/settings-speech-to-text-DQ7lfkTu.js.gz +0 -0
- package/out/renderer/assets/settings-webui-DZf9O-6j.js.br +0 -0
- package/out/renderer/assets/settings-webui-DZf9O-6j.js.gz +0 -0
- package/out/renderer/assets/skills-installed-Dp0r_4I-.js.br +0 -0
- package/out/renderer/assets/skills-installed-Dp0r_4I-.js.gz +0 -0
- package/out/renderer/assets/skills-layout-D-5rlY38.js.br +0 -0
- package/out/renderer/assets/skills-layout-D-5rlY38.js.gz +0 -0
- package/out/renderer/assets/skills-skills-sh-CcLoIrSw.js.br +0 -0
- package/out/renderer/assets/skills-skills-sh-CcLoIrSw.js.gz +0 -0
- package/out/renderer/assets/sortable.esm-knFxDx0Y.js.br +0 -0
- package/out/renderer/assets/sortable.esm-knFxDx0Y.js.gz +0 -0
- package/out/renderer/assets/standard-schema-dKXoCekr.js.br +0 -0
- package/out/renderer/assets/standard-schema-dKXoCekr.js.gz +0 -0
- package/out/renderer/assets/stateDiagram-FHFEXIEX-DWWz4PMv.js.br +0 -0
- package/out/renderer/assets/stateDiagram-FHFEXIEX-DWWz4PMv.js.gz +0 -0
- package/out/renderer/assets/task-C5dyYbfn.js.br +0 -0
- package/out/renderer/assets/task-C5dyYbfn.js.gz +0 -0
- package/out/renderer/assets/timeline-definition-GMOUNBTQ-A1tEoL9d.js.br +0 -0
- package/out/renderer/assets/timeline-definition-GMOUNBTQ-A1tEoL9d.js.gz +0 -0
- package/out/renderer/assets/vennDiagram-DHZGUBPP-tNdYrJi_.js.br +0 -0
- package/out/renderer/assets/vennDiagram-DHZGUBPP-tNdYrJi_.js.gz +0 -0
- package/out/renderer/assets/wardley-RL74JXVD-BxN5_Sp6.js.br +0 -0
- package/out/renderer/assets/wardley-RL74JXVD-BxN5_Sp6.js.gz +0 -0
- package/out/renderer/assets/wardleyDiagram-NUSXRM2D-B_3jA8zU.js.br +0 -0
- package/out/renderer/assets/wardleyDiagram-NUSXRM2D-B_3jA8zU.js.gz +0 -0
- package/out/renderer/assets/wrench-7r-g9MUq.js.br +0 -0
- package/out/renderer/assets/wrench-7r-g9MUq.js.gz +0 -0
- package/out/renderer/assets/xlsx-view-Bv0YhA5m.js.br +0 -0
- package/out/renderer/assets/xlsx-view-Bv0YhA5m.js.gz +0 -0
- package/out/renderer/assets/xychartDiagram-5P7HB3ND-NNVuzC4j.js.br +0 -0
- package/out/renderer/assets/xychartDiagram-5P7HB3ND-NNVuzC4j.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./session-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./session-C_1BpGhU.js","./settings-2-BwfZrIw6.js","./xlsx-view-CQd4jbk-.js","./mermaid-GHXKKRXX-CqMNodCp.js","./collapsible-DD6NlDid.js","./item-Dph2aCdz.js","./file-text-ITbWr8iW.js","./link-2-DpdZfD3m.js","./search-TCnuQyCi.js","./schemas-c0X-G5_P.js","./wrench-BsjH8RPm.js","./ellipsis-92s4sSUO.js","./xlsx-view-Chm2gOCI.css","./arrow-up-1eI4tva4.js","./mic-CT1bYBEV.js","./arrow-left-CQqe9rrj.js","./plus-C5XdFVFm.js","./resizable-ObbINbIB.js","./settings-layout-SBihzFfb.js","./command-BF4jOeoL.js","./settings-general-cHqsKFFa.js","./field-BPsDfe4e.js","./settings-shortcuts-C1s7YIMj.js","./settings-agents-BtuYXQ1V.js","./open-guide-BqiUQfrM.js","./sortable.esm-BlhN8Kkg.js","./standard-schema-CGAs4bGi.js","./textarea-DNSPhqFr.js","./circle-x-D_gJIgxf.js","./settings-mcp-Co88s-0y.js","./settings-webui-Bj9dJDcm.js","./settings-ilink-BR1Vd9t9.js","./settings-snippets-DGgI6mxm.js","./settings-memory-CNH9gHYC.js","./settings-image-generation-MUHYnpbm.js","./settings-speech-to-text-CV0xM7yz.js","./skills-layout-DZFDa1cw.js","./package-search-BxIuIl9F.js","./skills-installed-Bhd5a33I.js","./skills-skills-sh-DF59nekm.js","./automation-CQAOpWYp.js","./setting-dialog-D1_-4H95.js","./schedule-BtuArq_x.js","./task-C7tCZ6e3.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -2225,7 +2225,7 @@ function requireReactDomClient_production() {
|
|
|
2225
2225
|
clipboardData: function(event) {
|
|
2226
2226
|
return "clipboardData" in event ? event.clipboardData : window.clipboardData;
|
|
2227
2227
|
}
|
|
2228
|
-
}), SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface), CompositionEventInterface = assign({}, EventInterface, { data: 0 }), SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface),
|
|
2228
|
+
}), SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface), CompositionEventInterface = assign({}, EventInterface, { data: 0 }), SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface), normalizeKey2 = {
|
|
2229
2229
|
Esc: "Escape",
|
|
2230
2230
|
Spacebar: " ",
|
|
2231
2231
|
Left: "ArrowLeft",
|
|
@@ -2291,7 +2291,7 @@ function requireReactDomClient_production() {
|
|
|
2291
2291
|
var KeyboardEventInterface = assign({}, UIEventInterface, {
|
|
2292
2292
|
key: function(nativeEvent) {
|
|
2293
2293
|
if (nativeEvent.key) {
|
|
2294
|
-
var key =
|
|
2294
|
+
var key = normalizeKey2[nativeEvent.key] || nativeEvent.key;
|
|
2295
2295
|
if ("Unidentified" !== key) return key;
|
|
2296
2296
|
}
|
|
2297
2297
|
return "keypress" === nativeEvent.type ? (nativeEvent = getEventCharCode(nativeEvent), 13 === nativeEvent ? "Enter" : String.fromCharCode(nativeEvent)) : "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : "";
|
|
@@ -14132,9 +14132,11 @@ const useAppStore = create((set2, get2) => ({
|
|
|
14132
14132
|
ilink: { useOriginalImage: false },
|
|
14133
14133
|
editor: { name: "code" },
|
|
14134
14134
|
sound: { volume: 50, muted: false, theme: "soft" },
|
|
14135
|
+
voiceInput: { altDoublePress: true },
|
|
14135
14136
|
snippets: [],
|
|
14136
14137
|
imageGeneration: [],
|
|
14137
14138
|
speechToText: [],
|
|
14139
|
+
shortcuts: {},
|
|
14138
14140
|
webUIStatus: { enabled: false, url: null },
|
|
14139
14141
|
ilinkStatus: { connected: false },
|
|
14140
14142
|
activeIlinkSessionId: null,
|
|
@@ -14266,9 +14268,11 @@ const useAppStore = create((set2, get2) => ({
|
|
|
14266
14268
|
setIlink: (ilink) => set2({ ilink }),
|
|
14267
14269
|
setEditor: (editor) => set2({ editor }),
|
|
14268
14270
|
setSound: (sound) => set2({ sound }),
|
|
14271
|
+
setVoiceInput: (voiceInput) => set2({ voiceInput }),
|
|
14269
14272
|
setSnippets: (snippets) => set2({ snippets }),
|
|
14270
14273
|
setImageGeneration: (imageGeneration2) => set2({ imageGeneration: imageGeneration2 }),
|
|
14271
14274
|
setSpeechToText: (speechToText) => set2({ speechToText }),
|
|
14275
|
+
setShortcuts: (shortcuts) => set2({ shortcuts }),
|
|
14272
14276
|
setWebUIStatus: (status) => set2({ webUIStatus: status }),
|
|
14273
14277
|
setIlinkStatus: (status) => set2({ ilinkStatus: status }),
|
|
14274
14278
|
setActiveIlinkSessionId: (sessionId) => set2({ activeIlinkSessionId: sessionId }),
|
|
@@ -16887,17 +16891,18 @@ const useTranslation = (ns, props = {}) => {
|
|
|
16887
16891
|
}
|
|
16888
16892
|
return ret;
|
|
16889
16893
|
};
|
|
16890
|
-
const sidebar$1 = { "welcome": "Welcome", "skills": "Skills", "automation": "Automation", "projects": "Projects", "noProjects": "No projects yet", "noProjectsHint": "Add a project folder to get started", "addProject": "Add Project", "noAgentsHint": "Configure an agent first", "configureAgent": "Configure Agent", "revealInFinder": "Reveal in Finder", "rename": "Rename", "delete": "Delete", "renameProject": "Rename Project", "
|
|
16894
|
+
const sidebar$1 = { "welcome": "Welcome", "skills": "Skills", "automation": "Automation", "projects": "Projects", "noProjects": "No projects yet", "noProjectsHint": "Add a project folder to get started", "addProject": "Add Project", "noAgentsHint": "Configure an agent first", "configureAgent": "Configure Agent", "revealInFinder": "Reveal in Finder", "rename": "Rename", "delete": "Delete", "renameProject": "Rename Project", "renameSession": "Rename Session", "deleteSession": "Delete Session", "enterNewProjectName": "Enter a new project name.", "enterNewSessionName": "Enter a new session name.", "addProjectTitle": "Add Project", "enterProjectPath": "Enter absolute path to project on the server:", "pathCannotBeEmpty": "Path cannot be empty", "webuiEnabled": "WebUI Enabled", "deleteProject": "Delete Project", "deleteProjectConfirm": 'Delete project "{{title}}" and all sessions in it?\nThis action cannot be undone.', "deleteSessionConfirm": 'Delete session "{{title}}"?\nThis action cannot be undone.', "cancel": "Cancel", "save": "Save", "settings": "Settings", "agents": "Agents", "addProjectFailed": "Failed to add project.", "newSessionFailed": "Failed to create a new session.", "loadSessionFailed": "Failed to load session.", "revealInFinderFailed": "Failed to reveal in Finder.", "openInEditorFailed": "Failed to open in editor.", "projectExists": "Project already exists.", "projectNameEmpty": "Project name cannot be empty.", "sessionNameEmpty": "Session name cannot be empty.", "newSession": "New Session", "viewSession": "View Session", "projectActions": "Project actions for {{title}}", "createSessionInProject": "Create session in {{title}}", "sessionActions": "Session actions for {{title}}", "ilinkSetActive": "Set WeChat Active", "ilinkUnsetActive": "Unset WeChat Active", "failedToUpdateIlinkSession": "Failed to update WeChat active session.", "sessionOperationInProgress": "Another session operation is already in progress.", "ilinkActiveStatus": "WeChat Active", "ilinkInactiveStatus": "Not WeChat Active", "restartSession": "Restart Session", "closeSession": "Close Session", "closingSession": "Closing…", "failedToCloseSession": "Failed to close session.", "failedToDeleteSession": "Failed to delete session.", "failedToDeleteProject": "Failed to delete project.", "failedToLoadSession": "Failed to load session.", "failedToUpdateMcpServers": "Failed to update MCP servers", "collapse": "Collapse sidebar", "expand": "Expand sidebar", "updated": "Updated", "created": "Created", "sessionCount": "{{count}} sessions", "sessionCount_one": "{{count}} session", "newSessionDialog": { "title": "Create session", "agent": "Agent", "selectAgent": "Select an agent", "mcp": "MCP", "noMcp": "No MCP servers configured", "permission": "Permission", "permissionAsk": "Ask", "permissionAllowAll": "Allow all", "create": "Create" } };
|
|
16891
16895
|
const skills$1 = { "title": "Skills", "installed": { "label": "Installed", "noDescription": "No description provided.", "revealInFinder": "Reveal in Finder", "viewSkill": "View SKILL.md", "uninstall": "Uninstall", "uninstallTitle": "Uninstall Skill", "uninstallConfirm": "Are you sure you want to uninstall {{name}}? ", "cancel": "Cancel", "uninstalledSuccess": "Skill {{name}} uninstalled", "uninstallFailed": "Failed to uninstall: {{message}}", "revealFailed": "Failed to reveal in Finder: {{message}}", "loadFailed": "Failed to load skills", "loadContentFailed": "Error loading skill content: {{message}}", "noSkills": "No skills installed." }, "skillsSh": { "label": "skills.sh", "title": "Discover Skills", "desc": "Explore and install community skills to enhance your agents.", "searchPlaceholder": "Search skills (e.g. pr-review, react-best-practices)...", "install": "Install", "installSuccess": "Skill {{name}} installed", "installFailed": "Install failed", "noResults": "No skills found", "installs": "{{count}} installs", "installedStatus": "Installed", "authorPrefix": "by " } };
|
|
16892
16896
|
const contextMenu$1 = { "cut": "Cut", "copy": "Copy", "paste": "Paste", "selectAll": "Select All" };
|
|
16893
|
-
const settings$1 = /* @__PURE__ */ JSON.parse(`{"themeDesc":"Customize the appearance of the application","languageDesc":"Select the display language","title":"Settings","general":{"title":"General","desc":"Manage your application settings.","theme":"Theme","light":"Light","dark":"Dark","system":"System","language":"Language","english":"English","chinese":"简体中文","saveThemeFailed":"Failed to save theme setting.","saveLanguageFailed":"Failed to save language setting.","groupAppearance":"Appearance","groupProject":"Project","autoWatchFiles":"Auto Watch Files","autoWatchFilesDesc":"Automatically watch project file changes","saveFileWatcherFailed":"Failed to save file watcher setting.","groupNetwork":"Network","proxy":"Network Proxy","proxyDesc":"Configure the network proxy used by Fello for Node requests, subprocesses and the UI.","proxyEdit":"Edit proxy settings","proxyOff":"Direct","proxySystem":"System","groupSound":"Sound","soundEnabled":"Sound Effects","soundEnabledDesc":"Play sound effects for notifications","soundVolume":"Volume","soundVolumeDesc":"Adjust notification volume","soundTheme":"Sound Style","soundThemeDesc":"Select the sound effect style","soundSoft":"Soft","soundCrisp":"Crisp","soundTest":"Test","soundTestDesc":"Preview the current sound effect","soundTestPlay":"Play","saveSoundFailed":"Failed to save sound setting.","groupEditor":"Editor","editor":"Open in Editor","editorDesc":"Choose the editor to open files","selectEditor":"Select editor","saveEditorFailed":"Failed to save editor setting."},"agents":{"desc":"Manage agent configurations and startup commands.","description":"Configure agents","title":"Agents","guide":"User Guide","addStdioAgent":"Add via ACP Agent","addApiAgent":"Add via API Key","editStdioAgent":"Edit ACP Agent","editApiAgent":"Edit API Agent","dialogDesc":"Configure the agent ID, command, arguments and environment variables.","apiDialogDesc":"Configure provider, endpoint and authentication for API agent.","agentId":"Agent ID (Name)","apiProvider":"Provider","apiBaseUrl":"Base URL","apiKey":"API Key","apiHeaders":"Headers (JSON)","contextWindowTokens":"Context Window (tokens)","modelIdTemplate":"Model Id Template","models":"Models (one per line)","modelsHint":"Usually not needed — models are fetched automatically. Only specify if the API doesn't return the models you need","command":"Command","args":"Arguments","envVars":"Environment Variables (JSON)","envJson":"Environment Variables (JSON)","quickPreset":"Quick preset","cancel":"Cancel","save":"Save","edit":"Edit","delete":"Delete","dragToReorder":"Drag to reorder","noAgents":"No agents configured","errorIdCommand":"ID and Command are required.","errorDuplicateId":"An agent with this ID already exists.","errorEnvJson":"Env must be a valid JSON object.","errorContextWindowTokens":"Context Window must be a positive integer.","updateFailed":"Failed to update configuration.","confirmDeleteTitle":"Delete Agent","confirmDeleteDesc":"Are you sure you want to delete this agent? This action cannot be undone.","confirmDeleteDescWithSessions":"Are you sure you want to delete this agent? {{count}} session(s) will also be deleted. This action cannot be undone.","reset":"Reset Agent","resetSuccess":"Agent reset.","resetFailed":"Failed to reset agent.","deleteAllSessions":"Delete All Sessions","confirmDeleteAllSessionsTitle":"Delete All Sessions","confirmDeleteAllSessionsDesc":"All sessions for this agent will be permanently deleted. This action cannot be undone.","deleteAllSessionsSuccess":"{{count}} session(s) deleted.","deleteAllSessionsFailed":"Failed to delete sessions.","validation":{"enterId":"Please enter an agent ID.","idFormat":"Only letters, numbers, _ and - allowed.","selectProvider":"Please select a provider.","enterBaseUrl":"Please enter a base URL.","enterApiKey":"Please enter an API key.","enterCommand":"Please enter a command.","jsonObject":"Must be a valid JSON object with string values.","positiveInteger":"Must be a positive integer."}},"mcp":{"desc":"Manage MCP server configurations and startup commands.","description":"Configure MCP Servers","title":"MCP Servers","guide":"User Guide","addMcp":"Add MCP Server","addStdioMcp":"Add Stdio MCP","addHttpMcp":"Add HTTP MCP","addSseMcp":"Add SSE MCP","recommended":{"exa":{"name":"Exa","desc":"Exa MCP Server — AI Web Search"}},"editMcp":"Edit MCP Server","dialogDesc":"Configure the MCP server ID, command, arguments and environment variables.","mcpId":"MCP Server ID (Name)","command":"Command","args":"Arguments","envVars":"Environment Variables (JSON)","envJson":"Environment Variables (JSON)","url":"URL","headers":"Headers (JSON)","headersJson":"Headers (JSON)","httpDialogDesc":"Configure the MCP server ID, HTTP URL and request headers.","sseDialogDesc":"Configure the MCP server ID, SSE endpoint URL and request headers.","cancel":"Cancel","save":"Save","edit":"Edit","delete":"Delete","dragToReorder":"Drag to reorder","noMcpServers":"No MCP servers configured","errorIdRequired":"ID is required.","errorUrlRequired":"URL is required.","errorIdCommand":"ID and Command are required.","errorDuplicateId":"An MCP server with this ID already exists.","errorHeadersJson":"Headers must be a valid JSON object.","errorEnvJson":"Env must be a valid JSON object.","updateFailed":"Failed to update configuration.","confirmDeleteTitle":"Delete MCP Server","confirmDeleteDesc":"Are you sure you want to delete this MCP server? This action cannot be undone.","validation":{"enterId":"Please enter a server ID.","idFormat":"Only letters, numbers, _ and - allowed.","enterCommand":"Please enter a command.","enterUrl":"Please enter a URL.","jsonObject":"Must be a valid JSON object with string values."}},"webui":{"desc":"Configure remote access to the Fello interface.","title":"WebUI","guide":"User Guide","enable":"Enable WebUI","enableDesc":"Allow remote access to Fello interface via browser","accessUrl":"Access URL","accessDesc":"Note: This URL contains a temporary token. The WebUI will be disabled when you restart the application.","enableAccess":"Enable WebUI Access","port":"Port:","token":"Token:","autoGenerated":"Auto-generated","copy":"Copy","note":"Note: This URL contains a temporary token. The WebUI will be disabled when you restart the application.","updateFailed":"Failed to update configuration.","disabledInWebUI":"WebUI configuration is disabled when running inside the browser."},"ilink":{"title":"WeChat iLink","guide":"User Guide","description":"Connect Fello to WeChat via iLink Bot API. Once connected, a ClawBot contact will appear in your WeChat, allowing you to chat with your AI agent from anywhere.","connected":"Connected","notConnected":"Not Connected","notConnectedHint":"Scan QR code with WeChat to connect","login":"Login","loggingIn":"Waiting...","disconnect":"Disconnect","scanPrompt":"Scan with WeChat to login","qrcodeExpired":"QR code expired, please try again","scanned":"Scanned! Please confirm on your phone.","browserOpened":"QR code opened in browser. Scan with WeChat to login.","activeSession":"Active Session for WeChat","activeSessionHint":"Messages from WeChat will be routed to this session. Right-click a session in the sidebar to set it as active.","selectSession":"-- Select a session --","none":"-- None --","howItWorks":"How it works","step1":"Click \\"Login\\" to open the QR code in your browser","step2":"Scan the QR code with WeChat","step3":"A \\"ClawBot\\" contact appears in your WeChat","step4":"Chat with ClawBot — messages are routed to the active session above","step5":"Right-click any session in the sidebar to set it as active for WeChat","useOriginalImage":"Use Original Image","useOriginalImageDesc":"Send full-size images to the model (uses more tokens). When off, thumbnails are used.","keepaliveMaxCount":"Keepalive Messages","keepaliveMaxCountDesc":"Max consecutive keepalive messages while thinking.","commandsTitle":"WeChat \\"!\\" Commands","commandsDesc":"Messages starting with ! or ! are commands. They interrupt the current agent execution (cancelling an ongoing reply) and then run the corresponding action.","cmdSwitchSession":"Switch Session","cmdSwitchSessionDesc":"List all sessions (grouped by project); reply with a number to switch.","cmdNewSession":"New Session","cmdNewSessionDesc":"List all projects; reply with a number to create a session in that project and switch to it.","cmdSwitchModel":"Switch Model","cmdSwitchModelDesc":"List models available in the current session; reply with a number to switch (API agents only).","cmdSnippet":"Quick Snippet","cmdSnippetDesc":"List configured snippets; reply with a number to send that content to the agent.","cmdStatus":"View Status","cmdStatusDesc":"Show active session info (title, project, agent, features, MCP status)."},"snippets":{"title":"Snippets","desc":"Manage reusable text snippets for quick insertion.","description":"Configure Snippets","add":"Add Snippet","edit":"Edit Snippet","delete":"Delete","save":"Save","cancel":"Cancel","empty":"No snippets configured","saveFailed":"Failed to save snippets.","titleLabel":"Title","titlePlaceholder":"Title","contentLabel":"Content","contentPlaceholder":"Content","dialogDesc":"Configure the snippet title and content.","confirmDeleteTitle":"Delete Snippet","confirmDeleteDesc":"Are you sure you want to delete this snippet? This action cannot be undone.","validation":{"enterTitle":"Please enter a title.","enterContent":"Please enter content."}},"memory":{"title":"Memory","desc":"View and manage persistent project-level memory.","projectMemories":"Project Memories","refresh":"Refresh","clear":"Clear","cleared":"Memory cleared.","clearFailed":"Failed to clear memory.","delete":"Delete","deleted":"Memory entry deleted.","deleteFailed":"Failed to delete memory entry.","confirmDeleteTitle":"Delete Memory Entry","confirmDeleteDesc":"Are you sure you want to delete this memory entry? This cannot be undone.","confirmClearTitle":"Clear Memory","confirmClearDesc":"Are you sure you want to clear all memory for project \\"{{title}}\\"? This cannot be undone.","revealInFinder":"Reveal in Finder","revealFailed":"Failed to reveal file.","noFile":"No memory file found.","noProjects":"No projects found.","empty":"No memories stored.","entries":"Entries"},"imageGeneration":{"title":"Image Generation","desc":"Configure image generation providers. The active provider will be available as a tool for agents.","providers":"Providers","add":"Add Provider","addProvider":"Add Provider","editProvider":"Edit Provider","dialogDesc":"Configure provider, endpoint and authentication for image generation.","edit":"Edit","delete":"Delete","empty":"No image generation providers configured","updateFailed":"Failed to update configuration.","confirmDeleteTitle":"Delete Provider","confirmDeleteDesc":"Are you sure you want to delete this image generation provider?","cancel":"Cancel","save":"Save","form":{"name":"Name","provider":"Provider","baseUrl":"Base URL","baseUrlHint":"Request → {baseUrl}/images/generations","apiKey":"API Key","headers":"Headers (JSON)","extraBody":"Extra Body (JSON)","extraBodyHint":"Additional parameters merged into request body (e.g. quality, style).","model":"Model"},"validation":{"enterName":"Please enter a name.","selectProvider":"Please select a provider.","enterBaseUrl":"Please enter a base URL.","enterApiKey":"Please enter an API key.","enterModel":"Please enter the model name.","jsonObject":"Must be a valid JSON object with string values."}},"speechToText":{"title":"Speech to Text","desc":"Configure realtime speech recognition providers for chat voice input.","guide":"User Guide","providers":"Providers","add":"Add Provider","addProvider":"Add Provider","editProvider":"Edit Provider","dialogDesc":"Configure a realtime speech-to-text provider for voice input.","edit":"Edit","delete":"Delete","empty":"No speech-to-text providers configured","updateFailed":"Failed to update configuration.","confirmDeleteTitle":"Delete Provider","confirmDeleteDesc":"Delete this speech provider?","cancel":"Cancel","save":"Save","validation":{"enterName":"Please enter a name.","selectProvider":"Please select a provider.","enterApiKey":"Please enter an API key.","enterAppId":"Please enter an App ID.","enterApiSecret":"Please enter an API secret."},"form":{"name":"Name","provider":"Provider","appId":"App ID","apiKey":"API Key","apiSecret":"API Secret","optional":" (optional)","language":"Language (optional)"}},"proxy":{"title":"Network Proxy","mode":"Proxy Mode","off":"Direct","offDesc":"Connect directly without a proxy","manual":"Manual","manualDesc":"Specify a proxy server manually for all network requests","system":"System","systemDesc":"Use the system proxy settings (macOS/Windows or environment variables)","httpProxy":"HTTP Proxy","httpProxyPlaceholder":"e.g. http://127.0.0.1:7890","httpsProxy":"HTTPS Proxy (optional)","httpsProxyHint":"Falls back to the HTTP proxy when empty.","noProxy":"No Proxy (optional)","noProxyPlaceholder":"e.g. localhost,127.0.0.1,*.internal","username":"Username (optional)","password":"Password (optional)","cancel":"Cancel","save":"Save","later":"Later","restartNow":"Restart Now","restartTitle":"Restart Required","restartDesc":"Proxy settings saved. Restart Fello to apply the new proxy configuration.","restartManualDesc":"Proxy settings saved. Please manually restart the Fello server process to apply the new configuration.","saveFailed":"Failed to save proxy settings.","validation":{"httpProxyRequired":"HTTP proxy URL is required in manual mode.","invalidProxyUrl":"{{field}} should start with http:// or https://, or use a host:port address (e.g. 127.0.0.1:7890)."}}}`);
|
|
16897
|
+
const commands$1 = { "focusChatInput": { "title": "Focus chat input", "description": "Move focus to the chat input." }, "focusChatArea": { "title": "Focus chat area", "description": "Move focus to the chat conversation." }, "focusFileTree": { "title": "Focus file tree", "description": "Move focus to the project file tree." }, "focusTerminalList": { "title": "Focus terminal list", "description": "Move focus to the terminal list." }, "focusSidebarSessions": { "title": "Focus session list", "description": "Move focus to the session list." } };
|
|
16898
|
+
const settings$1 = /* @__PURE__ */ JSON.parse(`{"themeDesc":"Customize the appearance of the application","languageDesc":"Select the display language","title":"Settings","general":{"title":"General","desc":"Manage your application settings.","theme":"Theme","light":"Light","dark":"Dark","system":"System","language":"Language","english":"English","chinese":"简体中文","saveThemeFailed":"Failed to save theme setting.","saveLanguageFailed":"Failed to save language setting.","groupAppearance":"Appearance","groupProject":"Project","autoWatchFiles":"Auto Watch Files","autoWatchFilesDesc":"Automatically watch project file changes","saveFileWatcherFailed":"Failed to save file watcher setting.","groupVoiceInput":"Voice Input","altDoublePress":"Double-press Alt","altDoublePressDesc":"Double-press Alt quickly while an input is focused to start or stop voice input.","saveVoiceInputFailed":"Failed to save voice input setting.","groupNetwork":"Network","proxy":"Network Proxy","proxyDesc":"Configure the network proxy used by Fello for Node requests, subprocesses and the UI.","proxyEdit":"Edit proxy settings","proxyOff":"Direct","proxySystem":"System","groupSound":"Sound","soundEnabled":"Sound Effects","soundEnabledDesc":"Play sound effects for notifications","soundVolume":"Volume","soundVolumeDesc":"Adjust notification volume","soundTheme":"Sound Style","soundThemeDesc":"Select the sound effect style","soundSoft":"Soft","soundCrisp":"Crisp","soundTest":"Test","soundTestDesc":"Preview the current sound effect","soundTestPlay":"Play","saveSoundFailed":"Failed to save sound setting.","groupEditor":"Editor","editor":"Open in Editor","editorDesc":"Choose the editor to open files","selectEditor":"Select editor","saveEditorFailed":"Failed to save editor setting."},"shortcuts":{"title":"Shortcuts","desc":"Customize keyboard shortcuts for common actions.","navigation":"Navigation","recording":"Press a shortcut","changeShortcut":"Change shortcut","unassigned":"Unassigned","delete":"Delete","set":"Set","restore":"Restore","setTitle":"Set shortcut","setDesc":"Press the shortcut you want to use.","cancel":"Cancel","confirm":"Confirm","reset":"Reset to default","conflict":"Already used by {{command}}.","saveFailed":"Failed to save shortcuts."},"agents":{"desc":"Manage agent configurations and startup commands.","description":"Configure agents","title":"Agents","guide":"User Guide","addStdioAgent":"Add via ACP Agent","addApiAgent":"Add via API Key","editStdioAgent":"Edit ACP Agent","editApiAgent":"Edit API Agent","dialogDesc":"Configure the agent ID, command, arguments and environment variables.","apiDialogDesc":"Configure provider, endpoint and authentication for API agent.","agentId":"Agent ID (Name)","apiProvider":"Provider","apiBaseUrl":"Base URL","apiKey":"API Key","apiHeaders":"Headers (JSON)","contextWindowTokens":"Context Window (tokens)","modelIdTemplate":"Model Id Template","models":"Models (one per line)","modelsHint":"Usually not needed — models are fetched automatically. Only specify if the API doesn't return the models you need","command":"Command","args":"Arguments","envVars":"Environment Variables (JSON)","envJson":"Environment Variables (JSON)","quickPreset":"Quick preset","cancel":"Cancel","save":"Save","edit":"Edit","delete":"Delete","dragToReorder":"Drag to reorder","noAgents":"No agents configured","errorIdCommand":"ID and Command are required.","errorDuplicateId":"An agent with this ID already exists.","errorEnvJson":"Env must be a valid JSON object.","errorContextWindowTokens":"Context Window must be a positive integer.","updateFailed":"Failed to update configuration.","confirmDeleteTitle":"Delete Agent","confirmDeleteDesc":"Are you sure you want to delete this agent? This action cannot be undone.","confirmDeleteDescWithSessions":"Are you sure you want to delete this agent? {{count}} session(s) will also be deleted. This action cannot be undone.","reset":"Reset Agent","resetSuccess":"Agent reset.","resetFailed":"Failed to reset agent.","deleteAllSessions":"Delete All Sessions","confirmDeleteAllSessionsTitle":"Delete All Sessions","confirmDeleteAllSessionsDesc":"All sessions for this agent will be permanently deleted. This action cannot be undone.","deleteAllSessionsSuccess":"{{count}} session(s) deleted.","deleteAllSessionsFailed":"Failed to delete sessions.","validation":{"enterId":"Please enter an agent ID.","idFormat":"Only letters, numbers, _ and - allowed.","selectProvider":"Please select a provider.","enterBaseUrl":"Please enter a base URL.","enterApiKey":"Please enter an API key.","enterCommand":"Please enter a command.","jsonObject":"Must be a valid JSON object with string values.","positiveInteger":"Must be a positive integer."}},"mcp":{"desc":"Manage MCP server configurations and startup commands.","description":"Configure MCP Servers","title":"MCP Servers","guide":"User Guide","addMcp":"Add MCP Server","addStdioMcp":"Add Stdio MCP","addHttpMcp":"Add HTTP MCP","addSseMcp":"Add SSE MCP","recommended":{"exa":{"name":"Exa","desc":"Exa MCP Server — AI Web Search"}},"editMcp":"Edit MCP Server","dialogDesc":"Configure the MCP server ID, command, arguments and environment variables.","mcpId":"MCP Server ID (Name)","command":"Command","args":"Arguments","envVars":"Environment Variables (JSON)","envJson":"Environment Variables (JSON)","url":"URL","headers":"Headers (JSON)","headersJson":"Headers (JSON)","httpDialogDesc":"Configure the MCP server ID, HTTP URL and request headers.","sseDialogDesc":"Configure the MCP server ID, SSE endpoint URL and request headers.","cancel":"Cancel","save":"Save","edit":"Edit","delete":"Delete","dragToReorder":"Drag to reorder","noMcpServers":"No MCP servers configured","errorIdRequired":"ID is required.","errorUrlRequired":"URL is required.","errorIdCommand":"ID and Command are required.","errorDuplicateId":"An MCP server with this ID already exists.","errorHeadersJson":"Headers must be a valid JSON object.","errorEnvJson":"Env must be a valid JSON object.","updateFailed":"Failed to update configuration.","confirmDeleteTitle":"Delete MCP Server","confirmDeleteDesc":"Are you sure you want to delete this MCP server? This action cannot be undone.","validation":{"enterId":"Please enter a server ID.","idFormat":"Only letters, numbers, _ and - allowed.","enterCommand":"Please enter a command.","enterUrl":"Please enter a URL.","jsonObject":"Must be a valid JSON object with string values."}},"webui":{"desc":"Configure remote access to the Fello interface.","title":"WebUI","guide":"User Guide","enable":"Enable WebUI","enableDesc":"Allow remote access to Fello interface via browser","accessUrl":"Access URL","accessDesc":"Note: This URL contains a temporary token. The WebUI will be disabled when you restart the application.","enableAccess":"Enable WebUI Access","port":"Port:","token":"Token:","autoGenerated":"Auto-generated","copy":"Copy","note":"Note: This URL contains a temporary token. The WebUI will be disabled when you restart the application.","updateFailed":"Failed to update configuration.","disabledInWebUI":"WebUI configuration is disabled when running inside the browser."},"ilink":{"title":"WeChat iLink","guide":"User Guide","description":"Connect Fello to WeChat via iLink Bot API. Once connected, a ClawBot contact will appear in your WeChat, allowing you to chat with your AI agent from anywhere.","connected":"Connected","notConnected":"Not Connected","notConnectedHint":"Scan QR code with WeChat to connect","login":"Login","loggingIn":"Waiting...","disconnect":"Disconnect","scanPrompt":"Scan with WeChat to login","qrcodeExpired":"QR code expired, please try again","scanned":"Scanned! Please confirm on your phone.","browserOpened":"QR code opened in browser. Scan with WeChat to login.","activeSession":"Active Session for WeChat","activeSessionHint":"Messages from WeChat will be routed to this session. Right-click a session in the sidebar to set it as active.","selectSession":"-- Select a session --","none":"-- None --","howItWorks":"How it works","step1":"Click \\"Login\\" to open the QR code in your browser","step2":"Scan the QR code with WeChat","step3":"A \\"ClawBot\\" contact appears in your WeChat","step4":"Chat with ClawBot — messages are routed to the active session above","step5":"Right-click any session in the sidebar to set it as active for WeChat","useOriginalImage":"Use Original Image","useOriginalImageDesc":"Send full-size images to the model (uses more tokens). When off, thumbnails are used.","keepaliveMaxCount":"Keepalive Messages","keepaliveMaxCountDesc":"Max consecutive keepalive messages while thinking.","commandsTitle":"WeChat \\"!\\" Commands","commandsDesc":"Messages starting with ! or ! are commands. They interrupt the current agent execution (cancelling an ongoing reply) and then run the corresponding action.","cmdSwitchSession":"Switch Session","cmdSwitchSessionDesc":"List all sessions (grouped by project); reply with a number to switch.","cmdNewSession":"New Session","cmdNewSessionDesc":"List all projects; reply with a number to create a session in that project and switch to it.","cmdSwitchModel":"Switch Model","cmdSwitchModelDesc":"List models available in the current session; reply with a number to switch (API agents only).","cmdSnippet":"Quick Snippet","cmdSnippetDesc":"List configured snippets; reply with a number to send that content to the agent.","cmdStatus":"View Status","cmdStatusDesc":"Show active session info (title, project, agent, features, MCP status)."},"snippets":{"title":"Snippets","desc":"Manage reusable text snippets for quick insertion.","description":"Configure Snippets","add":"Add Snippet","edit":"Edit Snippet","delete":"Delete","save":"Save","cancel":"Cancel","empty":"No snippets configured","saveFailed":"Failed to save snippets.","titleLabel":"Title","titlePlaceholder":"Title","contentLabel":"Content","contentPlaceholder":"Content","dialogDesc":"Configure the snippet title and content.","confirmDeleteTitle":"Delete Snippet","confirmDeleteDesc":"Are you sure you want to delete this snippet? This action cannot be undone.","validation":{"enterTitle":"Please enter a title.","enterContent":"Please enter content."}},"memory":{"title":"Memory","desc":"View and manage persistent project-level memory.","projectMemories":"Project Memories","refresh":"Refresh","clear":"Clear","cleared":"Memory cleared.","clearFailed":"Failed to clear memory.","delete":"Delete","deleted":"Memory entry deleted.","deleteFailed":"Failed to delete memory entry.","confirmDeleteTitle":"Delete Memory Entry","confirmDeleteDesc":"Are you sure you want to delete this memory entry? This cannot be undone.","confirmClearTitle":"Clear Memory","confirmClearDesc":"Are you sure you want to clear all memory for project \\"{{title}}\\"? This cannot be undone.","revealInFinder":"Reveal in Finder","revealFailed":"Failed to reveal file.","noFile":"No memory file found.","noProjects":"No projects found.","empty":"No memories stored.","entries":"Entries"},"imageGeneration":{"title":"Image Generation","desc":"Configure image generation providers. The active provider will be available as a tool for agents.","providers":"Providers","add":"Add Provider","addProvider":"Add Provider","editProvider":"Edit Provider","dialogDesc":"Configure provider, endpoint and authentication for image generation.","edit":"Edit","delete":"Delete","empty":"No image generation providers configured","updateFailed":"Failed to update configuration.","confirmDeleteTitle":"Delete Provider","confirmDeleteDesc":"Are you sure you want to delete this image generation provider?","cancel":"Cancel","save":"Save","form":{"name":"Name","provider":"Provider","baseUrl":"Base URL","baseUrlHint":"Request → {baseUrl}/images/generations","apiKey":"API Key","headers":"Headers (JSON)","extraBody":"Extra Body (JSON)","extraBodyHint":"Additional parameters merged into request body (e.g. quality, style).","model":"Model"},"validation":{"enterName":"Please enter a name.","selectProvider":"Please select a provider.","enterBaseUrl":"Please enter a base URL.","enterApiKey":"Please enter an API key.","enterModel":"Please enter the model name.","jsonObject":"Must be a valid JSON object with string values."}},"speechToText":{"title":"Speech to Text","desc":"Configure realtime speech recognition providers for chat voice input.","guide":"User Guide","providers":"Providers","add":"Add Provider","addProvider":"Add Provider","editProvider":"Edit Provider","dialogDesc":"Configure a realtime speech-to-text provider for voice input.","edit":"Edit","delete":"Delete","empty":"No speech-to-text providers configured","updateFailed":"Failed to update configuration.","confirmDeleteTitle":"Delete Provider","confirmDeleteDesc":"Delete this speech provider?","cancel":"Cancel","save":"Save","validation":{"enterName":"Please enter a name.","selectProvider":"Please select a provider.","enterApiKey":"Please enter an API key.","enterAppId":"Please enter an App ID.","enterApiSecret":"Please enter an API secret."},"form":{"name":"Name","provider":"Provider","appId":"App ID","apiKey":"API Key","apiSecret":"API Secret","optional":" (optional)","language":"Language (optional)"}},"proxy":{"title":"Network Proxy","mode":"Proxy Mode","off":"Direct","offDesc":"Connect directly without a proxy","manual":"Manual","manualDesc":"Specify a proxy server manually for all network requests","system":"System","systemDesc":"Use the system proxy settings (macOS/Windows or environment variables)","httpProxy":"HTTP Proxy","httpProxyPlaceholder":"e.g. http://127.0.0.1:7890","httpsProxy":"HTTPS Proxy (optional)","httpsProxyHint":"Falls back to the HTTP proxy when empty.","noProxy":"No Proxy (optional)","noProxyPlaceholder":"e.g. localhost,127.0.0.1,*.internal","username":"Username (optional)","password":"Password (optional)","cancel":"Cancel","save":"Save","later":"Later","restartNow":"Restart Now","restartTitle":"Restart Required","restartDesc":"Proxy settings saved. Restart Fello to apply the new proxy configuration.","restartManualDesc":"Proxy settings saved. Please manually restart the Fello server process to apply the new configuration.","saveFailed":"Failed to save proxy settings.","validation":{"httpProxyRequired":"HTTP proxy URL is required in manual mode.","invalidProxyUrl":"{{field}} should start with http:// or https://, or use a host:port address (e.g. 127.0.0.1:7890)."}}}`);
|
|
16894
16899
|
const chat$1 = { "failedToLoadSession": "Failed to load session.", "failedToUpdateMcpServers": "Failed to update MCP servers." };
|
|
16895
16900
|
const tokenUsage$1 = { "title": "Token Usage Breakdown", "loading": "Loading…", "noData": "No token breakdown data available", "promptCount": "{{count}} prompts", "promptLabel": "Prompt #{{count}}", "noBreakdown": "No detailed breakdown available for this prompt", "input": "Input", "output": "Output", "inputShort": "in", "outputShort": "out", "totalTokens": "Total", "thought": "Thought", "cacheRead": "Cache Read", "cacheWrite": "Cache Write", "cached": "Cached", "tokens": "tokens", "token": "token", "sessionTotal": "Session Total", "systemPrompt": "System Prompt", "tools": "Tools", "history": "History", "userMessage": "User Message", "inputComposition": "Input Composition", "delta": "Estimation delta", "toolsDefinition": "Tools Definition", "toolsCount": "{{count}} tools · {{tokens}} tokens", "more": "+{{count}} more", "steps": "Steps", "stepsCount": "{{count}} steps", "toolCalls": "tool calls", "noCache": "No Cache", "text": "Text", "stepTime": "Step Time", "responseTime": "Response Time", "arguments": "Arguments", "result": "Result", "execution": "Execution", "performance": "Performance", "totalTime": "Total Time", "outputSpeed": "Output Speed", "tokensPerSecond": "token/s", "firstToken": "First Token" };
|
|
16896
16901
|
const planBubble$1 = { "title": "Plan", "summary": "{{completed}} / {{total}} completed", "status": { "pending": "Pending", "inProgress": "In progress", "completed": "Completed" }, "priority": { "high": "High", "medium": "Medium", "low": "Low" } };
|
|
16897
16902
|
const constant$1 = { "feature": { "title": "Features", "askUser": "Ask Me", "skills": "Skills", "shareToUser": "Share to User", "search": "Search", "memory": "Memory", "imageGeneration": "Image Generation" } };
|
|
16898
|
-
const chatHeader$1 = { "sessionId": "Session", "openSessionFolder": "Open Session Folder", "projectId": "Project", "openProjectFolder": "Open Project Folder", "refresh": "Restart Session", "closeSession": "Close Session", "closingSession": "Closing…", "failedToCloseSession": "Failed to close session.", "contextWindow": "Context Window", "used": "Used", "size": "Size", "percentUsed": "{{pct}}% used", "remaining": "{{count}} remaining", "lastTurn": "Last Turn", "input": "Input", "output": "Output", "total": "Total", "thought": "Thought", "cacheRead": "Cache read", "cacheWrite": "Cache write", "cost": "Cost", "viewBreakdown": "View Breakdown" };
|
|
16899
|
-
const chatInput$1 = { "placeholderDisabled": "Start a new chat to begin...", "placeholderActive": "Ask anything... (Enter to send)", "mode": "Mode", "suggestions": "Suggestions", "messageInput": "Message input", "stop": "Stop", "send": "Send", "tokensUsage": "In: {{input}} Out: {{output}} Total: {{total}}{{thoughtStr}}", "tokensTotal": "{{total}}k tokens", "generationFailed": "Generation failed.", "attach": "Attach file", "reference": "Reference", "mention": "Mention", "snippets": "Snippets", "snippetsEmpty": "No snippets. Click to add in Settings.", "selectModel": "Select model", "stopReasonMaxTokens": "Reached maximum token limit", "stopReasonMaxTurnRequests": "Reached maximum turn limit", "stopReasonRefusal": "Model refused to respond", "stopReasonCancelled": "Generation was cancelled", "voiceInput": "Voice input", "selectVoiceInputDevice": "Select microphone", "stopVoiceInput": "Stop voice input", "voiceInputNotConfigured": "Configure voice input in Settings", "noAudioInputDevices": "No audio input devices found" };
|
|
16900
|
-
const filePanel$1 = { "title": "Files", "emptyDirectory": "Empty directory", "newFile": "New File", "newFolder": "New Folder", "rename": "Rename", "copyPath": "Copy Path", "copyRelativePath": "Copy Relative Path", "revealInFinder": "Reveal in Finder", "openInEditor": "Open in {{editor}}", "delete": "Delete", "deleteConfirmSingle": 'How would you like to delete "{{name}}"?', "deleteConfirmMultiple": "How would you like to delete {{count}} items?", "dragItems": "{{count}} items", "cancel": "Cancel", "moveToTrash": "Move to Trash", "moveToRecycleBin": "Move to Recycle Bin", "moveConfirmTitle": "Move", "moveConfirmSingle": 'Move "{{name}}" to "{{dest}}"?', "moveConfirmMultiple": 'Move {{count}} items to "{{dest}}"?', "moveConfirmSingleToRoot": 'Move "{{name}}" to the root directory?', "moveConfirmMultipleToRoot": "Move {{count}} items to the root directory?", "loading": "Loading...", "collapseFolders": "Collapse Folders", "refresh": "Refresh", "addToChat": "Add to Chat", "noProject": "No project selected" };
|
|
16903
|
+
const chatHeader$1 = { "sessionId": "Session", "openSessionFolder": "Open Session Folder", "projectId": "Project", "openProjectFolder": "Open Project Folder", "refresh": "Restart Session", "closeSession": "Close Session", "closingSession": "Closing…", "failedToCloseSession": "Failed to close session.", "sessionOperationInProgress": "Another session operation is already in progress.", "contextWindow": "Context Window", "used": "Used", "size": "Size", "percentUsed": "{{pct}}% used", "remaining": "{{count}} remaining", "lastTurn": "Last Turn", "input": "Input", "output": "Output", "total": "Total", "thought": "Thought", "cacheRead": "Cache read", "cacheWrite": "Cache write", "cost": "Cost", "viewBreakdown": "View Breakdown" };
|
|
16904
|
+
const chatInput$1 = { "placeholderDisabled": "Start a new chat to begin...", "placeholderActive": "Ask anything... (Enter to send)", "mode": "Mode", "suggestions": "Suggestions", "messageInput": "Message input", "stop": "Stop", "send": "Send", "tokensUsage": "In: {{input}} Out: {{output}} Total: {{total}}{{thoughtStr}}", "tokensTotal": "{{total}}k tokens", "generationFailed": "Generation failed.", "attach": "Attach file", "reference": "Reference", "mention": "Mention", "snippets": "Snippets", "snippetsEmpty": "No snippets. Click to add in Settings.", "selectModel": "Select model", "stopReasonMaxTokens": "Reached maximum token limit", "stopReasonMaxTurnRequests": "Reached maximum turn limit", "stopReasonRefusal": "Model refused to respond", "stopReasonCancelled": "Generation was cancelled", "voiceInput": "Voice input", "selectVoiceInputDevice": "Select microphone", "stopVoiceInput": "Stop voice input", "startingVoiceInput": "Starting voice input", "voiceInputNotConfigured": "Configure voice input in Settings", "noAudioInputDevices": "No audio input devices found" };
|
|
16905
|
+
const filePanel$1 = { "title": "Files", "view": "View", "emptyDirectory": "Empty directory", "newFile": "New File", "newFolder": "New Folder", "rename": "Rename", "copyPath": "Copy Path", "copyRelativePath": "Copy Relative Path", "revealInFinder": "Reveal in Finder", "openInEditor": "Open in {{editor}}", "delete": "Delete", "deleteConfirmSingle": 'How would you like to delete "{{name}}"?', "deleteConfirmMultiple": "How would you like to delete {{count}} items?", "dragItems": "{{count}} items", "cancel": "Cancel", "moveToTrash": "Move to Trash", "moveToRecycleBin": "Move to Recycle Bin", "moveConfirmTitle": "Move", "moveConfirmSingle": 'Move "{{name}}" to "{{dest}}"?', "moveConfirmMultiple": 'Move {{count}} items to "{{dest}}"?', "moveConfirmSingleToRoot": 'Move "{{name}}" to the root directory?', "moveConfirmMultipleToRoot": "Move {{count}} items to the root directory?", "loading": "Loading...", "collapseFolders": "Collapse Folders", "refresh": "Refresh", "addToChat": "Add to Chat", "noProject": "No project selected" };
|
|
16901
16906
|
const toolBubble$1 = { "tool": "Tool", "stop": "Stop", "stopping": "Stopping…", "result": "Result", "terminal": "Terminal" };
|
|
16902
16907
|
const imageView$1 = { "fallbackAlt": "Image" };
|
|
16903
16908
|
const readonlyTerminal$1 = { "noOutput": "No output" };
|
|
@@ -16910,7 +16915,7 @@ const chatTimeline$1 = { "userMessageIndex": "User message {{index}}", "jumpToUs
|
|
|
16910
16915
|
const thinkingBubble$1 = { "thinking": "Thinking...", "thought": "Thought" };
|
|
16911
16916
|
const userBubble$1 = { "copy": "Copy", "locate": "Locate" };
|
|
16912
16917
|
const session$1 = { "usageSummary": "{{total}} tk ( ↓ {{input}} ↑ {{output}}{{cachedPart}} )", "usageSummaryCached": " ↻ {{cached}}", "connecting": "Connecting to agent...", "connectionFailed": "Failed to connect to agent", "retry": "Retry" };
|
|
16913
|
-
const terminalPanel$1 = { "title": "Terminal", "noTerminalSelected": "No terminal selected", "addTerminal": "Add terminal" };
|
|
16918
|
+
const terminalPanel$1 = { "title": "Terminal", "noTerminalSelected": "No terminal selected", "addTerminal": "Add terminal", "view": "View", "delete": "Delete terminal" };
|
|
16914
16919
|
const permission$1 = { "title": "Permission Required", "error": "Failed to respond to permission request" };
|
|
16915
16920
|
const errorBoundary$1 = { "title": "Something went wrong", "defaultMessage": "An unexpected error occurred in the application.", "reload": "Reload Application" };
|
|
16916
16921
|
const panel$1 = { "files": "Files", "terminal": "Terminal", "noProjectSelected": "No project selected" };
|
|
@@ -16927,6 +16932,7 @@ const en = {
|
|
|
16927
16932
|
sidebar: sidebar$1,
|
|
16928
16933
|
skills: skills$1,
|
|
16929
16934
|
contextMenu: contextMenu$1,
|
|
16935
|
+
commands: commands$1,
|
|
16930
16936
|
settings: settings$1,
|
|
16931
16937
|
chat: chat$1,
|
|
16932
16938
|
tokenUsage: tokenUsage$1,
|
|
@@ -16961,17 +16967,18 @@ const en = {
|
|
|
16961
16967
|
imageGeneration: imageGeneration$1,
|
|
16962
16968
|
automation: automation$1
|
|
16963
16969
|
};
|
|
16964
|
-
const sidebar = { "welcome": "欢迎使用", "skills": "技能", "automation": "自动化", "projects": "项目", "noProjects": "暂无项目", "noProjectsHint": "添加一个项目文件夹开始", "addProject": "添加项目", "noAgentsHint": "请先配置 Agent", "configureAgent": "配置 Agent", "revealInFinder": "在访达中显示", "rename": "重命名", "delete": "删除", "renameProject": "重命名项目", "
|
|
16970
|
+
const sidebar = { "welcome": "欢迎使用", "skills": "技能", "automation": "自动化", "projects": "项目", "noProjects": "暂无项目", "noProjectsHint": "添加一个项目文件夹开始", "addProject": "添加项目", "noAgentsHint": "请先配置 Agent", "configureAgent": "配置 Agent", "revealInFinder": "在访达中显示", "rename": "重命名", "delete": "删除", "renameProject": "重命名项目", "renameSession": "重命名会话", "deleteSession": "删除会话", "enterNewProjectName": "请输入新的项目名称。", "enterNewSessionName": "请输入新的会话名称。", "addProjectTitle": "添加项目", "enterProjectPath": "请输入服务器上的项目绝对路径:", "pathCannotBeEmpty": "路径不能为空", "webuiEnabled": "已启用 WebUI", "deleteProject": "删除项目", "deleteProjectConfirm": "是否删除项目“{{title}}”及其所有会话?\n此操作无法撤销。", "deleteSessionConfirm": "是否删除会话“{{title}}”?\n此操作无法撤销。", "cancel": "取消", "save": "保存", "settings": "设置", "agents": "智能体", "addProjectFailed": "添加项目失败。", "newSessionFailed": "创建新会话失败。", "loadSessionFailed": "加载会话失败。", "revealInFinderFailed": "在访达中显示失败。", "openInEditorFailed": "在编辑器中打开失败。", "projectExists": "项目已存在。", "projectNameEmpty": "项目名称不能为空。", "sessionNameEmpty": "会话名称不能为空。", "newSession": "新会话", "viewSession": "查看会话", "projectActions": "项目操作:{{title}}", "createSessionInProject": "在 {{title}} 中创建会话", "sessionActions": "会话操作:{{title}}", "ilinkSetActive": "设为微信活跃会话", "ilinkUnsetActive": "取消微信活跃", "failedToUpdateIlinkSession": "更新微信活跃会话失败。", "sessionOperationInProgress": "已有其他会话操作正在进行中。", "ilinkActiveStatus": "微信活跃", "ilinkInactiveStatus": "非微信活跃", "restartSession": "重启会话", "closeSession": "关闭会话", "closingSession": "关闭中…", "failedToCloseSession": "关闭会话失败。", "failedToDeleteSession": "删除会话失败。", "failedToDeleteProject": "删除项目失败。", "failedToLoadSession": "加载会话失败。", "failedToUpdateMcpServers": "更新 MCP 服务器失败。", "collapse": "收起侧边栏", "expand": "展开侧边栏", "updated": "更新于", "created": "创建于", "sessionCount": "{{count}} 个会话", "newSessionDialog": { "title": "新建会话", "agent": "智能体", "selectAgent": "选择智能体", "mcp": "MCP", "noMcp": "未配置 MCP 服务器", "permission": "权限", "permissionAsk": "每次询问", "permissionAllowAll": "全部允许", "create": "创建" } };
|
|
16965
16971
|
const skills = { "title": "技能", "installed": { "label": "已安装", "noDescription": "暂无描述。", "revealInFinder": "在访达中显示", "viewSkill": "查看 SKILL.md", "uninstall": "卸载", "uninstallTitle": "卸载技能", "uninstallConfirm": "确定要卸载 {{name}} 吗?", "cancel": "取消", "uninstalledSuccess": "技能 {{name}} 已卸载", "uninstallFailed": "卸载失败:{{message}}", "revealFailed": "在访达中显示失败:{{message}}", "loadFailed": "加载技能失败", "loadContentFailed": "加载技能内容出错:{{message}}", "noSkills": "暂无安装的技能" }, "skillsSh": { "label": "skills.sh", "title": "探索技能", "desc": "浏览并安装社区提供的技能,以增强你的 Agent 能力。", "searchPlaceholder": "搜索技能(例如:pr-review, react-best-practices)...", "install": "安装", "installSuccess": "技能 {{name}} 已安装", "installFailed": "安装失败", "noResults": "未找到相关技能", "installs": "{{count}} 次安装", "installedStatus": "已安装", "authorPrefix": "作者: " } };
|
|
16966
16972
|
const contextMenu = { "cut": "剪切", "copy": "复制", "paste": "粘贴", "selectAll": "全选" };
|
|
16967
|
-
const
|
|
16973
|
+
const commands = { "focusChatInput": { "title": "聚焦聊天输入框", "description": "将焦点移动到聊天输入框。" }, "focusChatArea": { "title": "聚焦聊天区域", "description": "将焦点移动到聊天内容区域。" }, "focusFileTree": { "title": "聚焦文件树", "description": "将焦点移动到项目文件树。" }, "focusTerminalList": { "title": "聚焦终端列表", "description": "将焦点移动到终端列表。" }, "focusSidebarSessions": { "title": "聚焦会话列表", "description": "将焦点移动到会话列表。" } };
|
|
16974
|
+
const settings = { "themeDesc": "自定义应用的外观", "languageDesc": "选择应用显示的语言", "title": "设置", "general": { "title": "通用", "desc": "管理应用设置。", "theme": "主题", "light": "浅色", "dark": "深色", "system": "跟随系统", "language": "语言", "english": "English", "chinese": "简体中文", "saveThemeFailed": "保存主题设置失败。", "saveLanguageFailed": "保存语言设置失败。", "groupAppearance": "外观", "groupProject": "项目", "autoWatchFiles": "自动监听文件", "autoWatchFilesDesc": "自动监听项目文件变更", "saveFileWatcherFailed": "保存文件监听设置失败。", "groupVoiceInput": "语音输入", "altDoublePress": "双击 Alt 快捷键", "altDoublePressDesc": "输入框聚焦时快速双击 Alt,开始或停止语音输入。", "saveVoiceInputFailed": "保存语音输入设置失败。", "groupNetwork": "网络", "proxy": "网络代理", "proxyDesc": "配置 Fello 的网络代理,应用于 Node 请求、子进程与界面。", "proxyEdit": "修改代理设置", "proxyOff": "直连", "proxySystem": "跟随系统", "groupSound": "音效", "soundEnabled": "音效", "soundEnabledDesc": "播放通知音效", "soundVolume": "音量", "soundVolumeDesc": "调整通知音量", "soundTheme": "音效风格", "soundThemeDesc": "选择音效风格", "soundSoft": "柔和", "soundCrisp": "清脆", "soundTest": "试听", "soundTestDesc": "预览当前音效效果", "soundTestPlay": "播放", "saveSoundFailed": "保存音效设置失败。", "groupEditor": "编辑器", "editor": "使用编辑器打开", "editorDesc": "选择用于打开文件的编辑器", "selectEditor": "选择编辑器", "saveEditorFailed": "保存编辑器设置失败。" }, "shortcuts": { "title": "快捷键", "desc": "自定义常用操作的键盘快捷键。", "navigation": "导航", "recording": "请按下快捷键", "changeShortcut": "修改快捷键", "unassigned": "未设置", "delete": "删除", "set": "设置", "restore": "还原", "setTitle": "设置快捷键", "setDesc": "请按下要使用的快捷键。", "cancel": "取消", "confirm": "确认", "reset": "恢复默认", "conflict": "已被 {{command}} 使用。", "saveFailed": "保存快捷键失败。" }, "agents": { "desc": "管理智能体的配置和启动命令。", "description": "配置智能体", "title": "智能体", "guide": "使用手册", "addStdioAgent": "通过 ACP Agent 添加", "addApiAgent": "通过 API Key 添加", "editStdioAgent": "编辑 ACP Agent", "editApiAgent": "编辑 API Agent", "dialogDesc": "配置智能体 ID、命令、参数和环境变量。", "apiDialogDesc": "配置 API 智能体的提供商、端点和认证信息。", "agentId": "智能体 ID (名称)", "apiProvider": "提供商", "apiBaseUrl": "Base URL", "apiKey": "API Key", "apiHeaders": "请求头 (JSON)", "contextWindowTokens": "上下文窗口 (token)", "modelIdTemplate": "Model Id 模版", "models": "模型列表 (每行一个)", "modelsHint": "通常无需填写,会自动获取。仅在接口未返回所需模型时手动指定", "command": "命令", "args": "参数", "envVars": "环境变量 (JSON)", "envJson": "环境变量 (JSON)", "quickPreset": "快速预设", "cancel": "取消", "save": "保存", "edit": "编辑", "delete": "删除", "dragToReorder": "拖拽排序", "noAgents": "未配置任何智能体", "errorIdCommand": "ID 和命令不能为空。", "errorDuplicateId": "已存在具有该 ID 的智能体。", "errorEnvJson": "环境变量必须是有效的 JSON 对象。", "errorContextWindowTokens": "上下文窗口必须为正整数。", "updateFailed": "更新配置失败。", "confirmDeleteTitle": "删除智能体", "confirmDeleteDesc": "确定要删除此智能体吗?此操作无法撤销。", "confirmDeleteDescWithSessions": "确定要删除此智能体吗?{{count}} 个会话也将被同时删除。此操作无法撤销。", "reset": "重置智能体", "resetSuccess": "智能体已重置。", "resetFailed": "重置智能体失败。", "deleteAllSessions": "删除所有会话", "confirmDeleteAllSessionsTitle": "删除所有会话", "confirmDeleteAllSessionsDesc": "此智能体的所有会话将被永久删除。此操作无法撤销。", "deleteAllSessionsSuccess": "已删除 {{count}} 个会话。", "deleteAllSessionsFailed": "删除会话失败。", "validation": { "enterId": "请输入智能体 ID。", "idFormat": "只允许字母、数字、_ 和 -。", "selectProvider": "请选择提供商。", "enterBaseUrl": "请输入 Base URL。", "enterApiKey": "请输入 API Key。", "enterCommand": "请输入命令。", "jsonObject": "必须是有效的 JSON 对象(值为字符串)。", "positiveInteger": "必须为正整数。" } }, "mcp": { "desc": "管理 MCP 服务器的配置和启动命令。", "description": "配置 MCP 服务器", "title": "MCP 服务器", "guide": "使用手册", "addMcp": "添加 MCP 服务器", "addStdioMcp": "添加 Stdio MCP", "addHttpMcp": "添加 HTTP MCP", "addSseMcp": "添加 SSE MCP", "recommended": { "exa": { "name": "Exa", "desc": "Exa MCP 服务器 — AI 网络搜索" } }, "editMcp": "编辑 MCP 服务器", "dialogDesc": "配置 MCP 服务器 ID、命令、参数和环境变量。", "mcpId": "MCP 服务器 ID (名称)", "command": "命令", "args": "参数", "envVars": "环境变量 (JSON)", "envJson": "环境变量 (JSON)", "url": "URL", "headers": "请求头 (JSON)", "headersJson": "请求头 (JSON)", "httpDialogDesc": "配置 MCP 服务器 ID、HTTP URL 和请求头。", "sseDialogDesc": "配置 MCP 服务器 ID、SSE 端点 URL 和请求头。", "cancel": "取消", "save": "保存", "edit": "编辑", "delete": "删除", "dragToReorder": "拖拽排序", "noMcpServers": "未配置任何 MCP 服务器", "errorIdRequired": "ID 不能为空。", "errorUrlRequired": "URL 不能为空。", "errorIdCommand": "ID 和命令不能为空。", "errorDuplicateId": "已存在具有该 ID 的 MCP 服务器。", "errorHeadersJson": "请求头必须是有效的 JSON 对象。", "errorEnvJson": "环境变量必须是有效的 JSON 对象。", "updateFailed": "更新配置失败。", "confirmDeleteTitle": "删除 MCP 服务器", "confirmDeleteDesc": "确定要删除此 MCP 服务器吗?此操作无法撤销。", "validation": { "enterId": "请输入服务器 ID。", "idFormat": "只允许字母、数字、_ 和 -。", "enterCommand": "请输入命令。", "enterUrl": "请输入 URL。", "jsonObject": "必须是有效的 JSON 对象(值为字符串)。" } }, "webui": { "desc": "配置对 Fello 界面的远程访问。", "title": "WebUI", "guide": "使用手册", "enable": "启用 WebUI", "enableDesc": "允许通过浏览器远程访问 Fello 界面", "enableAccess": "启用 WebUI 访问", "port": "端口:", "token": "Token:", "autoGenerated": "自动生成", "accessUrl": "访问地址", "accessDesc": "注意:此地址包含临时访问令牌,应用重启后将失效。", "copy": "复制", "note": "注意:此地址包含临时访问令牌,应用重启后将失效。", "updateFailed": "更新配置失败。", "disabledInWebUI": "WebUI 配置在浏览器中不可用。" }, "ilink": { "title": "微信 iLink", "guide": "使用手册", "description": "通过 iLink Bot API 将 Fello 接入微信。连接后,微信中会出现一个 ClawBot 联系人,你可以随时随地与 AI 智能体对话。", "connected": "已连接", "notConnected": "未连接", "notConnectedHint": "使用微信扫描二维码连接", "login": "登录", "loggingIn": "等待扫码...", "disconnect": "断开连接", "scanPrompt": "使用微信扫描二维码登录", "qrcodeExpired": "二维码已过期,请重新获取", "scanned": "已扫码!请在手机上确认登录。", "browserOpened": "二维码已在浏览器中打开,请使用微信扫码登录。", "activeSession": "微信活跃会话", "activeSessionHint": "微信消息将路由到此会话。可在侧边栏右键会话设为活跃。", "selectSession": "-- 选择一个会话 --", "none": "-- 无 --", "howItWorks": "使用说明", "step1": "点击「登录」在浏览器中打开二维码。", "step2": "使用微信扫描二维码。", "step3": "微信中出现「ClawBot」联系人。", "step4": "与 ClawBot 聊天 — 消息将路由到上方选择的活跃会话。", "step5": "在侧边栏右键任意会话即可设为微信活跃会话。", "useOriginalImage": "使用原图", "useOriginalImageDesc": "向模型发送原始大小的图片(消耗更多 token)。关闭时使用缩略图。", "keepaliveMaxCount": "保活消息", "keepaliveMaxCountDesc": "AI 思考时最大连续保活消息数。", "commandsTitle": "微信 ! 命令", "commandsDesc": "在微信中发送以 ! 或 ! 开头的消息即为命令。命令会中断当前 Agent 执行(如正在生成回复则立即取消),然后执行对应操作。", "cmdSwitchSession": "切换会话", "cmdSwitchSessionDesc": "列出所有会话(按项目分组),回复序号切换到对应会话。", "cmdNewSession": "新建会话", "cmdNewSessionDesc": "列出所有项目,回复序号在该项目下创建新会话并自动切换。", "cmdSwitchModel": "切换模型", "cmdSwitchModelDesc": "列出当前会话可用的模型,回复序号切换(仅 API Agent 支持)。", "cmdSnippet": "快捷短语", "cmdSnippetDesc": "列出已配置的 Snippets,回复序号将对应内容发送给 Agent。", "cmdStatus": "查看状态", "cmdStatusDesc": "显示当前活跃会话信息(标题、项目、Agent、Features、MCP 状态)。" }, "snippets": { "title": "快捷短语", "desc": "管理可复用的文本片段,快速插入到对话中。", "description": "配置快捷短语", "add": "添加短语", "edit": "编辑短语", "delete": "删除", "save": "保存", "cancel": "取消", "empty": "暂无快捷短语", "saveFailed": "保存快捷短语失败。", "titleLabel": "标题", "titlePlaceholder": "标题", "contentLabel": "内容", "contentPlaceholder": "内容", "dialogDesc": "配置短语的标题和内容。", "confirmDeleteTitle": "删除短语", "confirmDeleteDesc": "确定要删除此短语吗?此操作无法撤销。", "validation": { "enterTitle": "请输入标题。", "enterContent": "请输入内容。" } }, "memory": { "title": "记忆", "desc": "查看和管理项目级持久化记忆。", "projectMemories": "项目记忆", "refresh": "刷新", "clear": "清除", "cleared": "记忆已清除。", "clearFailed": "清除记忆失败。", "delete": "删除", "deleted": "记忆条目已删除。", "deleteFailed": "删除记忆条目失败。", "confirmDeleteTitle": "删除记忆条目", "confirmDeleteDesc": "确定要删除此记忆条目吗?此操作不可撤销。", "confirmClearTitle": "清除记忆", "confirmClearDesc": '确定要清除项目 "{{title}}" 的所有记忆吗?此操作不可撤销。', "revealInFinder": "在访达中显示", "revealFailed": "显示文件失败。", "noFile": "未找到记忆文件。", "noProjects": "未找到项目。", "empty": "暂无记忆。", "entries": "条目" }, "imageGeneration": { "title": "图片生成", "desc": "配置图片生成服务提供商。激活的提供商将作为工具供 Agent 使用。", "providers": "提供商", "add": "添加提供商", "addProvider": "添加提供商", "editProvider": "编辑提供商", "dialogDesc": "配置图片生成的提供商、端点和认证信息。", "edit": "编辑", "delete": "删除", "empty": "尚未配置图片生成提供商", "updateFailed": "更新配置失败。", "confirmDeleteTitle": "删除提供商", "confirmDeleteDesc": "确定要删除此图片生成提供商吗?", "cancel": "取消", "save": "保存", "form": { "name": "名称", "provider": "提供商", "baseUrl": "Base URL", "baseUrlHint": "请求将发送至 {baseUrl}/images/generations", "apiKey": "API Key", "headers": "请求头 (JSON)", "extraBody": "额外参数 (JSON)", "extraBodyHint": "合并到请求体中的额外参数(如 quality、style 等厂商特有参数)。", "model": "模型" }, "validation": { "enterName": "请输入名称。", "selectProvider": "请选择提供商。", "enterBaseUrl": "请输入 Base URL。", "enterApiKey": "请输入 API Key。", "enterModel": "请输入模型名称。", "jsonObject": "必须是有效的 JSON 对象(值为字符串)。" } }, "speechToText": { "title": "语音识别", "desc": "配置聊天输入框使用的实时语音识别服务商。", "guide": "使用手册", "providers": "服务商", "add": "添加服务商", "addProvider": "添加服务商", "editProvider": "编辑服务商", "dialogDesc": "配置实时语音输入的服务商和认证信息。", "edit": "编辑", "delete": "删除", "empty": "尚未配置语音识别服务商", "updateFailed": "更新配置失败。", "confirmDeleteTitle": "删除服务商", "confirmDeleteDesc": "确定删除这个语音识别服务商吗?", "cancel": "取消", "save": "保存", "validation": { "enterName": "请输入名称。", "selectProvider": "请选择服务商。", "enterApiKey": "请输入 API Key。", "enterAppId": "请输入 App ID。", "enterApiSecret": "请输入 API Secret。" }, "form": { "name": "名称", "provider": "服务商", "appId": "App ID", "apiKey": "API Key", "apiSecret": "API Secret", "optional": "(可选)", "language": "语言(可选)" } }, "proxy": { "title": "网络代理", "mode": "代理模式", "off": "直连", "offDesc": "不使用代理,直接连接", "manual": "手动", "manualDesc": "手动指定代理服务器,所有网络请求走代理", "system": "跟随系统", "systemDesc": "使用系统代理设置(macOS/Windows 或环境变量)", "httpProxy": "HTTP 代理", "httpProxyPlaceholder": "例如 http://127.0.0.1:7890", "httpsProxy": "HTTPS 代理(可选)", "httpsProxyHint": "留空时回退到 HTTP 代理。", "noProxy": "不使用代理(可选)", "noProxyPlaceholder": "例如 localhost,127.0.0.1,*.internal", "username": "用户名(可选)", "password": "密码(可选)", "cancel": "取消", "save": "保存", "later": "稍后", "restartNow": "立即重启", "restartTitle": "需要重启", "restartDesc": "代理设置已保存,重启 Fello 后新的代理配置才会生效。", "restartManualDesc": "代理设置已保存,请手动重启 Fello 服务端进程后生效。", "saveFailed": "保存代理设置失败。", "validation": { "httpProxyRequired": "手动模式下必须填写 HTTP 代理地址。", "invalidProxyUrl": "{{field}} 应以 http:// 或 https:// 开头,或使用 host:port 形式(例如 127.0.0.1:7890)。" } } };
|
|
16968
16975
|
const chat = { "failedToLoadSession": "加载会话失败。", "failedToUpdateMcpServers": "更新 MCP 服务器失败。" };
|
|
16969
16976
|
const tokenUsage = { "title": "Token 使用明细", "loading": "加载中…", "noData": "暂无 Token 使用明细", "promptCount": "{{count}} 轮对话", "promptLabel": "第 {{count}} 轮对话", "noBreakdown": "此提示词没有详细的 Token 明细", "input": "输入", "output": "输出", "inputShort": "输入", "outputShort": "输出", "totalTokens": "总计", "thought": "思考", "cacheRead": "缓存读取", "cacheWrite": "缓存写入", "cached": "缓存", "tokens": "Token", "token": "Token", "sessionTotal": "会话总计", "systemPrompt": "系统提示词", "tools": "工具", "history": "历史消息", "userMessage": "用户消息", "inputComposition": "输入组成", "delta": "估算差值", "toolsDefinition": "工具定义", "toolsCount": "{{count}} 个工具 · {{tokens}} tokens", "more": "+{{count}} 项", "steps": "步骤", "stepsCount": "{{count}} 步", "toolCalls": "工具调用", "noCache": "未缓存", "text": "文本", "stepTime": "步骤耗时", "responseTime": "响应耗时", "arguments": "参数", "result": "结果", "execution": "执行耗时", "performance": "性能", "totalTime": "总耗时", "outputSpeed": "输出速度", "tokensPerSecond": "Token/s", "firstToken": "首个 Token" };
|
|
16970
16977
|
const planBubble = { "title": "计划", "summary": "已完成 {{completed}} / {{total}}", "status": { "pending": "等待中", "inProgress": "进行中", "completed": "已完成" }, "priority": { "high": "高优先级", "medium": "中优先级", "low": "低优先级" } };
|
|
16971
16978
|
const constant = { "feature": { "title": "功能", "askUser": "向我提问", "skills": "技能", "shareToUser": "分享给用户", "search": "项目检索", "memory": "记忆", "imageGeneration": "图片生成" } };
|
|
16972
|
-
const chatHeader = { "sessionId": "会话编号", "openSessionFolder": "打开会话文件夹", "projectId": "项目目录", "openProjectFolder": "打开项目文件夹", "refresh": "重启会话", "closeSession": "关闭会话", "closingSession": "关闭中…", "failedToCloseSession": "关闭会话失败。", "contextWindow": "上下文窗口", "used": "已用", "size": "上限", "percentUsed": "已用 {{pct}}%", "remaining": "剩余 {{count}}", "lastTurn": "上一轮", "input": "输入", "output": "输出", "total": "总计", "thought": "思考", "cacheRead": "缓存读取", "cacheWrite": "缓存写入", "cost": "费用", "viewBreakdown": "查看明细" };
|
|
16973
|
-
const chatInput = { "placeholderDisabled": "请先开启新的会话...", "placeholderActive": "有任何问题请问我... (回车发送)", "mode": "模式", "suggestions": "建议", "messageInput": "消息输入", "stop": "停止", "send": "发送", "tokensUsage": "输入: {{input}} 输出: {{output}} 总计: {{total}}{{thoughtStr}}", "tokensTotal": "{{total}}k tokens", "generationFailed": "生成失败。", "attach": "附加文件", "reference": "引用", "mention": "应用", "snippets": "快捷短语", "snippetsEmpty": "暂无短语,点击前往设置添加。", "selectModel": "选择模型", "stopReasonMaxTokens": "已达到最大 token 限制", "stopReasonMaxTurnRequests": "已达到最大轮次限制", "stopReasonRefusal": "模型拒绝回答", "stopReasonCancelled": "生成已取消", "voiceInput": "语音输入", "selectVoiceInputDevice": "选择麦克风", "stopVoiceInput": "停止语音输入", "voiceInputNotConfigured": "请先在设置中配置语音识别", "noAudioInputDevices": "未找到音频输入设备" };
|
|
16974
|
-
const filePanel = { "title": "文件", "emptyDirectory": "空目录", "newFile": "新建文件", "newFolder": "新建文件夹", "rename": "重命名", "copyPath": "复制路径", "copyRelativePath": "复制相对路径", "revealInFinder": "在访达中显示", "openInEditor": "使用 {{editor}} 打开", "delete": "删除", "deleteConfirmSingle": "是否删除“{{name}}”?", "deleteConfirmMultiple": "是否删除选中的 {{count}} 个项目?", "dragItems": "{{count}} 个项目", "cancel": "取消", "moveToTrash": "移至废纸篓", "moveToRecycleBin": "移至回收站", "moveConfirmTitle": "移动", "moveConfirmSingle": "是否将“{{name}}”移动到“{{dest}}”?", "moveConfirmMultiple": "是否将 {{count}} 个项目移动到“{{dest}}”?", "moveConfirmSingleToRoot": "是否将“{{name}}”移动到根目录?", "moveConfirmMultipleToRoot": "是否将 {{count}} 个项目移动到根目录?", "loading": "加载中...", "collapseFolders": "折叠文件夹", "refresh": "刷新", "addToChat": "添加到对话", "noProject": "未选择项目" };
|
|
16979
|
+
const chatHeader = { "sessionId": "会话编号", "openSessionFolder": "打开会话文件夹", "projectId": "项目目录", "openProjectFolder": "打开项目文件夹", "refresh": "重启会话", "closeSession": "关闭会话", "closingSession": "关闭中…", "failedToCloseSession": "关闭会话失败。", "sessionOperationInProgress": "已有其他会话操作正在进行中。", "contextWindow": "上下文窗口", "used": "已用", "size": "上限", "percentUsed": "已用 {{pct}}%", "remaining": "剩余 {{count}}", "lastTurn": "上一轮", "input": "输入", "output": "输出", "total": "总计", "thought": "思考", "cacheRead": "缓存读取", "cacheWrite": "缓存写入", "cost": "费用", "viewBreakdown": "查看明细" };
|
|
16980
|
+
const chatInput = { "placeholderDisabled": "请先开启新的会话...", "placeholderActive": "有任何问题请问我... (回车发送)", "mode": "模式", "suggestions": "建议", "messageInput": "消息输入", "stop": "停止", "send": "发送", "tokensUsage": "输入: {{input}} 输出: {{output}} 总计: {{total}}{{thoughtStr}}", "tokensTotal": "{{total}}k tokens", "generationFailed": "生成失败。", "attach": "附加文件", "reference": "引用", "mention": "应用", "snippets": "快捷短语", "snippetsEmpty": "暂无短语,点击前往设置添加。", "selectModel": "选择模型", "stopReasonMaxTokens": "已达到最大 token 限制", "stopReasonMaxTurnRequests": "已达到最大轮次限制", "stopReasonRefusal": "模型拒绝回答", "stopReasonCancelled": "生成已取消", "voiceInput": "语音输入", "selectVoiceInputDevice": "选择麦克风", "stopVoiceInput": "停止语音输入", "startingVoiceInput": "正在启动语音输入", "voiceInputNotConfigured": "请先在设置中配置语音识别", "noAudioInputDevices": "未找到音频输入设备" };
|
|
16981
|
+
const filePanel = { "title": "文件", "view": "查看", "emptyDirectory": "空目录", "newFile": "新建文件", "newFolder": "新建文件夹", "rename": "重命名", "copyPath": "复制路径", "copyRelativePath": "复制相对路径", "revealInFinder": "在访达中显示", "openInEditor": "使用 {{editor}} 打开", "delete": "删除", "deleteConfirmSingle": "是否删除“{{name}}”?", "deleteConfirmMultiple": "是否删除选中的 {{count}} 个项目?", "dragItems": "{{count}} 个项目", "cancel": "取消", "moveToTrash": "移至废纸篓", "moveToRecycleBin": "移至回收站", "moveConfirmTitle": "移动", "moveConfirmSingle": "是否将“{{name}}”移动到“{{dest}}”?", "moveConfirmMultiple": "是否将 {{count}} 个项目移动到“{{dest}}”?", "moveConfirmSingleToRoot": "是否将“{{name}}”移动到根目录?", "moveConfirmMultipleToRoot": "是否将 {{count}} 个项目移动到根目录?", "loading": "加载中...", "collapseFolders": "折叠文件夹", "refresh": "刷新", "addToChat": "添加到对话", "noProject": "未选择项目" };
|
|
16975
16982
|
const toolBubble = { "tool": "工具", "stop": "停止", "stopping": "停止中…", "result": "结果", "terminal": "终端" };
|
|
16976
16983
|
const imageView = { "fallbackAlt": "图片" };
|
|
16977
16984
|
const readonlyTerminal = { "noOutput": "无输出." };
|
|
@@ -16984,7 +16991,7 @@ const chatTimeline = { "userMessageIndex": "第 {{index}} 条用户消息", "jum
|
|
|
16984
16991
|
const thinkingBubble = { "thinking": "思考中...", "thought": "思考过程" };
|
|
16985
16992
|
const userBubble = { "copy": "复制", "locate": "定位" };
|
|
16986
16993
|
const session = { "usageSummary": "{{total}} tk ( ↓ {{input}} ↑ {{output}}{{cachedPart}} )", "usageSummaryCached": " ↻ {{cached}}", "connecting": "正在连接智能体...", "connectionFailed": "连接智能体失败", "retry": "重试" };
|
|
16987
|
-
const terminalPanel = { "title": "终端", "noTerminalSelected": "未选择终端", "addTerminal": "添加终端" };
|
|
16994
|
+
const terminalPanel = { "title": "终端", "noTerminalSelected": "未选择终端", "addTerminal": "添加终端", "view": "查看", "delete": "删除终端" };
|
|
16988
16995
|
const permission = { "title": "需要权限", "error": "响应权限请求失败" };
|
|
16989
16996
|
const errorBoundary = { "title": "出了点问题", "defaultMessage": "应用程序发生意外错误。", "reload": "重新加载应用" };
|
|
16990
16997
|
const panel = { "files": "文件", "terminal": "终端", "noProjectSelected": "未选择项目" };
|
|
@@ -17001,6 +17008,7 @@ const zhCN = {
|
|
|
17001
17008
|
sidebar,
|
|
17002
17009
|
skills,
|
|
17003
17010
|
contextMenu,
|
|
17011
|
+
commands,
|
|
17004
17012
|
settings,
|
|
17005
17013
|
chat,
|
|
17006
17014
|
tokenUsage,
|
|
@@ -20954,6 +20962,233 @@ function reduceFlushStreaming(currentState) {
|
|
|
20954
20962
|
messages: newMessages
|
|
20955
20963
|
};
|
|
20956
20964
|
}
|
|
20965
|
+
class RestartSessionError extends Error {
|
|
20966
|
+
constructor(stage, cause) {
|
|
20967
|
+
super(stage === "update" ? "Failed to update session." : "Failed to load session.");
|
|
20968
|
+
this.stage = stage;
|
|
20969
|
+
this.cause = cause;
|
|
20970
|
+
this.name = "RestartSessionError";
|
|
20971
|
+
}
|
|
20972
|
+
stage;
|
|
20973
|
+
cause;
|
|
20974
|
+
}
|
|
20975
|
+
function isSessionLifecycleBusy(sessionId) {
|
|
20976
|
+
return activeLifecycleOperations.has(sessionId);
|
|
20977
|
+
}
|
|
20978
|
+
class SessionLifecycleBusyError extends Error {
|
|
20979
|
+
constructor(sessionId, operation) {
|
|
20980
|
+
const operationLabel = operation === "restart" ? "restarting" : operation === "close" ? "closing" : operation === "delete" ? "being deleted" : operation === "reset" ? "being reset" : "loading";
|
|
20981
|
+
super(`Session is already ${operationLabel}.`);
|
|
20982
|
+
this.sessionId = sessionId;
|
|
20983
|
+
this.operation = operation;
|
|
20984
|
+
this.name = "SessionLifecycleBusyError";
|
|
20985
|
+
}
|
|
20986
|
+
sessionId;
|
|
20987
|
+
operation;
|
|
20988
|
+
}
|
|
20989
|
+
const activeLifecycleOperations = /* @__PURE__ */ new Map();
|
|
20990
|
+
async function withSessionLifecycleLocks(sessionIds, operation, task) {
|
|
20991
|
+
const uniqueSessionIds = [...new Set(sessionIds)];
|
|
20992
|
+
const busySessionId = uniqueSessionIds.find(
|
|
20993
|
+
(sessionId) => activeLifecycleOperations.has(sessionId)
|
|
20994
|
+
);
|
|
20995
|
+
if (busySessionId) {
|
|
20996
|
+
throw new SessionLifecycleBusyError(busySessionId, operation);
|
|
20997
|
+
}
|
|
20998
|
+
for (const sessionId of uniqueSessionIds) {
|
|
20999
|
+
activeLifecycleOperations.set(sessionId, operation);
|
|
21000
|
+
}
|
|
21001
|
+
try {
|
|
21002
|
+
return await task();
|
|
21003
|
+
} finally {
|
|
21004
|
+
for (const sessionId of uniqueSessionIds) {
|
|
21005
|
+
activeLifecycleOperations.delete(sessionId);
|
|
21006
|
+
}
|
|
21007
|
+
}
|
|
21008
|
+
}
|
|
21009
|
+
async function withSessionLifecycleLock(sessionId, operation, task) {
|
|
21010
|
+
return withSessionLifecycleLocks([sessionId], operation, task);
|
|
21011
|
+
}
|
|
21012
|
+
function applyPendingNotifications(sessionId, state, pendingNotifications, knownDisplayIds) {
|
|
21013
|
+
const displayIds = knownDisplayIds ?? /* @__PURE__ */ new Set();
|
|
21014
|
+
let nextState = state;
|
|
21015
|
+
for (const notification of pendingNotifications) {
|
|
21016
|
+
const displayId = notification.update._meta?.fello?.displayId;
|
|
21017
|
+
if (displayId && displayIds.has(displayId)) continue;
|
|
21018
|
+
if (displayId) displayIds.add(displayId);
|
|
21019
|
+
nextState = reduceSessionNotification(sessionId, nextState, notification);
|
|
21020
|
+
}
|
|
21021
|
+
return nextState;
|
|
21022
|
+
}
|
|
21023
|
+
function finishLoadingSession(sessionId) {
|
|
21024
|
+
useAppStore.getState().updateSessionState(sessionId, (currentState) => {
|
|
21025
|
+
const state = applyPendingNotifications(
|
|
21026
|
+
sessionId,
|
|
21027
|
+
currentState,
|
|
21028
|
+
currentState.pendingNotifications
|
|
21029
|
+
);
|
|
21030
|
+
return {
|
|
21031
|
+
...reduceFlushStreaming(state),
|
|
21032
|
+
pendingNotifications: [],
|
|
21033
|
+
isLoading: false
|
|
21034
|
+
};
|
|
21035
|
+
});
|
|
21036
|
+
}
|
|
21037
|
+
async function restoreSessionHistory(sessionId, keepLoading) {
|
|
21038
|
+
const result = await request.getSessionHistory({ sessionId });
|
|
21039
|
+
if (!result) {
|
|
21040
|
+
throw new Error("Session history is unavailable.");
|
|
21041
|
+
}
|
|
21042
|
+
const historyDisplayIds = /* @__PURE__ */ new Set();
|
|
21043
|
+
const store = useAppStore.getState();
|
|
21044
|
+
store.updateSessionState(sessionId, (currentState) => {
|
|
21045
|
+
let state = {
|
|
21046
|
+
...currentState,
|
|
21047
|
+
messages: [],
|
|
21048
|
+
activeToolCalls: /* @__PURE__ */ new Map(),
|
|
21049
|
+
activeSubagents: /* @__PURE__ */ new Map()
|
|
21050
|
+
};
|
|
21051
|
+
for (const notification of result.messages) {
|
|
21052
|
+
const displayId = notification?.update?._meta?.fello?.displayId;
|
|
21053
|
+
if (displayId) historyDisplayIds.add(displayId);
|
|
21054
|
+
if (!notification?.update) continue;
|
|
21055
|
+
state = reduceSessionNotification(sessionId, state, notification);
|
|
21056
|
+
}
|
|
21057
|
+
state = applyPendingNotifications(
|
|
21058
|
+
sessionId,
|
|
21059
|
+
state,
|
|
21060
|
+
currentState.pendingNotifications,
|
|
21061
|
+
historyDisplayIds
|
|
21062
|
+
);
|
|
21063
|
+
return {
|
|
21064
|
+
...reduceFlushStreaming(state),
|
|
21065
|
+
isLoading: keepLoading,
|
|
21066
|
+
pendingNotifications: []
|
|
21067
|
+
};
|
|
21068
|
+
});
|
|
21069
|
+
return historyDisplayIds;
|
|
21070
|
+
}
|
|
21071
|
+
async function loadSession(sessionId, { force = false, loadHistory = false } = {}) {
|
|
21072
|
+
return withSessionLifecycleLock(sessionId, "load", async () => {
|
|
21073
|
+
let loadingStarted = false;
|
|
21074
|
+
try {
|
|
21075
|
+
if (loadHistory) {
|
|
21076
|
+
useAppStore.getState().updateSessionState(sessionId, (currentState) => ({
|
|
21077
|
+
...reduceFlushStreaming(currentState),
|
|
21078
|
+
isLoading: true
|
|
21079
|
+
}));
|
|
21080
|
+
loadingStarted = true;
|
|
21081
|
+
}
|
|
21082
|
+
await request.loadSession({ sessionId, force });
|
|
21083
|
+
if (loadHistory) {
|
|
21084
|
+
await restoreSessionHistory(sessionId, false);
|
|
21085
|
+
useAppStore.getState().updateSessionState(sessionId, () => ({
|
|
21086
|
+
loadedAt: Date.now()
|
|
21087
|
+
}));
|
|
21088
|
+
}
|
|
21089
|
+
} catch (error) {
|
|
21090
|
+
if (loadingStarted) finishLoadingSession(sessionId);
|
|
21091
|
+
throw error;
|
|
21092
|
+
}
|
|
21093
|
+
});
|
|
21094
|
+
}
|
|
21095
|
+
async function restartSession(options) {
|
|
21096
|
+
return withSessionLifecycleLock(options.session.id, "restart", async () => {
|
|
21097
|
+
const { session: session2, mcpServers = session2.mcpServers, features = session2.features } = options;
|
|
21098
|
+
let loadingStarted = false;
|
|
21099
|
+
try {
|
|
21100
|
+
const store = useAppStore.getState();
|
|
21101
|
+
store.updateSessionState(session2.id, (currentState) => ({
|
|
21102
|
+
...reduceFlushStreaming(currentState),
|
|
21103
|
+
isLoading: true
|
|
21104
|
+
}));
|
|
21105
|
+
loadingStarted = true;
|
|
21106
|
+
try {
|
|
21107
|
+
await request.updateSession({
|
|
21108
|
+
sessionId: session2.id,
|
|
21109
|
+
mcpServers,
|
|
21110
|
+
features
|
|
21111
|
+
});
|
|
21112
|
+
} catch (error) {
|
|
21113
|
+
throw new RestartSessionError("update", error);
|
|
21114
|
+
}
|
|
21115
|
+
const currentSession = useAppStore.getState().sessions.find((item) => item.id === session2.id) ?? session2;
|
|
21116
|
+
store.updateSession({
|
|
21117
|
+
...currentSession,
|
|
21118
|
+
mcpServers,
|
|
21119
|
+
features,
|
|
21120
|
+
isStreaming: false
|
|
21121
|
+
});
|
|
21122
|
+
let historyDisplayIds;
|
|
21123
|
+
try {
|
|
21124
|
+
historyDisplayIds = await restoreSessionHistory(session2.id, true);
|
|
21125
|
+
await request.loadSession({ sessionId: session2.id, force: true });
|
|
21126
|
+
} catch (error) {
|
|
21127
|
+
throw new RestartSessionError("load", error);
|
|
21128
|
+
}
|
|
21129
|
+
useAppStore.getState().updateSessionState(session2.id, (currentState) => {
|
|
21130
|
+
const state = applyPendingNotifications(
|
|
21131
|
+
session2.id,
|
|
21132
|
+
currentState,
|
|
21133
|
+
currentState.pendingNotifications,
|
|
21134
|
+
historyDisplayIds
|
|
21135
|
+
);
|
|
21136
|
+
return {
|
|
21137
|
+
...reduceFlushStreaming(state),
|
|
21138
|
+
pendingNotifications: [],
|
|
21139
|
+
isLoading: false,
|
|
21140
|
+
loadedAt: Date.now()
|
|
21141
|
+
};
|
|
21142
|
+
});
|
|
21143
|
+
} catch (error) {
|
|
21144
|
+
if (loadingStarted) finishLoadingSession(session2.id);
|
|
21145
|
+
throw error;
|
|
21146
|
+
}
|
|
21147
|
+
});
|
|
21148
|
+
}
|
|
21149
|
+
function closeSession(sessionId) {
|
|
21150
|
+
return withSessionLifecycleLock(sessionId, "close", async () => {
|
|
21151
|
+
await request.closeSession({ sessionId });
|
|
21152
|
+
finishLoadingSession(sessionId);
|
|
21153
|
+
});
|
|
21154
|
+
}
|
|
21155
|
+
function deleteProject(projectId, sessionIds) {
|
|
21156
|
+
return withSessionLifecycleLocks(sessionIds, "delete", () => request.deleteProject(projectId));
|
|
21157
|
+
}
|
|
21158
|
+
function deleteSessions(sessionIds) {
|
|
21159
|
+
return withSessionLifecycleLocks(sessionIds, "delete", async () => {
|
|
21160
|
+
for (const sessionId of sessionIds) {
|
|
21161
|
+
await request.deleteSession(sessionId);
|
|
21162
|
+
}
|
|
21163
|
+
});
|
|
21164
|
+
}
|
|
21165
|
+
function deleteSession(sessionId) {
|
|
21166
|
+
return deleteSessions([sessionId]);
|
|
21167
|
+
}
|
|
21168
|
+
function updateAgentSettings(agents, sessionIds) {
|
|
21169
|
+
return withSessionLifecycleLocks(sessionIds, "reset", () => request.updateSettings({ agents }));
|
|
21170
|
+
}
|
|
21171
|
+
function resetAgent(agentId, sessionIds) {
|
|
21172
|
+
return withSessionLifecycleLocks(sessionIds, "reset", () => request.resetAgent({ agentId }));
|
|
21173
|
+
}
|
|
21174
|
+
function clearAgentSessions(agentId, sessionIds) {
|
|
21175
|
+
return withSessionLifecycleLocks(
|
|
21176
|
+
sessionIds,
|
|
21177
|
+
"delete",
|
|
21178
|
+
() => request.clearAgentSessions({ agentId })
|
|
21179
|
+
);
|
|
21180
|
+
}
|
|
21181
|
+
async function newSession(options) {
|
|
21182
|
+
const result = await request.newSession(options);
|
|
21183
|
+
useAppStore.getState().updateSessionState(result.sessionId, () => ({
|
|
21184
|
+
isLoading: false,
|
|
21185
|
+
loadedAt: Date.now()
|
|
21186
|
+
}));
|
|
21187
|
+
return result.sessionId;
|
|
21188
|
+
}
|
|
21189
|
+
async function renameSession(sessionId, title) {
|
|
21190
|
+
await request.updateSession({ sessionId, title });
|
|
21191
|
+
}
|
|
20957
21192
|
const UNINITIALIZED = {};
|
|
20958
21193
|
function useRefWithInit(init, initArg) {
|
|
20959
21194
|
const ref = reactExports.useRef(UNINITIALIZED);
|
|
@@ -30889,7 +31124,7 @@ const cva = (base, config) => (props) => {
|
|
|
30889
31124
|
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
30890
31125
|
};
|
|
30891
31126
|
const buttonVariants = cva(
|
|
30892
|
-
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-
|
|
31127
|
+
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
30893
31128
|
{
|
|
30894
31129
|
variants: {
|
|
30895
31130
|
variant: {
|
|
@@ -31011,7 +31246,7 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
31011
31246
|
Component.displayName = toPascalCase(iconName);
|
|
31012
31247
|
return Component;
|
|
31013
31248
|
};
|
|
31014
|
-
const __iconNode$
|
|
31249
|
+
const __iconNode$B = [
|
|
31015
31250
|
["path", { d: "M12 8V4H8", key: "hb8ula" }],
|
|
31016
31251
|
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
|
|
31017
31252
|
["path", { d: "M2 14h2", key: "vft8re" }],
|
|
@@ -31019,8 +31254,8 @@ const __iconNode$y = [
|
|
|
31019
31254
|
["path", { d: "M15 13v2", key: "1xurst" }],
|
|
31020
31255
|
["path", { d: "M9 13v2", key: "rq6x2g" }]
|
|
31021
31256
|
];
|
|
31022
|
-
const Bot = createLucideIcon("bot", __iconNode$
|
|
31023
|
-
const __iconNode$
|
|
31257
|
+
const Bot = createLucideIcon("bot", __iconNode$B);
|
|
31258
|
+
const __iconNode$A = [
|
|
31024
31259
|
["path", { d: "M8 2v3", key: "1ioesn" }],
|
|
31025
31260
|
["path", { d: "M16 2v3", key: "otl347" }],
|
|
31026
31261
|
["rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", key: "h1oib" }],
|
|
@@ -31032,56 +31267,67 @@ const __iconNode$x = [
|
|
|
31032
31267
|
["path", { d: "M12 17h.01", key: "p32p05" }],
|
|
31033
31268
|
["path", { d: "M16 17h.01", key: "ql8jdd" }]
|
|
31034
31269
|
];
|
|
31035
|
-
const CalendarDays = createLucideIcon("calendar-days", __iconNode$
|
|
31036
|
-
const __iconNode$
|
|
31037
|
-
const Check = createLucideIcon("check", __iconNode$
|
|
31038
|
-
const __iconNode$
|
|
31039
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
31040
|
-
const __iconNode$
|
|
31041
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
31042
|
-
const __iconNode$
|
|
31043
|
-
const ChevronUp = createLucideIcon("chevron-up", __iconNode$
|
|
31044
|
-
const __iconNode$
|
|
31270
|
+
const CalendarDays = createLucideIcon("calendar-days", __iconNode$A);
|
|
31271
|
+
const __iconNode$z = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
31272
|
+
const Check = createLucideIcon("check", __iconNode$z);
|
|
31273
|
+
const __iconNode$y = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
31274
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$y);
|
|
31275
|
+
const __iconNode$x = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
31276
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$x);
|
|
31277
|
+
const __iconNode$w = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
|
|
31278
|
+
const ChevronUp = createLucideIcon("chevron-up", __iconNode$w);
|
|
31279
|
+
const __iconNode$v = [
|
|
31045
31280
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
31046
31281
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
31047
31282
|
];
|
|
31048
|
-
const CircleCheck = createLucideIcon("circle-check", __iconNode$
|
|
31049
|
-
const __iconNode$
|
|
31283
|
+
const CircleCheck = createLucideIcon("circle-check", __iconNode$v);
|
|
31284
|
+
const __iconNode$u = [
|
|
31050
31285
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
31051
31286
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
31052
31287
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
31053
31288
|
];
|
|
31054
|
-
const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$
|
|
31055
|
-
const __iconNode$
|
|
31289
|
+
const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$u);
|
|
31290
|
+
const __iconNode$t = [
|
|
31056
31291
|
["path", { d: "M11 14h10", key: "1w8e9d" }],
|
|
31057
31292
|
["path", { d: "M16 4h2a2 2 0 0 1 2 2v1.344", key: "1e62lh" }],
|
|
31058
31293
|
["path", { d: "m17 18 4-4-4-4", key: "z2g111" }],
|
|
31059
31294
|
["path", { d: "M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113", key: "bjbb7m" }],
|
|
31060
31295
|
["rect", { x: "8", y: "2", width: "8", height: "4", rx: "1", key: "ublpy" }]
|
|
31061
31296
|
];
|
|
31062
|
-
const ClipboardPaste = createLucideIcon("clipboard-paste", __iconNode$
|
|
31063
|
-
const __iconNode$
|
|
31297
|
+
const ClipboardPaste = createLucideIcon("clipboard-paste", __iconNode$t);
|
|
31298
|
+
const __iconNode$s = [
|
|
31064
31299
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }],
|
|
31065
31300
|
["path", { d: "M22 12a10 10 0 1 0-11 9.95", key: "17dhok" }],
|
|
31066
31301
|
["path", { d: "m22 16-5.5 5.5L14 19", key: "1eibut" }]
|
|
31067
31302
|
];
|
|
31068
|
-
const ClockCheck = createLucideIcon("clock-check", __iconNode$
|
|
31069
|
-
const __iconNode$
|
|
31303
|
+
const ClockCheck = createLucideIcon("clock-check", __iconNode$s);
|
|
31304
|
+
const __iconNode$r = [
|
|
31070
31305
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
31071
31306
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
|
|
31072
31307
|
];
|
|
31073
|
-
const Clock = createLucideIcon("clock", __iconNode$
|
|
31074
|
-
const __iconNode$
|
|
31308
|
+
const Clock = createLucideIcon("clock", __iconNode$r);
|
|
31309
|
+
const __iconNode$q = [
|
|
31075
31310
|
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
31076
31311
|
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
31077
31312
|
];
|
|
31078
|
-
const Code = createLucideIcon("code", __iconNode$
|
|
31079
|
-
const __iconNode$
|
|
31313
|
+
const Code = createLucideIcon("code", __iconNode$q);
|
|
31314
|
+
const __iconNode$p = [
|
|
31080
31315
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
31081
31316
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
31082
31317
|
];
|
|
31083
|
-
const Copy = createLucideIcon("copy", __iconNode$
|
|
31084
|
-
const __iconNode$
|
|
31318
|
+
const Copy = createLucideIcon("copy", __iconNode$p);
|
|
31319
|
+
const __iconNode$o = [
|
|
31320
|
+
[
|
|
31321
|
+
"path",
|
|
31322
|
+
{
|
|
31323
|
+
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
31324
|
+
key: "1nclc0"
|
|
31325
|
+
}
|
|
31326
|
+
],
|
|
31327
|
+
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
31328
|
+
];
|
|
31329
|
+
const Eye = createLucideIcon("eye", __iconNode$o);
|
|
31330
|
+
const __iconNode$n = [
|
|
31085
31331
|
[
|
|
31086
31332
|
"path",
|
|
31087
31333
|
{
|
|
@@ -31091,8 +31337,8 @@ const __iconNode$l = [
|
|
|
31091
31337
|
],
|
|
31092
31338
|
["path", { d: "M2 10h20", key: "1ir3d8" }]
|
|
31093
31339
|
];
|
|
31094
|
-
const FolderClosed = createLucideIcon("folder-closed", __iconNode$
|
|
31095
|
-
const __iconNode$
|
|
31340
|
+
const FolderClosed = createLucideIcon("folder-closed", __iconNode$n);
|
|
31341
|
+
const __iconNode$m = [
|
|
31096
31342
|
[
|
|
31097
31343
|
"path",
|
|
31098
31344
|
{
|
|
@@ -31101,8 +31347,8 @@ const __iconNode$k = [
|
|
|
31101
31347
|
}
|
|
31102
31348
|
]
|
|
31103
31349
|
];
|
|
31104
|
-
const FolderOpen = createLucideIcon("folder-open", __iconNode$
|
|
31105
|
-
const __iconNode$
|
|
31350
|
+
const FolderOpen = createLucideIcon("folder-open", __iconNode$m);
|
|
31351
|
+
const __iconNode$l = [
|
|
31106
31352
|
["path", { d: "M12 10v6", key: "1bos4e" }],
|
|
31107
31353
|
["path", { d: "M9 13h6", key: "1uhe8q" }],
|
|
31108
31354
|
[
|
|
@@ -31113,8 +31359,8 @@ const __iconNode$j = [
|
|
|
31113
31359
|
}
|
|
31114
31360
|
]
|
|
31115
31361
|
];
|
|
31116
|
-
const FolderPlus = createLucideIcon("folder-plus", __iconNode$
|
|
31117
|
-
const __iconNode$
|
|
31362
|
+
const FolderPlus = createLucideIcon("folder-plus", __iconNode$l);
|
|
31363
|
+
const __iconNode$k = [
|
|
31118
31364
|
[
|
|
31119
31365
|
"path",
|
|
31120
31366
|
{
|
|
@@ -31123,14 +31369,14 @@ const __iconNode$i = [
|
|
|
31123
31369
|
}
|
|
31124
31370
|
]
|
|
31125
31371
|
];
|
|
31126
|
-
const Folder = createLucideIcon("folder", __iconNode$
|
|
31127
|
-
const __iconNode$
|
|
31372
|
+
const Folder = createLucideIcon("folder", __iconNode$k);
|
|
31373
|
+
const __iconNode$j = [
|
|
31128
31374
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
31129
31375
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
31130
31376
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
31131
31377
|
];
|
|
31132
|
-
const Globe = createLucideIcon("globe", __iconNode$
|
|
31133
|
-
const __iconNode$
|
|
31378
|
+
const Globe = createLucideIcon("globe", __iconNode$j);
|
|
31379
|
+
const __iconNode$i = [
|
|
31134
31380
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
31135
31381
|
[
|
|
31136
31382
|
"path",
|
|
@@ -31140,23 +31386,23 @@ const __iconNode$g = [
|
|
|
31140
31386
|
}
|
|
31141
31387
|
]
|
|
31142
31388
|
];
|
|
31143
|
-
const House = createLucideIcon("house", __iconNode$
|
|
31144
|
-
const __iconNode$
|
|
31389
|
+
const House = createLucideIcon("house", __iconNode$i);
|
|
31390
|
+
const __iconNode$h = [
|
|
31145
31391
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
31146
31392
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
31147
31393
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
31148
31394
|
];
|
|
31149
|
-
const Info = createLucideIcon("info", __iconNode$
|
|
31150
|
-
const __iconNode$
|
|
31395
|
+
const Info = createLucideIcon("info", __iconNode$h);
|
|
31396
|
+
const __iconNode$g = [
|
|
31151
31397
|
["path", { d: "m16 6 4 14", key: "ji33uf" }],
|
|
31152
31398
|
["path", { d: "M12 6v14", key: "1n7gus" }],
|
|
31153
31399
|
["path", { d: "M8 8v12", key: "1gg7y9" }],
|
|
31154
31400
|
["path", { d: "M4 4v16", key: "6qkkli" }]
|
|
31155
31401
|
];
|
|
31156
|
-
const Library = createLucideIcon("library", __iconNode$
|
|
31157
|
-
const __iconNode$
|
|
31158
|
-
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$
|
|
31159
|
-
const __iconNode$
|
|
31402
|
+
const Library = createLucideIcon("library", __iconNode$g);
|
|
31403
|
+
const __iconNode$f = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
31404
|
+
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$f);
|
|
31405
|
+
const __iconNode$e = [
|
|
31160
31406
|
[
|
|
31161
31407
|
"path",
|
|
31162
31408
|
{
|
|
@@ -31167,8 +31413,8 @@ const __iconNode$c = [
|
|
|
31167
31413
|
["path", { d: "M8 12h8", key: "1wcyev" }],
|
|
31168
31414
|
["path", { d: "M12 8v8", key: "napkw2" }]
|
|
31169
31415
|
];
|
|
31170
|
-
const MessageCirclePlus = createLucideIcon("message-circle-plus", __iconNode$
|
|
31171
|
-
const __iconNode$
|
|
31416
|
+
const MessageCirclePlus = createLucideIcon("message-circle-plus", __iconNode$e);
|
|
31417
|
+
const __iconNode$d = [
|
|
31172
31418
|
[
|
|
31173
31419
|
"path",
|
|
31174
31420
|
{
|
|
@@ -31177,8 +31423,8 @@ const __iconNode$b = [
|
|
|
31177
31423
|
}
|
|
31178
31424
|
]
|
|
31179
31425
|
];
|
|
31180
|
-
const MessageCircle = createLucideIcon("message-circle", __iconNode$
|
|
31181
|
-
const __iconNode$
|
|
31426
|
+
const MessageCircle = createLucideIcon("message-circle", __iconNode$d);
|
|
31427
|
+
const __iconNode$c = [
|
|
31182
31428
|
[
|
|
31183
31429
|
"path",
|
|
31184
31430
|
{
|
|
@@ -31187,8 +31433,8 @@ const __iconNode$a = [
|
|
|
31187
31433
|
}
|
|
31188
31434
|
]
|
|
31189
31435
|
];
|
|
31190
|
-
const MessageSquare = createLucideIcon("message-square", __iconNode$
|
|
31191
|
-
const __iconNode$
|
|
31436
|
+
const MessageSquare = createLucideIcon("message-square", __iconNode$c);
|
|
31437
|
+
const __iconNode$b = [
|
|
31192
31438
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
31193
31439
|
[
|
|
31194
31440
|
"path",
|
|
@@ -31199,20 +31445,20 @@ const __iconNode$9 = [
|
|
|
31199
31445
|
],
|
|
31200
31446
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
31201
31447
|
];
|
|
31202
|
-
const OctagonX = createLucideIcon("octagon-x", __iconNode$
|
|
31203
|
-
const __iconNode$
|
|
31448
|
+
const OctagonX = createLucideIcon("octagon-x", __iconNode$b);
|
|
31449
|
+
const __iconNode$a = [
|
|
31204
31450
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
31205
31451
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
31206
31452
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
31207
31453
|
];
|
|
31208
|
-
const PanelLeftClose = createLucideIcon("panel-left-close", __iconNode$
|
|
31209
|
-
const __iconNode$
|
|
31454
|
+
const PanelLeftClose = createLucideIcon("panel-left-close", __iconNode$a);
|
|
31455
|
+
const __iconNode$9 = [
|
|
31210
31456
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
31211
31457
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
31212
31458
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
31213
31459
|
];
|
|
31214
|
-
const PanelLeftOpen = createLucideIcon("panel-left-open", __iconNode$
|
|
31215
|
-
const __iconNode$
|
|
31460
|
+
const PanelLeftOpen = createLucideIcon("panel-left-open", __iconNode$9);
|
|
31461
|
+
const __iconNode$8 = [
|
|
31216
31462
|
[
|
|
31217
31463
|
"path",
|
|
31218
31464
|
{
|
|
@@ -31222,7 +31468,19 @@ const __iconNode$6 = [
|
|
|
31222
31468
|
],
|
|
31223
31469
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
31224
31470
|
];
|
|
31225
|
-
const Pencil = createLucideIcon("pencil", __iconNode$
|
|
31471
|
+
const Pencil = createLucideIcon("pencil", __iconNode$8);
|
|
31472
|
+
const __iconNode$7 = [
|
|
31473
|
+
["path", { d: "M12 2v10", key: "mnfbl" }],
|
|
31474
|
+
["path", { d: "M18.4 6.6a9 9 0 1 1-12.77.04", key: "obofu9" }]
|
|
31475
|
+
];
|
|
31476
|
+
const Power = createLucideIcon("power", __iconNode$7);
|
|
31477
|
+
const __iconNode$6 = [
|
|
31478
|
+
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
31479
|
+
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
31480
|
+
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
31481
|
+
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
31482
|
+
];
|
|
31483
|
+
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$6);
|
|
31226
31484
|
const __iconNode$5 = [
|
|
31227
31485
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
31228
31486
|
["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
|
|
@@ -31784,7 +32042,7 @@ function Input({ className, type, ...props }) {
|
|
|
31784
32042
|
type,
|
|
31785
32043
|
"data-slot": "input",
|
|
31786
32044
|
className: cn$1(
|
|
31787
|
-
"h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-
|
|
32045
|
+
"h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
31788
32046
|
className
|
|
31789
32047
|
),
|
|
31790
32048
|
...props
|
|
@@ -34873,7 +35131,7 @@ function useMenuParent() {
|
|
|
34873
35131
|
}, [menubarContext]);
|
|
34874
35132
|
return parent;
|
|
34875
35133
|
}
|
|
34876
|
-
const Separator
|
|
35134
|
+
const Separator = /* @__PURE__ */ reactExports.forwardRef(function SeparatorComponent(componentProps, forwardedRef) {
|
|
34877
35135
|
const {
|
|
34878
35136
|
className,
|
|
34879
35137
|
render,
|
|
@@ -35168,7 +35426,7 @@ function DropdownMenuSeparator({
|
|
|
35168
35426
|
...props
|
|
35169
35427
|
}) {
|
|
35170
35428
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
35171
|
-
Separator
|
|
35429
|
+
Separator,
|
|
35172
35430
|
{
|
|
35173
35431
|
"data-slot": "dropdown-menu-separator",
|
|
35174
35432
|
className: cn$1("-mx-1 my-1 h-px bg-border", className),
|
|
@@ -38067,7 +38325,7 @@ function useRender(params) {
|
|
|
38067
38325
|
return useRenderElement(params.defaultTagName ?? "div", params, params);
|
|
38068
38326
|
}
|
|
38069
38327
|
const badgeVariants = cva(
|
|
38070
|
-
"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-
|
|
38328
|
+
"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
|
|
38071
38329
|
{
|
|
38072
38330
|
variants: {
|
|
38073
38331
|
variant: {
|
|
@@ -40062,7 +40320,7 @@ function SelectTrigger({
|
|
|
40062
40320
|
"data-slot": "select-trigger",
|
|
40063
40321
|
"data-size": size2,
|
|
40064
40322
|
className: cn$1(
|
|
40065
|
-
"flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent px-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-
|
|
40323
|
+
"flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent px-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:bg-transparent data-[size=sm]:text-xs data-[size=sm]:text-muted-foreground hover:data-[size=sm]:text-foreground data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
40066
40324
|
className
|
|
40067
40325
|
),
|
|
40068
40326
|
...props,
|
|
@@ -41058,7 +41316,7 @@ function TabsTrigger({ className, ...props }) {
|
|
|
41058
41316
|
{
|
|
41059
41317
|
"data-slot": "tabs-trigger",
|
|
41060
41318
|
className: cn$1(
|
|
41061
|
-
"relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/70 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-
|
|
41319
|
+
"relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/70 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
41062
41320
|
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
|
|
41063
41321
|
"data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
|
|
41064
41322
|
"after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
|
|
@@ -41305,7 +41563,7 @@ function Switch({
|
|
|
41305
41563
|
"data-slot": "switch",
|
|
41306
41564
|
"data-size": size2,
|
|
41307
41565
|
className: cn$1(
|
|
41308
|
-
"peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-
|
|
41566
|
+
"peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
41309
41567
|
className
|
|
41310
41568
|
),
|
|
41311
41569
|
...props,
|
|
@@ -42138,6 +42396,27 @@ function ScrollArea({
|
|
|
42138
42396
|
hideScrollBar,
|
|
42139
42397
|
...props
|
|
42140
42398
|
}) {
|
|
42399
|
+
const handleViewportKeyDown = (event) => {
|
|
42400
|
+
const viewport = event.currentTarget;
|
|
42401
|
+
if (event.defaultPrevented || event.target !== viewport || viewport.ownerDocument.activeElement !== viewport) {
|
|
42402
|
+
return;
|
|
42403
|
+
}
|
|
42404
|
+
const isMetaEdgeShortcut = event.metaKey && !event.ctrlKey && !event.altKey && !event.shiftKey;
|
|
42405
|
+
const isPlainEdgeShortcut = !event.metaKey && !event.ctrlKey && !event.altKey && !event.shiftKey;
|
|
42406
|
+
let top = null;
|
|
42407
|
+
if (isMetaEdgeShortcut && event.key === "ArrowUp") {
|
|
42408
|
+
top = 0;
|
|
42409
|
+
} else if (isMetaEdgeShortcut && event.key === "ArrowDown") {
|
|
42410
|
+
top = viewport.scrollHeight;
|
|
42411
|
+
} else if (isPlainEdgeShortcut && event.key === "Home") {
|
|
42412
|
+
top = 0;
|
|
42413
|
+
} else if (isPlainEdgeShortcut && event.key === "End") {
|
|
42414
|
+
top = viewport.scrollHeight;
|
|
42415
|
+
}
|
|
42416
|
+
if (top === null) return;
|
|
42417
|
+
event.preventDefault();
|
|
42418
|
+
viewport.scrollTo({ top, behavior: "smooth" });
|
|
42419
|
+
};
|
|
42141
42420
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
42142
42421
|
ScrollAreaRoot,
|
|
42143
42422
|
{
|
|
@@ -42151,6 +42430,7 @@ function ScrollArea({
|
|
|
42151
42430
|
"data-slot": "scroll-area-viewport",
|
|
42152
42431
|
className: cn$1("size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:outline-1", viewportClassName),
|
|
42153
42432
|
style: { overflowAnchor: "auto" },
|
|
42433
|
+
onKeyDown: handleViewportKeyDown,
|
|
42154
42434
|
children
|
|
42155
42435
|
}
|
|
42156
42436
|
),
|
|
@@ -42848,7 +43128,7 @@ function ContextMenuSeparator({
|
|
|
42848
43128
|
...props
|
|
42849
43129
|
}) {
|
|
42850
43130
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42851
|
-
Separator
|
|
43131
|
+
Separator,
|
|
42852
43132
|
{
|
|
42853
43133
|
"data-slot": "context-menu-separator",
|
|
42854
43134
|
className: cn$1("-mx-1 my-1 h-px bg-border", className),
|
|
@@ -42856,23 +43136,139 @@ function ContextMenuSeparator({
|
|
|
42856
43136
|
}
|
|
42857
43137
|
);
|
|
42858
43138
|
}
|
|
42859
|
-
|
|
42860
|
-
|
|
42861
|
-
|
|
42862
|
-
|
|
42863
|
-
|
|
42864
|
-
|
|
42865
|
-
|
|
42866
|
-
|
|
42867
|
-
|
|
42868
|
-
|
|
42869
|
-
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
|
|
42874
|
-
|
|
42875
|
-
);
|
|
43139
|
+
const FocusTargetContext = reactExports.createContext(null);
|
|
43140
|
+
function FocusTargetProvider({ children }) {
|
|
43141
|
+
const targetsRef = reactExports.useRef(/* @__PURE__ */ new Map());
|
|
43142
|
+
const register2 = reactExports.useCallback((id, handler) => {
|
|
43143
|
+
targetsRef.current.set(id, handler);
|
|
43144
|
+
return () => {
|
|
43145
|
+
if (targetsRef.current.get(id) === handler) {
|
|
43146
|
+
targetsRef.current.delete(id);
|
|
43147
|
+
}
|
|
43148
|
+
};
|
|
43149
|
+
}, []);
|
|
43150
|
+
const focus = reactExports.useCallback((id) => {
|
|
43151
|
+
const handler = targetsRef.current.get(id);
|
|
43152
|
+
if (!handler) return false;
|
|
43153
|
+
return handler() !== false;
|
|
43154
|
+
}, []);
|
|
43155
|
+
const value = reactExports.useMemo(() => ({ register: register2, focus }), [focus, register2]);
|
|
43156
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(FocusTargetContext.Provider, { value, children });
|
|
43157
|
+
}
|
|
43158
|
+
function useFocusTargetContext() {
|
|
43159
|
+
const context = reactExports.useContext(FocusTargetContext);
|
|
43160
|
+
if (!context) {
|
|
43161
|
+
throw new Error("Focus target hooks must be used within FocusTargetProvider");
|
|
43162
|
+
}
|
|
43163
|
+
return context;
|
|
43164
|
+
}
|
|
43165
|
+
function useFocusTarget(id, handler, enabled = true) {
|
|
43166
|
+
const { register: register2 } = useFocusTargetContext();
|
|
43167
|
+
const handlerRef = reactExports.useRef(handler);
|
|
43168
|
+
const enabledRef = reactExports.useRef(enabled);
|
|
43169
|
+
handlerRef.current = handler;
|
|
43170
|
+
enabledRef.current = enabled;
|
|
43171
|
+
reactExports.useEffect(() => {
|
|
43172
|
+
const registeredHandler = () => {
|
|
43173
|
+
if (!enabledRef.current) return false;
|
|
43174
|
+
return handlerRef.current();
|
|
43175
|
+
};
|
|
43176
|
+
return register2(id, registeredHandler);
|
|
43177
|
+
}, [id, register2]);
|
|
43178
|
+
}
|
|
43179
|
+
function useFocusTargetRegistry() {
|
|
43180
|
+
return useFocusTargetContext();
|
|
43181
|
+
}
|
|
43182
|
+
const keyCodeMap = {
|
|
43183
|
+
esc: "Escape",
|
|
43184
|
+
escape: "Escape",
|
|
43185
|
+
enter: "Enter",
|
|
43186
|
+
return: "Enter",
|
|
43187
|
+
plus: "Equal",
|
|
43188
|
+
minus: "Minus",
|
|
43189
|
+
tab: "Tab",
|
|
43190
|
+
space: "Space",
|
|
43191
|
+
backspace: "Backspace",
|
|
43192
|
+
delete: "Delete",
|
|
43193
|
+
up: "ArrowUp",
|
|
43194
|
+
down: "ArrowDown",
|
|
43195
|
+
left: "ArrowLeft",
|
|
43196
|
+
right: "ArrowRight",
|
|
43197
|
+
home: "Home",
|
|
43198
|
+
end: "End",
|
|
43199
|
+
pageup: "PageUp",
|
|
43200
|
+
"page-up": "PageUp",
|
|
43201
|
+
pagedown: "PageDown",
|
|
43202
|
+
"page-down": "PageDown"
|
|
43203
|
+
};
|
|
43204
|
+
const keyCodeAliases = {
|
|
43205
|
+
plus: ["Equal", "NumpadAdd"],
|
|
43206
|
+
minus: ["Minus", "NumpadSubtract"]
|
|
43207
|
+
};
|
|
43208
|
+
function parseShortcut(shortcut) {
|
|
43209
|
+
const parts = shortcut.split("+").map((part) => part.trim()).filter(Boolean);
|
|
43210
|
+
const keyPart = parts.pop()?.toLowerCase() ?? "";
|
|
43211
|
+
const modifiers = new Set(parts);
|
|
43212
|
+
const normalizedKey = keyPart.length === 1 ? keyPart : keyCodeMap[keyPart] ?? keyPart;
|
|
43213
|
+
const code = /^\d$/.test(keyPart) ? `Digit${keyPart}` : /^[fF]\d{1,2}$/.test(keyPart) ? keyPart.toUpperCase() : keyCodeMap[keyPart] ?? null;
|
|
43214
|
+
const codes = keyCodeAliases[keyPart] ?? (code ? [code] : null);
|
|
43215
|
+
return {
|
|
43216
|
+
key: normalizedKey,
|
|
43217
|
+
codes,
|
|
43218
|
+
alt: modifiers.has("Alt"),
|
|
43219
|
+
ctrl: modifiers.has("Control") || modifiers.has("Ctrl"),
|
|
43220
|
+
meta: modifiers.has("Meta") || modifiers.has("Cmd"),
|
|
43221
|
+
shift: modifiers.has("Shift"),
|
|
43222
|
+
mod: modifiers.has("Mod")
|
|
43223
|
+
};
|
|
43224
|
+
}
|
|
43225
|
+
function isMacPlatform() {
|
|
43226
|
+
return typeof navigator !== "undefined" && /mac|iphone|ipad|ipod/i.test(navigator.platform);
|
|
43227
|
+
}
|
|
43228
|
+
function isShortcutCaptureTarget(target) {
|
|
43229
|
+
return target instanceof HTMLElement && target.closest("[data-shortcut-capture]") !== null;
|
|
43230
|
+
}
|
|
43231
|
+
function isEditableTarget(target) {
|
|
43232
|
+
if (!(target instanceof HTMLElement)) return false;
|
|
43233
|
+
if (target.isContentEditable) return true;
|
|
43234
|
+
return ["INPUT", "TEXTAREA", "SELECT"].includes(target.tagName);
|
|
43235
|
+
}
|
|
43236
|
+
function matchesShortcut(event, shortcut) {
|
|
43237
|
+
const isMac = isMacPlatform();
|
|
43238
|
+
const expectedCtrl = shortcut.ctrl || shortcut.mod && !isMac;
|
|
43239
|
+
const expectedMeta = shortcut.meta || shortcut.mod && isMac;
|
|
43240
|
+
if (event.altKey !== shortcut.alt) return false;
|
|
43241
|
+
if (event.ctrlKey !== expectedCtrl) return false;
|
|
43242
|
+
if (event.metaKey !== expectedMeta) return false;
|
|
43243
|
+
if (event.shiftKey !== shortcut.shift) return false;
|
|
43244
|
+
if (shortcut.codes) return shortcut.codes.includes(event.code);
|
|
43245
|
+
return event.key.toLowerCase() === shortcut.key.toLowerCase();
|
|
43246
|
+
}
|
|
43247
|
+
function useKeyboardShortcuts(shortcuts, { scopeRef, capture = true } = {}) {
|
|
43248
|
+
const shortcutsRef = reactExports.useRef(shortcuts);
|
|
43249
|
+
shortcutsRef.current = shortcuts;
|
|
43250
|
+
reactExports.useEffect(() => {
|
|
43251
|
+
const handleKeyDown = (event) => {
|
|
43252
|
+
if (event.isComposing || event.repeat) return;
|
|
43253
|
+
if (scopeRef) {
|
|
43254
|
+
const eventTarget = event.target;
|
|
43255
|
+
if (!(eventTarget instanceof Node) || !scopeRef.current?.contains(eventTarget)) return;
|
|
43256
|
+
}
|
|
43257
|
+
if (isShortcutCaptureTarget(event.target)) return;
|
|
43258
|
+
for (const shortcut of shortcutsRef.current) {
|
|
43259
|
+
if (shortcut.enabled === false) continue;
|
|
43260
|
+
if (shortcut.ignoreInputs !== false && isEditableTarget(event.target)) continue;
|
|
43261
|
+
const parsedShortcut = parseShortcut(shortcut.shortcut);
|
|
43262
|
+
if (!matchesShortcut(event, parsedShortcut)) continue;
|
|
43263
|
+
if (shortcut.preventDefault !== false) event.preventDefault();
|
|
43264
|
+
if (shortcut.stopPropagation !== false) event.stopPropagation();
|
|
43265
|
+
shortcut.handler(event);
|
|
43266
|
+
break;
|
|
43267
|
+
}
|
|
43268
|
+
};
|
|
43269
|
+
window.addEventListener("keydown", handleKeyDown, capture);
|
|
43270
|
+
return () => window.removeEventListener("keydown", handleKeyDown, capture);
|
|
43271
|
+
}, [capture, scopeRef]);
|
|
42876
43272
|
}
|
|
42877
43273
|
function getErrorMessage(error, fallbackMessage) {
|
|
42878
43274
|
return extractErrorMessage(error) || fallbackMessage;
|
|
@@ -42895,6 +43291,9 @@ function projectHoverId(id) {
|
|
|
42895
43291
|
function sessionHoverId(id) {
|
|
42896
43292
|
return `s:${id}`;
|
|
42897
43293
|
}
|
|
43294
|
+
function sidebarNavigationItemKey(item) {
|
|
43295
|
+
return item.type === "project" ? `project:${item.id}` : `session:${item.id}`;
|
|
43296
|
+
}
|
|
42898
43297
|
function Sidebar() {
|
|
42899
43298
|
const { t, i18n } = useTranslation();
|
|
42900
43299
|
const navigate = useNavigate();
|
|
@@ -42935,6 +43334,7 @@ function Sidebar() {
|
|
|
42935
43334
|
setProjects,
|
|
42936
43335
|
setSessions,
|
|
42937
43336
|
sidebarOpen,
|
|
43337
|
+
setSidebarOpen,
|
|
42938
43338
|
configuredAgents,
|
|
42939
43339
|
configuredMcpServers,
|
|
42940
43340
|
sessionStates,
|
|
@@ -42973,14 +43373,19 @@ function Sidebar() {
|
|
|
42973
43373
|
const [expandedProjects, setExpandedProjects] = reactExports.useState({});
|
|
42974
43374
|
const [hoverId, setHoverId] = reactExports.useState(null);
|
|
42975
43375
|
const [contextMenuId, setContextMenuId] = reactExports.useState(null);
|
|
42976
|
-
const [
|
|
43376
|
+
const [sessionAction, setSessionAction] = reactExports.useState(null);
|
|
42977
43377
|
const hoveredTriggerIdRef = reactExports.useRef(null);
|
|
42978
|
-
reactExports.useEffect(() => {
|
|
42979
|
-
if (hoverId !== actionsOpenId) {
|
|
42980
|
-
setActionsOpenId(null);
|
|
42981
|
-
}
|
|
42982
|
-
}, [hoverId, actionsOpenId]);
|
|
42983
43378
|
const { prompt, confirm, toast: toast2 } = useMessage();
|
|
43379
|
+
const handleSetActiveIlinkSession = async (sessionId) => {
|
|
43380
|
+
try {
|
|
43381
|
+
await request.setActiveIlinkSession({ sessionId });
|
|
43382
|
+
} catch (err) {
|
|
43383
|
+
console.error("Failed to update WeChat active session:", err);
|
|
43384
|
+
toast2.error(
|
|
43385
|
+
extractErrorMessage(err) || t("sidebar.failedToUpdateIlinkSession", "Failed to update WeChat active session.")
|
|
43386
|
+
);
|
|
43387
|
+
}
|
|
43388
|
+
};
|
|
42984
43389
|
const showMacTrafficLightSpace = isMacApp && !isFullScreen;
|
|
42985
43390
|
const refreshData = async () => {
|
|
42986
43391
|
const [nextProjects, nextSessions] = await Promise.all([
|
|
@@ -43021,24 +43426,25 @@ function Sidebar() {
|
|
|
43021
43426
|
}
|
|
43022
43427
|
};
|
|
43023
43428
|
handleAddProjectRef.current = handleAddProject;
|
|
43024
|
-
const
|
|
43429
|
+
const handleNewSession = async (projectId, agentId, params) => {
|
|
43025
43430
|
try {
|
|
43026
43431
|
setExpandedProjects((prev) => ({ ...prev, [projectId]: true }));
|
|
43027
43432
|
useAppStore.getState().setIsCreatingSession(true);
|
|
43028
|
-
const
|
|
43433
|
+
const sessionId = await newSession({
|
|
43029
43434
|
projectId,
|
|
43030
43435
|
agentId,
|
|
43031
43436
|
mcpServers: params?.mcpServers,
|
|
43032
43437
|
features: params?.features,
|
|
43033
43438
|
permissionMode: params?.permissionMode
|
|
43034
43439
|
});
|
|
43035
|
-
useAppStore.getState().updateSessionState(result.sessionId, () => ({ loadedAt: Date.now() }));
|
|
43036
43440
|
await refreshData();
|
|
43037
|
-
handleNavigate(`/session-view/${
|
|
43441
|
+
handleNavigate(`/session-view/${sessionId}`);
|
|
43038
43442
|
return true;
|
|
43039
43443
|
} catch (err) {
|
|
43040
|
-
console.error("Failed to create new
|
|
43041
|
-
toast2.error(
|
|
43444
|
+
console.error("Failed to create new session:", err);
|
|
43445
|
+
toast2.error(
|
|
43446
|
+
getErrorMessage(err, t("sidebar.newSessionFailed", "Failed to create a new session."))
|
|
43447
|
+
);
|
|
43042
43448
|
return false;
|
|
43043
43449
|
} finally {
|
|
43044
43450
|
useAppStore.getState().setIsCreatingSession(false);
|
|
@@ -43068,7 +43474,7 @@ function Sidebar() {
|
|
|
43068
43474
|
handleNewSessionRef.current = openNewSessionDialog;
|
|
43069
43475
|
const handleCreateNewSession = async () => {
|
|
43070
43476
|
if (!newSessionProjectId || !newSessionAgentId) return;
|
|
43071
|
-
const ok = await
|
|
43477
|
+
const ok = await handleNewSession(newSessionProjectId, newSessionAgentId, {
|
|
43072
43478
|
mcpServers: Array.from(newSessionMcpIds),
|
|
43073
43479
|
features: newSessionFeatures,
|
|
43074
43480
|
permissionMode: newSessionPermissionMode
|
|
@@ -43085,27 +43491,101 @@ function Sidebar() {
|
|
|
43085
43491
|
}
|
|
43086
43492
|
handleNavigate(`/session-view/${session2.id}`);
|
|
43087
43493
|
};
|
|
43494
|
+
const handleRestartSession = async (session2) => {
|
|
43495
|
+
if (sessionAction) return;
|
|
43496
|
+
setSessionAction({ id: session2.id, type: "restart" });
|
|
43497
|
+
try {
|
|
43498
|
+
await restartSession({
|
|
43499
|
+
session: session2,
|
|
43500
|
+
mcpServers: session2.mcpServers,
|
|
43501
|
+
features: session2.features
|
|
43502
|
+
});
|
|
43503
|
+
} catch (err) {
|
|
43504
|
+
console.error("Failed to restart session:", err);
|
|
43505
|
+
if (err instanceof SessionLifecycleBusyError) {
|
|
43506
|
+
toast2.error(
|
|
43507
|
+
t(
|
|
43508
|
+
"sidebar.sessionOperationInProgress",
|
|
43509
|
+
"Another session operation is already in progress."
|
|
43510
|
+
)
|
|
43511
|
+
);
|
|
43512
|
+
return;
|
|
43513
|
+
}
|
|
43514
|
+
const lifecycleError = err instanceof RestartSessionError ? err : null;
|
|
43515
|
+
const cause = lifecycleError?.cause ?? err;
|
|
43516
|
+
const fallback = lifecycleError?.stage === "update" ? t("sidebar.failedToUpdateMcpServers", "Failed to update MCP servers") : t("sidebar.failedToLoadSession", "Failed to load session.");
|
|
43517
|
+
toast2.error(extractErrorMessage(cause) || fallback);
|
|
43518
|
+
} finally {
|
|
43519
|
+
setSessionAction(null);
|
|
43520
|
+
}
|
|
43521
|
+
};
|
|
43522
|
+
const handleCloseSession = async (session2) => {
|
|
43523
|
+
if (sessionAction) return;
|
|
43524
|
+
setSessionAction({ id: session2.id, type: "close" });
|
|
43525
|
+
try {
|
|
43526
|
+
await closeSession(session2.id);
|
|
43527
|
+
if (activeSessionId === session2.id) {
|
|
43528
|
+
handleNavigate("/");
|
|
43529
|
+
}
|
|
43530
|
+
} catch (err) {
|
|
43531
|
+
console.error("Failed to close session:", err);
|
|
43532
|
+
if (err instanceof SessionLifecycleBusyError) {
|
|
43533
|
+
toast2.error(
|
|
43534
|
+
t(
|
|
43535
|
+
"sidebar.sessionOperationInProgress",
|
|
43536
|
+
"Another session operation is already in progress."
|
|
43537
|
+
)
|
|
43538
|
+
);
|
|
43539
|
+
return;
|
|
43540
|
+
}
|
|
43541
|
+
toast2.error(
|
|
43542
|
+
extractErrorMessage(err) || t("sidebar.failedToCloseSession", "Failed to close session.")
|
|
43543
|
+
);
|
|
43544
|
+
} finally {
|
|
43545
|
+
setSessionAction(null);
|
|
43546
|
+
}
|
|
43547
|
+
};
|
|
43088
43548
|
const handleDeleteSession = async (session2) => {
|
|
43089
|
-
|
|
43549
|
+
if (sessionAction) return;
|
|
43550
|
+
const displayTitle = session2.title || t("sidebar.newSession", "New Session");
|
|
43090
43551
|
await confirm({
|
|
43091
|
-
title: t("sidebar.
|
|
43092
|
-
content: t("sidebar.
|
|
43552
|
+
title: t("sidebar.deleteSession"),
|
|
43553
|
+
content: t("sidebar.deleteSessionConfirm", { title: displayTitle }),
|
|
43093
43554
|
buttons: [
|
|
43094
43555
|
{ text: t("sidebar.cancel"), value: null, variant: "outline" },
|
|
43095
43556
|
{
|
|
43096
43557
|
text: t("sidebar.delete"),
|
|
43097
43558
|
variant: "destructive",
|
|
43098
43559
|
value: async () => {
|
|
43099
|
-
|
|
43100
|
-
|
|
43101
|
-
|
|
43560
|
+
setSessionAction({ id: session2.id, type: "delete" });
|
|
43561
|
+
try {
|
|
43562
|
+
await deleteSession(session2.id);
|
|
43563
|
+
if (activeSessionId === session2.id) {
|
|
43564
|
+
handleNavigate("/");
|
|
43565
|
+
}
|
|
43566
|
+
const store = useAppStore.getState();
|
|
43567
|
+
store.setSessions(store.sessions.filter((item) => item.id !== session2.id));
|
|
43568
|
+
store.disposeSessionState(session2.id);
|
|
43569
|
+
await refreshData();
|
|
43570
|
+
return "deleted";
|
|
43571
|
+
} catch (err) {
|
|
43572
|
+
console.error("Failed to delete session:", err);
|
|
43573
|
+
if (err instanceof SessionLifecycleBusyError) {
|
|
43574
|
+
toast2.error(
|
|
43575
|
+
t(
|
|
43576
|
+
"sidebar.sessionOperationInProgress",
|
|
43577
|
+
"Another session operation is already in progress."
|
|
43578
|
+
)
|
|
43579
|
+
);
|
|
43580
|
+
return null;
|
|
43581
|
+
}
|
|
43582
|
+
toast2.error(
|
|
43583
|
+
extractErrorMessage(err) || t("sidebar.failedToDeleteSession", "Failed to delete session.")
|
|
43584
|
+
);
|
|
43585
|
+
return null;
|
|
43586
|
+
} finally {
|
|
43587
|
+
setSessionAction(null);
|
|
43102
43588
|
}
|
|
43103
|
-
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
43104
|
-
setSessions(store.sessions.filter((s) => s.id !== session2.id));
|
|
43105
|
-
store.disposeSessionState(session2.id);
|
|
43106
|
-
await request.deleteSession(session2.id);
|
|
43107
|
-
await refreshData();
|
|
43108
|
-
return "deleted";
|
|
43109
43589
|
}
|
|
43110
43590
|
}
|
|
43111
43591
|
]
|
|
@@ -43124,15 +43604,15 @@ function Sidebar() {
|
|
|
43124
43604
|
}
|
|
43125
43605
|
};
|
|
43126
43606
|
const handleRenameSession = async (session2) => {
|
|
43127
|
-
const displayTitle = session2.title || t("sidebar.
|
|
43607
|
+
const displayTitle = session2.title || t("sidebar.newSession", "New Session");
|
|
43128
43608
|
const newName = await prompt({
|
|
43129
|
-
title: t("sidebar.
|
|
43130
|
-
content: t("sidebar.
|
|
43609
|
+
title: t("sidebar.renameSession"),
|
|
43610
|
+
content: t("sidebar.enterNewSessionName"),
|
|
43131
43611
|
defaultValue: displayTitle,
|
|
43132
|
-
validate: (val) => val.trim() ? void 0 : t("sidebar.
|
|
43612
|
+
validate: (val) => val.trim() ? void 0 : t("sidebar.sessionNameEmpty", "Session name cannot be empty")
|
|
43133
43613
|
});
|
|
43134
43614
|
if (newName) {
|
|
43135
|
-
await
|
|
43615
|
+
await renameSession(session2.id, newName.trim());
|
|
43136
43616
|
await refreshData();
|
|
43137
43617
|
}
|
|
43138
43618
|
};
|
|
@@ -43146,19 +43626,40 @@ function Sidebar() {
|
|
|
43146
43626
|
text: t("sidebar.delete"),
|
|
43147
43627
|
value: async () => {
|
|
43148
43628
|
const state = useAppStore.getState();
|
|
43149
|
-
const
|
|
43150
|
-
|
|
43629
|
+
const projectSessions = state.sessions.filter(
|
|
43630
|
+
(session2) => session2.projectId === project.id
|
|
43631
|
+
);
|
|
43632
|
+
const activeSession = projectSessions.find((session2) => session2.id === activeSessionId);
|
|
43633
|
+
if (activeSession) {
|
|
43151
43634
|
handleNavigate("/");
|
|
43152
43635
|
}
|
|
43153
|
-
|
|
43154
|
-
|
|
43155
|
-
|
|
43156
|
-
|
|
43636
|
+
try {
|
|
43637
|
+
await deleteProject(
|
|
43638
|
+
project.id,
|
|
43639
|
+
projectSessions.map((session2) => session2.id)
|
|
43640
|
+
);
|
|
43641
|
+
const currentState = useAppStore.getState();
|
|
43642
|
+
const map = new Map(currentState.sessionStates);
|
|
43643
|
+
for (const session2 of projectSessions) map.delete(session2.id);
|
|
43644
|
+
useAppStore.setState({ sessionStates: map });
|
|
43645
|
+
await refreshData();
|
|
43646
|
+
return "deleted";
|
|
43647
|
+
} catch (err) {
|
|
43648
|
+
console.error("Failed to delete project:", err);
|
|
43649
|
+
if (err instanceof SessionLifecycleBusyError) {
|
|
43650
|
+
toast2.error(
|
|
43651
|
+
t(
|
|
43652
|
+
"sidebar.sessionOperationInProgress",
|
|
43653
|
+
"Another session operation is already in progress."
|
|
43654
|
+
)
|
|
43655
|
+
);
|
|
43656
|
+
return null;
|
|
43657
|
+
}
|
|
43658
|
+
toast2.error(
|
|
43659
|
+
extractErrorMessage(err) || t("sidebar.failedToDeleteProject", "Failed to delete project.")
|
|
43660
|
+
);
|
|
43661
|
+
return null;
|
|
43157
43662
|
}
|
|
43158
|
-
useAppStore.setState({ sessionStates: map });
|
|
43159
|
-
await request.deleteProject(project.id);
|
|
43160
|
-
await refreshData();
|
|
43161
|
-
return "deleted";
|
|
43162
43663
|
},
|
|
43163
43664
|
variant: "destructive"
|
|
43164
43665
|
}
|
|
@@ -43200,6 +43701,158 @@ function Sidebar() {
|
|
|
43200
43701
|
const toggleProject = (projectId) => {
|
|
43201
43702
|
setExpandedProjects((prev) => ({ ...prev, [projectId]: !isProjectExpanded(projectId) }));
|
|
43202
43703
|
};
|
|
43704
|
+
const navigationItemRefs = reactExports.useRef(/* @__PURE__ */ new Map());
|
|
43705
|
+
const addProjectButtonRef = reactExports.useRef(null);
|
|
43706
|
+
const sessionListRef = reactExports.useRef(null);
|
|
43707
|
+
const navigationItems = reactExports.useMemo(() => {
|
|
43708
|
+
const items = [];
|
|
43709
|
+
for (const project of sortedProjects) {
|
|
43710
|
+
items.push({ type: "project", id: project.id });
|
|
43711
|
+
if (expandedProjects[project.id] ?? true) {
|
|
43712
|
+
for (const session2 of sessionsByProject[project.id] ?? []) {
|
|
43713
|
+
items.push({ type: "session", id: session2.id, projectId: project.id });
|
|
43714
|
+
}
|
|
43715
|
+
}
|
|
43716
|
+
}
|
|
43717
|
+
return items;
|
|
43718
|
+
}, [expandedProjects, sessionsByProject, sortedProjects]);
|
|
43719
|
+
const focusNavigationItem = reactExports.useCallback(
|
|
43720
|
+
(item) => {
|
|
43721
|
+
let element = navigationItemRefs.current.get(
|
|
43722
|
+
sidebarNavigationItemKey(item)
|
|
43723
|
+
);
|
|
43724
|
+
if (!element) {
|
|
43725
|
+
const itemIndex = navigationItems.findIndex(
|
|
43726
|
+
(navigationItem) => sidebarNavigationItemKey(navigationItem) === sidebarNavigationItemKey(item)
|
|
43727
|
+
);
|
|
43728
|
+
element = sessionListRef.current?.querySelectorAll('[role="treeitem"]')[itemIndex];
|
|
43729
|
+
}
|
|
43730
|
+
if (!element) return;
|
|
43731
|
+
element.focus({ preventScroll: true });
|
|
43732
|
+
element.scrollIntoView({ block: "nearest" });
|
|
43733
|
+
},
|
|
43734
|
+
[navigationItems]
|
|
43735
|
+
);
|
|
43736
|
+
const focusSidebarSessions = reactExports.useCallback(() => {
|
|
43737
|
+
const focusVisibleItem = () => {
|
|
43738
|
+
const activeSession = sessions.find((session2) => session2.id === activeSessionId);
|
|
43739
|
+
const targetItem = activeSession ? navigationItems.find(
|
|
43740
|
+
(item) => item.type === "session" && item.id === activeSession.id
|
|
43741
|
+
) ?? navigationItems.find(
|
|
43742
|
+
(item) => item.type === "project" && item.id === activeSession.projectId
|
|
43743
|
+
) : navigationItems[0];
|
|
43744
|
+
if (targetItem) {
|
|
43745
|
+
focusNavigationItem(targetItem);
|
|
43746
|
+
} else {
|
|
43747
|
+
addProjectButtonRef.current?.focus({ preventScroll: true });
|
|
43748
|
+
}
|
|
43749
|
+
};
|
|
43750
|
+
if (!sidebarOpen) {
|
|
43751
|
+
setSidebarOpen(true);
|
|
43752
|
+
}
|
|
43753
|
+
window.requestAnimationFrame(focusVisibleItem);
|
|
43754
|
+
}, [
|
|
43755
|
+
activeSessionId,
|
|
43756
|
+
focusNavigationItem,
|
|
43757
|
+
navigationItems,
|
|
43758
|
+
sessions,
|
|
43759
|
+
setSidebarOpen,
|
|
43760
|
+
sidebarOpen
|
|
43761
|
+
]);
|
|
43762
|
+
useFocusTarget("sidebar-sessions", focusSidebarSessions);
|
|
43763
|
+
const handleNavigationKeyDown = (event, item) => {
|
|
43764
|
+
const { key } = event;
|
|
43765
|
+
const isVerticalNavigationKey = key === "ArrowUp" || key === "ArrowDown" || key === "Home" || key === "End";
|
|
43766
|
+
if (isVerticalNavigationKey) {
|
|
43767
|
+
event.preventDefault();
|
|
43768
|
+
event.stopPropagation();
|
|
43769
|
+
const currentIndex = navigationItems.findIndex(
|
|
43770
|
+
(navigationItem) => sidebarNavigationItemKey(navigationItem) === sidebarNavigationItemKey(item)
|
|
43771
|
+
);
|
|
43772
|
+
if (navigationItems.length === 0) return;
|
|
43773
|
+
if (key === "ArrowUp" && currentIndex === 0) {
|
|
43774
|
+
addProjectButtonRef.current?.focus({ preventScroll: true });
|
|
43775
|
+
return;
|
|
43776
|
+
}
|
|
43777
|
+
const nextIndex = key === "Home" ? 0 : key === "End" ? navigationItems.length - 1 : Math.max(
|
|
43778
|
+
0,
|
|
43779
|
+
Math.min(navigationItems.length - 1, currentIndex + (key === "ArrowDown" ? 1 : -1))
|
|
43780
|
+
);
|
|
43781
|
+
const nextItem = navigationItems[nextIndex];
|
|
43782
|
+
if (nextItem) focusNavigationItem(nextItem);
|
|
43783
|
+
return;
|
|
43784
|
+
}
|
|
43785
|
+
if (key === "/") {
|
|
43786
|
+
event.preventDefault();
|
|
43787
|
+
event.stopPropagation();
|
|
43788
|
+
const target = event.currentTarget;
|
|
43789
|
+
const rect = target.getBoundingClientRect();
|
|
43790
|
+
target.dispatchEvent(
|
|
43791
|
+
new MouseEvent("contextmenu", {
|
|
43792
|
+
bubbles: true,
|
|
43793
|
+
cancelable: true,
|
|
43794
|
+
view: window,
|
|
43795
|
+
button: 2,
|
|
43796
|
+
buttons: 2,
|
|
43797
|
+
clientX: rect.left + rect.width / 2,
|
|
43798
|
+
clientY: rect.top + rect.height / 2
|
|
43799
|
+
})
|
|
43800
|
+
);
|
|
43801
|
+
return;
|
|
43802
|
+
}
|
|
43803
|
+
if (key === "ArrowLeft" || key === "ArrowRight") {
|
|
43804
|
+
event.preventDefault();
|
|
43805
|
+
event.stopPropagation();
|
|
43806
|
+
if (item.type === "project") {
|
|
43807
|
+
if (key === "ArrowLeft") {
|
|
43808
|
+
if (isProjectExpanded(item.id)) {
|
|
43809
|
+
setExpandedProjects((prev) => ({ ...prev, [item.id]: false }));
|
|
43810
|
+
}
|
|
43811
|
+
} else if (!isProjectExpanded(item.id)) {
|
|
43812
|
+
setExpandedProjects((prev) => ({ ...prev, [item.id]: true }));
|
|
43813
|
+
} else {
|
|
43814
|
+
const firstChild = navigationItems.find(
|
|
43815
|
+
(navigationItem) => navigationItem.type === "session" && navigationItem.projectId === item.id
|
|
43816
|
+
);
|
|
43817
|
+
if (firstChild) focusNavigationItem(firstChild);
|
|
43818
|
+
}
|
|
43819
|
+
} else if (key === "ArrowLeft") {
|
|
43820
|
+
focusNavigationItem({ type: "project", id: item.projectId });
|
|
43821
|
+
}
|
|
43822
|
+
return;
|
|
43823
|
+
}
|
|
43824
|
+
if (key === "Enter" || key === " " || key === "Spacebar") {
|
|
43825
|
+
event.preventDefault();
|
|
43826
|
+
event.stopPropagation();
|
|
43827
|
+
if (item.type === "project") {
|
|
43828
|
+
toggleProject(item.id);
|
|
43829
|
+
} else {
|
|
43830
|
+
const session2 = sessions.find((candidate) => candidate.id === item.id);
|
|
43831
|
+
if (session2) void handleSelectSession(session2);
|
|
43832
|
+
}
|
|
43833
|
+
}
|
|
43834
|
+
};
|
|
43835
|
+
const handleAddProjectKeyDown = (event) => {
|
|
43836
|
+
const { key } = event;
|
|
43837
|
+
if (key === "ArrowLeft" || key === "ArrowRight" || key === "Home" || key === "End") {
|
|
43838
|
+
event.preventDefault();
|
|
43839
|
+
event.stopPropagation();
|
|
43840
|
+
addProjectButtonRef.current?.focus({ preventScroll: true });
|
|
43841
|
+
return;
|
|
43842
|
+
}
|
|
43843
|
+
if (key === "ArrowDown") {
|
|
43844
|
+
event.preventDefault();
|
|
43845
|
+
event.stopPropagation();
|
|
43846
|
+
const firstItem = navigationItems[0];
|
|
43847
|
+
if (firstItem) focusNavigationItem(firstItem);
|
|
43848
|
+
return;
|
|
43849
|
+
}
|
|
43850
|
+
if (key === "Enter" || key === " " || key === "Spacebar") {
|
|
43851
|
+
event.preventDefault();
|
|
43852
|
+
event.stopPropagation();
|
|
43853
|
+
void handleAddProject();
|
|
43854
|
+
}
|
|
43855
|
+
};
|
|
43203
43856
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43204
43857
|
"aside",
|
|
43205
43858
|
{
|
|
@@ -43255,515 +43908,512 @@ function Sidebar() {
|
|
|
43255
43908
|
}
|
|
43256
43909
|
)
|
|
43257
43910
|
] }),
|
|
43258
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between px-3
|
|
43911
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between px-3 pt-2", children: [
|
|
43259
43912
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs font-normal tracking-wide text-sidebar-foreground/40 uppercase select-none", children: t("sidebar.projects") }),
|
|
43260
43913
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43261
43914
|
Button,
|
|
43262
43915
|
{
|
|
43916
|
+
ref: addProjectButtonRef,
|
|
43263
43917
|
variant: "ghost",
|
|
43264
43918
|
size: "icon",
|
|
43265
|
-
|
|
43919
|
+
tabIndex: -1,
|
|
43920
|
+
className: "size-6 -mr-1 text-sidebar-foreground/45 hover:bg-sidebar-accent/30 hover:text-sidebar-foreground/70",
|
|
43266
43921
|
onClick: handleAddProject,
|
|
43922
|
+
onKeyDown: handleAddProjectKeyDown,
|
|
43923
|
+
"aria-label": t("sidebar.addProject", "Add project"),
|
|
43267
43924
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(FolderPlus, { className: "size-3.5" })
|
|
43268
43925
|
}
|
|
43269
43926
|
)
|
|
43270
43927
|
] }),
|
|
43271
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ScrollArea, { className: "min-h-0 flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43272
|
-
|
|
43273
|
-
|
|
43274
|
-
|
|
43275
|
-
|
|
43276
|
-
|
|
43277
|
-
|
|
43278
|
-
|
|
43279
|
-
|
|
43280
|
-
|
|
43281
|
-
|
|
43282
|
-
|
|
43283
|
-
|
|
43284
|
-
|
|
43285
|
-
|
|
43928
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ScrollArea, { className: "min-h-0 flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43929
|
+
"div",
|
|
43930
|
+
{
|
|
43931
|
+
ref: sessionListRef,
|
|
43932
|
+
role: "tree",
|
|
43933
|
+
"aria-label": t("sidebar.sessions", "Sessions"),
|
|
43934
|
+
className: "space-y-0.5 p-1.5 outline-none focus:ring-1 focus:ring-ring/50",
|
|
43935
|
+
children: sortedProjects.map((project) => {
|
|
43936
|
+
const projectSessions = sessionsByProject[project.id] ?? [];
|
|
43937
|
+
const expanded = isProjectExpanded(project.id);
|
|
43938
|
+
const currentHoverId = projectHoverId(project.id);
|
|
43939
|
+
const latestProjectUpdateAt = projectSessions.length > 0 ? projectSessions.reduce((max2, session2) => Math.max(max2, session2.updatedAt), 0) : project.createdAt;
|
|
43940
|
+
const connectedSessions = projectSessions.filter(
|
|
43941
|
+
(session2) => session2.connectionStatus === "connected"
|
|
43942
|
+
);
|
|
43943
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-0.5 group", children: [
|
|
43944
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43945
|
+
HoverCard,
|
|
43946
|
+
{
|
|
43947
|
+
open: hoverId === currentHoverId,
|
|
43948
|
+
onOpenChange: (open) => {
|
|
43949
|
+
if (open) {
|
|
43950
|
+
if (contextMenuId === null) setHoverId(currentHoverId);
|
|
43951
|
+
} else if (hoverId === currentHoverId && hoveredTriggerIdRef.current !== currentHoverId) {
|
|
43952
|
+
setHoverId(null);
|
|
43953
|
+
}
|
|
43954
|
+
},
|
|
43955
|
+
children: [
|
|
43956
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(HoverCardTrigger, { render: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}), delay: 0, closeDelay: 100, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43957
|
+
ContextMenu,
|
|
43958
|
+
{
|
|
43959
|
+
onOpenChange: (open) => {
|
|
43960
|
+
setContextMenuId(open ? currentHoverId : null);
|
|
43961
|
+
if (open) {
|
|
43962
|
+
setHoverId(null);
|
|
43963
|
+
} else if (hoveredTriggerIdRef.current === currentHoverId) {
|
|
43964
|
+
setHoverId(currentHoverId);
|
|
43965
|
+
}
|
|
43966
|
+
},
|
|
43967
|
+
children: [
|
|
43968
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43969
|
+
ContextMenuTrigger,
|
|
43970
|
+
{
|
|
43971
|
+
render: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43972
|
+
"div",
|
|
43973
|
+
{
|
|
43974
|
+
ref: (element) => {
|
|
43975
|
+
const key = sidebarNavigationItemKey({
|
|
43976
|
+
type: "project",
|
|
43977
|
+
id: project.id
|
|
43978
|
+
});
|
|
43979
|
+
if (element) {
|
|
43980
|
+
navigationItemRefs.current.set(key, element);
|
|
43981
|
+
} else {
|
|
43982
|
+
navigationItemRefs.current.delete(key);
|
|
43983
|
+
}
|
|
43984
|
+
},
|
|
43985
|
+
tabIndex: -1,
|
|
43986
|
+
role: "treeitem",
|
|
43987
|
+
"aria-level": 1,
|
|
43988
|
+
"aria-expanded": expanded,
|
|
43989
|
+
onClick: () => toggleProject(project.id),
|
|
43990
|
+
onKeyDown: (event) => handleNavigationKeyDown(event, {
|
|
43991
|
+
type: "project",
|
|
43992
|
+
id: project.id
|
|
43993
|
+
}),
|
|
43994
|
+
onPointerEnter: () => {
|
|
43995
|
+
hoveredTriggerIdRef.current = currentHoverId;
|
|
43996
|
+
},
|
|
43997
|
+
onPointerLeave: () => {
|
|
43998
|
+
hoveredTriggerIdRef.current = null;
|
|
43999
|
+
},
|
|
44000
|
+
className: cn$1(
|
|
44001
|
+
"flex h-7 cursor-default items-center gap-1.5 rounded-md px-1.5 text-xs font-normal transition-colors text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground/95 outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
44002
|
+
connectedSessions.length > 0 ? "text-sidebar-foreground/60" : "",
|
|
44003
|
+
hoverId === currentHoverId || contextMenuId === currentHoverId ? "bg-sidebar-accent" : ""
|
|
44004
|
+
)
|
|
44005
|
+
}
|
|
44006
|
+
),
|
|
44007
|
+
children: [
|
|
44008
|
+
expanded ? /* @__PURE__ */ jsxRuntimeExports.jsx(FolderOpen, { className: "size-3.5" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(FolderClosed, { className: "size-3.5" }),
|
|
44009
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 truncate leading-normal font-normal uppercase select-none", children: project.title }),
|
|
44010
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44011
|
+
"button",
|
|
44012
|
+
{
|
|
44013
|
+
type: "button",
|
|
44014
|
+
onClick: (e) => {
|
|
44015
|
+
e.stopPropagation();
|
|
44016
|
+
openNewSessionDialog(project.id);
|
|
44017
|
+
},
|
|
44018
|
+
className: `flex size-4 items-center justify-center rounded-sm text-sidebar-foreground/40 hover:bg-sidebar-accent/25 hover:text-sidebar-foreground/70 transition-opacity duration-300 ${projectSessions.length === 0 ? "opacity-100" : "opacity-0 group-hover:opacity-100"}`,
|
|
44019
|
+
"aria-label": t("sidebar.createSessionInProject", {
|
|
44020
|
+
defaultValue: "Create session in {{title}}",
|
|
44021
|
+
title: project.title
|
|
44022
|
+
}),
|
|
44023
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MessageCirclePlus, { className: "size-3.5" })
|
|
44024
|
+
}
|
|
44025
|
+
)
|
|
44026
|
+
]
|
|
44027
|
+
}
|
|
44028
|
+
),
|
|
44029
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuContent, { className: "w-48", children: [
|
|
44030
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44031
|
+
ContextMenuItem,
|
|
44032
|
+
{
|
|
44033
|
+
onClick: () => openNewSessionDialog(project.id),
|
|
44034
|
+
className: "font-medium text-foreground",
|
|
44035
|
+
children: [
|
|
44036
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(MessageCirclePlus, { className: "size-3" }),
|
|
44037
|
+
t("sidebar.newSession", "New Session")
|
|
44038
|
+
]
|
|
44039
|
+
}
|
|
44040
|
+
),
|
|
44041
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuSeparator, {}),
|
|
44042
|
+
!isWebUI && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44043
|
+
ContextMenuItem,
|
|
44044
|
+
{
|
|
44045
|
+
onClick: () => void handleRevealProjectInFinder(project),
|
|
44046
|
+
children: [
|
|
44047
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FolderOpen, { className: "size-3" }),
|
|
44048
|
+
t("sidebar.revealInFinder")
|
|
44049
|
+
]
|
|
44050
|
+
}
|
|
44051
|
+
),
|
|
44052
|
+
!isWebUI && /* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuItem, { onClick: () => void handleOpenProjectInEditor(project), children: [
|
|
44053
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Code, { className: "size-3" }),
|
|
44054
|
+
t("filePanel.openInEditor", {
|
|
44055
|
+
editor: EDITOR_LABELS[useAppStore.getState().editor.name] ?? "Editor"
|
|
44056
|
+
})
|
|
44057
|
+
] }),
|
|
44058
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuItem, { onClick: () => void handleRenameProject(project), children: [
|
|
44059
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Pencil, { className: "size-3" }),
|
|
44060
|
+
t("sidebar.rename")
|
|
44061
|
+
] }),
|
|
44062
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuSeparator, {}),
|
|
44063
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44064
|
+
ContextMenuItem,
|
|
44065
|
+
{
|
|
44066
|
+
variant: "destructive",
|
|
44067
|
+
onClick: () => void handleDeleteProject(project),
|
|
44068
|
+
children: [
|
|
44069
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Trash2, { className: "size-3" }),
|
|
44070
|
+
t("sidebar.deleteProject")
|
|
44071
|
+
]
|
|
44072
|
+
}
|
|
44073
|
+
)
|
|
44074
|
+
] })
|
|
44075
|
+
]
|
|
44076
|
+
}
|
|
44077
|
+
) }),
|
|
44078
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44079
|
+
HoverCardContent,
|
|
44080
|
+
{
|
|
44081
|
+
side: "right",
|
|
44082
|
+
align: "start",
|
|
44083
|
+
sideOffset: 12,
|
|
44084
|
+
alignOffset: 0,
|
|
44085
|
+
className: "w-54 max-w-[20vw] p-3",
|
|
44086
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
44087
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium leading-snug line-clamp-2 wrap-break-word", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: project.title }) }),
|
|
44088
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
44089
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Folder, { className: "size-3 shrink-0" }),
|
|
44090
|
+
isWebUI ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate", title: project.cwd, children: project.cwd }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44091
|
+
"button",
|
|
44092
|
+
{
|
|
44093
|
+
type: "button",
|
|
44094
|
+
onClick: () => void handleRevealProjectInFinder(project),
|
|
44095
|
+
title: project.cwd,
|
|
44096
|
+
className: "min-w-0 flex-1 truncate text-left transition-colors hover:text-foreground",
|
|
44097
|
+
children: project.cwd
|
|
44098
|
+
}
|
|
44099
|
+
)
|
|
44100
|
+
] }),
|
|
44101
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
44102
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(MessageCircle, { className: "size-3 shrink-0" }),
|
|
44103
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate", children: t("sidebar.sessionCount", "{{count}} sessions", {
|
|
44104
|
+
count: projectSessions.length
|
|
44105
|
+
}) })
|
|
44106
|
+
] }),
|
|
44107
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
44108
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Clock, { className: "size-3 shrink-0" }),
|
|
44109
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "truncate", children: [
|
|
44110
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "mr-1", children: [
|
|
44111
|
+
t(
|
|
44112
|
+
projectSessions.length > 0 ? "sidebar.updated" : "sidebar.created",
|
|
44113
|
+
projectSessions.length > 0 ? "Updated" : "Created"
|
|
44114
|
+
),
|
|
44115
|
+
":"
|
|
44116
|
+
] }),
|
|
44117
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: formatRelativeTime(latestProjectUpdateAt, i18n.language) })
|
|
44118
|
+
] })
|
|
44119
|
+
] })
|
|
44120
|
+
] })
|
|
44121
|
+
}
|
|
44122
|
+
)
|
|
44123
|
+
]
|
|
43286
44124
|
}
|
|
43287
|
-
|
|
43288
|
-
|
|
43289
|
-
|
|
43290
|
-
|
|
44125
|
+
),
|
|
44126
|
+
expanded && projectSessions.map((session2) => {
|
|
44127
|
+
const currentHoverId2 = sessionHoverId(session2.id);
|
|
44128
|
+
const agentLabel = configuredAgents.find((a) => a.id === session2.agentId)?.id || session2.agentId;
|
|
44129
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44130
|
+
HoverCard,
|
|
43291
44131
|
{
|
|
44132
|
+
open: hoverId === currentHoverId2,
|
|
43292
44133
|
onOpenChange: (open) => {
|
|
43293
|
-
setContextMenuId(open ? currentHoverId : null);
|
|
43294
44134
|
if (open) {
|
|
44135
|
+
if (contextMenuId === null) setHoverId(currentHoverId2);
|
|
44136
|
+
} else if (hoverId === currentHoverId2 && hoveredTriggerIdRef.current !== currentHoverId2) {
|
|
43295
44137
|
setHoverId(null);
|
|
43296
|
-
} else if (hoveredTriggerIdRef.current === currentHoverId) {
|
|
43297
|
-
setHoverId(currentHoverId);
|
|
43298
44138
|
}
|
|
43299
44139
|
},
|
|
43300
44140
|
children: [
|
|
43301
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43302
|
-
|
|
44141
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(HoverCardTrigger, { render: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}), delay: 0, closeDelay: 100, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44142
|
+
ContextMenu,
|
|
43303
44143
|
{
|
|
43304
|
-
|
|
43305
|
-
|
|
43306
|
-
{
|
|
43307
|
-
|
|
43308
|
-
|
|
43309
|
-
|
|
43310
|
-
},
|
|
43311
|
-
onPointerLeave: () => {
|
|
43312
|
-
hoveredTriggerIdRef.current = null;
|
|
43313
|
-
},
|
|
43314
|
-
className: `flex h-7 cursor-default items-center gap-1.5 rounded-md px-1.5 text-xs font-normal transition-colors text-sidebar-foreground/45 hover:bg-sidebar-accent/25 hover:text-sidebar-foreground/80 ${hoverId === currentHoverId || contextMenuId === currentHoverId ? "bg-sidebar-accent/25 text-sidebar-foreground/80" : ""}`
|
|
44144
|
+
onOpenChange: (open) => {
|
|
44145
|
+
setContextMenuId(open ? currentHoverId2 : null);
|
|
44146
|
+
if (open) {
|
|
44147
|
+
setHoverId(null);
|
|
44148
|
+
} else if (hoveredTriggerIdRef.current === currentHoverId2) {
|
|
44149
|
+
setHoverId(currentHoverId2);
|
|
43315
44150
|
}
|
|
43316
|
-
|
|
44151
|
+
},
|
|
43317
44152
|
children: [
|
|
43318
|
-
expanded ? /* @__PURE__ */ jsxRuntimeExports.jsx(FolderOpen, { className: "size-3.5" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(FolderClosed, { className: "size-3.5" }),
|
|
43319
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 truncate leading-normal font-normal uppercase select-none", children: project.title }),
|
|
43320
44153
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43321
|
-
|
|
44154
|
+
ContextMenuTrigger,
|
|
43322
44155
|
{
|
|
43323
|
-
|
|
43324
|
-
|
|
43325
|
-
|
|
43326
|
-
|
|
43327
|
-
|
|
43328
|
-
|
|
43329
|
-
|
|
43330
|
-
|
|
43331
|
-
|
|
43332
|
-
|
|
43333
|
-
|
|
44156
|
+
render: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44157
|
+
"div",
|
|
44158
|
+
{
|
|
44159
|
+
ref: (element) => {
|
|
44160
|
+
const key = sidebarNavigationItemKey({
|
|
44161
|
+
type: "session",
|
|
44162
|
+
id: session2.id,
|
|
44163
|
+
projectId: project.id
|
|
44164
|
+
});
|
|
44165
|
+
if (element) {
|
|
44166
|
+
navigationItemRefs.current.set(key, element);
|
|
44167
|
+
} else {
|
|
44168
|
+
navigationItemRefs.current.delete(key);
|
|
44169
|
+
}
|
|
44170
|
+
},
|
|
44171
|
+
tabIndex: -1,
|
|
44172
|
+
role: "treeitem",
|
|
44173
|
+
"aria-level": 2,
|
|
44174
|
+
"aria-current": activeSessionId === session2.id ? "page" : void 0,
|
|
44175
|
+
onClick: () => handleSelectSession(session2),
|
|
44176
|
+
onKeyDown: (event) => handleNavigationKeyDown(event, {
|
|
44177
|
+
type: "session",
|
|
44178
|
+
id: session2.id,
|
|
44179
|
+
projectId: project.id
|
|
44180
|
+
}),
|
|
44181
|
+
onPointerEnter: () => {
|
|
44182
|
+
hoveredTriggerIdRef.current = currentHoverId2;
|
|
44183
|
+
},
|
|
44184
|
+
onPointerLeave: () => {
|
|
44185
|
+
hoveredTriggerIdRef.current = null;
|
|
44186
|
+
},
|
|
44187
|
+
className: `group flex h-7 cursor-default items-center justify-between rounded-md pl-1.5 pr-2 text-xs font-normal transition-colors outline-none focus-visible:ring-1 focus-visible:ring-ring ${activeSessionId === session2.id ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground/95"} ${hoverId === currentHoverId2 || contextMenuId === currentHoverId2 ? "bg-sidebar-accent" : ""}`
|
|
44188
|
+
}
|
|
44189
|
+
),
|
|
44190
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44191
|
+
"div",
|
|
44192
|
+
{
|
|
44193
|
+
className: cn$1(
|
|
44194
|
+
"flex min-w-0 flex-1 items-center gap-1.5",
|
|
44195
|
+
session2.connectionStatus === "connected" ? "" : "opacity-60"
|
|
44196
|
+
),
|
|
44197
|
+
children: [
|
|
44198
|
+
(() => {
|
|
44199
|
+
const state = sessionStates.get(session2.id);
|
|
44200
|
+
const hasAskUser = (state?.askUserRequests?.length ?? 0) > 0;
|
|
44201
|
+
const isStreaming = session2.isStreaming;
|
|
44202
|
+
const completedStatus = state?.completedStatus;
|
|
44203
|
+
if (hasAskUser) {
|
|
44204
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircleQuestionMark, { className: "size-3 shrink-0 text-sky-500" });
|
|
44205
|
+
}
|
|
44206
|
+
if (isStreaming) {
|
|
44207
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(LoaderCircle, { className: "size-3 animate-spin shrink-0" });
|
|
44208
|
+
}
|
|
44209
|
+
if (completedStatus === "success" || state?.completedAt && !completedStatus) {
|
|
44210
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Check, { className: "size-3 shrink-0 text-green-500" });
|
|
44211
|
+
}
|
|
44212
|
+
if (completedStatus === "error") {
|
|
44213
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TriangleAlert, { className: "size-3 shrink-0 text-yellow-500" });
|
|
44214
|
+
}
|
|
44215
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "size-3 shrink-0" });
|
|
44216
|
+
})(),
|
|
44217
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44218
|
+
Badge,
|
|
44219
|
+
{
|
|
44220
|
+
variant: "outline",
|
|
44221
|
+
className: "px-1 -ml-0.5 text-[10px] uppercase select-none max-w-24",
|
|
44222
|
+
children: agentLabel
|
|
44223
|
+
}
|
|
44224
|
+
),
|
|
44225
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "min-w-0 flex-1 truncate leading-normal select-none", children: session2.title || t("sidebar.newSession", "New Session") }),
|
|
44226
|
+
activeIlinkSessionId === session2.id && /* @__PURE__ */ jsxRuntimeExports.jsx(MessageCircle, { className: "size-3 shrink-0 text-green-500" })
|
|
44227
|
+
]
|
|
44228
|
+
}
|
|
44229
|
+
)
|
|
43334
44230
|
}
|
|
43335
|
-
)
|
|
43336
|
-
|
|
43337
|
-
}
|
|
43338
|
-
),
|
|
43339
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuContent, { className: "w-48", children: [
|
|
43340
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuItem, { onClick: () => openNewSessionDialog(project.id), children: [
|
|
43341
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(MessageCirclePlus, { className: "size-3" }),
|
|
43342
|
-
t("sidebar.newChat", "New Chat")
|
|
43343
|
-
] }),
|
|
43344
|
-
!isWebUI && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43345
|
-
ContextMenuItem,
|
|
43346
|
-
{
|
|
43347
|
-
onClick: () => void handleRevealProjectInFinder(project),
|
|
43348
|
-
children: [
|
|
43349
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FolderOpen, { className: "size-3" }),
|
|
43350
|
-
t("sidebar.revealInFinder")
|
|
43351
|
-
]
|
|
43352
|
-
}
|
|
43353
|
-
),
|
|
43354
|
-
!isWebUI && /* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuItem, { onClick: () => void handleOpenProjectInEditor(project), children: [
|
|
43355
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Code, { className: "size-3" }),
|
|
43356
|
-
t("filePanel.openInEditor", {
|
|
43357
|
-
editor: EDITOR_LABELS[useAppStore.getState().editor.name] ?? "Editor"
|
|
43358
|
-
})
|
|
43359
|
-
] }),
|
|
43360
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuItem, { onClick: () => void handleRenameProject(project), children: [
|
|
43361
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Pencil, { className: "size-3" }),
|
|
43362
|
-
t("sidebar.rename")
|
|
43363
|
-
] }),
|
|
43364
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuSeparator, {}),
|
|
43365
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43366
|
-
ContextMenuItem,
|
|
43367
|
-
{
|
|
43368
|
-
variant: "destructive",
|
|
43369
|
-
onClick: () => void handleDeleteProject(project),
|
|
43370
|
-
children: [
|
|
43371
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Trash2, { className: "size-3" }),
|
|
43372
|
-
t("sidebar.delete")
|
|
43373
|
-
]
|
|
43374
|
-
}
|
|
43375
|
-
)
|
|
43376
|
-
] })
|
|
43377
|
-
]
|
|
43378
|
-
}
|
|
43379
|
-
) }),
|
|
43380
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43381
|
-
HoverCardContent,
|
|
43382
|
-
{
|
|
43383
|
-
side: "right",
|
|
43384
|
-
align: "start",
|
|
43385
|
-
sideOffset: 12,
|
|
43386
|
-
alignOffset: 0,
|
|
43387
|
-
className: "max-w-60 min-w-48 w-auto p-3",
|
|
43388
|
-
onPointerEnter: () => setActionsOpenId(currentHoverId),
|
|
43389
|
-
children: [
|
|
43390
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
43391
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium leading-snug -mt-0.5", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: project.title }) }),
|
|
43392
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
43393
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Folder, { className: "size-3 shrink-0" }),
|
|
43394
|
-
isWebUI ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate", title: project.cwd, children: project.cwd }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43395
|
-
"button",
|
|
43396
|
-
{
|
|
43397
|
-
type: "button",
|
|
43398
|
-
onClick: () => void handleRevealProjectInFinder(project),
|
|
43399
|
-
title: project.cwd,
|
|
43400
|
-
className: "min-w-0 flex-1 truncate text-left transition-colors hover:text-foreground",
|
|
43401
|
-
children: project.cwd
|
|
43402
|
-
}
|
|
43403
|
-
)
|
|
43404
|
-
] }),
|
|
43405
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
43406
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(MessageCircle, { className: "size-3 shrink-0" }),
|
|
43407
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate", children: t("sidebar.sessionCount", "{{count}} sessions", {
|
|
43408
|
-
count: projectSessions.length
|
|
43409
|
-
}) })
|
|
43410
|
-
] }),
|
|
43411
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
43412
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Clock, { className: "size-3 shrink-0" }),
|
|
43413
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "truncate", children: [
|
|
43414
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "mr-1", children: [
|
|
43415
|
-
t(
|
|
43416
|
-
projectSessions.length > 0 ? "sidebar.updated" : "sidebar.created",
|
|
43417
|
-
projectSessions.length > 0 ? "Updated" : "Created"
|
|
43418
|
-
),
|
|
43419
|
-
":"
|
|
43420
|
-
] }),
|
|
43421
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: formatRelativeTime(latestProjectUpdateAt, i18n.language) })
|
|
43422
|
-
] })
|
|
43423
|
-
] })
|
|
43424
|
-
] }),
|
|
43425
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43426
|
-
"div",
|
|
43427
|
-
{
|
|
43428
|
-
className: cn$1(
|
|
43429
|
-
"-mx-2 -my-1 grid transition-[grid-template-rows] duration-200 ease-out",
|
|
43430
|
-
actionsOpenId === currentHoverId ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
43431
|
-
),
|
|
43432
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "min-h-0 mt-2 -mb-1 overflow-hidden", children: [
|
|
43433
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Separator, { className: "my-1" }),
|
|
43434
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col", children: [
|
|
44231
|
+
),
|
|
44232
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuContent, { className: "w-48", children: [
|
|
43435
44233
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43436
|
-
|
|
44234
|
+
ContextMenuItem,
|
|
43437
44235
|
{
|
|
43438
|
-
|
|
43439
|
-
|
|
43440
|
-
className: "flex h-7 items-center gap-2 rounded-md px-2 text-xs text-foreground transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
44236
|
+
onClick: () => handleSelectSession(session2),
|
|
44237
|
+
className: "font-medium text-foreground",
|
|
43441
44238
|
children: [
|
|
43442
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43443
|
-
t("sidebar.
|
|
44239
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Eye, { className: "size-3" }),
|
|
44240
|
+
t("sidebar.viewSession", "View Session")
|
|
43444
44241
|
]
|
|
43445
44242
|
}
|
|
43446
44243
|
),
|
|
44244
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuSeparator, {}),
|
|
43447
44245
|
!isWebUI && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43448
|
-
|
|
44246
|
+
ContextMenuItem,
|
|
43449
44247
|
{
|
|
43450
|
-
type: "button",
|
|
43451
44248
|
onClick: () => void handleRevealProjectInFinder(project),
|
|
43452
|
-
className: "flex h-7 items-center gap-2 rounded-md px-2 text-xs text-foreground transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
43453
44249
|
children: [
|
|
43454
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FolderOpen, { className: "size-3
|
|
44250
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FolderOpen, { className: "size-3" }),
|
|
43455
44251
|
t("sidebar.revealInFinder")
|
|
43456
44252
|
]
|
|
43457
44253
|
}
|
|
43458
44254
|
),
|
|
43459
44255
|
!isWebUI && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43460
|
-
|
|
44256
|
+
ContextMenuItem,
|
|
43461
44257
|
{
|
|
43462
|
-
type: "button",
|
|
43463
44258
|
onClick: () => void handleOpenProjectInEditor(project),
|
|
43464
|
-
className: "flex h-7 items-center gap-2 rounded-md px-2 text-xs text-foreground transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
43465
44259
|
children: [
|
|
43466
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Code, { className: "size-3
|
|
44260
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Code, { className: "size-3" }),
|
|
43467
44261
|
t("filePanel.openInEditor", {
|
|
43468
44262
|
editor: EDITOR_LABELS[useAppStore.getState().editor.name] ?? "Editor"
|
|
43469
44263
|
})
|
|
43470
44264
|
]
|
|
43471
44265
|
}
|
|
43472
44266
|
),
|
|
43473
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43474
|
-
"
|
|
44267
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuItem, { onClick: () => handleRenameSession(session2), children: [
|
|
44268
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Pencil, { className: "size-3" }),
|
|
44269
|
+
t("sidebar.rename")
|
|
44270
|
+
] }),
|
|
44271
|
+
ilinkStatus.connected && activeIlinkSessionId !== session2.id && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44272
|
+
ContextMenuItem,
|
|
43475
44273
|
{
|
|
43476
|
-
|
|
43477
|
-
onClick: () => handleRenameProject(project),
|
|
43478
|
-
className: "flex h-7 items-center gap-2 rounded-md px-2 text-xs text-foreground transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
44274
|
+
onClick: () => void handleSetActiveIlinkSession(session2.id),
|
|
43479
44275
|
children: [
|
|
43480
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43481
|
-
t("sidebar.
|
|
44276
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(MessageCircle, { className: "size-3" }),
|
|
44277
|
+
t("sidebar.ilinkSetActive", "Set as WeChat Active")
|
|
43482
44278
|
]
|
|
43483
44279
|
}
|
|
43484
44280
|
),
|
|
43485
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43486
|
-
|
|
44281
|
+
ilinkStatus.connected && activeIlinkSessionId === session2.id && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44282
|
+
ContextMenuItem,
|
|
43487
44283
|
{
|
|
43488
|
-
|
|
43489
|
-
onClick: () => void handleDeleteProject(project),
|
|
43490
|
-
className: "flex h-7 items-center gap-2 rounded-md px-2 text-xs text-destructive transition-colors hover:bg-destructive/10",
|
|
44284
|
+
onClick: () => void handleSetActiveIlinkSession(""),
|
|
43491
44285
|
children: [
|
|
43492
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43493
|
-
t("sidebar.
|
|
44286
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(MessageCircle, { className: "size-3 text-green-500" }),
|
|
44287
|
+
t("sidebar.ilinkUnsetActive", "Unset WeChat Active")
|
|
43494
44288
|
]
|
|
43495
44289
|
}
|
|
43496
|
-
)
|
|
43497
|
-
|
|
43498
|
-
|
|
43499
|
-
}
|
|
43500
|
-
)
|
|
43501
|
-
]
|
|
43502
|
-
}
|
|
43503
|
-
)
|
|
43504
|
-
]
|
|
43505
|
-
}
|
|
43506
|
-
),
|
|
43507
|
-
expanded && projectSessions.map((session2) => {
|
|
43508
|
-
const currentHoverId2 = sessionHoverId(session2.id);
|
|
43509
|
-
const agentLabel = configuredAgents.find((a) => a.id === session2.agentId)?.id || session2.agentId;
|
|
43510
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43511
|
-
HoverCard,
|
|
43512
|
-
{
|
|
43513
|
-
open: hoverId === currentHoverId2,
|
|
43514
|
-
onOpenChange: (open) => {
|
|
43515
|
-
if (open) {
|
|
43516
|
-
if (contextMenuId === null) setHoverId(currentHoverId2);
|
|
43517
|
-
} else if (hoverId === currentHoverId2 && hoveredTriggerIdRef.current !== currentHoverId2) {
|
|
43518
|
-
setHoverId(null);
|
|
43519
|
-
}
|
|
43520
|
-
},
|
|
43521
|
-
children: [
|
|
43522
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(HoverCardTrigger, { render: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}), delay: 0, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43523
|
-
ContextMenu,
|
|
43524
|
-
{
|
|
43525
|
-
onOpenChange: (open) => {
|
|
43526
|
-
setContextMenuId(open ? currentHoverId2 : null);
|
|
43527
|
-
if (open) {
|
|
43528
|
-
setHoverId(null);
|
|
43529
|
-
} else if (hoveredTriggerIdRef.current === currentHoverId2) {
|
|
43530
|
-
setHoverId(currentHoverId2);
|
|
43531
|
-
}
|
|
43532
|
-
},
|
|
43533
|
-
children: [
|
|
43534
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43535
|
-
ContextMenuTrigger,
|
|
43536
|
-
{
|
|
43537
|
-
render: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43538
|
-
"div",
|
|
43539
|
-
{
|
|
43540
|
-
onClick: () => handleSelectSession(session2),
|
|
43541
|
-
onPointerEnter: () => {
|
|
43542
|
-
hoveredTriggerIdRef.current = currentHoverId2;
|
|
43543
|
-
},
|
|
43544
|
-
onPointerLeave: () => {
|
|
43545
|
-
hoveredTriggerIdRef.current = null;
|
|
43546
|
-
},
|
|
43547
|
-
className: `group flex h-8 cursor-default items-center justify-between rounded-md pl-1.5 pr-2 text-xs font-normal transition-colors ${activeSessionId === session2.id ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground/95"} ${hoverId === currentHoverId2 || contextMenuId === currentHoverId2 ? "bg-sidebar-accent" : ""}`
|
|
43548
|
-
}
|
|
43549
|
-
),
|
|
43550
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43551
|
-
"div",
|
|
43552
|
-
{
|
|
43553
|
-
className: cn$1(
|
|
43554
|
-
"flex min-w-0 flex-1 items-center gap-1.5",
|
|
43555
|
-
session2.connectionStatus === "connected" ? "" : "opacity-60"
|
|
43556
|
-
),
|
|
43557
|
-
children: [
|
|
43558
|
-
(() => {
|
|
43559
|
-
const state = sessionStates.get(session2.id);
|
|
43560
|
-
const hasAskUser = (state?.askUserRequests?.length ?? 0) > 0;
|
|
43561
|
-
const isStreaming = session2.isStreaming;
|
|
43562
|
-
const completedStatus = state?.completedStatus;
|
|
43563
|
-
if (hasAskUser) {
|
|
43564
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircleQuestionMark, { className: "size-3 shrink-0 text-sky-500" });
|
|
43565
|
-
}
|
|
43566
|
-
if (isStreaming) {
|
|
43567
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(LoaderCircle, { className: "size-3 animate-spin shrink-0" });
|
|
43568
|
-
}
|
|
43569
|
-
if (completedStatus === "success" || state?.completedAt && !completedStatus) {
|
|
43570
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Check, { className: "size-3 shrink-0 text-green-500" });
|
|
43571
|
-
}
|
|
43572
|
-
if (completedStatus === "error") {
|
|
43573
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TriangleAlert, { className: "size-3 shrink-0 text-yellow-500" });
|
|
43574
|
-
}
|
|
43575
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "size-3 shrink-0" });
|
|
43576
|
-
})(),
|
|
43577
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43578
|
-
Badge,
|
|
43579
|
-
{
|
|
43580
|
-
variant: "outline",
|
|
43581
|
-
className: "px-1 -ml-0.5 text-[10px] uppercase select-none max-w-24",
|
|
43582
|
-
children: agentLabel
|
|
43583
|
-
}
|
|
43584
|
-
),
|
|
43585
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "min-w-0 flex-1 truncate leading-normal select-none", children: session2.title || t("sidebar.newChat", "New Chat") }),
|
|
43586
|
-
activeIlinkSessionId === session2.id && /* @__PURE__ */ jsxRuntimeExports.jsx(MessageCircle, { className: "size-3 shrink-0 text-green-500" })
|
|
43587
|
-
]
|
|
43588
|
-
}
|
|
43589
|
-
)
|
|
43590
|
-
}
|
|
43591
|
-
),
|
|
43592
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuContent, { className: "w-48", children: [
|
|
43593
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContextMenuItem, { onClick: () => handleRenameSession(session2), children: [
|
|
43594
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Pencil, { className: "size-3" }),
|
|
43595
|
-
t("sidebar.rename")
|
|
43596
|
-
] }),
|
|
43597
|
-
ilinkStatus.connected && activeIlinkSessionId !== session2.id && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43598
|
-
ContextMenuItem,
|
|
43599
|
-
{
|
|
43600
|
-
onClick: () => {
|
|
43601
|
-
request.setActiveIlinkSession({ sessionId: session2.id }).catch(() => {
|
|
43602
|
-
});
|
|
43603
|
-
},
|
|
43604
|
-
children: [
|
|
43605
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(MessageCircle, { className: "size-3" }),
|
|
43606
|
-
t("sidebar.ilinkSetActive", "Set as WeChat Active")
|
|
43607
|
-
]
|
|
43608
|
-
}
|
|
43609
|
-
),
|
|
43610
|
-
ilinkStatus.connected && activeIlinkSessionId === session2.id && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43611
|
-
ContextMenuItem,
|
|
43612
|
-
{
|
|
43613
|
-
onClick: () => {
|
|
43614
|
-
request.setActiveIlinkSession({ sessionId: "" }).catch(() => {
|
|
43615
|
-
});
|
|
43616
|
-
},
|
|
43617
|
-
children: [
|
|
43618
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(MessageCircle, { className: "size-3 text-green-500" }),
|
|
43619
|
-
t("sidebar.ilinkUnsetActive", "Unset WeChat Active")
|
|
43620
|
-
]
|
|
43621
|
-
}
|
|
43622
|
-
),
|
|
43623
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuSeparator, {}),
|
|
43624
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43625
|
-
ContextMenuItem,
|
|
43626
|
-
{
|
|
43627
|
-
variant: "destructive",
|
|
43628
|
-
onClick: () => void handleDeleteSession(session2),
|
|
43629
|
-
children: [
|
|
43630
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Trash2, { className: "size-3" }),
|
|
43631
|
-
t("sidebar.delete")
|
|
43632
|
-
]
|
|
43633
|
-
}
|
|
43634
|
-
)
|
|
43635
|
-
] })
|
|
43636
|
-
]
|
|
43637
|
-
}
|
|
43638
|
-
) }),
|
|
43639
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43640
|
-
HoverCardContent,
|
|
43641
|
-
{
|
|
43642
|
-
side: "right",
|
|
43643
|
-
align: "start",
|
|
43644
|
-
sideOffset: 12,
|
|
43645
|
-
alignOffset: 0,
|
|
43646
|
-
className: "max-w-60 min-w-48 w-auto p-3",
|
|
43647
|
-
onPointerEnter: () => setActionsOpenId(currentHoverId2),
|
|
43648
|
-
children: [
|
|
43649
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
43650
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium leading-snug -mt-0.5", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: session2.title || t("sidebar.newChat", "New Chat") }) }),
|
|
43651
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
43652
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Bot, { className: "size-3 shrink-0" }),
|
|
43653
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate", children: session2.agentId })
|
|
43654
|
-
] }),
|
|
43655
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
43656
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Folder, { className: "size-3 shrink-0" }),
|
|
43657
|
-
isWebUI ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate", children: project.title }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43658
|
-
"button",
|
|
43659
|
-
{
|
|
43660
|
-
type: "button",
|
|
43661
|
-
onClick: () => void handleRevealProjectInFinder(project),
|
|
43662
|
-
title: project.cwd,
|
|
43663
|
-
className: "min-w-0 flex-1 truncate text-left transition-colors hover:text-foreground",
|
|
43664
|
-
children: project.title
|
|
43665
|
-
}
|
|
43666
|
-
)
|
|
43667
|
-
] }),
|
|
43668
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
43669
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Clock, { className: "size-3 shrink-0" }),
|
|
43670
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "truncate", children: [
|
|
43671
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "mr-1", children: [
|
|
43672
|
-
t("sidebar.updated", "Updated"),
|
|
43673
|
-
":"
|
|
43674
|
-
] }),
|
|
43675
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: formatRelativeTime(session2.updatedAt, i18n.language) })
|
|
43676
|
-
] })
|
|
43677
|
-
] }),
|
|
43678
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
43679
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CalendarDays, { className: "size-3 shrink-0" }),
|
|
43680
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "truncate", children: [
|
|
43681
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "mr-1", children: [
|
|
43682
|
-
t("sidebar.created", "Created"),
|
|
43683
|
-
":"
|
|
43684
|
-
] }),
|
|
43685
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: formatRelativeTime(session2.createdAt, i18n.language) })
|
|
43686
|
-
] })
|
|
43687
|
-
] })
|
|
43688
|
-
] }),
|
|
43689
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43690
|
-
"div",
|
|
43691
|
-
{
|
|
43692
|
-
className: cn$1(
|
|
43693
|
-
"-mx-2 -my-1 grid transition-[grid-template-rows] duration-200 ease-out",
|
|
43694
|
-
actionsOpenId === currentHoverId2 ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
43695
|
-
),
|
|
43696
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "min-h-0 mt-2 -mb-1 overflow-hidden", children: [
|
|
43697
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Separator, { className: "my-1" }),
|
|
43698
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col", children: [
|
|
44290
|
+
),
|
|
44291
|
+
session2.connectionStatus === "connected" && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
44292
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuSeparator, {}),
|
|
43699
44293
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43700
|
-
|
|
43701
|
-
{
|
|
43702
|
-
type: "button",
|
|
43703
|
-
onClick: () => handleRenameSession(session2),
|
|
43704
|
-
className: "flex h-7 items-center gap-2 rounded-md px-2 text-xs text-foreground transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
43705
|
-
children: [
|
|
43706
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Pencil, { className: "size-3 shrink-0" }),
|
|
43707
|
-
t("sidebar.rename")
|
|
43708
|
-
]
|
|
43709
|
-
}
|
|
43710
|
-
),
|
|
43711
|
-
ilinkStatus.connected && activeIlinkSessionId !== session2.id && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43712
|
-
"button",
|
|
43713
|
-
{
|
|
43714
|
-
type: "button",
|
|
43715
|
-
onClick: () => {
|
|
43716
|
-
request.setActiveIlinkSession({ sessionId: session2.id }).catch(() => {
|
|
43717
|
-
});
|
|
43718
|
-
},
|
|
43719
|
-
className: "flex h-7 items-center gap-2 rounded-md px-2 text-xs text-foreground transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
43720
|
-
children: [
|
|
43721
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(MessageCircle, { className: "size-3 shrink-0" }),
|
|
43722
|
-
t("sidebar.ilinkSetActive", "Set as WeChat Active")
|
|
43723
|
-
]
|
|
43724
|
-
}
|
|
43725
|
-
),
|
|
43726
|
-
ilinkStatus.connected && activeIlinkSessionId === session2.id && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43727
|
-
"button",
|
|
44294
|
+
ContextMenuItem,
|
|
43728
44295
|
{
|
|
43729
|
-
|
|
43730
|
-
|
|
43731
|
-
request.setActiveIlinkSession({ sessionId: "" }).catch(() => {
|
|
43732
|
-
});
|
|
43733
|
-
},
|
|
43734
|
-
className: "flex h-7 items-center gap-2 rounded-md px-2 text-xs text-foreground transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
44296
|
+
onClick: () => void handleRestartSession(session2),
|
|
44297
|
+
disabled: sessionAction !== null,
|
|
43735
44298
|
children: [
|
|
43736
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43737
|
-
t("sidebar.
|
|
44299
|
+
sessionAction?.id === session2.id && sessionAction.type === "restart" ? /* @__PURE__ */ jsxRuntimeExports.jsx(LoaderCircle, { className: "size-3 animate-spin" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(RefreshCw, { className: "size-3" }),
|
|
44300
|
+
t("sidebar.restartSession", "Restart Session")
|
|
43738
44301
|
]
|
|
43739
44302
|
}
|
|
43740
44303
|
),
|
|
43741
44304
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43742
|
-
|
|
44305
|
+
ContextMenuItem,
|
|
43743
44306
|
{
|
|
43744
|
-
|
|
43745
|
-
|
|
43746
|
-
className: "flex h-7 items-center gap-2 rounded-md px-2 text-xs text-destructive transition-colors hover:bg-destructive/10",
|
|
44307
|
+
onClick: () => void handleCloseSession(session2),
|
|
44308
|
+
disabled: sessionAction !== null,
|
|
43747
44309
|
children: [
|
|
43748
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43749
|
-
t("sidebar.
|
|
44310
|
+
sessionAction?.id === session2.id && sessionAction.type === "close" ? /* @__PURE__ */ jsxRuntimeExports.jsx(LoaderCircle, { className: "size-3 animate-spin" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Power, { className: "size-3" }),
|
|
44311
|
+
sessionAction?.id === session2.id && sessionAction.type === "close" ? t("sidebar.closingSession", "Closing…") : t("sidebar.closeSession", "Close Session")
|
|
43750
44312
|
]
|
|
43751
44313
|
}
|
|
43752
44314
|
)
|
|
44315
|
+
] }),
|
|
44316
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ContextMenuSeparator, {}),
|
|
44317
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44318
|
+
ContextMenuItem,
|
|
44319
|
+
{
|
|
44320
|
+
variant: "destructive",
|
|
44321
|
+
onClick: () => void handleDeleteSession(session2),
|
|
44322
|
+
disabled: sessionAction !== null,
|
|
44323
|
+
children: [
|
|
44324
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Trash2, { className: "size-3" }),
|
|
44325
|
+
t("sidebar.deleteSession")
|
|
44326
|
+
]
|
|
44327
|
+
}
|
|
44328
|
+
)
|
|
44329
|
+
] })
|
|
44330
|
+
]
|
|
44331
|
+
}
|
|
44332
|
+
) }),
|
|
44333
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44334
|
+
HoverCardContent,
|
|
44335
|
+
{
|
|
44336
|
+
side: "right",
|
|
44337
|
+
align: "start",
|
|
44338
|
+
sideOffset: 12,
|
|
44339
|
+
alignOffset: 0,
|
|
44340
|
+
className: "w-54 max-w-[20vw] p-3",
|
|
44341
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
44342
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium leading-snug line-clamp-2 wrap-break-word", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: session2.title || t("sidebar.newSession", "New Session") }) }),
|
|
44343
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
44344
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Bot, { className: "size-3 shrink-0" }),
|
|
44345
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate", children: session2.agentId })
|
|
44346
|
+
] }),
|
|
44347
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
44348
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Folder, { className: "size-3 shrink-0" }),
|
|
44349
|
+
isWebUI ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate", children: project.title }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44350
|
+
"button",
|
|
44351
|
+
{
|
|
44352
|
+
type: "button",
|
|
44353
|
+
onClick: () => void handleRevealProjectInFinder(project),
|
|
44354
|
+
title: project.cwd,
|
|
44355
|
+
className: "min-w-0 flex-1 truncate text-left transition-colors hover:text-foreground",
|
|
44356
|
+
children: project.title
|
|
44357
|
+
}
|
|
44358
|
+
)
|
|
44359
|
+
] }),
|
|
44360
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
44361
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Clock, { className: "size-3 shrink-0" }),
|
|
44362
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "truncate", children: [
|
|
44363
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "mr-1", children: [
|
|
44364
|
+
t("sidebar.updated", "Updated"),
|
|
44365
|
+
":"
|
|
44366
|
+
] }),
|
|
44367
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: formatRelativeTime(session2.updatedAt, i18n.language) })
|
|
44368
|
+
] })
|
|
44369
|
+
] }),
|
|
44370
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
44371
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CalendarDays, { className: "size-3 shrink-0" }),
|
|
44372
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "truncate", children: [
|
|
44373
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "mr-1", children: [
|
|
44374
|
+
t("sidebar.created", "Created"),
|
|
44375
|
+
":"
|
|
44376
|
+
] }),
|
|
44377
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: formatRelativeTime(session2.createdAt, i18n.language) })
|
|
43753
44378
|
] })
|
|
44379
|
+
] }),
|
|
44380
|
+
ilinkStatus.connected && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground py-px", children: [
|
|
44381
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44382
|
+
MessageCircle,
|
|
44383
|
+
{
|
|
44384
|
+
className: cn$1(
|
|
44385
|
+
"size-3 shrink-0",
|
|
44386
|
+
activeIlinkSessionId === session2.id && "text-green-500"
|
|
44387
|
+
)
|
|
44388
|
+
}
|
|
44389
|
+
),
|
|
44390
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44391
|
+
"button",
|
|
44392
|
+
{
|
|
44393
|
+
type: "button",
|
|
44394
|
+
onClick: () => void handleSetActiveIlinkSession(
|
|
44395
|
+
activeIlinkSessionId === session2.id ? "" : session2.id
|
|
44396
|
+
),
|
|
44397
|
+
className: "min-w-0 flex-1 truncate text-left transition-colors hover:text-foreground",
|
|
44398
|
+
children: t(
|
|
44399
|
+
activeIlinkSessionId === session2.id ? "sidebar.ilinkActiveStatus" : "sidebar.ilinkInactiveStatus",
|
|
44400
|
+
activeIlinkSessionId === session2.id ? "WeChat Active" : "Not WeChat Active"
|
|
44401
|
+
)
|
|
44402
|
+
}
|
|
44403
|
+
)
|
|
43754
44404
|
] })
|
|
43755
|
-
}
|
|
43756
|
-
|
|
43757
|
-
|
|
43758
|
-
|
|
43759
|
-
|
|
43760
|
-
|
|
43761
|
-
|
|
43762
|
-
|
|
43763
|
-
);
|
|
44405
|
+
] })
|
|
44406
|
+
}
|
|
44407
|
+
)
|
|
44408
|
+
]
|
|
44409
|
+
},
|
|
44410
|
+
session2.id
|
|
44411
|
+
);
|
|
44412
|
+
})
|
|
44413
|
+
] }, project.id);
|
|
43764
44414
|
})
|
|
43765
|
-
|
|
43766
|
-
|
|
44415
|
+
}
|
|
44416
|
+
) }),
|
|
43767
44417
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-auto border-t border-border", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43768
44418
|
Button,
|
|
43769
44419
|
{
|
|
@@ -43973,9 +44623,10 @@ function Sidebar() {
|
|
|
43973
44623
|
Button,
|
|
43974
44624
|
{
|
|
43975
44625
|
size: "sm",
|
|
43976
|
-
className: "h-8 text-xs",
|
|
44626
|
+
className: "h-8 text-xs focus:border-ring focus:ring-1 focus:ring-ring/50",
|
|
43977
44627
|
variant: "default",
|
|
43978
44628
|
disabled: creating,
|
|
44629
|
+
autoFocus: true,
|
|
43979
44630
|
onClick: handleCreateNewSession,
|
|
43980
44631
|
children: [
|
|
43981
44632
|
creating && /* @__PURE__ */ jsxRuntimeExports.jsx(LoaderCircle, { className: "size-3 animate-spin" }),
|
|
@@ -44203,7 +44854,7 @@ function Welcome() {
|
|
|
44203
44854
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "absolute bottom-3 right-4 text-[11px] text-muted-foreground/40 z-10 pointer-events-none", children: [
|
|
44204
44855
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
44205
44856
|
"v",
|
|
44206
|
-
"0.1.
|
|
44857
|
+
"0.1.54"
|
|
44207
44858
|
] }),
|
|
44208
44859
|
false
|
|
44209
44860
|
] }),
|
|
@@ -44365,59 +45016,63 @@ function Welcome() {
|
|
|
44365
45016
|
function lazyNamed(loader, name) {
|
|
44366
45017
|
return reactExports.lazy(() => loader().then((mod) => ({ default: mod[name] })));
|
|
44367
45018
|
}
|
|
44368
|
-
const Session = lazyNamed(() => __vitePreload(() => import("./session-
|
|
45019
|
+
const Session = lazyNamed(() => __vitePreload(() => import("./session-C_1BpGhU.js"), true ? __vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]) : void 0, import.meta.url), "Session");
|
|
44369
45020
|
const SettingsLayout = lazyNamed(
|
|
44370
|
-
() => __vitePreload(() => import("./settings-layout-
|
|
45021
|
+
() => __vitePreload(() => import("./settings-layout-SBihzFfb.js"), true ? __vite__mapDeps([18,19,10,14]) : void 0, import.meta.url),
|
|
44371
45022
|
"SettingsLayout"
|
|
44372
45023
|
);
|
|
44373
45024
|
const SettingsGeneral = lazyNamed(
|
|
44374
|
-
() => __vitePreload(() => import("./settings-general-
|
|
45025
|
+
() => __vitePreload(() => import("./settings-general-cHqsKFFa.js"), true ? __vite__mapDeps([20,21]) : void 0, import.meta.url),
|
|
44375
45026
|
"SettingsGeneral"
|
|
44376
45027
|
);
|
|
45028
|
+
const SettingsShortcuts = lazyNamed(
|
|
45029
|
+
() => __vitePreload(() => import("./settings-shortcuts-C1s7YIMj.js"), true ? __vite__mapDeps([22,19,13,15]) : void 0, import.meta.url),
|
|
45030
|
+
"SettingsShortcuts"
|
|
45031
|
+
);
|
|
44377
45032
|
const SettingsAgents = lazyNamed(
|
|
44378
|
-
() => __vitePreload(() => import("./settings-agents-
|
|
45033
|
+
() => __vitePreload(() => import("./settings-agents-BtuYXQ1V.js"), true ? __vite__mapDeps([23,24,25,26,27,21,11,9,16,28]) : void 0, import.meta.url),
|
|
44379
45034
|
"SettingsAgents"
|
|
44380
45035
|
);
|
|
44381
45036
|
const SettingsMcp = lazyNamed(
|
|
44382
|
-
() => __vitePreload(() => import("./settings-mcp-
|
|
45037
|
+
() => __vitePreload(() => import("./settings-mcp-Co88s-0y.js"), true ? __vite__mapDeps([29,24,25,26,27,21,9,16]) : void 0, import.meta.url),
|
|
44383
45038
|
"SettingsMcp"
|
|
44384
45039
|
);
|
|
44385
45040
|
const SettingsWebUI = lazyNamed(
|
|
44386
|
-
() => __vitePreload(() => import("./settings-webui-
|
|
45041
|
+
() => __vitePreload(() => import("./settings-webui-Bj9dJDcm.js"), true ? __vite__mapDeps([30,24]) : void 0, import.meta.url),
|
|
44387
45042
|
"SettingsWebUI"
|
|
44388
45043
|
);
|
|
44389
45044
|
const SettingsILink = lazyNamed(
|
|
44390
|
-
() => __vitePreload(() => import("./settings-ilink-
|
|
45045
|
+
() => __vitePreload(() => import("./settings-ilink-BR1Vd9t9.js"), true ? __vite__mapDeps([31,24,7]) : void 0, import.meta.url),
|
|
44391
45046
|
"SettingsILink"
|
|
44392
45047
|
);
|
|
44393
45048
|
const SettingsSnippets = lazyNamed(
|
|
44394
|
-
() => __vitePreload(() => import("./settings-snippets-
|
|
45049
|
+
() => __vitePreload(() => import("./settings-snippets-DGgI6mxm.js"), true ? __vite__mapDeps([32,26,27,21,9,25,16]) : void 0, import.meta.url),
|
|
44395
45050
|
"SettingsSnippets"
|
|
44396
45051
|
);
|
|
44397
45052
|
const SettingsMemory = lazyNamed(
|
|
44398
|
-
() => __vitePreload(() => import("./settings-memory-
|
|
45053
|
+
() => __vitePreload(() => import("./settings-memory-CNH9gHYC.js"), true ? __vite__mapDeps([33,4]) : void 0, import.meta.url),
|
|
44399
45054
|
"SettingsMemory"
|
|
44400
45055
|
);
|
|
44401
45056
|
const SettingsImageGeneration = lazyNamed(
|
|
44402
|
-
() => __vitePreload(() => import("./settings-image-generation-
|
|
45057
|
+
() => __vitePreload(() => import("./settings-image-generation-MUHYnpbm.js"), true ? __vite__mapDeps([34,26,27,21,16,11,9]) : void 0, import.meta.url),
|
|
44403
45058
|
"SettingsImageGeneration"
|
|
44404
45059
|
);
|
|
44405
45060
|
const SettingsSpeechToText = lazyNamed(
|
|
44406
|
-
() => __vitePreload(() => import("./settings-speech-to-text-
|
|
45061
|
+
() => __vitePreload(() => import("./settings-speech-to-text-CV0xM7yz.js"), true ? __vite__mapDeps([35,26,21,24,9,16]) : void 0, import.meta.url),
|
|
44407
45062
|
"SettingsSpeechToText"
|
|
44408
45063
|
);
|
|
44409
|
-
const SkillsLayout = lazyNamed(() => __vitePreload(() => import("./skills-layout-
|
|
45064
|
+
const SkillsLayout = lazyNamed(() => __vitePreload(() => import("./skills-layout-DZFDa1cw.js"), true ? __vite__mapDeps([36,37]) : void 0, import.meta.url), "SkillsLayout");
|
|
44410
45065
|
const SkillsInstalled = lazyNamed(
|
|
44411
|
-
() => __vitePreload(() => import("./skills-installed-
|
|
45066
|
+
() => __vitePreload(() => import("./skills-installed-Bhd5a33I.js"), true ? __vite__mapDeps([38,3,5,6]) : void 0, import.meta.url),
|
|
44412
45067
|
"SkillsInstalled"
|
|
44413
45068
|
);
|
|
44414
45069
|
const SkillsSh = lazyNamed(
|
|
44415
|
-
() => __vitePreload(() => import("./skills-skills-sh-
|
|
45070
|
+
() => __vitePreload(() => import("./skills-skills-sh-DF59nekm.js"), true ? __vite__mapDeps([39,5,8,37]) : void 0, import.meta.url),
|
|
44416
45071
|
"SkillsSh"
|
|
44417
45072
|
);
|
|
44418
|
-
const Automation = lazyNamed(() => __vitePreload(() => import("./automation-
|
|
44419
|
-
const Schedule = lazyNamed(() => __vitePreload(() => import("./schedule-
|
|
44420
|
-
const Task = lazyNamed(() => __vitePreload(() => import("./task-
|
|
45073
|
+
const Automation = lazyNamed(() => __vitePreload(() => import("./automation-CQAOpWYp.js"), true ? __vite__mapDeps([40,5,41,27,21,16,1]) : void 0, import.meta.url), "Automation");
|
|
45074
|
+
const Schedule = lazyNamed(() => __vitePreload(() => import("./schedule-BtuArq_x.js"), true ? __vite__mapDeps([42,17,41,27,21,15,1,6,28]) : void 0, import.meta.url), "Schedule");
|
|
45075
|
+
const Task = lazyNamed(() => __vitePreload(() => import("./task-C7tCZ6e3.js"), true ? __vite__mapDeps([43,17,3,2,4,5,6,7,8,9,10,11,12]) : void 0, import.meta.url), "Task");
|
|
44421
45076
|
function SessionWrapper() {
|
|
44422
45077
|
const { sessionId } = useParams();
|
|
44423
45078
|
const sessionInfo = useAppStore((s) => s.sessions.find((x2) => x2.id === sessionId));
|
|
@@ -44445,6 +45100,7 @@ function AppRouter() {
|
|
|
44445
45100
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "/session-view/:sessionId", element: /* @__PURE__ */ jsxRuntimeExports.jsx(SessionWrapper, {}) }),
|
|
44446
45101
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Route, { path: "/settings", element: /* @__PURE__ */ jsxRuntimeExports.jsx(SettingsLayout, {}), children: [
|
|
44447
45102
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "general", element: /* @__PURE__ */ jsxRuntimeExports.jsx(SettingsGeneral, {}) }),
|
|
45103
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "shortcuts", element: /* @__PURE__ */ jsxRuntimeExports.jsx(SettingsShortcuts, {}) }),
|
|
44448
45104
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "agents", element: /* @__PURE__ */ jsxRuntimeExports.jsx(SettingsAgents, {}) }),
|
|
44449
45105
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "mcp", element: /* @__PURE__ */ jsxRuntimeExports.jsx(SettingsMcp, {}) }),
|
|
44450
45106
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Route, { path: "webui", element: /* @__PURE__ */ jsxRuntimeExports.jsx(SettingsWebUI, {}) }),
|
|
@@ -44465,8 +45121,8 @@ function AppRouter() {
|
|
|
44465
45121
|
"div",
|
|
44466
45122
|
{
|
|
44467
45123
|
className: cn$1(
|
|
44468
|
-
"flex h-12 w-12 absolute z-10 top-0 items-center justify-center transition-
|
|
44469
|
-
sidebarOpen ? "left-49" : showMacTrafficLightSpace ? "left-16" : "left-0"
|
|
45124
|
+
"flex h-12 w-12 absolute z-10 top-0 items-center justify-center transition-all duration-200",
|
|
45125
|
+
sidebarOpen ? "left-49 -ml-px" : showMacTrafficLightSpace ? "left-16" : "left-0"
|
|
44470
45126
|
),
|
|
44471
45127
|
style: { WebkitAppRegion: "no-drag" },
|
|
44472
45128
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -44486,6 +45142,181 @@ function AppRouter() {
|
|
|
44486
45142
|
)
|
|
44487
45143
|
] });
|
|
44488
45144
|
}
|
|
45145
|
+
const COMMAND_DEFINITIONS = [
|
|
45146
|
+
{
|
|
45147
|
+
id: "focus.chatInput",
|
|
45148
|
+
category: "navigation",
|
|
45149
|
+
titleKey: "commands.focusChatInput.title",
|
|
45150
|
+
descriptionKey: "commands.focusChatInput.description",
|
|
45151
|
+
defaultShortcuts: ["Mod+Shift+I"],
|
|
45152
|
+
ignoreInputs: false,
|
|
45153
|
+
focusTargets: ["chat-input", "ask-user-dialog"]
|
|
45154
|
+
},
|
|
45155
|
+
{
|
|
45156
|
+
id: "focus.chatArea",
|
|
45157
|
+
category: "navigation",
|
|
45158
|
+
titleKey: "commands.focusChatArea.title",
|
|
45159
|
+
descriptionKey: "commands.focusChatArea.description",
|
|
45160
|
+
defaultShortcuts: ["Mod+Shift+M"],
|
|
45161
|
+
ignoreInputs: false,
|
|
45162
|
+
focusTargets: ["chat-area"]
|
|
45163
|
+
},
|
|
45164
|
+
{
|
|
45165
|
+
id: "focus.fileTree",
|
|
45166
|
+
category: "navigation",
|
|
45167
|
+
titleKey: "commands.focusFileTree.title",
|
|
45168
|
+
descriptionKey: "commands.focusFileTree.description",
|
|
45169
|
+
defaultShortcuts: ["Mod+Shift+D"],
|
|
45170
|
+
ignoreInputs: false,
|
|
45171
|
+
focusTargets: ["file-tree"]
|
|
45172
|
+
},
|
|
45173
|
+
{
|
|
45174
|
+
id: "focus.terminalList",
|
|
45175
|
+
category: "navigation",
|
|
45176
|
+
titleKey: "commands.focusTerminalList.title",
|
|
45177
|
+
descriptionKey: "commands.focusTerminalList.description",
|
|
45178
|
+
defaultShortcuts: ["Mod+Shift+T"],
|
|
45179
|
+
ignoreInputs: false,
|
|
45180
|
+
focusTargets: ["terminal-list"]
|
|
45181
|
+
},
|
|
45182
|
+
{
|
|
45183
|
+
id: "focus.sidebarSessions",
|
|
45184
|
+
category: "navigation",
|
|
45185
|
+
titleKey: "commands.focusSidebarSessions.title",
|
|
45186
|
+
descriptionKey: "commands.focusSidebarSessions.description",
|
|
45187
|
+
defaultShortcuts: ["Mod+Shift+E"],
|
|
45188
|
+
ignoreInputs: false,
|
|
45189
|
+
focusTargets: ["sidebar-sessions"]
|
|
45190
|
+
}
|
|
45191
|
+
];
|
|
45192
|
+
function createAppCommands(focus) {
|
|
45193
|
+
return COMMAND_DEFINITIONS.map((definition) => ({
|
|
45194
|
+
...definition,
|
|
45195
|
+
execute: () => {
|
|
45196
|
+
for (const target of definition.focusTargets ?? []) {
|
|
45197
|
+
if (focus(target)) break;
|
|
45198
|
+
}
|
|
45199
|
+
}
|
|
45200
|
+
}));
|
|
45201
|
+
}
|
|
45202
|
+
const MODIFIER_ORDER = ["Mod", "Ctrl", "Alt", "Shift", "Meta"];
|
|
45203
|
+
const MODIFIER_ALIASES = {
|
|
45204
|
+
alt: "Alt",
|
|
45205
|
+
control: "Ctrl",
|
|
45206
|
+
ctrl: "Ctrl",
|
|
45207
|
+
meta: "Meta",
|
|
45208
|
+
cmd: "Mod",
|
|
45209
|
+
command: "Mod",
|
|
45210
|
+
mod: "Mod",
|
|
45211
|
+
option: "Alt",
|
|
45212
|
+
shift: "Shift"
|
|
45213
|
+
};
|
|
45214
|
+
const KEY_ALIASES = {
|
|
45215
|
+
esc: "Escape",
|
|
45216
|
+
escape: "Escape",
|
|
45217
|
+
enter: "Enter",
|
|
45218
|
+
return: "Enter",
|
|
45219
|
+
tab: "Tab",
|
|
45220
|
+
space: "Space",
|
|
45221
|
+
backspace: "Backspace",
|
|
45222
|
+
delete: "Delete",
|
|
45223
|
+
up: "ArrowUp",
|
|
45224
|
+
down: "ArrowDown",
|
|
45225
|
+
left: "ArrowLeft",
|
|
45226
|
+
right: "ArrowRight",
|
|
45227
|
+
home: "Home",
|
|
45228
|
+
end: "End",
|
|
45229
|
+
pageup: "PageUp",
|
|
45230
|
+
"page-up": "PageUp",
|
|
45231
|
+
pagedown: "PageDown",
|
|
45232
|
+
"page-down": "PageDown",
|
|
45233
|
+
plus: "Plus",
|
|
45234
|
+
"+": "Plus",
|
|
45235
|
+
minus: "Minus",
|
|
45236
|
+
"-": "Minus"
|
|
45237
|
+
};
|
|
45238
|
+
const KEY_TOKENS_BY_CODE = {
|
|
45239
|
+
Minus: "Minus"
|
|
45240
|
+
};
|
|
45241
|
+
function normalizeKey(key) {
|
|
45242
|
+
const trimmed = key.trim();
|
|
45243
|
+
const alias = KEY_ALIASES[trimmed.toLowerCase()];
|
|
45244
|
+
if (alias) return alias;
|
|
45245
|
+
if (/^key[a-z]$/i.test(trimmed)) return trimmed.slice(3).toUpperCase();
|
|
45246
|
+
if (/^digit\d$/i.test(trimmed)) return trimmed.slice(5);
|
|
45247
|
+
if (/^f\d{1,2}$/i.test(trimmed)) return trimmed.toUpperCase();
|
|
45248
|
+
return trimmed.length === 1 ? trimmed.toUpperCase() : trimmed;
|
|
45249
|
+
}
|
|
45250
|
+
function normalizeShortcut(shortcut) {
|
|
45251
|
+
const parts = shortcut.split("+").map((part) => part.trim()).filter(Boolean);
|
|
45252
|
+
const keyPart = parts.pop();
|
|
45253
|
+
if (!keyPart) return "";
|
|
45254
|
+
const modifiers = /* @__PURE__ */ new Set();
|
|
45255
|
+
for (const part of parts) {
|
|
45256
|
+
const modifier = MODIFIER_ALIASES[part.toLowerCase()];
|
|
45257
|
+
if (modifier) modifiers.add(modifier);
|
|
45258
|
+
}
|
|
45259
|
+
const orderedModifiers = MODIFIER_ORDER.filter((modifier) => modifiers.has(modifier));
|
|
45260
|
+
return [...orderedModifiers, normalizeKey(keyPart)].join("+");
|
|
45261
|
+
}
|
|
45262
|
+
function keyFromKeyboardEvent(event) {
|
|
45263
|
+
if (/^Key[A-Z]$/i.test(event.code)) return event.code.slice(3).toUpperCase();
|
|
45264
|
+
if (/^Digit\d$/.test(event.code)) return event.code.slice(5);
|
|
45265
|
+
if (/^F\d{1,2}$/.test(event.code)) return event.code.toUpperCase();
|
|
45266
|
+
if (event.key === " ") return "Space";
|
|
45267
|
+
if (event.key === "+") return "Plus";
|
|
45268
|
+
if (event.key === "-") return "Minus";
|
|
45269
|
+
return KEY_TOKENS_BY_CODE[event.code] ?? normalizeKey(event.key);
|
|
45270
|
+
}
|
|
45271
|
+
function shortcutModifiersFromEvent(event, isMac) {
|
|
45272
|
+
const modifiers = [];
|
|
45273
|
+
if (isMac ? event.metaKey : event.ctrlKey) modifiers.push("Mod");
|
|
45274
|
+
if (isMac ? event.ctrlKey : event.metaKey) modifiers.push(isMac ? "Ctrl" : "Meta");
|
|
45275
|
+
if (event.altKey) modifiers.push("Alt");
|
|
45276
|
+
if (event.shiftKey) modifiers.push("Shift");
|
|
45277
|
+
return modifiers;
|
|
45278
|
+
}
|
|
45279
|
+
function shortcutPreviewFromKeyboardEvent(event, isMac) {
|
|
45280
|
+
if (event.key === "=") return null;
|
|
45281
|
+
const modifiers = shortcutModifiersFromEvent(event, isMac);
|
|
45282
|
+
const isModifierKey = ["Control", "Meta", "Alt", "Shift"].includes(event.key);
|
|
45283
|
+
const key = isModifierKey ? null : keyFromKeyboardEvent(event);
|
|
45284
|
+
if (modifiers.length === 0) return null;
|
|
45285
|
+
return normalizeShortcut([...modifiers, ...key ? [key] : []].join("+"));
|
|
45286
|
+
}
|
|
45287
|
+
function shortcutFromKeyboardEvent(event, isMac) {
|
|
45288
|
+
if (["Control", "Meta", "Alt", "Shift"].includes(event.key)) return null;
|
|
45289
|
+
if (shortcutModifiersFromEvent(event, isMac).length === 0) return null;
|
|
45290
|
+
return shortcutPreviewFromKeyboardEvent(event, isMac);
|
|
45291
|
+
}
|
|
45292
|
+
function getCommandShortcuts(command, overrides) {
|
|
45293
|
+
const override = overrides[command.id];
|
|
45294
|
+
return (override ?? command.defaultShortcuts).map(normalizeShortcut).filter(Boolean);
|
|
45295
|
+
}
|
|
45296
|
+
function findShortcutConflicts(commands2, overrides) {
|
|
45297
|
+
const commandsByShortcut = /* @__PURE__ */ new Map();
|
|
45298
|
+
for (const command of commands2) {
|
|
45299
|
+
for (const shortcut of getCommandShortcuts(command, overrides)) {
|
|
45300
|
+
const commandIds = commandsByShortcut.get(shortcut) ?? [];
|
|
45301
|
+
commandIds.push(command.id);
|
|
45302
|
+
commandsByShortcut.set(shortcut, commandIds);
|
|
45303
|
+
}
|
|
45304
|
+
}
|
|
45305
|
+
return [...commandsByShortcut.entries()].filter(([, commandIds]) => commandIds.length > 1).map(([shortcut, commandIds]) => ({ shortcut, commandIds }));
|
|
45306
|
+
}
|
|
45307
|
+
function useCommandShortcuts(commands2, overrides) {
|
|
45308
|
+
const shortcuts = reactExports.useMemo(
|
|
45309
|
+
() => commands2.flatMap(
|
|
45310
|
+
(command) => getCommandShortcuts(command, overrides).map((shortcut) => ({
|
|
45311
|
+
shortcut,
|
|
45312
|
+
handler: command.execute,
|
|
45313
|
+
ignoreInputs: command.ignoreInputs
|
|
45314
|
+
}))
|
|
45315
|
+
),
|
|
45316
|
+
[commands2, overrides]
|
|
45317
|
+
);
|
|
45318
|
+
useKeyboardShortcuts(shortcuts);
|
|
45319
|
+
}
|
|
44489
45320
|
var h = { name: "soft", baseFreq: 440, noiseColor: "pink", oscType: "sine", filterFreq: 3e3, filterQ: 2, attack: 2e-3, decay: 1, brightness: 2e3 }, D$1 = { name: "crisp", baseFreq: 523, noiseColor: "white", oscType: "triangle", filterFreq: 5e3, filterQ: 3, attack: 15e-4, decay: 0.6, brightness: 4e3 }, L$1 = { name: "arcade", baseFreq: 392, noiseColor: "white", oscType: "square", filterFreq: 2200, filterQ: 5, attack: 1e-3, decay: 0.5, brightness: 2800 }, P = { name: "glass", baseFreq: 660, noiseColor: "pink", oscType: "sine", filterFreq: 6500, filterQ: 6, attack: 4e-3, decay: 1.4, brightness: 5500 }, Q = { soft: h, crisp: D$1, arcade: L$1, glass: P };
|
|
44490
45321
|
function v$1(n) {
|
|
44491
45322
|
if (typeof n == "string") {
|
|
@@ -44790,12 +45621,15 @@ function AppContent() {
|
|
|
44790
45621
|
setSnippets,
|
|
44791
45622
|
setImageGeneration,
|
|
44792
45623
|
setSpeechToText,
|
|
45624
|
+
setVoiceInput,
|
|
45625
|
+
setShortcuts,
|
|
44793
45626
|
setProxy,
|
|
44794
45627
|
isMacApp,
|
|
44795
45628
|
setIsFullScreen,
|
|
44796
45629
|
setIlinkStatus,
|
|
44797
45630
|
setActiveIlinkSessionId
|
|
44798
45631
|
} = useAppStore();
|
|
45632
|
+
const shortcuts = useAppStore((state) => state.shortcuts);
|
|
44799
45633
|
const { resolvedTheme } = z();
|
|
44800
45634
|
const { i18n, t } = useTranslation();
|
|
44801
45635
|
const { toast: toast2 } = useMessage();
|
|
@@ -44803,6 +45637,9 @@ function AppContent() {
|
|
|
44803
45637
|
const matchSession = location.pathname.match(/^\/session-view\/(.+)$/);
|
|
44804
45638
|
const activeSessionId = matchSession ? matchSession[1] : null;
|
|
44805
45639
|
const activeSessionIdRef = reactExports.useRef(activeSessionId);
|
|
45640
|
+
const { focus } = useFocusTargetRegistry();
|
|
45641
|
+
const commands2 = reactExports.useMemo(() => createAppCommands(focus), [focus]);
|
|
45642
|
+
useCommandShortcuts(commands2, shortcuts);
|
|
44806
45643
|
reactExports.useEffect(() => {
|
|
44807
45644
|
activeSessionIdRef.current = activeSessionId;
|
|
44808
45645
|
}, [activeSessionId]);
|
|
@@ -44844,6 +45681,8 @@ function AppContent() {
|
|
|
44844
45681
|
if (settings2.snippets) setSnippets(settings2.snippets);
|
|
44845
45682
|
if (settings2.imageGeneration) setImageGeneration(settings2.imageGeneration);
|
|
44846
45683
|
if (settings2.speechToText) setSpeechToText(settings2.speechToText);
|
|
45684
|
+
if (settings2.voiceInput) setVoiceInput(settings2.voiceInput);
|
|
45685
|
+
if (settings2.shortcuts) setShortcuts(settings2.shortcuts);
|
|
44847
45686
|
for (const session2 of sessions ?? []) {
|
|
44848
45687
|
try {
|
|
44849
45688
|
const pending = await request.getPendingAskUserRequests({ sessionId: session2.id });
|
|
@@ -44877,6 +45716,8 @@ function AppContent() {
|
|
|
44877
45716
|
setSnippets,
|
|
44878
45717
|
setImageGeneration,
|
|
44879
45718
|
setSpeechToText,
|
|
45719
|
+
setVoiceInput,
|
|
45720
|
+
setShortcuts,
|
|
44880
45721
|
setProxy,
|
|
44881
45722
|
setIlinkStatus,
|
|
44882
45723
|
setActiveIlinkSessionId
|
|
@@ -44891,7 +45732,16 @@ function AppContent() {
|
|
|
44891
45732
|
for (const [sid, notifications] of pendingSessionNotificationRef.current.entries()) {
|
|
44892
45733
|
pendingSessionNotificationRef.current.delete(sid);
|
|
44893
45734
|
let processedCount = 0;
|
|
45735
|
+
if (!useAppStore.getState().sessions.some((session2) => session2.id === sid)) {
|
|
45736
|
+
continue;
|
|
45737
|
+
}
|
|
44894
45738
|
store.updateSessionState(sid, (currentState) => {
|
|
45739
|
+
if (currentState.isLoading || isSessionLifecycleBusy(sid)) {
|
|
45740
|
+
processedCount = notifications.length;
|
|
45741
|
+
return {
|
|
45742
|
+
pendingNotifications: [...currentState.pendingNotifications, ...notifications]
|
|
45743
|
+
};
|
|
45744
|
+
}
|
|
44895
45745
|
let state = currentState;
|
|
44896
45746
|
for (let i = 0; i < notifications.length; i++) {
|
|
44897
45747
|
const notification = notifications[i];
|
|
@@ -45191,7 +46041,7 @@ function AppContent() {
|
|
|
45191
46041
|
] });
|
|
45192
46042
|
}
|
|
45193
46043
|
function App() {
|
|
45194
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MessageProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(HashRouter, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(AppContent, {}) }) }) }) });
|
|
46044
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MessageProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(HashRouter, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(FocusTargetProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(AppContent, {}) }) }) }) }) });
|
|
45195
46045
|
}
|
|
45196
46046
|
clientExports.createRoot(document.getElementById("root")).render(
|
|
45197
46047
|
/* @__PURE__ */ jsxRuntimeExports.jsx(reactExports.StrictMode, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(App, {}) })
|
|
@@ -45229,187 +46079,204 @@ export {
|
|
|
45229
46079
|
ClockCheck as Z,
|
|
45230
46080
|
Badge as _,
|
|
45231
46081
|
useAppStore as a,
|
|
45232
|
-
|
|
46082
|
+
useValueChanged as a$,
|
|
45233
46083
|
CircleCheck as a0,
|
|
45234
|
-
|
|
45235
|
-
|
|
45236
|
-
|
|
45237
|
-
|
|
45238
|
-
|
|
45239
|
-
|
|
45240
|
-
|
|
45241
|
-
|
|
45242
|
-
|
|
45243
|
-
|
|
45244
|
-
|
|
45245
|
-
|
|
45246
|
-
|
|
45247
|
-
|
|
45248
|
-
|
|
45249
|
-
|
|
45250
|
-
|
|
45251
|
-
|
|
45252
|
-
|
|
45253
|
-
|
|
45254
|
-
|
|
45255
|
-
|
|
45256
|
-
|
|
45257
|
-
|
|
45258
|
-
|
|
45259
|
-
|
|
45260
|
-
|
|
45261
|
-
|
|
45262
|
-
|
|
45263
|
-
|
|
45264
|
-
|
|
45265
|
-
|
|
45266
|
-
|
|
45267
|
-
|
|
45268
|
-
|
|
45269
|
-
|
|
45270
|
-
|
|
45271
|
-
|
|
45272
|
-
|
|
45273
|
-
|
|
45274
|
-
|
|
45275
|
-
|
|
45276
|
-
|
|
45277
|
-
|
|
45278
|
-
|
|
45279
|
-
|
|
45280
|
-
|
|
45281
|
-
|
|
45282
|
-
|
|
45283
|
-
|
|
45284
|
-
|
|
45285
|
-
|
|
45286
|
-
|
|
45287
|
-
|
|
45288
|
-
|
|
45289
|
-
|
|
45290
|
-
|
|
45291
|
-
|
|
45292
|
-
|
|
45293
|
-
|
|
45294
|
-
|
|
45295
|
-
|
|
46084
|
+
Bot as a1,
|
|
46085
|
+
Globe as a2,
|
|
46086
|
+
MessageCircle as a3,
|
|
46087
|
+
SelectGroup as a4,
|
|
46088
|
+
SelectLabel as a5,
|
|
46089
|
+
RefreshCw as a6,
|
|
46090
|
+
ChevronRight as a7,
|
|
46091
|
+
cva as a8,
|
|
46092
|
+
Separator as a9,
|
|
46093
|
+
useMergedRefs as aA,
|
|
46094
|
+
useValueAsRef as aB,
|
|
46095
|
+
useAnimationsFinished as aC,
|
|
46096
|
+
useIsoLayoutEffect as aD,
|
|
46097
|
+
useOpenChangeComplete as aE,
|
|
46098
|
+
AnimationFrame as aF,
|
|
46099
|
+
addEventListener as aG,
|
|
46100
|
+
getWindow as aH,
|
|
46101
|
+
none as aI,
|
|
46102
|
+
resolveStyle as aJ,
|
|
46103
|
+
Tabs as aK,
|
|
46104
|
+
TabsList as aL,
|
|
46105
|
+
TabsTrigger as aM,
|
|
46106
|
+
webUIBaseUrl as aN,
|
|
46107
|
+
reduceSessionNotification as aO,
|
|
46108
|
+
reduceFlushStreaming as aP,
|
|
46109
|
+
Clock as aQ,
|
|
46110
|
+
Folder as aR,
|
|
46111
|
+
shimExports as aS,
|
|
46112
|
+
NOOP as aT,
|
|
46113
|
+
useCSPContext as aU,
|
|
46114
|
+
clamp as aV,
|
|
46115
|
+
fieldValidityMapping as aW,
|
|
46116
|
+
useFormContext as aX,
|
|
46117
|
+
useFieldRootContext as aY,
|
|
46118
|
+
useLabelableContext as aZ,
|
|
46119
|
+
useRegisterFieldControl as a_,
|
|
46120
|
+
useRender as aa,
|
|
46121
|
+
mergeProps as ab,
|
|
46122
|
+
resetAgent as ac,
|
|
46123
|
+
clearAgentSessions as ad,
|
|
46124
|
+
updateAgentSettings as ae,
|
|
46125
|
+
ALL_FEATURES as af,
|
|
46126
|
+
FEATURE_I18N_KEYS as ag,
|
|
46127
|
+
COMMAND_DEFINITIONS as ah,
|
|
46128
|
+
getCommandShortcuts as ai,
|
|
46129
|
+
shortcutPreviewFromKeyboardEvent as aj,
|
|
46130
|
+
shortcutFromKeyboardEvent as ak,
|
|
46131
|
+
findShortcutConflicts as al,
|
|
46132
|
+
React as am,
|
|
46133
|
+
reactDomExports as an,
|
|
46134
|
+
getDefaultExportFromCjs as ao,
|
|
46135
|
+
useControlled as ap,
|
|
46136
|
+
useTransitionStatus as aq,
|
|
46137
|
+
useBaseUiId as ar,
|
|
46138
|
+
useStableCallback as as,
|
|
46139
|
+
createChangeEventDetails as at,
|
|
46140
|
+
triggerPress as au,
|
|
46141
|
+
formatErrorMessage as av,
|
|
46142
|
+
TransitionStatusDataAttributes as aw,
|
|
46143
|
+
transitionStatusMapping as ax,
|
|
46144
|
+
useRenderElement as ay,
|
|
46145
|
+
useButton as az,
|
|
45296
46146
|
useMessage as b,
|
|
45297
|
-
|
|
45298
|
-
|
|
45299
|
-
|
|
45300
|
-
|
|
45301
|
-
|
|
45302
|
-
|
|
45303
|
-
|
|
45304
|
-
|
|
45305
|
-
|
|
45306
|
-
|
|
45307
|
-
|
|
45308
|
-
|
|
45309
|
-
|
|
45310
|
-
|
|
45311
|
-
|
|
45312
|
-
|
|
45313
|
-
|
|
45314
|
-
|
|
45315
|
-
|
|
45316
|
-
|
|
45317
|
-
|
|
45318
|
-
|
|
45319
|
-
|
|
45320
|
-
|
|
45321
|
-
|
|
45322
|
-
|
|
45323
|
-
|
|
45324
|
-
|
|
45325
|
-
|
|
45326
|
-
|
|
45327
|
-
|
|
45328
|
-
|
|
45329
|
-
|
|
45330
|
-
|
|
45331
|
-
|
|
45332
|
-
|
|
45333
|
-
|
|
45334
|
-
|
|
45335
|
-
|
|
45336
|
-
|
|
45337
|
-
|
|
45338
|
-
|
|
45339
|
-
|
|
45340
|
-
|
|
45341
|
-
|
|
45342
|
-
|
|
45343
|
-
|
|
45344
|
-
|
|
45345
|
-
|
|
45346
|
-
|
|
45347
|
-
|
|
45348
|
-
|
|
45349
|
-
|
|
45350
|
-
|
|
45351
|
-
|
|
45352
|
-
|
|
45353
|
-
|
|
45354
|
-
|
|
45355
|
-
|
|
45356
|
-
|
|
45357
|
-
|
|
45358
|
-
|
|
45359
|
-
|
|
45360
|
-
|
|
45361
|
-
|
|
45362
|
-
|
|
45363
|
-
|
|
45364
|
-
|
|
45365
|
-
|
|
45366
|
-
|
|
45367
|
-
|
|
45368
|
-
|
|
45369
|
-
|
|
45370
|
-
|
|
45371
|
-
|
|
45372
|
-
|
|
45373
|
-
|
|
45374
|
-
|
|
45375
|
-
|
|
45376
|
-
|
|
45377
|
-
|
|
45378
|
-
|
|
45379
|
-
|
|
45380
|
-
|
|
45381
|
-
|
|
45382
|
-
|
|
45383
|
-
|
|
45384
|
-
|
|
45385
|
-
|
|
45386
|
-
|
|
45387
|
-
|
|
45388
|
-
|
|
45389
|
-
|
|
45390
|
-
|
|
45391
|
-
|
|
45392
|
-
|
|
45393
|
-
|
|
45394
|
-
|
|
45395
|
-
|
|
45396
|
-
|
|
45397
|
-
|
|
45398
|
-
|
|
45399
|
-
|
|
45400
|
-
|
|
45401
|
-
|
|
45402
|
-
|
|
45403
|
-
|
|
45404
|
-
|
|
45405
|
-
|
|
45406
|
-
|
|
45407
|
-
|
|
45408
|
-
|
|
45409
|
-
|
|
45410
|
-
|
|
45411
|
-
|
|
45412
|
-
|
|
46147
|
+
useTriggerFocusGuards as b$,
|
|
46148
|
+
areArraysEqual as b0,
|
|
46149
|
+
keyboard as b1,
|
|
46150
|
+
inputChange as b2,
|
|
46151
|
+
createGenericEventDetails as b3,
|
|
46152
|
+
activeElement as b4,
|
|
46153
|
+
ownerDocument as b5,
|
|
46154
|
+
contains as b6,
|
|
46155
|
+
CompositeList as b7,
|
|
46156
|
+
getDefaultLabelId as b8,
|
|
46157
|
+
resolveAriaLabelledBy as b9,
|
|
46158
|
+
popupStoreSelectors as bA,
|
|
46159
|
+
triggerHover as bB,
|
|
46160
|
+
escapeKey as bC,
|
|
46161
|
+
attachPreventUnmountOnClose as bD,
|
|
46162
|
+
closePress as bE,
|
|
46163
|
+
PATIENT_CLICK_THRESHOLD as bF,
|
|
46164
|
+
focusOut as bG,
|
|
46165
|
+
setPopupOpenState as bH,
|
|
46166
|
+
createInitialPopupStoreState as bI,
|
|
46167
|
+
createPopupFloatingRootContext as bJ,
|
|
46168
|
+
Timeout as bK,
|
|
46169
|
+
PopupTriggerMap as bL,
|
|
46170
|
+
FloatingTree as bM,
|
|
46171
|
+
usePopupRootSync as bN,
|
|
46172
|
+
useImplicitActiveTrigger as bO,
|
|
46173
|
+
useOpenStateTransitions as bP,
|
|
46174
|
+
imperativeAction as bQ,
|
|
46175
|
+
PopupHandleAttachment as bR,
|
|
46176
|
+
usePopupRootStore as bS,
|
|
46177
|
+
useDismiss as bT,
|
|
46178
|
+
usePopupInteractionProps as bU,
|
|
46179
|
+
usePopupHandleStore as bV,
|
|
46180
|
+
useTriggerDataForwarding as bW,
|
|
46181
|
+
useHoverReferenceInteraction as bX,
|
|
46182
|
+
safePolygon as bY,
|
|
46183
|
+
useClick as bZ,
|
|
46184
|
+
useOpenMethodTriggerProps as b_,
|
|
46185
|
+
useDirection as ba,
|
|
46186
|
+
getTarget as bb,
|
|
46187
|
+
useAnimationFrame as bc,
|
|
46188
|
+
isElement as bd,
|
|
46189
|
+
drag as be,
|
|
46190
|
+
trackPress as bf,
|
|
46191
|
+
useLabelableId as bg,
|
|
46192
|
+
useCompositeListItem as bh,
|
|
46193
|
+
visuallyHidden as bi,
|
|
46194
|
+
COMPOSITE_KEYS as bj,
|
|
46195
|
+
PAGE_UP as bk,
|
|
46196
|
+
PAGE_DOWN as bl,
|
|
46197
|
+
HOME as bm,
|
|
46198
|
+
END as bn,
|
|
46199
|
+
ARROW_LEFT as bo,
|
|
46200
|
+
ARROW_DOWN as bp,
|
|
46201
|
+
ARROW_RIGHT as bq,
|
|
46202
|
+
ARROW_UP as br,
|
|
46203
|
+
matchesFocusVisible as bs,
|
|
46204
|
+
EDITOR_LABELS as bt,
|
|
46205
|
+
L as bu,
|
|
46206
|
+
N as bv,
|
|
46207
|
+
_ as bw,
|
|
46208
|
+
D as bx,
|
|
46209
|
+
w as by,
|
|
46210
|
+
ReactStore as bz,
|
|
46211
|
+
createLucideIcon as c,
|
|
46212
|
+
CLICK_TRIGGER_IDENTIFIER as c0,
|
|
46213
|
+
FocusGuard as c1,
|
|
46214
|
+
pressableTriggerOpenStateMapping as c2,
|
|
46215
|
+
triggerOpenStateMapping as c3,
|
|
46216
|
+
FloatingPortal as c4,
|
|
46217
|
+
POPUP_COLLISION_AVOIDANCE as c5,
|
|
46218
|
+
useFloatingNodeId as c6,
|
|
46219
|
+
useAnchorPositioning as c7,
|
|
46220
|
+
useAnchoredPopupScrollLock as c8,
|
|
46221
|
+
usePositioner as c9,
|
|
46222
|
+
HoverCard as cA,
|
|
46223
|
+
HoverCardTrigger as cB,
|
|
46224
|
+
HoverCardContent as cC,
|
|
46225
|
+
X as cD,
|
|
46226
|
+
DropdownMenuSub as cE,
|
|
46227
|
+
DropdownMenuSubTrigger as cF,
|
|
46228
|
+
DropdownMenuSubContent as cG,
|
|
46229
|
+
CircleQuestionMark as cH,
|
|
46230
|
+
ChevronUp as cI,
|
|
46231
|
+
z as cJ,
|
|
46232
|
+
__vitePreload as cK,
|
|
46233
|
+
Code as cL,
|
|
46234
|
+
MessageSquare as cM,
|
|
46235
|
+
FolderPlus as cN,
|
|
46236
|
+
Eye as cO,
|
|
46237
|
+
useProjectState as cP,
|
|
46238
|
+
useFocusTargetRegistry as cQ,
|
|
46239
|
+
TabsContent as cR,
|
|
46240
|
+
loadSession as cS,
|
|
46241
|
+
Card as cT,
|
|
46242
|
+
getBasename as cU,
|
|
46243
|
+
isSubPath as cV,
|
|
46244
|
+
formatBytes as cW,
|
|
46245
|
+
isImageMimeType as cX,
|
|
46246
|
+
twMerge as cY,
|
|
46247
|
+
clsx as cZ,
|
|
46248
|
+
getAugmentedNamespace as c_,
|
|
46249
|
+
InternalBackdrop as ca,
|
|
46250
|
+
inertValue as cb,
|
|
46251
|
+
FloatingNode as cc,
|
|
46252
|
+
useToolbarRootContext as cd,
|
|
46253
|
+
useHoverFloatingInteraction as ce,
|
|
46254
|
+
createDefaultInitialFocus as cf,
|
|
46255
|
+
FOCUSABLE_POPUP_PROPS as cg,
|
|
46256
|
+
getDisabledMountTransitionStyles as ch,
|
|
46257
|
+
FloatingFocusManager as ci,
|
|
46258
|
+
isHTMLElement as cj,
|
|
46259
|
+
popupTransitionStateMapping as ck,
|
|
46260
|
+
formatUpdatedTime as cl,
|
|
46261
|
+
buttonVariants as cm,
|
|
46262
|
+
restartSession as cn,
|
|
46263
|
+
SessionLifecycleBusyError as co,
|
|
46264
|
+
closeSession as cp,
|
|
46265
|
+
RestartSessionError as cq,
|
|
46266
|
+
Tooltip as cr,
|
|
46267
|
+
TooltipTrigger as cs,
|
|
46268
|
+
TooltipContent as ct,
|
|
46269
|
+
useFocusTarget as cu,
|
|
46270
|
+
formatDuration as cv,
|
|
46271
|
+
ReactDOM as cw,
|
|
46272
|
+
clientId as cx,
|
|
46273
|
+
ChevronDown as cy,
|
|
46274
|
+
v as cz,
|
|
46275
|
+
Switch as d,
|
|
46276
|
+
Copy as e,
|
|
46277
|
+
request as f,
|
|
46278
|
+
extractErrorMessage as g,
|
|
46279
|
+
copyText as h,
|
|
45413
46280
|
isWebUI as i,
|
|
45414
46281
|
jsxRuntimeExports as j,
|
|
45415
46282
|
ContextMenu as k,
|