upfynai-code 0.1.0 → 2.1.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 +147 -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
|
@@ -0,0 +1,879 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Upfyn-Code - API Documentation</title>
|
|
7
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
8
|
+
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
9
|
+
|
|
10
|
+
<!-- Prism.js for syntax highlighting -->
|
|
11
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css">
|
|
12
|
+
|
|
13
|
+
<style>
|
|
14
|
+
* {
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:root {
|
|
21
|
+
--gray-50: #f9fafb;
|
|
22
|
+
--gray-100: #f3f4f6;
|
|
23
|
+
--gray-200: #e5e7eb;
|
|
24
|
+
--gray-600: #4b5563;
|
|
25
|
+
--gray-700: #374151;
|
|
26
|
+
--gray-800: #1f2937;
|
|
27
|
+
--gray-900: #111827;
|
|
28
|
+
--primary: #2563eb;
|
|
29
|
+
--primary-dark: #1d4ed8;
|
|
30
|
+
--green: #10b981;
|
|
31
|
+
--red: #ef4444;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
body {
|
|
35
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
36
|
+
line-height: 1.6;
|
|
37
|
+
color: var(--gray-900);
|
|
38
|
+
background: var(--gray-50);
|
|
39
|
+
margin: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
header {
|
|
43
|
+
background: white;
|
|
44
|
+
border-bottom: 1px solid var(--gray-200);
|
|
45
|
+
padding: 1.5rem 0;
|
|
46
|
+
position: sticky;
|
|
47
|
+
top: 0;
|
|
48
|
+
z-index: 100;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.header-content {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
padding: 0 2rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.brand {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 0.75rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.brand-icon {
|
|
65
|
+
width: 32px;
|
|
66
|
+
height: 32px;
|
|
67
|
+
background: var(--primary);
|
|
68
|
+
border-radius: 8px;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.brand-icon svg {
|
|
75
|
+
width: 16px;
|
|
76
|
+
height: 16px;
|
|
77
|
+
stroke: white;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.brand-text h1 {
|
|
81
|
+
font-size: 1.25rem;
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
color: var(--gray-900);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.brand-text .subtitle {
|
|
87
|
+
font-size: 0.875rem;
|
|
88
|
+
color: var(--gray-600);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.back-link {
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
gap: 0.5rem;
|
|
95
|
+
padding: 0.5rem 1rem;
|
|
96
|
+
background: var(--primary);
|
|
97
|
+
color: white;
|
|
98
|
+
text-decoration: none;
|
|
99
|
+
border-radius: 6px;
|
|
100
|
+
font-size: 0.875rem;
|
|
101
|
+
font-weight: 500;
|
|
102
|
+
transition: background 0.2s;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.back-link:hover {
|
|
106
|
+
background: var(--primary-dark);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.back-link svg {
|
|
110
|
+
width: 16px;
|
|
111
|
+
height: 16px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.main-layout {
|
|
115
|
+
display: flex;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.sidebar {
|
|
119
|
+
width: 240px;
|
|
120
|
+
background: white;
|
|
121
|
+
border-right: 1px solid var(--gray-200);
|
|
122
|
+
padding: 2rem 0;
|
|
123
|
+
position: sticky;
|
|
124
|
+
top: 73px;
|
|
125
|
+
height: calc(100vh - 73px);
|
|
126
|
+
overflow-y: auto;
|
|
127
|
+
flex-shrink: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.sidebar-title {
|
|
131
|
+
font-size: 0.75rem;
|
|
132
|
+
font-weight: 600;
|
|
133
|
+
text-transform: uppercase;
|
|
134
|
+
color: var(--gray-600);
|
|
135
|
+
padding: 0 1.5rem;
|
|
136
|
+
margin: 1.5rem 0 0.5rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.sidebar a {
|
|
140
|
+
display: block;
|
|
141
|
+
padding: 0.625rem 1.5rem;
|
|
142
|
+
color: var(--gray-700);
|
|
143
|
+
text-decoration: none;
|
|
144
|
+
font-size: 0.875rem;
|
|
145
|
+
transition: all 0.15s;
|
|
146
|
+
border-left: 3px solid transparent;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.sidebar a:hover {
|
|
150
|
+
background: var(--gray-50);
|
|
151
|
+
color: var(--primary);
|
|
152
|
+
border-left-color: var(--primary);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.content-wrapper {
|
|
156
|
+
flex: 1;
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
min-height: calc(100vh - 73px);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.section-row {
|
|
163
|
+
display: grid;
|
|
164
|
+
grid-template-columns: 1fr 600px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.docs-section {
|
|
168
|
+
padding: 3rem 3rem;
|
|
169
|
+
background: white;
|
|
170
|
+
border-right: 1px solid var(--gray-200);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.examples-section {
|
|
174
|
+
padding: 3rem 2rem;
|
|
175
|
+
background: #0d1117;
|
|
176
|
+
color: #e6edf3;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.examples-section h4 {
|
|
180
|
+
color: #e6edf3;
|
|
181
|
+
font-size: 0.875rem;
|
|
182
|
+
font-weight: 600;
|
|
183
|
+
margin-bottom: 1rem;
|
|
184
|
+
text-transform: uppercase;
|
|
185
|
+
letter-spacing: 0.05em;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
h2 {
|
|
189
|
+
font-size: 2rem;
|
|
190
|
+
font-weight: 700;
|
|
191
|
+
margin-bottom: 1rem;
|
|
192
|
+
color: var(--gray-900);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
h3 {
|
|
196
|
+
font-size: 1.375rem;
|
|
197
|
+
font-weight: 600;
|
|
198
|
+
margin: 2.5rem 0 1rem;
|
|
199
|
+
color: var(--gray-900);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
h4 {
|
|
203
|
+
font-size: 1rem;
|
|
204
|
+
font-weight: 600;
|
|
205
|
+
margin: 1.5rem 0 0.75rem;
|
|
206
|
+
color: var(--gray-700);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
p {
|
|
210
|
+
margin-bottom: 1rem;
|
|
211
|
+
color: var(--gray-600);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.intro {
|
|
215
|
+
background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
|
|
216
|
+
border: 1px solid rgba(37, 99, 235, 0.2);
|
|
217
|
+
border-radius: 8px;
|
|
218
|
+
padding: 1.5rem;
|
|
219
|
+
margin-bottom: 2rem;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.intro p {
|
|
223
|
+
color: var(--gray-700);
|
|
224
|
+
margin: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.endpoint {
|
|
228
|
+
margin: 2rem 0;
|
|
229
|
+
padding: 1.5rem;
|
|
230
|
+
background: var(--gray-50);
|
|
231
|
+
border-radius: 8px;
|
|
232
|
+
border: 1px solid var(--gray-200);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.endpoint-header {
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
gap: 1rem;
|
|
239
|
+
margin-bottom: 1rem;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.method {
|
|
243
|
+
padding: 0.375rem 0.875rem;
|
|
244
|
+
border-radius: 6px;
|
|
245
|
+
font-weight: 700;
|
|
246
|
+
font-size: 0.75rem;
|
|
247
|
+
text-transform: uppercase;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.method-post {
|
|
251
|
+
background: var(--green);
|
|
252
|
+
color: white;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.endpoint-path {
|
|
256
|
+
font-family: 'Monaco', 'Menlo', monospace;
|
|
257
|
+
font-size: 0.9375rem;
|
|
258
|
+
font-weight: 600;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
table {
|
|
262
|
+
width: 100%;
|
|
263
|
+
border-collapse: collapse;
|
|
264
|
+
margin: 1rem 0;
|
|
265
|
+
font-size: 0.875rem;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
th {
|
|
269
|
+
text-align: left;
|
|
270
|
+
padding: 0.875rem;
|
|
271
|
+
background: var(--gray-100);
|
|
272
|
+
border: 1px solid var(--gray-200);
|
|
273
|
+
font-weight: 600;
|
|
274
|
+
color: var(--gray-800);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
td {
|
|
278
|
+
padding: 0.875rem;
|
|
279
|
+
border: 1px solid var(--gray-200);
|
|
280
|
+
color: var(--gray-700);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
code {
|
|
284
|
+
background: rgba(37, 99, 235, 0.08);
|
|
285
|
+
padding: 0.1875rem 0.5rem;
|
|
286
|
+
border-radius: 4px;
|
|
287
|
+
font-family: 'Monaco', 'Menlo', monospace;
|
|
288
|
+
font-size: 0.875em;
|
|
289
|
+
color: var(--primary-dark);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.api-url {
|
|
293
|
+
color: #60a5fa;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.badge {
|
|
297
|
+
display: inline-block;
|
|
298
|
+
padding: 0.1875rem 0.625rem;
|
|
299
|
+
border-radius: 12px;
|
|
300
|
+
font-size: 0.6875rem;
|
|
301
|
+
font-weight: 600;
|
|
302
|
+
text-transform: uppercase;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.badge-required {
|
|
306
|
+
background: var(--red);
|
|
307
|
+
color: white;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.badge-optional {
|
|
311
|
+
background: var(--gray-200);
|
|
312
|
+
color: var(--gray-700);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.note {
|
|
316
|
+
padding: 1.25rem;
|
|
317
|
+
background: rgba(37, 99, 235, 0.05);
|
|
318
|
+
border-left: 4px solid var(--primary);
|
|
319
|
+
border-radius: 8px;
|
|
320
|
+
margin: 1rem 0;
|
|
321
|
+
font-size: 0.875rem;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* Code tabs in side panel */
|
|
325
|
+
.tab-buttons {
|
|
326
|
+
display: flex;
|
|
327
|
+
gap: 0.5rem;
|
|
328
|
+
margin-bottom: 1rem;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.tab-button {
|
|
332
|
+
padding: 0.5rem 1rem;
|
|
333
|
+
background: transparent;
|
|
334
|
+
border: 1px solid #30363d;
|
|
335
|
+
cursor: pointer;
|
|
336
|
+
font-size: 0.8125rem;
|
|
337
|
+
font-weight: 500;
|
|
338
|
+
color: #7d8590;
|
|
339
|
+
border-radius: 6px;
|
|
340
|
+
transition: all 0.2s;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.tab-button:hover {
|
|
344
|
+
color: #e6edf3;
|
|
345
|
+
border-color: #58a6ff;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.tab-button.active {
|
|
349
|
+
color: #e6edf3;
|
|
350
|
+
background: #1f6feb;
|
|
351
|
+
border-color: #1f6feb;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.tab-content {
|
|
355
|
+
display: none;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.tab-content.active {
|
|
359
|
+
display: block;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
pre[class*="language-"] {
|
|
363
|
+
margin: 0 0 1.5rem 0;
|
|
364
|
+
border-radius: 6px;
|
|
365
|
+
font-size: 0.8125rem;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.example-block {
|
|
369
|
+
margin-bottom: 2rem;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
@media (max-width: 1400px) {
|
|
373
|
+
.section-row {
|
|
374
|
+
grid-template-columns: 1fr 500px;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@media (max-width: 1200px) {
|
|
379
|
+
.section-row {
|
|
380
|
+
grid-template-columns: 1fr;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.examples-section {
|
|
384
|
+
border-top: 1px solid #30363d;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
@media (max-width: 768px) {
|
|
389
|
+
.main-layout {
|
|
390
|
+
flex-direction: column;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.sidebar {
|
|
394
|
+
width: 100%;
|
|
395
|
+
position: relative;
|
|
396
|
+
height: auto;
|
|
397
|
+
border-right: none;
|
|
398
|
+
border-bottom: 1px solid var(--gray-200);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.docs-section {
|
|
402
|
+
padding: 2rem 1.5rem;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.examples-section {
|
|
406
|
+
padding: 2rem 1.5rem;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
</style>
|
|
410
|
+
</head>
|
|
411
|
+
<body>
|
|
412
|
+
<header>
|
|
413
|
+
<div class="header-content">
|
|
414
|
+
<div class="brand">
|
|
415
|
+
<div class="brand-icon">
|
|
416
|
+
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
417
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"/>
|
|
418
|
+
</svg>
|
|
419
|
+
</div>
|
|
420
|
+
<div class="brand-text">
|
|
421
|
+
<h1>Upfyn-Code</h1>
|
|
422
|
+
<div class="subtitle">API Documentation</div>
|
|
423
|
+
</div>
|
|
424
|
+
</div>
|
|
425
|
+
<a href="/" class="back-link">
|
|
426
|
+
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
427
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"/>
|
|
428
|
+
</svg>
|
|
429
|
+
Back to App
|
|
430
|
+
</a>
|
|
431
|
+
</div>
|
|
432
|
+
</header>
|
|
433
|
+
|
|
434
|
+
<div class="main-layout">
|
|
435
|
+
<nav class="sidebar">
|
|
436
|
+
<div class="sidebar-title">Getting Started</div>
|
|
437
|
+
<a href="#authentication">Authentication</a>
|
|
438
|
+
<a href="#credentials">GitHub Credentials</a>
|
|
439
|
+
|
|
440
|
+
<div class="sidebar-title">API Reference</div>
|
|
441
|
+
<a href="#agent">Agent</a>
|
|
442
|
+
|
|
443
|
+
<div class="sidebar-title">Examples</div>
|
|
444
|
+
<a href="#usage-examples">Usage Patterns</a>
|
|
445
|
+
</nav>
|
|
446
|
+
|
|
447
|
+
<div class="content-wrapper">
|
|
448
|
+
<!-- Intro Section -->
|
|
449
|
+
<div class="section-row">
|
|
450
|
+
<div class="docs-section">
|
|
451
|
+
<div class="intro">
|
|
452
|
+
<p><strong>Programmatically trigger AI agents to work on projects.</strong> Clone GitHub repositories or use existing project paths. Perfect for CI/CD pipelines, automated code reviews, and bulk processing.</p>
|
|
453
|
+
</div>
|
|
454
|
+
|
|
455
|
+
<section id="authentication">
|
|
456
|
+
<h2>Authentication</h2>
|
|
457
|
+
<p>All API requests require authentication using an API key in the <code>X-API-Key</code> header.</p>
|
|
458
|
+
|
|
459
|
+
<p>Generate API keys in Settings → API & Tokens.</p>
|
|
460
|
+
</section>
|
|
461
|
+
|
|
462
|
+
<section id="credentials">
|
|
463
|
+
<h3>GitHub Credentials</h3>
|
|
464
|
+
<p>For private repositories, store a GitHub token in settings or pass it with each request.</p>
|
|
465
|
+
|
|
466
|
+
<div class="note">
|
|
467
|
+
<strong>Note:</strong> GitHub tokens in the request override stored tokens.
|
|
468
|
+
</div>
|
|
469
|
+
</section>
|
|
470
|
+
</div>
|
|
471
|
+
|
|
472
|
+
<div class="examples-section">
|
|
473
|
+
<div class="example-block">
|
|
474
|
+
<h4>Authentication Header</h4>
|
|
475
|
+
<pre><code class="language-http">X-API-Key: ck_your_api_key_here</code></pre>
|
|
476
|
+
</div>
|
|
477
|
+
</div>
|
|
478
|
+
</div>
|
|
479
|
+
|
|
480
|
+
<!-- Agent API Section -->
|
|
481
|
+
<div class="section-row">
|
|
482
|
+
<div class="docs-section">
|
|
483
|
+
<section id="agent">
|
|
484
|
+
<h2>Agent</h2>
|
|
485
|
+
|
|
486
|
+
<div class="endpoint">
|
|
487
|
+
<div class="endpoint-header">
|
|
488
|
+
<span class="method method-post">POST</span>
|
|
489
|
+
<span class="endpoint-path"><span class="api-url">http://localhost:3001</span>/api/agent</span>
|
|
490
|
+
</div>
|
|
491
|
+
|
|
492
|
+
<p>Trigger an AI agent (Claude, Cursor, or Codex) to work on a project.</p>
|
|
493
|
+
|
|
494
|
+
<h4>Request Body Parameters</h4>
|
|
495
|
+
<table>
|
|
496
|
+
<thead>
|
|
497
|
+
<tr>
|
|
498
|
+
<th>Parameter</th>
|
|
499
|
+
<th>Type</th>
|
|
500
|
+
<th>Required</th>
|
|
501
|
+
<th>Description</th>
|
|
502
|
+
</tr>
|
|
503
|
+
</thead>
|
|
504
|
+
<tbody>
|
|
505
|
+
<tr>
|
|
506
|
+
<td><code>githubUrl</code></td>
|
|
507
|
+
<td>string</td>
|
|
508
|
+
<td><span class="badge badge-optional">Conditional</span></td>
|
|
509
|
+
<td>GitHub repository URL to clone. If path exists with same repo, reuses it. If path exists with different repo, returns error.</td>
|
|
510
|
+
</tr>
|
|
511
|
+
<tr>
|
|
512
|
+
<td><code>projectPath</code></td>
|
|
513
|
+
<td>string</td>
|
|
514
|
+
<td><span class="badge badge-optional">Conditional</span></td>
|
|
515
|
+
<td>Path to existing project OR destination for cloning. If omitted with <code>githubUrl</code>, auto-generates path. If used alone, must point to existing project directory.</td>
|
|
516
|
+
</tr>
|
|
517
|
+
<tr>
|
|
518
|
+
<td><code>message</code></td>
|
|
519
|
+
<td>string</td>
|
|
520
|
+
<td><span class="badge badge-required">Required</span></td>
|
|
521
|
+
<td>Task for the AI agent</td>
|
|
522
|
+
</tr>
|
|
523
|
+
<tr>
|
|
524
|
+
<td><code>provider</code></td>
|
|
525
|
+
<td>string</td>
|
|
526
|
+
<td><span class="badge badge-optional">Optional</span></td>
|
|
527
|
+
<td><code>claude</code>, <code>cursor</code>, or <code>codex</code> (default: <code>claude</code>)</td>
|
|
528
|
+
</tr>
|
|
529
|
+
<tr>
|
|
530
|
+
<td><code>stream</code></td>
|
|
531
|
+
<td>boolean</td>
|
|
532
|
+
<td><span class="badge badge-optional">Optional</span></td>
|
|
533
|
+
<td>Enable streaming (default: <code>true</code>)</td>
|
|
534
|
+
</tr>
|
|
535
|
+
<tr>
|
|
536
|
+
<td><code>model</code></td>
|
|
537
|
+
<td>string</td>
|
|
538
|
+
<td><span class="badge badge-optional">Optional</span></td>
|
|
539
|
+
<td id="model-options-cell">
|
|
540
|
+
Model identifier for the AI provider (loading from constants...)
|
|
541
|
+
</td>
|
|
542
|
+
</tr>
|
|
543
|
+
<tr>
|
|
544
|
+
<td><code>cleanup</code></td>
|
|
545
|
+
<td>boolean</td>
|
|
546
|
+
<td><span class="badge badge-optional">Optional</span></td>
|
|
547
|
+
<td>Auto-cleanup after completion (default: <code>true</code>). Only applies when cloning via <code>githubUrl</code>. Existing projects specified via <code>projectPath</code> are never cleaned up.</td>
|
|
548
|
+
</tr>
|
|
549
|
+
<tr>
|
|
550
|
+
<td><code>githubToken</code></td>
|
|
551
|
+
<td>string</td>
|
|
552
|
+
<td><span class="badge badge-optional">Optional</span></td>
|
|
553
|
+
<td>GitHub token for private repos</td>
|
|
554
|
+
</tr>
|
|
555
|
+
<tr>
|
|
556
|
+
<td><code>branchName</code></td>
|
|
557
|
+
<td>string</td>
|
|
558
|
+
<td><span class="badge badge-optional">Optional</span></td>
|
|
559
|
+
<td>Custom branch name to use. If provided, <code>createBranch</code> is automatically enabled. Branch names are validated against Git naming rules. Works with <code>githubUrl</code> or <code>projectPath</code> (if it has a GitHub remote).</td>
|
|
560
|
+
</tr>
|
|
561
|
+
<tr>
|
|
562
|
+
<td><code>createBranch</code></td>
|
|
563
|
+
<td>boolean</td>
|
|
564
|
+
<td><span class="badge badge-optional">Optional</span></td>
|
|
565
|
+
<td>Create a new branch after successful completion (default: <code>false</code>). Automatically set to <code>true</code> if <code>branchName</code> is provided. Works with <code>githubUrl</code> or <code>projectPath</code> (if it has a GitHub remote).</td>
|
|
566
|
+
</tr>
|
|
567
|
+
<tr>
|
|
568
|
+
<td><code>createPR</code></td>
|
|
569
|
+
<td>boolean</td>
|
|
570
|
+
<td><span class="badge badge-optional">Optional</span></td>
|
|
571
|
+
<td>Create a pull request after successful completion (default: <code>false</code>). PR title and description auto-generated from commit messages. Works with <code>githubUrl</code> or <code>projectPath</code> (if it has a GitHub remote).</td>
|
|
572
|
+
</tr>
|
|
573
|
+
</tbody>
|
|
574
|
+
</table>
|
|
575
|
+
|
|
576
|
+
<div class="note">
|
|
577
|
+
<strong>Path Handling Behavior:</strong><br><br>
|
|
578
|
+
<strong>Scenario 1:</strong> Only <code>githubUrl</code> → Clones to auto-generated temporary path<br>
|
|
579
|
+
<strong>Scenario 2:</strong> Only <code>projectPath</code> → Uses existing project at specified path<br>
|
|
580
|
+
<strong>Scenario 3:</strong> Both provided → Clones <code>githubUrl</code> to <code>projectPath</code><br><br>
|
|
581
|
+
<strong>Validation:</strong> If <code>projectPath</code> exists and contains a git repository, the remote URL is compared with <code>githubUrl</code>. If URLs match, the existing repo is reused. If URLs differ, an error is returned.
|
|
582
|
+
</div>
|
|
583
|
+
|
|
584
|
+
<h4>Response (Streaming)</h4>
|
|
585
|
+
<p>Server-sent events (SSE) format with real-time updates. Content-Type: <code>text/event-stream</code></p>
|
|
586
|
+
|
|
587
|
+
<h4>Response (Non-Streaming)</h4>
|
|
588
|
+
<p>JSON object containing session details, assistant messages only (filtered), and token usage summary. Content-Type: <code>application/json</code></p>
|
|
589
|
+
|
|
590
|
+
<h4>Error Response</h4>
|
|
591
|
+
<p>Returns error details with appropriate HTTP status code.</p>
|
|
592
|
+
</div>
|
|
593
|
+
</section>
|
|
594
|
+
</div>
|
|
595
|
+
|
|
596
|
+
<div class="examples-section">
|
|
597
|
+
<div class="example-block">
|
|
598
|
+
<h4>Basic Request</h4>
|
|
599
|
+
<div class="tab-buttons">
|
|
600
|
+
<button class="tab-button active" onclick="showTab('curl-basic')">cURL</button>
|
|
601
|
+
<button class="tab-button" onclick="showTab('js-basic')">JavaScript</button>
|
|
602
|
+
<button class="tab-button" onclick="showTab('python-basic')">Python</button>
|
|
603
|
+
</div>
|
|
604
|
+
|
|
605
|
+
<div class="tab-content active" id="curl-basic">
|
|
606
|
+
<pre><code class="language-bash">curl -X POST <span class="api-url">http://localhost:3001</span>/api/agent \
|
|
607
|
+
-H "Content-Type: application/json" \
|
|
608
|
+
-H "X-API-Key: ck_..." \
|
|
609
|
+
-d '{
|
|
610
|
+
"githubUrl": "https://github.com/user/repo",
|
|
611
|
+
"message": "Add error handling to main.js"
|
|
612
|
+
}'</code></pre>
|
|
613
|
+
</div>
|
|
614
|
+
|
|
615
|
+
<div class="tab-content" id="js-basic">
|
|
616
|
+
<pre><code class="language-javascript">const response = await fetch('<span class="api-url">http://localhost:3001</span>/api/agent', {
|
|
617
|
+
method: 'POST',
|
|
618
|
+
headers: {
|
|
619
|
+
'Content-Type': 'application/json',
|
|
620
|
+
'X-API-Key': process.env.CLAUDE_API_KEY
|
|
621
|
+
},
|
|
622
|
+
body: JSON.stringify({
|
|
623
|
+
githubUrl: 'https://github.com/user/repo',
|
|
624
|
+
message: 'Add error handling',
|
|
625
|
+
stream: false
|
|
626
|
+
})
|
|
627
|
+
});
|
|
628
|
+
|
|
629
|
+
const result = await response.json();</code></pre>
|
|
630
|
+
</div>
|
|
631
|
+
|
|
632
|
+
<div class="tab-content" id="python-basic">
|
|
633
|
+
<pre><code class="language-python">import requests
|
|
634
|
+
import os
|
|
635
|
+
|
|
636
|
+
response = requests.post(
|
|
637
|
+
'<span class="api-url">http://localhost:3001</span>/api/agent',
|
|
638
|
+
headers={
|
|
639
|
+
'Content-Type': 'application/json',
|
|
640
|
+
'X-API-Key': os.environ['CLAUDE_API_KEY']
|
|
641
|
+
},
|
|
642
|
+
json={
|
|
643
|
+
'githubUrl': 'https://github.com/user/repo',
|
|
644
|
+
'message': 'Add error handling',
|
|
645
|
+
'stream': False
|
|
646
|
+
}
|
|
647
|
+
)
|
|
648
|
+
|
|
649
|
+
print(response.json())</code></pre>
|
|
650
|
+
</div>
|
|
651
|
+
</div>
|
|
652
|
+
|
|
653
|
+
<div class="example-block">
|
|
654
|
+
<h4>Streaming Response</h4>
|
|
655
|
+
<pre><code class="language-javascript">data: {"type":"status","message":"Repository cloned"}
|
|
656
|
+
data: {"type":"thinking","content":"Analyzing..."}
|
|
657
|
+
data: {"type":"tool_use","tool":"read_file"}
|
|
658
|
+
data: {"type":"content","content":"Done!"}
|
|
659
|
+
data: {"type":"done"}</code></pre>
|
|
660
|
+
</div>
|
|
661
|
+
|
|
662
|
+
<div class="example-block">
|
|
663
|
+
<h4>Non-Streaming Response</h4>
|
|
664
|
+
<pre><code class="language-json">{
|
|
665
|
+
"success": true,
|
|
666
|
+
"sessionId": "abc123",
|
|
667
|
+
"messages": [
|
|
668
|
+
{
|
|
669
|
+
"type": "assistant",
|
|
670
|
+
"message": {
|
|
671
|
+
"role": "assistant",
|
|
672
|
+
"content": [
|
|
673
|
+
{
|
|
674
|
+
"type": "text",
|
|
675
|
+
"text": "I've completed the task..."
|
|
676
|
+
}
|
|
677
|
+
],
|
|
678
|
+
"usage": {
|
|
679
|
+
"input_tokens": 150,
|
|
680
|
+
"output_tokens": 50
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"tokens": {
|
|
686
|
+
"inputTokens": 150,
|
|
687
|
+
"outputTokens": 50,
|
|
688
|
+
"cacheReadTokens": 0,
|
|
689
|
+
"cacheCreationTokens": 0,
|
|
690
|
+
"totalTokens": 200
|
|
691
|
+
},
|
|
692
|
+
"projectPath": "/path/to/project",
|
|
693
|
+
"branch": {
|
|
694
|
+
"name": "fix-authentication-bug-abc123",
|
|
695
|
+
"url": "https://github.com/user/repo/tree/fix-authentication-bug-abc123"
|
|
696
|
+
},
|
|
697
|
+
"pullRequest": {
|
|
698
|
+
"number": 42,
|
|
699
|
+
"url": "https://github.com/user/repo/pull/42"
|
|
700
|
+
}
|
|
701
|
+
}</code></pre>
|
|
702
|
+
</div>
|
|
703
|
+
|
|
704
|
+
<div class="example-block">
|
|
705
|
+
<h4>Error Response</h4>
|
|
706
|
+
<pre><code class="language-json">{
|
|
707
|
+
"success": false,
|
|
708
|
+
"error": "Directory exists with different repo"
|
|
709
|
+
}</code></pre>
|
|
710
|
+
</div>
|
|
711
|
+
</div>
|
|
712
|
+
</div>
|
|
713
|
+
|
|
714
|
+
<!-- Usage Patterns Section -->
|
|
715
|
+
<div class="section-row">
|
|
716
|
+
<div class="docs-section">
|
|
717
|
+
<section id="usage-examples">
|
|
718
|
+
<h2>Usage Patterns</h2>
|
|
719
|
+
|
|
720
|
+
<h3>Clone and Process Repository</h3>
|
|
721
|
+
<p>Clone a repository to an auto-generated temporary path and process it.</p>
|
|
722
|
+
|
|
723
|
+
<h3>Use Existing Project</h3>
|
|
724
|
+
<p>Work with an existing project at a specific path.</p>
|
|
725
|
+
|
|
726
|
+
<h3>Clone to Specific Path</h3>
|
|
727
|
+
<p>Clone a repository to a custom location for later reuse.</p>
|
|
728
|
+
|
|
729
|
+
<h3>CI/CD Integration</h3>
|
|
730
|
+
<p>Integrate with GitHub Actions or other CI/CD pipelines.</p>
|
|
731
|
+
|
|
732
|
+
<h3>Create Branch and Pull Request</h3>
|
|
733
|
+
<p>Automatically create a new branch and pull request after the agent completes its work. Branch names are auto-generated from the message, and PR title/description are auto-generated from commit messages.</p>
|
|
734
|
+
</section>
|
|
735
|
+
</div>
|
|
736
|
+
|
|
737
|
+
<div class="examples-section">
|
|
738
|
+
<div class="example-block">
|
|
739
|
+
<h4>Use Existing Project</h4>
|
|
740
|
+
<pre><code class="language-bash">curl -X POST <span class="api-url">http://localhost:3001</span>/api/agent \
|
|
741
|
+
-H "Content-Type: application/json" \
|
|
742
|
+
-H "X-API-Key: ck_..." \
|
|
743
|
+
-d '{
|
|
744
|
+
"projectPath": "/home/user/my-project",
|
|
745
|
+
"message": "Refactor database queries"
|
|
746
|
+
}'</code></pre>
|
|
747
|
+
</div>
|
|
748
|
+
|
|
749
|
+
<div class="example-block">
|
|
750
|
+
<h4>Clone to Custom Path</h4>
|
|
751
|
+
<pre><code class="language-bash">curl -X POST <span class="api-url">http://localhost:3001</span>/api/agent \
|
|
752
|
+
-H "Content-Type: application/json" \
|
|
753
|
+
-H "X-API-Key: ck_..." \
|
|
754
|
+
-d '{
|
|
755
|
+
"githubUrl": "https://github.com/user/repo",
|
|
756
|
+
"projectPath": "/tmp/my-location",
|
|
757
|
+
"message": "Review security",
|
|
758
|
+
"cleanup": false
|
|
759
|
+
}'</code></pre>
|
|
760
|
+
</div>
|
|
761
|
+
|
|
762
|
+
<div class="example-block">
|
|
763
|
+
<h4>CI/CD (GitHub Actions)</h4>
|
|
764
|
+
<pre><code class="language-yaml">- name: Trigger Agent
|
|
765
|
+
run: |
|
|
766
|
+
curl -X POST ${{ secrets.API_URL }}/api/agent \
|
|
767
|
+
-H "X-API-Key: ${{ secrets.API_KEY }}" \
|
|
768
|
+
-H "Content-Type: application/json" \
|
|
769
|
+
-d '{
|
|
770
|
+
"githubUrl": "${{ github.repository }}",
|
|
771
|
+
"message": "Review for security",
|
|
772
|
+
"githubToken": "${{ secrets.GITHUB_TOKEN }}"
|
|
773
|
+
}'</code></pre>
|
|
774
|
+
</div>
|
|
775
|
+
|
|
776
|
+
<div class="example-block">
|
|
777
|
+
<h4>Create Branch and PR</h4>
|
|
778
|
+
<pre><code class="language-bash">curl -X POST <span class="api-url">http://localhost:3001</span>/api/agent \
|
|
779
|
+
-H "Content-Type: application/json" \
|
|
780
|
+
-H "X-API-Key: ck_..." \
|
|
781
|
+
-d '{
|
|
782
|
+
"githubUrl": "https://github.com/user/repo",
|
|
783
|
+
"message": "Fix authentication bug",
|
|
784
|
+
"createBranch": true,
|
|
785
|
+
"createPR": true,
|
|
786
|
+
"stream": false
|
|
787
|
+
}'</code></pre>
|
|
788
|
+
</div>
|
|
789
|
+
|
|
790
|
+
<div class="example-block">
|
|
791
|
+
<h4>Custom Branch Name</h4>
|
|
792
|
+
<pre><code class="language-bash">curl -X POST <span class="api-url">http://localhost:3001</span>/api/agent \
|
|
793
|
+
-H "Content-Type: application/json" \
|
|
794
|
+
-H "X-API-Key: ck_..." \
|
|
795
|
+
-d '{
|
|
796
|
+
"githubUrl": "https://github.com/user/repo",
|
|
797
|
+
"message": "Add user authentication",
|
|
798
|
+
"branchName": "feature/user-auth",
|
|
799
|
+
"createPR": true,
|
|
800
|
+
"stream": false
|
|
801
|
+
}'</code></pre>
|
|
802
|
+
</div>
|
|
803
|
+
|
|
804
|
+
<div class="example-block">
|
|
805
|
+
<h4>Branch & PR Response</h4>
|
|
806
|
+
<pre><code class="language-json">{
|
|
807
|
+
"success": true,
|
|
808
|
+
"branch": {
|
|
809
|
+
"name": "feature/user-auth",
|
|
810
|
+
"url": "https://github.com/user/repo/tree/feature/user-auth"
|
|
811
|
+
},
|
|
812
|
+
"pullRequest": {
|
|
813
|
+
"number": 42,
|
|
814
|
+
"url": "https://github.com/user/repo/pull/42"
|
|
815
|
+
}
|
|
816
|
+
}</code></pre>
|
|
817
|
+
</div>
|
|
818
|
+
</div>
|
|
819
|
+
</div>
|
|
820
|
+
</div>
|
|
821
|
+
</div>
|
|
822
|
+
|
|
823
|
+
<script type="module">
|
|
824
|
+
// Import model constants
|
|
825
|
+
import { CLAUDE_MODELS, CURSOR_MODELS, CODEX_MODELS } from '/shared/modelConstants.js';
|
|
826
|
+
|
|
827
|
+
// Dynamic URL replacement
|
|
828
|
+
const apiUrl = window.location.origin;
|
|
829
|
+
document.querySelectorAll('.api-url').forEach(el => {
|
|
830
|
+
el.textContent = apiUrl;
|
|
831
|
+
});
|
|
832
|
+
|
|
833
|
+
// Dynamically populate model documentation
|
|
834
|
+
window.addEventListener('DOMContentLoaded', () => {
|
|
835
|
+
const modelCell = document.getElementById('model-options-cell');
|
|
836
|
+
if (modelCell) {
|
|
837
|
+
const claudeModels = CLAUDE_MODELS.OPTIONS.map(m => `<code>${m.value}</code>`).join(', ');
|
|
838
|
+
const cursorModels = CURSOR_MODELS.OPTIONS.slice(0, 8).map(m => `<code>${m.value}</code>`).join(', ');
|
|
839
|
+
const codexModels = CODEX_MODELS.OPTIONS.map(m => `<code>${m.value}</code>`).join(', ');
|
|
840
|
+
|
|
841
|
+
modelCell.innerHTML = `
|
|
842
|
+
Model identifier for the AI provider:<br><br>
|
|
843
|
+
<strong>Claude:</strong> ${claudeModels} (default: <code>${CLAUDE_MODELS.DEFAULT}</code>)<br><br>
|
|
844
|
+
<strong>Cursor:</strong> ${cursorModels}, and more (default: <code>${CURSOR_MODELS.DEFAULT}</code>)<br><br>
|
|
845
|
+
<strong>Codex:</strong> ${codexModels} (default: <code>${CODEX_MODELS.DEFAULT}</code>)
|
|
846
|
+
`;
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
|
|
850
|
+
// Tab switching
|
|
851
|
+
window.showTab = function(tabName) {
|
|
852
|
+
const parentBlock = event.target.closest('.example-block');
|
|
853
|
+
if (!parentBlock) return;
|
|
854
|
+
|
|
855
|
+
parentBlock.querySelectorAll('.tab-content').forEach(tab => {
|
|
856
|
+
tab.classList.remove('active');
|
|
857
|
+
});
|
|
858
|
+
parentBlock.querySelectorAll('.tab-button').forEach(btn => {
|
|
859
|
+
btn.classList.remove('active');
|
|
860
|
+
});
|
|
861
|
+
|
|
862
|
+
const targetTab = parentBlock.querySelector('#' + tabName);
|
|
863
|
+
if (targetTab) {
|
|
864
|
+
targetTab.classList.add('active');
|
|
865
|
+
event.target.classList.add('active');
|
|
866
|
+
}
|
|
867
|
+
};
|
|
868
|
+
</script>
|
|
869
|
+
|
|
870
|
+
<!-- Prism.js -->
|
|
871
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
|
|
872
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-bash.min.js"></script>
|
|
873
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-javascript.min.js"></script>
|
|
874
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-python.min.js"></script>
|
|
875
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-json.min.js"></script>
|
|
876
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-yaml.min.js"></script>
|
|
877
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-http.min.js"></script>
|
|
878
|
+
</body>
|
|
879
|
+
</html>
|