@nextclaw/ui 0.26.5 → 0.27.1
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/CHANGELOG.md +82 -0
- package/dist/.vite/manifest.json +1342 -1227
- package/dist/assets/{abnfDiagram-VRR7QNED-Dcw10Yt1.js → abnfDiagram-VRR7QNED-BT0_ycaq.js} +1 -1
- package/dist/assets/account-panel-BVNV8XqM.js +1 -0
- package/dist/assets/agents-CfpN8PQc.js +1 -0
- package/dist/assets/agents-E4nu-17c.js +1 -0
- package/dist/assets/{aiden0z-pptx-renderer.es--oNqetPA.js → aiden0z-pptx-renderer.es-ClCaf_Wh.js} +1 -1
- package/dist/assets/api-CI6_8Qt1.js +20 -0
- package/dist/assets/app-presenter-provider-2DwHRRle.js +28 -0
- package/dist/assets/app-presenter-provider-D3BuuOyZ.css +1 -0
- package/dist/assets/appearance-settings-page-Cn9w3F-K.js +1 -0
- package/dist/assets/apps-YFlJirpx.js +1 -0
- package/dist/assets/{arc-DBRedCax.js → arc-cmSdpq1Z.js} +1 -1
- package/dist/assets/architecture-TIHT7OUA-BImoGh10.js +1 -0
- package/dist/assets/{architectureDiagram-ZJ3FMSHR-Dufhtuv-.js → architectureDiagram-ZJ3FMSHR-aYglVeoS.js} +1 -1
- package/dist/assets/{blockDiagram-677ZJIJ3-BUk0vtJ7.js → blockDiagram-677ZJIJ3-Di_PBl5q.js} +1 -1
- package/dist/assets/{book-open-Bcnn2_uV.js → book-open-i_BjUBqL.js} +1 -1
- package/dist/assets/{c4Diagram-LMCZKHZV-CxDcVE9p.js → c4Diagram-LMCZKHZV-CfuxybOL.js} +1 -1
- package/dist/assets/{card-Cqs73hGI.js → card-DokH7OBp.js} +1 -1
- package/dist/assets/channel-BDQry0ob.js +1 -0
- package/dist/assets/channels-list-page-B7G9lHUm.js +8 -0
- package/dist/assets/chunk-2Q5K7J3B-DkgSFfIy.js +1 -0
- package/dist/assets/{chunk-32BRIVSS-DSF3KElA.js → chunk-32BRIVSS-CCGc4qg4.js} +1 -1
- package/dist/assets/{chunk-52WLFC77-Costxzr3.js → chunk-52WLFC77-aJoxU2Ow.js} +1 -1
- package/dist/assets/{chunk-5FCAYU7R-rhqzGGZo.js → chunk-5FCAYU7R-CGwtZSax.js} +1 -1
- package/dist/assets/{chunk-5HE753X5-BsEsmIao.js → chunk-5HE753X5-DqaMSMeS.js} +1 -1
- package/dist/assets/{chunk-5JV3BV7I-Dqw_DCoN.js → chunk-5JV3BV7I-DnabINcd.js} +1 -1
- package/dist/assets/{chunk-5TONJI2A-Cft82fp8.js → chunk-5TONJI2A-BhpKv1k2.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-DqNHn9Dl.js → chunk-5VM5RSS4-DvkRPit_.js} +1 -1
- package/dist/assets/{chunk-7BUUIJ7U-A5SBEMYY.js → chunk-7BUUIJ7U-CgDQOLnC.js} +1 -1
- package/dist/assets/{chunk-BIQX33UG-1Ng3mTrH.js → chunk-BIQX33UG-9FEv5b7T.js} +1 -1
- package/dist/assets/{chunk-C7G6YPKG-DRJEy8ZI.js → chunk-C7G6YPKG-CNGFAFYL.js} +1 -1
- package/dist/assets/{chunk-CQNSW5MT-Bydv_J3J.js → chunk-CQNSW5MT-DovTZx0M.js} +1 -1
- package/dist/assets/{chunk-CYSBUYHQ-HkMIg12u.js → chunk-CYSBUYHQ-DpLEgYa1.js} +1 -1
- package/dist/assets/{chunk-EMLP6XTP-C5ndDvm3.js → chunk-EMLP6XTP-D4NuN01W.js} +1 -1
- package/dist/assets/{chunk-EX3LRPZG-DzeloZRo.js → chunk-EX3LRPZG-D8Jf4kc2.js} +1 -1
- package/dist/assets/{chunk-FWX5IMBZ-n_2_CLTQ.js → chunk-FWX5IMBZ-BdHymAs0.js} +2 -2
- package/dist/assets/{chunk-HOUHSVGY-kx_slvu3.js → chunk-HOUHSVGY-Dd_Ycn9Z.js} +1 -1
- package/dist/assets/{chunk-ICXQ74PX-sQLMURqL.js → chunk-ICXQ74PX-BRPUu3ff.js} +1 -1
- package/dist/assets/{chunk-JG7HCLWE-CMUn5Elc.js → chunk-JG7HCLWE-DnCasQja.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-Cra3s-Uk.js → chunk-JWPE2WC7-C3CkbEj1.js} +1 -1
- package/dist/assets/{chunk-MOJQB5TN-umcrg5Bi.js → chunk-MOJQB5TN-Pi--K4-1.js} +1 -1
- package/dist/assets/{chunk-MOZMSUNE-BnljD1ig.js → chunk-MOZMSUNE-3VTspvlh.js} +1 -1
- package/dist/assets/{chunk-OGEWGWER-BXx5pQjU.js → chunk-OGEWGWER-BetLLyJt.js} +1 -1
- package/dist/assets/{chunk-OSBZ3O6U-D-1qfdWu.js → chunk-OSBZ3O6U-D1VcupAj.js} +1 -1
- package/dist/assets/{chunk-PUDLZKDR-DLzX78LC.js → chunk-PUDLZKDR-Cy4G8SjV.js} +1 -1
- package/dist/assets/{chunk-Q4XR5HBZ-DTK-rtW6.js → chunk-Q4XR5HBZ-UYxXzi7_.js} +1 -1
- package/dist/assets/{chunk-QBLGF6JB-CsFeIGfr.js → chunk-QBLGF6JB-CHiGeRY1.js} +1 -1
- package/dist/assets/{chunk-R7FJI6CG-4xNYUeng.js → chunk-R7FJI6CG-C5kVJus8.js} +1 -1
- package/dist/assets/{chunk-RYQCIY6F-DJiHiTE5.js → chunk-RYQCIY6F-C6cuuEBn.js} +1 -1
- package/dist/assets/{chunk-U6XO7XAA-BVYkauHz.js → chunk-U6XO7XAA-CM0EK7Y0.js} +1 -1
- package/dist/assets/{chunk-V7JOEXUC-BsazE8cS.js → chunk-V7JOEXUC-DWJZIsME.js} +1 -1
- package/dist/assets/chunk-VAUOI2AC-CsTIB8qD.js +1 -0
- package/dist/assets/{chunk-VR4S4FIN-7RoZQffO.js → chunk-VR4S4FIN-CY5KYeEi.js} +1 -1
- package/dist/assets/{chunk-WYO6CB5R-DEuS6N1R.js → chunk-WYO6CB5R-B30N3ZP8.js} +3 -3
- package/dist/assets/chunk-XXDRQBXY-DK6dz0Q3.js +1 -0
- package/dist/assets/{chunk-YOTPTUD7-9KBrosZL.js → chunk-YOTPTUD7-CBu82JpO.js} +1 -1
- package/dist/assets/{chunk-ZGVPDNZ5-IYgN9f5A.js → chunk-ZGVPDNZ5-BN5NX5qA.js} +1 -1
- package/dist/assets/{chunk-ZIRB5QZD-BUo0-zcp.js → chunk-ZIRB5QZD-DcDXK29L.js} +1 -1
- package/dist/assets/{circle-dashed-EY1ScSMe.js → circle-dashed-Cx8CIEbg.js} +1 -1
- package/dist/assets/classDiagram-OUVF2IWQ-BYygHCrp.js +1 -0
- package/dist/assets/classDiagram-v2-EOCWNBFH-BgQ0XKYz.js +1 -0
- package/dist/assets/{client-CH7w6yRV.js → client-CUJUci3r.js} +1 -1
- package/dist/assets/config-split-page-hY1xug28.js +1 -0
- package/dist/assets/confirm-dialog-B-ejV666.js +1 -0
- package/dist/assets/{app-presenter-provider-jNGlmBLe.css → context-menu-DEcVZfaU.css} +1 -1
- package/dist/assets/context-menu-dGVv8klA.js +211 -0
- package/dist/assets/{cose-bilkent-JH36ORCC-DhqbC1fR.js → cose-bilkent-JH36ORCC-CmeJVoTw.js} +1 -1
- package/dist/assets/{createLucideIcon-Cfo2ySi5.js → createLucideIcon-reFMl-W-.js} +1 -1
- package/dist/assets/cron-CH5c55CR.js +1 -0
- package/dist/assets/cynefin-VYW2F7L2-DKbotNWS.js +1 -0
- package/dist/assets/{cynefinDiagram-TSTJHNR4-C-TBRi5V.js → cynefinDiagram-TSTJHNR4-DGOUMgPP.js} +1 -1
- package/dist/assets/{dagre-CrgsRasE.js → dagre-CMxSkbJJ.js} +1 -1
- package/dist/assets/{dagre-VKFMJZFB-BmafJymp.js → dagre-VKFMJZFB-3YUBEXwo.js} +1 -1
- package/dist/assets/{desktop-capabilities-page-BDYITStl.js → desktop-capabilities-page-CYJTQ3nC.js} +1 -1
- package/dist/assets/desktop-update-config-guKAozXO.js +1 -0
- package/dist/assets/{diagram-FQU43EPY-BoOMwa6D.js → diagram-FQU43EPY-Br1g--ww.js} +1 -1
- package/dist/assets/{diagram-G47NLZAW-Le7N6Uym.js → diagram-G47NLZAW-D1wJCBgr.js} +1 -1
- package/dist/assets/{diagram-NH7WQ7WH-Fbpj3-MO.js → diagram-NH7WQ7WH-Cgg2auLH.js} +1 -1
- package/dist/assets/{diagram-OA4YK3LP-D3QuGGuu.js → diagram-OA4YK3LP-R-wHiWqh.js} +1 -1
- package/dist/assets/{diagram-WEI45ONY-Cxu1uiN6.js → diagram-WEI45ONY-CsNnKV0P.js} +1 -1
- package/dist/assets/dialog-DLOwdjT1.js +1 -0
- package/dist/assets/dist-ZaFFmAGl.js +41 -0
- package/dist/assets/doc-browser-ClDUWo9V.js +1 -0
- package/dist/assets/doc-browser-context-CTmOmuqa.js +1 -0
- package/dist/assets/{docx-preview-CkU2psnd.js → docx-preview-kPn_EtAr.js} +1 -1
- package/dist/assets/{download-BoaKzDJk.js → download-DovI3Yvf.js} +1 -1
- package/dist/assets/{ebnfDiagram-CCIWWBDH-CCAjuQM6.js → ebnfDiagram-CCIWWBDH-DCyhIPdi.js} +1 -1
- package/dist/assets/{erDiagram-Q63AITRT-BuzUAq-d.js → erDiagram-Q63AITRT-D0ZJYAUf.js} +1 -1
- package/dist/assets/eventmodeling-45OFAUF4-SIhbIFIw.js +1 -0
- package/dist/assets/extensions-BZ3qrM8M.js +1 -0
- package/dist/assets/external-link-DUD3AbsF.js +1 -0
- package/dist/assets/flowDiagram-23GEKE2U-DdAjkU7I.js +1 -0
- package/dist/assets/{form-actions-D9JWSFQu.js → form-actions-B8VniHts.js} +1 -1
- package/dist/assets/{ganttDiagram-NO4QXBWP-cJmWVY8F.js → ganttDiagram-NO4QXBWP-CiXDcXZD.js} +1 -1
- package/dist/assets/gitGraph-TEB2WS4Q-DnMNpESZ.js +1 -0
- package/dist/assets/{gitGraphDiagram-IHSO6WYX-F58o-vtP.js → gitGraphDiagram-IHSO6WYX-BSiIV48S.js} +1 -1
- package/dist/assets/{i18n-Bm3Ov7Fy.js → i18n-IGQbjBqS.js} +2 -2
- package/dist/assets/inbox-BjBZIbgx.js +1 -0
- package/dist/assets/inbox-ClAG7SI_.js +1 -0
- package/dist/assets/info-DKCQHKI2-BSm-69p_.js +1 -0
- package/dist/assets/{infoDiagram-FWYZ7A6U-Gt59b83C.js → infoDiagram-FWYZ7A6U-CCIgBCVq.js} +1 -1
- package/dist/assets/{ishikawaDiagram-FXEZZL3T-1u4IAj1I.js → ishikawaDiagram-FXEZZL3T-nQ_baN5u.js} +1 -1
- package/dist/assets/{journeyDiagram-5HDEW3XC-CCQsfV-5.js → journeyDiagram-5HDEW3XC-ABueIPzj.js} +1 -1
- package/dist/assets/{kanban-definition-HUTT4EX6-vlB6O_Zn.js → kanban-definition-HUTT4EX6-8FKS3fmQ.js} +1 -1
- package/dist/assets/katex-DPgHtix3.js +1 -0
- package/dist/assets/keyboard-shortcuts-settings-page-BqfbbKir.js +1 -0
- package/dist/assets/{line-D_bHubTL.js → line-Biw8iEUz.js} +1 -1
- package/dist/assets/{linear-ChlwuS5y.js → linear-D7CWUHTF.js} +1 -1
- package/dist/assets/login-page-BxSMwUsc.js +1 -0
- package/dist/assets/{login-page-C-DvcG3L.js → login-page-DYaozpzz.js} +1 -1
- package/dist/assets/main-CWYF9QU_.js +2 -0
- package/dist/assets/main-D_zmSVS1.css +1 -0
- package/dist/assets/main-i18n-catalog.config-itg3Gvzp.js +1 -0
- package/dist/assets/{map-oGHTsIu8.js → map-CDu47gTf.js} +1 -1
- package/dist/assets/marketplace-CnQ5USfr.js +1 -0
- package/dist/assets/mcp-marketplace-page-Dor6H9IC.js +1 -0
- package/dist/assets/{mermaid-parser.core-CuRe1ZG4.js → mermaid-parser.core-Cc9wjl82.js} +2 -2
- package/dist/assets/{mermaid.core-u4YCFKRf.js → mermaid.core-GWlaVWz1.js} +3 -3
- package/dist/assets/{mindmap-definition-LN4V7U3C-DeJAQYTu.js → mindmap-definition-LN4V7U3C-oqnKsz-R.js} +1 -1
- package/dist/assets/model-config-page-Cduyz2Hy.js +1 -0
- package/dist/assets/{navigation-link-CjxNC8aT.js → navigation-link-D-JSWFxj.js} +2 -2
- package/dist/assets/{ordinal-C6JFfkKN.js → ordinal-DImbxqBz.js} +1 -1
- package/dist/assets/packet-7NZHBO7P-1YQvC6mT.js +1 -0
- package/dist/assets/panel-app-BBTg0tVp.js +1 -0
- package/dist/assets/panel-app-i18n-catalog.config-BfLHr1tc.js +1 -0
- package/dist/assets/panel-apps-C-izvtu9.js +1 -0
- package/dist/assets/panelStandalone-XRlWxbRS.css +1 -0
- package/dist/assets/panelStandalone-oHxbXvYt.js +2 -0
- package/dist/assets/{pegDiagram-2B236MQR-nVMkxShH.js → pegDiagram-2B236MQR-DYAB8CEz.js} +1 -1
- package/dist/assets/pie-RZYD4A2V-BGoNOSwu.js +1 -0
- package/dist/assets/{pieDiagram-ENE6RG2P-8aUH44QZ.js → pieDiagram-ENE6RG2P-DGsH0Kk5.js} +1 -1
- package/dist/assets/plus-DUdl68Eo.js +1 -0
- package/dist/assets/privacy-settings-page-DG9E8N-F.js +1 -0
- package/dist/assets/projects-CzBaTOTL.js +1 -0
- package/dist/assets/provider-models-COzjYl29.js +1 -0
- package/dist/assets/provider-scoped-model-input-Cvy74uj8.js +1 -0
- package/dist/assets/providers-config-page-7rCwVnhh.js +1 -0
- package/dist/assets/puzzle-C5Wfpjk_.js +1 -0
- package/dist/assets/pwa-CAg_9zFs.js +1 -0
- package/dist/assets/{quadrantDiagram-ABIIQ3AL-EY8hpFv8.js → quadrantDiagram-ABIIQ3AL-BegGcT3l.js} +1 -1
- package/dist/assets/radar-I7S5WNFK-uPku9RRq.js +1 -0
- package/dist/assets/railroad-3IZDKUUU-DHnmbuIo.js +1 -0
- package/dist/assets/railroad-abnf-AHOZXSZD-DiZs--Iw.js +1 -0
- package/dist/assets/railroad-ebnf-EBAXGLYW-Nr53gnNE.js +1 -0
- package/dist/assets/railroad-peg-LSFZ7HO6-Cm_PuwJS.js +1 -0
- package/dist/assets/{railroadDiagram-RFXS5EU6-CNhcIeji.js → railroadDiagram-RFXS5EU6-B3yJ2yxE.js} +1 -1
- package/dist/assets/{refresh-cw-BlXDrVP0.js → refresh-cw-OhwaPDn1.js} +1 -1
- package/dist/assets/remote-DvCdHjzA.js +1 -0
- package/dist/assets/{requirementDiagram-TGXJPOKE-D8Dcs-Rt.js → requirementDiagram-TGXJPOKE-DtEyoEXG.js} +1 -1
- package/dist/assets/{rotate-cw-ei6rPD6z.js → rotate-cw-aBponvp7.js} +1 -1
- package/dist/assets/runtime-config-page-BF1wxvzR.js +1 -0
- package/dist/assets/{sankeyDiagram-HTMAVEWB-HTrb6aa-.js → sankeyDiagram-HTMAVEWB-h9AYS2UB.js} +1 -1
- package/dist/assets/{save-DdF-bXgC.js → save-394QCMXn.js} +1 -1
- package/dist/assets/search-BG2qAlNZ.js +1 -0
- package/dist/assets/search-config-page-D4LeiB9y.js +1 -0
- package/dist/assets/secrets-config-page-BzGcr5Vw.js +3 -0
- package/dist/assets/security-config-vD_V0BQF.js +1 -0
- package/dist/assets/select-xUXYV0Gr.js +1 -0
- package/dist/assets/{sequenceDiagram-DBY2YBRQ-6f_4X16Y.js → sequenceDiagram-DBY2YBRQ-D-uxCkob.js} +1 -1
- package/dist/assets/service-apps-panel-D3wwPRzV.js +1 -0
- package/dist/assets/{settings-2-CrNhfInU.js → settings-2-CWOGRRaA.js} +1 -1
- package/dist/assets/{sizeCapture-X5ZJPWSS-Ck9rsuwL.js → sizeCapture-X5ZJPWSS-DBzZytQo.js} +1 -1
- package/dist/assets/{src-C8AUg09O.js → src-zrGbZsfc.js} +1 -1
- package/dist/assets/{stateDiagram-2N3HPSRC-Cm33MLHu.js → stateDiagram-2N3HPSRC-DyDy7AHq.js} +1 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-CtkpO6aA.js +1 -0
- package/dist/assets/{status-dot-C3SRFEta.js → status-dot-CYifnSnt.js} +1 -1
- package/dist/assets/{swimlanes-5IMT3BWC-B107vmvM.js → swimlanes-5IMT3BWC-BzOduS38.js} +2 -2
- package/dist/assets/swimlanesDiagram-G3AALYLV-BSdi6mvi.js +8 -0
- package/dist/assets/tag-chip-CjM6lyeh.js +1 -0
- package/dist/assets/theme-provider-BToFZGZG.js +1 -0
- package/dist/assets/{timeline-definition-FHXFAJF6-CJEoAj33.js → timeline-definition-FHXFAJF6-CmgnEF2t.js} +1 -1
- package/dist/assets/trash-2-DvJ6duOW.js +1 -0
- package/dist/assets/treeView-QDETBFTQ-DBoqypPR.js +1 -0
- package/dist/assets/treemap-6X3UGDF4-BMeL3P0q.js +1 -0
- package/dist/assets/use-config-COusaY5p.js +1 -0
- package/dist/assets/{use-desktop-capabilities-BYDjFlpt.js → use-desktop-capabilities-B-u6ojjW.js} +1 -1
- package/dist/assets/use-viewport-layout-IKKGpjzF.js +1 -0
- package/dist/assets/{vennDiagram-L72KCM5P-DzsUHk5I.js → vennDiagram-L72KCM5P-DwS7D2kg.js} +1 -1
- package/dist/assets/wardley-OPB4EBWU-Dqxe7zN6.js +1 -0
- package/dist/assets/{wardleyDiagram-EHGQE667-1NfFs5ua.js → wardleyDiagram-EHGQE667-B4X8OOL4.js} +1 -1
- package/dist/assets/x-E9VB4HQx.js +1 -0
- package/dist/assets/{xychartDiagram-FW5EYKEG-Ci8AI3Qo.js → xychartDiagram-FW5EYKEG-BjRQ_0nx.js} +1 -1
- package/dist/index.html +44 -106
- package/dist/panel-standalone.html +19 -13
- package/index.html +15 -66
- package/package.json +5 -5
- package/src/app/styles/design-system.css +85 -1
- package/src/app/styles/island-theme.css +8 -6
- package/src/features/agents/components/__tests__/agents-page.test.tsx +8 -5
- package/src/features/agents/components/agent-details-dialog.tsx +24 -18
- package/src/features/agents/components/agents-page.tsx +27 -38
- package/src/features/app-data/components/app-retained-data-section.tsx +4 -4
- package/src/features/apps/components/__tests__/app-marketplace-catalog.test.tsx +2 -2
- package/src/features/apps/components/__tests__/app-packages-panel.test.tsx +94 -23
- package/src/features/apps/components/__tests__/apps-panel.test.tsx +5 -3
- package/src/features/apps/components/app-document-access-section.tsx +17 -14
- package/src/features/apps/components/app-marketplace-catalog.tsx +69 -42
- package/src/features/apps/components/app-marketplace-cover.tsx +5 -2
- package/src/features/apps/components/app-marketplace-detail.tsx +20 -8
- package/src/features/apps/components/app-marketplace-operation.tsx +8 -3
- package/src/features/apps/components/app-marketplace-panel.tsx +168 -0
- package/src/features/apps/components/app-package-card.tsx +224 -147
- package/src/features/apps/components/app-package-details-dialog.tsx +103 -0
- package/src/features/apps/components/app-packages-panel.tsx +162 -147
- package/src/features/apps/components/apps-panel.tsx +43 -12
- package/src/features/chat/components/conversation/chat-conversation-header-section.tsx +1 -1
- package/src/features/chat/components/conversation/chat-conversation-header.tsx +1 -1
- package/src/features/chat/components/layout/chat-sidebar-toolbar.tsx +2 -2
- package/src/features/chat/components/layout/chat-sidebar-utility-menu.tsx +9 -7
- package/src/features/chat/components/providers/chat-runtime.provider.tsx +1 -1
- package/src/features/chat/features/conversation/components/__tests__/session-conversation-area.test.tsx +0 -1
- package/src/features/chat/features/conversation/components/__tests__/session-conversation-input.streaming.test.tsx +13 -2
- package/src/features/chat/features/conversation/components/floating-session-conversation.tsx +2 -3
- package/src/features/chat/features/conversation/components/session-conversation-area.tsx +9 -1
- package/src/features/chat/features/conversation/components/session-conversation-input-top-slot.tsx +44 -0
- package/src/features/chat/features/conversation/components/session-conversation-input.tsx +4 -38
- package/src/features/chat/features/conversation/hooks/__tests__/use-session-conversation-controller.test.tsx +86 -10
- package/src/features/chat/features/conversation/hooks/__tests__/use-session-conversation-input-state.test.tsx +44 -1
- package/src/features/chat/features/conversation/hooks/use-session-conversation-controller.ts +85 -73
- package/src/features/chat/features/conversation/hooks/use-session-conversation-input-query.ts +5 -15
- package/src/features/chat/features/conversation/hooks/use-session-conversation-input-state.ts +53 -13
- package/src/features/chat/features/conversation/hooks/use-session-submission-recovery.ts +83 -0
- package/src/features/chat/features/conversation/types/session-conversation-input.types.ts +38 -0
- package/src/features/chat/features/input/utils/__tests__/ncp-chat-input-availability.utils.test.ts +1 -29
- package/src/features/chat/features/input/utils/ncp-chat-input-availability.utils.ts +1 -8
- package/src/features/chat/features/message/components/__tests__/chat-message-list-skill-preview.container.test.tsx +14 -1
- package/src/features/chat/features/message/hooks/use-chat-inline-token-actions.ts +7 -2
- package/src/features/chat/features/message/utils/chat-message-execution-summary.utils.ts +3 -0
- package/src/features/chat/features/message/utils/chat-message-texts.utils.ts +1 -0
- package/src/features/chat/features/message/utils/chat-message-trigger-details.utils.ts +3 -0
- package/src/features/chat/features/session/components/chat-sidebar-project-groups.tsx +1 -1
- package/src/features/chat/features/session/components/session-header/chat-session-metadata-dialog.tsx +1 -1
- package/src/features/chat/features/session/components/session-header/chat-session-project-badge.tsx +2 -2
- package/src/features/chat/features/session/utils/__tests__/chat-session-route.utils.test.ts +26 -0
- package/src/features/chat/features/session/utils/chat-session-preference-governance.utils.ts +14 -8
- package/src/features/chat/features/session/utils/chat-session-route.utils.ts +9 -12
- package/src/features/chat/features/welcome/components/__tests__/chat-welcome.test.tsx +31 -6
- package/src/features/chat/features/welcome/components/chat-conversation-welcome.tsx +13 -1
- package/src/features/chat/features/welcome/components/chat-welcome-agent-picker.tsx +1 -1
- package/src/features/chat/features/welcome/components/chat-welcome-project-picker.tsx +1 -1
- package/src/features/chat/features/welcome/components/chat-welcome-prompt-suggestions.tsx +56 -13
- package/src/features/chat/features/welcome/components/chat-welcome-session-type-picker.tsx +3 -3
- package/src/features/chat/features/welcome/components/chat-welcome.tsx +14 -4
- package/src/features/chat/features/welcome/utils/__tests__/chat-welcome-continuation.utils.test.ts +40 -0
- package/src/features/chat/features/welcome/utils/chat-welcome-continuation.utils.ts +21 -0
- package/src/features/chat/features/workspace/components/__tests__/chat-session-workspace-file-preview.selection.test.tsx +14 -2
- package/src/features/chat/features/workspace/components/__tests__/session-cron-job-content.test.tsx +5 -1
- package/src/features/chat/features/workspace/components/chat-session-workspace-directory-browser.tsx +1 -1
- package/src/features/chat/features/workspace/components/chat-session-workspace-file-breadcrumbs.tsx +3 -7
- package/src/features/chat/features/workspace/components/chat-session-workspace-file-preview.tsx +6 -5
- package/src/features/chat/features/workspace/components/chat-session-workspace-panel-content.tsx +27 -27
- package/src/features/chat/features/workspace/components/overview/chat-session-continuous-attention.tsx +11 -11
- package/src/features/chat/features/workspace/components/overview/chat-session-token-usage.tsx +15 -15
- package/src/features/chat/features/workspace/components/project-files/workspace-directory-tree.tsx +2 -2
- package/src/features/chat/features/workspace/components/project-files/workspace-new-folder-tree-item.tsx +1 -1
- package/src/features/chat/features/workspace/components/project-files/workspace-project-files-toolbar.tsx +2 -2
- package/src/features/chat/features/workspace/components/session-cron-job-content.tsx +13 -26
- package/src/features/chat/index.ts +1 -0
- package/src/features/chat/pages/__tests__/ncp-chat-page.test.ts +37 -47
- package/src/features/chat/pages/ncp-chat-page.tsx +3 -3
- package/src/features/chat/stores/__tests__/chat-composer-draft.store.test.ts +67 -1
- package/src/features/chat/stores/chat-composer-draft.store.ts +230 -29
- package/src/features/cron/components/__tests__/cron-config.test.tsx +8 -2
- package/src/features/cron/components/cron-config.tsx +6 -17
- package/src/features/cron/components/cron-job-detail-dialog.tsx +10 -9
- package/src/features/cron/components/cron-job-resource.tsx +51 -0
- package/src/features/cron/components/cron-job-row.tsx +5 -4
- package/src/features/cron/index.ts +1 -0
- package/src/features/desktop-capabilities/components/desktop-authorization-dialog.tsx +5 -5
- package/src/features/inbox/components/inbox-reader-dialog.test.tsx +46 -6
- package/src/features/inbox/components/inbox-reader-dialog.tsx +38 -29
- package/src/features/inbox/managers/inbox.manager.test.ts +28 -0
- package/src/features/inbox/managers/inbox.manager.ts +18 -4
- package/src/features/inbox/pages/inbox-page.test.ts +4 -2
- package/src/features/inbox/pages/inbox-page.tsx +14 -10
- package/src/features/marketplace/components/__tests__/marketplace-page-detail.test.tsx +1 -0
- package/src/features/marketplace/components/__tests__/marketplace-page.test.tsx +1 -0
- package/src/features/marketplace/components/mcp/__tests__/mcp-marketplace-page.test.tsx +2 -0
- package/src/features/marketplace/components/mcp/mcp-marketplace-card.tsx +2 -2
- package/src/features/marketplace/components/mcp/mcp-marketplace-page.tsx +23 -1
- package/src/features/marketplace/hooks/use-marketplace-item-detail.ts +11 -0
- package/src/features/panel-apps/components/panel-app-list-item.tsx +4 -3
- package/src/features/panel-apps/components/panel-app-service-action-authorization-dialog.tsx +2 -2
- package/src/features/panel-apps/index.ts +1 -0
- package/src/features/panel-apps/utils/panel-app-doc-browser.utils.tsx +5 -24
- package/src/features/projects/components/work/project-work-item-drawer.tsx +7 -10
- package/src/features/projects/components/work/project-work-items.tsx +1 -1
- package/src/features/projects/pages/project-home-page.tsx +18 -23
- package/src/features/projects/pages/projects-page.test.tsx +4 -1
- package/src/features/pwa/managers/__tests__/pwa-shell-theme.manager.test.ts +3 -3
- package/src/features/pwa/managers/pwa-shell-theme.manager.ts +8 -3
- package/src/features/right-panel-resources/components/__tests__/page-resource-icon.test.tsx +13 -2
- package/src/features/right-panel-resources/components/__tests__/system-object-resource.test.tsx +74 -6
- package/src/features/right-panel-resources/components/native-object-resource.tsx +134 -0
- package/src/features/right-panel-resources/components/page-resource-icon.tsx +16 -8
- package/src/features/right-panel-resources/components/system-object-resource.tsx +66 -1
- package/src/features/right-panel-resources/components/workspace-file-resource.tsx +9 -0
- package/src/features/right-panel-resources/configs/right-panel-resource-routes.config.ts +11 -21
- package/src/features/right-panel-resources/index.ts +3 -0
- package/src/features/right-panel-resources/managers/__tests__/page-resource.manager.test.ts +14 -4
- package/src/features/right-panel-resources/managers/page-resource.manager.ts +38 -21
- package/src/features/right-panel-resources/utils/__tests__/right-panel-resource-route-resolver.utils.test.ts +17 -0
- package/src/features/right-panel-resources/utils/right-panel-resource-uri.utils.ts +3 -2
- package/src/features/service-apps/components/service-action-row.tsx +4 -3
- package/src/features/service-apps/components/service-app-delete-dialog.tsx +2 -2
- package/src/features/service-apps/components/service-app-list-item.tsx +5 -4
- package/src/features/service-apps/components/service-apps-panel.tsx +5 -2
- package/src/features/settings/components/config/provider-model-suggestions-panel.tsx +1 -1
- package/src/features/settings/pages/providers-config-page.tsx +3 -2
- package/src/index.css +42 -8
- package/src/shared/components/doc-browser/__tests__/doc-browser-context.test.tsx +16 -0
- package/src/shared/components/doc-browser/__tests__/doc-browser.test.tsx +2 -2
- package/src/shared/components/doc-browser/__tests__/resource-link-interceptor.test.tsx +29 -1
- package/src/shared/components/doc-browser/doc-browser-tab-strip.tsx +2 -2
- package/src/shared/components/doc-browser/stores/doc-browser.store.ts +13 -7
- package/src/shared/components/doc-browser/utils/doc-browser-url.utils.ts +2 -1
- package/src/shared/components/path-picker/server-path-picker-dialog.tsx +5 -3
- package/src/shared/components/ui/__tests__/dialog.test.tsx +37 -1
- package/src/shared/components/ui/actions/action-feedback.ts +1 -8
- package/src/shared/components/ui/actions/icon-action-button.tsx +1 -1
- package/src/shared/components/ui/confirm-dialog.tsx +1 -2
- package/src/shared/components/ui/context-menu/context-menu-items.tsx +2 -2
- package/src/shared/components/ui/dialog.tsx +29 -7
- package/src/shared/components/ui/popover.tsx +14 -3
- package/src/shared/components/ui/skeleton.tsx +16 -2
- package/src/shared/components/ui/tab-strip/compact-tab-strip.tsx +2 -2
- package/src/shared/components/ui/tooltip.tsx +2 -1
- package/src/shared/components/workbench/__tests__/workbench-surface.test.tsx +21 -0
- package/src/shared/components/workbench/workbench-surface-toolbar.tsx +4 -0
- package/src/shared/components/workbench/workbench-surface.tsx +4 -1
- package/src/shared/lib/i18n/locales/en-US/chat.json +21 -7
- package/src/shared/lib/i18n/locales/en-US/core.json +5 -1
- package/src/shared/lib/i18n/locales/en-US/doc-browser.json +10 -5
- package/src/shared/lib/i18n/locales/en-US/inbox.json +1 -0
- package/src/shared/lib/i18n/locales/zh-CN/chat.json +21 -7
- package/src/shared/lib/i18n/locales/zh-CN/core.json +5 -1
- package/src/shared/lib/i18n/locales/zh-CN/doc-browser.json +11 -6
- package/src/shared/lib/i18n/locales/zh-CN/inbox.json +1 -0
- package/src/shared/lib/theme/index.test.ts +28 -1
- package/src/shared/lib/theme/index.ts +14 -3
- package/src/shared/lib/transport/__tests__/local-transport.service.test.ts +24 -0
- package/src/shared/lib/transport/local-transport.service.ts +8 -6
- package/dist/assets/account-panel-BAH7FW6z.js +0 -1
- package/dist/assets/api-DjiZvIa0.js +0 -20
- package/dist/assets/app-presenter-provider-CCRFsFYr.js +0 -232
- package/dist/assets/appearance-settings-page-CdP86QJ7.js +0 -1
- package/dist/assets/architecture-TIHT7OUA-CvnC-LeA.js +0 -1
- package/dist/assets/channel-CpMstUPF.js +0 -1
- package/dist/assets/channels-list-page-5qGagKuE.js +0 -8
- package/dist/assets/chunk-2Q5K7J3B-Djp3VF0s.js +0 -1
- package/dist/assets/chunk-VAUOI2AC-BrbiIC1Q.js +0 -1
- package/dist/assets/chunk-XXDRQBXY-Cx9N40wF.js +0 -1
- package/dist/assets/classDiagram-OUVF2IWQ-DFN1v3PQ.js +0 -1
- package/dist/assets/classDiagram-v2-EOCWNBFH-DRvglADa.js +0 -1
- package/dist/assets/config-split-page-CuEGQL8Z.js +0 -1
- package/dist/assets/confirm-dialog-CxfecBzO.js +0 -1
- package/dist/assets/context-menu-BsCj2fRs.js +0 -1
- package/dist/assets/cynefin-VYW2F7L2-DXUGnpJH.js +0 -1
- package/dist/assets/desktop-update-config-e-zhkJuS.js +0 -1
- package/dist/assets/dialog-QjQoKbIV.js +0 -5
- package/dist/assets/doc-browser-CLEdkH9z.js +0 -1
- package/dist/assets/doc-browser-context-DwgG6wrz.js +0 -1
- package/dist/assets/es2015-Bp6cuSGh.js +0 -41
- package/dist/assets/eventmodeling-45OFAUF4-ZBfVS3ZC.js +0 -1
- package/dist/assets/extensions-CgShSIkd.js +0 -1
- package/dist/assets/eye-kisejBFH.js +0 -1
- package/dist/assets/flowDiagram-23GEKE2U-CqdsKk6x.js +0 -1
- package/dist/assets/gitGraph-TEB2WS4Q-fHYFd9Es.js +0 -1
- package/dist/assets/info-DKCQHKI2-CSaOL_bb.js +0 -1
- package/dist/assets/katex-B4FQSo9k.js +0 -1
- package/dist/assets/keyboard-shortcuts-settings-page-DZ8A1iLg.js +0 -1
- package/dist/assets/loader-circle-Bd1fTm-x.js +0 -1
- package/dist/assets/login-page-D99JjH9F.js +0 -1
- package/dist/assets/main-Bt5r6b21.js +0 -2
- package/dist/assets/main-DXd_aKJV.css +0 -1
- package/dist/assets/main-i18n-catalog.config-D0Ll36J_.js +0 -1
- package/dist/assets/mcp-marketplace-page-DUoGfSmY.js +0 -1
- package/dist/assets/model-config-page-9NNf-mzK.js +0 -1
- package/dist/assets/packet-7NZHBO7P-D-YFTczs.js +0 -1
- package/dist/assets/panel-app-BYfQu_TS.js +0 -1
- package/dist/assets/panel-app-i18n-catalog.config-Ddf2Kv8A.js +0 -1
- package/dist/assets/panelStandalone-BRg7B1EI.css +0 -1
- package/dist/assets/panelStandalone-BaUzY8Wy.js +0 -2
- package/dist/assets/pie-RZYD4A2V-VEnYu9s5.js +0 -1
- package/dist/assets/privacy-settings-page-CVMBFuak.js +0 -1
- package/dist/assets/projects-BEsU3box.js +0 -1
- package/dist/assets/provider-models-Dm-pmWAA.js +0 -1
- package/dist/assets/provider-scoped-model-input-CzrXg4cX.js +0 -1
- package/dist/assets/providers-config-page-839uUADZ.js +0 -1
- package/dist/assets/puzzle-BGvD2DPZ.js +0 -1
- package/dist/assets/pwa-DNNK_8E9.js +0 -1
- package/dist/assets/radar-I7S5WNFK-BFNIekC1.js +0 -1
- package/dist/assets/railroad-3IZDKUUU-lVqJ3Hak.js +0 -1
- package/dist/assets/railroad-abnf-AHOZXSZD-DYaefdFC.js +0 -1
- package/dist/assets/railroad-ebnf-EBAXGLYW-CTAk6lVq.js +0 -1
- package/dist/assets/railroad-peg-LSFZ7HO6-Cob294tg.js +0 -1
- package/dist/assets/remote-B5qIuUbT.js +0 -1
- package/dist/assets/runtime-config-page-Bf-4JYxQ.js +0 -1
- package/dist/assets/search-config-page-C0qA3j-T.js +0 -1
- package/dist/assets/secrets-config-page-DxfZWpnk.js +0 -3
- package/dist/assets/security-config-CItfIQZ4.js +0 -1
- package/dist/assets/select-CWyjnar7.js +0 -1
- package/dist/assets/service-apps-panel-D3SOkRVv.js +0 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-BrNv-raG.js +0 -1
- package/dist/assets/swimlanesDiagram-G3AALYLV-ntcxaPXp.js +0 -8
- package/dist/assets/tag-chip-BIuavK2K.js +0 -1
- package/dist/assets/theme-provider-CWUz4yO9.js +0 -1
- package/dist/assets/trash-2-hAbJh9VZ.js +0 -1
- package/dist/assets/treeView-QDETBFTQ-DbFmr-gw.js +0 -1
- package/dist/assets/treemap-6X3UGDF4-C8aY96pi.js +0 -1
- package/dist/assets/use-config-evzage09.js +0 -1
- package/dist/assets/use-viewport-layout-D_9XWGDV.js +0 -1
- package/dist/assets/wardley-OPB4EBWU-D8d6DbbJ.js +0 -1
- package/dist/assets/x-ChPbNv39.js +0 -1
- package/src/features/apps/components/app-marketplace-dialog.tsx +0 -168
- /package/dist/assets/{array-BV9OtnO8.js → array-DsNX3jRj.js} +0 -0
- /package/dist/assets/{chunk-KEIR6QF5-Cx-8EJ4_.js → chunk-KEIR6QF5-BOAXXeyv.js} +0 -0
- /package/dist/assets/{chunk-Y2CYZVJY-Dy1ufvjf.js → chunk-Y2CYZVJY-CHjSjwoV.js} +0 -0
- /package/dist/assets/{config-hints-DbmiyTKg.js → config-hints-CaB3I7KP.js} +0 -0
- /package/dist/assets/{cytoscape.esm-CSCjuT4Z.js → cytoscape.esm-j4J9a91l.js} +0 -0
- /package/dist/assets/{defaultLocale-DWTiNsbT.js → defaultLocale-Bmxjp-V_.js} +0 -0
- /package/dist/assets/{dist-BVCSkfWY.js → dist-DwLj1Wg5.js} +0 -0
- /package/dist/assets/{graphlib-B1yb1Wl8.js → graphlib-CC0HTn1v.js} +0 -0
- /package/dist/assets/{host-capabilities-DuIFVsvM.js → host-capabilities-B107nwS3.js} +0 -0
- /package/dist/assets/{init-BF6GH5oe.js → init-Biz9Rus1.js} +0 -0
- /package/dist/assets/{jszip.min-D12teKzP.js → jszip.min-DQvBVV_R.js} +0 -0
- /package/dist/assets/{katex-CsAM73R9.js → katex-BzT-4KBu.js} +0 -0
- /package/dist/assets/{navigation-history-CzErJuPG.js → navigation-history-CCnxsAKR.js} +0 -0
- /package/dist/assets/{path-C56XkznJ.js → path-4azsBPZv.js} +0 -0
- /package/dist/assets/{preload-helper-ca-nBW7U.js → preload-helper-DWTEM3RW.js} +0 -0
- /package/dist/assets/{rough.esm-CGfeEbtE.js → rough.esm-w1lBArN6.js} +0 -0
- /package/dist/assets/{xlsx-sds5nUpL.js → xlsx--SB9KlFl.js} +0 -0
package/index.html
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
html,
|
|
18
18
|
body,
|
|
19
19
|
#root {
|
|
20
|
-
background: #
|
|
20
|
+
background: #faf8f4;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
html[data-theme="minimal"],
|
|
@@ -80,71 +80,20 @@
|
|
|
80
80
|
background: #fefcf6;
|
|
81
81
|
}
|
|
82
82
|
</style>
|
|
83
|
-
<script>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
island: '#FBF8ED',
|
|
98
|
-
probe: '#FEFCF6'
|
|
99
|
-
};
|
|
100
|
-
const themeAppearances = {
|
|
101
|
-
natural: 'light',
|
|
102
|
-
work: 'light',
|
|
103
|
-
minimal: 'light',
|
|
104
|
-
warm: 'light',
|
|
105
|
-
cool: 'light',
|
|
106
|
-
dawn: 'light',
|
|
107
|
-
graphite: 'light',
|
|
108
|
-
night: 'dark',
|
|
109
|
-
charcoal: 'dark',
|
|
110
|
-
island: 'light',
|
|
111
|
-
probe: 'light'
|
|
112
|
-
};
|
|
113
|
-
const legacyThemeAliases = {
|
|
114
|
-
leaf: 'warm'
|
|
115
|
-
};
|
|
116
|
-
const normalizedStoredTheme = typeof storedTheme === 'string' && Object.prototype.hasOwnProperty.call(legacyThemeAliases, storedTheme)
|
|
117
|
-
? legacyThemeAliases[storedTheme]
|
|
118
|
-
: storedTheme;
|
|
119
|
-
const nextTheme = Object.prototype.hasOwnProperty.call(themeColors, normalizedStoredTheme)
|
|
120
|
-
? normalizedStoredTheme
|
|
121
|
-
: 'work';
|
|
122
|
-
if (storedTheme !== nextTheme) {
|
|
123
|
-
window.localStorage.setItem(storageKey, nextTheme);
|
|
124
|
-
}
|
|
125
|
-
if (nextTheme === 'island') {
|
|
126
|
-
const islandBackgroundPreload = document.createElement('link');
|
|
127
|
-
islandBackgroundPreload.rel = 'preload';
|
|
128
|
-
islandBackgroundPreload.as = 'image';
|
|
129
|
-
islandBackgroundPreload.href = '/themes/island/island-atmosphere-7a037243.webp';
|
|
130
|
-
islandBackgroundPreload.fetchPriority = 'high';
|
|
131
|
-
document.head.appendChild(islandBackgroundPreload);
|
|
132
|
-
}
|
|
133
|
-
const themeColor = themeColors[nextTheme];
|
|
134
|
-
const themeAppearance = themeAppearances[nextTheme];
|
|
135
|
-
document.documentElement.setAttribute('data-theme', nextTheme);
|
|
136
|
-
document.documentElement.setAttribute('data-theme-appearance', themeAppearance);
|
|
137
|
-
document.documentElement.style.backgroundColor = themeColor;
|
|
138
|
-
document.documentElement.style.colorScheme = themeAppearance;
|
|
139
|
-
const themeMeta = document.querySelector('meta[name="theme-color"]');
|
|
140
|
-
if (themeMeta) {
|
|
141
|
-
themeMeta.setAttribute('content', themeColor);
|
|
142
|
-
}
|
|
143
|
-
const colorSchemeMeta = document.querySelector('meta[name="color-scheme"]');
|
|
144
|
-
if (colorSchemeMeta) {
|
|
145
|
-
colorSchemeMeta.setAttribute('content', themeAppearance);
|
|
146
|
-
}
|
|
147
|
-
})();
|
|
83
|
+
<script type="module">
|
|
84
|
+
import { initializeTheme, resolveTheme } from '/src/shared/lib/theme/index.ts';
|
|
85
|
+
import { pwaShellThemeManager } from '/src/features/pwa/managers/pwa-shell-theme.manager.ts';
|
|
86
|
+
|
|
87
|
+
const theme = initializeTheme();
|
|
88
|
+
pwaShellThemeManager.syncTheme(theme);
|
|
89
|
+
if (resolveTheme(theme) === 'island') {
|
|
90
|
+
const preload = document.createElement('link');
|
|
91
|
+
preload.rel = 'preload';
|
|
92
|
+
preload.as = 'image';
|
|
93
|
+
preload.href = '/themes/island/island-atmosphere-7a037243.webp';
|
|
94
|
+
preload.fetchPriority = 'high';
|
|
95
|
+
document.head.appendChild(preload);
|
|
96
|
+
}
|
|
148
97
|
</script>
|
|
149
98
|
<script>
|
|
150
99
|
(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"zod": "^3.23.8",
|
|
36
36
|
"zustand": "^5.0.2",
|
|
37
37
|
"@nextclaw/agent-chat": "0.3.14",
|
|
38
|
-
"@nextclaw/
|
|
38
|
+
"@nextclaw/agent-chat-ui": "0.12.2",
|
|
39
39
|
"@nextclaw/ncp": "0.11.2",
|
|
40
|
-
"@nextclaw/
|
|
41
|
-
"@nextclaw/ncp-http-agent-client": "0.4.
|
|
40
|
+
"@nextclaw/client-sdk": "0.12.11",
|
|
41
|
+
"@nextclaw/ncp-http-agent-client": "0.4.26",
|
|
42
42
|
"@nextclaw/ncp-react": "0.5.30",
|
|
43
43
|
"@nextclaw/ncp-toolkit": "0.6.27",
|
|
44
|
-
"@nextclaw/shared": "0.8.
|
|
44
|
+
"@nextclaw/shared": "0.8.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@testing-library/react": "^16.3.0",
|
|
@@ -65,6 +65,8 @@
|
|
|
65
65
|
|
|
66
66
|
/* Foreground (Text) */
|
|
67
67
|
--foreground: var(--gray-800);
|
|
68
|
+
--welcome-title-foreground: var(--foreground);
|
|
69
|
+
--welcome-title-weight: 600;
|
|
68
70
|
--foreground-secondary: var(--gray-700);
|
|
69
71
|
--foreground-tertiary: var(--gray-500);
|
|
70
72
|
--foreground-muted: var(--gray-400);
|
|
@@ -94,6 +96,13 @@
|
|
|
94
96
|
--sidebar-interaction-hover: hsl(var(--gray-200) / 0.6);
|
|
95
97
|
--sidebar-interaction-selection: hsl(var(--gray-200) / 0.8);
|
|
96
98
|
--sidebar-segment-selection: hsl(var(--gray-200) / 0.7);
|
|
99
|
+
--sidebar-create-background: hsl(var(--primary) / 0.1);
|
|
100
|
+
--sidebar-create-hover: hsl(var(--primary) / 0.15);
|
|
101
|
+
--sidebar-create-foreground: hsl(var(--primary));
|
|
102
|
+
--sidebar-create-hover-foreground: hsl(var(--accent-foreground));
|
|
103
|
+
--sidebar-create-radius: 0.5rem;
|
|
104
|
+
--sidebar-create-weight: 500;
|
|
105
|
+
--sidebar-create-shadow: none;
|
|
97
106
|
/* Mobile conversation rows retain their separate paper surface. */
|
|
98
107
|
--session-interaction-hover: hsl(var(--background) / 0.65);
|
|
99
108
|
--session-interaction-selection: hsl(var(--background) / 0.9);
|
|
@@ -394,7 +403,9 @@
|
|
|
394
403
|
}
|
|
395
404
|
|
|
396
405
|
@layer base {
|
|
397
|
-
:root[data-theme="warm"]
|
|
406
|
+
:root[data-theme="warm"],
|
|
407
|
+
:root[data-theme="plain-paper"],
|
|
408
|
+
:root[data-theme="paper-ink"] {
|
|
398
409
|
/* ========================================
|
|
399
410
|
BRAND COLORS (Paper Taupe)
|
|
400
411
|
======================================== */
|
|
@@ -466,6 +477,79 @@
|
|
|
466
477
|
}
|
|
467
478
|
|
|
468
479
|
@layer base {
|
|
480
|
+
:root[data-theme="paper-ink"] {
|
|
481
|
+
/* Warm paper and olive ink with restrained contrast. */
|
|
482
|
+
--brand-50: 70 15% 95%;
|
|
483
|
+
--brand-100: 75 13% 90%;
|
|
484
|
+
--brand-200: 85 12% 80%;
|
|
485
|
+
--brand-300: 100 10% 65%;
|
|
486
|
+
--brand-400: 88 13% 44%;
|
|
487
|
+
--brand-500: 86 14% 32%;
|
|
488
|
+
--brand-600: 86 15% 27%;
|
|
489
|
+
--brand-700: 86 15% 22%;
|
|
490
|
+
--brand-800: 86 13% 16%;
|
|
491
|
+
--brand-900: 86 11% 10%;
|
|
492
|
+
--primary-foreground: 42 35% 94%;
|
|
493
|
+
--welcome-title-foreground: 105 4% 32%;
|
|
494
|
+
--welcome-title-weight: 500;
|
|
495
|
+
--gray-700: 45 8% 27%;
|
|
496
|
+
--gray-800: 45 9% 18%;
|
|
497
|
+
--gray-900: 45 10% 11%;
|
|
498
|
+
--accent: 70 12% 90%;
|
|
499
|
+
--link-foreground: 86 16% 29%;
|
|
500
|
+
--link-foreground-hover: 86 16% 23%;
|
|
501
|
+
--sidebar-create-background: hsl(38 27% 90%);
|
|
502
|
+
--sidebar-create-hover: hsl(38 25% 87%);
|
|
503
|
+
--sidebar-create-foreground: hsl(var(--brand-500));
|
|
504
|
+
--sidebar-create-hover-foreground: hsl(var(--brand-600));
|
|
505
|
+
--sidebar-create-radius: 0.5rem;
|
|
506
|
+
--sidebar-create-weight: 400;
|
|
507
|
+
--sidebar-create-shadow: none;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
:root[data-theme="paper-ink"] .nextclaw-chat-message-user {
|
|
511
|
+
background-color: hsl(var(--brand-500));
|
|
512
|
+
border-color: transparent;
|
|
513
|
+
color: hsl(var(--primary-foreground));
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
:root[data-theme="plain-paper"] {
|
|
517
|
+
/* Paper, tea-gray washes and soft graphite: one warm neutral family. */
|
|
518
|
+
--brand-50: 38 25% 95%;
|
|
519
|
+
--brand-100: 36 22% 91%;
|
|
520
|
+
--brand-200: 34 17% 83%;
|
|
521
|
+
--brand-300: 32 12% 70%;
|
|
522
|
+
--brand-400: 30 8% 51%;
|
|
523
|
+
--brand-500: 28 7% 35%;
|
|
524
|
+
--brand-600: 28 8% 29%;
|
|
525
|
+
--brand-700: 28 8% 24%;
|
|
526
|
+
--brand-800: 28 7% 18%;
|
|
527
|
+
--brand-900: 28 6% 12%;
|
|
528
|
+
--gray-700: 30 6% 28%;
|
|
529
|
+
--gray-800: 30 5% 22%;
|
|
530
|
+
--gray-900: 30 5% 14%;
|
|
531
|
+
--primary-foreground: 40 38% 97%;
|
|
532
|
+
--welcome-title-foreground: 30 5% 33%;
|
|
533
|
+
--welcome-title-weight: 500;
|
|
534
|
+
--accent: 36 20% 91%;
|
|
535
|
+
--border: 35 18% 86%;
|
|
536
|
+
--card-border: var(--border);
|
|
537
|
+
--input-border: var(--border);
|
|
538
|
+
--link-foreground: 28 18% 34%;
|
|
539
|
+
--link-foreground-hover: 28 18% 26%;
|
|
540
|
+
--sidebar-create-background: hsl(36 22% 90%);
|
|
541
|
+
--sidebar-create-hover: hsl(36 20% 87%);
|
|
542
|
+
--sidebar-create-foreground: hsl(var(--brand-600));
|
|
543
|
+
--sidebar-create-hover-foreground: hsl(var(--brand-700));
|
|
544
|
+
--sidebar-create-weight: 400;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
:root[data-theme="plain-paper"] .nextclaw-chat-message-user {
|
|
548
|
+
background-color: hsl(var(--brand-100));
|
|
549
|
+
border-color: transparent;
|
|
550
|
+
color: hsl(var(--foreground));
|
|
551
|
+
}
|
|
552
|
+
|
|
469
553
|
:root[data-theme="cool"] {
|
|
470
554
|
/* ========================================
|
|
471
555
|
BRAND COLORS (Mist Blue)
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
|
|
305
305
|
:root[data-theme="island"]
|
|
306
306
|
[data-theme-surface="doc-browser"]
|
|
307
|
-
.
|
|
307
|
+
.compact-tab-scrollbar {
|
|
308
308
|
background-color: transparent;
|
|
309
309
|
}
|
|
310
310
|
|
|
@@ -446,20 +446,22 @@
|
|
|
446
446
|
:root[data-theme="island"]
|
|
447
447
|
:is(
|
|
448
448
|
.custom-scrollbar,
|
|
449
|
-
.workspace-horizontal-scrollbar
|
|
450
|
-
.doc-browser-tab-scrollbar
|
|
449
|
+
.workspace-horizontal-scrollbar
|
|
451
450
|
) {
|
|
452
451
|
scrollbar-color: hsl(var(--brand-400) / 0.35) transparent;
|
|
453
452
|
}
|
|
454
453
|
|
|
455
454
|
:root[data-theme="island"] .custom-scrollbar::-webkit-scrollbar-thumb,
|
|
456
455
|
:root[data-theme="island"]
|
|
457
|
-
.workspace-horizontal-scrollbar::-webkit-scrollbar-thumb
|
|
458
|
-
:root[data-theme="island"]
|
|
459
|
-
.doc-browser-tab-scrollbar::-webkit-scrollbar-thumb {
|
|
456
|
+
.workspace-horizontal-scrollbar::-webkit-scrollbar-thumb {
|
|
460
457
|
background: hsl(var(--brand-400) / 0.3);
|
|
461
458
|
}
|
|
462
459
|
|
|
460
|
+
:root[data-theme="island"] .compact-tab-scrollbar {
|
|
461
|
+
--tab-scrollbar-thumb: hsl(var(--brand-400) / 0.3);
|
|
462
|
+
--tab-scrollbar-thumb-hover: hsl(var(--brand-400) / 0.4);
|
|
463
|
+
}
|
|
464
|
+
|
|
463
465
|
@media (max-width: 760px) {
|
|
464
466
|
:root[data-theme="island"] [data-theme-surface="app-shell"] {
|
|
465
467
|
background-image: none;
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import { setLanguage } from "@/shared/lib/i18n";
|
|
11
11
|
|
|
12
12
|
const mocks = vi.hoisted(() => ({
|
|
13
|
+
openResource: vi.fn(),
|
|
13
14
|
createAgent: vi.fn(),
|
|
14
15
|
updateAgent: vi.fn(),
|
|
15
16
|
deleteAgent: vi.fn(),
|
|
@@ -99,6 +100,7 @@ const mocks = vi.hoisted(() => ({
|
|
|
99
100
|
},
|
|
100
101
|
},
|
|
101
102
|
}));
|
|
103
|
+
vi.mock("@/app/components/app-presenter-provider", () => ({ useAppPresenter: () => ({ pageResourceManager: { open: mocks.openResource } }) }));
|
|
102
104
|
const persistStorage = new Map<string, unknown>();
|
|
103
105
|
|
|
104
106
|
function createPersistStorage() {
|
|
@@ -290,18 +292,19 @@ describe("AgentsPage", () => {
|
|
|
290
292
|
it("separates read-only details from editing and keeps advanced config collapsed until requested", async () => {
|
|
291
293
|
const user = userEvent.setup();
|
|
292
294
|
|
|
293
|
-
renderAgentsPage();
|
|
295
|
+
const view = renderAgentsPage();
|
|
294
296
|
|
|
295
297
|
await user.click(screen.getAllByRole("button", { name: "更多操作" })[1]);
|
|
296
298
|
await user.click(screen.getByRole("button", { name: "查看详情" }));
|
|
299
|
+
expect(mocks.openResource).toHaveBeenCalled();
|
|
300
|
+
view.rerender(<MemoryRouter><AgentsPage resourceId="researcher" /></MemoryRouter>);
|
|
297
301
|
|
|
298
302
|
expect(screen.getByText("身份")).toBeTruthy();
|
|
299
303
|
expect(screen.getByText("上下文窗口大小")).toBeTruthy();
|
|
300
304
|
expect(screen.getByText("128,000")).toBeTruthy();
|
|
301
305
|
expect(screen.queryByRole("button", { name: "保存编辑" })).toBeNull();
|
|
302
|
-
const detailsDialog = screen.
|
|
303
|
-
expect(
|
|
304
|
-
expect(detailsDialog?.className).toContain("bg-popover");
|
|
306
|
+
const detailsDialog = screen.getByTestId("agent-detail");
|
|
307
|
+
expect(screen.queryByRole("dialog")).toBeNull();
|
|
305
308
|
const detailLists = Array.from(detailsDialog?.querySelectorAll("dl") ?? []);
|
|
306
309
|
expect(detailLists.length).toBeGreaterThan(0);
|
|
307
310
|
expect(
|
|
@@ -327,7 +330,7 @@ describe("AgentsPage", () => {
|
|
|
327
330
|
(term) => {
|
|
328
331
|
const item = term.parentElement;
|
|
329
332
|
return Boolean(
|
|
330
|
-
item?.className.includes("grid-cols-[
|
|
333
|
+
item?.className.includes("grid-cols-[minmax(0,30%)_minmax(0,1fr)]") &&
|
|
331
334
|
!item.className.includes("space-y"),
|
|
332
335
|
);
|
|
333
336
|
},
|
|
@@ -20,6 +20,8 @@ import { Bot, Brain, Gauge, Pencil, Sparkles, type LucideIcon } from "lucide-rea
|
|
|
20
20
|
type AgentDefaultsView = ConfigView["agents"]["defaults"];
|
|
21
21
|
|
|
22
22
|
type AgentDetailsDialogProps = {
|
|
23
|
+
embedded?: boolean;
|
|
24
|
+
onChat?: (agent: AgentProfileView) => void;
|
|
23
25
|
agent: AgentProfileView | null;
|
|
24
26
|
defaults?: AgentDefaultsView;
|
|
25
27
|
runtimeOptions: { value: string; label: string }[];
|
|
@@ -32,6 +34,8 @@ type AgentDetailsDialogProps = {
|
|
|
32
34
|
const numberFormatter = new Intl.NumberFormat();
|
|
33
35
|
|
|
34
36
|
export function AgentDetailsDialog({
|
|
37
|
+
embedded = false,
|
|
38
|
+
onChat,
|
|
35
39
|
agent,
|
|
36
40
|
defaults,
|
|
37
41
|
runtimeOptions,
|
|
@@ -70,12 +74,15 @@ export function AgentDetailsDialog({
|
|
|
70
74
|
);
|
|
71
75
|
const models = resolveRecordValue(agent.models, defaults?.models);
|
|
72
76
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<DialogContent className="flex max-h-[calc(100vh-2rem)] flex-col overflow-hidden border-none bg-popover p-0 sm:max-h-[720px] sm:max-w-2xl">
|
|
77
|
+
const content = (
|
|
78
|
+
<>
|
|
76
79
|
<div className="shrink-0 px-5 pb-3 pt-5">
|
|
77
|
-
<DialogHeader
|
|
78
|
-
|
|
80
|
+
<DialogHeader
|
|
81
|
+
showClose={!embedded}
|
|
82
|
+
className="items-center"
|
|
83
|
+
actions={<PageResourceActionsMenu page={pageResourceFromSystemObject('agent', agent.id, agent.displayName || agent.id)} />}
|
|
84
|
+
>
|
|
85
|
+
<div className="flex min-w-0 items-center gap-3">
|
|
79
86
|
<AgentAvatar
|
|
80
87
|
agentId={agent.id}
|
|
81
88
|
displayName={agent.displayName}
|
|
@@ -90,7 +97,6 @@ export function AgentDetailsDialog({
|
|
|
90
97
|
@{agent.id}
|
|
91
98
|
</DialogDescription>
|
|
92
99
|
</div>
|
|
93
|
-
<PageResourceActionsMenu page={pageResourceFromSystemObject('agent', agent.id, agent.displayName || agent.id)} />
|
|
94
100
|
</div>
|
|
95
101
|
</DialogHeader>
|
|
96
102
|
</div>
|
|
@@ -111,13 +117,11 @@ export function AgentDetailsDialog({
|
|
|
111
117
|
<DetailItem
|
|
112
118
|
label={t("agentsDetailsFieldDescription")}
|
|
113
119
|
value={agent.description?.trim() || t("agentsDetailsEmptyValue")}
|
|
114
|
-
wide
|
|
115
120
|
/>
|
|
116
121
|
<DetailItem
|
|
117
122
|
label={t("agentsDetailsFieldWorkspace")}
|
|
118
123
|
value={agent.workspace ?? t("agentsDetailsUnsetValue")}
|
|
119
124
|
mono
|
|
120
|
-
wide
|
|
121
125
|
/>
|
|
122
126
|
</DetailSection>
|
|
123
127
|
|
|
@@ -184,13 +188,14 @@ export function AgentDetailsDialog({
|
|
|
184
188
|
</DetailSection>
|
|
185
189
|
</div>
|
|
186
190
|
<DialogFooter className="shrink-0 px-5 pb-4 pt-2">
|
|
187
|
-
<Button
|
|
191
|
+
{!embedded && <Button
|
|
188
192
|
type="button"
|
|
189
193
|
variant="ghost"
|
|
190
194
|
onClick={() => onOpenChange(false)}
|
|
191
195
|
>
|
|
192
196
|
{t("cancel")}
|
|
193
|
-
</Button>
|
|
197
|
+
</Button>}
|
|
198
|
+
{onChat && <Button onClick={() => onChat(agent)}>{t("agentsCardStartChat")}</Button>}
|
|
194
199
|
<Button
|
|
195
200
|
type="button"
|
|
196
201
|
variant="primary"
|
|
@@ -201,9 +206,13 @@ export function AgentDetailsDialog({
|
|
|
201
206
|
{t("agentsDetailsEditAction")}
|
|
202
207
|
</Button>
|
|
203
208
|
</DialogFooter>
|
|
204
|
-
|
|
205
|
-
</Dialog>
|
|
209
|
+
</>
|
|
206
210
|
);
|
|
211
|
+
return <Dialog open={!embedded && agent !== null} onOpenChange={onOpenChange}>
|
|
212
|
+
{embedded ? <div className="flex h-full min-h-0 flex-col" data-testid="agent-detail">{content}</div> : (
|
|
213
|
+
<DialogContent className="flex max-h-[calc(100vh-2rem)] flex-col overflow-hidden border-none bg-popover p-0 sm:max-h-[720px] sm:max-w-2xl">{content}</DialogContent>
|
|
214
|
+
)}
|
|
215
|
+
</Dialog>;
|
|
207
216
|
}
|
|
208
217
|
|
|
209
218
|
type DetailSource = "default" | "override";
|
|
@@ -320,7 +329,7 @@ function DetailSection(props: {
|
|
|
320
329
|
<Icon className="h-3.5 w-3.5 text-muted-foreground" />
|
|
321
330
|
{title}
|
|
322
331
|
</h3>
|
|
323
|
-
<dl className="grid min-w-0 gap-
|
|
332
|
+
<dl className="grid min-w-0 gap-y-2.5 pl-5">
|
|
324
333
|
{children}
|
|
325
334
|
</dl>
|
|
326
335
|
</section>
|
|
@@ -333,7 +342,6 @@ function DetailItem(props: {
|
|
|
333
342
|
source?: DetailSource;
|
|
334
343
|
mono?: boolean;
|
|
335
344
|
prewrap?: boolean;
|
|
336
|
-
wide?: boolean;
|
|
337
345
|
}) {
|
|
338
346
|
const {
|
|
339
347
|
label,
|
|
@@ -341,7 +349,6 @@ function DetailItem(props: {
|
|
|
341
349
|
source,
|
|
342
350
|
mono = false,
|
|
343
351
|
prewrap = false,
|
|
344
|
-
wide = false,
|
|
345
352
|
} = props;
|
|
346
353
|
|
|
347
354
|
const isStructuredValue = prewrap && value.trim().startsWith("{");
|
|
@@ -350,12 +357,11 @@ function DetailItem(props: {
|
|
|
350
357
|
return (
|
|
351
358
|
<div
|
|
352
359
|
className={cn(
|
|
353
|
-
"grid min-w-0 grid-cols-
|
|
354
|
-
(wide || isStructuredValue) && "sm:col-span-2",
|
|
360
|
+
"grid min-w-0 grid-cols-[minmax(0,30%)_minmax(0,1fr)] items-baseline gap-x-3 gap-y-1",
|
|
355
361
|
)}
|
|
356
362
|
>
|
|
357
363
|
<dt className="flex min-w-0 items-baseline leading-5">
|
|
358
|
-
<span className="
|
|
364
|
+
<span className="text-xs font-medium text-muted-foreground">
|
|
359
365
|
{label}
|
|
360
366
|
</span>
|
|
361
367
|
</dt>
|
|
@@ -48,6 +48,8 @@ import {
|
|
|
48
48
|
Trash2,
|
|
49
49
|
} from "lucide-react";
|
|
50
50
|
import { toast } from "sonner";
|
|
51
|
+
import { useAppPresenter } from "@/app/components/app-presenter-provider";
|
|
52
|
+
import { useNavigate } from "react-router-dom";
|
|
51
53
|
|
|
52
54
|
const AGENT_CREATION_PROMPT =
|
|
53
55
|
"请直接创建一个默认示例 Agent,不要问我问题。创建完成后,简单告诉我它能做什么。";
|
|
@@ -200,19 +202,19 @@ function AgentListCard(props: {
|
|
|
200
202
|
<AgentActionMenuItem
|
|
201
203
|
icon={Eye}
|
|
202
204
|
label={t("agentsViewDetailsAction")}
|
|
203
|
-
onClick={onView}
|
|
205
|
+
onClick={() => { setMenuOpen(false); onView(); }}
|
|
204
206
|
/>
|
|
205
207
|
<AgentActionMenuItem
|
|
206
208
|
icon={Pencil}
|
|
207
209
|
label={t("agentsEditAction")}
|
|
208
|
-
onClick={onEdit}
|
|
210
|
+
onClick={() => { setMenuOpen(false); onEdit(); }}
|
|
209
211
|
disabled={updatePending}
|
|
210
212
|
/>
|
|
211
213
|
{!agent.builtIn ? (
|
|
212
214
|
<AgentActionMenuItem
|
|
213
215
|
icon={Trash2}
|
|
214
216
|
label={t("agentsRemoveAction")}
|
|
215
|
-
onClick={onDelete}
|
|
217
|
+
onClick={() => { setMenuOpen(false); onDelete(); }}
|
|
216
218
|
disabled={deletePending}
|
|
217
219
|
destructive
|
|
218
220
|
/>
|
|
@@ -245,7 +247,9 @@ function AgentListCard(props: {
|
|
|
245
247
|
);
|
|
246
248
|
}
|
|
247
249
|
|
|
248
|
-
export function AgentsPage() {
|
|
250
|
+
export function AgentsPage({ resourceId }: { resourceId?: string } = {}) {
|
|
251
|
+
const app = useAppPresenter();
|
|
252
|
+
const navigate = useNavigate();
|
|
249
253
|
const presenter = usePresenter();
|
|
250
254
|
const agentsQuery = useAgents();
|
|
251
255
|
const configQuery = useConfig();
|
|
@@ -254,9 +258,6 @@ export function AgentsPage() {
|
|
|
254
258
|
const sessionTypesQuery = useNcpChatSessionTypes();
|
|
255
259
|
const updateAgent = useUpdateAgent();
|
|
256
260
|
const deleteAgent = useDeleteAgent();
|
|
257
|
-
const [viewingAgent, setViewingAgent] = useState<AgentProfileView | null>(
|
|
258
|
-
null,
|
|
259
|
-
);
|
|
260
261
|
const [editingAgent, setEditingAgent] = useState<AgentProfileView | null>(
|
|
261
262
|
null,
|
|
262
263
|
);
|
|
@@ -300,7 +301,7 @@ export function AgentsPage() {
|
|
|
300
301
|
const agentDefaults = configQuery.data?.agents.defaults;
|
|
301
302
|
|
|
302
303
|
const handleStartView = (agent: AgentProfileView) => {
|
|
303
|
-
|
|
304
|
+
app.pageResourceManager.open(pageResourceFromSystemObject("agent", agent.id, agent.displayName || agent.id), "default", navigate);
|
|
304
305
|
};
|
|
305
306
|
|
|
306
307
|
const handleStartEdit = (agent: AgentProfileView) => {
|
|
@@ -340,6 +341,23 @@ export function AgentsPage() {
|
|
|
340
341
|
);
|
|
341
342
|
};
|
|
342
343
|
|
|
344
|
+
const editDialog = <AgentEditDialog
|
|
345
|
+
agent={editingAgent} pending={updateAgent.isPending} providerCatalog={providerCatalog}
|
|
346
|
+
runtimeOptions={runtimeOptions} defaultRuntime={defaultRuntime}
|
|
347
|
+
onOpenChange={(open) => { if (!open && !updateAgent.isPending) setEditingAgent(null); }}
|
|
348
|
+
onSubmit={handleUpdate} />;
|
|
349
|
+
if (resourceId) {
|
|
350
|
+
const agent = agents.find((item) => item.id === resourceId) ?? null;
|
|
351
|
+
if (agentsQuery.isPending) return <p role="status" className="p-4">{t("loading")}</p>;
|
|
352
|
+
if (agentsQuery.isError) return <div className="p-4"><p role="alert">{t("resourceLoadFailed")}</p><button onClick={() => void agentsQuery.refetch()}>{t("resourceRetry")}</button></div>;
|
|
353
|
+
if (!agent) return <p role="alert" className="p-4">{t(agentsQuery.isError ? "resourceLoadFailed" : "resourceNotFound")}</p>;
|
|
354
|
+
return <>
|
|
355
|
+
<AgentDetailsDialog embedded agent={agent} defaults={agentDefaults} runtimeOptions={runtimeOptions}
|
|
356
|
+
defaultRuntime={defaultRuntime} defaultRuntimeLabel={defaultRuntimeLabel}
|
|
357
|
+
onOpenChange={() => {}} onEdit={handleStartEdit} onChat={startChatWithAgent} />
|
|
358
|
+
{editDialog}
|
|
359
|
+
</>;
|
|
360
|
+
}
|
|
343
361
|
return (
|
|
344
362
|
<PageLayout className="space-y-6">
|
|
345
363
|
<PageHeader
|
|
@@ -408,36 +426,7 @@ export function AgentsPage() {
|
|
|
408
426
|
)}
|
|
409
427
|
</div>
|
|
410
428
|
|
|
411
|
-
|
|
412
|
-
agent={viewingAgent}
|
|
413
|
-
defaults={agentDefaults}
|
|
414
|
-
runtimeOptions={runtimeOptions}
|
|
415
|
-
defaultRuntime={defaultRuntime}
|
|
416
|
-
defaultRuntimeLabel={defaultRuntimeLabel}
|
|
417
|
-
onOpenChange={(open) => {
|
|
418
|
-
if (!open) {
|
|
419
|
-
setViewingAgent(null);
|
|
420
|
-
}
|
|
421
|
-
}}
|
|
422
|
-
onEdit={(agent) => {
|
|
423
|
-
setViewingAgent(null);
|
|
424
|
-
setEditingAgent(agent);
|
|
425
|
-
}}
|
|
426
|
-
/>
|
|
427
|
-
|
|
428
|
-
<AgentEditDialog
|
|
429
|
-
agent={editingAgent}
|
|
430
|
-
pending={updateAgent.isPending}
|
|
431
|
-
providerCatalog={providerCatalog}
|
|
432
|
-
runtimeOptions={runtimeOptions}
|
|
433
|
-
defaultRuntime={defaultRuntime}
|
|
434
|
-
onOpenChange={(open) => {
|
|
435
|
-
if (!open && !updateAgent.isPending) {
|
|
436
|
-
setEditingAgent(null);
|
|
437
|
-
}
|
|
438
|
-
}}
|
|
439
|
-
onSubmit={handleUpdate}
|
|
440
|
-
/>
|
|
429
|
+
{editDialog}
|
|
441
430
|
</PageLayout>
|
|
442
431
|
);
|
|
443
432
|
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
DialogHeader,
|
|
13
13
|
DialogTitle,
|
|
14
14
|
} from '@/shared/components/ui/dialog';
|
|
15
|
-
import {
|
|
15
|
+
import { SkeletonContent } from '@/shared/components/ui/skeleton';
|
|
16
16
|
import { t } from '@/shared/lib/i18n';
|
|
17
17
|
|
|
18
18
|
export function AppRetainedDataSection({
|
|
@@ -57,7 +57,7 @@ export function AppRetainedDataSection({
|
|
|
57
57
|
{t('appDataRetainedDescription')}
|
|
58
58
|
</p>
|
|
59
59
|
</div>
|
|
60
|
-
{isLoading ? <
|
|
60
|
+
{isLoading ? <div role="status" aria-label={t('appPackagesLoading')}><SkeletonContent /></div> : null}
|
|
61
61
|
{error ? (
|
|
62
62
|
<div role="alert" className="rounded-xl border border-destructive/20 bg-destructive/5 px-3 py-2.5 text-xs text-destructive">
|
|
63
63
|
{error instanceof Error ? error.message : t('appDataLoadFailed')}
|
|
@@ -113,13 +113,13 @@ export function AppRetainedDataSection({
|
|
|
113
113
|
|
|
114
114
|
<Dialog open={Boolean(selected)} onOpenChange={(open) => !open && closeDialog()}>
|
|
115
115
|
<DialogContent
|
|
116
|
-
className="max-w-md
|
|
116
|
+
className="max-w-md"
|
|
117
117
|
onEscapeKeyDown={(event) => deletion.isPending && event.preventDefault()}
|
|
118
118
|
onInteractOutside={(event) => deletion.isPending && event.preventDefault()}
|
|
119
119
|
>
|
|
120
120
|
{selected ? (
|
|
121
121
|
<>
|
|
122
|
-
<DialogHeader>
|
|
122
|
+
<DialogHeader showClose={false}>
|
|
123
123
|
<DialogTitle>{t('appDataDeleteTitle')}</DialogTitle>
|
|
124
124
|
<DialogDescription>{t('appDataDeleteDescription')}</DialogDescription>
|
|
125
125
|
</DialogHeader>
|
|
@@ -92,7 +92,7 @@ describe('AppMarketplaceCatalog compatibility actions', () => {
|
|
|
92
92
|
expect(onSelect).toHaveBeenCalledWith('rust-todo');
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
it('
|
|
95
|
+
it('shows the latest failure while allowing a compatible app to be installed again', () => {
|
|
96
96
|
setLanguage('zh');
|
|
97
97
|
const onInstall = vi.fn();
|
|
98
98
|
|
|
@@ -147,7 +147,7 @@ describe('AppMarketplaceCatalog compatibility actions', () => {
|
|
|
147
147
|
</TooltipProvider>,
|
|
148
148
|
);
|
|
149
149
|
|
|
150
|
-
expect(screen.
|
|
150
|
+
expect(screen.getByRole('alert').textContent).toBe('persisted registry failure');
|
|
151
151
|
expect(screen.queryByRole('button', { name: '重试' })).toBeNull();
|
|
152
152
|
const installButton = screen.getByRole('button', { name: '安装应用' });
|
|
153
153
|
expect((installButton as HTMLButtonElement).disabled).toBe(false);
|