upfynai-code 2.6.0 → 2.6.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/README.md +123 -88
- package/bin/cli.js +63 -0
- package/package.json +48 -106
- package/src/auth.js +115 -0
- package/src/config.js +33 -0
- package/src/connect.js +314 -0
- package/src/launch.js +54 -0
- package/src/mcp.js +57 -0
- package/src/server.js +54 -0
- package/client/dist/api-docs.html +0 -879
- package/client/dist/assets/AppContent-C0CyP3g5.js +0 -513
- package/client/dist/assets/CanvasPanel-0u9QR7U-.js +0 -34
- package/client/dist/assets/CanvasPanel-WhZulBJw.css +0 -1
- package/client/dist/assets/DashboardPanel-Dgqw1yZk.js +0 -1
- 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-CZDEzqjK.js +0 -19
- package/client/dist/assets/MarkdownPreview-CYdvwJaV.js +0 -1
- package/client/dist/assets/Onboarding-DR6NZ4Vz.js +0 -1
- package/client/dist/assets/SetupForm-D49gtWY4.js +0 -1
- package/client/dist/assets/Tableau10-B-NsZVaP.js +0 -1
- package/client/dist/assets/WorkflowsPanel-CqlbEJA_.js +0 -1
- package/client/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js +0 -1
- package/client/dist/assets/ar-SA-G6X2FPQ2-BWqa1yBH.js +0 -10
- package/client/dist/assets/arc-BegSKqEW.js +0 -1
- package/client/dist/assets/array-BKyUJesY.js +0 -1
- package/client/dist/assets/az-AZ-76LH7QW2-DrVlbZDP.js +0 -1
- package/client/dist/assets/bg-BG-XCXSNQG7-DdunjBgT.js +0 -5
- package/client/dist/assets/blockDiagram-38ab4fdb-BKMbwGHu.js +0 -118
- package/client/dist/assets/bn-BD-2XOGV67Q-_7DtmvwO.js +0 -5
- package/client/dist/assets/c4Diagram-3d4e48cf-hJuiHhSn.js +0 -10
- package/client/dist/assets/ca-ES-6MX7JW3Y-BFIrmojG.js +0 -8
- package/client/dist/assets/channel-Bur-rRTp.js +0 -1
- package/client/dist/assets/classDiagram-70f12bd4-BjiAf9cM.js +0 -2
- package/client/dist/assets/classDiagram-v2-f2320105-pwBewejc.js +0 -2
- package/client/dist/assets/clone-BtqXeoBJ.js +0 -1
- package/client/dist/assets/createText-2e5e7dd3-Dq_acOWe.js +0 -5
- package/client/dist/assets/cs-CZ-2BRQDIVT-B-x4F6TJ.js +0 -11
- package/client/dist/assets/da-DK-5WZEPLOC-Btlc8Dgn.js +0 -5
- package/client/dist/assets/de-DE-XR44H4JA-BVu3ZIoD.js +0 -8
- package/client/dist/assets/directory-open-01563666-DWU9wJ6I.js +0 -1
- package/client/dist/assets/directory-open-4ed118d0-CunoC1EB.js +0 -1
- package/client/dist/assets/edges-e0da2a9e-DH0wVTXR.js +0 -4
- package/client/dist/assets/el-GR-BZB4AONW-h2ll8_ZC.js +0 -10
- package/client/dist/assets/erDiagram-9861fffd-BYezLIR7.js +0 -51
- package/client/dist/assets/es-ES-U4NZUMDT-Cveiulwt.js +0 -9
- package/client/dist/assets/eu-ES-A7QVB2H4-DQluL2PY.js +0 -11
- package/client/dist/assets/fa-IR-HGAKTJCU-BJtcMBSv.js +0 -8
- package/client/dist/assets/fi-FI-Z5N7JZ37-D8NfbVXV.js +0 -6
- package/client/dist/assets/file-open-002ab408-DIuFHtCF.js +0 -1
- package/client/dist/assets/file-open-7c801643-684qeFg4.js +0 -1
- package/client/dist/assets/file-save-3189631c-C1wFhQhH.js +0 -1
- package/client/dist/assets/file-save-745eba88-Bb9F9Kg7.js +0 -1
- package/client/dist/assets/flowDb-956e92f1-scnUykhM.js +0 -10
- package/client/dist/assets/flowDiagram-66a62f08-jVyWsfyU.js +0 -4
- package/client/dist/assets/flowDiagram-v2-96b9c2cf-N6xgi25h.js +0 -1
- package/client/dist/assets/flowchart-elk-definition-4a651766-gKGX3HqR.js +0 -139
- package/client/dist/assets/fr-FR-RHASNOE6-vdj42kC6.js +0 -9
- package/client/dist/assets/ganttDiagram-c361ad54-C2CiWFUP.js +0 -257
- package/client/dist/assets/gitGraphDiagram-72cf32ee-C59Yz2LK.js +0 -70
- package/client/dist/assets/gl-ES-HMX3MZ6V-DQo0TzoP.js +0 -10
- package/client/dist/assets/graph-Dx_H43Kv.js +0 -1
- package/client/dist/assets/he-IL-6SHJWFNN-DKXK5e33.js +0 -10
- package/client/dist/assets/hi-IN-IWLTKZ5I-C2Qgqc0R.js +0 -4
- package/client/dist/assets/hu-HU-A5ZG7DT2-Ss-6vX0m.js +0 -7
- package/client/dist/assets/id-ID-SAP4L64H-D7Wsg1S2.js +0 -10
- package/client/dist/assets/image-blob-reduce.esm-D6s-rqMO.js +0 -7
- package/client/dist/assets/index-3862675e-u8Nv7hHC.js +0 -1
- package/client/dist/assets/index-BVowJdZF.js +0 -97
- package/client/dist/assets/index-ce18TYkg.js +0 -27
- package/client/dist/assets/index-kQoJx-bc.css +0 -1
- package/client/dist/assets/infoDiagram-f8f76790-LmoJYsxo.js +0 -7
- package/client/dist/assets/init-Gi6I4Gst.js +0 -1
- package/client/dist/assets/it-IT-JPQ66NNP-CAPTVl7M.js +0 -11
- package/client/dist/assets/ja-JP-DBVTYXUO-eNVPawR2.js +0 -8
- package/client/dist/assets/journeyDiagram-49397b02-BaJqehpR.js +0 -139
- package/client/dist/assets/kaa-6HZHGXH3-tpuNkKhS.js +0 -1
- package/client/dist/assets/kab-KAB-ZGHBKWFO-Dp83kx4x.js +0 -8
- package/client/dist/assets/kk-KZ-P5N5QNE5-B9IlC6YN.js +0 -1
- package/client/dist/assets/km-KH-HSX4SM5Z-B_KMYaMj.js +0 -11
- package/client/dist/assets/ko-KR-MTYHY66A-yebnUNdb.js +0 -9
- package/client/dist/assets/ku-TR-6OUDTVRD-BR6fh6-5.js +0 -9
- package/client/dist/assets/layout-DLl5Jwcl.js +0 -1
- package/client/dist/assets/line-FpB7omSK.js +0 -1
- package/client/dist/assets/linear-CkXqUFJ8.js +0 -1
- package/client/dist/assets/lt-LT-XHIRWOB4-SutZSWtR.js +0 -3
- package/client/dist/assets/lv-LV-5QDEKY6T-DuAxdcZL.js +0 -7
- package/client/dist/assets/mindmap-definition-fc14e90a-DyxXOExh.js +0 -425
- package/client/dist/assets/mr-IN-CRQNXWMA-DqDUWM_8.js +0 -13
- package/client/dist/assets/my-MM-5M5IBNSE-C40kMFMR.js +0 -1
- package/client/dist/assets/nb-NO-T6EIAALU-DVij32Ju.js +0 -10
- package/client/dist/assets/nl-NL-IS3SIHDZ-rT84mDYq.js +0 -8
- package/client/dist/assets/nn-NO-6E72VCQL-BBZXBW8V.js +0 -8
- package/client/dist/assets/oc-FR-POXYY2M6-DzjOugOf.js +0 -8
- package/client/dist/assets/ordinal-Cboi1Yqb.js +0 -1
- package/client/dist/assets/pa-IN-N4M65BXN-DD1iU8_F.js +0 -4
- package/client/dist/assets/path-CbwjOpE9.js +0 -1
- package/client/dist/assets/pdf-CE_K4jFx.js +0 -12
- package/client/dist/assets/pdf.worker-BA9kU3Pw.mjs +0 -61080
- package/client/dist/assets/percentages-BXMCSKIN-WVlHS4wx.js +0 -207
- package/client/dist/assets/pica-CQIY57Tf.js +0 -7
- package/client/dist/assets/pieDiagram-8a3498a8-Dd_85qBH.js +0 -35
- package/client/dist/assets/pl-PL-T2D74RX3-ukVXa48G.js +0 -9
- package/client/dist/assets/pt-BR-5N22H2LF-BibawarT.js +0 -9
- package/client/dist/assets/pt-PT-UZXXM6DQ-So3i9l9w.js +0 -9
- package/client/dist/assets/quadrantDiagram-120e2f19-C4dFVDEx.js +0 -7
- package/client/dist/assets/requirementDiagram-deff3bca-DrTO7yFl.js +0 -52
- package/client/dist/assets/ro-RO-JPDTUUEW-DY0Xq_Hd.js +0 -11
- package/client/dist/assets/roundRect-0PYZxl1G.js +0 -1
- package/client/dist/assets/ru-RU-B4JR7IUQ-B7u_Zvkd.js +0 -9
- package/client/dist/assets/sankeyDiagram-04a897e0-D24gfzuS.js +0 -8
- package/client/dist/assets/sequenceDiagram-704730f1-Dgji2XLQ.js +0 -122
- package/client/dist/assets/si-LK-N5RQ5JYF-OejsLzQ_.js +0 -1
- package/client/dist/assets/sk-SK-C5VTKIMK-_vy2Bt-M.js +0 -6
- package/client/dist/assets/sl-SI-NN7IZMDC-DKOl_u2M.js +0 -6
- package/client/dist/assets/stateDiagram-587899a1-CJ8eBaiU.js +0 -1
- package/client/dist/assets/stateDiagram-v2-d93cdb3a-C5K3l-Nt.js +0 -1
- package/client/dist/assets/styles-6aaf32cf-DAKE0jbx.js +0 -207
- package/client/dist/assets/styles-9a916d00-LFAJCgEy.js +0 -160
- package/client/dist/assets/styles-c10674c1-CllKO8NG.js +0 -116
- package/client/dist/assets/subset-shared.chunk-Uy-J87FQ.js +0 -84
- package/client/dist/assets/subset-worker.chunk-dvgDvqt9.js +0 -1
- package/client/dist/assets/sv-SE-XGPEYMSR-CDCB2ZV5.js +0 -10
- package/client/dist/assets/svgDrawCommon-08f97a94-CObOzbFQ.js +0 -1
- package/client/dist/assets/ta-IN-2NMHFXQM-DHUNdO69.js +0 -9
- package/client/dist/assets/th-TH-HPSO5L25-zI2hnBq3.js +0 -2
- package/client/dist/assets/timeline-definition-85554ec2-C2XHRmxK.js +0 -61
- package/client/dist/assets/tr-TR-DEFEU3FU-l-6Hu4-D.js +0 -7
- package/client/dist/assets/uk-UA-QMV73CPH-CqSOwrl7.js +0 -6
- package/client/dist/assets/vendor-codemirror-D_s0aGBu.js +0 -35
- package/client/dist/assets/vendor-i18n-DCFGyhQR.js +0 -1
- package/client/dist/assets/vendor-icons-Lb69KSFJ.js +0 -646
- package/client/dist/assets/vendor-markdown-BXEi_H3G.js +0 -298
- package/client/dist/assets/vendor-react-9mUTKBHH.js +0 -67
- package/client/dist/assets/vendor-syntax-DnmwQQJF.js +0 -16
- package/client/dist/assets/vendor-xterm-CZq1hqo1.js +0 -66
- package/client/dist/assets/vendor-xterm-qxJ8_QYu.css +0 -32
- package/client/dist/assets/vi-VN-M7AON7JQ-CUL8-mBZ.js +0 -5
- package/client/dist/assets/xychartDiagram-e933f94c-1fmf6slj.js +0 -7
- package/client/dist/assets/zh-CN-LNUGB5OW-CB5y5VVU.js +0 -10
- package/client/dist/assets/zh-HK-E62DVLB3-BHcrrEeJ.js +0 -1
- package/client/dist/assets/zh-TW-RAJ6MFWO-DoDUdkaJ.js +0 -9
- package/client/dist/clear-cache.html +0 -85
- package/client/dist/convert-icons.md +0 -53
- package/client/dist/favicon.png +0 -0
- package/client/dist/favicon.svg +0 -9
- package/client/dist/generate-icons.js +0 -49
- package/client/dist/icons/claude-ai-icon.svg +0 -1
- package/client/dist/icons/codex-white.svg +0 -3
- package/client/dist/icons/codex.svg +0 -3
- package/client/dist/icons/cursor-white.svg +0 -12
- package/client/dist/icons/cursor.svg +0 -1
- package/client/dist/icons/icon-128x128.png +0 -0
- package/client/dist/icons/icon-128x128.svg +0 -12
- package/client/dist/icons/icon-144x144.png +0 -0
- package/client/dist/icons/icon-144x144.svg +0 -12
- package/client/dist/icons/icon-152x152.png +0 -0
- package/client/dist/icons/icon-152x152.svg +0 -12
- package/client/dist/icons/icon-192x192.png +0 -0
- package/client/dist/icons/icon-192x192.svg +0 -12
- package/client/dist/icons/icon-384x384.png +0 -0
- package/client/dist/icons/icon-384x384.svg +0 -12
- package/client/dist/icons/icon-512x512.png +0 -0
- package/client/dist/icons/icon-512x512.svg +0 -12
- package/client/dist/icons/icon-72x72.png +0 -0
- package/client/dist/icons/icon-72x72.svg +0 -12
- package/client/dist/icons/icon-96x96.png +0 -0
- package/client/dist/icons/icon-96x96.svg +0 -12
- package/client/dist/icons/icon-template.svg +0 -12
- package/client/dist/index.html +0 -128
- 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 +0 -17
- package/client/dist/manifest.json +0 -61
- package/client/dist/mcp-docs.html +0 -119
- 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 +0 -19
- package/commands/upfynai-connect.md +0 -59
- package/commands/upfynai-disconnect.md +0 -31
- package/commands/upfynai-doctor.md +0 -99
- package/commands/upfynai-export.md +0 -49
- package/commands/upfynai-local.md +0 -82
- package/commands/upfynai-status.md +0 -75
- package/commands/upfynai-stop.md +0 -49
- package/commands/upfynai-uninstall.md +0 -58
- package/commands/upfynai.md +0 -69
- package/scripts/build-client.js +0 -17
- package/scripts/fix-node-pty.js +0 -67
- package/scripts/install-commands.js +0 -78
- package/server/claude-sdk.js +0 -714
- package/server/cli-ui.js +0 -785
- package/server/cli.js +0 -596
- package/server/constants/config.js +0 -31
- package/server/cursor-cli.js +0 -270
- package/server/database/auth.db +0 -0
- package/server/database/db.js +0 -822
- package/server/database/init.sql +0 -70
- package/server/index.js +0 -2738
- package/server/load-env.js +0 -26
- package/server/mcp-server.js +0 -621
- package/server/middleware/auth.js +0 -181
- package/server/openai-codex.js +0 -403
- package/server/openrouter.js +0 -137
- package/server/projects.js +0 -1742
- package/server/relay-client.js +0 -672
- package/server/routes/agent.js +0 -1226
- package/server/routes/auth.js +0 -266
- package/server/routes/cli-auth.js +0 -263
- package/server/routes/codex.js +0 -344
- package/server/routes/commands.js +0 -598
- package/server/routes/cursor.js +0 -807
- package/server/routes/dashboard.js +0 -205
- package/server/routes/git.js +0 -1151
- package/server/routes/mcp-utils.js +0 -48
- package/server/routes/mcp.js +0 -535
- package/server/routes/payments.js +0 -172
- package/server/routes/projects.js +0 -552
- package/server/routes/settings.js +0 -261
- package/server/routes/taskmaster.js +0 -1928
- package/server/routes/user.js +0 -106
- package/server/routes/vapi-chat.js +0 -94
- package/server/routes/voice.js +0 -194
- package/server/routes/webhooks.js +0 -166
- package/server/routes/workflows.js +0 -118
- package/server/sandbox.js +0 -120
- package/server/services/whisperService.js +0 -84
- package/server/services/workflowScheduler.js +0 -186
- package/server/utils/commandParser.js +0 -303
- package/server/utils/gitConfig.js +0 -24
- package/server/utils/mcp-detector.js +0 -198
- package/server/utils/taskmaster-websocket.js +0 -129
- package/shared/modelConstants.js +0 -96
package/server/cli-ui.js
DELETED
|
@@ -1,785 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Upfyn-Code CLI — Terminal UI & Animations
|
|
3
|
-
*
|
|
4
|
-
* Beautiful blue-themed terminal experience inspired by Claude Code.
|
|
5
|
-
* Uses terminal-safe characters that render correctly on Windows CMD,
|
|
6
|
-
* PowerShell, Windows Terminal, Git Bash, macOS Terminal, and Linux.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
// --- ANSI escape codes ---
|
|
10
|
-
const ESC = '\x1b';
|
|
11
|
-
const CSI = `${ESC}[`;
|
|
12
|
-
|
|
13
|
-
// Blue theme palette (24-bit RGB — works in all modern terminals)
|
|
14
|
-
const theme = {
|
|
15
|
-
// Core blues
|
|
16
|
-
blue: `${CSI}38;2;59;130;246m`, // #3B82F6
|
|
17
|
-
brightBlue: `${CSI}38;2;96;165;250m`, // #60A5FA
|
|
18
|
-
skyBlue: `${CSI}38;2;125;211;252m`, // #7DD3FC
|
|
19
|
-
deepBlue: `${CSI}38;2;30;58;138m`, // #1E3A8A
|
|
20
|
-
indigo: `${CSI}38;2;99;102;241m`, // #6366F1
|
|
21
|
-
violet: `${CSI}38;2;139;92;246m`, // #8B5CF6
|
|
22
|
-
|
|
23
|
-
// Accent
|
|
24
|
-
cyan: `${CSI}38;2;34;211;238m`, // #22D3EE
|
|
25
|
-
teal: `${CSI}38;2;45;212;191m`, // #2DD4BF
|
|
26
|
-
white: `${CSI}38;2;248;250;252m`, // #F8FAFC
|
|
27
|
-
gray: `${CSI}38;2;148;163;184m`, // #94A3B8
|
|
28
|
-
dimGray: `${CSI}38;2;71;85;105m`, // #475569
|
|
29
|
-
darkGray: `${CSI}38;2;51;65;85m`, // #334155
|
|
30
|
-
yellow: `${CSI}38;2;250;204;21m`, // #FACC15
|
|
31
|
-
green: `${CSI}38;2;74;222;128m`, // #4ADE80
|
|
32
|
-
red: `${CSI}38;2;248;113;113m`, // #F87171
|
|
33
|
-
orange: `${CSI}38;2;251;146;60m`, // #FB923C
|
|
34
|
-
|
|
35
|
-
// Background
|
|
36
|
-
bgDeep: `${CSI}48;2;15;23;42m`, // #0F172A
|
|
37
|
-
bgBlue: `${CSI}48;2;30;58;138m`, // #1E3A8A
|
|
38
|
-
bgBright: `${CSI}48;2;59;130;246m`, // #3B82F6
|
|
39
|
-
|
|
40
|
-
// Formatting
|
|
41
|
-
bold: `${CSI}1m`,
|
|
42
|
-
dim: `${CSI}2m`,
|
|
43
|
-
italic: `${CSI}3m`,
|
|
44
|
-
underline: `${CSI}4m`,
|
|
45
|
-
reset: `${CSI}0m`,
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const t = theme;
|
|
49
|
-
const r = t.reset;
|
|
50
|
-
|
|
51
|
-
// --- Terminal capability detection ---
|
|
52
|
-
function detectTerminalSupport() {
|
|
53
|
-
// Windows Terminal, VS Code, modern terminals support full Unicode
|
|
54
|
-
if (process.env.WT_SESSION) return 'unicode';
|
|
55
|
-
if (process.env.TERM_PROGRAM === 'vscode') return 'unicode';
|
|
56
|
-
if (process.env.TERM_PROGRAM === 'iTerm.app') return 'unicode';
|
|
57
|
-
if (process.env.TERM_PROGRAM === 'Hyper') return 'unicode';
|
|
58
|
-
if (process.env.TERM === 'xterm-256color') return 'unicode';
|
|
59
|
-
if (process.env.TERM === 'xterm-kitty') return 'unicode';
|
|
60
|
-
if (process.env.COLORTERM === 'truecolor') return 'unicode';
|
|
61
|
-
|
|
62
|
-
// Windows without WT_SESSION — use ASCII
|
|
63
|
-
if (process.platform === 'win32') return 'ascii';
|
|
64
|
-
|
|
65
|
-
// Most modern Linux/Mac terminals support basic box-drawing
|
|
66
|
-
return 'unicode';
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Box-drawing character sets
|
|
70
|
-
const CHARS_UNICODE = {
|
|
71
|
-
h: '\u2500', // ─
|
|
72
|
-
v: '\u2502', // │
|
|
73
|
-
tl: '\u250C', // ┌
|
|
74
|
-
tr: '\u2510', // ┐
|
|
75
|
-
bl: '\u2514', // └
|
|
76
|
-
br: '\u2518', // ┘
|
|
77
|
-
cross: '\u253C', // ┼
|
|
78
|
-
ltee: '\u251C', // ├
|
|
79
|
-
rtee: '\u2524', // ┤
|
|
80
|
-
ttee: '\u252C', // ┬
|
|
81
|
-
btee: '\u2534', // ┴
|
|
82
|
-
dot: '\u00B7', // ·
|
|
83
|
-
bullet: '\u2022', // •
|
|
84
|
-
star: '*',
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
const CHARS_ASCII = {
|
|
88
|
-
h: '-',
|
|
89
|
-
v: '|',
|
|
90
|
-
tl: '+',
|
|
91
|
-
tr: '+',
|
|
92
|
-
bl: '+',
|
|
93
|
-
br: '+',
|
|
94
|
-
cross: '+',
|
|
95
|
-
ltee: '+',
|
|
96
|
-
rtee: '+',
|
|
97
|
-
ttee: '+',
|
|
98
|
-
btee: '+',
|
|
99
|
-
dot: '.',
|
|
100
|
-
bullet: '*',
|
|
101
|
-
star: '*',
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
const termLevel = detectTerminalSupport();
|
|
105
|
-
const ch = termLevel === 'unicode' ? CHARS_UNICODE : CHARS_ASCII;
|
|
106
|
-
|
|
107
|
-
// Helper — colorize
|
|
108
|
-
const c = {
|
|
109
|
-
blue: (s) => `${t.blue}${s}${r}`,
|
|
110
|
-
bright: (s) => `${t.brightBlue}${s}${r}`,
|
|
111
|
-
sky: (s) => `${t.skyBlue}${s}${r}`,
|
|
112
|
-
cyan: (s) => `${t.cyan}${s}${r}`,
|
|
113
|
-
teal: (s) => `${t.teal}${s}${r}`,
|
|
114
|
-
white: (s) => `${t.bold}${t.white}${s}${r}`,
|
|
115
|
-
gray: (s) => `${t.gray}${s}${r}`,
|
|
116
|
-
dim: (s) => `${t.dimGray}${s}${r}`,
|
|
117
|
-
dark: (s) => `${t.darkGray}${s}${r}`,
|
|
118
|
-
green: (s) => `${t.green}${s}${r}`,
|
|
119
|
-
yellow: (s) => `${t.yellow}${s}${r}`,
|
|
120
|
-
red: (s) => `${t.red}${s}${r}`,
|
|
121
|
-
orange: (s) => `${t.orange}${s}${r}`,
|
|
122
|
-
violet: (s) => `${t.violet}${s}${r}`,
|
|
123
|
-
indigo: (s) => `${t.indigo}${s}${r}`,
|
|
124
|
-
bold: (s) => `${t.bold}${s}${r}`,
|
|
125
|
-
bBlue: (s) => `${t.bold}${t.blue}${s}${r}`,
|
|
126
|
-
bBright: (s) => `${t.bold}${t.brightBlue}${s}${r}`,
|
|
127
|
-
bWhite: (s) => `${t.bold}${t.white}${s}${r}`,
|
|
128
|
-
bCyan: (s) => `${t.bold}${t.cyan}${s}${r}`,
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
// --- ASCII Art Logo ---
|
|
132
|
-
const LOGO = [
|
|
133
|
-
`${t.brightBlue} __ __ ____ ${t.skyBlue} ______ __ ${r}`,
|
|
134
|
-
`${t.brightBlue} / / / /___ / __/_ ______ ${t.skyBlue}/ ____/___ ____/ /__ ${r}`,
|
|
135
|
-
`${t.brightBlue} / / / / __ \\/ /_/ / / / __ \\ ${t.blue}____${t.skyBlue}/ / / __ \\/ __ / _ \\ ${r}`,
|
|
136
|
-
`${t.brightBlue} / /_/ / /_/ / __/ /_/ / / / / ${t.blue}/___ ${t.skyBlue}/ /___/ /_/ / /_/ / __/ ${r}`,
|
|
137
|
-
`${t.brightBlue} \\____/ .___/_/ \\__, /_/ /_/ ${t.skyBlue}\\____/\\____/\\__,_/\\___/ ${r}`,
|
|
138
|
-
`${t.brightBlue} /_/ /____/ ${r}`,
|
|
139
|
-
];
|
|
140
|
-
|
|
141
|
-
// --- Rocket ASCII Art (safe characters only) ---
|
|
142
|
-
const ROCKET_FRAMES = [
|
|
143
|
-
// Frame 0: Pre-launch
|
|
144
|
-
[
|
|
145
|
-
` ${t.dimGray}|${r}`,
|
|
146
|
-
` ${t.white}/${t.brightBlue}^${t.white}\\${r}`,
|
|
147
|
-
` ${t.white}|${t.blue}||${t.white}|${r}`,
|
|
148
|
-
` ${t.white}|${t.blue}||${t.white}|${r}`,
|
|
149
|
-
` ${t.white}|${t.brightBlue}||${t.white}|${r}`,
|
|
150
|
-
` ${t.white}/${t.blue}|||${t.white}\\${r}`,
|
|
151
|
-
` ${t.white}/${t.blue}=====${t.white}\\${r}`,
|
|
152
|
-
` ${t.dimGray}==========${r}`,
|
|
153
|
-
],
|
|
154
|
-
// Frame 1: Ignition
|
|
155
|
-
[
|
|
156
|
-
` ${t.dimGray}|${r}`,
|
|
157
|
-
` ${t.white}/${t.brightBlue}^${t.white}\\${r}`,
|
|
158
|
-
` ${t.white}|${t.blue}||${t.white}|${r}`,
|
|
159
|
-
` ${t.white}|${t.blue}||${t.white}|${r}`,
|
|
160
|
-
` ${t.white}|${t.brightBlue}||${t.white}|${r}`,
|
|
161
|
-
` ${t.white}/${t.blue}|||${t.white}\\${r}`,
|
|
162
|
-
` ${t.white}/${t.blue}=====${t.white}\\${r}`,
|
|
163
|
-
` ${t.orange}#${t.yellow}*${t.orange}#${t.yellow}*${t.orange}#${r}`,
|
|
164
|
-
],
|
|
165
|
-
// Frame 2: Lift-off
|
|
166
|
-
[
|
|
167
|
-
` ${t.white}/${t.brightBlue}^${t.white}\\${r}`,
|
|
168
|
-
` ${t.white}|${t.blue}||${t.white}|${r}`,
|
|
169
|
-
` ${t.white}|${t.blue}||${t.white}|${r}`,
|
|
170
|
-
` ${t.white}|${t.brightBlue}||${t.white}|${r}`,
|
|
171
|
-
` ${t.white}/${t.blue}|||${t.white}\\${r}`,
|
|
172
|
-
` ${t.white}/${t.blue}=====${t.white}\\${r}`,
|
|
173
|
-
` ${t.yellow}#${t.orange}@${t.yellow}#${t.orange}@${t.yellow}#${r}`,
|
|
174
|
-
` ${t.orange}*${t.yellow}o${t.orange}*${r}`,
|
|
175
|
-
],
|
|
176
|
-
// Frame 3: Ascending
|
|
177
|
-
[
|
|
178
|
-
` ${t.white}/${t.brightBlue}^${t.white}\\${r}`,
|
|
179
|
-
` ${t.white}|${t.blue}||${t.white}|${r}`,
|
|
180
|
-
` ${t.white}|${t.brightBlue}||${t.white}|${r}`,
|
|
181
|
-
` ${t.white}/${t.blue}|||${t.white}\\${r}`,
|
|
182
|
-
` ${t.white}/${t.blue}=====${t.white}\\${r}`,
|
|
183
|
-
` ${t.yellow}@${t.orange}#${t.yellow}@${t.orange}#${t.yellow}@${r}`,
|
|
184
|
-
` ${t.orange}#${t.yellow}@${t.orange}#${r}`,
|
|
185
|
-
` ${t.yellow}*${t.orange}*${r}`,
|
|
186
|
-
],
|
|
187
|
-
// Frame 4: Full thrust
|
|
188
|
-
[
|
|
189
|
-
` ${t.white}/${t.brightBlue}^${t.white}\\${r}`,
|
|
190
|
-
` ${t.white}|${t.blue}||${t.white}|${r}`,
|
|
191
|
-
` ${t.white}|${t.brightBlue}||${t.white}|${r}`,
|
|
192
|
-
` ${t.white}/${t.blue}|||${t.white}\\${r}`,
|
|
193
|
-
` ${t.white}/${t.blue}=====${t.white}\\${r}`,
|
|
194
|
-
` ${t.yellow}@${t.orange}#${t.yellow}@${t.orange}#${t.yellow}@${t.orange}#${r}`,
|
|
195
|
-
` ${t.orange}#${t.yellow}@${t.orange}#${t.yellow}@${r}`,
|
|
196
|
-
` ${t.yellow}o${t.orange}*${t.yellow}o${r}`,
|
|
197
|
-
` ${t.orange}*${t.yellow}*${r}`,
|
|
198
|
-
],
|
|
199
|
-
// Frame 5: Going up
|
|
200
|
-
[
|
|
201
|
-
``,
|
|
202
|
-
` ${t.white}/${t.brightBlue}^${t.white}\\${r}`,
|
|
203
|
-
` ${t.white}|${t.blue}||${t.white}|${r}`,
|
|
204
|
-
` ${t.white}/${t.blue}|||${t.white}\\${r}`,
|
|
205
|
-
` ${t.white}/${t.blue}=====${t.white}\\${r}`,
|
|
206
|
-
` ${t.yellow}@${t.orange}#${t.yellow}@${t.orange}#${t.yellow}@${t.orange}#${r}`,
|
|
207
|
-
` ${t.orange}@${t.yellow}#${t.orange}@${t.yellow}#${r}`,
|
|
208
|
-
` ${t.yellow}o${t.orange}o${t.yellow}o${r}`,
|
|
209
|
-
` ${t.orange}*${r} ${t.dimGray}.${r}`,
|
|
210
|
-
],
|
|
211
|
-
// Frame 6: Higher
|
|
212
|
-
[
|
|
213
|
-
``,
|
|
214
|
-
``,
|
|
215
|
-
` ${t.skyBlue}/${t.brightBlue}^${t.skyBlue}\\${r}`,
|
|
216
|
-
` ${t.skyBlue}|${t.blue}||${t.skyBlue}|${r}`,
|
|
217
|
-
` ${t.skyBlue}/${t.blue}==${t.skyBlue}\\${r}`,
|
|
218
|
-
` ${t.yellow}#${t.orange}@${t.yellow}#${t.orange}#${r}`,
|
|
219
|
-
` ${t.orange}o${t.yellow}o${r}`,
|
|
220
|
-
` ${t.yellow}*${r}`,
|
|
221
|
-
` ${t.dimGray}.${r} ${t.dimGray}.${r}`,
|
|
222
|
-
],
|
|
223
|
-
// Frame 7: Almost gone
|
|
224
|
-
[
|
|
225
|
-
``,
|
|
226
|
-
``,
|
|
227
|
-
``,
|
|
228
|
-
` ${t.skyBlue}/${t.brightBlue}^${t.skyBlue}\\${r}`,
|
|
229
|
-
` ${t.blue}==${r}`,
|
|
230
|
-
` ${t.orange}o${t.yellow}o${r}`,
|
|
231
|
-
` ${t.yellow}*${r}`,
|
|
232
|
-
``,
|
|
233
|
-
` ${t.dimGray}.${r} ${t.dimGray}.${r} ${t.dimGray}.${r}`,
|
|
234
|
-
],
|
|
235
|
-
// Frame 8: Gone — just stars
|
|
236
|
-
[
|
|
237
|
-
``,
|
|
238
|
-
``,
|
|
239
|
-
``,
|
|
240
|
-
` ${t.brightBlue}*${r}`,
|
|
241
|
-
``,
|
|
242
|
-
` ${t.dimGray}.${r}`,
|
|
243
|
-
``,
|
|
244
|
-
` ${t.dimGray}.${r} ${t.dimGray}.${r}`,
|
|
245
|
-
` ${t.dimGray}.${r} ${t.dimGray}.${r} ${t.dimGray}.${r}`,
|
|
246
|
-
],
|
|
247
|
-
];
|
|
248
|
-
|
|
249
|
-
// --- Sleep utility ---
|
|
250
|
-
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
251
|
-
|
|
252
|
-
// --- Clear screen ---
|
|
253
|
-
const clearScreen = () => process.stdout.write(`${CSI}2J${CSI}H`);
|
|
254
|
-
|
|
255
|
-
// --- Move cursor ---
|
|
256
|
-
const moveTo = (row, col) => process.stdout.write(`${CSI}${row};${col}H`);
|
|
257
|
-
|
|
258
|
-
// --- Hide/show cursor ---
|
|
259
|
-
const hideCursor = () => process.stdout.write(`${CSI}?25l`);
|
|
260
|
-
const showCursor = () => process.stdout.write(`${CSI}?25h`);
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Strip ANSI codes for length calculation
|
|
264
|
-
*/
|
|
265
|
-
function stripAnsi(str) {
|
|
266
|
-
return str.replace(/\x1b\[[0-9;]*m/g, '');
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Pad a string (with ANSI codes) to a visual width
|
|
271
|
-
*/
|
|
272
|
-
function padAnsi(str, width) {
|
|
273
|
-
const visible = stripAnsi(str).length;
|
|
274
|
-
const pad = Math.max(0, width - visible);
|
|
275
|
-
return str + ' '.repeat(pad);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Draw a horizontal line
|
|
280
|
-
*/
|
|
281
|
-
function hLine(width = 60) {
|
|
282
|
-
return c.dark(ch.h.repeat(width));
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Play the rocket launch animation
|
|
287
|
-
*/
|
|
288
|
-
async function playRocketAnimation() {
|
|
289
|
-
hideCursor();
|
|
290
|
-
clearScreen();
|
|
291
|
-
|
|
292
|
-
const cols = process.stdout.columns || 80;
|
|
293
|
-
const centerX = Math.floor(cols / 2) - 12;
|
|
294
|
-
|
|
295
|
-
// Show pre-launch text
|
|
296
|
-
moveTo(2, centerX - 5);
|
|
297
|
-
process.stdout.write(c.dim('Initializing Upfyn-Code...'));
|
|
298
|
-
|
|
299
|
-
await sleep(400);
|
|
300
|
-
|
|
301
|
-
// Play each frame
|
|
302
|
-
const delays = [500, 300, 200, 150, 120, 120, 150, 200, 400];
|
|
303
|
-
|
|
304
|
-
for (let f = 0; f < ROCKET_FRAMES.length; f++) {
|
|
305
|
-
// Clear the animation area (rows 4-14)
|
|
306
|
-
for (let row = 4; row <= 14; row++) {
|
|
307
|
-
moveTo(row, 1);
|
|
308
|
-
process.stdout.write(' '.repeat(cols));
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
const frame = ROCKET_FRAMES[f];
|
|
312
|
-
for (let i = 0; i < frame.length; i++) {
|
|
313
|
-
moveTo(4 + i, centerX);
|
|
314
|
-
process.stdout.write(frame[i]);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
// Status text under animation
|
|
318
|
-
moveTo(14, centerX - 2);
|
|
319
|
-
if (f === 0) process.stdout.write(c.dim('Systems check...'));
|
|
320
|
-
else if (f === 1) process.stdout.write(c.orange('Ignition sequence started'));
|
|
321
|
-
else if (f === 2) process.stdout.write(c.yellow('Lift-off!'));
|
|
322
|
-
else if (f <= 4) process.stdout.write(c.bright('Ascending...'));
|
|
323
|
-
else if (f <= 6) process.stdout.write(c.sky('Reaching orbit...'));
|
|
324
|
-
else if (f === 7) process.stdout.write(c.cyan('Entering space...'));
|
|
325
|
-
else process.stdout.write(c.bBright('Ready to code! *'));
|
|
326
|
-
|
|
327
|
-
await sleep(delays[f] || 200);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
await sleep(300);
|
|
331
|
-
showCursor();
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Draw a box with title (terminal-safe characters)
|
|
336
|
-
*/
|
|
337
|
-
function box(title, content, width = 58) {
|
|
338
|
-
const lines = [];
|
|
339
|
-
const inner = width - 4;
|
|
340
|
-
|
|
341
|
-
lines.push(` ${t.dimGray}${ch.tl}${ch.h}${r} ${c.bBright(title)} ${t.dimGray}${ch.h.repeat(Math.max(0, inner - title.length - 1))}${ch.tr}${r}`);
|
|
342
|
-
|
|
343
|
-
for (const line of content) {
|
|
344
|
-
lines.push(` ${t.dimGray}${ch.v}${r} ${line}`);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
lines.push(` ${t.dimGray}${ch.bl}${ch.h.repeat(width - 2)}${ch.br}${r}`);
|
|
348
|
-
return lines;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Show the main welcome screen (Claude Code-style layout)
|
|
353
|
-
*/
|
|
354
|
-
function showWelcomeScreen(version, options = {}) {
|
|
355
|
-
const cols = process.stdout.columns || 80;
|
|
356
|
-
const { serverUrl, username, cwd, isConnected } = options;
|
|
357
|
-
const W = Math.min(cols - 4, 72); // content width
|
|
358
|
-
const leftW = 32;
|
|
359
|
-
const rightW = W - leftW - 3; // 3 for separator + padding
|
|
360
|
-
|
|
361
|
-
clearScreen();
|
|
362
|
-
|
|
363
|
-
const lines = [];
|
|
364
|
-
|
|
365
|
-
// --- Top border with version ---
|
|
366
|
-
const verStr = `Upfyn-Code v${version}`;
|
|
367
|
-
const topPad = Math.max(0, W - verStr.length - 4);
|
|
368
|
-
lines.push('');
|
|
369
|
-
lines.push(` ${t.dimGray}${ch.h}${ch.h} ${r}${c.bBright(verStr)}${t.dimGray} ${ch.h.repeat(topPad)}${r}`);
|
|
370
|
-
lines.push('');
|
|
371
|
-
|
|
372
|
-
// --- Build left and right panels ---
|
|
373
|
-
const leftPanel = [];
|
|
374
|
-
const rightPanel = [];
|
|
375
|
-
|
|
376
|
-
// Left: Welcome + Rocket mascot
|
|
377
|
-
leftPanel.push(c.bWhite(' Welcome back!'));
|
|
378
|
-
leftPanel.push('');
|
|
379
|
-
leftPanel.push(` ${t.dimGray}|${r}`);
|
|
380
|
-
leftPanel.push(` ${t.white}/${t.brightBlue}^${t.white}\\${r}`);
|
|
381
|
-
leftPanel.push(` ${t.white}|${t.blue}|${t.brightBlue}o${t.blue}|${t.white}|${r}`);
|
|
382
|
-
leftPanel.push(` ${t.white}|${t.blue}||${t.white}|${r}`);
|
|
383
|
-
leftPanel.push(` ${t.white}/${t.blue}===${t.white}\\${r}`);
|
|
384
|
-
leftPanel.push(` ${t.cyan}~~~~~${r}`);
|
|
385
|
-
leftPanel.push('');
|
|
386
|
-
if (username) {
|
|
387
|
-
leftPanel.push(` ${c.gray('User:')} ${c.bright(username)}`);
|
|
388
|
-
}
|
|
389
|
-
leftPanel.push(` ${c.gray('Path:')} ${c.dim(cwd || process.cwd())}`);
|
|
390
|
-
|
|
391
|
-
// Right: Tips + Recent Activity
|
|
392
|
-
rightPanel.push(` ${c.bCyan('Tips for getting started')}`);
|
|
393
|
-
rightPanel.push(` ${c.gray('Run')} ${c.bright('uc connect')} ${c.gray('to bridge to web UI')}`);
|
|
394
|
-
rightPanel.push(` ${c.gray('Run')} ${c.bright('uc start')} ${c.gray('to launch local server')}`);
|
|
395
|
-
rightPanel.push(` ${c.gray('Run')} ${c.bright('uc status')} ${c.gray('to see configuration')}`);
|
|
396
|
-
rightPanel.push(` ${c.gray('Run')} ${c.bright('uc help')} ${c.gray('for all commands')}`);
|
|
397
|
-
rightPanel.push('');
|
|
398
|
-
rightPanel.push(` ${c.bCyan('Recent activity')}`);
|
|
399
|
-
if (isConnected) {
|
|
400
|
-
rightPanel.push(` ${c.green('*')} Connected to ${c.bright(serverUrl || 'server')}`);
|
|
401
|
-
} else {
|
|
402
|
-
rightPanel.push(` ${c.dim('No active connection')}`);
|
|
403
|
-
}
|
|
404
|
-
rightPanel.push('');
|
|
405
|
-
if (serverUrl) {
|
|
406
|
-
rightPanel.push(` ${c.gray('Server:')} ${c.cyan(serverUrl)}`);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
// Merge panels side by side
|
|
410
|
-
const maxRows = Math.max(leftPanel.length, rightPanel.length);
|
|
411
|
-
|
|
412
|
-
for (let i = 0; i < maxRows; i++) {
|
|
413
|
-
const left = padAnsi(leftPanel[i] || '', leftW);
|
|
414
|
-
const right = rightPanel[i] || '';
|
|
415
|
-
lines.push(`${left}${t.dimGray}${ch.v}${r} ${right}`);
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
lines.push('');
|
|
419
|
-
|
|
420
|
-
// --- Bottom border ---
|
|
421
|
-
lines.push(` ${t.dimGray}${ch.h.repeat(W)}${r}`);
|
|
422
|
-
lines.push('');
|
|
423
|
-
|
|
424
|
-
// --- Status bar ---
|
|
425
|
-
const statusItems = [];
|
|
426
|
-
if (isConnected) {
|
|
427
|
-
statusItems.push(`${t.green}* Connected${r}`);
|
|
428
|
-
} else {
|
|
429
|
-
statusItems.push(`${t.dimGray}o Not connected${r}`);
|
|
430
|
-
}
|
|
431
|
-
statusItems.push(`${t.gray}v${version}${r}`);
|
|
432
|
-
|
|
433
|
-
lines.push(` ${statusItems.join(` ${t.dimGray}${ch.dot}${r} `)}`);
|
|
434
|
-
lines.push('');
|
|
435
|
-
|
|
436
|
-
// --- Input prompt area (between two lines like Claude Code) ---
|
|
437
|
-
lines.push(` ${t.dimGray}${ch.h.repeat(W)}${r}`);
|
|
438
|
-
lines.push(` ${t.brightBlue}>${r} ${c.dim('Type a command or use /upfynai-connect ...')}`);
|
|
439
|
-
lines.push(` ${t.dimGray}${ch.h.repeat(W)}${r}`);
|
|
440
|
-
lines.push('');
|
|
441
|
-
|
|
442
|
-
process.stdout.write(lines.join('\n') + '\n');
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Show connection success banner
|
|
447
|
-
*/
|
|
448
|
-
function showConnectionBanner(username, serverUrl) {
|
|
449
|
-
const W = 50;
|
|
450
|
-
const lines = [];
|
|
451
|
-
const bLine = (content) => ` ${t.green}${ch.v}${r}${padAnsi(content, W)}${t.green}${ch.v}${r}`;
|
|
452
|
-
lines.push('');
|
|
453
|
-
lines.push(` ${t.green}${ch.tl}${ch.h.repeat(W)}${ch.tr}${r}`);
|
|
454
|
-
lines.push(bLine(` ${c.green('OK')} ${c.bWhite('Connected successfully!')}`));
|
|
455
|
-
lines.push(bLine(''));
|
|
456
|
-
lines.push(bLine(` ${c.gray('User:')} ${c.bright(username || 'Unknown')}`));
|
|
457
|
-
lines.push(bLine(` ${c.gray('Server:')} ${c.cyan(serverUrl || 'Unknown')}`));
|
|
458
|
-
lines.push(bLine(''));
|
|
459
|
-
lines.push(bLine(` ${c.dim('Your machine is bridged to the web UI.')}`));
|
|
460
|
-
lines.push(bLine(` ${c.dim('Press Ctrl+C to disconnect.')}`));
|
|
461
|
-
lines.push(` ${t.green}${ch.bl}${ch.h.repeat(W)}${ch.br}${r}`);
|
|
462
|
-
lines.push('');
|
|
463
|
-
|
|
464
|
-
process.stdout.write(lines.join('\n') + '\n');
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* Show a spinner with message
|
|
469
|
-
*/
|
|
470
|
-
function createSpinner(message) {
|
|
471
|
-
const frames = ['/', '-', '\\', '|'];
|
|
472
|
-
let i = 0;
|
|
473
|
-
let interval;
|
|
474
|
-
|
|
475
|
-
return {
|
|
476
|
-
start() {
|
|
477
|
-
hideCursor();
|
|
478
|
-
interval = setInterval(() => {
|
|
479
|
-
const frame = frames[i % frames.length];
|
|
480
|
-
process.stdout.write(`\r ${t.brightBlue}${frame}${r} ${c.gray(message)}`);
|
|
481
|
-
i++;
|
|
482
|
-
}, 100);
|
|
483
|
-
},
|
|
484
|
-
stop(finalMessage) {
|
|
485
|
-
clearInterval(interval);
|
|
486
|
-
process.stdout.write(`\r ${c.green('OK')} ${c.white(finalMessage || message)}${''.padEnd(20)}\n`);
|
|
487
|
-
showCursor();
|
|
488
|
-
},
|
|
489
|
-
fail(finalMessage) {
|
|
490
|
-
clearInterval(interval);
|
|
491
|
-
process.stdout.write(`\r ${c.red('FAIL')} ${c.red(finalMessage || message)}${''.padEnd(20)}\n`);
|
|
492
|
-
showCursor();
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* Show styled help
|
|
499
|
-
*/
|
|
500
|
-
function showStyledHelp(version) {
|
|
501
|
-
const W = 60;
|
|
502
|
-
const lines = [];
|
|
503
|
-
|
|
504
|
-
lines.push('');
|
|
505
|
-
// Header box — build each line to exactly W visible chars inside the borders
|
|
506
|
-
const hdrLine1 = ` ${c.bBright('Upfyn-Code')} ${c.dim('--')} ${c.gray('by Thinqmesh Technologies')}`;
|
|
507
|
-
const hdrLine2 = ` ${c.dim('Visual AI Coding Interface with Upfyn-Canvas')}`;
|
|
508
|
-
lines.push(` ${t.brightBlue}${ch.tl}${ch.h.repeat(W)}${ch.tr}${r}`);
|
|
509
|
-
lines.push(` ${t.brightBlue}${ch.v}${r}${padAnsi(hdrLine1, W)}${t.brightBlue}${ch.v}${r}`);
|
|
510
|
-
lines.push(` ${t.brightBlue}${ch.v}${r}${padAnsi(hdrLine2, W)}${t.brightBlue}${ch.v}${r}`);
|
|
511
|
-
lines.push(` ${t.brightBlue}${ch.bl}${ch.h.repeat(W)}${ch.br}${r}`);
|
|
512
|
-
lines.push('');
|
|
513
|
-
|
|
514
|
-
// Usage
|
|
515
|
-
lines.push(` ${c.bBright('Usage:')}`);
|
|
516
|
-
lines.push(` ${c.bright('uc')} ${c.cyan('[command]')} ${c.dim('[options]')}`);
|
|
517
|
-
lines.push('');
|
|
518
|
-
|
|
519
|
-
// Commands
|
|
520
|
-
lines.push(` ${c.bBright('Commands:')}`);
|
|
521
|
-
const cmds = [
|
|
522
|
-
['(default)', 'Launch Claude Code with Upfyn branding'],
|
|
523
|
-
['start', 'Start the local server only'],
|
|
524
|
-
['connect', 'Connect local machine to hosted server'],
|
|
525
|
-
['config', 'View/set configuration (API key, etc.)'],
|
|
526
|
-
['status', 'Show configuration and data locations'],
|
|
527
|
-
['install-commands', 'Install /upfynai-* slash commands'],
|
|
528
|
-
['uninstall-commands', 'Remove /upfynai-* slash commands'],
|
|
529
|
-
['update', 'Update to the latest version'],
|
|
530
|
-
['help', 'Show this help information'],
|
|
531
|
-
['version', 'Show version information'],
|
|
532
|
-
];
|
|
533
|
-
for (const [cmd, desc] of cmds) {
|
|
534
|
-
lines.push(` ${c.cyan(cmd.padEnd(22))} ${c.gray(desc)}`);
|
|
535
|
-
}
|
|
536
|
-
lines.push('');
|
|
537
|
-
|
|
538
|
-
// Slash Commands
|
|
539
|
-
lines.push(` ${c.bBright('Slash Commands')} ${c.dim('(inside Claude Code CLI):')}`);
|
|
540
|
-
const slashCmds = [
|
|
541
|
-
['/upfynai', 'Start the web UI server'],
|
|
542
|
-
['/upfynai-connect', 'Connect CLI session to web UI'],
|
|
543
|
-
['/upfynai-disconnect', 'Disconnect from web UI'],
|
|
544
|
-
['/upfynai-status', 'Show connection status'],
|
|
545
|
-
['/upfynai-doctor', 'Run diagnostics'],
|
|
546
|
-
];
|
|
547
|
-
for (const [cmd, desc] of slashCmds) {
|
|
548
|
-
lines.push(` ${c.violet(cmd.padEnd(22))} ${c.gray(desc)}`);
|
|
549
|
-
}
|
|
550
|
-
lines.push('');
|
|
551
|
-
|
|
552
|
-
// Options
|
|
553
|
-
lines.push(` ${c.bBright('Options:')}`);
|
|
554
|
-
const opts = [
|
|
555
|
-
['-p, --port <port>', 'Set server port (default: 3001)'],
|
|
556
|
-
['--server <url>', 'Server URL for connect'],
|
|
557
|
-
['--key <token>', 'Relay token for connect'],
|
|
558
|
-
['--api-key <key>', 'Set Anthropic API key'],
|
|
559
|
-
['--database-path <path>', 'Custom database location'],
|
|
560
|
-
['-h, --help', 'Show help'],
|
|
561
|
-
['-v, --version', 'Show version'],
|
|
562
|
-
];
|
|
563
|
-
for (const [opt, desc] of opts) {
|
|
564
|
-
lines.push(` ${c.yellow(opt.padEnd(28))} ${c.gray(desc)}`);
|
|
565
|
-
}
|
|
566
|
-
lines.push('');
|
|
567
|
-
|
|
568
|
-
// Examples
|
|
569
|
-
lines.push(` ${c.bBright('Examples:')}`);
|
|
570
|
-
lines.push(` ${c.dim('$')} ${c.bright('uc')} ${c.dim('# Launch Claude Code')}`);
|
|
571
|
-
lines.push(` ${c.dim('$')} ${c.bright('uc connect --key upfyn_xxx')} ${c.dim('# Bridge to hosted server')}`);
|
|
572
|
-
lines.push(` ${c.dim('$')} ${c.bright('uc config --api-key sk-ant-xxx')} ${c.dim('# Save Anthropic API key')}`);
|
|
573
|
-
lines.push(` ${c.dim('$')} ${c.bright('uc start --port 8080')} ${c.dim('# Start on port 8080')}`);
|
|
574
|
-
lines.push(` ${c.dim('$')} ${c.bright('uc status')} ${c.dim('# Show configuration')}`);
|
|
575
|
-
lines.push('');
|
|
576
|
-
|
|
577
|
-
// Footer
|
|
578
|
-
lines.push(` ${c.dim('Documentation:')} ${c.cyan('https://cli.upfyn.com/docs')}`);
|
|
579
|
-
lines.push(` ${c.dim('Report Issues:')} ${c.cyan('https://github.com/thinqmesh/upfynai-code/issues')}`);
|
|
580
|
-
lines.push('');
|
|
581
|
-
|
|
582
|
-
process.stdout.write(lines.join('\n') + '\n');
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* Show styled status
|
|
587
|
-
*/
|
|
588
|
-
function showStyledStatus(info) {
|
|
589
|
-
const lines = [];
|
|
590
|
-
|
|
591
|
-
lines.push('');
|
|
592
|
-
lines.push(` ${c.bBright('Upfyn-Code')} ${c.dim('-- Status')}`);
|
|
593
|
-
lines.push(` ${c.dark('='.repeat(50))}`);
|
|
594
|
-
lines.push('');
|
|
595
|
-
|
|
596
|
-
// Version
|
|
597
|
-
lines.push(` ${c.bright('Version')} ${c.white(info.version)}`);
|
|
598
|
-
lines.push('');
|
|
599
|
-
|
|
600
|
-
// Installation
|
|
601
|
-
lines.push(` ${c.bright('Install')} ${c.dim(info.installDir)}`);
|
|
602
|
-
lines.push(` ${c.bright('Database')} ${c.dim(info.dbPath)}`);
|
|
603
|
-
if (info.dbExists) {
|
|
604
|
-
lines.push(` ${c.green('OK')} ${c.gray(`Exists (${info.dbSize})`)}`);
|
|
605
|
-
} else {
|
|
606
|
-
lines.push(` ${c.yellow('--')} ${c.gray('Not created yet')}`);
|
|
607
|
-
}
|
|
608
|
-
lines.push('');
|
|
609
|
-
|
|
610
|
-
// Configuration
|
|
611
|
-
lines.push(` ${c.bright('Config')}`);
|
|
612
|
-
lines.push(` ${c.gray('PORT')} ${c.cyan(info.port)} ${info.portDefault ? c.dim('(default)') : ''}`);
|
|
613
|
-
lines.push(` ${c.gray('DATABASE')} ${c.dim(info.dbPath)}`);
|
|
614
|
-
lines.push(` ${c.gray('CLI')} ${c.dim(info.claudeCli || 'claude (default)')}`);
|
|
615
|
-
if (info.apiKey) {
|
|
616
|
-
lines.push(` ${c.gray('API KEY')} ${c.green('Set')} ${c.dim('(sk-ant-...' + info.apiKey.slice(-4) + ')')}`);
|
|
617
|
-
}
|
|
618
|
-
lines.push('');
|
|
619
|
-
|
|
620
|
-
// Bottom
|
|
621
|
-
lines.push(` ${c.dark('='.repeat(50))}`);
|
|
622
|
-
lines.push('');
|
|
623
|
-
lines.push(` ${c.bCyan('Tips:')}`);
|
|
624
|
-
lines.push(` ${c.dim('>')} Use ${c.bright('uc')} to launch Claude Code with Upfyn branding`);
|
|
625
|
-
lines.push(` ${c.dim('>')} Use ${c.bright('uc connect --key upfyn_xxx')} to bridge to web UI`);
|
|
626
|
-
lines.push(` ${c.dim('>')} Use ${c.bright('uc config --api-key sk-ant-xxx')} to save your API key`);
|
|
627
|
-
lines.push('');
|
|
628
|
-
|
|
629
|
-
process.stdout.write(lines.join('\n') + '\n');
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
/**
|
|
633
|
-
* Show server startup banner
|
|
634
|
-
*/
|
|
635
|
-
function showServerBanner(port, version) {
|
|
636
|
-
const lines = [];
|
|
637
|
-
|
|
638
|
-
lines.push('');
|
|
639
|
-
for (const line of LOGO) lines.push(` ${line}`);
|
|
640
|
-
lines.push('');
|
|
641
|
-
lines.push(` ${c.dim('v' + version)} ${c.dim('--')} ${c.gray('by Thinqmesh Technologies')}`);
|
|
642
|
-
lines.push('');
|
|
643
|
-
lines.push(` ${c.dark(ch.h.repeat(52))}`);
|
|
644
|
-
lines.push('');
|
|
645
|
-
lines.push(` ${c.green('*')} ${c.bWhite('Server running')} ${c.gray('on')} ${c.bCyan(`http://localhost:${port}`)}`);
|
|
646
|
-
lines.push('');
|
|
647
|
-
lines.push(` ${c.dim('Press Ctrl+C to stop.')}`);
|
|
648
|
-
lines.push('');
|
|
649
|
-
|
|
650
|
-
process.stdout.write(lines.join('\n') + '\n');
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* Show connect startup with animation
|
|
655
|
-
*/
|
|
656
|
-
async function showConnectStartup(serverUrl, machine, user, version) {
|
|
657
|
-
await playRocketAnimation();
|
|
658
|
-
|
|
659
|
-
clearScreen();
|
|
660
|
-
|
|
661
|
-
const lines = [];
|
|
662
|
-
|
|
663
|
-
lines.push('');
|
|
664
|
-
for (const line of LOGO) lines.push(` ${line}`);
|
|
665
|
-
lines.push('');
|
|
666
|
-
lines.push(` ${c.dim('v' + version)} ${c.dim('--')} ${c.gray('Relay Client')}`);
|
|
667
|
-
lines.push('');
|
|
668
|
-
lines.push(` ${c.dark(ch.h.repeat(52))}`);
|
|
669
|
-
lines.push('');
|
|
670
|
-
lines.push(` ${c.gray('Server:')} ${c.cyan(serverUrl)}`);
|
|
671
|
-
lines.push(` ${c.gray('Machine:')} ${c.dim(machine)}`);
|
|
672
|
-
lines.push(` ${c.gray('User:')} ${c.dim(user)}`);
|
|
673
|
-
lines.push('');
|
|
674
|
-
|
|
675
|
-
process.stdout.write(lines.join('\n') + '\n');
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
* Show interactive launch screen (before spawning Claude Code)
|
|
680
|
-
*/
|
|
681
|
-
function showLaunchScreen(version, claudeBin, options = {}) {
|
|
682
|
-
const cols = process.stdout.columns || 80;
|
|
683
|
-
const W = Math.min(cols - 4, 72);
|
|
684
|
-
|
|
685
|
-
const lines = [];
|
|
686
|
-
|
|
687
|
-
lines.push('');
|
|
688
|
-
for (const line of LOGO) lines.push(` ${line}`);
|
|
689
|
-
lines.push('');
|
|
690
|
-
lines.push(` ${c.dim('v' + version)} ${c.dim('--')} ${c.gray('by Thinqmesh Technologies')}`);
|
|
691
|
-
lines.push('');
|
|
692
|
-
lines.push(` ${c.dark(ch.h.repeat(W))}`);
|
|
693
|
-
lines.push('');
|
|
694
|
-
|
|
695
|
-
if (claudeBin) {
|
|
696
|
-
lines.push(` ${c.green('*')} ${c.bWhite('Claude Code detected:')} ${c.dim(claudeBin)}`);
|
|
697
|
-
}
|
|
698
|
-
if (options.relayStatus) {
|
|
699
|
-
lines.push(` ${c.green('*')} ${c.bWhite('Relay:')} ${c.dim(options.relayStatus)}`);
|
|
700
|
-
}
|
|
701
|
-
if (options.apiKey) {
|
|
702
|
-
lines.push(` ${c.green('*')} ${c.bWhite('API Key:')} ${c.dim('Configured')}`);
|
|
703
|
-
}
|
|
704
|
-
lines.push('');
|
|
705
|
-
|
|
706
|
-
if (claudeBin) {
|
|
707
|
-
lines.push(` ${c.dim('Launching Claude Code...')}`);
|
|
708
|
-
lines.push(` ${c.dim('Slash commands available: /upfynai-connect, /upfynai-status')}`);
|
|
709
|
-
} else {
|
|
710
|
-
lines.push(` ${c.yellow('!')} ${c.white('Claude Code CLI not found on PATH')}`);
|
|
711
|
-
lines.push('');
|
|
712
|
-
lines.push(` ${c.gray('Install Claude Code:')}`);
|
|
713
|
-
lines.push(` ${c.bright('npm install -g @anthropic-ai/claude-code')}`);
|
|
714
|
-
lines.push('');
|
|
715
|
-
lines.push(` ${c.gray('Or start the server instead:')}`);
|
|
716
|
-
lines.push(` ${c.bright('uc start')}`);
|
|
717
|
-
}
|
|
718
|
-
lines.push('');
|
|
719
|
-
lines.push(` ${c.dark(ch.h.repeat(W))}`);
|
|
720
|
-
lines.push('');
|
|
721
|
-
|
|
722
|
-
process.stdout.write(lines.join('\n') + '\n');
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* Show config display
|
|
727
|
-
*/
|
|
728
|
-
function showConfig(config) {
|
|
729
|
-
const lines = [];
|
|
730
|
-
lines.push('');
|
|
731
|
-
lines.push(` ${c.bBright('Upfyn-Code')} ${c.dim('-- Configuration')}`);
|
|
732
|
-
lines.push(` ${c.dark('='.repeat(50))}`);
|
|
733
|
-
lines.push('');
|
|
734
|
-
|
|
735
|
-
lines.push(` ${c.gray('Server')} ${config.server ? c.cyan(config.server) : c.dim('(not set)')}`);
|
|
736
|
-
lines.push(` ${c.gray('Relay Key')} ${config.relayKey ? c.green('Set') + ' ' + c.dim('(' + config.relayKey.slice(0, 10) + '...)') : c.dim('(not set)')}`);
|
|
737
|
-
lines.push(` ${c.gray('API Key')} ${config.anthropicApiKey ? c.green('Set') + ' ' + c.dim('(sk-ant-...' + config.anthropicApiKey.slice(-4) + ')') : c.dim('(not set)')}`);
|
|
738
|
-
lines.push('');
|
|
739
|
-
lines.push(` ${c.gray('Config file:')} ${c.dim(config._path || '~/.upfynai/config.json')}`);
|
|
740
|
-
lines.push('');
|
|
741
|
-
|
|
742
|
-
lines.push(` ${c.bCyan('Set values:')}`);
|
|
743
|
-
lines.push(` ${c.dim('$')} ${c.bright('uc config --api-key sk-ant-xxx')} ${c.dim('# Save Anthropic API key')}`);
|
|
744
|
-
lines.push(` ${c.dim('$')} ${c.bright('uc config --clear-api-key')} ${c.dim('# Remove API key')}`);
|
|
745
|
-
lines.push(` ${c.dim('$')} ${c.bright('uc connect --server <url> --key <token>')}`);
|
|
746
|
-
lines.push('');
|
|
747
|
-
|
|
748
|
-
process.stdout.write(lines.join('\n') + '\n');
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* Log a relay event with icon
|
|
753
|
-
*/
|
|
754
|
-
function logRelayEvent(icon, message, color = 'gray') {
|
|
755
|
-
const colorFn = c[color] || c.gray;
|
|
756
|
-
const timestamp = new Date().toLocaleTimeString('en-US', { hour12: false });
|
|
757
|
-
console.log(` ${c.dim(timestamp)} ${icon} ${colorFn(message)}`);
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
export {
|
|
761
|
-
theme,
|
|
762
|
-
c,
|
|
763
|
-
ch,
|
|
764
|
-
LOGO,
|
|
765
|
-
detectTerminalSupport,
|
|
766
|
-
playRocketAnimation,
|
|
767
|
-
showWelcomeScreen,
|
|
768
|
-
showConnectionBanner,
|
|
769
|
-
showStyledHelp,
|
|
770
|
-
showStyledStatus,
|
|
771
|
-
showServerBanner,
|
|
772
|
-
showConnectStartup,
|
|
773
|
-
showLaunchScreen,
|
|
774
|
-
showConfig,
|
|
775
|
-
logRelayEvent,
|
|
776
|
-
createSpinner,
|
|
777
|
-
hideCursor,
|
|
778
|
-
showCursor,
|
|
779
|
-
clearScreen,
|
|
780
|
-
sleep,
|
|
781
|
-
hLine,
|
|
782
|
-
box,
|
|
783
|
-
stripAnsi,
|
|
784
|
-
padAnsi,
|
|
785
|
-
};
|