@namzu/cli 53.2.2 → 53.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-TKSVSWYT.js → acp-TDBFWPHB.js} +59 -57
- package/dist/chunks/acp-TDBFWPHB.js.map +6 -0
- package/dist/chunks/{activity-command-4CXCVUYV.js → activity-command-OS75DEKF.js} +12 -12
- package/dist/chunks/{add-WKKTCDTH.js → add-LNQAOHZS.js} +19 -19
- package/dist/chunks/{agent-FQKVDUJJ.js → agent-MM4SMTQS.js} +43 -41
- package/dist/chunks/agent-session-RPSTX6GN.js +79 -0
- package/dist/chunks/{apply-at-exit-LXPT3PKI.js → apply-at-exit-IO3X2VEK.js} +11 -12
- package/dist/chunks/apply-at-exit-IO3X2VEK.js.map +6 -0
- package/dist/chunks/{archive-VC435LJ6.js → archive-I7X74XA6.js} +10 -10
- package/dist/chunks/{bin-main-TCVL5RX5.js → bin-main-73LABF2O.js} +9 -9
- package/dist/chunks/{binding-VDQTJSCB.js → binding-L45TTMZJ.js} +3 -3
- package/dist/chunks/{browser-2YGQPISK.js → browser-DNPDAQFD.js} +6 -6
- package/dist/chunks/{chat-A2KET642.js → chat-WJQJO7AU.js} +15 -15
- package/dist/chunks/{chunk-MQHTLBBQ.js → chunk-2LOYDAU5.js} +6 -6
- package/dist/chunks/{chunk-VJ34BHLH.js → chunk-2XOJQKYX.js} +16 -16
- package/dist/chunks/{chunk-OVQSSXU5.js → chunk-3EH3USMD.js} +2 -2
- package/dist/chunks/{chunk-IJHU74VL.js → chunk-3G5MPQC6.js} +38 -38
- package/dist/chunks/{chunk-SCEU2YVG.js → chunk-4E6HWHOX.js} +4 -4
- package/dist/chunks/{chunk-G4R3TD3X.js → chunk-4ITXTSNQ.js} +2 -2
- package/dist/chunks/{chunk-B73SNFPZ.js → chunk-5CGQ2AOP.js} +2 -2
- package/dist/chunks/{chunk-OPD3PNNM.js → chunk-5JLMNLDQ.js} +9 -5
- package/dist/chunks/chunk-5JLMNLDQ.js.map +6 -0
- package/dist/chunks/{chunk-GGL6DUNR.js → chunk-5KHKXEP5.js} +2 -2
- package/dist/chunks/{chunk-PMPKCDHC.js → chunk-5LWBZYOK.js} +3 -3
- package/dist/chunks/{chunk-XWPFWPJ2.js → chunk-62LRLDHY.js} +10 -10
- package/dist/chunks/{chunk-GMDCSWLE.js → chunk-6NFHP44E.js} +2 -2
- package/dist/chunks/{chunk-THG76C3T.js → chunk-6PIZ3336.js} +5 -5
- package/dist/chunks/{chunk-DBMCK637.js → chunk-7DTV64LX.js} +9 -9
- package/dist/chunks/{chunk-UZF4QI4V.js → chunk-7KIVKXQB.js} +5 -5
- package/dist/chunks/{chunk-FQIENFVR.js → chunk-A4RKSHUI.js} +4 -4
- package/dist/chunks/{chunk-LXHNHGVP.js → chunk-ARPABLFS.js} +3 -3
- package/dist/chunks/{chunk-NCDJECMF.js → chunk-B5O2UDMT.js} +3 -3
- package/dist/chunks/{chunk-JI5CATNL.js → chunk-BGYZ3SVB.js} +2 -2
- package/dist/chunks/{chunk-EKDZYOAP.js → chunk-BRSUV2MI.js} +5 -5
- package/dist/chunks/{chunk-2HRPWZXH.js → chunk-BULDCXFX.js} +102 -60
- package/dist/chunks/{chunk-2HRPWZXH.js.map → chunk-BULDCXFX.js.map} +1 -1
- package/dist/chunks/{chunk-AQ45WE5B.js → chunk-BWUBI6VE.js} +2 -2
- package/dist/chunks/{chunk-KCHQLZEA.js → chunk-BZMMDJFZ.js} +3 -3
- package/dist/chunks/{chunk-HJSN3J2L.js → chunk-CS7Q2ZUU.js} +2 -2
- package/dist/chunks/{chunk-OWR4OIXA.js → chunk-CUXQNU26.js} +2 -2
- package/dist/chunks/{chunk-CDDPBHJF.js → chunk-D32E7XO6.js} +2 -2
- package/dist/chunks/{chunk-O24GQWOS.js → chunk-DCV3FVXI.js} +2 -2
- package/dist/chunks/{chunk-EFMDKOKN.js → chunk-DLHPY4VQ.js} +4 -4
- package/dist/chunks/{chunk-VQ6UEBFB.js → chunk-E3L237Z7.js} +2 -2
- package/dist/chunks/{chunk-BEK5BN4C.js → chunk-FLRYCMRH.js} +2 -2
- package/dist/chunks/{chunk-7CDM74EE.js → chunk-FNMBBC26.js} +3 -3
- package/dist/chunks/{chunk-APSWZFQE.js → chunk-FY3ZMDWN.js} +6 -6
- package/dist/chunks/{chunk-WHSBPWGO.js → chunk-G7PWYTB4.js} +2 -2
- package/dist/chunks/{chunk-POV6IQJT.js → chunk-GIKCLC27.js} +4 -4
- package/dist/chunks/{chunk-G5MDOSWI.js → chunk-HM5UJONE.js} +14 -14
- package/dist/chunks/{chunk-4PQRXS6H.js → chunk-HVFIYEP6.js} +6 -6
- package/dist/chunks/{chunk-QNNZ4GND.js → chunk-IWZXZZMU.js} +3 -3
- package/dist/chunks/{chunk-GASNVGYM.js → chunk-JG462CCT.js} +2 -2
- package/dist/chunks/{chunk-WOIZGI7M.js → chunk-K3AE66MM.js} +4 -4
- package/dist/chunks/{chunk-7C43LYSZ.js → chunk-K6ZJ2G2V.js} +965 -709
- package/dist/chunks/chunk-K6ZJ2G2V.js.map +6 -0
- package/dist/chunks/{chunk-ZRJ42CZZ.js → chunk-KOGSKOU7.js} +2 -2
- package/dist/chunks/{chunk-55PUSLIX.js → chunk-KP4H7FJ7.js} +2 -2
- package/dist/chunks/{chunk-CZOQR2XO.js → chunk-LAMQGSGH.js} +5 -5
- package/dist/chunks/{chunk-FX4E76MN.js → chunk-LDMHANNT.js} +4 -4
- package/dist/chunks/chunk-LDMHANNT.js.map +6 -0
- package/dist/chunks/{chunk-U6ON2ZNN.js → chunk-LG7PKSP3.js} +40 -21
- package/dist/chunks/chunk-LG7PKSP3.js.map +6 -0
- package/dist/chunks/{chunk-6TA477A2.js → chunk-LJQAGSYZ.js} +3 -3
- package/dist/chunks/{chunk-MEUO6ZCV.js → chunk-LQ5L75T6.js} +4 -4
- package/dist/chunks/{chunk-GG4IQFRX.js → chunk-LYMSGP53.js} +2 -2
- package/dist/chunks/{chunk-MMBW56O6.js → chunk-LYTMEPN4.js} +12 -3
- package/dist/chunks/chunk-LYTMEPN4.js.map +6 -0
- package/dist/chunks/{chunk-OHHBLPVC.js → chunk-MDAEHXSL.js} +3 -3
- package/dist/chunks/{chunk-2QYNA362.js → chunk-MEIMXALZ.js} +18 -11
- package/dist/chunks/chunk-MEIMXALZ.js.map +6 -0
- package/dist/chunks/{chunk-2T6RCLVR.js → chunk-MM4BFFRT.js} +3 -3
- package/dist/chunks/{chunk-NXWTLMCO.js → chunk-MYHK6KOU.js} +3 -3
- package/dist/chunks/{chunk-3U7XN7PQ.js → chunk-MYQ2MZKF.js} +6 -6
- package/dist/chunks/{chunk-CO6TO4W2.js → chunk-NA6FHE5K.js} +2 -2
- package/dist/chunks/{chunk-A7GITM6V.js → chunk-NDGMUBFS.js} +3 -3
- package/dist/chunks/{chunk-ORNBQX7S.js → chunk-NEYRPPT5.js} +2 -2
- package/dist/chunks/{chunk-F6YHQXPD.js → chunk-NJ4PLSBZ.js} +2 -2
- package/dist/chunks/{chunk-YPVP5NTQ.js → chunk-NRHUKGZ3.js} +3 -3
- package/dist/chunks/{chunk-VS72UXVO.js → chunk-O6NHCC4Q.js} +4 -4
- package/dist/chunks/{chunk-XGH4FG36.js → chunk-OH5T7ODG.js} +4 -4
- package/dist/chunks/{chunk-3LBLZFVU.js → chunk-OLSRO4FC.js} +2 -2
- package/dist/chunks/{chunk-22KWTDG5.js → chunk-OMFV2AEQ.js} +2 -2
- package/dist/chunks/{chunk-JVAZBDDY.js → chunk-P33ZADN3.js} +2 -2
- package/dist/chunks/{chunk-KR6WVSTY.js → chunk-P6DJ6AS5.js} +2 -2
- package/dist/chunks/{chunk-FGUJWE3G.js → chunk-PGYSDVT7.js} +5 -5
- package/dist/chunks/{chunk-56OWNTQG.js → chunk-PJPPWJIB.js} +5 -5
- package/dist/chunks/{chunk-ZZHAXZS7.js → chunk-PS6MAL42.js} +345 -25
- package/dist/chunks/chunk-PS6MAL42.js.map +6 -0
- package/dist/chunks/{chunk-VQ6IQ7EA.js → chunk-QWCFMVAZ.js} +3 -3
- package/dist/chunks/{chunk-HVZIQA7Y.js → chunk-QYKPC5HO.js} +9 -9
- package/dist/chunks/{chunk-XTDLTMRY.js → chunk-RBUVQQLL.js} +4 -4
- package/dist/chunks/{chunk-4MD3CTYK.js → chunk-RMRGVJOA.js} +266 -67
- package/dist/chunks/chunk-RMRGVJOA.js.map +6 -0
- package/dist/chunks/{chunk-3KXR3Y2J.js → chunk-RO7HHDLW.js} +4 -4
- package/dist/chunks/{chunk-2VD65GMI.js → chunk-SC2FLZAI.js} +2 -2
- package/dist/chunks/{chunk-CX3FCE3I.js → chunk-T6BRCKD3.js} +9 -9
- package/dist/chunks/{chunk-AUNFCWUI.js → chunk-TCAS4XVK.js} +2 -2
- package/dist/chunks/{chunk-VH7JHYZJ.js → chunk-U77IVKFU.js} +5 -5
- package/dist/chunks/{chunk-TXUKNDZD.js → chunk-UAD3AUKO.js} +2 -2
- package/dist/chunks/{cost-5VARNZUM.js → chunk-UE2MJ5YP.js} +22 -103
- package/dist/chunks/chunk-UE2MJ5YP.js.map +6 -0
- package/dist/chunks/{chunk-GKPS2EFI.js → chunk-UQFW622M.js} +2 -2
- package/dist/chunks/{chunk-QLDPZEX5.js → chunk-UYC7YSMD.js} +3 -3
- package/dist/chunks/{chunk-3OYLROCT.js → chunk-V2OLXCTE.js} +7 -7
- package/dist/chunks/{chunk-XAYZT3ZU.js → chunk-V73ZJCIQ.js} +3 -3
- package/dist/chunks/{chunk-D724YXPA.js → chunk-V7U4OXBC.js} +4 -4
- package/dist/chunks/{chunk-3DGEG3E7.js → chunk-VUNKDZ34.js} +3 -3
- package/dist/chunks/{chunk-VJVY6JZL.js → chunk-WUCZIFEU.js} +12 -12
- package/dist/chunks/{chunk-33WXZTFM.js → chunk-WVQRVEZ7.js} +2 -2
- package/dist/chunks/{chunk-HU33D7IT.js → chunk-WVZG6GRE.js} +3 -3
- package/dist/chunks/{chunk-QMH5BX3D.js → chunk-XQHHFTFX.js} +195 -144
- package/dist/chunks/chunk-XQHHFTFX.js.map +6 -0
- package/dist/chunks/{chunk-474TFQNJ.js → chunk-XTYVS4SM.js} +3 -3
- package/dist/chunks/{chunk-ISBHRP4B.js → chunk-XZXE7L4B.js} +3 -3
- package/dist/chunks/{chunk-5WM45GQZ.js → chunk-YDE7ZNUH.js} +2 -2
- package/dist/chunks/{chunk-VEC2DNN6.js → chunk-YOBDE45E.js} +4 -4
- package/dist/chunks/{chunk-YJRLBZ6I.js → chunk-YZIUYGJT.js} +4 -4
- package/dist/chunks/{chunk-4RIW2UHY.js → chunk-Z4TNPAB4.js} +7 -7
- package/dist/chunks/{chunk-K6GW3ZS7.js → chunk-ZKCOQZ3U.js} +7 -1
- package/dist/chunks/chunk-ZKCOQZ3U.js.map +6 -0
- package/dist/chunks/{chunk-FDQGRVLS.js → chunk-ZNGRNTOY.js} +2 -2
- package/dist/chunks/{cli-runtime-YJ4JREPJ.js → cli-runtime-IJWC2OTK.js} +12 -12
- package/dist/chunks/{commands-YPPEQTQB.js → commands-S7OW6RX6.js} +5 -5
- package/dist/chunks/cost-VA6HZQE6.js +118 -0
- package/dist/chunks/cost-VA6HZQE6.js.map +6 -0
- package/dist/chunks/{crash-report-EGE7NGTH.js → crash-report-F663DOML.js} +6 -6
- package/dist/chunks/{dist-XM4UQIQQ.js → dist-IOJ4RD22.js} +2 -2
- package/dist/chunks/{dist-TAZGUABO.js → dist-KXNNNQJP.js} +2 -2
- package/dist/chunks/{dist-RW6SV64M.js → dist-OZTQJUXV.js} +182 -46
- package/dist/chunks/dist-OZTQJUXV.js.map +6 -0
- package/dist/chunks/{dist-FOG4COQN.js → dist-S7E46RVO.js} +2 -2
- package/dist/chunks/{dist-JJD2TQED.js → dist-VNVQM6JU.js} +2 -2
- package/dist/chunks/{dist-XBLTAEAJ.js → dist-XY5CE56Y.js} +2 -2
- package/dist/chunks/{dist-6YHBRQ2D.js → dist-ZHVTRMOZ.js} +2 -2
- package/dist/chunks/{dist-L5BAAO6B.js → dist-ZXZ4LH3H.js} +2 -2
- package/dist/chunks/{doctor-YVEQH55W.js → doctor-ABINZ4KS.js} +39 -39
- package/dist/chunks/{drain-5XTQDVV6.js → drain-YZXZQAUT.js} +9 -9
- package/dist/chunks/{entry-XTTLD6DE.js → entry-LGDDSUPB.js} +6 -6
- package/dist/chunks/{eval-VC445DR6.js → eval-EYN5BPLR.js} +7 -7
- package/dist/chunks/{exec-FPKXV4HA.js → exec-BMAOOSOF.js} +41 -41
- package/dist/chunks/{home-52JRM65A.js → home-5OAGR5X5.js} +3 -3
- package/dist/chunks/{hooks-6KHV6QJN.js → hooks-WV6P6LIP.js} +16 -16
- package/dist/chunks/{hooks-report-3LZ7BKBR.js → hooks-report-JUCEQJ73.js} +15 -15
- package/dist/chunks/{host-2K6MPYAT.js → host-EISOQGKE.js} +10 -10
- package/dist/chunks/{host-queries-XOOUNCMJ.js → host-queries-HJHMGU5N.js} +15 -15
- package/dist/chunks/{learn-JRLMSGQU.js → learn-27BG44YG.js} +11 -11
- package/dist/chunks/{learn-builtin-GH4BXJTR.js → learn-builtin-K5HQZDEA.js} +14 -14
- package/dist/chunks/{lifecycle-2J2KZE24.js → lifecycle-L3BEM34W.js} +28 -28
- package/dist/chunks/{list-GBRI4NQS.js → list-AB4VHNL2.js} +12 -12
- package/dist/chunks/{live-L74ORWB5.js → live-P6HSBLJ5.js} +37 -37
- package/dist/chunks/{load-FVBVG5CY.js → load-NFDONLZ2.js} +7 -7
- package/dist/chunks/{login-HTTBNWTE.js → login-GON2CRE6.js} +12 -12
- package/dist/chunks/{logs-V7BWNF35.js → logs-C7WBBIJR.js} +4 -4
- package/dist/chunks/{mcp-WAVN5NVW.js → mcp-EBV34ZOW.js} +20 -20
- package/dist/chunks/{message-command-TV6UMZZA.js → message-command-Q7U54E4U.js} +49 -47
- package/dist/chunks/message-command-Q7U54E4U.js.map +6 -0
- package/dist/chunks/{open-EKL2SYD6.js → open-DLDZOPHP.js} +8 -8
- package/dist/chunks/{operator-tools-HKPDJMDN.js → operator-tools-HT2GSJ56.js} +13 -13
- package/dist/chunks/{output-schema-3SV7FA3E.js → output-schema-UODVJVW4.js} +3 -3
- package/dist/chunks/{pal-IBKB3TXW.js → pal-YQMOI22A.js} +15 -15
- package/dist/chunks/{peers-RV5PLRXJ.js → peers-HYMQ3RDX.js} +9 -9
- package/dist/chunks/{peers-46C23FIF.js → peers-MVQTZ4ND.js} +6 -6
- package/dist/chunks/{plugin-WMY4UJRI.js → plugin-Y4XV5CKG.js} +15 -15
- package/dist/chunks/{providers-V3SBLB5L.js → providers-K23QPBYN.js} +10 -10
- package/dist/chunks/{pty-T4FX7YOE.js → pty-UIYKKO63.js} +3 -3
- package/dist/chunks/resume-ON75M2JL.js +23 -0
- package/dist/chunks/{resume-command-6CHNMALJ.js → resume-command-O6FGFDSE.js} +4 -4
- package/dist/chunks/{running-I42NAMXS.js → running-DAUDQDDJ.js} +6 -5
- package/dist/chunks/{schedule-D7VCG6NS.js → schedule-U7UZBKHQ.js} +8 -8
- package/dist/chunks/{send-QQ7OTQ2C.js → send-3R5RDV2H.js} +15 -15
- package/dist/chunks/{send-person-5XI6MKZO.js → send-person-6NMIN4OT.js} +13 -13
- package/dist/chunks/{service-UOLU7XBM.js → service-2PDUZZPQ.js} +28 -28
- package/dist/chunks/{skills-RHUMEGQP.js → skills-4UXJESZB.js} +13 -13
- package/dist/chunks/{start-check-2PBRVXD3.js → start-check-CF37SRBJ.js} +2 -2
- package/dist/chunks/{startup-failure-P34LGDGH.js → startup-failure-VS2U4JIC.js} +2 -2
- package/dist/chunks/{state-UHPX7NKN.js → state-DMLD6RWU.js} +2 -2
- package/dist/chunks/{store-33CI3HZM.js → store-3WIIBVKJ.js} +4 -4
- package/dist/chunks/{store-5ZPIJRWU.js → store-DIVYPBNS.js} +3 -3
- package/dist/chunks/{store-2743JWSK.js → store-TYFJML3O.js} +10 -10
- package/dist/chunks/{store-4SB5GOD3.js → store-ZLCDFCYI.js} +6 -6
- package/dist/chunks/{tui-F3C3HZND.js → tui-IU3SME4U.js} +90 -85
- package/dist/chunks/tui-IU3SME4U.js.map +6 -0
- package/dist/chunks/{upgrade-RXJ5JVE5.js → upgrade-GESAJI3N.js} +11 -12
- package/dist/chunks/upgrade-GESAJI3N.js.map +6 -0
- package/dist/chunks/{watch-BM7XNQGC.js → watch-FZPUNEUD.js} +82 -81
- package/dist/chunks/watch-FZPUNEUD.js.map +6 -0
- package/dist/chunks/{workspaces-WQLLUBQV.js → workspaces-ZHM5N3OY.js} +16 -16
- package/dist/chunks/{worktree-4N5Y2P5N.js → worktree-2MMIAPGE.js} +19 -19
- package/dist/context/doctrine.d.ts.map +1 -1
- package/dist/context/identity.d.ts.map +1 -1
- package/dist/doctor/checks/updates.d.ts.map +1 -1
- package/dist/index.js +39 -39
- package/dist/integrations/analysis/provider.d.ts.map +1 -1
- package/dist/integrations/auto-update/apply.d.ts +7 -0
- package/dist/integrations/auto-update/apply.d.ts.map +1 -1
- package/dist/integrations/auto-update/replaced-install.d.ts +2 -0
- package/dist/integrations/auto-update/replaced-install.d.ts.map +1 -1
- package/dist/integrations/auto-update/running.d.ts +16 -5
- package/dist/integrations/auto-update/running.d.ts.map +1 -1
- package/dist/integrations/auto-update/start.d.ts.map +1 -1
- package/dist/integrations/auto-update/status.d.ts +8 -0
- package/dist/integrations/auto-update/status.d.ts.map +1 -1
- package/dist/integrations/auto-update/swap.d.ts +77 -0
- package/dist/integrations/auto-update/swap.d.ts.map +1 -0
- package/dist/integrations/auto-update/updater.d.ts +4 -0
- package/dist/integrations/auto-update/updater.d.ts.map +1 -1
- package/dist/integrations/spend/fold.d.ts +2 -0
- package/dist/integrations/spend/fold.d.ts.map +1 -1
- package/dist/integrations/spend/session-cost.d.ts +46 -0
- package/dist/integrations/spend/session-cost.d.ts.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/workflows/doctrine.d.ts.map +1 -1
- package/dist/integrations/workflows/offering.d.ts +6 -2
- package/dist/integrations/workflows/offering.d.ts.map +1 -1
- package/dist/termination.d.ts +1 -1
- package/dist/termination.d.ts.map +1 -1
- package/dist/tui/AgentExplorer.d.ts +34 -34
- package/dist/tui/AgentExplorer.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BackgroundAgentRows.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +3 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ComposerFrame.d.ts +6 -1
- package/dist/tui/ComposerFrame.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +13 -19
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/Transcript.d.ts +9 -3
- package/dist/tui/Transcript.d.ts.map +1 -1
- package/dist/tui/UpdateNoticeRow.d.ts +36 -0
- package/dist/tui/UpdateNoticeRow.d.ts.map +1 -0
- package/dist/tui/agent-transcript-rows.d.ts +8 -4
- package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/fullscreen/layout.d.ts +3 -1
- package/dist/tui/fullscreen/layout.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/paint/live-paint.d.ts +19 -1
- package/dist/tui/paint/live-paint.d.ts.map +1 -1
- package/dist/tui/reply-mark.d.ts +12 -0
- package/dist/tui/reply-mark.d.ts.map +1 -0
- package/dist/tui/restored-rows.d.ts.map +1 -1
- package/dist/tui/transcript-scroll.d.ts +4 -0
- package/dist/tui/transcript-scroll.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/chunks/acp-TKSVSWYT.js.map +0 -6
- package/dist/chunks/agent-session-MWEOXEBO.js +0 -77
- package/dist/chunks/apply-at-exit-LXPT3PKI.js.map +0 -6
- package/dist/chunks/chunk-2QYNA362.js.map +0 -6
- package/dist/chunks/chunk-4MD3CTYK.js.map +0 -6
- package/dist/chunks/chunk-7C43LYSZ.js.map +0 -6
- package/dist/chunks/chunk-FX4E76MN.js.map +0 -6
- package/dist/chunks/chunk-K6GW3ZS7.js.map +0 -6
- package/dist/chunks/chunk-MMBW56O6.js.map +0 -6
- package/dist/chunks/chunk-OPD3PNNM.js.map +0 -6
- package/dist/chunks/chunk-QMH5BX3D.js.map +0 -6
- package/dist/chunks/chunk-U6ON2ZNN.js.map +0 -6
- package/dist/chunks/chunk-VKUDU6IH.js +0 -107
- package/dist/chunks/chunk-VKUDU6IH.js.map +0 -6
- package/dist/chunks/chunk-ZZHAXZS7.js.map +0 -6
- package/dist/chunks/cost-5VARNZUM.js.map +0 -6
- package/dist/chunks/dist-RW6SV64M.js.map +0 -6
- package/dist/chunks/message-command-TV6UMZZA.js.map +0 -6
- package/dist/chunks/resume-VT5LMJPR.js +0 -23
- package/dist/chunks/tui-F3C3HZND.js.map +0 -6
- package/dist/chunks/upgrade-RXJ5JVE5.js.map +0 -6
- package/dist/chunks/watch-BM7XNQGC.js.map +0 -6
- /package/dist/chunks/{activity-command-4CXCVUYV.js.map → activity-command-OS75DEKF.js.map} +0 -0
- /package/dist/chunks/{add-WKKTCDTH.js.map → add-LNQAOHZS.js.map} +0 -0
- /package/dist/chunks/{agent-FQKVDUJJ.js.map → agent-MM4SMTQS.js.map} +0 -0
- /package/dist/chunks/{agent-session-MWEOXEBO.js.map → agent-session-RPSTX6GN.js.map} +0 -0
- /package/dist/chunks/{archive-VC435LJ6.js.map → archive-I7X74XA6.js.map} +0 -0
- /package/dist/chunks/{bin-main-TCVL5RX5.js.map → bin-main-73LABF2O.js.map} +0 -0
- /package/dist/chunks/{binding-VDQTJSCB.js.map → binding-L45TTMZJ.js.map} +0 -0
- /package/dist/chunks/{browser-2YGQPISK.js.map → browser-DNPDAQFD.js.map} +0 -0
- /package/dist/chunks/{chat-A2KET642.js.map → chat-WJQJO7AU.js.map} +0 -0
- /package/dist/chunks/{chunk-MQHTLBBQ.js.map → chunk-2LOYDAU5.js.map} +0 -0
- /package/dist/chunks/{chunk-VJ34BHLH.js.map → chunk-2XOJQKYX.js.map} +0 -0
- /package/dist/chunks/{chunk-OVQSSXU5.js.map → chunk-3EH3USMD.js.map} +0 -0
- /package/dist/chunks/{chunk-IJHU74VL.js.map → chunk-3G5MPQC6.js.map} +0 -0
- /package/dist/chunks/{chunk-SCEU2YVG.js.map → chunk-4E6HWHOX.js.map} +0 -0
- /package/dist/chunks/{chunk-G4R3TD3X.js.map → chunk-4ITXTSNQ.js.map} +0 -0
- /package/dist/chunks/{chunk-B73SNFPZ.js.map → chunk-5CGQ2AOP.js.map} +0 -0
- /package/dist/chunks/{chunk-GGL6DUNR.js.map → chunk-5KHKXEP5.js.map} +0 -0
- /package/dist/chunks/{chunk-PMPKCDHC.js.map → chunk-5LWBZYOK.js.map} +0 -0
- /package/dist/chunks/{chunk-XWPFWPJ2.js.map → chunk-62LRLDHY.js.map} +0 -0
- /package/dist/chunks/{chunk-GMDCSWLE.js.map → chunk-6NFHP44E.js.map} +0 -0
- /package/dist/chunks/{chunk-THG76C3T.js.map → chunk-6PIZ3336.js.map} +0 -0
- /package/dist/chunks/{chunk-DBMCK637.js.map → chunk-7DTV64LX.js.map} +0 -0
- /package/dist/chunks/{chunk-UZF4QI4V.js.map → chunk-7KIVKXQB.js.map} +0 -0
- /package/dist/chunks/{chunk-FQIENFVR.js.map → chunk-A4RKSHUI.js.map} +0 -0
- /package/dist/chunks/{chunk-LXHNHGVP.js.map → chunk-ARPABLFS.js.map} +0 -0
- /package/dist/chunks/{chunk-NCDJECMF.js.map → chunk-B5O2UDMT.js.map} +0 -0
- /package/dist/chunks/{chunk-JI5CATNL.js.map → chunk-BGYZ3SVB.js.map} +0 -0
- /package/dist/chunks/{chunk-EKDZYOAP.js.map → chunk-BRSUV2MI.js.map} +0 -0
- /package/dist/chunks/{chunk-AQ45WE5B.js.map → chunk-BWUBI6VE.js.map} +0 -0
- /package/dist/chunks/{chunk-KCHQLZEA.js.map → chunk-BZMMDJFZ.js.map} +0 -0
- /package/dist/chunks/{chunk-HJSN3J2L.js.map → chunk-CS7Q2ZUU.js.map} +0 -0
- /package/dist/chunks/{chunk-OWR4OIXA.js.map → chunk-CUXQNU26.js.map} +0 -0
- /package/dist/chunks/{chunk-CDDPBHJF.js.map → chunk-D32E7XO6.js.map} +0 -0
- /package/dist/chunks/{chunk-O24GQWOS.js.map → chunk-DCV3FVXI.js.map} +0 -0
- /package/dist/chunks/{chunk-EFMDKOKN.js.map → chunk-DLHPY4VQ.js.map} +0 -0
- /package/dist/chunks/{chunk-VQ6UEBFB.js.map → chunk-E3L237Z7.js.map} +0 -0
- /package/dist/chunks/{chunk-BEK5BN4C.js.map → chunk-FLRYCMRH.js.map} +0 -0
- /package/dist/chunks/{chunk-7CDM74EE.js.map → chunk-FNMBBC26.js.map} +0 -0
- /package/dist/chunks/{chunk-APSWZFQE.js.map → chunk-FY3ZMDWN.js.map} +0 -0
- /package/dist/chunks/{chunk-WHSBPWGO.js.map → chunk-G7PWYTB4.js.map} +0 -0
- /package/dist/chunks/{chunk-POV6IQJT.js.map → chunk-GIKCLC27.js.map} +0 -0
- /package/dist/chunks/{chunk-G5MDOSWI.js.map → chunk-HM5UJONE.js.map} +0 -0
- /package/dist/chunks/{chunk-4PQRXS6H.js.map → chunk-HVFIYEP6.js.map} +0 -0
- /package/dist/chunks/{chunk-QNNZ4GND.js.map → chunk-IWZXZZMU.js.map} +0 -0
- /package/dist/chunks/{chunk-GASNVGYM.js.map → chunk-JG462CCT.js.map} +0 -0
- /package/dist/chunks/{chunk-WOIZGI7M.js.map → chunk-K3AE66MM.js.map} +0 -0
- /package/dist/chunks/{chunk-ZRJ42CZZ.js.map → chunk-KOGSKOU7.js.map} +0 -0
- /package/dist/chunks/{chunk-55PUSLIX.js.map → chunk-KP4H7FJ7.js.map} +0 -0
- /package/dist/chunks/{chunk-CZOQR2XO.js.map → chunk-LAMQGSGH.js.map} +0 -0
- /package/dist/chunks/{chunk-6TA477A2.js.map → chunk-LJQAGSYZ.js.map} +0 -0
- /package/dist/chunks/{chunk-MEUO6ZCV.js.map → chunk-LQ5L75T6.js.map} +0 -0
- /package/dist/chunks/{chunk-GG4IQFRX.js.map → chunk-LYMSGP53.js.map} +0 -0
- /package/dist/chunks/{chunk-OHHBLPVC.js.map → chunk-MDAEHXSL.js.map} +0 -0
- /package/dist/chunks/{chunk-2T6RCLVR.js.map → chunk-MM4BFFRT.js.map} +0 -0
- /package/dist/chunks/{chunk-NXWTLMCO.js.map → chunk-MYHK6KOU.js.map} +0 -0
- /package/dist/chunks/{chunk-3U7XN7PQ.js.map → chunk-MYQ2MZKF.js.map} +0 -0
- /package/dist/chunks/{chunk-CO6TO4W2.js.map → chunk-NA6FHE5K.js.map} +0 -0
- /package/dist/chunks/{chunk-A7GITM6V.js.map → chunk-NDGMUBFS.js.map} +0 -0
- /package/dist/chunks/{chunk-ORNBQX7S.js.map → chunk-NEYRPPT5.js.map} +0 -0
- /package/dist/chunks/{chunk-F6YHQXPD.js.map → chunk-NJ4PLSBZ.js.map} +0 -0
- /package/dist/chunks/{chunk-YPVP5NTQ.js.map → chunk-NRHUKGZ3.js.map} +0 -0
- /package/dist/chunks/{chunk-VS72UXVO.js.map → chunk-O6NHCC4Q.js.map} +0 -0
- /package/dist/chunks/{chunk-XGH4FG36.js.map → chunk-OH5T7ODG.js.map} +0 -0
- /package/dist/chunks/{chunk-3LBLZFVU.js.map → chunk-OLSRO4FC.js.map} +0 -0
- /package/dist/chunks/{chunk-22KWTDG5.js.map → chunk-OMFV2AEQ.js.map} +0 -0
- /package/dist/chunks/{chunk-JVAZBDDY.js.map → chunk-P33ZADN3.js.map} +0 -0
- /package/dist/chunks/{chunk-KR6WVSTY.js.map → chunk-P6DJ6AS5.js.map} +0 -0
- /package/dist/chunks/{chunk-FGUJWE3G.js.map → chunk-PGYSDVT7.js.map} +0 -0
- /package/dist/chunks/{chunk-56OWNTQG.js.map → chunk-PJPPWJIB.js.map} +0 -0
- /package/dist/chunks/{chunk-VQ6IQ7EA.js.map → chunk-QWCFMVAZ.js.map} +0 -0
- /package/dist/chunks/{chunk-HVZIQA7Y.js.map → chunk-QYKPC5HO.js.map} +0 -0
- /package/dist/chunks/{chunk-XTDLTMRY.js.map → chunk-RBUVQQLL.js.map} +0 -0
- /package/dist/chunks/{chunk-3KXR3Y2J.js.map → chunk-RO7HHDLW.js.map} +0 -0
- /package/dist/chunks/{chunk-2VD65GMI.js.map → chunk-SC2FLZAI.js.map} +0 -0
- /package/dist/chunks/{chunk-CX3FCE3I.js.map → chunk-T6BRCKD3.js.map} +0 -0
- /package/dist/chunks/{chunk-AUNFCWUI.js.map → chunk-TCAS4XVK.js.map} +0 -0
- /package/dist/chunks/{chunk-VH7JHYZJ.js.map → chunk-U77IVKFU.js.map} +0 -0
- /package/dist/chunks/{chunk-TXUKNDZD.js.map → chunk-UAD3AUKO.js.map} +0 -0
- /package/dist/chunks/{chunk-GKPS2EFI.js.map → chunk-UQFW622M.js.map} +0 -0
- /package/dist/chunks/{chunk-QLDPZEX5.js.map → chunk-UYC7YSMD.js.map} +0 -0
- /package/dist/chunks/{chunk-3OYLROCT.js.map → chunk-V2OLXCTE.js.map} +0 -0
- /package/dist/chunks/{chunk-XAYZT3ZU.js.map → chunk-V73ZJCIQ.js.map} +0 -0
- /package/dist/chunks/{chunk-D724YXPA.js.map → chunk-V7U4OXBC.js.map} +0 -0
- /package/dist/chunks/{chunk-3DGEG3E7.js.map → chunk-VUNKDZ34.js.map} +0 -0
- /package/dist/chunks/{chunk-VJVY6JZL.js.map → chunk-WUCZIFEU.js.map} +0 -0
- /package/dist/chunks/{chunk-33WXZTFM.js.map → chunk-WVQRVEZ7.js.map} +0 -0
- /package/dist/chunks/{chunk-HU33D7IT.js.map → chunk-WVZG6GRE.js.map} +0 -0
- /package/dist/chunks/{chunk-474TFQNJ.js.map → chunk-XTYVS4SM.js.map} +0 -0
- /package/dist/chunks/{chunk-ISBHRP4B.js.map → chunk-XZXE7L4B.js.map} +0 -0
- /package/dist/chunks/{chunk-5WM45GQZ.js.map → chunk-YDE7ZNUH.js.map} +0 -0
- /package/dist/chunks/{chunk-VEC2DNN6.js.map → chunk-YOBDE45E.js.map} +0 -0
- /package/dist/chunks/{chunk-YJRLBZ6I.js.map → chunk-YZIUYGJT.js.map} +0 -0
- /package/dist/chunks/{chunk-4RIW2UHY.js.map → chunk-Z4TNPAB4.js.map} +0 -0
- /package/dist/chunks/{chunk-FDQGRVLS.js.map → chunk-ZNGRNTOY.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-YJ4JREPJ.js.map → cli-runtime-IJWC2OTK.js.map} +0 -0
- /package/dist/chunks/{commands-YPPEQTQB.js.map → commands-S7OW6RX6.js.map} +0 -0
- /package/dist/chunks/{crash-report-EGE7NGTH.js.map → crash-report-F663DOML.js.map} +0 -0
- /package/dist/chunks/{dist-XM4UQIQQ.js.map → dist-IOJ4RD22.js.map} +0 -0
- /package/dist/chunks/{dist-TAZGUABO.js.map → dist-KXNNNQJP.js.map} +0 -0
- /package/dist/chunks/{dist-FOG4COQN.js.map → dist-S7E46RVO.js.map} +0 -0
- /package/dist/chunks/{dist-JJD2TQED.js.map → dist-VNVQM6JU.js.map} +0 -0
- /package/dist/chunks/{dist-XBLTAEAJ.js.map → dist-XY5CE56Y.js.map} +0 -0
- /package/dist/chunks/{dist-6YHBRQ2D.js.map → dist-ZHVTRMOZ.js.map} +0 -0
- /package/dist/chunks/{dist-L5BAAO6B.js.map → dist-ZXZ4LH3H.js.map} +0 -0
- /package/dist/chunks/{doctor-YVEQH55W.js.map → doctor-ABINZ4KS.js.map} +0 -0
- /package/dist/chunks/{drain-5XTQDVV6.js.map → drain-YZXZQAUT.js.map} +0 -0
- /package/dist/chunks/{entry-XTTLD6DE.js.map → entry-LGDDSUPB.js.map} +0 -0
- /package/dist/chunks/{eval-VC445DR6.js.map → eval-EYN5BPLR.js.map} +0 -0
- /package/dist/chunks/{exec-FPKXV4HA.js.map → exec-BMAOOSOF.js.map} +0 -0
- /package/dist/chunks/{home-52JRM65A.js.map → home-5OAGR5X5.js.map} +0 -0
- /package/dist/chunks/{hooks-6KHV6QJN.js.map → hooks-WV6P6LIP.js.map} +0 -0
- /package/dist/chunks/{hooks-report-3LZ7BKBR.js.map → hooks-report-JUCEQJ73.js.map} +0 -0
- /package/dist/chunks/{host-2K6MPYAT.js.map → host-EISOQGKE.js.map} +0 -0
- /package/dist/chunks/{host-queries-XOOUNCMJ.js.map → host-queries-HJHMGU5N.js.map} +0 -0
- /package/dist/chunks/{learn-JRLMSGQU.js.map → learn-27BG44YG.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-GH4BXJTR.js.map → learn-builtin-K5HQZDEA.js.map} +0 -0
- /package/dist/chunks/{lifecycle-2J2KZE24.js.map → lifecycle-L3BEM34W.js.map} +0 -0
- /package/dist/chunks/{list-GBRI4NQS.js.map → list-AB4VHNL2.js.map} +0 -0
- /package/dist/chunks/{live-L74ORWB5.js.map → live-P6HSBLJ5.js.map} +0 -0
- /package/dist/chunks/{load-FVBVG5CY.js.map → load-NFDONLZ2.js.map} +0 -0
- /package/dist/chunks/{login-HTTBNWTE.js.map → login-GON2CRE6.js.map} +0 -0
- /package/dist/chunks/{logs-V7BWNF35.js.map → logs-C7WBBIJR.js.map} +0 -0
- /package/dist/chunks/{mcp-WAVN5NVW.js.map → mcp-EBV34ZOW.js.map} +0 -0
- /package/dist/chunks/{open-EKL2SYD6.js.map → open-DLDZOPHP.js.map} +0 -0
- /package/dist/chunks/{operator-tools-HKPDJMDN.js.map → operator-tools-HT2GSJ56.js.map} +0 -0
- /package/dist/chunks/{output-schema-3SV7FA3E.js.map → output-schema-UODVJVW4.js.map} +0 -0
- /package/dist/chunks/{pal-IBKB3TXW.js.map → pal-YQMOI22A.js.map} +0 -0
- /package/dist/chunks/{peers-RV5PLRXJ.js.map → peers-HYMQ3RDX.js.map} +0 -0
- /package/dist/chunks/{peers-46C23FIF.js.map → peers-MVQTZ4ND.js.map} +0 -0
- /package/dist/chunks/{plugin-WMY4UJRI.js.map → plugin-Y4XV5CKG.js.map} +0 -0
- /package/dist/chunks/{providers-V3SBLB5L.js.map → providers-K23QPBYN.js.map} +0 -0
- /package/dist/chunks/{pty-T4FX7YOE.js.map → pty-UIYKKO63.js.map} +0 -0
- /package/dist/chunks/{resume-VT5LMJPR.js.map → resume-ON75M2JL.js.map} +0 -0
- /package/dist/chunks/{resume-command-6CHNMALJ.js.map → resume-command-O6FGFDSE.js.map} +0 -0
- /package/dist/chunks/{running-I42NAMXS.js.map → running-DAUDQDDJ.js.map} +0 -0
- /package/dist/chunks/{schedule-D7VCG6NS.js.map → schedule-U7UZBKHQ.js.map} +0 -0
- /package/dist/chunks/{send-QQ7OTQ2C.js.map → send-3R5RDV2H.js.map} +0 -0
- /package/dist/chunks/{send-person-5XI6MKZO.js.map → send-person-6NMIN4OT.js.map} +0 -0
- /package/dist/chunks/{service-UOLU7XBM.js.map → service-2PDUZZPQ.js.map} +0 -0
- /package/dist/chunks/{skills-RHUMEGQP.js.map → skills-4UXJESZB.js.map} +0 -0
- /package/dist/chunks/{start-check-2PBRVXD3.js.map → start-check-CF37SRBJ.js.map} +0 -0
- /package/dist/chunks/{startup-failure-P34LGDGH.js.map → startup-failure-VS2U4JIC.js.map} +0 -0
- /package/dist/chunks/{state-UHPX7NKN.js.map → state-DMLD6RWU.js.map} +0 -0
- /package/dist/chunks/{store-2743JWSK.js.map → store-3WIIBVKJ.js.map} +0 -0
- /package/dist/chunks/{store-33CI3HZM.js.map → store-DIVYPBNS.js.map} +0 -0
- /package/dist/chunks/{store-4SB5GOD3.js.map → store-TYFJML3O.js.map} +0 -0
- /package/dist/chunks/{store-5ZPIJRWU.js.map → store-ZLCDFCYI.js.map} +0 -0
- /package/dist/chunks/{workspaces-WQLLUBQV.js.map → workspaces-ZHM5N3OY.js.map} +0 -0
- /package/dist/chunks/{worktree-4N5Y2P5N.js.map → worktree-2MMIAPGE.js.map} +0 -0
|
@@ -2,10 +2,10 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openWorktreeHookRuntime
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UYC7YSMD.js";
|
|
6
6
|
import {
|
|
7
7
|
selectDesktopBackend
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E3L237Z7.js";
|
|
9
9
|
import {
|
|
10
10
|
NAMZU_COMPACT_WORDMARK,
|
|
11
11
|
NAMZU_WORDMARK,
|
|
@@ -17,33 +17,33 @@ import {
|
|
|
17
17
|
confirmationView,
|
|
18
18
|
describeChanges,
|
|
19
19
|
permissionsChanged
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BWUBI6VE.js";
|
|
21
21
|
import {
|
|
22
22
|
visibleScheduleMessage
|
|
23
23
|
} from "./chunk-NADQQMMG.js";
|
|
24
24
|
import {
|
|
25
25
|
hooksOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DCV3FVXI.js";
|
|
27
27
|
import {
|
|
28
28
|
applyProviderFlags
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WVZG6GRE.js";
|
|
30
30
|
import {
|
|
31
31
|
BYPASS_CONSENT_BODY,
|
|
32
32
|
BYPASS_CONSENT_TITLE,
|
|
33
33
|
acknowledgeBypass,
|
|
34
34
|
hasAcknowledgedBypass
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6NFHP44E.js";
|
|
36
36
|
import {
|
|
37
37
|
applyFallbackFlag
|
|
38
38
|
} from "./chunk-RL2CTUF2.js";
|
|
39
39
|
import {
|
|
40
40
|
settleAnsweredPark
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-V2OLXCTE.js";
|
|
42
42
|
import {
|
|
43
43
|
DELIVERY_READ_LIMIT,
|
|
44
44
|
readSourceDeliveryPage,
|
|
45
45
|
takeSuppressedCount
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-HM5UJONE.js";
|
|
47
47
|
import {
|
|
48
48
|
DEFAULT_MAX_ITERATIONS,
|
|
49
49
|
DEFAULT_TIMEOUT_MS,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
editedJob,
|
|
55
55
|
previewLines,
|
|
56
56
|
runsPerDay
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-U77IVKFU.js";
|
|
58
58
|
import {
|
|
59
59
|
callsCount
|
|
60
60
|
} from "./chunk-OG2MLME3.js";
|
|
@@ -63,23 +63,23 @@ import {
|
|
|
63
63
|
gateRefusal,
|
|
64
64
|
scriptShellUnavailableReason,
|
|
65
65
|
verifyScheduledScript
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-NRHUKGZ3.js";
|
|
67
67
|
import {
|
|
68
68
|
allowsCommands,
|
|
69
69
|
compileJobPolicy,
|
|
70
70
|
compileScriptCheckPolicy,
|
|
71
71
|
isPresetName
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-O6NHCC4Q.js";
|
|
73
73
|
import {
|
|
74
74
|
parkedRunWords,
|
|
75
75
|
resumeCommand
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-P33ZADN3.js";
|
|
77
77
|
import {
|
|
78
78
|
appendHistory,
|
|
79
79
|
nextFireOf,
|
|
80
80
|
readHistory,
|
|
81
81
|
readState
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-3EH3USMD.js";
|
|
83
83
|
import {
|
|
84
84
|
callEndpoint,
|
|
85
85
|
readEndpoint
|
|
@@ -97,20 +97,20 @@ import {
|
|
|
97
97
|
sectionHeading,
|
|
98
98
|
withAutoChoice,
|
|
99
99
|
writeConversationExport
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-B5O2UDMT.js";
|
|
101
101
|
import {
|
|
102
102
|
tuiPalDefinition,
|
|
103
103
|
tuiPalEnvironment,
|
|
104
104
|
tuiPalOwner,
|
|
105
105
|
tuiPalPreferences
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-7KIVKXQB.js";
|
|
107
107
|
import {
|
|
108
108
|
NOTHING_TOLD,
|
|
109
109
|
claimMismatchLine,
|
|
110
110
|
goalEndingLine,
|
|
111
111
|
handedBackLines,
|
|
112
112
|
outcomeNotice
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-5CGQ2AOP.js";
|
|
114
114
|
import {
|
|
115
115
|
isModelOnlyContext,
|
|
116
116
|
runtimeContextRowLabel
|
|
@@ -127,17 +127,17 @@ import {
|
|
|
127
127
|
orderRange,
|
|
128
128
|
snapRange,
|
|
129
129
|
wordAt
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-YDE7ZNUH.js";
|
|
131
131
|
import {
|
|
132
132
|
buildPeerTools,
|
|
133
133
|
openLivePeers,
|
|
134
134
|
peerMailLabel,
|
|
135
135
|
peerMailMessage
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-ARPABLFS.js";
|
|
137
137
|
import {
|
|
138
138
|
claimPalConversation,
|
|
139
139
|
listPalConversations
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-RBUVQQLL.js";
|
|
141
141
|
import {
|
|
142
142
|
CLICK_EXPAND_HINT,
|
|
143
143
|
CLICK_FOLD_HINT,
|
|
@@ -246,11 +246,11 @@ import {
|
|
|
246
246
|
webLiveStatus,
|
|
247
247
|
webSettledLine,
|
|
248
248
|
withDebugDetail
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-RMRGVJOA.js";
|
|
250
250
|
import {
|
|
251
251
|
openManagedWorktrees,
|
|
252
252
|
worktreeOpenHint
|
|
253
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-Z4TNPAB4.js";
|
|
254
254
|
import {
|
|
255
255
|
completionNotice,
|
|
256
256
|
countAgents,
|
|
@@ -263,15 +263,15 @@ import {
|
|
|
263
263
|
resumeReviewLines,
|
|
264
264
|
runTokens,
|
|
265
265
|
settledElapsed
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-NA6FHE5K.js";
|
|
267
267
|
import {
|
|
268
268
|
MCP_OUTPUT_CHARS,
|
|
269
269
|
boundedMcpText,
|
|
270
270
|
validatePromptArguments
|
|
271
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-YOBDE45E.js";
|
|
272
272
|
import {
|
|
273
273
|
openInBrowser
|
|
274
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-LYMSGP53.js";
|
|
275
275
|
import {
|
|
276
276
|
describeBrowserStatus
|
|
277
277
|
} from "./chunk-WHODOMXA.js";
|
|
@@ -286,15 +286,15 @@ import {
|
|
|
286
286
|
import {
|
|
287
287
|
beginSubscriptionLogin,
|
|
288
288
|
parsePastedInput
|
|
289
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-6PIZ3336.js";
|
|
290
290
|
import {
|
|
291
291
|
API_KEY_ACCOUNT_PROVIDERS,
|
|
292
292
|
openCliAccounts,
|
|
293
293
|
storedAccountSignedIn
|
|
294
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-PGYSDVT7.js";
|
|
295
295
|
import {
|
|
296
296
|
beginCodexDeviceLogin
|
|
297
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-A4RKSHUI.js";
|
|
298
298
|
import {
|
|
299
299
|
ConversationIndexRefreshError,
|
|
300
300
|
activeConversationTurn,
|
|
@@ -324,15 +324,15 @@ import {
|
|
|
324
324
|
typedTextOf,
|
|
325
325
|
unansweredReviewPark,
|
|
326
326
|
unarchiveConversation
|
|
327
|
-
} from "./chunk-
|
|
327
|
+
} from "./chunk-MYQ2MZKF.js";
|
|
328
328
|
import {
|
|
329
329
|
bindAccount,
|
|
330
330
|
findAccountByName,
|
|
331
331
|
isDefaultAccountId
|
|
332
|
-
} from "./chunk-
|
|
332
|
+
} from "./chunk-KP4H7FJ7.js";
|
|
333
333
|
import {
|
|
334
334
|
startAutoUpdate
|
|
335
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-MEIMXALZ.js";
|
|
336
336
|
import {
|
|
337
337
|
readManifest
|
|
338
338
|
} from "./chunk-AK2U3N2A.js";
|
|
@@ -370,10 +370,10 @@ import {
|
|
|
370
370
|
turnLimitCommands,
|
|
371
371
|
useThemeEpoch,
|
|
372
372
|
useThemeSubscription
|
|
373
|
-
} from "./chunk-
|
|
373
|
+
} from "./chunk-2XOJQKYX.js";
|
|
374
374
|
import {
|
|
375
375
|
discoverUserCommands
|
|
376
|
-
} from "./chunk-
|
|
376
|
+
} from "./chunk-LQ5L75T6.js";
|
|
377
377
|
import {
|
|
378
378
|
describeAllCredentialsLogout,
|
|
379
379
|
describeApiKeyLogout,
|
|
@@ -409,11 +409,11 @@ import {
|
|
|
409
409
|
} from "./chunk-OEW7CJKK.js";
|
|
410
410
|
import {
|
|
411
411
|
resolveNpmInvocation
|
|
412
|
-
} from "./chunk-
|
|
412
|
+
} from "./chunk-XQHHFTFX.js";
|
|
413
413
|
import {
|
|
414
414
|
deleteUserConfigValue,
|
|
415
415
|
setUserConfigValue
|
|
416
|
-
} from "./chunk-
|
|
416
|
+
} from "./chunk-MDAEHXSL.js";
|
|
417
417
|
import {
|
|
418
418
|
pinTrustedProjectPath,
|
|
419
419
|
resolveTrustedProjectContext
|
|
@@ -428,7 +428,7 @@ import {
|
|
|
428
428
|
describeCacheLifetime,
|
|
429
429
|
promptCacheTtl,
|
|
430
430
|
providerOffersCacheLifetime
|
|
431
|
-
} from "./chunk-
|
|
431
|
+
} from "./chunk-LYTMEPN4.js";
|
|
432
432
|
import {
|
|
433
433
|
SAVE_SKILL_TOOL_NAME,
|
|
434
434
|
SKILL_CREATOR_SKILL,
|
|
@@ -441,14 +441,14 @@ import {
|
|
|
441
441
|
newSkillPrompt,
|
|
442
442
|
resolveTurnGuards,
|
|
443
443
|
sandboxRunsShellUnasked
|
|
444
|
-
} from "./chunk-
|
|
444
|
+
} from "./chunk-OH5T7ODG.js";
|
|
445
445
|
import {
|
|
446
446
|
describePlainInterruption,
|
|
447
447
|
describeProviderWait,
|
|
448
448
|
describeProviderWaitClock,
|
|
449
449
|
isSelfMending,
|
|
450
450
|
isSpentAllowance
|
|
451
|
-
} from "./chunk-
|
|
451
|
+
} from "./chunk-XZXE7L4B.js";
|
|
452
452
|
import {
|
|
453
453
|
debugRequested
|
|
454
454
|
} from "./chunk-GNBMKISG.js";
|
|
@@ -460,35 +460,35 @@ import {
|
|
|
460
460
|
handoffContinuationNote,
|
|
461
461
|
refusalDetail,
|
|
462
462
|
retryAfterMs
|
|
463
|
-
} from "./chunk-
|
|
463
|
+
} from "./chunk-TCAS4XVK.js";
|
|
464
464
|
import {
|
|
465
465
|
autoAvailable,
|
|
466
466
|
nextCycleMode,
|
|
467
467
|
permissionModeDescription,
|
|
468
468
|
permissionModeLabel,
|
|
469
469
|
permissionModeName
|
|
470
|
-
} from "./chunk-
|
|
470
|
+
} from "./chunk-WVQRVEZ7.js";
|
|
471
471
|
import {
|
|
472
472
|
expandTabs,
|
|
473
473
|
scriptText,
|
|
474
474
|
terminalDisplayText
|
|
475
475
|
} from "./chunk-I4GTRFPK.js";
|
|
476
|
-
import {
|
|
477
|
-
paint,
|
|
478
|
-
rowTints,
|
|
479
|
-
theme,
|
|
480
|
-
tokenColor
|
|
481
|
-
} from "./chunk-WD2F6EO3.js";
|
|
482
476
|
import {
|
|
483
477
|
discoverAgentDefinitions
|
|
484
|
-
} from "./chunk-
|
|
478
|
+
} from "./chunk-PJPPWJIB.js";
|
|
485
479
|
import {
|
|
486
480
|
readAgentHooks
|
|
487
|
-
} from "./chunk-
|
|
481
|
+
} from "./chunk-DLHPY4VQ.js";
|
|
488
482
|
import {
|
|
489
483
|
readSkillHooks,
|
|
490
484
|
withoutSessionStart
|
|
491
|
-
} from "./chunk-
|
|
485
|
+
} from "./chunk-BZMMDJFZ.js";
|
|
486
|
+
import {
|
|
487
|
+
paint,
|
|
488
|
+
rowTints,
|
|
489
|
+
theme,
|
|
490
|
+
tokenColor
|
|
491
|
+
} from "./chunk-WD2F6EO3.js";
|
|
492
492
|
import {
|
|
493
493
|
NO_SKILLS_FOUND,
|
|
494
494
|
composeSkillsPrompt,
|
|
@@ -496,11 +496,11 @@ import {
|
|
|
496
496
|
loadSkillBody,
|
|
497
497
|
renderSkillRoster,
|
|
498
498
|
skillTierLabel
|
|
499
|
-
} from "./chunk-
|
|
499
|
+
} from "./chunk-VUNKDZ34.js";
|
|
500
500
|
import {
|
|
501
501
|
primaryProvider,
|
|
502
502
|
writePreferences
|
|
503
|
-
} from "./chunk-
|
|
503
|
+
} from "./chunk-WUCZIFEU.js";
|
|
504
504
|
import {
|
|
505
505
|
apiKeyLogoutWord,
|
|
506
506
|
automaticChoice,
|
|
@@ -511,7 +511,7 @@ import {
|
|
|
511
511
|
hasApiCredential,
|
|
512
512
|
isApiKeyLogoutTarget,
|
|
513
513
|
signedInSubscriptionProviders
|
|
514
|
-
} from "./chunk-
|
|
514
|
+
} from "./chunk-V7U4OXBC.js";
|
|
515
515
|
import {
|
|
516
516
|
COMPOSER_TRIGGER_DEFAULTS,
|
|
517
517
|
COMPOSER_TRIGGER_IDS,
|
|
@@ -542,7 +542,7 @@ import {
|
|
|
542
542
|
saveDecisionKey,
|
|
543
543
|
shouldOfferDecisionSetup,
|
|
544
544
|
writeConnection
|
|
545
|
-
} from "./chunk-
|
|
545
|
+
} from "./chunk-YZIUYGJT.js";
|
|
546
546
|
import {
|
|
547
547
|
PROJECT_MCP_FILE,
|
|
548
548
|
parseMcpServerFile
|
|
@@ -574,11 +574,11 @@ import {
|
|
|
574
574
|
import {
|
|
575
575
|
isAnthropicOAuthToken,
|
|
576
576
|
readCodexCredentialFile
|
|
577
|
-
} from "./chunk-
|
|
577
|
+
} from "./chunk-NJ4PLSBZ.js";
|
|
578
578
|
import {
|
|
579
579
|
isTrusted,
|
|
580
580
|
trustDir
|
|
581
|
-
} from "./chunk-
|
|
581
|
+
} from "./chunk-FLRYCMRH.js";
|
|
582
582
|
import {
|
|
583
583
|
apiKeysPath,
|
|
584
584
|
clearAllStoredApiKeys,
|
|
@@ -596,10 +596,10 @@ import {
|
|
|
596
596
|
readStoredSubscriptionCredential,
|
|
597
597
|
writeStoredApiKey,
|
|
598
598
|
writeStoredGeminiApiKey
|
|
599
|
-
} from "./chunk-
|
|
599
|
+
} from "./chunk-OLSRO4FC.js";
|
|
600
600
|
import {
|
|
601
601
|
namzuHomePath
|
|
602
|
-
} from "./chunk-
|
|
602
|
+
} from "./chunk-G7PWYTB4.js";
|
|
603
603
|
import {
|
|
604
604
|
ACCEPT_EDITS_TOOLS,
|
|
605
605
|
AccountRegistryError,
|
|
@@ -660,7 +660,7 @@ import {
|
|
|
660
660
|
validateTimeZone,
|
|
661
661
|
wakeBudgetFromEnv,
|
|
662
662
|
wrapUntrusted
|
|
663
|
-
} from "./chunk-
|
|
663
|
+
} from "./chunk-BULDCXFX.js";
|
|
664
664
|
import {
|
|
665
665
|
__commonJS,
|
|
666
666
|
__export,
|
|
@@ -20206,6 +20206,24 @@ function startOnFreshLine(columns) {
|
|
|
20206
20206
|
return `${ESC4}[7m%${ESC4}[27m${" ".repeat(width - 1)}\r${ESC4}[K`;
|
|
20207
20207
|
}
|
|
20208
20208
|
__name(startOnFreshLine, "startOnFreshLine");
|
|
20209
|
+
function startOnCleanScreen(rows) {
|
|
20210
|
+
return `${"\n".repeat(Math.max(1, rows))}${ESC4}[H${ESC4}[J`;
|
|
20211
|
+
}
|
|
20212
|
+
__name(startOnCleanScreen, "startOnCleanScreen");
|
|
20213
|
+
var RULE_ROW = /^\s*─{8,}\s*$/;
|
|
20214
|
+
function inputBoxStart(rows) {
|
|
20215
|
+
const rules = [];
|
|
20216
|
+
for (let i = rows.length - 1; i >= 0 && rules.length < 2; i--)
|
|
20217
|
+
if (RULE_ROW.test(plainText(rows[i]))) rules.push(i);
|
|
20218
|
+
const [lower, upper] = rules;
|
|
20219
|
+
if (lower === void 0 || upper === void 0) return null;
|
|
20220
|
+
return rows.length - 1 - lower <= 3 ? upper : null;
|
|
20221
|
+
}
|
|
20222
|
+
__name(inputBoxStart, "inputBoxStart");
|
|
20223
|
+
function eraseFrom(rowsBelow) {
|
|
20224
|
+
return `${rowsBelow > 0 ? `${ESC4}[${rowsBelow}A` : ""}\r${ESC4}[J`;
|
|
20225
|
+
}
|
|
20226
|
+
__name(eraseFrom, "eraseFrom");
|
|
20209
20227
|
var plainText = /* @__PURE__ */ __name((row2) => row2.replace(
|
|
20210
20228
|
new RegExp(`${ESC4}\\[[0-9;?]*[A-Za-z]|${ESC4}\\][^\\u0007${ESC4}]*(?:\\u0007|${ESC4}\\\\)`, "g"),
|
|
20211
20229
|
""
|
|
@@ -20521,9 +20539,16 @@ function createLivePaint(target, options = {}) {
|
|
|
20521
20539
|
return {
|
|
20522
20540
|
stream: stream2,
|
|
20523
20541
|
flush,
|
|
20524
|
-
dispose() {
|
|
20542
|
+
dispose(options2) {
|
|
20525
20543
|
if (disposed) return;
|
|
20526
20544
|
leave();
|
|
20545
|
+
if (options2?.eraseBox === true && !bypass()) {
|
|
20546
|
+
const start2 = inputBoxStart(shown);
|
|
20547
|
+
if (start2 !== null) {
|
|
20548
|
+
out(eraseFrom(shown.length - start2));
|
|
20549
|
+
shown = shown.slice(0, start2);
|
|
20550
|
+
}
|
|
20551
|
+
}
|
|
20527
20552
|
disposed = true;
|
|
20528
20553
|
target.off(RESIZE, onTargetResize);
|
|
20529
20554
|
hooks?.off("exit", onExit);
|
|
@@ -21629,18 +21654,23 @@ __name(callDetailLines, "callDetailLines");
|
|
|
21629
21654
|
|
|
21630
21655
|
// src/tui/agent-transcript-rows.ts
|
|
21631
21656
|
var AGENT_MANAGE_HINT = "\u2193 to manage";
|
|
21632
|
-
var WORKFLOW_MANAGE_HINT = "\u2193 to manage";
|
|
21633
21657
|
function launchLabel(agent) {
|
|
21634
21658
|
return oneLine2(agent.description) || oneLine2(agent.agentId);
|
|
21635
21659
|
}
|
|
21636
21660
|
__name(launchLabel, "launchLabel");
|
|
21661
|
+
function launchFollowNote(unordered) {
|
|
21662
|
+
const first = unordered[0];
|
|
21663
|
+
if (!first) return void 0;
|
|
21664
|
+
const labelled = unordered.some((agent) => agent.workflow !== DEFAULT_AGENT_WORKFLOW);
|
|
21665
|
+
return labelled || unordered.every((agent) => agent.background === true) ? WORKFLOW_BACKGROUND_NOTE : void 0;
|
|
21666
|
+
}
|
|
21667
|
+
__name(launchFollowNote, "launchFollowNote");
|
|
21637
21668
|
function launchReceipt(unordered) {
|
|
21638
21669
|
const members = [...unordered].sort((left, right2) => left.startedAt - right2.startedAt);
|
|
21639
21670
|
const first = members[0];
|
|
21640
21671
|
if (first && first.workflow !== DEFAULT_AGENT_WORKFLOW) {
|
|
21641
21672
|
return {
|
|
21642
|
-
content: `Workflow ${oneLine2(first.workflow)}
|
|
21643
|
-
\u23BF Running in background \xB7 ${WORKFLOW_MANAGE_HINT}`
|
|
21673
|
+
content: `Workflow ${oneLine2(first.workflow)}`
|
|
21644
21674
|
};
|
|
21645
21675
|
}
|
|
21646
21676
|
const labels = first ? [
|
|
@@ -21651,15 +21681,14 @@ function launchReceipt(unordered) {
|
|
|
21651
21681
|
const ended = /* @__PURE__ */ __name((agent) => agent.status === "completed" || agent.status === "failed" || agent.status === "cancelled", "ended");
|
|
21652
21682
|
const allEnded = members.every(ended);
|
|
21653
21683
|
if (members.length === 1 && first) {
|
|
21654
|
-
const hint = first.background === true ? ` (${AGENT_MANAGE_HINT})` : "";
|
|
21655
21684
|
return {
|
|
21656
|
-
content: `Launched ${launchLabel(first)}${where}
|
|
21685
|
+
content: `Launched ${launchLabel(first)}${where}`
|
|
21657
21686
|
};
|
|
21658
21687
|
}
|
|
21659
21688
|
const tree = members.map(
|
|
21660
21689
|
(agent, index) => `${index === members.length - 1 ? "\u2514" : "\u251C"} ${launchLabel(agent)}`
|
|
21661
21690
|
);
|
|
21662
|
-
const headline = members.every((agent) => agent.background === true) ? `${members.length} background agents launched${where}
|
|
21691
|
+
const headline = members.every((agent) => agent.background === true) ? `${members.length} background agents launched${where}` : allEnded ? `${endedWords(members)}${where}` : `Launched ${members.length} agents${where}`;
|
|
21663
21692
|
return { content: [headline, ...tree].join("\n") };
|
|
21664
21693
|
}
|
|
21665
21694
|
__name(launchReceipt, "launchReceipt");
|
|
@@ -25468,6 +25497,30 @@ function attachmentRows(text, attachments, floor, directory) {
|
|
|
25468
25497
|
}
|
|
25469
25498
|
__name(attachmentRows, "attachmentRows");
|
|
25470
25499
|
|
|
25500
|
+
// src/tui/reply-mark.ts
|
|
25501
|
+
function isReplyText(message) {
|
|
25502
|
+
return message.role === "assistant" && message.glyph === void 0 && (message.content !== "" || (message.printed?.length ?? 0) > 0);
|
|
25503
|
+
}
|
|
25504
|
+
__name(isReplyText, "isReplyText");
|
|
25505
|
+
function opensTurn(message) {
|
|
25506
|
+
return message.role === "user" || message.role === "system" && message.glyph === "\u273B";
|
|
25507
|
+
}
|
|
25508
|
+
__name(opensTurn, "opensTurn");
|
|
25509
|
+
function laterReplyBlocks(messages) {
|
|
25510
|
+
let marked = false;
|
|
25511
|
+
return messages.map((message) => {
|
|
25512
|
+
if (opensTurn(message)) {
|
|
25513
|
+
marked = false;
|
|
25514
|
+
return false;
|
|
25515
|
+
}
|
|
25516
|
+
if (!isReplyText(message)) return false;
|
|
25517
|
+
const later = marked;
|
|
25518
|
+
marked = true;
|
|
25519
|
+
return later;
|
|
25520
|
+
});
|
|
25521
|
+
}
|
|
25522
|
+
__name(laterReplyBlocks, "laterReplyBlocks");
|
|
25523
|
+
|
|
25471
25524
|
// src/tui/stream-flow.ts
|
|
25472
25525
|
var PACE_MS = 80;
|
|
25473
25526
|
function paceDecision(now, lastFlushAt, timerArmed) {
|
|
@@ -25901,9 +25954,9 @@ __name(voidReply, "voidReply");
|
|
|
25901
25954
|
var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
|
|
25902
25955
|
var COLLAPSE_LINES = 6;
|
|
25903
25956
|
var PREVIEW_LINE_CHARS = 240;
|
|
25904
|
-
function printedRows(message, prev, raw) {
|
|
25957
|
+
function printedRows(message, prev, raw, later) {
|
|
25905
25958
|
if (raw || !message.printed?.length || !isPlainReply(message))
|
|
25906
|
-
return [{ kind: "message", message, prev }];
|
|
25959
|
+
return [{ kind: "message", message, prev, later }];
|
|
25907
25960
|
const pieces2 = printedPieces(message.printed);
|
|
25908
25961
|
const rest = tailPiece({ ...message, pending: false });
|
|
25909
25962
|
return [...pieces2, ...rest ? [rest] : []].map((piece, i) => ({
|
|
@@ -25911,7 +25964,8 @@ function printedRows(message, prev, raw) {
|
|
|
25911
25964
|
key: `${message.id}#${i}`,
|
|
25912
25965
|
message,
|
|
25913
25966
|
piece,
|
|
25914
|
-
prev
|
|
25967
|
+
prev,
|
|
25968
|
+
later
|
|
25915
25969
|
}));
|
|
25916
25970
|
}
|
|
25917
25971
|
__name(printedRows, "printedRows");
|
|
@@ -25940,7 +25994,8 @@ function Transcript({
|
|
|
25940
25994
|
hyperlinks = false,
|
|
25941
25995
|
showLive = true,
|
|
25942
25996
|
header,
|
|
25943
|
-
staticIndent = 0
|
|
25997
|
+
staticIndent = 0,
|
|
25998
|
+
staticIndentRight = staticIndent
|
|
25944
25999
|
}) {
|
|
25945
26000
|
(0, import_react39.useSyncExternalStore)(subscribeGrammars, grammarVersion);
|
|
25946
26001
|
const known = (0, import_react39.useRef)({ key: resetKey, n: 0 });
|
|
@@ -25949,13 +26004,14 @@ function Transcript({
|
|
|
25949
26004
|
known.current.n = Math.min(known.current.n, asked);
|
|
25950
26005
|
const inScrollback = raw ? asked : firstHeld(messages, known.current.n, asked);
|
|
25951
26006
|
if (!raw) known.current.n = inScrollback;
|
|
25952
|
-
const rows = [
|
|
25953
|
-
...header ? [{ kind: "header" }] : [],
|
|
25954
|
-
...messages.slice(0, inScrollback).flatMap((message, i) => printedRows(message, messages[i - 1], raw))
|
|
25955
|
-
];
|
|
25956
26007
|
const live = messages.slice(inScrollback);
|
|
25957
26008
|
const at = Math.min(Math.max((pendingAt ?? messages.length) - inScrollback, 0), live.length);
|
|
25958
26009
|
const drawn = pending ? [...live.slice(0, at), pending, ...live.slice(at)] : live;
|
|
26010
|
+
const later = laterReplyBlocks([...messages.slice(0, inScrollback), ...drawn]);
|
|
26011
|
+
const rows = [
|
|
26012
|
+
...header ? [{ kind: "header" }] : [],
|
|
26013
|
+
...messages.slice(0, inScrollback).flatMap((message, i) => printedRows(message, messages[i - 1], raw, later[i] ?? false))
|
|
26014
|
+
];
|
|
25959
26015
|
const flowing = !raw && drawn[0]?.printed?.length && isPlainReply(drawn[0]) ? drawn[0] : void 0;
|
|
25960
26016
|
if (flowing) {
|
|
25961
26017
|
const before = inScrollback > 0 ? messages[inScrollback - 1] : void 0;
|
|
@@ -25966,28 +26022,38 @@ function Transcript({
|
|
|
25966
26022
|
key: `${flowing.id}#${i}`,
|
|
25967
26023
|
message: flowing,
|
|
25968
26024
|
piece,
|
|
25969
|
-
prev: before
|
|
26025
|
+
prev: before,
|
|
26026
|
+
later: later[inScrollback] ?? false
|
|
25970
26027
|
}))
|
|
25971
26028
|
);
|
|
25972
26029
|
}
|
|
25973
26030
|
const { columns } = use_window_size_default();
|
|
25974
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ContentWidth.Provider, { value: Math.max(10, columns -
|
|
26031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ContentWidth.Provider, { value: Math.max(10, columns - staticIndent - staticIndentRight - 2), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
25975
26032
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Static, { items: rows, children: (row2) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
25976
26033
|
Box_default,
|
|
25977
26034
|
{
|
|
25978
26035
|
flexDirection: "column",
|
|
25979
26036
|
width: columns,
|
|
25980
26037
|
paddingLeft: staticIndent,
|
|
25981
|
-
paddingRight:
|
|
26038
|
+
paddingRight: staticIndentRight,
|
|
25982
26039
|
children: row2.kind === "header" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { children: header }) : row2.kind === "piece" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
25983
26040
|
ReplyPieceRow,
|
|
25984
26041
|
{
|
|
25985
26042
|
message: row2.message,
|
|
25986
26043
|
prev: row2.prev,
|
|
25987
26044
|
piece: row2.piece,
|
|
25988
|
-
hyperlinks
|
|
26045
|
+
hyperlinks,
|
|
26046
|
+
later: row2.later
|
|
25989
26047
|
}
|
|
25990
|
-
) : raw ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RawMessageRow, { message: row2.message, prev: row2.prev }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
26048
|
+
) : raw ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RawMessageRow, { message: row2.message, prev: row2.prev }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
26049
|
+
MessageRow,
|
|
26050
|
+
{
|
|
26051
|
+
message: row2.message,
|
|
26052
|
+
prev: row2.prev,
|
|
26053
|
+
hyperlinks,
|
|
26054
|
+
later: row2.later
|
|
26055
|
+
}
|
|
26056
|
+
)
|
|
25991
26057
|
},
|
|
25992
26058
|
row2.kind === "header" ? "header" : row2.kind === "piece" ? row2.key : row2.message.id
|
|
25993
26059
|
) }, resetKey),
|
|
@@ -26001,12 +26067,22 @@ function Transcript({
|
|
|
26001
26067
|
message,
|
|
26002
26068
|
prev: i > 0 ? drawn[i - 1] : messages[inScrollback - 1],
|
|
26003
26069
|
piece,
|
|
26004
|
-
hyperlinks
|
|
26070
|
+
hyperlinks,
|
|
26071
|
+
later: later[inScrollback + i] ?? false
|
|
26005
26072
|
},
|
|
26006
26073
|
message.id
|
|
26007
26074
|
);
|
|
26008
26075
|
}
|
|
26009
|
-
return raw ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RawMessageRow, { message, prev }, message.id) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
26076
|
+
return raw ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RawMessageRow, { message, prev }, message.id) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
26077
|
+
LiveRow,
|
|
26078
|
+
{
|
|
26079
|
+
message,
|
|
26080
|
+
prev,
|
|
26081
|
+
hyperlinks,
|
|
26082
|
+
later: later[inScrollback + i] ?? false
|
|
26083
|
+
},
|
|
26084
|
+
message.id
|
|
26085
|
+
);
|
|
26010
26086
|
}) : null
|
|
26011
26087
|
] }) });
|
|
26012
26088
|
}
|
|
@@ -26016,12 +26092,13 @@ function ReplyPieceRow({
|
|
|
26016
26092
|
message,
|
|
26017
26093
|
prev,
|
|
26018
26094
|
piece,
|
|
26019
|
-
hyperlinks
|
|
26095
|
+
hyperlinks,
|
|
26096
|
+
later = false
|
|
26020
26097
|
}) {
|
|
26021
26098
|
useThemeEpoch();
|
|
26022
26099
|
const glyph = glyphForRole(message.role);
|
|
26023
26100
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { flexDirection: "column", marginTop: piece.first && prev ? 1 : 0, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { flexDirection: "row", children: [
|
|
26024
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColorForRole(message.role),
|
|
26101
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColorForRole(message.role), children: piece.first && !later ? glyph : " " }) }),
|
|
26025
26102
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { flexGrow: 1, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
26026
26103
|
Markdown,
|
|
26027
26104
|
{
|
|
@@ -26076,7 +26153,8 @@ function MessageRow({
|
|
|
26076
26153
|
message,
|
|
26077
26154
|
prev,
|
|
26078
26155
|
hyperlinks,
|
|
26079
|
-
screen = false
|
|
26156
|
+
screen = false,
|
|
26157
|
+
later = false
|
|
26080
26158
|
}) {
|
|
26081
26159
|
useThemeEpoch();
|
|
26082
26160
|
if (message.kind === "recap") return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RecapRow, { message, prev });
|
|
@@ -26090,7 +26168,8 @@ function MessageRow({
|
|
|
26090
26168
|
const content = message.role === "assistant" ? message.content : terminalDisplayText(shellHeader);
|
|
26091
26169
|
const width = useContentWidth();
|
|
26092
26170
|
const userCut = message.role === "user" ? cutUserText(content) : content;
|
|
26093
|
-
const
|
|
26171
|
+
const replyMark = message.role === "assistant" && message.glyph === void 0;
|
|
26172
|
+
const glyph = replyMark && later ? " " : message.glyph ?? glyphForRole(message.role);
|
|
26094
26173
|
const textColor = paint(message.contentColor) ?? contentColorForRole(message.role);
|
|
26095
26174
|
const tint = message.role === "user" && glyph === "\u203A" ? rowTints()?.user : void 0;
|
|
26096
26175
|
const tinted = tint === void 0 ? {} : { backgroundColor: tint };
|
|
@@ -26117,7 +26196,7 @@ function MessageRow({
|
|
|
26117
26196
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { flexDirection: "column", marginTop: gap, children: [
|
|
26118
26197
|
screen && message.thinking ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ThinkingBlock, { text: message.thinking }) : null,
|
|
26119
26198
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { flexDirection: "row", paddingLeft: glyph === "\u23BF" ? RESULT_GUTTER_INDENT : 0, children: [
|
|
26120
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { width: glyph === "\u23BF" ? RESULT_GUTTER_WIDTH : 2, flexShrink: 0, ...tinted, children: tint === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColor, bold:
|
|
26199
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { width: glyph === "\u23BF" ? RESULT_GUTTER_WIDTH : 2, flexShrink: 0, ...tinted, children: tint === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColor, bold: !replyMark, children: glyph }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { color: glyphColor, dimColor: true, children: glyph }) }),
|
|
26121
26200
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Box_default, { flexGrow: 1, children: message.role === "assistant" && content.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
26122
26201
|
Markdown,
|
|
26123
26202
|
{
|
|
@@ -26402,7 +26481,7 @@ function glyphForRole(role) {
|
|
|
26402
26481
|
case "user":
|
|
26403
26482
|
return "\u203A";
|
|
26404
26483
|
case "assistant":
|
|
26405
|
-
return "\
|
|
26484
|
+
return "\u25CF";
|
|
26406
26485
|
case "system":
|
|
26407
26486
|
return "\xB7";
|
|
26408
26487
|
case "tool":
|
|
@@ -26415,7 +26494,7 @@ function glyphColorForRole(role) {
|
|
|
26415
26494
|
case "user":
|
|
26416
26495
|
return theme.accent.user;
|
|
26417
26496
|
case "assistant":
|
|
26418
|
-
return theme.
|
|
26497
|
+
return theme.text.primary;
|
|
26419
26498
|
case "system":
|
|
26420
26499
|
return theme.text.muted;
|
|
26421
26500
|
case "tool":
|
|
@@ -28365,10 +28444,9 @@ var graphemes = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
|
28365
28444
|
function AgentNarrationBand({ lines: lines3 }) {
|
|
28366
28445
|
if (lines3.length === 0) return null;
|
|
28367
28446
|
return (
|
|
28368
|
-
// paddingLeft
|
|
28369
|
-
// past its
|
|
28370
|
-
|
|
28371
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { flexDirection: "column", paddingLeft: 3, paddingRight: 4, children: lines3.map((line) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: terminalDisplayText(oneLine5(line.text)) }) }, line.id)) })
|
|
28447
|
+
// paddingLeft 2 lands the text where the rail's `main` label starts,
|
|
28448
|
+
// past its bullet cell, so the two columns line up.
|
|
28449
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { flexDirection: "column", paddingLeft: 2, paddingRight: 4, children: lines3.map((line) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: terminalDisplayText(oneLine5(line.text)) }) }, line.id)) })
|
|
28372
28450
|
);
|
|
28373
28451
|
}
|
|
28374
28452
|
__name(AgentNarrationBand, "AgentNarrationBand");
|
|
@@ -28551,56 +28629,102 @@ function railPhaseTexts(titles) {
|
|
|
28551
28629
|
return [`${first}, ${second}${more(shown.length - 2)}`, `${first}${more(shown.length - 1)}`];
|
|
28552
28630
|
}
|
|
28553
28631
|
__name(railPhaseTexts, "railPhaseTexts");
|
|
28554
|
-
function
|
|
28555
|
-
const
|
|
28556
|
-
const
|
|
28557
|
-
|
|
28558
|
-
|
|
28559
|
-
|
|
28632
|
+
function railWorkflowElapsed(ms) {
|
|
28633
|
+
const total = Math.max(0, Math.floor(ms / 1e3));
|
|
28634
|
+
const two = /* @__PURE__ */ __name((value) => String(value).padStart(2, "0"), "two");
|
|
28635
|
+
if (total < 60) return `${total}s`;
|
|
28636
|
+
if (total < 3600) return `${Math.floor(total / 60)}m${two(total % 60)}s`;
|
|
28637
|
+
if (total < 86400) return `${Math.floor(total / 3600)}h${two(Math.floor(total / 60) % 60)}m`;
|
|
28638
|
+
return `${Math.floor(total / 86400)}d${two(Math.floor(total / 3600) % 24)}h`;
|
|
28639
|
+
}
|
|
28640
|
+
__name(railWorkflowElapsed, "railWorkflowElapsed");
|
|
28641
|
+
var WORKFLOW_TIERS = (() => {
|
|
28642
|
+
const all = ["count", "elapsed", "tokens", "warning"];
|
|
28560
28643
|
const [wide, ...narrower] = WORKFLOW_BAR_WIDTHS;
|
|
28561
28644
|
const few = WORKFLOW_BAR_WIDTHS[WORKFLOW_BAR_WIDTHS.length - 1];
|
|
28562
|
-
|
|
28563
|
-
|
|
28564
|
-
|
|
28565
|
-
|
|
28566
|
-
})),
|
|
28567
|
-
{ barWidth:
|
|
28568
|
-
|
|
28569
|
-
|
|
28570
|
-
|
|
28571
|
-
})),
|
|
28572
|
-
{ barWidth: few, text: join12([count2, elapsed2, warning]) },
|
|
28573
|
-
{ barWidth: few, text: join12([count2, elapsed2]) },
|
|
28574
|
-
{ barWidth: 0, text: join12([count2, elapsed2]) },
|
|
28575
|
-
{ barWidth: 0, text: count2 }
|
|
28645
|
+
return [
|
|
28646
|
+
{ barWidth: wide, fields: all, phases: 0 },
|
|
28647
|
+
{ barWidth: wide, fields: all, phases: 1 },
|
|
28648
|
+
{ barWidth: wide, fields: all },
|
|
28649
|
+
...narrower.map((barWidth) => ({ barWidth, fields: all })),
|
|
28650
|
+
{ barWidth: few, fields: ["count", "elapsed", "warning"] },
|
|
28651
|
+
{ barWidth: few, fields: ["count", "elapsed"] },
|
|
28652
|
+
{ barWidth: 0, fields: ["count", "elapsed"] },
|
|
28653
|
+
{ barWidth: 0, fields: ["count"] }
|
|
28576
28654
|
];
|
|
28577
|
-
|
|
28578
|
-
|
|
28579
|
-
|
|
28580
|
-
|
|
28581
|
-
|
|
28655
|
+
})();
|
|
28656
|
+
function workflowFacts(workflow, now) {
|
|
28657
|
+
const tokens = wroteRailText(workflow.outputTokens)?.replace(/(\d\.\d)0M/, "$1M");
|
|
28658
|
+
return {
|
|
28659
|
+
fields: {
|
|
28660
|
+
// The counter is the agents that finished over every agent; a failure turns
|
|
28661
|
+
// the row's dot red and is counted in the detail, not beside the counter.
|
|
28662
|
+
count: `${workflow.done}/${workflow.total}`,
|
|
28663
|
+
elapsed: railWorkflowElapsed(Math.max(0, (workflow.endedAt ?? now) - workflow.startedAt)),
|
|
28664
|
+
...tokens !== void 0 ? { tokens } : {},
|
|
28665
|
+
...workflow.large ? { warning: LARGE_WORKFLOW_WARNING } : {}
|
|
28666
|
+
},
|
|
28667
|
+
phases: railPhaseTexts(workflow.runningPhases)
|
|
28668
|
+
};
|
|
28669
|
+
}
|
|
28670
|
+
__name(workflowFacts, "workflowFacts");
|
|
28671
|
+
function tierTexts(facts, tier) {
|
|
28672
|
+
const widths = /* @__PURE__ */ new Map();
|
|
28673
|
+
for (const field of tier.fields)
|
|
28674
|
+
widths.set(field, Math.max(0, ...facts.map((row2) => stringWidth(row2.fields[field] ?? ""))));
|
|
28675
|
+
return facts.map((row2) => {
|
|
28676
|
+
let out = "";
|
|
28677
|
+
for (const field of tier.fields) {
|
|
28678
|
+
const width = widths.get(field) ?? 0;
|
|
28679
|
+
if (width === 0) continue;
|
|
28680
|
+
const cell = row2.fields[field] ?? "";
|
|
28681
|
+
const pad = " ".repeat(Math.max(0, width - stringWidth(cell)));
|
|
28682
|
+
out += out === "" ? `${cell}${pad}` : `${cell === "" ? " " : " \xB7 "}${cell}${pad}`;
|
|
28683
|
+
}
|
|
28684
|
+
out = out.trimEnd();
|
|
28685
|
+
const phases = tier.phases === void 0 ? void 0 : row2.phases[tier.phases];
|
|
28686
|
+
return phases !== void 0 ? `${out} \xB7 ${phases}` : out;
|
|
28687
|
+
});
|
|
28582
28688
|
}
|
|
28583
|
-
__name(
|
|
28584
|
-
|
|
28689
|
+
__name(tierTexts, "tierTexts");
|
|
28690
|
+
function sharedVariants(facts) {
|
|
28691
|
+
const seen = /* @__PURE__ */ new Set();
|
|
28692
|
+
const tiers = [];
|
|
28693
|
+
for (const tier of WORKFLOW_TIERS) {
|
|
28694
|
+
const texts = tierTexts(facts, tier);
|
|
28695
|
+
const key = `${tier.barWidth}\0${texts.join("\0")}`;
|
|
28696
|
+
if (seen.has(key)) continue;
|
|
28697
|
+
seen.add(key);
|
|
28698
|
+
tiers.push(texts.map((text) => ({ barWidth: tier.barWidth, text })));
|
|
28699
|
+
}
|
|
28700
|
+
return tiers;
|
|
28701
|
+
}
|
|
28702
|
+
__name(sharedVariants, "sharedVariants");
|
|
28703
|
+
var RAIL_PREFIX_CELLS = 2;
|
|
28585
28704
|
var WORKFLOW_ROW_GAP = 2;
|
|
28586
|
-
function
|
|
28587
|
-
|
|
28705
|
+
function layoutWorkflowRows(workflows, now, columns, nameWidth) {
|
|
28706
|
+
if (workflows.length === 0) return [];
|
|
28707
|
+
const tiers = sharedVariants(workflows.map((workflow) => workflowFacts(workflow, now)));
|
|
28588
28708
|
const room = Math.max(1, columns - RAIL_PREFIX_CELLS - 2);
|
|
28589
|
-
const widthOf3 = /* @__PURE__ */ __name((
|
|
28590
|
-
|
|
28591
|
-
|
|
28592
|
-
|
|
28709
|
+
const widthOf3 = /* @__PURE__ */ __name((tier) => {
|
|
28710
|
+
const text = Math.max(0, ...tier.map((variant) => stringWidth(variant.text)));
|
|
28711
|
+
return WORKFLOW_ROW_GAP + (tier[0]?.barWidth ?? 0) + (text > 0 ? 2 + text : 0);
|
|
28712
|
+
}, "widthOf");
|
|
28713
|
+
const barOf = /* @__PURE__ */ __name((tier) => tier[0]?.barWidth ?? 0, "barOf");
|
|
28714
|
+
const pick = /* @__PURE__ */ __name((tier, width) => tier.map((variant) => ({ variant, nameWidth: width })), "pick");
|
|
28715
|
+
const barred = tiers.filter((tier) => barOf(tier) > 0);
|
|
28716
|
+
const whole = barred.find((tier) => room - widthOf3(tier) >= nameWidth);
|
|
28717
|
+
if (whole) return pick(whole, nameWidth);
|
|
28593
28718
|
const wanted = Math.min(8, nameWidth);
|
|
28594
|
-
const cutAt = /* @__PURE__ */ __name((
|
|
28719
|
+
const cutAt = /* @__PURE__ */ __name((tier) => Math.min(nameWidth, room - widthOf3(tier)), "cutAt");
|
|
28595
28720
|
const shortest = barred[barred.length - 1];
|
|
28596
|
-
if (shortest && cutAt(shortest) >= wanted)
|
|
28597
|
-
|
|
28598
|
-
|
|
28599
|
-
|
|
28600
|
-
|
|
28601
|
-
|
|
28602
|
-
|
|
28603
|
-
__name(layoutWorkflowRow, "layoutWorkflowRow");
|
|
28721
|
+
if (shortest && cutAt(shortest) >= wanted) return pick(shortest, cutAt(shortest));
|
|
28722
|
+
const bare = tiers.find((tier) => barOf(tier) === 0 && cutAt(tier) >= wanted);
|
|
28723
|
+
if (bare) return pick(bare, cutAt(bare));
|
|
28724
|
+
const last = tiers[tiers.length - 1];
|
|
28725
|
+
return pick(last, Math.max(1, cutAt(last)));
|
|
28726
|
+
}
|
|
28727
|
+
__name(layoutWorkflowRows, "layoutWorkflowRows");
|
|
28604
28728
|
function railDescription(agent) {
|
|
28605
28729
|
return agent.description || agent.agentId;
|
|
28606
28730
|
}
|
|
@@ -28619,7 +28743,6 @@ function railStatusBlock(agent, now, narrow) {
|
|
|
28619
28743
|
return label ? `${label} \xB7 ${status}` : status;
|
|
28620
28744
|
}
|
|
28621
28745
|
__name(railStatusBlock, "railStatusBlock");
|
|
28622
|
-
var RAIL_POINTER_CELLS = 2;
|
|
28623
28746
|
function AgentTaskPanel({
|
|
28624
28747
|
agents,
|
|
28625
28748
|
workflows = [],
|
|
@@ -28659,24 +28782,24 @@ function AgentTaskPanel({
|
|
|
28659
28782
|
return stringWidth(railStatusBlock(agent, now, narrow)) + (queued ? 3 + stringWidth(queued) : 0);
|
|
28660
28783
|
})
|
|
28661
28784
|
);
|
|
28785
|
+
const workflowLayouts = compact2 ? [] : layoutWorkflowRows(workflows, now, terminalColumns, nameWidth);
|
|
28662
28786
|
const mainRight = compact2 ? [
|
|
28663
28787
|
...agents.length > 0 || workflows.length === 0 ? [`${agents.length} agent${agents.length === 1 ? "" : "s"}`] : [],
|
|
28664
28788
|
...workflows.length > 0 ? [`${workflows.length} workflow${workflows.length === 1 ? "" : "s"}`] : []
|
|
28665
28789
|
].join(" \xB7 ") : above > 0 ? `\u2191 ${above} more` : "";
|
|
28666
28790
|
return (
|
|
28667
|
-
//
|
|
28668
|
-
//
|
|
28669
|
-
//
|
|
28670
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1,
|
|
28791
|
+
// marginRight -1 reaches into the app's cell of right margin; the rows start
|
|
28792
|
+
// in the first column, under the mode line's first glyph, and paddingRight 2
|
|
28793
|
+
// keeps them off the right edge.
|
|
28794
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, marginRight: -1, paddingRight: 2, children: [
|
|
28671
28795
|
hasMain ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { children: [
|
|
28672
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: RAIL_POINTER_CELLS, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { bold: true, color: theme.text.primary, children: focused && selectedIndex === 0 ? "\u276F" : " " }) }),
|
|
28673
28796
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
28674
28797
|
Text,
|
|
28675
28798
|
{
|
|
28676
|
-
bold: mainViewed,
|
|
28799
|
+
bold: mainViewed || focused && selectedIndex === 0,
|
|
28677
28800
|
color: theme.text.primary,
|
|
28678
28801
|
dimColor: !mainViewed && !(focused && selectedIndex === 0),
|
|
28679
|
-
children: mainViewed ? "\u25CF" : "\u25EF"
|
|
28802
|
+
children: focused && selectedIndex === 0 ? "\u276F" : mainViewed ? "\u25CF" : "\u25EF"
|
|
28680
28803
|
}
|
|
28681
28804
|
) }),
|
|
28682
28805
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { flexGrow: 1, flexShrink: 1, minWidth: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
@@ -28698,14 +28821,13 @@ function AgentTaskPanel({
|
|
|
28698
28821
|
const status = railStatusBlock(agent, now, narrow);
|
|
28699
28822
|
const bright = viewed || selected;
|
|
28700
28823
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { children: [
|
|
28701
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: RAIL_POINTER_CELLS, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { bold: true, color: theme.text.primary, children: selected ? "\u276F" : " " }) }),
|
|
28702
28824
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
28703
28825
|
Text,
|
|
28704
28826
|
{
|
|
28705
|
-
bold: viewed,
|
|
28827
|
+
bold: viewed || selected,
|
|
28706
28828
|
color: railBulletColor(agent.status) ?? theme.text.primary,
|
|
28707
28829
|
dimColor: !bright && railBulletColor(agent.status) === void 0,
|
|
28708
|
-
children: viewed ? "\u25CF" : "\u25EF"
|
|
28830
|
+
children: selected ? "\u276F" : viewed ? "\u25CF" : "\u25EF"
|
|
28709
28831
|
}
|
|
28710
28832
|
) }),
|
|
28711
28833
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: nameWidth, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
@@ -28737,7 +28859,7 @@ function AgentTaskPanel({
|
|
|
28737
28859
|
] }) })
|
|
28738
28860
|
] }, agent.viewId);
|
|
28739
28861
|
}),
|
|
28740
|
-
!compact2 && below > 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, {
|
|
28862
|
+
!compact2 && below > 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Text, { color: theme.text.muted, children: [
|
|
28741
28863
|
"\u2193 ",
|
|
28742
28864
|
below,
|
|
28743
28865
|
" more"
|
|
@@ -28745,21 +28867,16 @@ function AgentTaskPanel({
|
|
|
28745
28867
|
!compact2 && below === 0 && agents.length > AGENT_RAIL_WINDOW ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { children: " " }) : null,
|
|
28746
28868
|
compact2 ? null : workflows.map((workflow, offset) => {
|
|
28747
28869
|
const selected = focused && selectedIndex === agents.length + lead + offset;
|
|
28748
|
-
const { variant, nameWidth: workflowNameWidth } =
|
|
28749
|
-
workflow,
|
|
28750
|
-
now,
|
|
28751
|
-
terminalColumns,
|
|
28752
|
-
nameWidth
|
|
28753
|
-
);
|
|
28870
|
+
const { variant, nameWidth: workflowNameWidth } = workflowLayouts[offset];
|
|
28754
28871
|
const [filled, empty] = railProgressBar(workflow.done, workflow.total, variant.barWidth);
|
|
28755
28872
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { children: [
|
|
28756
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: RAIL_POINTER_CELLS, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { bold: true, color: theme.text.primary, children: selected ? "\u276F" : " " }) }),
|
|
28757
28873
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
28758
28874
|
Text,
|
|
28759
28875
|
{
|
|
28876
|
+
bold: selected,
|
|
28760
28877
|
color: railWorkflowBulletColor(workflow) ?? theme.text.primary,
|
|
28761
28878
|
dimColor: !selected && railWorkflowBulletColor(workflow) === void 0,
|
|
28762
|
-
children: "\u25EF"
|
|
28879
|
+
children: selected ? "\u276F" : "\u25EF"
|
|
28763
28880
|
}
|
|
28764
28881
|
) }),
|
|
28765
28882
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { width: workflowNameWidth, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
@@ -28787,6 +28904,16 @@ function railShowsMain(agentCount, viewingId, compact2 = false) {
|
|
|
28787
28904
|
return compact2 || agentCount > 0 || viewingId !== void 0 && viewingId !== null;
|
|
28788
28905
|
}
|
|
28789
28906
|
__name(railShowsMain, "railShowsMain");
|
|
28907
|
+
function railStep(input, key) {
|
|
28908
|
+
if (key.upArrow) return -1;
|
|
28909
|
+
if (key.downArrow) return 1;
|
|
28910
|
+
if (key.ctrl === true && !key.meta) {
|
|
28911
|
+
if (input === "p") return -1;
|
|
28912
|
+
if (input === "n") return 1;
|
|
28913
|
+
}
|
|
28914
|
+
return void 0;
|
|
28915
|
+
}
|
|
28916
|
+
__name(railStep, "railStep");
|
|
28790
28917
|
function railTypedText(input, key) {
|
|
28791
28918
|
if (input.length === 0 || key.ctrl || key.meta) return void 0;
|
|
28792
28919
|
if (key.escape || key.return || key.tab || key.backspace || key.delete || key.upArrow || key.downArrow || key.leftArrow || key.rightArrow || key.pageUp || key.pageDown || key.home || key.end)
|
|
@@ -29139,7 +29266,7 @@ function WorkflowDetail({
|
|
|
29139
29266
|
Math.min(PHASE_DETAIL_LINE_BUDGET, pageSize2 - phaseWindow.items.length - 1)
|
|
29140
29267
|
) : [];
|
|
29141
29268
|
if (!sideBySide) {
|
|
29142
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1,
|
|
29269
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, marginRight: -1, width: columns, children: [
|
|
29143
29270
|
header,
|
|
29144
29271
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { color: theme.text.primary, bold: true, wrap: "truncate-end", children: level === 1 || !phase ? "Phases" : titleWithFailed(`${agentsTitle}${failedTail}`) }) }),
|
|
29145
29272
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", height: pageSize2, flexShrink: 0, paddingX: 1, children: [
|
|
@@ -29211,7 +29338,7 @@ function WorkflowDetail({
|
|
|
29211
29338
|
const leftTitle = " Phases ";
|
|
29212
29339
|
const rightTitle = ` ${truncateChoiceText(`${agentsTitle}${failedTail}`, Math.max(1, rightInner - 4))} `;
|
|
29213
29340
|
const rows = Array.from({ length: pageSize2 }, (_, row2) => row2);
|
|
29214
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1,
|
|
29341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, marginRight: -1, width: columns, children: [
|
|
29215
29342
|
header,
|
|
29216
29343
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Text, { wrap: "truncate-end", children: [
|
|
29217
29344
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { color: border, children: "\u256D" }),
|
|
@@ -29868,11 +29995,14 @@ function BackgroundAgentRows(props) {
|
|
|
29868
29995
|
})
|
|
29869
29996
|
] }, index)
|
|
29870
29997
|
)),
|
|
29871
|
-
waitLine !== void 0 ?
|
|
29872
|
-
|
|
29873
|
-
|
|
29874
|
-
|
|
29875
|
-
|
|
29998
|
+
waitLine !== void 0 ? (
|
|
29999
|
+
// The same slot as the line that closes a reply: one blank row above, the
|
|
30000
|
+
// mark alone in a two-cell column, the words from the third cell on.
|
|
30001
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Box_default, { marginTop: 1, children: [
|
|
30002
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { color: theme.text.muted, bold: true, children: glyph }) }),
|
|
30003
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Box_default, { flexGrow: 1, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { color: theme.text.muted, children: waitLine }) })
|
|
30004
|
+
] })
|
|
30005
|
+
) : null
|
|
29876
30006
|
] });
|
|
29877
30007
|
}
|
|
29878
30008
|
__name(BackgroundAgentRows, "BackgroundAgentRows");
|
|
@@ -32537,6 +32667,7 @@ function Composer({
|
|
|
32537
32667
|
draftToRestore = null,
|
|
32538
32668
|
onDraftRestored,
|
|
32539
32669
|
onDraftPresenceChange,
|
|
32670
|
+
onHistorySearchChange,
|
|
32540
32671
|
onOpenAgentPanel,
|
|
32541
32672
|
onOpenAgents,
|
|
32542
32673
|
onOpenWorkspaces,
|
|
@@ -32570,6 +32701,12 @@ function Composer({
|
|
|
32570
32701
|
const killBufferRef = (0, import_react42.useRef)("");
|
|
32571
32702
|
const [selected, setSelected] = (0, import_react42.useState)(0);
|
|
32572
32703
|
const selectedRef = (0, import_react42.useRef)(0);
|
|
32704
|
+
const [menuClosedFor, setMenuClosedForState] = (0, import_react42.useState)(null);
|
|
32705
|
+
const menuClosedForRef = (0, import_react42.useRef)(null);
|
|
32706
|
+
const setMenuClosedFor = (0, import_react42.useCallback)((next) => {
|
|
32707
|
+
menuClosedForRef.current = next;
|
|
32708
|
+
setMenuClosedForState(next);
|
|
32709
|
+
}, []);
|
|
32573
32710
|
const pasteStoreRef = (0, import_react42.useRef)(/* @__PURE__ */ new Map());
|
|
32574
32711
|
const nextPasteIdRef = (0, import_react42.useRef)(1);
|
|
32575
32712
|
const [queuedHintEpisode, setQueuedHintEpisode] = (0, import_react42.useState)(() => ({
|
|
@@ -32653,16 +32790,26 @@ function Composer({
|
|
|
32653
32790
|
);
|
|
32654
32791
|
if (kept.length !== attachmentsRef.current.length) replaceAttachments(kept);
|
|
32655
32792
|
}, [idFor, replaceAttachments, value]);
|
|
32793
|
+
(0, import_react42.useEffect)(() => {
|
|
32794
|
+
if (menuClosedForRef.current !== null && menuClosedForRef.current !== value)
|
|
32795
|
+
setMenuClosedFor(null);
|
|
32796
|
+
}, [setMenuClosedFor, value]);
|
|
32797
|
+
const searching = historySearch !== null && !escapeInterrupts;
|
|
32798
|
+
(0, import_react42.useEffect)(() => {
|
|
32799
|
+
onHistorySearchChange?.(searching);
|
|
32800
|
+
return () => onHistorySearchChange?.(false);
|
|
32801
|
+
}, [onHistorySearchChange, searching]);
|
|
32656
32802
|
(0, import_react42.useEffect)(() => {
|
|
32657
32803
|
const hasDraft = value.trim().length > 0 || attachments.length > 0;
|
|
32658
32804
|
if (hasDraft === draftPresenceRef.current) return;
|
|
32659
32805
|
draftPresenceRef.current = hasDraft;
|
|
32660
32806
|
onDraftPresenceChange?.(hasDraft);
|
|
32661
32807
|
}, [attachments.length, onDraftPresenceChange, value]);
|
|
32662
|
-
const
|
|
32808
|
+
const menuClosed = menuClosedFor === value;
|
|
32809
|
+
const commandSuggestions = plainText2 || menuClosed ? [] : matchSlashCommands(value, userCommands, builtins);
|
|
32663
32810
|
const argumentHint = plainText2 ? void 0 : argumentHintFor(value, userCommands);
|
|
32664
32811
|
const activeMention = activeFileMention(value, cursor);
|
|
32665
|
-
const fileSuggestions = activeMention ? matchMentionSuggestions(activeMention.query, mentionCandidates, mentionExtras) : [];
|
|
32812
|
+
const fileSuggestions = activeMention && !menuClosed ? matchMentionSuggestions(activeMention.query, mentionCandidates, mentionExtras) : [];
|
|
32666
32813
|
const suggestionKind = commandSuggestions.length > 0 ? "command" : fileSuggestions.length > 0 ? "file" : null;
|
|
32667
32814
|
const suggestionCount = suggestionKind === "command" ? commandSuggestions.length : fileSuggestions.length;
|
|
32668
32815
|
const suggestionWindow = suggestionWindowSize(terminal.rows);
|
|
@@ -33095,8 +33242,9 @@ function Composer({
|
|
|
33095
33242
|
return;
|
|
33096
33243
|
}
|
|
33097
33244
|
}
|
|
33098
|
-
const
|
|
33099
|
-
const
|
|
33245
|
+
const liveMenuClosed = menuClosedForRef.current === valueRef.current;
|
|
33246
|
+
const liveCommandSuggestions = plainText2 || liveMenuClosed ? [] : matchSlashCommands(valueRef.current, userCommands, builtins);
|
|
33247
|
+
const liveMention = liveMenuClosed ? null : activeFileMention(valueRef.current, cursorRef.current);
|
|
33100
33248
|
const liveFileSuggestions = liveMention ? matchMentionSuggestions(liveMention.query, mentionCandidates, mentionExtras) : [];
|
|
33101
33249
|
const liveSuggestionKind = liveCommandSuggestions.length > 0 ? "command" : liveFileSuggestions.length > 0 ? "file" : null;
|
|
33102
33250
|
const liveSuggestionCount = liveSuggestionKind === "command" ? liveCommandSuggestions.length : liveFileSuggestions.length;
|
|
@@ -33295,23 +33443,30 @@ function Composer({
|
|
|
33295
33443
|
}
|
|
33296
33444
|
if (isAction("chat:queue", input, key)) {
|
|
33297
33445
|
if (plainText2) return;
|
|
33446
|
+
if (liveMenuClosed) {
|
|
33447
|
+
setMenuClosedFor(null);
|
|
33448
|
+
return;
|
|
33449
|
+
}
|
|
33298
33450
|
if (acceptSuggestion()) return;
|
|
33299
33451
|
submit("queue");
|
|
33300
33452
|
return;
|
|
33301
33453
|
}
|
|
33454
|
+
if (historySearchRef.current && !escapeInterrupts && isAction("app:interrupt", input, key)) {
|
|
33455
|
+
const before = historySearchRef.current.draft;
|
|
33456
|
+
setHistorySearch(null);
|
|
33457
|
+
setBuffer(before.value, before.cursor, "typed", before.spans);
|
|
33458
|
+
return;
|
|
33459
|
+
}
|
|
33302
33460
|
if (isAction("chat:cancel", input, key)) {
|
|
33303
33461
|
if (escapeInterrupts) return;
|
|
33304
|
-
|
|
33305
|
-
if (activeSearch) {
|
|
33306
|
-
setBuffer(
|
|
33307
|
-
activeSearch.draft.value,
|
|
33308
|
-
activeSearch.draft.cursor,
|
|
33309
|
-
"typed",
|
|
33310
|
-
activeSearch.draft.spans
|
|
33311
|
-
);
|
|
33462
|
+
if (historySearchRef.current) {
|
|
33312
33463
|
setHistorySearch(null);
|
|
33313
33464
|
return;
|
|
33314
33465
|
}
|
|
33466
|
+
if (hasLiveSuggestions) {
|
|
33467
|
+
setMenuClosedFor(valueRef.current);
|
|
33468
|
+
return;
|
|
33469
|
+
}
|
|
33315
33470
|
const empty = valueRef.current.length === 0 && attachmentsRef.current.length === 0;
|
|
33316
33471
|
if (empty && onEditPrevious) {
|
|
33317
33472
|
if (editPreviousTimerRef.current) {
|
|
@@ -33496,7 +33651,7 @@ function Composer({
|
|
|
33496
33651
|
}
|
|
33497
33652
|
verticalColumnRef.current = null;
|
|
33498
33653
|
if (historyIndexRef.current < 0) {
|
|
33499
|
-
if (
|
|
33654
|
+
if (attachmentsRef.current.length === 0) {
|
|
33500
33655
|
onOpenAgentPanel?.();
|
|
33501
33656
|
}
|
|
33502
33657
|
return;
|
|
@@ -33672,7 +33827,7 @@ function Composer({
|
|
|
33672
33827
|
" ",
|
|
33673
33828
|
historySearch.position < 0 ? `draft \xB7 ${historySearch.matches.length} match${historySearch.matches.length === 1 ? "" : "es"}` : `${historySearch.position + 1}/${historySearch.matches.length}`,
|
|
33674
33829
|
" ",
|
|
33675
|
-
"\xB7 Ctrl+R older \xB7 Ctrl+S newer \xB7 Esc restore"
|
|
33830
|
+
"\xB7 Ctrl+R older \xB7 Ctrl+S newer \xB7 Esc keep \xB7 Ctrl+C restore"
|
|
33676
33831
|
] }) }) : null,
|
|
33677
33832
|
suggestionKind === "command" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { flexDirection: "column", paddingTop: 1, width: "100%", children: [
|
|
33678
33833
|
visibleCommandSuggestions.map((cmd, i) => {
|
|
@@ -33757,6 +33912,7 @@ function ComposerFrame({
|
|
|
33757
33912
|
columns,
|
|
33758
33913
|
activation = 0,
|
|
33759
33914
|
animate = true,
|
|
33915
|
+
above,
|
|
33760
33916
|
children
|
|
33761
33917
|
}) {
|
|
33762
33918
|
const terminal = use_window_size_default();
|
|
@@ -33786,6 +33942,7 @@ function ComposerFrame({
|
|
|
33786
33942
|
}, [hidden, igniting, motion, time]);
|
|
33787
33943
|
const glowTime = igniting && motion && !hidden && time < HYPERMODE_GLOW_MS ? time : void 0;
|
|
33788
33944
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { flexDirection: "column", width: frameColumns, marginTop: hidden ? 0 : 1, children: [
|
|
33945
|
+
hidden ? null : above,
|
|
33789
33946
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { display: hidden ? "none" : "flex", height: 1, flexShrink: 0, children: [
|
|
33790
33947
|
glowTime !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(GlowRule, { columns: ruleColumns, time: glowTime }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Rule, {}),
|
|
33791
33948
|
showMode ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { flexShrink: 0, children: [
|
|
@@ -37619,11 +37776,14 @@ function prColor(review) {
|
|
|
37619
37776
|
}
|
|
37620
37777
|
}
|
|
37621
37778
|
__name(prColor, "prColor");
|
|
37622
|
-
function
|
|
37623
|
-
|
|
37624
|
-
return total > 0 ? `${total} bg` : null;
|
|
37779
|
+
function shellPill(count2) {
|
|
37780
|
+
return count2 > 0 ? `${count2} ${count2 === 1 ? "shell" : "shells"}` : null;
|
|
37625
37781
|
}
|
|
37626
|
-
__name(
|
|
37782
|
+
__name(shellPill, "shellPill");
|
|
37783
|
+
function monitorPill(count2) {
|
|
37784
|
+
return count2 > 0 ? `${count2} ${count2 === 1 ? "monitor" : "monitors"}` : null;
|
|
37785
|
+
}
|
|
37786
|
+
__name(monitorPill, "monitorPill");
|
|
37627
37787
|
function StatusBar({
|
|
37628
37788
|
provider,
|
|
37629
37789
|
model,
|
|
@@ -37649,8 +37809,7 @@ function StatusBar({
|
|
|
37649
37809
|
shellsSelected = false,
|
|
37650
37810
|
tasksOpen,
|
|
37651
37811
|
railHint: railHint2,
|
|
37652
|
-
notice
|
|
37653
|
-
ambient
|
|
37812
|
+
notice
|
|
37654
37813
|
}) {
|
|
37655
37814
|
const terminal = use_window_size_default();
|
|
37656
37815
|
const activeMode = permissionMode !== void 0 && permissionMode !== "prompt" ? modeGlyph(permissionMode) : null;
|
|
@@ -37658,26 +37817,25 @@ function StatusBar({
|
|
|
37658
37817
|
const hasPr = pr !== void 0 && pr.kind !== "none";
|
|
37659
37818
|
const nothingElse = !activeMode && shellCount + monitorCount === 0 && !hasPr && agentCount === 0 && workflowCount === 0 && !canManage && !shellsSelected;
|
|
37660
37819
|
const layout = fitStatusLine({
|
|
37661
|
-
//
|
|
37662
|
-
// stdout width is the whole terminal, so reserve
|
|
37663
|
-
// than letting its final
|
|
37664
|
-
//
|
|
37665
|
-
|
|
37666
|
-
columns: Math.max(0, terminal.columns - 3),
|
|
37820
|
+
// The line starts in the first column and App keeps one cell empty at the
|
|
37821
|
+
// right edge. Ink's stdout width is the whole terminal, so reserve that cell
|
|
37822
|
+
// here rather than letting its final character be clipped after fitting
|
|
37823
|
+
// succeeds.
|
|
37824
|
+
columns: Math.max(0, terminal.columns - 1),
|
|
37667
37825
|
model,
|
|
37668
37826
|
provider,
|
|
37669
37827
|
effort: effort ?? null,
|
|
37670
37828
|
fast,
|
|
37671
37829
|
hint,
|
|
37672
37830
|
notice: notice?.text ?? null,
|
|
37673
|
-
ambient: ambient?.text ?? null,
|
|
37674
37831
|
goal,
|
|
37675
37832
|
modeLabel: activeMode ? `${activeMode.icon} ${activeMode.label} on` : composerMounted && !dialogOpen && restingHint && !working && nothingElse ? sandboxShell ? QUIET_SANDBOX_HINT : QUIET_MODE_HINT : "",
|
|
37676
37833
|
// The cycle key is dropped as soon as a background task is on
|
|
37677
37834
|
// the row: the pill is what the row is about then.
|
|
37678
37835
|
cycleSuffix: activeMode && canCycleMode && composerMounted && !dialogOpen && shellCount + monitorCount === 0 ? CYCLE_SUFFIX : null,
|
|
37679
37836
|
interrupt: working && !hint && !dialogOpen ? INTERRUPT_HINT : null,
|
|
37680
|
-
shells:
|
|
37837
|
+
shells: shellPill(shellCount),
|
|
37838
|
+
monitors: monitorPill(monitorCount),
|
|
37681
37839
|
agents: runningText(agentCount, workflowCount),
|
|
37682
37840
|
tasks: tasksOpen === void 0 ? null : tasksOpen ? HIDE_TASKS_HINT : SHOW_TASKS_HINT,
|
|
37683
37841
|
manage: shellsSelected && shellCount + monitorCount > 0 ? VIEW_TASKS_HINT : canManage ? MANAGE_HINT : null,
|
|
@@ -37709,6 +37867,11 @@ function StatusBar({
|
|
|
37709
37867
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.accent.shells, inverse: shellsSelected, children: layout.shells }, "shells")
|
|
37710
37868
|
);
|
|
37711
37869
|
}
|
|
37870
|
+
if (layout.monitors) {
|
|
37871
|
+
parts.push(
|
|
37872
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.accent.shells, inverse: shellsSelected, children: layout.monitors }, "monitors")
|
|
37873
|
+
);
|
|
37874
|
+
}
|
|
37712
37875
|
if (layout.effort) {
|
|
37713
37876
|
parts.push(
|
|
37714
37877
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.text.secondary, children: layout.effort }, "effort")
|
|
@@ -37740,9 +37903,9 @@ function StatusBar({
|
|
|
37740
37903
|
);
|
|
37741
37904
|
}
|
|
37742
37905
|
if (railHint2) {
|
|
37743
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Box_default, {
|
|
37906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.text.muted, wrap: "truncate-end", children: railHint2 }) });
|
|
37744
37907
|
}
|
|
37745
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Box_default, {
|
|
37908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Text, { wrap: "truncate-end", children: [
|
|
37746
37909
|
parts.flatMap(
|
|
37747
37910
|
(part, index) => index === 0 ? [part] : [/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { children: sep2 }, `sep-${part.key}`), part]
|
|
37748
37911
|
),
|
|
@@ -37750,8 +37913,8 @@ function StatusBar({
|
|
|
37750
37913
|
layout.right.kind === "text" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
37751
37914
|
Text,
|
|
37752
37915
|
{
|
|
37753
|
-
color: layout.right.source === "goal" ? theme.accent.system : layout.right.source === "notice" ? toneColor(notice?.tone) :
|
|
37754
|
-
children: layout.right.
|
|
37916
|
+
color: layout.right.source === "goal" ? theme.accent.system : layout.right.source === "notice" ? toneColor(notice?.tone) : hintDim ? theme.text.muted : colorForState(state),
|
|
37917
|
+
children: layout.right.text
|
|
37755
37918
|
}
|
|
37756
37919
|
) : layout.right.model ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { color: theme.text.primary, bold: true, children: layout.right.model }) : null
|
|
37757
37920
|
] }) });
|
|
@@ -37770,19 +37933,6 @@ function toneColor(tone) {
|
|
|
37770
37933
|
return tone === "error" ? theme.status.error : tone === "warn" ? theme.status.warn : tone === "ok" ? theme.status.ok : theme.text.muted;
|
|
37771
37934
|
}
|
|
37772
37935
|
__name(toneColor, "toneColor");
|
|
37773
|
-
function StrongText({
|
|
37774
|
-
text,
|
|
37775
|
-
strong
|
|
37776
|
-
}) {
|
|
37777
|
-
const at = strong ? text.indexOf(strong) : -1;
|
|
37778
|
-
if (!strong || at < 0) return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: text });
|
|
37779
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
|
|
37780
|
-
text.slice(0, at),
|
|
37781
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { bold: true, children: strong }),
|
|
37782
|
-
text.slice(at + strong.length)
|
|
37783
|
-
] });
|
|
37784
|
-
}
|
|
37785
|
-
__name(StrongText, "StrongText");
|
|
37786
37936
|
function colorForState(state) {
|
|
37787
37937
|
switch (state) {
|
|
37788
37938
|
case "idle":
|
|
@@ -37797,8 +37947,8 @@ function colorForState(state) {
|
|
|
37797
37947
|
__name(colorForState, "colorForState");
|
|
37798
37948
|
function fitStatusLine(input) {
|
|
37799
37949
|
const columns = Math.max(0, input.columns);
|
|
37800
|
-
const source = input.hint ? "hint" : input.notice ? "notice" : input.goal ? "goal" :
|
|
37801
|
-
let rightText = input.hint || input.notice || input.goal ||
|
|
37950
|
+
const source = input.hint ? "hint" : input.notice ? "notice" : input.goal ? "goal" : null;
|
|
37951
|
+
let rightText = input.hint || input.notice || input.goal || null;
|
|
37802
37952
|
if (rightText !== null) rightText = fitHintText(rightText, columns);
|
|
37803
37953
|
let modelLabel = input.model ?? input.provider;
|
|
37804
37954
|
const right2 = /* @__PURE__ */ __name(() => rightText !== null ? rightText : modelLabel ?? "", "right");
|
|
@@ -37808,6 +37958,7 @@ function fitStatusLine(input) {
|
|
|
37808
37958
|
let cycleSuffix = input.cycleSuffix ?? null;
|
|
37809
37959
|
let interrupt = input.interrupt ?? null;
|
|
37810
37960
|
let shells = input.shells ?? null;
|
|
37961
|
+
let monitors = input.monitors ?? null;
|
|
37811
37962
|
let agents = input.agents ?? null;
|
|
37812
37963
|
let manage = input.manage ?? null;
|
|
37813
37964
|
let tasks = input.tasks ?? null;
|
|
@@ -37818,6 +37969,7 @@ function fitStatusLine(input) {
|
|
|
37818
37969
|
mode ? `${mode}${cycleSuffix ?? ""}` : null,
|
|
37819
37970
|
pr ? `${pr.prefix ? `${pr.prefix} ` : ""}${pr.label}` : null,
|
|
37820
37971
|
shells,
|
|
37972
|
+
monitors,
|
|
37821
37973
|
effort,
|
|
37822
37974
|
fast,
|
|
37823
37975
|
interrupt,
|
|
@@ -37840,7 +37992,10 @@ function fitStatusLine(input) {
|
|
|
37840
37992
|
if (over()) manage = null;
|
|
37841
37993
|
if (over()) fast = null;
|
|
37842
37994
|
if (over()) effort = null;
|
|
37843
|
-
if (over())
|
|
37995
|
+
if (over()) {
|
|
37996
|
+
shells = null;
|
|
37997
|
+
monitors = null;
|
|
37998
|
+
}
|
|
37844
37999
|
if (over()) pr = null;
|
|
37845
38000
|
if (over() && (mode === QUIET_MODE_HINT || mode === QUIET_SANDBOX_HINT)) mode = null;
|
|
37846
38001
|
if (over() && mode) {
|
|
@@ -37860,6 +38015,7 @@ function fitStatusLine(input) {
|
|
|
37860
38015
|
cycleSuffix: mode ? cycleSuffix : null,
|
|
37861
38016
|
interrupt,
|
|
37862
38017
|
shells,
|
|
38018
|
+
monitors,
|
|
37863
38019
|
pr,
|
|
37864
38020
|
effort,
|
|
37865
38021
|
fast,
|
|
@@ -38232,8 +38388,9 @@ function transcriptScrollRows(messages, pending, pendingAt, columns) {
|
|
|
38232
38388
|
const ordered = pending ? [...messages.slice(0, at), pending, ...messages.slice(at)] : messages;
|
|
38233
38389
|
const width = scrollTextWidth(columns);
|
|
38234
38390
|
const rows = [];
|
|
38391
|
+
const later = laterReplyBlocks(ordered);
|
|
38235
38392
|
ordered.forEach((message, index) => {
|
|
38236
|
-
const block = messageScrollRows(message, index > 0, width);
|
|
38393
|
+
const block = messageScrollRows(message, index > 0, width, { later: later[index] ?? false });
|
|
38237
38394
|
if (rows.length > 0 && block.gap) rows.push(block.gap);
|
|
38238
38395
|
rows.push(...block.rows);
|
|
38239
38396
|
});
|
|
@@ -38265,7 +38422,8 @@ function saying(meta, hint) {
|
|
|
38265
38422
|
__name(saying, "saying");
|
|
38266
38423
|
function messageScrollRows(asked, hasPrev, width, options = {}) {
|
|
38267
38424
|
const message = withLiveHint(asked);
|
|
38268
|
-
const
|
|
38425
|
+
const replyMark = message.role === "assistant" && message.glyph === void 0;
|
|
38426
|
+
const glyph = replyMark && options.later === true ? " " : message.glyph ?? glyphForRole(message.role);
|
|
38269
38427
|
const glyphColor = paint(message.glyphColor) ?? (glyph === "\u23BF" ? theme.text.muted : glyphColorForRole(message.role));
|
|
38270
38428
|
const color = paint(message.contentColor) ?? contentColorForRole(message.role);
|
|
38271
38429
|
const joined = scrollBodyText(message, options.hint, width);
|
|
@@ -38296,6 +38454,7 @@ function messageScrollRows(asked, hasPrev, width, options = {}) {
|
|
|
38296
38454
|
glyphColor,
|
|
38297
38455
|
text,
|
|
38298
38456
|
color,
|
|
38457
|
+
...replyMark && i === 0 ? { plainMark: true } : {},
|
|
38299
38458
|
...tint !== void 0 ? { tint } : {}
|
|
38300
38459
|
});
|
|
38301
38460
|
});
|
|
@@ -38453,7 +38612,7 @@ function TranscriptScrollView({
|
|
|
38453
38612
|
const hint = followHint(columns, news);
|
|
38454
38613
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
38455
38614
|
shown.map((row2, i) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Box_default, { flexDirection: "row", children: [
|
|
38456
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: row2.glyphColor, bold: true, children: row2.glyph }) }),
|
|
38615
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Box_default, { width: 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: row2.glyphColor, bold: row2.plainMark !== true, children: row2.glyph }) }),
|
|
38457
38616
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: row2.color, wrap: "truncate-end", children: row2.text.length > 0 ? row2.text : " " })
|
|
38458
38617
|
] }, `${view.top + i}`)),
|
|
38459
38618
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Box_default, { justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: view.unseen ? theme.text.secondary : theme.text.muted, wrap: "truncate-end", children: hint ?? " " }) })
|
|
@@ -39824,7 +39983,7 @@ async function fastModeBlocker(providerId, model, now = Date.now(), otherHost =
|
|
|
39824
39983
|
return `Fast mode is offered on the vendor's own endpoint only, and requests here go to ${otherHost}.`;
|
|
39825
39984
|
}
|
|
39826
39985
|
if (!model) return "Fast mode needs a model; pick one with /model.";
|
|
39827
|
-
const { resolveFastModeVerdict } = await import("./dist-
|
|
39986
|
+
const { resolveFastModeVerdict } = await import("./dist-IOJ4RD22.js");
|
|
39828
39987
|
const verdict = resolveFastModeVerdict(model, now);
|
|
39829
39988
|
return verdict.ok ? void 0 : verdict.reason;
|
|
39830
39989
|
}
|
|
@@ -40678,7 +40837,7 @@ function clickableRows(message, hasPrev, width, open) {
|
|
|
40678
40837
|
};
|
|
40679
40838
|
}
|
|
40680
40839
|
__name(clickableRows, "clickableRows");
|
|
40681
|
-
function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN, streams) {
|
|
40840
|
+
function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN, streams, later = false) {
|
|
40682
40841
|
const message = withLiveHint(asked);
|
|
40683
40842
|
if (mode.click) {
|
|
40684
40843
|
const clickable = clickableRows(message, hasPrev, width, mode.open);
|
|
@@ -40687,7 +40846,9 @@ function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN, streams) {
|
|
|
40687
40846
|
const hung = hangsResult(message);
|
|
40688
40847
|
const fit2 = hung ? Math.max(4, width - RESULT_HANG) : width;
|
|
40689
40848
|
const markdown = rendersMarkdown(message);
|
|
40690
|
-
const plain2 = messageScrollRows(markdown ? { ...message, content: "x" } : message, hasPrev, fit2
|
|
40849
|
+
const plain2 = messageScrollRows(markdown ? { ...message, content: "x" } : message, hasPrev, fit2, {
|
|
40850
|
+
later
|
|
40851
|
+
});
|
|
40691
40852
|
const gap = plain2.gap ? plainRow(plain2.gap) : null;
|
|
40692
40853
|
const first = plain2.rows[0];
|
|
40693
40854
|
const body = markdown ? 1 : wrapChoiceText(scrollBodyText(message, void 0, fit2), fit2).length;
|
|
@@ -40696,6 +40857,7 @@ function fullscreenMessageRows(asked, hasPrev, width, mode = PLAIN, streams) {
|
|
|
40696
40857
|
const wrap3 = /* @__PURE__ */ __name((row2, i) => ({
|
|
40697
40858
|
glyph: i === 0 ? first.glyph : " ",
|
|
40698
40859
|
glyphColor: first.glyphColor,
|
|
40860
|
+
...first.plainMark ? { plainMark: true } : {},
|
|
40699
40861
|
text: row2.text,
|
|
40700
40862
|
color: first.color,
|
|
40701
40863
|
spans: row2.spans,
|
|
@@ -40741,8 +40903,10 @@ function layoutTranscript(messages, pending, pendingAt, columns, cache3, view =
|
|
|
40741
40903
|
const theme2 = `${shownTheme()}:${grammarVersion()}`;
|
|
40742
40904
|
const rows = [];
|
|
40743
40905
|
const blocks = [];
|
|
40906
|
+
const laterBlocks = laterReplyBlocks(ordered);
|
|
40744
40907
|
ordered.forEach((message, i) => {
|
|
40745
40908
|
const hasPrev = i > 0;
|
|
40909
|
+
const later = laterBlocks[i] ?? false;
|
|
40746
40910
|
if (unseen && message.id === unseen.before && hasPrev) {
|
|
40747
40911
|
rows.push({
|
|
40748
40912
|
glyph: " ",
|
|
@@ -40757,14 +40921,15 @@ function layoutTranscript(messages, pending, pendingAt, columns, cache3, view =
|
|
|
40757
40921
|
}
|
|
40758
40922
|
const mode = { click: view.click, open: view.click && view.open.has(message.id) };
|
|
40759
40923
|
let hit = cache3.kept.get(message);
|
|
40760
|
-
if (!hit || hit.width !== width || hit.hasPrev !== hasPrev || hit.theme !== theme2 || hit.click !== mode.click || hit.open !== mode.open) {
|
|
40924
|
+
if (!hit || hit.width !== width || hit.hasPrev !== hasPrev || hit.later !== later || hit.theme !== theme2 || hit.click !== mode.click || hit.open !== mode.open) {
|
|
40761
40925
|
hit = {
|
|
40762
40926
|
width,
|
|
40763
40927
|
hasPrev,
|
|
40928
|
+
later,
|
|
40764
40929
|
theme: theme2,
|
|
40765
40930
|
click: mode.click,
|
|
40766
40931
|
open: mode.open,
|
|
40767
|
-
block: fullscreenMessageRows(message, hasPrev, width, mode, cache3.streams)
|
|
40932
|
+
block: fullscreenMessageRows(message, hasPrev, width, mode, cache3.streams, later)
|
|
40768
40933
|
};
|
|
40769
40934
|
cache3.kept.set(message, hit);
|
|
40770
40935
|
cache3.laid += 1;
|
|
@@ -41032,7 +41197,7 @@ var REAL_CLOCK = {
|
|
|
41032
41197
|
}, "after")
|
|
41033
41198
|
};
|
|
41034
41199
|
var GUTTER2 = 2;
|
|
41035
|
-
var SCREEN_PADDING =
|
|
41200
|
+
var SCREEN_PADDING = 0;
|
|
41036
41201
|
var DOUBLE_CLICK_MS = 400;
|
|
41037
41202
|
var NOTE_OK_MS = 2e3;
|
|
41038
41203
|
var NOTE_FAIL_MS = 4e3;
|
|
@@ -41555,7 +41720,7 @@ function FullscreenTranscript({
|
|
|
41555
41720
|
width: 2,
|
|
41556
41721
|
flexShrink: 0,
|
|
41557
41722
|
...row2.tint !== void 0 ? { backgroundColor: row2.tint } : {},
|
|
41558
|
-
children: row2.tint !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Text, { color: row2.glyphColor, dimColor: true, children: row2.glyph }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Text, { color: row2.glyphColor, bold: true, children: row2.glyph })
|
|
41723
|
+
children: row2.tint !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Text, { color: row2.glyphColor, dimColor: true, children: row2.glyph }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Text, { color: row2.glyphColor, bold: row2.plainMark !== true, children: row2.glyph })
|
|
41559
41724
|
}
|
|
41560
41725
|
),
|
|
41561
41726
|
row2.spans === void 0 && marks.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
@@ -45481,6 +45646,52 @@ var IdleNotifier = class {
|
|
|
45481
45646
|
}
|
|
45482
45647
|
};
|
|
45483
45648
|
|
|
45649
|
+
// src/tui/UpdateNoticeRow.tsx
|
|
45650
|
+
var import_jsx_runtime36 = __toESM(require_jsx_runtime(), 1);
|
|
45651
|
+
function noticeHoldsFooter(notice, boxOwnsKeys) {
|
|
45652
|
+
if (!notice) return false;
|
|
45653
|
+
const immediate = notice.priority === "immediate";
|
|
45654
|
+
const shown = immediate || !boxOwnsKeys;
|
|
45655
|
+
return shown && (immediate || notice.tone === "error");
|
|
45656
|
+
}
|
|
45657
|
+
__name(noticeHoldsFooter, "noticeHoldsFooter");
|
|
45658
|
+
var UPDATE_NOTICE_SHARE = 0.6;
|
|
45659
|
+
function fitUpdateNotice(text, columns) {
|
|
45660
|
+
const width = Math.max(0, Math.floor(columns));
|
|
45661
|
+
const cap2 = Math.floor(width * UPDATE_NOTICE_SHARE);
|
|
45662
|
+
const chars = [...text];
|
|
45663
|
+
const shown = chars.length <= cap2 ? text : cap2 > 1 ? `${chars.slice(0, cap2 - 1).join("")}\u2026` : "";
|
|
45664
|
+
return { text: shown, indent: Math.max(0, width - [...shown].length) };
|
|
45665
|
+
}
|
|
45666
|
+
__name(fitUpdateNotice, "fitUpdateNotice");
|
|
45667
|
+
function StrongText({
|
|
45668
|
+
text,
|
|
45669
|
+
strong
|
|
45670
|
+
}) {
|
|
45671
|
+
const at = strong ? text.indexOf(strong) : -1;
|
|
45672
|
+
if (!strong || at < 0) return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: text });
|
|
45673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
45674
|
+
text.slice(0, at),
|
|
45675
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Text, { bold: true, children: strong }),
|
|
45676
|
+
text.slice(at + strong.length)
|
|
45677
|
+
] });
|
|
45678
|
+
}
|
|
45679
|
+
__name(StrongText, "StrongText");
|
|
45680
|
+
function UpdateNoticeRow({
|
|
45681
|
+
notice,
|
|
45682
|
+
columns,
|
|
45683
|
+
critical = false
|
|
45684
|
+
}) {
|
|
45685
|
+
if (!notice || critical) return null;
|
|
45686
|
+
const fit2 = fitUpdateNotice(notice.text, columns);
|
|
45687
|
+
if (fit2.text.length === 0) return null;
|
|
45688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Box_default, { height: 1, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Text, { color: toneColor(notice.tone), wrap: "truncate-end", children: [
|
|
45689
|
+
" ".repeat(fit2.indent),
|
|
45690
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(StrongText, { text: fit2.text, strong: notice.strong })
|
|
45691
|
+
] }) });
|
|
45692
|
+
}
|
|
45693
|
+
__name(UpdateNoticeRow, "UpdateNoticeRow");
|
|
45694
|
+
|
|
45484
45695
|
// src/tui/agent-view-commands.ts
|
|
45485
45696
|
function agentViewCommandClass(name) {
|
|
45486
45697
|
switch (name) {
|
|
@@ -46458,7 +46669,11 @@ __name(holdsForBatch, "holdsForBatch");
|
|
|
46458
46669
|
function settledBatchRows(members, enabled2 = true) {
|
|
46459
46670
|
const blocked = blockedAgents(members, enabled2);
|
|
46460
46671
|
const rows = [];
|
|
46461
|
-
if (blocked.length !== members.length)
|
|
46672
|
+
if (blocked.length !== members.length) {
|
|
46673
|
+
rows.push(agentLaunchRow(members));
|
|
46674
|
+
const follow = launchFollowNote(members);
|
|
46675
|
+
if (follow) rows.push({ role: "tool", content: follow, glyph: "\u23BF" });
|
|
46676
|
+
}
|
|
46462
46677
|
if (blocked.length > 0) {
|
|
46463
46678
|
const block = waitedOnBlock(blocked);
|
|
46464
46679
|
rows.push({
|
|
@@ -46661,7 +46876,7 @@ function carryStyleAcrossLines(text) {
|
|
|
46661
46876
|
__name(carryStyleAcrossLines, "carryStyleAcrossLines");
|
|
46662
46877
|
|
|
46663
46878
|
// src/tui/status-line/StatusLineRows.tsx
|
|
46664
|
-
var
|
|
46879
|
+
var import_jsx_runtime37 = (
|
|
46665
46880
|
// biome-ignore lint/suspicious/noArrayIndexKey: lines have no identity; the text is replaced whole
|
|
46666
46881
|
__toESM(require_jsx_runtime(), 1)
|
|
46667
46882
|
);
|
|
@@ -46669,7 +46884,7 @@ function StatusLineRows({
|
|
|
46669
46884
|
text,
|
|
46670
46885
|
padding = 0
|
|
46671
46886
|
}) {
|
|
46672
|
-
return /* @__PURE__ */ (0,
|
|
46887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Box_default, { flexDirection: "column", paddingLeft: 1 + padding, paddingRight: padding, children: carryStyleAcrossLines(text).map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Text, { dimColor: true, wrap: "truncate", children: line }, index)) });
|
|
46673
46888
|
}
|
|
46674
46889
|
__name(StatusLineRows, "StatusLineRows");
|
|
46675
46890
|
|
|
@@ -47617,7 +47832,7 @@ async function reviewMergeBase(cwd2, branch) {
|
|
|
47617
47832
|
__name(reviewMergeBase, "reviewMergeBase");
|
|
47618
47833
|
|
|
47619
47834
|
// src/tui/App.tsx
|
|
47620
|
-
var
|
|
47835
|
+
var import_jsx_runtime38 = __toESM(require_jsx_runtime(), 1);
|
|
47621
47836
|
var AUTO_MODE_NOTICE_KEY = "auto-mode";
|
|
47622
47837
|
var SESSION_CLOSE_ON_EXIT_MS = 5e3;
|
|
47623
47838
|
var FREE_TEXT_ANSWER = "__free_text__";
|
|
@@ -47780,7 +47995,7 @@ var defaultExternalEditor = /* @__PURE__ */ __name(({ seed, cwd: cwd2, signal, p
|
|
|
47780
47995
|
}), "defaultExternalEditor");
|
|
47781
47996
|
function App2(props) {
|
|
47782
47997
|
const epoch = useThemeSubscription();
|
|
47783
|
-
return /* @__PURE__ */ (0,
|
|
47998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ThemeEpochContext.Provider, { value: epoch, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AppBody, { ...props }) });
|
|
47784
47999
|
}
|
|
47785
48000
|
__name(App2, "App");
|
|
47786
48001
|
function AppBody({
|
|
@@ -48324,6 +48539,10 @@ ${blocks.join("\n\n")}`;
|
|
|
48324
48539
|
}, []);
|
|
48325
48540
|
const [composerDraft, setComposerDraft] = (0, import_react60.useState)(null);
|
|
48326
48541
|
const [composerHasDraft, setComposerHasDraft] = (0, import_react60.useState)(false);
|
|
48542
|
+
const composerSearchingRef = (0, import_react60.useRef)(false);
|
|
48543
|
+
const setComposerSearching = (0, import_react60.useCallback)((searching) => {
|
|
48544
|
+
composerSearchingRef.current = searching;
|
|
48545
|
+
}, []);
|
|
48327
48546
|
const liveStreamRef = (0, import_react60.useRef)(null);
|
|
48328
48547
|
const [handoffPark, setHandoffParkState] = (0, import_react60.useState)(null);
|
|
48329
48548
|
const handoffParkRef = (0, import_react60.useRef)(null);
|
|
@@ -48573,6 +48792,7 @@ ${blocks.join("\n\n")}`;
|
|
|
48573
48792
|
setRailFocus(first);
|
|
48574
48793
|
return;
|
|
48575
48794
|
}
|
|
48795
|
+
if (composerHasDraftRef.current) return;
|
|
48576
48796
|
void openAgentCockpit();
|
|
48577
48797
|
}, [openAgentCockpit, setRailFocus]);
|
|
48578
48798
|
const openBackgroundTasks = (0, import_react60.useCallback)(() => {
|
|
@@ -51779,7 +51999,7 @@ ${blocks.join("\n\n")}`;
|
|
|
51779
51999
|
const callBlockFurniture = callBlockExtraRows(backgroundGroups);
|
|
51780
52000
|
const flowContext = {
|
|
51781
52001
|
freeze: flowFreeze,
|
|
51782
|
-
width: Math.max(10, terminal.columns -
|
|
52002
|
+
width: Math.max(10, terminal.columns - SCREEN_MARGIN - 2),
|
|
51783
52003
|
rows: flowRows(
|
|
51784
52004
|
terminal.rows,
|
|
51785
52005
|
taskFurniture + toolFurniture + pendingInputFurniture + callBlockFurniture
|
|
@@ -52185,10 +52405,10 @@ ${blocks.join("\n\n")}`;
|
|
|
52185
52405
|
const progressId = pushMessage("system", "Reading spend\u2026");
|
|
52186
52406
|
try {
|
|
52187
52407
|
const [{ buildCostReport }, { renderSpend }, { systemClock }, { resolveNamzuHome: resolveNamzuHome2 }] = await Promise.all([
|
|
52188
|
-
import("./cost-
|
|
52408
|
+
import("./cost-VA6HZQE6.js"),
|
|
52189
52409
|
import("./render-QFCCPEEL.js"),
|
|
52190
52410
|
import("./day-CU5J7UAK.js"),
|
|
52191
|
-
import("./home-
|
|
52411
|
+
import("./home-5OAGR5X5.js")
|
|
52192
52412
|
]);
|
|
52193
52413
|
const report = await buildCostReport(days, {
|
|
52194
52414
|
home: resolveNamzuHome2(),
|
|
@@ -52214,7 +52434,7 @@ ${blocks.join("\n\n")}`;
|
|
|
52214
52434
|
doctorRunningRef.current = true;
|
|
52215
52435
|
const progressId = pushMessage("system", "Checking\u2026");
|
|
52216
52436
|
try {
|
|
52217
|
-
const { runLiveDoctor } = await import("./live-
|
|
52437
|
+
const { runLiveDoctor } = await import("./live-P6HSBLJ5.js");
|
|
52218
52438
|
const { describePlainDoctor } = await import("./plain-report-XVPBQDLE.js");
|
|
52219
52439
|
const report = await runLiveDoctor({
|
|
52220
52440
|
...ctxRef.current.telemetry ? { telemetry: ctxRef.current.telemetry } : {}
|
|
@@ -58841,7 +59061,7 @@ ${plugins.map((plugin) => {
|
|
|
58841
59061
|
const max = maxBackgroundJobTailOffset(
|
|
58842
59062
|
output,
|
|
58843
59063
|
terminal.rows,
|
|
58844
|
-
Math.max(1, terminal.columns -
|
|
59064
|
+
Math.max(1, terminal.columns - SCREEN_MARGIN)
|
|
58845
59065
|
);
|
|
58846
59066
|
const page = backgroundJobOutputPageSize(terminal.rows);
|
|
58847
59067
|
const offset = Math.min(shellView.tailOffset, max);
|
|
@@ -58919,8 +59139,18 @@ ${plugins.map((plugin) => {
|
|
|
58919
59139
|
} else if (chordPending && isChordAction("chat:killAgents", input, key)) {
|
|
58920
59140
|
requestStopAllAgents();
|
|
58921
59141
|
return;
|
|
58922
|
-
} else if (key
|
|
58923
|
-
const
|
|
59142
|
+
} else if (railStep(input, key) !== void 0) {
|
|
59143
|
+
const step = railStep(input, key);
|
|
59144
|
+
if (step === -1 && at === 0) {
|
|
59145
|
+
setRailFocus(null);
|
|
59146
|
+
return;
|
|
59147
|
+
}
|
|
59148
|
+
if (step === 1 && at === ids.length - 1 && railTarget === SHELLS_FOCUS) {
|
|
59149
|
+
setRailFocus(null);
|
|
59150
|
+
openBackgroundTasks();
|
|
59151
|
+
return;
|
|
59152
|
+
}
|
|
59153
|
+
const index = at + (step ?? 0);
|
|
58924
59154
|
setRailFocus(ids[Math.max(0, Math.min(ids.length - 1, index))] ?? ids[0] ?? null);
|
|
58925
59155
|
return;
|
|
58926
59156
|
} else if (key.return) {
|
|
@@ -59169,7 +59399,11 @@ ${plugins.map((plugin) => {
|
|
|
59169
59399
|
}
|
|
59170
59400
|
if (key.pageUp || key.pageDown || key.home || key.end) {
|
|
59171
59401
|
const rows = agentViewPageRows(terminal.rows, viewRailRowsRef.current);
|
|
59172
|
-
const max = maxAgentViewTailOffset(
|
|
59402
|
+
const max = maxAgentViewTailOffset(
|
|
59403
|
+
selected,
|
|
59404
|
+
rows,
|
|
59405
|
+
Math.max(1, terminal.columns - SCREEN_MARGIN)
|
|
59406
|
+
);
|
|
59173
59407
|
const offset = Math.min(agentView.tailOffset, max);
|
|
59174
59408
|
const next = key.home ? max : key.end ? 0 : key.pageUp ? Math.min(max, offset + rows) : Math.max(0, offset - rows);
|
|
59175
59409
|
setAgentSurface({ ...agentView, tailOffset: next });
|
|
@@ -59250,7 +59484,7 @@ ${plugins.map((plugin) => {
|
|
|
59250
59484
|
if (key.home || key.end || key.pageUp || key.pageDown) {
|
|
59251
59485
|
const pageSize2 = choicePickerWindowSize({
|
|
59252
59486
|
rows: terminal.rows,
|
|
59253
|
-
columns: Math.max(1, (terminal.columns ?? 80) -
|
|
59487
|
+
columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
|
|
59254
59488
|
searchable,
|
|
59255
59489
|
notice: Boolean(picker.notice),
|
|
59256
59490
|
selectedDescription: options.some(
|
|
@@ -59418,6 +59652,7 @@ ${plugins.map((plugin) => {
|
|
|
59418
59652
|
armExit("Ctrl-D");
|
|
59419
59653
|
return;
|
|
59420
59654
|
}
|
|
59655
|
+
if (isAction("app:interrupt", input, key) && composerSearchingRef.current) return;
|
|
59421
59656
|
if (isAction("app:interrupt", input, key)) {
|
|
59422
59657
|
if (interruptWithRow(false)) return;
|
|
59423
59658
|
const stoppable = stoppableBackgroundAgents(railRowsRef.current);
|
|
@@ -59483,12 +59718,13 @@ ${plugins.map((plugin) => {
|
|
|
59483
59718
|
) : null;
|
|
59484
59719
|
const effortSlider = choicePicker?.kind === "reasoning-effort" ? effortSliderLayout(
|
|
59485
59720
|
choicePicker.options.map((option) => option.label),
|
|
59486
|
-
Math.max(1, (terminal.columns ?? 80) -
|
|
59721
|
+
Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN)
|
|
59487
59722
|
) : void 0;
|
|
59488
59723
|
const boxOwnsKeys = permission !== null || scheduleReviewPrompt !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || agentSurface !== null || jobSurface !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || phase === "trust" || phase === "resume" || phase === "unarchive" || phase === "edit" || phase === "picker";
|
|
59489
59724
|
const dialogShowing = permission !== null || scheduleReviewPrompt !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || phase === "resume" || phase === "unarchive" || phase === "edit" || phase === "picker";
|
|
59490
59725
|
const currentNotice = notices.current;
|
|
59491
59726
|
const noticeIsImmediate = currentNotice?.priority === "immediate";
|
|
59727
|
+
const noticeIsCritical = noticeHoldsFooter(currentNotice, boxOwnsKeys);
|
|
59492
59728
|
const statusHint = exitHint ? `Press ${exitHint} again to exit` : noticeIsImmediate ? void 0 : conversationMutation === "fork" ? "forking conversation \u2014 input is paused" : conversationMutation === "edit" ? "branching before prompt \u2014 input is paused" : conversationMutation === "archive" ? "archiving conversation \u2014 input is paused" : conversationMutation === "new" ? "starting a fresh conversation \u2014 input is paused" : compacting ? "compacting conversation \u2014 input is paused" : boxOwnsKeys ? void 0 : handoffPark && phase === "ready" && state === "idle" && !composerHasDraft ? handoffPark.spentAllowance ? CONTINUE_WITH_ANOTHER_ACCOUNT : handoffPark.autoResume ? `trying again in ${formatSpan(Math.max(0, handoffPark.autoResume.at - Date.now()))} \xB7 enter try now \xB7 esc stop` : "enter continue \xB7 esc stop" : goalStatus && phase === "ready" && state === "idle" ? void 0 : hintForPhase(phase, state, composerHasDraft);
|
|
59493
59729
|
const permissionSource = reviewSource(permission, scopeRef.current?.sessionId);
|
|
59494
59730
|
const permissionOwner = permissionSource ? subagents.find((agent) => agent.sessionId === permissionSource) : void 0;
|
|
@@ -59538,497 +59774,515 @@ ${plugins.map((plugin) => {
|
|
|
59538
59774
|
return (
|
|
59539
59775
|
// One row short of the terminal, always: see ViewportBound.tsx for the
|
|
59540
59776
|
// renderer path a taller frame takes and the scrollback row it costs.
|
|
59541
|
-
/* @__PURE__ */ (0,
|
|
59777
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59542
59778
|
ViewportBound,
|
|
59543
59779
|
{
|
|
59544
59780
|
rows: terminal.rows,
|
|
59545
59781
|
display: externalEditorRequest || fullscreenBlank ? "none" : "flex",
|
|
59546
59782
|
fill: fullscreenOn,
|
|
59547
|
-
children: /* @__PURE__ */ (0,
|
|
59548
|
-
|
|
59549
|
-
|
|
59550
|
-
|
|
59551
|
-
|
|
59552
|
-
|
|
59553
|
-
|
|
59554
|
-
|
|
59555
|
-
|
|
59556
|
-
|
|
59557
|
-
keysActive: phase === "ready" && permission === null && scheduleReviewPrompt === null && choicePicker === null && copyPicker === null && textPrompt === null && questionDialog === null && externalEditorRequest === null && !lifecycleOwnsViewport,
|
|
59558
|
-
homeEndActive: !composerHasDraft,
|
|
59559
|
-
subscribeWheel: fullscreen.subscribeWheel,
|
|
59560
|
-
...fullscreen.subscribePointer ? { subscribePointer: fullscreen.subscribePointer, copy: copyFullscreenSelection } : {},
|
|
59561
|
-
copyOnSelect: fullscreen.copyOnSelect !== false,
|
|
59562
|
-
...fullscreen.wheelRows !== void 0 ? { wheelRows: fullscreen.wheelRows } : {},
|
|
59563
|
-
...fullscreen.wheelAccel !== void 0 ? { wheelAccel: fullscreen.wheelAccel } : {},
|
|
59564
|
-
onSearchChange: setFullscreenSearching,
|
|
59565
|
-
control: fullscreenControl,
|
|
59566
|
-
header: transcriptOwned ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
59567
|
-
BrandHeader,
|
|
59783
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
59784
|
+
Box_default,
|
|
59785
|
+
{
|
|
59786
|
+
flexDirection: "column",
|
|
59787
|
+
paddingLeft: 0,
|
|
59788
|
+
paddingRight: SCREEN_MARGIN,
|
|
59789
|
+
flexGrow: fullscreenOn ? 1 : 0,
|
|
59790
|
+
children: [
|
|
59791
|
+
fullscreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59792
|
+
FullscreenTranscript,
|
|
59568
59793
|
{
|
|
59569
|
-
|
|
59570
|
-
|
|
59571
|
-
|
|
59794
|
+
messages: finalized,
|
|
59795
|
+
pending: messages.find((m) => m.pending) ?? null,
|
|
59796
|
+
pendingAt,
|
|
59797
|
+
columns: Math.max(4, terminal.columns - SCREEN_MARGIN),
|
|
59798
|
+
maxRows: Math.max(3, terminal.rows - 1),
|
|
59799
|
+
hidden: lifecycleOwnsViewport,
|
|
59800
|
+
keysActive: phase === "ready" && permission === null && scheduleReviewPrompt === null && choicePicker === null && copyPicker === null && textPrompt === null && questionDialog === null && externalEditorRequest === null && !lifecycleOwnsViewport,
|
|
59801
|
+
homeEndActive: !composerHasDraft,
|
|
59802
|
+
subscribeWheel: fullscreen.subscribeWheel,
|
|
59803
|
+
...fullscreen.subscribePointer ? { subscribePointer: fullscreen.subscribePointer, copy: copyFullscreenSelection } : {},
|
|
59804
|
+
copyOnSelect: fullscreen.copyOnSelect !== false,
|
|
59805
|
+
...fullscreen.wheelRows !== void 0 ? { wheelRows: fullscreen.wheelRows } : {},
|
|
59806
|
+
...fullscreen.wheelAccel !== void 0 ? { wheelAccel: fullscreen.wheelAccel } : {},
|
|
59807
|
+
onSearchChange: setFullscreenSearching,
|
|
59808
|
+
control: fullscreenControl,
|
|
59809
|
+
header: transcriptOwned ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59810
|
+
BrandHeader,
|
|
59811
|
+
{
|
|
59812
|
+
version: ctx.version,
|
|
59813
|
+
permissionMode: displayedPermissionMode,
|
|
59814
|
+
cwd: ctx.cwd
|
|
59815
|
+
}
|
|
59816
|
+
) : void 0
|
|
59572
59817
|
}
|
|
59573
|
-
) :
|
|
59574
|
-
|
|
59575
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TranscriptFrame, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
59576
|
-
Transcript,
|
|
59577
|
-
{
|
|
59578
|
-
messages: finalized,
|
|
59579
|
-
pending: messages.find((m) => m.pending) ?? null,
|
|
59580
|
-
pendingAt,
|
|
59581
|
-
state,
|
|
59582
|
-
settled: transcriptOwned ? renderedSettled : 0,
|
|
59583
|
-
resetKey,
|
|
59584
|
-
raw: rawOutput,
|
|
59585
|
-
hyperlinks,
|
|
59586
|
-
showLive: !lifecycleOwnsViewport,
|
|
59587
|
-
staticIndent: 1,
|
|
59588
|
-
header: transcriptOwned ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
59589
|
-
BrandHeader,
|
|
59818
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TranscriptFrame, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59819
|
+
Transcript,
|
|
59590
59820
|
{
|
|
59591
|
-
|
|
59592
|
-
|
|
59593
|
-
|
|
59821
|
+
messages: finalized,
|
|
59822
|
+
pending: messages.find((m) => m.pending) ?? null,
|
|
59823
|
+
pendingAt,
|
|
59824
|
+
state,
|
|
59825
|
+
settled: transcriptOwned ? renderedSettled : 0,
|
|
59826
|
+
resetKey,
|
|
59827
|
+
raw: rawOutput,
|
|
59828
|
+
hyperlinks,
|
|
59829
|
+
showLive: !lifecycleOwnsViewport,
|
|
59830
|
+
staticIndent: 0,
|
|
59831
|
+
staticIndentRight: SCREEN_MARGIN,
|
|
59832
|
+
header: transcriptOwned ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59833
|
+
BrandHeader,
|
|
59834
|
+
{
|
|
59835
|
+
version: ctx.version,
|
|
59836
|
+
permissionMode: displayedPermissionMode,
|
|
59837
|
+
cwd: ctx.cwd
|
|
59838
|
+
}
|
|
59839
|
+
) : void 0
|
|
59594
59840
|
}
|
|
59595
|
-
)
|
|
59596
|
-
|
|
59597
|
-
|
|
59598
|
-
|
|
59599
|
-
|
|
59600
|
-
|
|
59601
|
-
|
|
59602
|
-
|
|
59603
|
-
|
|
59604
|
-
|
|
59605
|
-
|
|
59606
|
-
|
|
59607
|
-
|
|
59608
|
-
|
|
59609
|
-
|
|
59610
|
-
(error) => setPickerNotice(explainFailure(error, "Could not look for providers."))
|
|
59611
|
-
);
|
|
59612
|
-
}
|
|
59613
|
-
}
|
|
59614
|
-
) : phase === "trust" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TrustPrompt, { cwd: ctx.cwd, grants: trustGrants }) : phase === "unhealthy" ? (
|
|
59615
|
-
// The sentence above already says what to do when it is a complete
|
|
59616
|
-
// one; saying "resolve the error above" under it is the same advice
|
|
59617
|
-
// twice.
|
|
59618
|
-
startupExplained ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, children: [
|
|
59619
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Text, { color: theme.status.error, bold: true, children: "Startup stopped" }),
|
|
59620
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Text, { color: theme.text.secondary, children: "Resolve the error above, then restart Namzu." })
|
|
59621
|
-
] })
|
|
59622
|
-
) : phase === "resume" || phase === "unarchive" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
59623
|
-
ResumePicker,
|
|
59624
|
-
{
|
|
59625
|
-
conversations: resumeList,
|
|
59626
|
-
selected: selectedResume,
|
|
59627
|
-
mode: phase === "unarchive" ? "restore" : "resume",
|
|
59628
|
-
query: resumeQuery,
|
|
59629
|
-
scope: resumeScope,
|
|
59630
|
-
renaming: resumeRenaming,
|
|
59631
|
-
...resumeNotice !== void 0 ? { notice: resumeNotice } : {}
|
|
59632
|
-
}
|
|
59633
|
-
) : phase === "edit" ? rewind ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
59634
|
-
RewindPicker,
|
|
59635
|
-
{
|
|
59636
|
-
rows: rewind.rows,
|
|
59637
|
-
state: rewind.state,
|
|
59638
|
-
options: optionsFor(rewind.state, {
|
|
59639
|
-
rows: rewind.rows,
|
|
59640
|
-
canSummarize: Boolean(session?.compactRange)
|
|
59641
|
-
}),
|
|
59642
|
-
checkpointing: Boolean(session?.checkpoints),
|
|
59643
|
-
now: rewind.openedAt,
|
|
59644
|
-
working: rewind.state.busy?.startsWith("summarize") ? "Summarizing\u2026" : "Restoring\u2026"
|
|
59645
|
-
}
|
|
59646
|
-
) : null : phase === "picker" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
59647
|
-
Picker,
|
|
59648
|
-
{
|
|
59649
|
-
detected: pickerDetected ?? detected,
|
|
59650
|
-
currentProvider,
|
|
59651
|
-
selectionKind: pickerSelectionKind,
|
|
59652
|
-
currentModel: session?.modelSummary ?? null,
|
|
59653
|
-
...ctx.routing && session?.hasProvider && !palDefinitionRef.current ? { auto: { active: autoActive }, onAuto: handlePickerAuto } : {},
|
|
59654
|
-
initialView: pickerInitialView,
|
|
59655
|
-
onSubmit: handlePickerSubmit,
|
|
59656
|
-
onCancel: handlePickerCancel,
|
|
59657
|
-
onSetup: () => setProviderSetup(true),
|
|
59658
|
-
onCredential: handleTypedCredential,
|
|
59659
|
-
onLogin: startLoginFromPicker,
|
|
59660
|
-
onLoginComplete: finishLoginFromPicker,
|
|
59661
|
-
keyEntryFor,
|
|
59662
|
-
notice: pickerNotice,
|
|
59663
|
-
cancelExits: !session?.hasProvider
|
|
59664
|
-
}
|
|
59665
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
|
|
59666
|
-
pendingInputVisible ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
59667
|
-
PendingInputPanel,
|
|
59668
|
-
{
|
|
59669
|
-
pendingSteers: pendingInputItems,
|
|
59670
|
-
queued: queuedInputItems,
|
|
59671
|
-
columns: Math.max(2, (terminal.columns ?? 80) - 2),
|
|
59672
|
-
rows: terminal.rows,
|
|
59673
|
-
working: abortRef.current !== null,
|
|
59674
|
-
selectedQueued: queueSelection,
|
|
59675
|
-
held: queuePause
|
|
59676
|
-
}
|
|
59677
|
-
) : null,
|
|
59678
|
-
agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
59679
|
-
LiveActivity,
|
|
59680
|
-
{
|
|
59681
|
-
compact: compactWork,
|
|
59682
|
-
...compacting || summarising ? { activityLabel: COMPACTING_LABEL } : workingStepLabel ? { activityLabel: workingStepLabel } : {},
|
|
59683
|
-
activeTools: visibleActiveTools,
|
|
59684
|
-
working: state === "thinking" || state === "tool",
|
|
59685
|
-
compacting,
|
|
59686
|
-
animate: stdout.isTTY === true && permission === null && textPrompt === null && saveSkillPrompt === null && planPrompt === null && questionDialog === null && scheduleReviewPrompt === null,
|
|
59687
|
-
thinking,
|
|
59688
|
-
...spinnerTip ? { tip: spinnerTip } : {},
|
|
59689
|
-
...nextPlanned && !planInRegion ? { nextTask: nextTaskLine(nextPlanned) } : {},
|
|
59690
|
-
...planInRegion ? { plan: liveTasks, planOpen: checklistOpen } : {},
|
|
59691
|
-
...permission !== null ? { waitingFor: "approval" } : {},
|
|
59692
|
-
waitNotice: providerWaitNotice,
|
|
59693
|
-
tokens: turnTokens,
|
|
59694
|
-
waitingForYou: choicePicker !== null || permission !== null || textPrompt !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null
|
|
59695
|
-
}
|
|
59696
|
-
) : null,
|
|
59697
|
-
agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
59698
|
-
BackgroundAgentRows,
|
|
59699
|
-
{
|
|
59700
|
-
groups: backgroundGroups,
|
|
59701
|
-
waitLine: backgroundWaitText,
|
|
59702
|
-
glyph: CLOSING_GLYPH
|
|
59703
|
-
}
|
|
59704
|
-
) : null,
|
|
59705
|
-
agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TaskList, { tasks: planInRegion ? [] : liveTasks, expanded: checklistOpen }) : null,
|
|
59706
|
-
permission && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
59707
|
-
PermissionOverlay,
|
|
59708
|
-
{
|
|
59709
|
-
toolCalls: permission.toolCalls,
|
|
59710
|
-
review: permission.review,
|
|
59711
|
-
summary: permission.summary,
|
|
59712
|
-
detailsOpen: permissionDetailsOpen,
|
|
59713
|
-
reviewOffset: permissionReviewOffset,
|
|
59714
|
-
choice: permissionChoice,
|
|
59715
|
-
...permissionCount ? { count: permissionCount } : {},
|
|
59716
|
-
...permissionSourceLabel ? { from: permissionSourceLabel } : {},
|
|
59717
|
-
...permissionReason !== null ? { reason: permissionReason } : {},
|
|
59718
|
-
endsTurn: endsTurnOnNo(permission),
|
|
59719
|
-
columns: terminal.columns,
|
|
59720
|
-
rows: terminal.rows,
|
|
59721
|
-
batchOnly: permission.batchOnly === true,
|
|
59722
|
-
mode: permissionMode,
|
|
59723
|
-
...session?.allowForSession && session.commandArguments ? {
|
|
59724
|
-
commandArguments: session.commandArguments,
|
|
59725
|
-
rememberWhere: displayPath(ctx.cwd, 28)
|
|
59726
|
-
} : {},
|
|
59727
|
-
siteNotes: permission.siteNotes,
|
|
59728
|
-
withheld: permission.withheld,
|
|
59729
|
-
...permission.screenConsent === true ? {
|
|
59730
|
-
screenConsent: {
|
|
59731
|
-
provider: session?.providerSummary ?? null
|
|
59841
|
+
) }),
|
|
59842
|
+
providerSetup ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59843
|
+
ProviderSetup,
|
|
59844
|
+
{
|
|
59845
|
+
cwd: ctx.cwd,
|
|
59846
|
+
onClose: () => setProviderSetup(false),
|
|
59847
|
+
onConnect: () => {
|
|
59848
|
+
setProviderSetup(false);
|
|
59849
|
+
setPickerInitialView("providers");
|
|
59850
|
+
setPickerDetected(null);
|
|
59851
|
+
setPickerSelectionKind("provider-and-model");
|
|
59852
|
+
setPhase("picker");
|
|
59853
|
+
void discoverProviders({ skipProbes: true }).then(setPickerDetected).catch(
|
|
59854
|
+
(error) => setPickerNotice(explainFailure(error, "Could not look for providers."))
|
|
59855
|
+
);
|
|
59732
59856
|
}
|
|
59733
|
-
}
|
|
59734
|
-
}
|
|
59735
|
-
|
|
59736
|
-
|
|
59737
|
-
|
|
59738
|
-
|
|
59739
|
-
|
|
59740
|
-
|
|
59741
|
-
|
|
59742
|
-
|
|
59743
|
-
|
|
59744
|
-
|
|
59745
|
-
|
|
59746
|
-
|
|
59747
|
-
|
|
59748
|
-
|
|
59749
|
-
|
|
59750
|
-
|
|
59751
|
-
|
|
59752
|
-
|
|
59753
|
-
|
|
59754
|
-
|
|
59755
|
-
|
|
59756
|
-
|
|
59757
|
-
|
|
59758
|
-
|
|
59759
|
-
|
|
59760
|
-
|
|
59761
|
-
|
|
59762
|
-
|
|
59763
|
-
|
|
59764
|
-
|
|
59765
|
-
|
|
59766
|
-
|
|
59767
|
-
|
|
59768
|
-
|
|
59769
|
-
|
|
59770
|
-
|
|
59771
|
-
|
|
59772
|
-
|
|
59773
|
-
|
|
59774
|
-
|
|
59775
|
-
|
|
59776
|
-
|
|
59777
|
-
|
|
59778
|
-
|
|
59779
|
-
|
|
59780
|
-
|
|
59781
|
-
|
|
59782
|
-
|
|
59783
|
-
|
|
59784
|
-
|
|
59785
|
-
|
|
59786
|
-
|
|
59787
|
-
|
|
59788
|
-
|
|
59789
|
-
|
|
59790
|
-
|
|
59791
|
-
|
|
59792
|
-
|
|
59793
|
-
|
|
59794
|
-
|
|
59795
|
-
|
|
59796
|
-
|
|
59797
|
-
|
|
59798
|
-
|
|
59799
|
-
|
|
59800
|
-
|
|
59801
|
-
|
|
59802
|
-
|
|
59803
|
-
|
|
59804
|
-
|
|
59805
|
-
|
|
59806
|
-
|
|
59807
|
-
|
|
59808
|
-
|
|
59809
|
-
|
|
59810
|
-
|
|
59811
|
-
|
|
59812
|
-
|
|
59813
|
-
|
|
59814
|
-
|
|
59815
|
-
|
|
59816
|
-
|
|
59817
|
-
|
|
59818
|
-
|
|
59819
|
-
|
|
59820
|
-
|
|
59821
|
-
|
|
59822
|
-
|
|
59823
|
-
|
|
59824
|
-
|
|
59825
|
-
|
|
59826
|
-
|
|
59827
|
-
|
|
59828
|
-
|
|
59829
|
-
|
|
59830
|
-
|
|
59831
|
-
|
|
59832
|
-
|
|
59833
|
-
|
|
59834
|
-
|
|
59835
|
-
|
|
59836
|
-
|
|
59837
|
-
|
|
59838
|
-
|
|
59839
|
-
|
|
59840
|
-
|
|
59841
|
-
|
|
59842
|
-
|
|
59843
|
-
|
|
59844
|
-
|
|
59845
|
-
|
|
59846
|
-
|
|
59847
|
-
|
|
59848
|
-
|
|
59849
|
-
|
|
59850
|
-
|
|
59851
|
-
|
|
59852
|
-
|
|
59853
|
-
|
|
59854
|
-
|
|
59855
|
-
|
|
59856
|
-
|
|
59857
|
-
|
|
59858
|
-
|
|
59859
|
-
|
|
59860
|
-
|
|
59861
|
-
|
|
59862
|
-
|
|
59857
|
+
}
|
|
59858
|
+
) : phase === "trust" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TrustPrompt, { cwd: ctx.cwd, grants: trustGrants }) : phase === "unhealthy" ? (
|
|
59859
|
+
// The sentence above already says what to do when it is a complete
|
|
59860
|
+
// one; saying "resolve the error above" under it is the same advice
|
|
59861
|
+
// twice.
|
|
59862
|
+
startupExplained ? null : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Box_default, { flexDirection: "column", marginTop: 1, children: [
|
|
59863
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Text, { color: theme.status.error, bold: true, children: "Startup stopped" }),
|
|
59864
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Text, { color: theme.text.secondary, children: "Resolve the error above, then restart Namzu." })
|
|
59865
|
+
] })
|
|
59866
|
+
) : phase === "resume" || phase === "unarchive" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59867
|
+
ResumePicker,
|
|
59868
|
+
{
|
|
59869
|
+
conversations: resumeList,
|
|
59870
|
+
selected: selectedResume,
|
|
59871
|
+
mode: phase === "unarchive" ? "restore" : "resume",
|
|
59872
|
+
query: resumeQuery,
|
|
59873
|
+
scope: resumeScope,
|
|
59874
|
+
renaming: resumeRenaming,
|
|
59875
|
+
...resumeNotice !== void 0 ? { notice: resumeNotice } : {}
|
|
59876
|
+
}
|
|
59877
|
+
) : phase === "edit" ? rewind ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59878
|
+
RewindPicker,
|
|
59879
|
+
{
|
|
59880
|
+
rows: rewind.rows,
|
|
59881
|
+
state: rewind.state,
|
|
59882
|
+
options: optionsFor(rewind.state, {
|
|
59883
|
+
rows: rewind.rows,
|
|
59884
|
+
canSummarize: Boolean(session?.compactRange)
|
|
59885
|
+
}),
|
|
59886
|
+
checkpointing: Boolean(session?.checkpoints),
|
|
59887
|
+
now: rewind.openedAt,
|
|
59888
|
+
working: rewind.state.busy?.startsWith("summarize") ? "Summarizing\u2026" : "Restoring\u2026"
|
|
59889
|
+
}
|
|
59890
|
+
) : null : phase === "picker" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59891
|
+
Picker,
|
|
59892
|
+
{
|
|
59893
|
+
detected: pickerDetected ?? detected,
|
|
59894
|
+
currentProvider,
|
|
59895
|
+
selectionKind: pickerSelectionKind,
|
|
59896
|
+
currentModel: session?.modelSummary ?? null,
|
|
59897
|
+
...ctx.routing && session?.hasProvider && !palDefinitionRef.current ? { auto: { active: autoActive }, onAuto: handlePickerAuto } : {},
|
|
59898
|
+
initialView: pickerInitialView,
|
|
59899
|
+
onSubmit: handlePickerSubmit,
|
|
59900
|
+
onCancel: handlePickerCancel,
|
|
59901
|
+
onSetup: () => setProviderSetup(true),
|
|
59902
|
+
onCredential: handleTypedCredential,
|
|
59903
|
+
onLogin: startLoginFromPicker,
|
|
59904
|
+
onLoginComplete: finishLoginFromPicker,
|
|
59905
|
+
keyEntryFor,
|
|
59906
|
+
notice: pickerNotice,
|
|
59907
|
+
cancelExits: !session?.hasProvider
|
|
59908
|
+
}
|
|
59909
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
|
59910
|
+
pendingInputVisible ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59911
|
+
PendingInputPanel,
|
|
59912
|
+
{
|
|
59913
|
+
pendingSteers: pendingInputItems,
|
|
59914
|
+
queued: queuedInputItems,
|
|
59915
|
+
columns: Math.max(2, (terminal.columns ?? 80) - SCREEN_MARGIN),
|
|
59916
|
+
rows: terminal.rows,
|
|
59917
|
+
working: abortRef.current !== null,
|
|
59918
|
+
selectedQueued: queueSelection,
|
|
59919
|
+
held: queuePause
|
|
59920
|
+
}
|
|
59921
|
+
) : null,
|
|
59922
|
+
agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59923
|
+
LiveActivity,
|
|
59924
|
+
{
|
|
59925
|
+
compact: compactWork,
|
|
59926
|
+
...compacting || summarising ? { activityLabel: COMPACTING_LABEL } : workingStepLabel ? { activityLabel: workingStepLabel } : {},
|
|
59927
|
+
activeTools: visibleActiveTools,
|
|
59928
|
+
working: state === "thinking" || state === "tool",
|
|
59929
|
+
compacting,
|
|
59930
|
+
animate: stdout.isTTY === true && permission === null && textPrompt === null && saveSkillPrompt === null && planPrompt === null && questionDialog === null && scheduleReviewPrompt === null,
|
|
59931
|
+
thinking,
|
|
59932
|
+
...spinnerTip ? { tip: spinnerTip } : {},
|
|
59933
|
+
...nextPlanned && !planInRegion ? { nextTask: nextTaskLine(nextPlanned) } : {},
|
|
59934
|
+
...planInRegion ? { plan: liveTasks, planOpen: checklistOpen } : {},
|
|
59935
|
+
...permission !== null ? { waitingFor: "approval" } : {},
|
|
59936
|
+
waitNotice: providerWaitNotice,
|
|
59937
|
+
tokens: turnTokens,
|
|
59938
|
+
waitingForYou: choicePicker !== null || permission !== null || textPrompt !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null
|
|
59939
|
+
}
|
|
59940
|
+
) : null,
|
|
59941
|
+
agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59942
|
+
BackgroundAgentRows,
|
|
59943
|
+
{
|
|
59944
|
+
groups: backgroundGroups,
|
|
59945
|
+
waitLine: backgroundWaitText,
|
|
59946
|
+
glyph: CLOSING_GLYPH
|
|
59947
|
+
}
|
|
59948
|
+
) : null,
|
|
59949
|
+
agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TaskList, { tasks: planInRegion ? [] : liveTasks, expanded: checklistOpen }) : null,
|
|
59950
|
+
permission && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59951
|
+
PermissionOverlay,
|
|
59952
|
+
{
|
|
59953
|
+
toolCalls: permission.toolCalls,
|
|
59954
|
+
review: permission.review,
|
|
59955
|
+
summary: permission.summary,
|
|
59956
|
+
detailsOpen: permissionDetailsOpen,
|
|
59957
|
+
reviewOffset: permissionReviewOffset,
|
|
59958
|
+
choice: permissionChoice,
|
|
59959
|
+
...permissionCount ? { count: permissionCount } : {},
|
|
59960
|
+
...permissionSourceLabel ? { from: permissionSourceLabel } : {},
|
|
59961
|
+
...permissionReason !== null ? { reason: permissionReason } : {},
|
|
59962
|
+
endsTurn: endsTurnOnNo(permission),
|
|
59963
|
+
columns: terminal.columns,
|
|
59964
|
+
rows: terminal.rows,
|
|
59965
|
+
batchOnly: permission.batchOnly === true,
|
|
59966
|
+
mode: permissionMode,
|
|
59967
|
+
...session?.allowForSession && session.commandArguments ? {
|
|
59968
|
+
commandArguments: session.commandArguments,
|
|
59969
|
+
rememberWhere: displayPath(ctx.cwd, 28)
|
|
59970
|
+
} : {},
|
|
59971
|
+
siteNotes: permission.siteNotes,
|
|
59972
|
+
withheld: permission.withheld,
|
|
59973
|
+
...permission.screenConsent === true ? {
|
|
59974
|
+
screenConsent: {
|
|
59975
|
+
provider: session?.providerSummary ?? null
|
|
59976
|
+
}
|
|
59977
|
+
} : {}
|
|
59978
|
+
}
|
|
59979
|
+
) : null,
|
|
59980
|
+
saveSkillPrompt && permission === null && scheduleReviewPrompt === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59981
|
+
SaveSkillOverlay,
|
|
59982
|
+
{
|
|
59983
|
+
request: saveSkillPrompt.request,
|
|
59984
|
+
cwd: ctx.cwd,
|
|
59985
|
+
columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
|
|
59986
|
+
rows: terminal.rows,
|
|
59987
|
+
onAnswer: saveSkillPrompt.resolve
|
|
59988
|
+
},
|
|
59989
|
+
saveSkillPrompt.request.markdown
|
|
59990
|
+
) : null,
|
|
59991
|
+
planPrompt && permission === null && scheduleReviewPrompt === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
59992
|
+
PlanApprovalOverlay,
|
|
59993
|
+
{
|
|
59994
|
+
request: planPrompt.request,
|
|
59995
|
+
columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
|
|
59996
|
+
rows: terminal.rows,
|
|
59997
|
+
onAnswer: planPrompt.resolve,
|
|
59998
|
+
onInterrupt: interruptTurn
|
|
59999
|
+
},
|
|
60000
|
+
planPrompt.request.plan
|
|
60001
|
+
) : null,
|
|
60002
|
+
questionDialog && permission === null && scheduleReviewPrompt === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60003
|
+
QuestionDialog,
|
|
60004
|
+
{
|
|
60005
|
+
question: questionDialog.question,
|
|
60006
|
+
columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
|
|
60007
|
+
onAnswer: finishQuestionDialog
|
|
60008
|
+
},
|
|
60009
|
+
questionDialog.token
|
|
60010
|
+
) : null,
|
|
60011
|
+
scheduleReviewPrompt && permission === null && !transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60012
|
+
ScheduleReviewOverlay,
|
|
59863
60013
|
{
|
|
59864
|
-
|
|
59865
|
-
|
|
59866
|
-
|
|
59867
|
-
|
|
59868
|
-
|
|
60014
|
+
request: scheduleReviewPrompt.request,
|
|
60015
|
+
columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
|
|
60016
|
+
rows: Math.max(1, (terminal.rows ?? 24) - 2),
|
|
60017
|
+
onAnswer: scheduleReviewPrompt.resolve
|
|
60018
|
+
},
|
|
60019
|
+
scheduleReviewPrompt.token
|
|
60020
|
+
) : null,
|
|
60021
|
+
textPrompt ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60022
|
+
TextPrompt,
|
|
60023
|
+
{
|
|
60024
|
+
columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
|
|
60025
|
+
title: textPrompt.title,
|
|
60026
|
+
placeholder: textPrompt.placeholder,
|
|
60027
|
+
initialValue: textPrompt.initialValue,
|
|
60028
|
+
emptyNotice: textPrompt.emptyNotice,
|
|
60029
|
+
mask: textPrompt.mask === true,
|
|
60030
|
+
allowEmpty: textPrompt.allowEmpty === true,
|
|
60031
|
+
hidden: permission !== null || scheduleReviewPrompt !== null || childSurfaceOpen,
|
|
60032
|
+
onSubmit: submitTextPrompt,
|
|
60033
|
+
onCancel: cancelTextPrompt
|
|
60034
|
+
},
|
|
60035
|
+
textPrompt.token
|
|
60036
|
+
) : permission === null && scheduleReviewPrompt === null && !childSurfaceOpen && choicePicker?.kind === "reasoning-effort" && effortSlider ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60037
|
+
EffortSlider,
|
|
60038
|
+
{
|
|
60039
|
+
title: choicePicker.title,
|
|
60040
|
+
notice: choicePicker.notice,
|
|
60041
|
+
options: choicePicker.options,
|
|
60042
|
+
selected: selectedChoice,
|
|
60043
|
+
layout: effortSlider,
|
|
60044
|
+
columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN)
|
|
60045
|
+
}
|
|
60046
|
+
) : permission === null && scheduleReviewPrompt === null && !childSurfaceOpen && choicePicker ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60047
|
+
ChoicePicker,
|
|
60048
|
+
{
|
|
60049
|
+
busy: "busy" in choicePicker && choicePicker.busy === true,
|
|
60050
|
+
columns: Math.max(1, (terminal.columns ?? 80) - SCREEN_MARGIN),
|
|
60051
|
+
title: choicePicker.title,
|
|
60052
|
+
notice: choicePicker.notice,
|
|
60053
|
+
...choicePicker.kind === "workflow-runs" ? {
|
|
60054
|
+
subtitle: choicePicker.subtitle,
|
|
60055
|
+
hints: workflowRunsHints(workflowPickerCanStop, workflowPickerCanResume)
|
|
59869
60056
|
} : {},
|
|
59870
|
-
|
|
59871
|
-
|
|
59872
|
-
|
|
59873
|
-
|
|
60057
|
+
...choicePicker.kind === "account" ? { hints: ACCOUNT_PICKER_HINTS } : {},
|
|
60058
|
+
options: filterChoiceOptions(choicePicker.options, choiceQuery),
|
|
60059
|
+
query: choicePickerSearchable(choicePicker) ? choiceQuery : void 0,
|
|
60060
|
+
selected: selectedChoice,
|
|
60061
|
+
windowSize: choicePicker.kind === "command" || choicePicker.kind === "theme" ? choicePicker.windowSize : void 0,
|
|
60062
|
+
...choicePicker.kind === "theme" && terminal.rows >= 26 ? {
|
|
60063
|
+
extra: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ThemeSample, { width: Math.max(10, (terminal.columns ?? 80) - 6) })
|
|
60064
|
+
} : {}
|
|
60065
|
+
}
|
|
60066
|
+
) : permission === null && scheduleReviewPrompt === null && !childSurfaceOpen && copyPicker ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60067
|
+
CopyPicker,
|
|
60068
|
+
{
|
|
60069
|
+
targets: copyPicker.targets,
|
|
60070
|
+
selected: selectedCopy,
|
|
60071
|
+
...copyPicker.mode ? { mode: copyPicker.mode } : {}
|
|
60072
|
+
}
|
|
60073
|
+
) : null,
|
|
60074
|
+
scrollOpen && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60075
|
+
TranscriptScrollView,
|
|
60076
|
+
{
|
|
60077
|
+
messages: finalized,
|
|
60078
|
+
pending: messages.find((m) => m.pending) ?? null,
|
|
60079
|
+
pendingAt,
|
|
60080
|
+
height: Math.max(3, terminal.rows - SCROLL_VIEW_RESERVED_ROWS),
|
|
60081
|
+
columns: Math.max(4, terminal.columns - SCREEN_MARGIN),
|
|
60082
|
+
onClose: () => setScrollOpen(false)
|
|
60083
|
+
}
|
|
60084
|
+
) : null,
|
|
60085
|
+
viewingAgent && agentSurface?.kind === "transcript" && permission === null && choicePicker === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60086
|
+
AgentView,
|
|
60087
|
+
{
|
|
60088
|
+
agent: viewingAgent,
|
|
60089
|
+
tailOffset: agentSurface.tailOffset,
|
|
60090
|
+
pageRows: viewPageRows,
|
|
60091
|
+
terminalColumns: Math.max(1, terminal.columns - SCREEN_MARGIN),
|
|
60092
|
+
notice: viewNotice
|
|
60093
|
+
}
|
|
60094
|
+
) : null,
|
|
60095
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60096
|
+
ComposerFrame,
|
|
60097
|
+
{
|
|
60098
|
+
above: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60099
|
+
UpdateNoticeRow,
|
|
60100
|
+
{
|
|
60101
|
+
notice: updateNotice,
|
|
60102
|
+
columns: Math.max(2, (terminal.columns ?? 80) - SCREEN_MARGIN),
|
|
60103
|
+
critical: noticeIsCritical
|
|
60104
|
+
}
|
|
60105
|
+
),
|
|
60106
|
+
columns: Math.max(2, (terminal.columns ?? 80) - SCREEN_MARGIN),
|
|
60107
|
+
working: state === "thinking" || state === "tool" || visibleActiveTools.length > 0,
|
|
60108
|
+
...hypermode ? { mode: HYPERMODE } : {},
|
|
60109
|
+
activation: hypermodeActivation,
|
|
60110
|
+
animate: externalEditorRequest === null,
|
|
60111
|
+
focus: phase === "ready" && state !== "awaiting-permission" && !compacting && externalEditorRequest === null && conversationMutation === null && textPrompt === null && choicePicker === null && copyPicker === null && saveSkillPrompt === null && planPrompt === null && questionDialog === null && scheduleReviewPrompt === null && !scrollOpen && !childSurfaceOpen,
|
|
59874
60112
|
hidden: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || childSurfaceOpen,
|
|
59875
|
-
|
|
59876
|
-
|
|
59877
|
-
|
|
59878
|
-
|
|
59879
|
-
|
|
59880
|
-
|
|
59881
|
-
|
|
59882
|
-
|
|
59883
|
-
|
|
59884
|
-
|
|
59885
|
-
|
|
59886
|
-
|
|
59887
|
-
|
|
59888
|
-
|
|
59889
|
-
|
|
59890
|
-
|
|
59891
|
-
|
|
59892
|
-
|
|
59893
|
-
|
|
59894
|
-
|
|
59895
|
-
|
|
59896
|
-
|
|
59897
|
-
|
|
59898
|
-
|
|
59899
|
-
|
|
59900
|
-
|
|
59901
|
-
|
|
59902
|
-
|
|
59903
|
-
|
|
59904
|
-
|
|
59905
|
-
|
|
59906
|
-
|
|
59907
|
-
|
|
59908
|
-
|
|
59909
|
-
|
|
59910
|
-
|
|
59911
|
-
|
|
59912
|
-
|
|
59913
|
-
|
|
59914
|
-
|
|
59915
|
-
|
|
59916
|
-
|
|
60113
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60114
|
+
Composer,
|
|
60115
|
+
{
|
|
60116
|
+
attachmentFloor,
|
|
60117
|
+
...viewingAgent ? {
|
|
60118
|
+
placeholder: `Message @${[...viewingAgent.agentId].slice(0, 20).join("")}\u2026`
|
|
60119
|
+
} : examplePrompts && history.length === 0 && !messages.some((message) => message.role === "user") ? {
|
|
60120
|
+
placeholder: examplePlaceholder(exampleFile, exampleSeedRef.current)
|
|
60121
|
+
} : {},
|
|
60122
|
+
mayReadImage: imageReadPolicy,
|
|
60123
|
+
reasoningEffortLevels: session?.reasoningEffortLevels,
|
|
60124
|
+
onCycleMode: cyclePermissionMode,
|
|
60125
|
+
disabled: transcriptScreen || fullscreenSearching || scrollOpen || jobSurface !== null || phase !== "ready" || state === "awaiting-permission" || compacting || conversationMutation !== null || externalEditorRequest !== null || railFocus !== null || childSurfaceOpen,
|
|
60126
|
+
hidden: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null || textPrompt !== null || choicePicker !== null || copyPicker !== null || childSurfaceOpen,
|
|
60127
|
+
escapeInterrupts: !compacting && (state === "thinking" || state === "tool" || pendingModelSwitchRef.current !== null) || handoffPark !== null && state === "idle",
|
|
60128
|
+
onSubmit: handleSubmit,
|
|
60129
|
+
onNotice: (text) => pushMessage("system", text),
|
|
60130
|
+
onFooterNotice: notices.add,
|
|
60131
|
+
onFooterNoticeRemove: notices.remove,
|
|
60132
|
+
onClearedDraft: (text) => setHistory((prev) => [...prev, text]),
|
|
60133
|
+
onStepReasoningEffort: stepReasoningEffort,
|
|
60134
|
+
onExternalEdit: requestExternalEditor,
|
|
60135
|
+
onToggleThinking: toggleThinking,
|
|
60136
|
+
onEditPrevious: openPromptEditor,
|
|
60137
|
+
draftToRestore: composerDraft,
|
|
60138
|
+
onDraftRestored: (token) => setComposerDraft((draft) => draft?.token === token ? null : draft),
|
|
60139
|
+
onDraftPresenceChange: setComposerHasDraft,
|
|
60140
|
+
onHistorySearchChange: setComposerSearching,
|
|
60141
|
+
onOpenAgentPanel: focusAgentRail,
|
|
60142
|
+
onOpenAgents: () => void openAgentCockpit(),
|
|
60143
|
+
onOpenWorkspaces: onOpenWorkspaces ? () => void onOpenWorkspaces().then((opened) => {
|
|
60144
|
+
if (!opened) void openAgentCockpit();
|
|
60145
|
+
}) : void 0,
|
|
60146
|
+
onScrollTranscript: () => fullscreenControl.current ? fullscreenControl.current.scroll("page-up") : setScrollOpen(true),
|
|
60147
|
+
onRecallQueued: recallQueuedPrompt,
|
|
60148
|
+
queuedHintCount,
|
|
60149
|
+
queuedEdit: {
|
|
60150
|
+
available: queued.some(isRecallableHumanPrompt),
|
|
60151
|
+
selected: queueSelection !== null,
|
|
60152
|
+
onMove: moveQueueSelection,
|
|
60153
|
+
onLoad: loadSelectedQueued,
|
|
60154
|
+
onLeave: /* @__PURE__ */ __name(() => setQueueSelection(null), "onLeave")
|
|
60155
|
+
},
|
|
60156
|
+
onSendNow: sendPendingNow,
|
|
60157
|
+
onBackgroundCommand: backgroundRunningCommand,
|
|
60158
|
+
onStopAllAgents: requestStopAllAgents,
|
|
60159
|
+
railFocused: railFocus !== null,
|
|
60160
|
+
userCommands,
|
|
60161
|
+
builtins: hostCommands.map((command) => ({
|
|
60162
|
+
...command,
|
|
60163
|
+
description: command.unavailable?.(slashCtx) ?? command.description
|
|
60164
|
+
})),
|
|
60165
|
+
mentionCandidates,
|
|
60166
|
+
mentionExtras: mentionSources.extras,
|
|
60167
|
+
history,
|
|
60168
|
+
...composerTriggers ? { triggers: composerTriggers } : {},
|
|
60169
|
+
turnActive: !compacting && (state === "thinking" || state === "tool")
|
|
60170
|
+
}
|
|
60171
|
+
)
|
|
59917
60172
|
}
|
|
59918
60173
|
)
|
|
59919
|
-
}
|
|
59920
|
-
|
|
59921
|
-
|
|
59922
|
-
|
|
59923
|
-
|
|
59924
|
-
|
|
59925
|
-
|
|
59926
|
-
|
|
59927
|
-
|
|
59928
|
-
|
|
59929
|
-
|
|
59930
|
-
|
|
60174
|
+
] }),
|
|
60175
|
+
phase === "trust" || transcriptScreen || !showComposerSurface || statusLineText === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(StatusLineRows, { text: statusLineText, padding: ctx.statusLine?.padding ?? 0 }),
|
|
60176
|
+
phase === "trust" || transcriptScreen || agentSurface?.kind === "cockpit" || dialogShowing && !exitHint && !noticeIsImmediate ? null : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60177
|
+
StatusBar,
|
|
60178
|
+
{
|
|
60179
|
+
provider: session?.providerSummary ?? null,
|
|
60180
|
+
model: withAccountLabel(
|
|
60181
|
+
autoActive && ctx.routing && !palDefinitionRef.current ? autoModelLabel(session?.autoRoute) : session?.modelSummary ?? null,
|
|
60182
|
+
session?.providerSummary ?? null,
|
|
60183
|
+
session?.account?.label
|
|
60184
|
+
),
|
|
60185
|
+
effort: reasoningEffort,
|
|
60186
|
+
fast: fastMode,
|
|
60187
|
+
goal: statusGoal,
|
|
60188
|
+
state,
|
|
60189
|
+
hint: statusHint,
|
|
60190
|
+
hintDim: exitHint !== null,
|
|
60191
|
+
notice: currentNotice && (noticeIsImmediate || !boxOwnsKeys) ? {
|
|
60192
|
+
text: currentNotice.text,
|
|
60193
|
+
...currentNotice.tone ? { tone: currentNotice.tone } : {}
|
|
60194
|
+
} : null,
|
|
60195
|
+
dialogOpen: boxOwnsKeys,
|
|
60196
|
+
permissionMode: displayedPermissionMode,
|
|
60197
|
+
canCycleMode: true,
|
|
60198
|
+
sandboxShell,
|
|
60199
|
+
composerMounted: showComposerSurface,
|
|
60200
|
+
restingHint: ctx.statusLine === void 0,
|
|
60201
|
+
shellCount: showComposerSurface && !childSurfaceOpen ? runningShellCount : 0,
|
|
60202
|
+
monitorCount: showComposerSurface && !childSurfaceOpen ? runningMonitorCount : 0,
|
|
60203
|
+
pr: prStatus,
|
|
60204
|
+
hyperlinks,
|
|
60205
|
+
agentCount: footerKeysLive && !onOpenWorkspaces ? runningAgentCount : 0,
|
|
60206
|
+
workflowCount: footerKeysLive && !onOpenWorkspaces ? runningWorkflowCount : 0,
|
|
60207
|
+
canManage: footerKeysLive && railFocus === null && (runningShellCount > 0 || railHasRows),
|
|
60208
|
+
shellsSelected: railFocus === SHELLS_FOCUS,
|
|
60209
|
+
...tasks.length > 0 && showComposerSurface && !childSurfaceOpen ? { tasksOpen: checklistOpen } : {},
|
|
60210
|
+
...railHintText !== void 0 ? { railHint: railHintText } : {}
|
|
60211
|
+
}
|
|
59931
60212
|
),
|
|
59932
|
-
|
|
59933
|
-
|
|
59934
|
-
|
|
59935
|
-
|
|
59936
|
-
|
|
59937
|
-
|
|
59938
|
-
|
|
59939
|
-
|
|
59940
|
-
|
|
59941
|
-
|
|
59942
|
-
|
|
59943
|
-
|
|
59944
|
-
|
|
59945
|
-
|
|
59946
|
-
|
|
59947
|
-
|
|
59948
|
-
|
|
59949
|
-
|
|
59950
|
-
|
|
59951
|
-
|
|
59952
|
-
|
|
59953
|
-
|
|
59954
|
-
|
|
59955
|
-
|
|
59956
|
-
|
|
59957
|
-
|
|
59958
|
-
|
|
59959
|
-
|
|
59960
|
-
|
|
59961
|
-
|
|
59962
|
-
|
|
59963
|
-
|
|
59964
|
-
|
|
59965
|
-
|
|
59966
|
-
|
|
59967
|
-
|
|
59968
|
-
|
|
59969
|
-
|
|
59970
|
-
|
|
59971
|
-
|
|
59972
|
-
|
|
59973
|
-
|
|
59974
|
-
|
|
59975
|
-
|
|
59976
|
-
|
|
59977
|
-
|
|
59978
|
-
|
|
59979
|
-
|
|
59980
|
-
|
|
59981
|
-
|
|
59982
|
-
|
|
59983
|
-
|
|
59984
|
-
|
|
59985
|
-
|
|
59986
|
-
|
|
59987
|
-
|
|
59988
|
-
|
|
59989
|
-
|
|
59990
|
-
|
|
59991
|
-
|
|
59992
|
-
|
|
59993
|
-
|
|
59994
|
-
|
|
59995
|
-
|
|
59996
|
-
|
|
59997
|
-
|
|
59998
|
-
|
|
59999
|
-
|
|
60000
|
-
|
|
60001
|
-
|
|
60002
|
-
|
|
60003
|
-
|
|
60004
|
-
|
|
60005
|
-
{
|
|
60006
|
-
messages: finalized,
|
|
60007
|
-
pending: messages.find((m) => m.pending) ?? null,
|
|
60008
|
-
pendingAt,
|
|
60009
|
-
rows: terminal.rows,
|
|
60010
|
-
columns: terminal.columns,
|
|
60011
|
-
hyperlinks,
|
|
60012
|
-
dialogWaiting: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null,
|
|
60013
|
-
onClose: () => setTranscriptScreen(false)
|
|
60014
|
-
}
|
|
60015
|
-
) : null,
|
|
60016
|
-
jobSurface && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
60017
|
-
BackgroundJobsPanel,
|
|
60018
|
-
{
|
|
60019
|
-
entries: backgroundRows(backgroundJobs, subagents),
|
|
60020
|
-
selectedKey: jobSurface.selectedKey,
|
|
60021
|
-
detailKey: jobSurface.detailKey,
|
|
60022
|
-
tailOffset: jobSurface.tailOffset,
|
|
60023
|
-
readJob: (id) => session?.readJob?.(id),
|
|
60024
|
-
rows: terminal.rows,
|
|
60025
|
-
columns: Math.max(1, terminal.columns - 2),
|
|
60026
|
-
now: jobClock,
|
|
60027
|
-
busyJobId: jobSurface.busyJobId,
|
|
60028
|
-
notice: jobSurface.notice
|
|
60029
|
-
}
|
|
60030
|
-
) : null
|
|
60031
|
-
] })
|
|
60213
|
+
showComposerSurface && permission === null && agentSurface === null && !transcriptScreen && !scrollOpen && jobSurface === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AgentNarrationBand, { lines: narration }) : null,
|
|
60214
|
+
showComposerSurface && (agentSurface === null || viewingAgent !== void 0) && !transcriptScreen && !scrollOpen && jobSurface === null && scheduleReviewPrompt === null && (liveSubagents.length > 0 || liveWorkflows.length > 0 || viewingAgent !== void 0) ? (
|
|
60215
|
+
// The active agents remain in memory while the schedule review
|
|
60216
|
+
// owns the available rows; the panel returns after the decision.
|
|
60217
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60218
|
+
AgentTaskPanel,
|
|
60219
|
+
{
|
|
60220
|
+
agents: liveSubagents,
|
|
60221
|
+
workflows: liveWorkflows,
|
|
60222
|
+
terminalRows: terminal.rows,
|
|
60223
|
+
terminalColumns: terminal.columns,
|
|
60224
|
+
compact: permission !== null,
|
|
60225
|
+
viewingId: viewingAgent?.viewId ?? null,
|
|
60226
|
+
...railFocus !== null && railFocus !== SHELLS_FOCUS ? {
|
|
60227
|
+
selectedIndex: railFocus === "main" ? 0 : railFocus.startsWith("workflow:") ? liveSubagents.length + (railShowsMain(liveSubagents.length, viewingAgent?.viewId) ? 1 : 0) + Math.max(
|
|
60228
|
+
0,
|
|
60229
|
+
liveWorkflows.findIndex((flow) => flow.focusId === railFocus)
|
|
60230
|
+
) : liveSubagents.findIndex((agent) => agent.viewId === railFocus) + (railShowsMain(liveSubagents.length, viewingAgent?.viewId) ? 1 : 0)
|
|
60231
|
+
} : {}
|
|
60232
|
+
}
|
|
60233
|
+
)
|
|
60234
|
+
) : showComposerSurface && permission === null && scheduleReviewPrompt === null && agentSurface?.kind === "cockpit" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60235
|
+
AgentCockpit,
|
|
60236
|
+
{
|
|
60237
|
+
agents: subagents,
|
|
60238
|
+
runs: workflowRuns,
|
|
60239
|
+
selectedPhaseId: agentSurface.selectedPhaseId,
|
|
60240
|
+
selectedId: agentSurface.selectedId,
|
|
60241
|
+
focus: agentSurface.focus,
|
|
60242
|
+
terminalRows: terminal.rows,
|
|
60243
|
+
terminalColumns: terminal.columns
|
|
60244
|
+
}
|
|
60245
|
+
) : showComposerSurface && permission === null && scheduleReviewPrompt === null && agentSurface?.kind === "transcript" && selectedSubagent && viewingAgent === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60246
|
+
AgentTranscript,
|
|
60247
|
+
{
|
|
60248
|
+
agent: selectedSubagent,
|
|
60249
|
+
tailOffset: agentSurface.tailOffset,
|
|
60250
|
+
terminalRows: terminal.rows,
|
|
60251
|
+
terminalColumns: terminal.columns,
|
|
60252
|
+
escapeTo: agentSurface.fromRail ? "back" : "agents"
|
|
60253
|
+
}
|
|
60254
|
+
) : null,
|
|
60255
|
+
transcriptScreen ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60256
|
+
TranscriptScreen,
|
|
60257
|
+
{
|
|
60258
|
+
messages: finalized,
|
|
60259
|
+
pending: messages.find((m) => m.pending) ?? null,
|
|
60260
|
+
pendingAt,
|
|
60261
|
+
rows: terminal.rows,
|
|
60262
|
+
columns: terminal.columns,
|
|
60263
|
+
hyperlinks,
|
|
60264
|
+
dialogWaiting: permission !== null || saveSkillPrompt !== null || planPrompt !== null || questionDialog !== null || scheduleReviewPrompt !== null,
|
|
60265
|
+
onClose: () => setTranscriptScreen(false)
|
|
60266
|
+
}
|
|
60267
|
+
) : null,
|
|
60268
|
+
jobSurface && permission === null && scheduleReviewPrompt === null ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
60269
|
+
BackgroundJobsPanel,
|
|
60270
|
+
{
|
|
60271
|
+
entries: backgroundRows(backgroundJobs, subagents),
|
|
60272
|
+
selectedKey: jobSurface.selectedKey,
|
|
60273
|
+
detailKey: jobSurface.detailKey,
|
|
60274
|
+
tailOffset: jobSurface.tailOffset,
|
|
60275
|
+
readJob: (id) => session?.readJob?.(id),
|
|
60276
|
+
rows: terminal.rows,
|
|
60277
|
+
columns: Math.max(1, terminal.columns - SCREEN_MARGIN),
|
|
60278
|
+
now: jobClock,
|
|
60279
|
+
busyJobId: jobSurface.busyJobId,
|
|
60280
|
+
notice: jobSurface.notice
|
|
60281
|
+
}
|
|
60282
|
+
) : null
|
|
60283
|
+
]
|
|
60284
|
+
}
|
|
60285
|
+
)
|
|
60032
60286
|
}
|
|
60033
60287
|
)
|
|
60034
60288
|
);
|
|
@@ -60049,8 +60303,9 @@ function describeJobExit(job) {
|
|
|
60049
60303
|
return `background job ${job.jobId} (${job.command}) ${outcome}`;
|
|
60050
60304
|
}
|
|
60051
60305
|
__name(describeJobExit, "describeJobExit");
|
|
60306
|
+
var SCREEN_MARGIN = 1;
|
|
60052
60307
|
function TranscriptFrame({ children }) {
|
|
60053
|
-
return /* @__PURE__ */ (0,
|
|
60308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Box_default, { flexDirection: "column", children });
|
|
60054
60309
|
}
|
|
60055
60310
|
__name(TranscriptFrame, "TranscriptFrame");
|
|
60056
60311
|
function hintForPhase(phase, state, hasDraft = false) {
|
|
@@ -60457,6 +60712,7 @@ export {
|
|
|
60457
60712
|
stripFenceIndent,
|
|
60458
60713
|
glyphForRole,
|
|
60459
60714
|
startOnFreshLine,
|
|
60715
|
+
startOnCleanScreen,
|
|
60460
60716
|
createLivePaint,
|
|
60461
60717
|
terminalFocus,
|
|
60462
60718
|
trailFromRecords,
|
|
@@ -60509,4 +60765,4 @@ react/cjs/react-jsx-runtime.production.js:
|
|
|
60509
60765
|
* LICENSE file in the root directory of this source tree.
|
|
60510
60766
|
*)
|
|
60511
60767
|
*/
|
|
60512
|
-
//# sourceMappingURL=chunk-
|
|
60768
|
+
//# sourceMappingURL=chunk-K6ZJ2G2V.js.map
|