upfynai-code 0.1.0 → 2.2.0
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/client/dist/api-docs.html +879 -0
- package/client/dist/assets/AppContent-CTSHQdyq.js +513 -0
- package/client/dist/assets/CanvasPanel-Cig0Mo9s.js +6 -0
- package/client/dist/assets/CanvasPanel-q4HEqNtV.css +1 -0
- package/client/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/client/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/client/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/client/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/client/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/client/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/client/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/client/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/client/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/client/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/client/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/client/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/client/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/client/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/client/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/client/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/client/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/client/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/client/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/client/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/client/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/client/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/client/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/client/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/client/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/client/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/client/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/client/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/client/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/client/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/client/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/client/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/client/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/client/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/client/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/client/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/client/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/client/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/client/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/client/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/client/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/client/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/client/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/client/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/client/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/client/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/client/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/client/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/client/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/client/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/client/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/client/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/client/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/client/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/client/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/client/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/client/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/client/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/client/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/client/dist/assets/LoginModal-silya-zP.js +11 -0
- package/client/dist/assets/MarkdownPreview-B3c7OEj6.js +1 -0
- package/client/dist/assets/Onboarding-Coxo6mFA.js +1 -0
- package/client/dist/assets/SetupForm-BzYOsbji.js +1 -0
- package/client/dist/assets/Tableau10-B-NsZVaP.js +1 -0
- package/client/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
- package/client/dist/assets/ar-SA-G6X2FPQ2-Bmw2-hDt.js +10 -0
- package/client/dist/assets/arc-BMqY7_Ci.js +1 -0
- package/client/dist/assets/array-BKyUJesY.js +1 -0
- package/client/dist/assets/az-AZ-76LH7QW2-Dh1le_qs.js +1 -0
- package/client/dist/assets/bg-BG-XCXSNQG7-Cbav8Z9z.js +5 -0
- package/client/dist/assets/blockDiagram-38ab4fdb-ChHJxsXw.js +118 -0
- package/client/dist/assets/bn-BD-2XOGV67Q-DCNjOaWz.js +5 -0
- package/client/dist/assets/c4Diagram-3d4e48cf-b8Xue4Z6.js +10 -0
- package/client/dist/assets/ca-ES-6MX7JW3Y-Dl_vM7NS.js +8 -0
- package/client/dist/assets/channel-CSnvHe_M.js +1 -0
- package/client/dist/assets/classDiagram-70f12bd4-BheP7Ggo.js +2 -0
- package/client/dist/assets/classDiagram-v2-f2320105-xtym7GEZ.js +2 -0
- package/client/dist/assets/clone-B75abXxS.js +1 -0
- package/client/dist/assets/createText-2e5e7dd3-_n4jI_fO.js +5 -0
- package/client/dist/assets/cs-CZ-2BRQDIVT-ftsKDdz4.js +11 -0
- package/client/dist/assets/da-DK-5WZEPLOC-DAjdwGRO.js +5 -0
- package/client/dist/assets/de-DE-XR44H4JA-BJXczHGT.js +8 -0
- package/client/dist/assets/directory-open-01563666-DWU9wJ6I.js +1 -0
- package/client/dist/assets/directory-open-4ed118d0-CunoC1EB.js +1 -0
- package/client/dist/assets/edges-e0da2a9e-CfPZr4YM.js +4 -0
- package/client/dist/assets/el-GR-BZB4AONW-DW2p_uy7.js +10 -0
- package/client/dist/assets/erDiagram-9861fffd-CF33V-Of.js +51 -0
- package/client/dist/assets/es-ES-U4NZUMDT-DLOIGnrl.js +9 -0
- package/client/dist/assets/eu-ES-A7QVB2H4-LJXbf89m.js +11 -0
- package/client/dist/assets/fa-IR-HGAKTJCU-Dvx65fgW.js +8 -0
- package/client/dist/assets/fi-FI-Z5N7JZ37-EoL65BQh.js +6 -0
- package/client/dist/assets/file-open-002ab408-DIuFHtCF.js +1 -0
- package/client/dist/assets/file-open-7c801643-684qeFg4.js +1 -0
- package/client/dist/assets/file-save-3189631c-C1wFhQhH.js +1 -0
- package/client/dist/assets/file-save-745eba88-Bb9F9Kg7.js +1 -0
- package/client/dist/assets/flowDb-956e92f1-HgoXVy2H.js +10 -0
- package/client/dist/assets/flowDiagram-66a62f08-tffoET0H.js +4 -0
- package/client/dist/assets/flowDiagram-v2-96b9c2cf-Byc3JCHh.js +1 -0
- package/client/dist/assets/flowchart-elk-definition-4a651766-DJbI2dpv.js +139 -0
- package/client/dist/assets/fr-FR-RHASNOE6-DNk_jdDs.js +9 -0
- package/client/dist/assets/ganttDiagram-c361ad54-2XX670FU.js +257 -0
- package/client/dist/assets/gitGraphDiagram-72cf32ee-CcUfruAo.js +70 -0
- package/client/dist/assets/gl-ES-HMX3MZ6V-dxzFjZlG.js +10 -0
- package/client/dist/assets/graph-BSbiMSBC.js +1 -0
- package/client/dist/assets/he-IL-6SHJWFNN-Cogsfdt1.js +10 -0
- package/client/dist/assets/hi-IN-IWLTKZ5I-L6wbgi4F.js +4 -0
- package/client/dist/assets/hu-HU-A5ZG7DT2-DSA6ZDsH.js +7 -0
- package/client/dist/assets/id-ID-SAP4L64H-BK_vGGS6.js +10 -0
- package/client/dist/assets/image-blob-reduce.esm-BLtmMM_J.js +2 -0
- package/client/dist/assets/index-3862675e-Bv32HUgT.js +1 -0
- package/client/dist/assets/index-B8wwD_Xo.css +1 -0
- package/client/dist/assets/index-BPwf8Fw3.js +27 -0
- package/client/dist/assets/index-D1urGMYu.js +95 -0
- package/client/dist/assets/infoDiagram-f8f76790-w4mR4pxn.js +7 -0
- package/client/dist/assets/init-Gi6I4Gst.js +1 -0
- package/client/dist/assets/it-IT-JPQ66NNP-BLdHYMhn.js +11 -0
- package/client/dist/assets/ja-JP-DBVTYXUO-B_vmexl_.js +8 -0
- package/client/dist/assets/journeyDiagram-49397b02-D9nmO17e.js +139 -0
- package/client/dist/assets/kaa-6HZHGXH3-5s-3jl6F.js +1 -0
- package/client/dist/assets/kab-KAB-ZGHBKWFO-2QaVDuSf.js +8 -0
- package/client/dist/assets/kk-KZ-P5N5QNE5-CTC52Vbi.js +1 -0
- package/client/dist/assets/km-KH-HSX4SM5Z-DxawH8UZ.js +11 -0
- package/client/dist/assets/ko-KR-MTYHY66A-CmosEM8_.js +9 -0
- package/client/dist/assets/ku-TR-6OUDTVRD-DbiLen4y.js +9 -0
- package/client/dist/assets/layout-jmt3H9tA.js +1 -0
- package/client/dist/assets/line-JTlRayUJ.js +1 -0
- package/client/dist/assets/linear-DJeB5p7x.js +1 -0
- package/client/dist/assets/lt-LT-XHIRWOB4-CH15wrjA.js +3 -0
- package/client/dist/assets/lv-LV-5QDEKY6T-dhgfPuCQ.js +7 -0
- package/client/dist/assets/mindmap-definition-fc14e90a-BOOrexmz.js +415 -0
- package/client/dist/assets/mr-IN-CRQNXWMA-3Gi6iq7A.js +13 -0
- package/client/dist/assets/my-MM-5M5IBNSE-CpH4rdJj.js +1 -0
- package/client/dist/assets/nb-NO-T6EIAALU-Du6iiGql.js +10 -0
- package/client/dist/assets/nl-NL-IS3SIHDZ-BGvsd1MT.js +8 -0
- package/client/dist/assets/nn-NO-6E72VCQL-B-odvJZW.js +8 -0
- package/client/dist/assets/oc-FR-POXYY2M6-COC8xNjo.js +8 -0
- package/client/dist/assets/ordinal-Cboi1Yqb.js +1 -0
- package/client/dist/assets/pa-IN-N4M65BXN-CE21PUQH.js +4 -0
- package/client/dist/assets/path-CbwjOpE9.js +1 -0
- package/client/dist/assets/pdf-TYrZqVzP.js +12 -0
- package/client/dist/assets/pdf.worker-BA9kU3Pw.mjs +61080 -0
- package/client/dist/assets/percentages-BXMCSKIN-C9GT0OD3.js +199 -0
- package/client/dist/assets/pica-VkdyTzi8.js +2 -0
- package/client/dist/assets/pieDiagram-8a3498a8-Cvfh7Qr5.js +35 -0
- package/client/dist/assets/pl-PL-T2D74RX3-D4xFVSoT.js +9 -0
- package/client/dist/assets/pt-BR-5N22H2LF-CCq257gA.js +9 -0
- package/client/dist/assets/pt-PT-UZXXM6DQ-1l8gt5vA.js +9 -0
- package/client/dist/assets/quadrantDiagram-120e2f19-BA0js1aD.js +7 -0
- package/client/dist/assets/requirementDiagram-deff3bca-B0QNFfIn.js +52 -0
- package/client/dist/assets/ro-RO-JPDTUUEW-yosBW01E.js +11 -0
- package/client/dist/assets/roundRect-mAH3dD0p.js +1 -0
- package/client/dist/assets/ru-RU-B4JR7IUQ-8LkEJUix.js +9 -0
- package/client/dist/assets/sankeyDiagram-04a897e0-D4T9eCXn.js +8 -0
- package/client/dist/assets/sequenceDiagram-704730f1-CfBUTCrO.js +122 -0
- package/client/dist/assets/si-LK-N5RQ5JYF-D8rjbqtd.js +1 -0
- package/client/dist/assets/sk-SK-C5VTKIMK-Bg14sAzN.js +6 -0
- package/client/dist/assets/sl-SI-NN7IZMDC-CMTib6Zs.js +6 -0
- package/client/dist/assets/stateDiagram-587899a1-BGgvmVSZ.js +1 -0
- package/client/dist/assets/stateDiagram-v2-d93cdb3a-Qn3DpYuO.js +1 -0
- package/client/dist/assets/styles-6aaf32cf-IdVZLPrD.js +207 -0
- package/client/dist/assets/styles-9a916d00-BAC3L45X.js +160 -0
- package/client/dist/assets/styles-c10674c1-COhXxX8c.js +116 -0
- package/client/dist/assets/subset-shared.chunk-BWHnFai4.js +22 -0
- package/client/dist/assets/subset-worker.chunk-C8QUSruZ.js +1 -0
- package/client/dist/assets/sv-SE-XGPEYMSR-C1425rOF.js +10 -0
- package/client/dist/assets/svgDrawCommon-08f97a94-Cfk-fgnN.js +1 -0
- package/client/dist/assets/ta-IN-2NMHFXQM-BHHo1zpF.js +9 -0
- package/client/dist/assets/th-TH-HPSO5L25-CZVzm_WT.js +2 -0
- package/client/dist/assets/timeline-definition-85554ec2-VAvuJith.js +61 -0
- package/client/dist/assets/tr-TR-DEFEU3FU-DE1lclCq.js +7 -0
- package/client/dist/assets/uk-UA-QMV73CPH-D4lJZ85O.js +6 -0
- package/client/dist/assets/vendor-codemirror-BARtJV1V.js +16 -0
- package/client/dist/assets/vendor-codemirror-langs-52_y1wip.js +20 -0
- package/client/dist/assets/vendor-i18n-ByAl-gdx.js +1 -0
- package/client/dist/assets/vendor-icons-D33IkSIf.js +1 -0
- package/client/dist/assets/vendor-markdown-CIVH08vJ.js +298 -0
- package/client/dist/assets/vendor-react-CHoMc7ka.js +8 -0
- package/client/dist/assets/vendor-syntax-Djb62v3a.js +9 -0
- package/client/dist/assets/vendor-xterm-DBb3RXlu.js +66 -0
- package/client/dist/assets/vendor-xterm-DrlLKa8f.css +1 -0
- package/client/dist/assets/vi-VN-M7AON7JQ-Dgc_SShk.js +5 -0
- package/client/dist/assets/xychartDiagram-e933f94c-BeyVBJhb.js +7 -0
- package/client/dist/assets/zh-CN-LNUGB5OW-MH4Yh8in.js +10 -0
- package/client/dist/assets/zh-HK-E62DVLB3-D4XHehjx.js +1 -0
- package/client/dist/assets/zh-TW-RAJ6MFWO--efj3evj.js +9 -0
- package/client/dist/clear-cache.html +85 -0
- package/client/dist/convert-icons.md +53 -0
- package/client/dist/favicon.png +0 -0
- package/client/dist/favicon.svg +9 -0
- package/client/dist/generate-icons.js +49 -0
- package/client/dist/icons/claude-ai-icon.svg +1 -0
- package/client/dist/icons/codex-white.svg +3 -0
- package/client/dist/icons/codex.svg +3 -0
- package/client/dist/icons/cursor-white.svg +12 -0
- package/client/dist/icons/cursor.svg +1 -0
- package/client/dist/icons/icon-128x128.png +0 -0
- package/client/dist/icons/icon-128x128.svg +12 -0
- package/client/dist/icons/icon-144x144.png +0 -0
- package/client/dist/icons/icon-144x144.svg +12 -0
- package/client/dist/icons/icon-152x152.png +0 -0
- package/client/dist/icons/icon-152x152.svg +12 -0
- package/client/dist/icons/icon-192x192.png +0 -0
- package/client/dist/icons/icon-192x192.svg +12 -0
- package/client/dist/icons/icon-384x384.png +0 -0
- package/client/dist/icons/icon-384x384.svg +12 -0
- package/client/dist/icons/icon-512x512.png +0 -0
- package/client/dist/icons/icon-512x512.svg +12 -0
- package/client/dist/icons/icon-72x72.png +0 -0
- package/client/dist/icons/icon-72x72.svg +12 -0
- package/client/dist/icons/icon-96x96.png +0 -0
- package/client/dist/icons/icon-96x96.svg +12 -0
- package/client/dist/icons/icon-template.svg +12 -0
- package/client/dist/index.html +128 -0
- package/client/dist/logo-128.png +0 -0
- package/client/dist/logo-256.png +0 -0
- package/client/dist/logo-32.png +0 -0
- package/client/dist/logo-512.png +0 -0
- package/client/dist/logo-64.png +0 -0
- package/client/dist/logo.svg +17 -0
- package/client/dist/manifest.json +61 -0
- package/client/dist/mcp-docs.html +119 -0
- package/client/dist/screenshots/cli-selection.png +0 -0
- package/client/dist/screenshots/desktop-main.png +0 -0
- package/client/dist/screenshots/mobile-chat.png +0 -0
- package/client/dist/screenshots/tools-modal.png +0 -0
- package/client/dist/sw.js +19 -0
- package/commands/upfynai-connect.md +46 -0
- package/commands/upfynai-disconnect.md +31 -0
- package/commands/upfynai-doctor.md +99 -0
- package/commands/upfynai-export.md +49 -0
- package/commands/upfynai-local.md +82 -0
- package/commands/upfynai-status.md +75 -0
- package/commands/upfynai-stop.md +49 -0
- package/commands/upfynai-uninstall.md +58 -0
- package/commands/upfynai.md +50 -0
- package/package.json +106 -47
- package/scripts/build-client.js +17 -0
- package/scripts/fix-node-pty.js +67 -0
- package/scripts/install-commands.js +78 -0
- package/server/claude-sdk.js +714 -0
- package/server/cli.js +419 -0
- package/server/constants/config.js +5 -0
- package/server/cursor-cli.js +270 -0
- package/server/database/auth.db +0 -0
- package/server/database/db.js +606 -0
- package/server/database/init.sql +70 -0
- package/server/index.js +2269 -0
- package/server/load-env.js +26 -0
- package/server/mcp-server.js +620 -0
- package/server/middleware/auth.js +158 -0
- package/server/openai-codex.js +403 -0
- package/server/projects.js +1849 -0
- package/server/relay-client.js +314 -0
- package/server/routes/agent.js +1231 -0
- package/server/routes/auth.js +220 -0
- package/server/routes/cli-auth.js +263 -0
- package/server/routes/codex.js +344 -0
- package/server/routes/commands.js +601 -0
- package/server/routes/cursor.js +808 -0
- package/server/routes/git.js +1165 -0
- package/server/routes/mcp-utils.js +48 -0
- package/server/routes/mcp.js +552 -0
- package/server/routes/payments.js +172 -0
- package/server/routes/projects.js +549 -0
- package/server/routes/settings.js +178 -0
- package/server/routes/taskmaster.js +1964 -0
- package/server/routes/user.js +106 -0
- package/server/utils/commandParser.js +303 -0
- package/server/utils/gitConfig.js +24 -0
- package/server/utils/mcp-detector.js +198 -0
- package/server/utils/taskmaster-websocket.js +129 -0
- package/shared/modelConstants.js +67 -0
- package/LICENSE +0 -22
- package/bin/cli.js +0 -86
- package/dist/assets/CanvasPanel-B48gAKVY.js +0 -538
- package/dist/assets/CanvasPanel-B48gAKVY.js.map +0 -1
- package/dist/assets/CanvasPanel-BsOG3EVs.css +0 -1
- package/dist/assets/index-CEhTwG68.css +0 -1
- package/dist/assets/index-GqAGWpJI.js +0 -70
- package/dist/assets/index-GqAGWpJI.js.map +0 -1
- package/dist/index.html +0 -18
- package/index.html +0 -17
- package/src/App.tsx +0 -226
- package/src/components/canvas/CanvasPanel.tsx +0 -62
- package/src/components/canvas/layout/graph-builder.ts +0 -136
- package/src/components/canvas/shapes/CompactionNodeShape.tsx +0 -76
- package/src/components/canvas/shapes/SessionNodeShape.tsx +0 -93
- package/src/components/canvas/shapes/StatuslineWidgetShape.tsx +0 -125
- package/src/components/canvas/shapes/TextResponseNodeShape.tsx +0 -86
- package/src/components/canvas/shapes/ToolCallNodeShape.tsx +0 -107
- package/src/components/canvas/shapes/ToolResultNodeShape.tsx +0 -87
- package/src/components/canvas/shapes/shared-styles.ts +0 -35
- package/src/components/chat/ChatPanel.tsx +0 -96
- package/src/components/chat/InputBar.tsx +0 -81
- package/src/components/chat/MessageList.tsx +0 -130
- package/src/components/chat/PermissionDialog.tsx +0 -70
- package/src/components/layout/FolderSelector.tsx +0 -152
- package/src/components/layout/ModelSelector.tsx +0 -65
- package/src/components/layout/SessionManager.tsx +0 -115
- package/src/components/statusline/StatuslineBar.tsx +0 -114
- package/src/main.tsx +0 -10
- package/src/server/claude-session.ts +0 -156
- package/src/server/index.ts +0 -149
- package/src/services/stream-consumer.ts +0 -330
- package/src/statusline-core/bin/statusline.sh +0 -121
- package/src/statusline-core/commands/sls-config.md +0 -42
- package/src/statusline-core/commands/sls-doctor.md +0 -35
- package/src/statusline-core/commands/sls-help.md +0 -48
- package/src/statusline-core/commands/sls-layout.md +0 -38
- package/src/statusline-core/commands/sls-preview.md +0 -34
- package/src/statusline-core/commands/sls-theme.md +0 -40
- package/src/statusline-core/installer.js +0 -228
- package/src/statusline-core/layouts/compact.sh +0 -21
- package/src/statusline-core/layouts/full.sh +0 -62
- package/src/statusline-core/layouts/standard.sh +0 -39
- package/src/statusline-core/lib/core.sh +0 -389
- package/src/statusline-core/lib/helpers.sh +0 -81
- package/src/statusline-core/lib/json-parser.sh +0 -71
- package/src/statusline-core/themes/catppuccin.sh +0 -32
- package/src/statusline-core/themes/default.sh +0 -37
- package/src/statusline-core/themes/gruvbox.sh +0 -32
- package/src/statusline-core/themes/nord.sh +0 -32
- package/src/statusline-core/themes/tokyo-night.sh +0 -32
- package/src/store/canvas-store.ts +0 -50
- package/src/store/chat-store.ts +0 -60
- package/src/store/permission-store.ts +0 -29
- package/src/store/session-store.ts +0 -52
- package/src/store/statusline-store.ts +0 -160
- package/src/styles/global.css +0 -117
- package/src/themes/index.ts +0 -149
- package/src/types/canvas-graph.ts +0 -24
- package/src/types/sdk-messages.ts +0 -156
- package/src/types/statusline-fields.ts +0 -67
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -26
- package/vite.config.ts +0 -24
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import type { ChatMessage } from '../../types/sdk-messages';
|
|
2
|
-
import { useThemeStore } from '../../themes';
|
|
3
|
-
import ReactMarkdown from 'react-markdown';
|
|
4
|
-
import remarkGfm from 'remark-gfm';
|
|
5
|
-
|
|
6
|
-
interface Props {
|
|
7
|
-
messages: ChatMessage[];
|
|
8
|
-
streamingText: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function MessageList({ messages, streamingText }: Props) {
|
|
12
|
-
const theme = useThemeStore((s) => s.activeTheme);
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
16
|
-
{messages.map((msg) => (
|
|
17
|
-
<MessageBubble key={msg.id} message={msg} />
|
|
18
|
-
))}
|
|
19
|
-
|
|
20
|
-
{/* Streaming text */}
|
|
21
|
-
{streamingText && (
|
|
22
|
-
<div className="animate-fade-in" style={{
|
|
23
|
-
padding: '8px 16px', borderLeft: `2px solid ${theme.colors.accent}`,
|
|
24
|
-
margin: '0 16px',
|
|
25
|
-
}}>
|
|
26
|
-
<div className="markdown-content" style={{ color: theme.colors.text, fontSize: 13 }}>
|
|
27
|
-
<ReactMarkdown remarkPlugins={[remarkGfm]}>{streamingText}</ReactMarkdown>
|
|
28
|
-
</div>
|
|
29
|
-
<span className="animate-pulse" style={{
|
|
30
|
-
color: theme.colors.accent, fontSize: 16, marginLeft: 2,
|
|
31
|
-
}}>▌</span>
|
|
32
|
-
</div>
|
|
33
|
-
)}
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function MessageBubble({ message }: { message: ChatMessage }) {
|
|
39
|
-
const theme = useThemeStore((s) => s.activeTheme);
|
|
40
|
-
|
|
41
|
-
const styles: Record<string, React.CSSProperties> = {
|
|
42
|
-
user: {
|
|
43
|
-
background: theme.colors.bgPanel,
|
|
44
|
-
borderLeft: `2px solid ${theme.colors.accent}`,
|
|
45
|
-
color: theme.colors.text,
|
|
46
|
-
},
|
|
47
|
-
assistant: {
|
|
48
|
-
background: 'transparent',
|
|
49
|
-
borderLeft: `2px solid ${theme.colors.model}`,
|
|
50
|
-
color: theme.colors.text,
|
|
51
|
-
},
|
|
52
|
-
tool_call: {
|
|
53
|
-
background: theme.colors.bgSurface,
|
|
54
|
-
borderLeft: `2px solid ${theme.colors.tokens}`,
|
|
55
|
-
color: theme.colors.text,
|
|
56
|
-
},
|
|
57
|
-
tool_result: {
|
|
58
|
-
background: theme.colors.bgSurface,
|
|
59
|
-
borderLeft: `2px solid ${message.isError ? theme.colors.error : theme.colors.success}`,
|
|
60
|
-
color: theme.colors.text,
|
|
61
|
-
},
|
|
62
|
-
system: {
|
|
63
|
-
background: 'transparent',
|
|
64
|
-
borderLeft: `2px solid ${message.isError ? theme.colors.error : theme.colors.textDim}`,
|
|
65
|
-
color: message.isError ? theme.colors.error : theme.colors.textMuted,
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const roleLabels: Record<string, string> = {
|
|
70
|
-
user: 'You',
|
|
71
|
-
assistant: 'Claude',
|
|
72
|
-
tool_call: message.toolName || 'Tool',
|
|
73
|
-
tool_result: `${message.toolName || 'Result'}`,
|
|
74
|
-
system: 'System',
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
const roleColors: Record<string, string> = {
|
|
78
|
-
user: theme.colors.accent,
|
|
79
|
-
assistant: theme.colors.model,
|
|
80
|
-
tool_call: theme.colors.tokens,
|
|
81
|
-
tool_result: message.isError ? theme.colors.error : theme.colors.success,
|
|
82
|
-
system: theme.colors.textDim,
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
const isToolResult = message.role === 'tool_result';
|
|
86
|
-
const isToolCall = message.role === 'tool_call';
|
|
87
|
-
const isCollapsible = (isToolResult || isToolCall) && message.content.length > 200;
|
|
88
|
-
|
|
89
|
-
return (
|
|
90
|
-
<div className="animate-fade-in" style={{
|
|
91
|
-
padding: '8px 16px', margin: '0 16px', borderRadius: 4,
|
|
92
|
-
...styles[message.role],
|
|
93
|
-
}}>
|
|
94
|
-
{/* Role label */}
|
|
95
|
-
<div style={{
|
|
96
|
-
fontSize: 11, fontWeight: 600, marginBottom: 4,
|
|
97
|
-
color: roleColors[message.role],
|
|
98
|
-
display: 'flex', alignItems: 'center', gap: 6,
|
|
99
|
-
}}>
|
|
100
|
-
<span>{roleLabels[message.role]}</span>
|
|
101
|
-
{isToolCall && (
|
|
102
|
-
<span style={{
|
|
103
|
-
fontSize: 10, padding: '1px 6px', borderRadius: 3,
|
|
104
|
-
background: theme.colors.bgHover, color: theme.colors.tokens,
|
|
105
|
-
}}>
|
|
106
|
-
{message.toolName}
|
|
107
|
-
</span>
|
|
108
|
-
)}
|
|
109
|
-
</div>
|
|
110
|
-
|
|
111
|
-
{/* Content */}
|
|
112
|
-
{message.role === 'assistant' || message.role === 'user' ? (
|
|
113
|
-
<div className="markdown-content" style={{ fontSize: 13 }}>
|
|
114
|
-
<ReactMarkdown remarkPlugins={[remarkGfm]}>{message.content}</ReactMarkdown>
|
|
115
|
-
</div>
|
|
116
|
-
) : (
|
|
117
|
-
<pre style={{
|
|
118
|
-
fontSize: 12, fontFamily: 'var(--font-mono)',
|
|
119
|
-
whiteSpace: 'pre-wrap', wordBreak: 'break-word',
|
|
120
|
-
maxHeight: isCollapsible ? 150 : undefined,
|
|
121
|
-
overflow: isCollapsible ? 'hidden' : undefined,
|
|
122
|
-
color: theme.colors.text, background: 'transparent',
|
|
123
|
-
padding: 0, margin: 0,
|
|
124
|
-
}}>
|
|
125
|
-
{message.content}
|
|
126
|
-
</pre>
|
|
127
|
-
)}
|
|
128
|
-
</div>
|
|
129
|
-
);
|
|
130
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { usePermissionStore } from '../../store/permission-store';
|
|
2
|
-
import { useThemeStore } from '../../themes';
|
|
3
|
-
import { respondPermission } from '../../services/stream-consumer';
|
|
4
|
-
|
|
5
|
-
export function PermissionDialog() {
|
|
6
|
-
const theme = useThemeStore((s) => s.activeTheme);
|
|
7
|
-
const pending = usePermissionStore((s) => s.pending);
|
|
8
|
-
|
|
9
|
-
if (pending.length === 0) return null;
|
|
10
|
-
|
|
11
|
-
const request = pending[0];
|
|
12
|
-
|
|
13
|
-
// Risk level by tool name
|
|
14
|
-
const highRisk = ['Bash', 'Write', 'Edit', 'MultiEdit', 'NotebookEdit'];
|
|
15
|
-
const isHigh = highRisk.includes(request.toolName);
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<div className="animate-slide-up" style={{
|
|
19
|
-
position: 'absolute', bottom: 80, left: 16, right: 16,
|
|
20
|
-
background: theme.colors.bgSurface, borderRadius: 8,
|
|
21
|
-
border: `1px solid ${isHigh ? theme.colors.warning : theme.colors.border}`,
|
|
22
|
-
padding: 16, zIndex: 100,
|
|
23
|
-
boxShadow: `0 4px 24px rgba(0,0,0,0.4)`,
|
|
24
|
-
}}>
|
|
25
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 8 }}>
|
|
26
|
-
<span style={{
|
|
27
|
-
fontSize: 10, fontWeight: 600, padding: '2px 6px', borderRadius: 3,
|
|
28
|
-
background: isHigh ? theme.colors.warning : theme.colors.success,
|
|
29
|
-
color: theme.colors.bg,
|
|
30
|
-
}}>
|
|
31
|
-
{isHigh ? 'HIGH RISK' : 'LOW RISK'}
|
|
32
|
-
</span>
|
|
33
|
-
<span style={{ color: theme.colors.text, fontWeight: 600, fontSize: 14 }}>
|
|
34
|
-
{request.toolName}
|
|
35
|
-
</span>
|
|
36
|
-
{pending.length > 1 && (
|
|
37
|
-
<span style={{ color: theme.colors.textDim, fontSize: 11 }}>
|
|
38
|
-
+{pending.length - 1} more
|
|
39
|
-
</span>
|
|
40
|
-
)}
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<pre style={{
|
|
44
|
-
fontSize: 11, fontFamily: 'var(--font-mono)', color: theme.colors.textMuted,
|
|
45
|
-
background: theme.colors.bgPanel, borderRadius: 4, padding: 8,
|
|
46
|
-
maxHeight: 120, overflow: 'auto', whiteSpace: 'pre-wrap',
|
|
47
|
-
marginBottom: 12,
|
|
48
|
-
}}>
|
|
49
|
-
{JSON.stringify(request.toolInput, null, 2)}
|
|
50
|
-
</pre>
|
|
51
|
-
|
|
52
|
-
<div style={{ display: 'flex', gap: 8, justifyContent: 'flex-end' }}>
|
|
53
|
-
<button onClick={() => respondPermission(request.requestId, false)} style={{
|
|
54
|
-
background: theme.colors.bgPanel, color: theme.colors.error,
|
|
55
|
-
border: `1px solid ${theme.colors.error}`, borderRadius: 6,
|
|
56
|
-
padding: '6px 16px', fontSize: 12, fontWeight: 600, cursor: 'pointer',
|
|
57
|
-
}}>
|
|
58
|
-
Deny
|
|
59
|
-
</button>
|
|
60
|
-
<button onClick={() => respondPermission(request.requestId, true)} style={{
|
|
61
|
-
background: theme.colors.success, color: '#fff',
|
|
62
|
-
border: 'none', borderRadius: 6,
|
|
63
|
-
padding: '6px 16px', fontSize: 12, fontWeight: 600, cursor: 'pointer',
|
|
64
|
-
}}>
|
|
65
|
-
Allow
|
|
66
|
-
</button>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
);
|
|
70
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
import { useThemeStore } from '../../themes';
|
|
3
|
-
|
|
4
|
-
interface Project {
|
|
5
|
-
path: string;
|
|
6
|
-
name: string;
|
|
7
|
-
lastUsed: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface Props {
|
|
11
|
-
currentCwd: string;
|
|
12
|
-
onSelect: (path: string) => void;
|
|
13
|
-
isOpen: boolean;
|
|
14
|
-
onClose: () => void;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function FolderSelector({ currentCwd, onSelect, isOpen, onClose }: Props) {
|
|
18
|
-
const theme = useThemeStore((s) => s.activeTheme);
|
|
19
|
-
const [projects, setProjects] = useState<Project[]>([]);
|
|
20
|
-
const [customPath, setCustomPath] = useState('');
|
|
21
|
-
const [loading, setLoading] = useState(false);
|
|
22
|
-
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
if (isOpen) {
|
|
25
|
-
loadProjects();
|
|
26
|
-
}
|
|
27
|
-
}, [isOpen]);
|
|
28
|
-
|
|
29
|
-
async function loadProjects() {
|
|
30
|
-
setLoading(true);
|
|
31
|
-
try {
|
|
32
|
-
const res = await fetch('/api/projects');
|
|
33
|
-
if (res.ok) {
|
|
34
|
-
const data = await res.json();
|
|
35
|
-
setProjects(data.projects || []);
|
|
36
|
-
}
|
|
37
|
-
} catch {
|
|
38
|
-
// Server might not have this endpoint yet
|
|
39
|
-
}
|
|
40
|
-
setLoading(false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (!isOpen) return null;
|
|
44
|
-
|
|
45
|
-
const c = theme.colors;
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
<div style={{
|
|
49
|
-
position: 'fixed', inset: 0, zIndex: 1000,
|
|
50
|
-
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
|
51
|
-
background: 'rgba(0,0,0,0.6)', backdropFilter: 'blur(4px)',
|
|
52
|
-
}} onClick={onClose}>
|
|
53
|
-
<div style={{
|
|
54
|
-
background: c.bgSurface, border: `1px solid ${c.border}`,
|
|
55
|
-
borderRadius: 12, padding: 24, width: 480, maxHeight: '70vh',
|
|
56
|
-
display: 'flex', flexDirection: 'column', gap: 16,
|
|
57
|
-
}} onClick={(e) => e.stopPropagation()}>
|
|
58
|
-
{/* Header */}
|
|
59
|
-
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
|
60
|
-
<div>
|
|
61
|
-
<h2 style={{ color: c.text, fontSize: 16, fontWeight: 700, margin: 0 }}>
|
|
62
|
-
Open Project
|
|
63
|
-
</h2>
|
|
64
|
-
<p style={{ color: c.textMuted, fontSize: 12, margin: '4px 0 0' }}>
|
|
65
|
-
Select a folder to start a Claude Code session
|
|
66
|
-
</p>
|
|
67
|
-
</div>
|
|
68
|
-
<button onClick={onClose} style={{
|
|
69
|
-
background: 'none', border: 'none', color: c.textMuted,
|
|
70
|
-
fontSize: 20, cursor: 'pointer', padding: 4,
|
|
71
|
-
}}>×</button>
|
|
72
|
-
</div>
|
|
73
|
-
|
|
74
|
-
{/* Custom path input */}
|
|
75
|
-
<div style={{ display: 'flex', gap: 8 }}>
|
|
76
|
-
<input
|
|
77
|
-
type="text"
|
|
78
|
-
value={customPath}
|
|
79
|
-
onChange={(e) => setCustomPath(e.target.value)}
|
|
80
|
-
placeholder="Enter folder path..."
|
|
81
|
-
style={{
|
|
82
|
-
flex: 1, background: c.bgPanel, color: c.text,
|
|
83
|
-
border: `1px solid ${c.border}`, borderRadius: 6,
|
|
84
|
-
padding: '8px 12px', fontSize: 13, outline: 'none',
|
|
85
|
-
fontFamily: 'var(--font-mono)',
|
|
86
|
-
}}
|
|
87
|
-
onKeyDown={(e) => {
|
|
88
|
-
if (e.key === 'Enter' && customPath.trim()) {
|
|
89
|
-
onSelect(customPath.trim());
|
|
90
|
-
onClose();
|
|
91
|
-
}
|
|
92
|
-
}}
|
|
93
|
-
/>
|
|
94
|
-
<button onClick={() => {
|
|
95
|
-
if (customPath.trim()) {
|
|
96
|
-
onSelect(customPath.trim());
|
|
97
|
-
onClose();
|
|
98
|
-
}
|
|
99
|
-
}} style={{
|
|
100
|
-
background: c.accent, color: '#fff', border: 'none',
|
|
101
|
-
borderRadius: 6, padding: '8px 16px', fontSize: 12,
|
|
102
|
-
fontWeight: 600, cursor: 'pointer', flexShrink: 0,
|
|
103
|
-
}}>
|
|
104
|
-
Open
|
|
105
|
-
</button>
|
|
106
|
-
</div>
|
|
107
|
-
|
|
108
|
-
{/* Current project */}
|
|
109
|
-
{currentCwd && (
|
|
110
|
-
<div style={{
|
|
111
|
-
background: c.bgPanel, borderRadius: 6, padding: '8px 12px',
|
|
112
|
-
border: `1px solid ${c.accent}30`,
|
|
113
|
-
}}>
|
|
114
|
-
<div style={{ fontSize: 10, color: c.accent, fontWeight: 600, marginBottom: 2 }}>
|
|
115
|
-
CURRENT
|
|
116
|
-
</div>
|
|
117
|
-
<div style={{ fontSize: 12, color: c.text, fontFamily: 'var(--font-mono)' }}>
|
|
118
|
-
{currentCwd}
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
)}
|
|
122
|
-
|
|
123
|
-
{/* Discovered projects */}
|
|
124
|
-
{projects.length > 0 && (
|
|
125
|
-
<div style={{ flex: 1, overflowY: 'auto' }}>
|
|
126
|
-
<div style={{ fontSize: 10, color: c.textDim, fontWeight: 600, marginBottom: 8 }}>
|
|
127
|
-
RECENT PROJECTS
|
|
128
|
-
</div>
|
|
129
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>
|
|
130
|
-
{projects.map((p) => (
|
|
131
|
-
<button key={p.path} onClick={() => { onSelect(p.path); onClose(); }} style={{
|
|
132
|
-
background: c.bgPanel, border: `1px solid ${c.border}`,
|
|
133
|
-
borderRadius: 6, padding: '8px 12px', cursor: 'pointer',
|
|
134
|
-
textAlign: 'left', display: 'flex', flexDirection: 'column', gap: 2,
|
|
135
|
-
}}>
|
|
136
|
-
<span style={{ color: c.text, fontSize: 13, fontWeight: 500 }}>{p.name}</span>
|
|
137
|
-
<span style={{ color: c.textDim, fontSize: 11, fontFamily: 'var(--font-mono)' }}>{p.path}</span>
|
|
138
|
-
</button>
|
|
139
|
-
))}
|
|
140
|
-
</div>
|
|
141
|
-
</div>
|
|
142
|
-
)}
|
|
143
|
-
|
|
144
|
-
{loading && (
|
|
145
|
-
<div style={{ color: c.textMuted, fontSize: 12, textAlign: 'center', padding: 16 }}>
|
|
146
|
-
Scanning for projects...
|
|
147
|
-
</div>
|
|
148
|
-
)}
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
);
|
|
152
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import { useSessionStore } from '../../store/session-store';
|
|
3
|
-
import { useThemeStore } from '../../themes';
|
|
4
|
-
|
|
5
|
-
const MODELS = [
|
|
6
|
-
{ id: 'claude-opus-4-6', name: 'Opus 4.6', tier: 'max' },
|
|
7
|
-
{ id: 'claude-sonnet-4-6', name: 'Sonnet 4.6', tier: 'balanced' },
|
|
8
|
-
{ id: 'claude-sonnet-4-20250514', name: 'Sonnet 4', tier: 'balanced' },
|
|
9
|
-
{ id: 'claude-haiku-4-5-20251001', name: 'Haiku 4.5', tier: 'fast' },
|
|
10
|
-
];
|
|
11
|
-
|
|
12
|
-
const TIER_COLORS: Record<string, string> = {
|
|
13
|
-
max: '#a855f7',
|
|
14
|
-
balanced: '#60a5fa',
|
|
15
|
-
fast: '#22c55e',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
interface Props {
|
|
19
|
-
isOpen: boolean;
|
|
20
|
-
onClose: () => void;
|
|
21
|
-
onSelect: (modelId: string) => void;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function ModelSelector({ isOpen, onClose, onSelect }: Props) {
|
|
25
|
-
const theme = useThemeStore((s) => s.activeTheme);
|
|
26
|
-
const currentModel = useSessionStore((s) => s.model);
|
|
27
|
-
const c = theme.colors;
|
|
28
|
-
|
|
29
|
-
if (!isOpen) return null;
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<div style={{
|
|
33
|
-
position: 'absolute', top: '100%', right: 0, marginTop: 4,
|
|
34
|
-
background: c.bgSurface, border: `1px solid ${c.border}`,
|
|
35
|
-
borderRadius: 8, padding: 4, width: 220, zIndex: 100,
|
|
36
|
-
boxShadow: '0 8px 32px rgba(0,0,0,0.4)',
|
|
37
|
-
}}>
|
|
38
|
-
<div style={{ padding: '4px 8px', fontSize: 10, color: c.textDim, fontWeight: 600 }}>
|
|
39
|
-
SELECT MODEL
|
|
40
|
-
</div>
|
|
41
|
-
{MODELS.map((m) => {
|
|
42
|
-
const isActive = currentModel.toLowerCase().includes(m.name.toLowerCase().split(' ')[0].toLowerCase());
|
|
43
|
-
return (
|
|
44
|
-
<button key={m.id} onClick={() => { onSelect(m.id); onClose(); }} style={{
|
|
45
|
-
width: '100%', background: isActive ? `${c.accent}15` : 'transparent',
|
|
46
|
-
border: isActive ? `1px solid ${c.accent}30` : '1px solid transparent',
|
|
47
|
-
borderRadius: 6, padding: '8px 10px', cursor: 'pointer',
|
|
48
|
-
display: 'flex', alignItems: 'center', gap: 8, textAlign: 'left',
|
|
49
|
-
}}>
|
|
50
|
-
<span style={{
|
|
51
|
-
width: 6, height: 6, borderRadius: '50%',
|
|
52
|
-
background: TIER_COLORS[m.tier],
|
|
53
|
-
flexShrink: 0,
|
|
54
|
-
}} />
|
|
55
|
-
<div style={{ flex: 1 }}>
|
|
56
|
-
<div style={{ color: c.text, fontSize: 13, fontWeight: 500 }}>{m.name}</div>
|
|
57
|
-
<div style={{ color: c.textDim, fontSize: 10 }}>{m.tier}</div>
|
|
58
|
-
</div>
|
|
59
|
-
{isActive && <span style={{ color: c.accent, fontSize: 12 }}>●</span>}
|
|
60
|
-
</button>
|
|
61
|
-
);
|
|
62
|
-
})}
|
|
63
|
-
</div>
|
|
64
|
-
);
|
|
65
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { useThemeStore } from '../../themes';
|
|
2
|
-
import { useSessionStore } from '../../store/session-store';
|
|
3
|
-
import { useStatuslineStore } from '../../store/statusline-store';
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
onResume: (sessionId: string) => void;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function SessionManager({ isOpen, onClose, onResume }: Props) {
|
|
12
|
-
const theme = useThemeStore((s) => s.activeTheme);
|
|
13
|
-
const sessionId = useSessionStore((s) => s.sessionId);
|
|
14
|
-
const model = useStatuslineStore((s) => s.model);
|
|
15
|
-
const cost = useStatuslineStore((s) => s.costFormatted);
|
|
16
|
-
const turns = useStatuslineStore((s) => s.numTurns);
|
|
17
|
-
const duration = useStatuslineStore((s) => s.durationFormatted);
|
|
18
|
-
const c = theme.colors;
|
|
19
|
-
|
|
20
|
-
if (!isOpen) return null;
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<div style={{
|
|
24
|
-
position: 'fixed', inset: 0, zIndex: 1000,
|
|
25
|
-
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
|
26
|
-
background: 'rgba(0,0,0,0.6)', backdropFilter: 'blur(4px)',
|
|
27
|
-
}} onClick={onClose}>
|
|
28
|
-
<div style={{
|
|
29
|
-
background: c.bgSurface, border: `1px solid ${c.border}`,
|
|
30
|
-
borderRadius: 12, padding: 24, width: 420,
|
|
31
|
-
display: 'flex', flexDirection: 'column', gap: 16,
|
|
32
|
-
}} onClick={(e) => e.stopPropagation()}>
|
|
33
|
-
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
|
34
|
-
<h2 style={{ color: c.text, fontSize: 16, fontWeight: 700, margin: 0 }}>
|
|
35
|
-
Session Info
|
|
36
|
-
</h2>
|
|
37
|
-
<button onClick={onClose} style={{
|
|
38
|
-
background: 'none', border: 'none', color: c.textMuted,
|
|
39
|
-
fontSize: 20, cursor: 'pointer',
|
|
40
|
-
}}>×</button>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
{sessionId ? (
|
|
44
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
|
45
|
-
<InfoRow label="Session ID" value={sessionId} color={c.accent} mono />
|
|
46
|
-
<InfoRow label="Model" value={model} color={c.model} />
|
|
47
|
-
<InfoRow label="Cost" value={cost} color={c.cost} />
|
|
48
|
-
<InfoRow label="Turns" value={String(turns)} color={c.text} />
|
|
49
|
-
<InfoRow label="Duration" value={duration} color={c.textMuted} />
|
|
50
|
-
|
|
51
|
-
<div style={{ marginTop: 8, display: 'flex', gap: 8 }}>
|
|
52
|
-
<button onClick={() => {
|
|
53
|
-
navigator.clipboard.writeText(sessionId);
|
|
54
|
-
}} style={{
|
|
55
|
-
flex: 1, background: c.bgPanel, color: c.text,
|
|
56
|
-
border: `1px solid ${c.border}`, borderRadius: 6,
|
|
57
|
-
padding: '8px 12px', fontSize: 12, cursor: 'pointer',
|
|
58
|
-
}}>
|
|
59
|
-
Copy Session ID
|
|
60
|
-
</button>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
) : (
|
|
64
|
-
<div style={{ color: c.textMuted, fontSize: 13, textAlign: 'center', padding: 16 }}>
|
|
65
|
-
No active session. Send a message to start one.
|
|
66
|
-
</div>
|
|
67
|
-
)}
|
|
68
|
-
|
|
69
|
-
{/* Resume section */}
|
|
70
|
-
<div style={{ borderTop: `1px solid ${c.border}`, paddingTop: 16 }}>
|
|
71
|
-
<div style={{ fontSize: 10, color: c.textDim, fontWeight: 600, marginBottom: 8 }}>
|
|
72
|
-
RESUME SESSION
|
|
73
|
-
</div>
|
|
74
|
-
<div style={{ display: 'flex', gap: 8 }}>
|
|
75
|
-
<input
|
|
76
|
-
type="text"
|
|
77
|
-
placeholder="Paste session ID..."
|
|
78
|
-
style={{
|
|
79
|
-
flex: 1, background: c.bgPanel, color: c.text,
|
|
80
|
-
border: `1px solid ${c.border}`, borderRadius: 6,
|
|
81
|
-
padding: '8px 12px', fontSize: 12, outline: 'none',
|
|
82
|
-
fontFamily: 'var(--font-mono)',
|
|
83
|
-
}}
|
|
84
|
-
onKeyDown={(e) => {
|
|
85
|
-
if (e.key === 'Enter') {
|
|
86
|
-
const val = (e.target as HTMLInputElement).value.trim();
|
|
87
|
-
if (val) { onResume(val); onClose(); }
|
|
88
|
-
}
|
|
89
|
-
}}
|
|
90
|
-
/>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function InfoRow({ label, value, color, mono }: {
|
|
99
|
-
label: string; value: string; color: string; mono?: boolean;
|
|
100
|
-
}) {
|
|
101
|
-
const theme = useThemeStore((s) => s.activeTheme);
|
|
102
|
-
return (
|
|
103
|
-
<div style={{
|
|
104
|
-
display: 'flex', justifyContent: 'space-between', alignItems: 'center',
|
|
105
|
-
padding: '6px 10px', background: theme.colors.bgPanel, borderRadius: 4,
|
|
106
|
-
}}>
|
|
107
|
-
<span style={{ color: theme.colors.textMuted, fontSize: 12 }}>{label}</span>
|
|
108
|
-
<span style={{
|
|
109
|
-
color, fontSize: 12, fontWeight: 500,
|
|
110
|
-
fontFamily: mono ? 'var(--font-mono)' : 'inherit',
|
|
111
|
-
maxWidth: 200, overflow: 'hidden', textOverflow: 'ellipsis',
|
|
112
|
-
}}>{value}</span>
|
|
113
|
-
</div>
|
|
114
|
-
);
|
|
115
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { useStatuslineStore, fmtTok } from '../../store/statusline-store';
|
|
2
|
-
import { useThemeStore } from '../../themes';
|
|
3
|
-
|
|
4
|
-
// StatuslineBar is a CORE non-removable component of UC UpfynAI-Code.
|
|
5
|
-
// It MUST always be rendered in App.tsx — do not add a close/dismiss/toggle button.
|
|
6
|
-
// Proprietary software by Thinqmesh Technologies, Developed by Anit Chaudhary.
|
|
7
|
-
|
|
8
|
-
export function StatuslineBar() {
|
|
9
|
-
const theme = useThemeStore((s) => s.activeTheme);
|
|
10
|
-
const sl = useStatuslineStore();
|
|
11
|
-
const c = theme.colors;
|
|
12
|
-
|
|
13
|
-
const ctxColor = sl.contextPct > 90 ? c.ctxCrit
|
|
14
|
-
: sl.contextPct > 75 ? c.ctxHigh
|
|
15
|
-
: sl.contextPct > 40 ? c.ctxMed
|
|
16
|
-
: c.ctxLow;
|
|
17
|
-
|
|
18
|
-
const barWidth = 200;
|
|
19
|
-
const filled = Math.round((sl.contextPct / 100) * barWidth);
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<div style={{
|
|
23
|
-
display: 'flex', flexWrap: 'wrap', alignItems: 'center', gap: 0,
|
|
24
|
-
padding: '6px 16px', borderTop: `1px solid ${c.border}`,
|
|
25
|
-
background: c.bgSurface, fontFamily: 'var(--font-mono)',
|
|
26
|
-
fontSize: 11, flexShrink: 0, lineHeight: 1.6,
|
|
27
|
-
}}>
|
|
28
|
-
{/* Row 1: Skill | GitHub */}
|
|
29
|
-
<div style={{ width: '100%', display: 'flex', gap: 4 }}>
|
|
30
|
-
<Field label="Skill" value={sl.skill} color={c.skill} width="45%" />
|
|
31
|
-
<Sep color={c.separator} />
|
|
32
|
-
<Field label="GitHub" value={sl.github} color={c.github} width="50%"
|
|
33
|
-
suffix={
|
|
34
|
-
<>
|
|
35
|
-
{sl.gitDirty.staged && <span style={{ color: c.gitStaged }}>+</span>}
|
|
36
|
-
{sl.gitDirty.unstaged && <span style={{ color: c.gitUnstaged }}>~</span>}
|
|
37
|
-
</>
|
|
38
|
-
}
|
|
39
|
-
/>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
{/* Row 2: Model | Dir */}
|
|
43
|
-
<div style={{ width: '100%', display: 'flex', gap: 4 }}>
|
|
44
|
-
<Field label="Model" value={sl.model} color={c.model} width="45%" bold />
|
|
45
|
-
<Sep color={c.separator} />
|
|
46
|
-
<Field label="Dir" value={sl.dirShort} color={c.dir} width="50%" />
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
{/* Row 3: Tokens | Cost */}
|
|
50
|
-
<div style={{ width: '100%', display: 'flex', gap: 4 }}>
|
|
51
|
-
<Field label="Tokens" value={`${fmtTok(sl.tokensWinIn)} + ${fmtTok(sl.tokensWinOut)}`} color={c.tokens} width="45%" />
|
|
52
|
-
<Sep color={c.separator} />
|
|
53
|
-
<Field label="Cost" value={sl.costFormatted} color={c.cost} width="50%" />
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
{/* Row 4: Context bar */}
|
|
57
|
-
<div style={{ width: '100%', display: 'flex', alignItems: 'center', gap: 6, marginTop: 2 }}>
|
|
58
|
-
<span style={{ color: ctxColor, minWidth: 55 }}>Context:</span>
|
|
59
|
-
<div style={{
|
|
60
|
-
flex: 1, maxWidth: barWidth, height: 8, borderRadius: 4,
|
|
61
|
-
background: c.barEmpty, overflow: 'hidden',
|
|
62
|
-
}}>
|
|
63
|
-
<div style={{
|
|
64
|
-
width: `${sl.contextPct}%`, height: '100%', borderRadius: 4,
|
|
65
|
-
background: ctxColor, transition: 'width 0.3s ease',
|
|
66
|
-
}} />
|
|
67
|
-
</div>
|
|
68
|
-
<span style={{ color: ctxColor, minWidth: 32 }}>{sl.contextPct}%</span>
|
|
69
|
-
{sl.compactionWarning && (
|
|
70
|
-
<span style={{
|
|
71
|
-
color: sl.isCompacting ? c.ctxCrit : c.ctxHigh,
|
|
72
|
-
fontWeight: sl.isCompacting ? 700 : 400, fontSize: 10,
|
|
73
|
-
}}>
|
|
74
|
-
{sl.compactionWarning}
|
|
75
|
-
</span>
|
|
76
|
-
)}
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
{/* Proprietary branding — non-removable */}
|
|
80
|
-
<div style={{
|
|
81
|
-
width: '100%', display: 'flex', justifyContent: 'space-between',
|
|
82
|
-
alignItems: 'center', marginTop: 2, paddingTop: 2,
|
|
83
|
-
borderTop: `1px solid ${c.border}`,
|
|
84
|
-
}}>
|
|
85
|
-
<span style={{ color: c.textDim, fontSize: 9, letterSpacing: 0.3 }}>
|
|
86
|
-
Thinqmesh Technologies
|
|
87
|
-
</span>
|
|
88
|
-
<span style={{ color: c.textDim, fontSize: 9, letterSpacing: 0.3 }}>
|
|
89
|
-
Developed by Anit Chaudhary
|
|
90
|
-
</span>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function Field({ label, value, color, width, bold, suffix }: {
|
|
97
|
-
label: string; value: string; color: string; width: string;
|
|
98
|
-
bold?: boolean; suffix?: React.ReactNode;
|
|
99
|
-
}) {
|
|
100
|
-
const theme = useThemeStore((s) => s.activeTheme);
|
|
101
|
-
return (
|
|
102
|
-
<div style={{ width, display: 'flex', gap: 4, overflow: 'hidden' }}>
|
|
103
|
-
<span style={{ color: theme.colors.label }}>{label}:</span>
|
|
104
|
-
<span style={{ color, fontWeight: bold ? 700 : 400, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>
|
|
105
|
-
{value}
|
|
106
|
-
</span>
|
|
107
|
-
{suffix}
|
|
108
|
-
</div>
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function Sep({ color }: { color: string }) {
|
|
113
|
-
return <span style={{ color, margin: '0 4px' }}>│</span>;
|
|
114
|
-
}
|
package/src/main.tsx
DELETED