@namzu/cli 44.1.1 → 45.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +179 -0
- package/README.md +4 -2
- package/dist/bin.js +1 -1
- package/dist/chunks/acp-XSAUUT2D.js +7648 -0
- package/dist/chunks/acp-XSAUUT2D.js.map +6 -0
- package/dist/chunks/{activity-command-Y5ZLCQ63.js → activity-command-DB4DREW7.js} +16 -15
- package/dist/chunks/activity-command-DB4DREW7.js.map +6 -0
- package/dist/chunks/{add-F7M57FGR.js → add-NVXRVUGY.js} +27 -21
- package/dist/chunks/add-NVXRVUGY.js.map +6 -0
- package/dist/chunks/{agent-AFX2UZU5.js → agent-6TD66IMV.js} +43 -34
- package/dist/chunks/agent-session-3A5K5VK3.js +69 -0
- package/dist/chunks/{archive-6NM6DYAT.js → archive-A3X7KX2U.js} +11 -10
- package/dist/chunks/archive-A3X7KX2U.js.map +6 -0
- package/dist/chunks/{bin-main-I6CHRYYQ.js → bin-main-5PYV7WYI.js} +11 -11
- package/dist/chunks/binding-EMMG5PAE.js +17 -0
- package/dist/chunks/{browser-OPMOTWTV.js → browser-FUFFJBRR.js} +6 -6
- package/dist/chunks/{chat-KGVPXQS6.js → chat-M653DEAF.js} +20 -19
- package/dist/chunks/chat-M653DEAF.js.map +6 -0
- package/dist/chunks/{chunk-TX2PUHTP.js → chunk-24FBGXYR.js} +3 -3
- package/dist/chunks/{chunk-2NGXQQPP.js → chunk-2OAD3CZE.js} +3 -3
- package/dist/chunks/chunk-2YCPLLUW.js +61 -0
- package/dist/chunks/chunk-2YCPLLUW.js.map +6 -0
- package/dist/chunks/{chunk-JCUPTKQY.js → chunk-325X27UO.js} +4 -4
- package/dist/chunks/{chunk-REDD2WY7.js → chunk-43HR3AF5.js} +2 -2
- package/dist/chunks/{chunk-DESOZLEL.js → chunk-43PTHA5N.js} +2 -2
- package/dist/chunks/{chunk-T5POXPXY.js → chunk-46OOPRR6.js} +3 -3
- package/dist/chunks/chunk-4DVCHAWN.js +219 -0
- package/dist/chunks/chunk-4DVCHAWN.js.map +6 -0
- package/dist/chunks/chunk-667W6Z5W.js +309 -0
- package/dist/chunks/chunk-667W6Z5W.js.map +6 -0
- package/dist/chunks/chunk-6HTC5TQ3.js +89 -0
- package/dist/chunks/chunk-6HTC5TQ3.js.map +6 -0
- package/dist/chunks/chunk-6PDIDZGX.js +363 -0
- package/dist/chunks/chunk-6PDIDZGX.js.map +6 -0
- package/dist/chunks/{chunk-UHPRMPWX.js → chunk-6TT7NXLP.js} +182 -139
- package/dist/chunks/chunk-6TT7NXLP.js.map +6 -0
- package/dist/chunks/{chunk-EFQ6FUFZ.js → chunk-6ZEHXLF7.js} +2 -2
- package/dist/chunks/{chunk-RSRJQB6Q.js → chunk-7DR7EU3J.js} +2078 -850
- package/dist/chunks/chunk-7DR7EU3J.js.map +6 -0
- package/dist/chunks/chunk-7NJAEWFK.js +153 -0
- package/dist/chunks/chunk-7NJAEWFK.js.map +6 -0
- package/dist/chunks/{chunk-I32JTWDW.js → chunk-7TBETDTX.js} +2 -2
- package/dist/chunks/{chunk-465CVUN4.js → chunk-ADCVLGQO.js} +3 -3
- package/dist/chunks/{chunk-W5QFVC74.js → chunk-AHNXQAYZ.js} +91 -56
- package/dist/chunks/chunk-AHNXQAYZ.js.map +6 -0
- package/dist/chunks/{chunk-W4E2N7TY.js → chunk-ANHFJD66.js} +4 -4
- package/dist/chunks/{chunk-UGAT33T5.js → chunk-B6INWHLR.js} +3 -3
- package/dist/chunks/{chunk-Y44FAVKA.js → chunk-BICC735N.js} +3 -3
- package/dist/chunks/{chunk-UC3ZACVN.js → chunk-BOM64EUQ.js} +2 -2
- package/dist/chunks/{chunk-RFMODICJ.js → chunk-C4MAQ64X.js} +84 -42
- package/dist/chunks/chunk-C4MAQ64X.js.map +6 -0
- package/dist/chunks/chunk-CDDS3UKB.js +425 -0
- package/dist/chunks/chunk-CDDS3UKB.js.map +6 -0
- package/dist/chunks/{chunk-CTN4O42X.js → chunk-D23EJNO5.js} +3 -3
- package/dist/chunks/{chunk-G5RAECIB.js → chunk-E2MNVA3X.js} +2 -2
- package/dist/chunks/{chunk-BR6EWAKQ.js → chunk-E3FA5H3Q.js} +5 -5
- package/dist/chunks/{chunk-LUSUJZR2.js → chunk-EFU2OFEK.js} +2 -2
- package/dist/chunks/chunk-EXFSMYH4.js +83 -0
- package/dist/chunks/chunk-EXFSMYH4.js.map +6 -0
- package/dist/chunks/{chunk-EFEZWLZC.js → chunk-FUJSGQYW.js} +17 -13
- package/dist/chunks/chunk-FUJSGQYW.js.map +6 -0
- package/dist/chunks/{chunk-FPLDTTM2.js → chunk-FZR4XULA.js} +6 -6
- package/dist/chunks/{chunk-YAEHAYI4.js → chunk-G5FWVYK2.js} +47 -9
- package/dist/chunks/chunk-G5FWVYK2.js.map +6 -0
- package/dist/chunks/{chunk-6LLJQ3KY.js → chunk-G6YSAHKC.js} +4 -3
- package/dist/chunks/chunk-G6YSAHKC.js.map +6 -0
- package/dist/chunks/{chunk-JSFF2HGX.js → chunk-GAEZQRQI.js} +3 -3
- package/dist/chunks/{chunk-UP3SWACV.js → chunk-GCFXQSN6.js} +2 -2
- package/dist/chunks/{chunk-XPS3W7FC.js → chunk-GMUWAUKQ.js} +2 -2
- package/dist/chunks/chunk-GWGIAZLZ.js +5853 -0
- package/dist/chunks/chunk-GWGIAZLZ.js.map +6 -0
- package/dist/chunks/chunk-H6AUN2YD.js +290 -0
- package/dist/chunks/chunk-H6AUN2YD.js.map +6 -0
- package/dist/chunks/{chunk-KHM2XON5.js → chunk-HFD2VRQP.js} +18 -4
- package/dist/chunks/chunk-HFD2VRQP.js.map +6 -0
- package/dist/chunks/{chunk-CRWNJ62V.js → chunk-HGIIAAEG.js} +5 -6
- package/dist/chunks/chunk-HGIIAAEG.js.map +6 -0
- package/dist/chunks/{chunk-WLAI3VCE.js → chunk-HH3NBBBE.js} +2 -2
- package/dist/chunks/{chunk-WPNT6IGU.js → chunk-HV2JFRSE.js} +2 -2
- package/dist/chunks/{chunk-ZXKN4TWP.js → chunk-IRUDNBAR.js} +242 -447
- package/dist/chunks/chunk-IRUDNBAR.js.map +6 -0
- package/dist/chunks/chunk-IYEDXZQZ.js +4322 -0
- package/dist/chunks/chunk-IYEDXZQZ.js.map +6 -0
- package/dist/chunks/{chunk-AE4LOPZF.js → chunk-J2FGTLZV.js} +2 -2
- package/dist/chunks/{chunk-T2PF65KB.js → chunk-JAB62RI5.js} +2 -2
- package/dist/chunks/{chunk-HXZ2JXCO.js → chunk-JKPUOSDC.js} +2 -2
- package/dist/chunks/{chunk-GSYPRZZU.js → chunk-K5FQ4G64.js} +2 -2
- package/dist/chunks/{chunk-NS7EU37U.js → chunk-KVCYYXCS.js} +2 -2
- package/dist/chunks/{chunk-PWOG3OMH.js → chunk-KZ5WYSA6.js} +9 -9
- package/dist/chunks/chunk-L2WEBN6A.js +49 -0
- package/dist/chunks/chunk-L2WEBN6A.js.map +6 -0
- package/dist/chunks/{chunk-7U36A4WQ.js → chunk-L6QJZZCJ.js} +55 -5
- package/dist/chunks/chunk-L6QJZZCJ.js.map +6 -0
- package/dist/chunks/{chunk-ORVWGSLG.js → chunk-LHZSSQ6K.js} +4 -4
- package/dist/chunks/{chunk-2NFPIARP.js → chunk-LR4QQMJH.js} +4 -4
- package/dist/chunks/{chunk-3NJPNX6V.js → chunk-LVVD32KJ.js} +14 -4
- package/dist/chunks/chunk-LVVD32KJ.js.map +6 -0
- package/dist/chunks/{chunk-JAYPFJGZ.js → chunk-M7LCVDP3.js} +9 -2
- package/dist/chunks/chunk-M7LCVDP3.js.map +6 -0
- package/dist/chunks/{chunk-JV3LONAU.js → chunk-MDK4RMBQ.js} +9 -3
- package/dist/chunks/{chunk-JV3LONAU.js.map → chunk-MDK4RMBQ.js.map} +1 -1
- package/dist/chunks/{chunk-QNTR7X7D.js → chunk-MKRYUMLP.js} +6 -6
- package/dist/chunks/{chunk-O4MFP726.js → chunk-MMZHUQZQ.js} +4427 -1413
- package/dist/chunks/chunk-MMZHUQZQ.js.map +6 -0
- package/dist/chunks/{chunk-WKUTR7YW.js → chunk-MYSU54EZ.js} +86 -21
- package/dist/chunks/chunk-MYSU54EZ.js.map +6 -0
- package/dist/chunks/{chunk-5UB2LLPG.js → chunk-NUNOIP4Y.js} +2 -2
- package/dist/chunks/{chunk-ZRBGY4SL.js → chunk-NXX6C3WS.js} +2 -2
- package/dist/chunks/{chunk-ZNYKZ3MI.js → chunk-OENL667J.js} +2 -2
- package/dist/chunks/{chunk-LS75R55C.js → chunk-OMRU22BQ.js} +4 -4
- package/dist/chunks/{chunk-BLM6IQS4.js → chunk-P6FEQPES.js} +5 -5
- package/dist/chunks/{chunk-BIGRB2H4.js → chunk-P6RUYL3F.js} +3 -3
- package/dist/chunks/chunk-P7MNE6YP.js +456 -0
- package/dist/chunks/chunk-P7MNE6YP.js.map +6 -0
- package/dist/chunks/{chunk-6Z2ZJ4BA.js → chunk-RJQ6WQYX.js} +358 -32
- package/dist/chunks/chunk-RJQ6WQYX.js.map +6 -0
- package/dist/chunks/{chunk-YPRKTJ5P.js → chunk-S2UDKXWH.js} +2 -2
- package/dist/chunks/chunk-S766UWAQ.js +227 -0
- package/dist/chunks/chunk-S766UWAQ.js.map +6 -0
- package/dist/chunks/chunk-S7WRWA25.js +33 -0
- package/dist/chunks/chunk-S7WRWA25.js.map +6 -0
- package/dist/chunks/{chunk-XFNCCDJK.js → chunk-TFOIA3U3.js} +2 -2
- package/dist/chunks/{chunk-NPZY5OJ5.js → chunk-THJQXERD.js} +8 -8
- package/dist/chunks/{chunk-ZUN2WRCB.js → chunk-THQAGFMO.js} +17 -17
- package/dist/chunks/{chunk-FKIO77IY.js → chunk-THUX2WOG.js} +12 -12
- package/dist/chunks/{chunk-AY7B43MK.js → chunk-TKIWAXRU.js} +13 -13
- package/dist/chunks/{chunk-QV43JSBP.js → chunk-TUF4NNJV.js} +2 -2
- package/dist/chunks/{chunk-KK2L4FD2.js → chunk-U33GIKBK.js} +4 -4
- package/dist/chunks/{chunk-WLUGKIYQ.js → chunk-U3EQTU4G.js} +4 -4
- package/dist/chunks/{chunk-VR4MTSMH.js → chunk-U6U472VN.js} +3 -3
- package/dist/chunks/chunk-VAP6YMB6.js +362 -0
- package/dist/chunks/chunk-VAP6YMB6.js.map +6 -0
- package/dist/chunks/{chunk-RV5QY3IY.js → chunk-VGUU6E6X.js} +6 -6
- package/dist/chunks/chunk-VHFPIYVY.js +63 -0
- package/dist/chunks/chunk-VHFPIYVY.js.map +6 -0
- package/dist/chunks/{chunk-LN26A356.js → chunk-VY377HAA.js} +4 -4
- package/dist/chunks/{chunk-HYFX32Y3.js → chunk-WG32TSVL.js} +3 -3
- package/dist/chunks/{chunk-ZATO2QOS.js → chunk-WSIMHBEQ.js} +2 -2
- package/dist/chunks/{chunk-JH3SDABI.js → chunk-X4WCRRZV.js} +6 -6
- package/dist/chunks/chunk-X7WLWVR7.js +189 -0
- package/dist/chunks/chunk-X7WLWVR7.js.map +6 -0
- package/dist/chunks/{chunk-2OVZNENW.js → chunk-XH5YF2YX.js} +2 -2
- package/dist/chunks/chunk-Y2PZNQH5.js +413 -0
- package/dist/chunks/chunk-Y2PZNQH5.js.map +6 -0
- package/dist/chunks/{chunk-CMAZ3DYB.js → chunk-YLNQLDMP.js} +5 -5
- package/dist/chunks/chunk-YOWYTBJS.js +96 -0
- package/dist/chunks/chunk-YOWYTBJS.js.map +6 -0
- package/dist/chunks/{cli-runtime-HTTDQPEZ.js → cli-runtime-QWBGE2VF.js} +16 -15
- package/dist/chunks/cli-runtime-QWBGE2VF.js.map +6 -0
- package/dist/chunks/{commands-ZD2L5QMI.js → commands-LVUUZ6LF.js} +5 -5
- package/dist/chunks/{crash-report-2IRIZSBD.js → crash-report-PGXMRS5P.js} +8 -8
- package/dist/chunks/{dist-NL7WG7PX.js → dist-6HN2ZMLV.js} +2 -2
- package/dist/chunks/{dist-45IFTDJW.js → dist-JJANJMY5.js} +162 -13
- package/dist/chunks/dist-JJANJMY5.js.map +6 -0
- package/dist/chunks/{dist-GSYFGRQT.js → dist-JRBSW53E.js} +2 -2
- package/dist/chunks/{dist-OJTB6QLR.js → dist-NSCNMOX7.js} +2 -2
- package/dist/chunks/{dist-FNGLTQIG.js → dist-TC6H7TPQ.js} +78 -2
- package/dist/chunks/{dist-TWYNAZDN.js → dist-V4SNHHMB.js} +2 -2
- package/dist/chunks/{dist-RQJEJN3Z.js → dist-VON3NRHE.js} +35 -6
- package/dist/chunks/dist-VON3NRHE.js.map +6 -0
- package/dist/chunks/{dist-OCZJJFHF.js → dist-VV3V36IP.js} +2 -2
- package/dist/chunks/{doctor-NKPCWPB4.js → doctor-P7L35KGN.js} +20 -16
- package/dist/chunks/{drain-YTSVAQP5.js → drain-HOHRXIYY.js} +14 -14
- package/dist/chunks/entry-L7XZIE7J.js +233 -0
- package/dist/chunks/entry-L7XZIE7J.js.map +6 -0
- package/dist/chunks/{eval-ILFXDQUQ.js → eval-2F473JAC.js} +2 -2
- package/dist/chunks/{exec-3JDAB34N.js → exec-VCM4AL2S.js} +65 -51
- package/dist/chunks/exec-VCM4AL2S.js.map +6 -0
- package/dist/chunks/{github-FH7PPWVW.js → github-OFCHQMQQ.js} +5 -5
- package/dist/chunks/{home-5OIZIDIT.js → home-R6WCBSOT.js} +3 -3
- package/dist/chunks/host-JGPJVLTC.js +28 -0
- package/dist/chunks/{host-queries-SO2NOQRR.js → host-queries-QWV47CFK.js} +17 -16
- package/dist/chunks/host-queries-QWV47CFK.js.map +6 -0
- package/dist/chunks/{learn-RHNMJ4BD.js → learn-3UPHM5OI.js} +14 -14
- package/dist/chunks/{learn-builtin-UQ3MWGK6.js → learn-builtin-3Q4BJFCF.js} +20 -20
- package/dist/chunks/{lifecycle-RTDYXKBW.js → lifecycle-EJLVISCU.js} +37 -30
- package/dist/chunks/{list-G6OA34RL.js → list-DQJBF4AB.js} +18 -17
- package/dist/chunks/list-DQJBF4AB.js.map +6 -0
- package/dist/chunks/{live-44HBQCQY.js → live-IWDOVSLG.js} +18 -14
- package/dist/chunks/login-B2PHE6IL.js +34 -0
- package/dist/chunks/{logs-22QAEH2Q.js → logs-5UTV3FMG.js} +4 -4
- package/dist/chunks/{mcp-EXFVIHPJ.js → mcp-JN36OQLX.js} +32 -26
- package/dist/chunks/mcp-JN36OQLX.js.map +6 -0
- package/dist/chunks/{message-command-B4L2W4YZ.js → message-command-RMLQ2PU5.js} +54 -45
- package/dist/chunks/message-command-RMLQ2PU5.js.map +6 -0
- package/dist/chunks/mouse-WFSJSLQD.js +22 -0
- package/dist/chunks/open-LDBJL43A.js +20 -0
- package/dist/chunks/{operator-tools-TEP4UTI6.js → operator-tools-NA7PLRIP.js} +15 -14
- package/dist/chunks/operator-tools-NA7PLRIP.js.map +6 -0
- package/dist/chunks/{output-schema-FZXJ7V33.js → output-schema-UKYWRZPS.js} +3 -3
- package/dist/chunks/{pal-BUDEBIBJ.js → pal-MAVUNYMB.js} +20 -15
- package/dist/chunks/pal-MAVUNYMB.js.map +6 -0
- package/dist/chunks/palette-WDPS7W6Q.js +15 -0
- package/dist/chunks/peers-FBTQW2SY.js +18 -0
- package/dist/chunks/prefix-MLAG4KTK.js +14 -0
- package/dist/chunks/{providers-EQ32NZAT.js → providers-M75ET3GT.js} +45 -26
- package/dist/chunks/pty-VMUEEJRN.js +29 -0
- package/dist/chunks/pty-VMUEEJRN.js.map +6 -0
- package/dist/chunks/{resident-FSUGNG56.js → resident-URNRPE2S.js} +35 -33
- package/dist/chunks/resident-URNRPE2S.js.map +6 -0
- package/dist/chunks/resume-7B3EHDJ7.js +24 -0
- package/dist/chunks/resume-7B3EHDJ7.js.map +6 -0
- package/dist/chunks/{resume-command-DHPXCZVL.js → resume-command-5QGHV6WR.js} +4 -4
- package/dist/chunks/resume-command-5QGHV6WR.js.map +6 -0
- package/dist/chunks/{schedule-OJMZEWJG.js → schedule-BK3WF2VK.js} +8 -8
- package/dist/chunks/{service-EP2QHCK7.js → service-VWASFP3R.js} +38 -31
- package/dist/chunks/service-VWASFP3R.js.map +6 -0
- package/dist/chunks/{session-step-44XBOUDV.js → session-step-DORV5FER.js} +16 -16
- package/dist/chunks/session-step-DORV5FER.js.map +6 -0
- package/dist/chunks/{skills-YHAQXVP2.js → skills-TDDPMTQI.js} +12 -12
- package/dist/chunks/spaces-AEOU6MSZ.js +241 -0
- package/dist/chunks/spaces-AEOU6MSZ.js.map +6 -0
- package/dist/chunks/{start-check-KVZFDBD3.js → start-check-N4TPV2TM.js} +2 -2
- package/dist/chunks/start-check-N4TPV2TM.js.map +6 -0
- package/dist/chunks/{state-NXFKMBOX.js → state-SHLWYVZU.js} +2 -2
- package/dist/chunks/{store-JLTSSGKL.js → store-75YZOOZI.js} +4 -4
- package/dist/chunks/store-75YZOOZI.js.map +6 -0
- package/dist/chunks/{store-QNY242NN.js → store-CQVUIU7K.js} +6 -6
- package/dist/chunks/store-CQVUIU7K.js.map +6 -0
- package/dist/chunks/{store-KFJWAELA.js → store-GUSFCKJA.js} +13 -10
- package/dist/chunks/store-GUSFCKJA.js.map +6 -0
- package/dist/chunks/store-Z5H6LYVE.js +17 -0
- package/dist/chunks/store-Z5H6LYVE.js.map +6 -0
- package/dist/chunks/{tui-L5GKR237.js → tui-PGHWYFN4.js} +9702 -7547
- package/dist/chunks/tui-PGHWYFN4.js.map +6 -0
- package/dist/chunks/{upgrade-PROVWX55.js → upgrade-RHPZQ33L.js} +6 -6
- package/dist/chunks/{worktree-ELHDXX4X.js → worktree-5IYFN33C.js} +13 -12
- package/dist/chunks/worktree-5IYFN33C.js.map +6 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/login.d.ts +2 -2
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/manifest.d.ts +1 -0
- package/dist/commands/manifest.d.ts.map +1 -1
- package/dist/commands/spaces.d.ts +46 -0
- package/dist/commands/spaces.d.ts.map +1 -0
- package/dist/config/load.d.ts +6 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/model-environment.d.ts.map +1 -1
- package/dist/config/schema.d.ts +27 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/doctor/checks/index.d.ts +2 -1
- package/dist/doctor/checks/index.d.ts.map +1 -1
- package/dist/doctor/checks/terminal.d.ts +12 -0
- package/dist/doctor/checks/terminal.d.ts.map +1 -0
- package/dist/index.js +28 -23
- package/dist/integrations/accounts/activity.d.ts +39 -0
- package/dist/integrations/accounts/activity.d.ts.map +1 -0
- package/dist/integrations/accounts/binding.d.ts +30 -0
- package/dist/integrations/accounts/binding.d.ts.map +1 -0
- package/dist/integrations/accounts/codex-login.d.ts +33 -0
- package/dist/integrations/accounts/codex-login.d.ts.map +1 -0
- package/dist/integrations/accounts/host-facts.d.ts +22 -0
- package/dist/integrations/accounts/host-facts.d.ts.map +1 -0
- package/dist/integrations/accounts/open.d.ts +23 -0
- package/dist/integrations/accounts/open.d.ts.map +1 -0
- package/dist/integrations/accounts/rows.d.ts +45 -0
- package/dist/integrations/accounts/rows.d.ts.map +1 -0
- package/dist/integrations/clipboard/copy.d.ts +94 -0
- package/dist/integrations/clipboard/copy.d.ts.map +1 -0
- package/dist/integrations/clipboard/image-fit.d.ts +91 -0
- package/dist/integrations/clipboard/image-fit.d.ts.map +1 -0
- package/dist/integrations/clipboard/image-paths.d.ts +56 -0
- package/dist/integrations/clipboard/image-paths.d.ts.map +1 -0
- package/dist/integrations/clipboard/image.d.ts +80 -15
- package/dist/integrations/clipboard/image.d.ts.map +1 -1
- package/dist/integrations/clipboard/text-read.d.ts +28 -0
- package/dist/integrations/clipboard/text-read.d.ts.map +1 -0
- package/dist/integrations/clipboard/text.d.ts +16 -1
- package/dist/integrations/clipboard/text.d.ts.map +1 -1
- package/dist/integrations/clipboard/wsl.d.ts +38 -0
- package/dist/integrations/clipboard/wsl.d.ts.map +1 -0
- package/dist/integrations/outstanding/collect.d.ts +51 -0
- package/dist/integrations/outstanding/collect.d.ts.map +1 -0
- package/dist/integrations/outstanding/facts.d.ts +23 -0
- package/dist/integrations/outstanding/facts.d.ts.map +1 -0
- package/dist/integrations/outstanding/note.d.ts +26 -0
- package/dist/integrations/outstanding/note.d.ts.map +1 -0
- package/dist/integrations/outstanding/progress-notices.d.ts +66 -0
- package/dist/integrations/outstanding/progress-notices.d.ts.map +1 -0
- package/dist/integrations/outstanding/status.d.ts +104 -0
- package/dist/integrations/outstanding/status.d.ts.map +1 -0
- package/dist/integrations/peers/runtime.d.ts +12 -0
- package/dist/integrations/peers/runtime.d.ts.map +1 -1
- package/dist/integrations/providers/anthropic-endpoint.d.ts +34 -0
- package/dist/integrations/providers/anthropic-endpoint.d.ts.map +1 -0
- package/dist/integrations/providers/codex-account.d.ts +30 -0
- package/dist/integrations/providers/codex-account.d.ts.map +1 -0
- package/dist/integrations/providers/codex-oauth.d.ts +12 -0
- package/dist/integrations/providers/codex-oauth.d.ts.map +1 -1
- package/dist/integrations/providers/connections.d.ts +8 -0
- package/dist/integrations/providers/connections.d.ts.map +1 -1
- package/dist/integrations/providers/credential-store.d.ts +2 -0
- package/dist/integrations/providers/credential-store.d.ts.map +1 -1
- package/dist/integrations/providers/index.d.ts +3 -1
- package/dist/integrations/providers/index.d.ts.map +1 -1
- package/dist/integrations/providers/key-migration.d.ts +22 -0
- package/dist/integrations/providers/key-migration.d.ts.map +1 -0
- package/dist/integrations/providers/model-reasoning.d.ts +1 -1
- package/dist/integrations/providers/model-reasoning.d.ts.map +1 -1
- package/dist/integrations/providers/preferences.d.ts +8 -0
- package/dist/integrations/providers/preferences.d.ts.map +1 -1
- package/dist/integrations/providers/registry.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +25 -24
- package/dist/integrations/resident/runner-worker.js.map +1 -1
- package/dist/integrations/sessions/store.d.ts +13 -1
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/subagents/activity.d.ts +6 -0
- package/dist/integrations/subagents/activity.d.ts.map +1 -1
- package/dist/integrations/subagents/idle-watch.d.ts +30 -0
- package/dist/integrations/subagents/idle-watch.d.ts.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts +23 -0
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/saved-agents.d.ts +3 -1
- package/dist/integrations/subagents/saved-agents.d.ts.map +1 -1
- package/dist/integrations/subagents/task-observation.d.ts +20 -0
- package/dist/integrations/subagents/task-observation.d.ts.map +1 -0
- package/dist/integrations/workflows/doctrine.d.ts.map +1 -1
- package/dist/integrations/workflows/host.d.ts +8 -1
- package/dist/integrations/workflows/host.d.ts.map +1 -1
- package/dist/integrations/workflows/notice.d.ts +1 -1
- package/dist/integrations/workflows/notice.d.ts.map +1 -1
- package/dist/integrations/workflows/offering.d.ts.map +1 -1
- package/dist/integrations/workflows/orphans.d.ts +38 -0
- package/dist/integrations/workflows/orphans.d.ts.map +1 -0
- package/dist/integrations/workflows/registry.d.ts +12 -1
- package/dist/integrations/workflows/registry.d.ts.map +1 -1
- package/dist/integrations/workflows/resume.d.ts +93 -0
- package/dist/integrations/workflows/resume.d.ts.map +1 -0
- package/dist/integrations/workflows/view.d.ts +13 -0
- package/dist/integrations/workflows/view.d.ts.map +1 -1
- package/dist/permissions/image-read.d.ts +20 -0
- package/dist/permissions/image-read.d.ts.map +1 -0
- package/dist/permissions/path-rules.d.ts.map +1 -1
- package/dist/rounds/gates.d.ts +63 -0
- package/dist/rounds/gates.d.ts.map +1 -0
- package/dist/rounds/goal-admission.d.ts +55 -0
- package/dist/rounds/goal-admission.d.ts.map +1 -0
- package/dist/rounds/queue.d.ts +39 -0
- package/dist/rounds/queue.d.ts.map +1 -0
- package/dist/rounds/types.d.ts +105 -0
- package/dist/rounds/types.d.ts.map +1 -0
- package/dist/rounds/wake-ledger.d.ts +126 -0
- package/dist/rounds/wake-ledger.d.ts.map +1 -0
- package/dist/spaces/git.d.ts +27 -0
- package/dist/spaces/git.d.ts.map +1 -0
- package/dist/spaces/goto.d.ts +31 -0
- package/dist/spaces/goto.d.ts.map +1 -0
- package/dist/spaces/host.d.ts +446 -0
- package/dist/spaces/host.d.ts.map +1 -0
- package/dist/spaces/input.d.ts +87 -0
- package/dist/spaces/input.d.ts.map +1 -0
- package/dist/spaces/keymap.d.ts +30 -0
- package/dist/spaces/keymap.d.ts.map +1 -0
- package/dist/spaces/layout.d.ts +34 -0
- package/dist/spaces/layout.d.ts.map +1 -0
- package/dist/spaces/mouse.d.ts +34 -0
- package/dist/spaces/mouse.d.ts.map +1 -0
- package/dist/spaces/overlay.d.ts +105 -0
- package/dist/spaces/overlay.d.ts.map +1 -0
- package/dist/spaces/palette.d.ts +35 -0
- package/dist/spaces/palette.d.ts.map +1 -0
- package/dist/spaces/peers.d.ts +19 -0
- package/dist/spaces/peers.d.ts.map +1 -0
- package/dist/spaces/prefix.d.ts +19 -0
- package/dist/spaces/prefix.d.ts.map +1 -0
- package/dist/spaces/roster.d.ts +111 -0
- package/dist/spaces/roster.d.ts.map +1 -0
- package/dist/spaces/selection.d.ts +52 -0
- package/dist/spaces/selection.d.ts.map +1 -0
- package/dist/spaces/session.d.ts +83 -0
- package/dist/spaces/session.d.ts.map +1 -0
- package/dist/spaces/sidebar.d.ts +99 -0
- package/dist/spaces/sidebar.d.ts.map +1 -0
- package/dist/spaces/signal.d.ts +28 -0
- package/dist/spaces/signal.d.ts.map +1 -0
- package/dist/spaces/status.d.ts +20 -0
- package/dist/spaces/status.d.ts.map +1 -0
- package/dist/spaces/store.d.ts +69 -0
- package/dist/spaces/store.d.ts.map +1 -0
- package/dist/spaces/tabbar.d.ts +36 -0
- package/dist/spaces/tabbar.d.ts.map +1 -0
- package/dist/spaces/tiling.d.ts +90 -0
- package/dist/spaces/tiling.d.ts.map +1 -0
- package/dist/terminal/host/cell.d.ts +35 -0
- package/dist/terminal/host/cell.d.ts.map +1 -0
- package/dist/terminal/host/frame.d.ts +64 -0
- package/dist/terminal/host/frame.d.ts.map +1 -0
- package/dist/terminal/host/index.d.ts +5 -0
- package/dist/terminal/host/index.d.ts.map +1 -0
- package/dist/terminal/host/writer.d.ts +21 -0
- package/dist/terminal/host/writer.d.ts.map +1 -0
- package/dist/terminal/host/xterm-source.d.ts +18 -0
- package/dist/terminal/host/xterm-source.d.ts.map +1 -0
- package/dist/terminal/pty.d.ts.map +1 -1
- package/dist/terminal/screen.d.ts +26 -0
- package/dist/terminal/screen.d.ts.map +1 -1
- package/dist/tui/App.d.ts +66 -15
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/BackgroundJobsPanel.d.ts +9 -7
- package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +14 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/Picker.d.ts.map +1 -1
- package/dist/tui/ResumePicker.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +9 -7
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/TaskList.d.ts +15 -2
- package/dist/tui/TaskList.d.ts.map +1 -1
- package/dist/tui/TextPrompt.d.ts +5 -1
- package/dist/tui/TextPrompt.d.ts.map +1 -1
- package/dist/tui/account-flow.d.ts +126 -0
- package/dist/tui/account-flow.d.ts.map +1 -0
- package/dist/tui/agent.d.ts +38 -10
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/background-view.d.ts +46 -0
- package/dist/tui/background-view.d.ts.map +1 -0
- package/dist/tui/compaction-rows.d.ts.map +1 -1
- package/dist/tui/computer-use-screen-approval.d.ts +10 -0
- package/dist/tui/computer-use-screen-approval.d.ts.map +1 -0
- package/dist/tui/context-grid.d.ts +2 -0
- package/dist/tui/context-grid.d.ts.map +1 -1
- package/dist/tui/context-usage.d.ts +18 -0
- package/dist/tui/context-usage.d.ts.map +1 -1
- package/dist/tui/credential-entry.d.ts +7 -6
- package/dist/tui/credential-entry.d.ts.map +1 -1
- package/dist/tui/hypermode.d.ts +1 -3
- package/dist/tui/hypermode.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/keymap.d.ts +10 -1
- package/dist/tui/keymap.d.ts.map +1 -1
- package/dist/tui/launch-settings.d.ts +5 -2
- package/dist/tui/launch-settings.d.ts.map +1 -1
- package/dist/tui/login-prompt.d.ts +4 -2
- package/dist/tui/login-prompt.d.ts.map +1 -1
- package/dist/tui/model-switch.d.ts.map +1 -1
- package/dist/tui/permission-review.d.ts +5 -0
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/plain-interruption.d.ts +3 -1
- package/dist/tui/plain-interruption.d.ts.map +1 -1
- package/dist/tui/resume-picker-state.d.ts +7 -0
- package/dist/tui/resume-picker-state.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts +22 -26
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/system-rows.d.ts +0 -6
- package/dist/tui/system-rows.d.ts.map +1 -1
- package/dist/tui/tidy-tool-output.d.ts +3 -1
- package/dist/tui/tidy-tool-output.d.ts.map +1 -1
- package/dist/tui/tool-end-rows.d.ts +2 -0
- package/dist/tui/tool-end-rows.d.ts.map +1 -1
- package/dist/tui/typed-key-save.d.ts +27 -0
- package/dist/tui/typed-key-save.d.ts.map +1 -0
- package/dist/tui/zoom/entry.d.ts +37 -0
- package/dist/tui/zoom/entry.d.ts.map +1 -0
- package/dist/tui/zoom/gesture.d.ts +51 -0
- package/dist/tui/zoom/gesture.d.ts.map +1 -0
- package/dist/tui/zoom/leave.d.ts +11 -0
- package/dist/tui/zoom/leave.d.ts.map +1 -0
- package/dist/tui/zoom/local.d.ts +55 -0
- package/dist/tui/zoom/local.d.ts.map +1 -0
- package/dist/tui/zoom/proxy.d.ts +40 -0
- package/dist/tui/zoom/proxy.d.ts.map +1 -0
- package/package.json +10 -8
- package/dist/chunks/acp-P3S54TTC.js +0 -13601
- package/dist/chunks/acp-P3S54TTC.js.map +0 -6
- package/dist/chunks/activity-command-Y5ZLCQ63.js.map +0 -6
- package/dist/chunks/add-F7M57FGR.js.map +0 -6
- package/dist/chunks/agent-session-CFWQHSYT.js +0 -60
- package/dist/chunks/archive-6NM6DYAT.js.map +0 -6
- package/dist/chunks/chat-KGVPXQS6.js.map +0 -6
- package/dist/chunks/chunk-3NJPNX6V.js.map +0 -6
- package/dist/chunks/chunk-43PPWWYD.js +0 -1415
- package/dist/chunks/chunk-43PPWWYD.js.map +0 -6
- package/dist/chunks/chunk-6LLJQ3KY.js.map +0 -6
- package/dist/chunks/chunk-6Z2ZJ4BA.js.map +0 -6
- package/dist/chunks/chunk-7U36A4WQ.js.map +0 -6
- package/dist/chunks/chunk-CRWNJ62V.js.map +0 -6
- package/dist/chunks/chunk-EFEZWLZC.js.map +0 -6
- package/dist/chunks/chunk-JAYPFJGZ.js.map +0 -6
- package/dist/chunks/chunk-KHM2XON5.js.map +0 -6
- package/dist/chunks/chunk-O4MFP726.js.map +0 -6
- package/dist/chunks/chunk-RFMODICJ.js.map +0 -6
- package/dist/chunks/chunk-RSRJQB6Q.js.map +0 -6
- package/dist/chunks/chunk-UHPRMPWX.js.map +0 -6
- package/dist/chunks/chunk-W5QFVC74.js.map +0 -6
- package/dist/chunks/chunk-WKUTR7YW.js.map +0 -6
- package/dist/chunks/chunk-YAEHAYI4.js.map +0 -6
- package/dist/chunks/chunk-ZXKN4TWP.js.map +0 -6
- package/dist/chunks/cli-runtime-HTTDQPEZ.js.map +0 -6
- package/dist/chunks/dist-45IFTDJW.js.map +0 -6
- package/dist/chunks/dist-RQJEJN3Z.js.map +0 -6
- package/dist/chunks/exec-3JDAB34N.js.map +0 -6
- package/dist/chunks/host-queries-SO2NOQRR.js.map +0 -6
- package/dist/chunks/list-G6OA34RL.js.map +0 -6
- package/dist/chunks/login-J4PWR4FM.js +0 -29
- package/dist/chunks/mcp-EXFVIHPJ.js.map +0 -6
- package/dist/chunks/message-command-B4L2W4YZ.js.map +0 -6
- package/dist/chunks/operator-tools-TEP4UTI6.js.map +0 -6
- package/dist/chunks/pal-BUDEBIBJ.js.map +0 -6
- package/dist/chunks/resident-FSUGNG56.js.map +0 -6
- package/dist/chunks/resume-VXHGE5GC.js +0 -23
- package/dist/chunks/service-EP2QHCK7.js.map +0 -6
- package/dist/chunks/tui-L5GKR237.js.map +0 -6
- package/dist/chunks/worktree-ELHDXX4X.js.map +0 -6
- package/dist/integrations/subagents/batches.d.ts +0 -91
- package/dist/integrations/subagents/batches.d.ts.map +0 -1
- package/dist/integrations/subagents/slash.d.ts +0 -55
- package/dist/integrations/subagents/slash.d.ts.map +0 -1
- /package/dist/chunks/{agent-AFX2UZU5.js.map → agent-6TD66IMV.js.map} +0 -0
- /package/dist/chunks/{agent-session-CFWQHSYT.js.map → agent-session-3A5K5VK3.js.map} +0 -0
- /package/dist/chunks/{bin-main-I6CHRYYQ.js.map → bin-main-5PYV7WYI.js.map} +0 -0
- /package/dist/chunks/{commands-ZD2L5QMI.js.map → binding-EMMG5PAE.js.map} +0 -0
- /package/dist/chunks/{browser-OPMOTWTV.js.map → browser-FUFFJBRR.js.map} +0 -0
- /package/dist/chunks/{chunk-TX2PUHTP.js.map → chunk-24FBGXYR.js.map} +0 -0
- /package/dist/chunks/{chunk-2NGXQQPP.js.map → chunk-2OAD3CZE.js.map} +0 -0
- /package/dist/chunks/{chunk-JCUPTKQY.js.map → chunk-325X27UO.js.map} +0 -0
- /package/dist/chunks/{chunk-REDD2WY7.js.map → chunk-43HR3AF5.js.map} +0 -0
- /package/dist/chunks/{chunk-DESOZLEL.js.map → chunk-43PTHA5N.js.map} +0 -0
- /package/dist/chunks/{chunk-T5POXPXY.js.map → chunk-46OOPRR6.js.map} +0 -0
- /package/dist/chunks/{chunk-EFQ6FUFZ.js.map → chunk-6ZEHXLF7.js.map} +0 -0
- /package/dist/chunks/{chunk-I32JTWDW.js.map → chunk-7TBETDTX.js.map} +0 -0
- /package/dist/chunks/{chunk-465CVUN4.js.map → chunk-ADCVLGQO.js.map} +0 -0
- /package/dist/chunks/{chunk-W4E2N7TY.js.map → chunk-ANHFJD66.js.map} +0 -0
- /package/dist/chunks/{chunk-UGAT33T5.js.map → chunk-B6INWHLR.js.map} +0 -0
- /package/dist/chunks/{chunk-Y44FAVKA.js.map → chunk-BICC735N.js.map} +0 -0
- /package/dist/chunks/{chunk-UC3ZACVN.js.map → chunk-BOM64EUQ.js.map} +0 -0
- /package/dist/chunks/{chunk-CTN4O42X.js.map → chunk-D23EJNO5.js.map} +0 -0
- /package/dist/chunks/{chunk-G5RAECIB.js.map → chunk-E2MNVA3X.js.map} +0 -0
- /package/dist/chunks/{chunk-BR6EWAKQ.js.map → chunk-E3FA5H3Q.js.map} +0 -0
- /package/dist/chunks/{chunk-LUSUJZR2.js.map → chunk-EFU2OFEK.js.map} +0 -0
- /package/dist/chunks/{chunk-FPLDTTM2.js.map → chunk-FZR4XULA.js.map} +0 -0
- /package/dist/chunks/{chunk-JSFF2HGX.js.map → chunk-GAEZQRQI.js.map} +0 -0
- /package/dist/chunks/{chunk-UP3SWACV.js.map → chunk-GCFXQSN6.js.map} +0 -0
- /package/dist/chunks/{chunk-XPS3W7FC.js.map → chunk-GMUWAUKQ.js.map} +0 -0
- /package/dist/chunks/{chunk-WLAI3VCE.js.map → chunk-HH3NBBBE.js.map} +0 -0
- /package/dist/chunks/{chunk-WPNT6IGU.js.map → chunk-HV2JFRSE.js.map} +0 -0
- /package/dist/chunks/{chunk-AE4LOPZF.js.map → chunk-J2FGTLZV.js.map} +0 -0
- /package/dist/chunks/{chunk-T2PF65KB.js.map → chunk-JAB62RI5.js.map} +0 -0
- /package/dist/chunks/{chunk-HXZ2JXCO.js.map → chunk-JKPUOSDC.js.map} +0 -0
- /package/dist/chunks/{chunk-GSYPRZZU.js.map → chunk-K5FQ4G64.js.map} +0 -0
- /package/dist/chunks/{chunk-NS7EU37U.js.map → chunk-KVCYYXCS.js.map} +0 -0
- /package/dist/chunks/{chunk-PWOG3OMH.js.map → chunk-KZ5WYSA6.js.map} +0 -0
- /package/dist/chunks/{chunk-ORVWGSLG.js.map → chunk-LHZSSQ6K.js.map} +0 -0
- /package/dist/chunks/{chunk-2NFPIARP.js.map → chunk-LR4QQMJH.js.map} +0 -0
- /package/dist/chunks/{chunk-QNTR7X7D.js.map → chunk-MKRYUMLP.js.map} +0 -0
- /package/dist/chunks/{chunk-5UB2LLPG.js.map → chunk-NUNOIP4Y.js.map} +0 -0
- /package/dist/chunks/{chunk-ZRBGY4SL.js.map → chunk-NXX6C3WS.js.map} +0 -0
- /package/dist/chunks/{chunk-ZNYKZ3MI.js.map → chunk-OENL667J.js.map} +0 -0
- /package/dist/chunks/{chunk-LS75R55C.js.map → chunk-OMRU22BQ.js.map} +0 -0
- /package/dist/chunks/{chunk-BLM6IQS4.js.map → chunk-P6FEQPES.js.map} +0 -0
- /package/dist/chunks/{chunk-BIGRB2H4.js.map → chunk-P6RUYL3F.js.map} +0 -0
- /package/dist/chunks/{chunk-YPRKTJ5P.js.map → chunk-S2UDKXWH.js.map} +0 -0
- /package/dist/chunks/{chunk-XFNCCDJK.js.map → chunk-TFOIA3U3.js.map} +0 -0
- /package/dist/chunks/{chunk-NPZY5OJ5.js.map → chunk-THJQXERD.js.map} +0 -0
- /package/dist/chunks/{chunk-ZUN2WRCB.js.map → chunk-THQAGFMO.js.map} +0 -0
- /package/dist/chunks/{chunk-FKIO77IY.js.map → chunk-THUX2WOG.js.map} +0 -0
- /package/dist/chunks/{chunk-AY7B43MK.js.map → chunk-TKIWAXRU.js.map} +0 -0
- /package/dist/chunks/{chunk-QV43JSBP.js.map → chunk-TUF4NNJV.js.map} +0 -0
- /package/dist/chunks/{chunk-KK2L4FD2.js.map → chunk-U33GIKBK.js.map} +0 -0
- /package/dist/chunks/{chunk-WLUGKIYQ.js.map → chunk-U3EQTU4G.js.map} +0 -0
- /package/dist/chunks/{chunk-VR4MTSMH.js.map → chunk-U6U472VN.js.map} +0 -0
- /package/dist/chunks/{chunk-RV5QY3IY.js.map → chunk-VGUU6E6X.js.map} +0 -0
- /package/dist/chunks/{chunk-LN26A356.js.map → chunk-VY377HAA.js.map} +0 -0
- /package/dist/chunks/{chunk-HYFX32Y3.js.map → chunk-WG32TSVL.js.map} +0 -0
- /package/dist/chunks/{chunk-ZATO2QOS.js.map → chunk-WSIMHBEQ.js.map} +0 -0
- /package/dist/chunks/{chunk-JH3SDABI.js.map → chunk-X4WCRRZV.js.map} +0 -0
- /package/dist/chunks/{chunk-2OVZNENW.js.map → chunk-XH5YF2YX.js.map} +0 -0
- /package/dist/chunks/{chunk-CMAZ3DYB.js.map → chunk-YLNQLDMP.js.map} +0 -0
- /package/dist/chunks/{crash-report-2IRIZSBD.js.map → commands-LVUUZ6LF.js.map} +0 -0
- /package/dist/chunks/{dist-FNGLTQIG.js.map → crash-report-PGXMRS5P.js.map} +0 -0
- /package/dist/chunks/{dist-NL7WG7PX.js.map → dist-6HN2ZMLV.js.map} +0 -0
- /package/dist/chunks/{dist-GSYFGRQT.js.map → dist-JRBSW53E.js.map} +0 -0
- /package/dist/chunks/{dist-OJTB6QLR.js.map → dist-NSCNMOX7.js.map} +0 -0
- /package/dist/chunks/{doctor-NKPCWPB4.js.map → dist-TC6H7TPQ.js.map} +0 -0
- /package/dist/chunks/{dist-TWYNAZDN.js.map → dist-V4SNHHMB.js.map} +0 -0
- /package/dist/chunks/{dist-OCZJJFHF.js.map → dist-VV3V36IP.js.map} +0 -0
- /package/dist/chunks/{home-5OIZIDIT.js.map → doctor-P7L35KGN.js.map} +0 -0
- /package/dist/chunks/{drain-YTSVAQP5.js.map → drain-HOHRXIYY.js.map} +0 -0
- /package/dist/chunks/{eval-ILFXDQUQ.js.map → eval-2F473JAC.js.map} +0 -0
- /package/dist/chunks/{github-FH7PPWVW.js.map → github-OFCHQMQQ.js.map} +0 -0
- /package/dist/chunks/{lifecycle-RTDYXKBW.js.map → home-R6WCBSOT.js.map} +0 -0
- /package/dist/chunks/{live-44HBQCQY.js.map → host-JGPJVLTC.js.map} +0 -0
- /package/dist/chunks/{learn-RHNMJ4BD.js.map → learn-3UPHM5OI.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-UQ3MWGK6.js.map → learn-builtin-3Q4BJFCF.js.map} +0 -0
- /package/dist/chunks/{login-J4PWR4FM.js.map → lifecycle-EJLVISCU.js.map} +0 -0
- /package/dist/chunks/{output-schema-FZXJ7V33.js.map → live-IWDOVSLG.js.map} +0 -0
- /package/dist/chunks/{providers-EQ32NZAT.js.map → login-B2PHE6IL.js.map} +0 -0
- /package/dist/chunks/{logs-22QAEH2Q.js.map → logs-5UTV3FMG.js.map} +0 -0
- /package/dist/chunks/{resume-VXHGE5GC.js.map → mouse-WFSJSLQD.js.map} +0 -0
- /package/dist/chunks/{resume-command-DHPXCZVL.js.map → open-LDBJL43A.js.map} +0 -0
- /package/dist/chunks/{session-step-44XBOUDV.js.map → output-schema-UKYWRZPS.js.map} +0 -0
- /package/dist/chunks/{start-check-KVZFDBD3.js.map → palette-WDPS7W6Q.js.map} +0 -0
- /package/dist/chunks/{store-JLTSSGKL.js.map → peers-FBTQW2SY.js.map} +0 -0
- /package/dist/chunks/{store-KFJWAELA.js.map → prefix-MLAG4KTK.js.map} +0 -0
- /package/dist/chunks/{store-QNY242NN.js.map → providers-M75ET3GT.js.map} +0 -0
- /package/dist/chunks/{schedule-OJMZEWJG.js.map → schedule-BK3WF2VK.js.map} +0 -0
- /package/dist/chunks/{skills-YHAQXVP2.js.map → skills-TDDPMTQI.js.map} +0 -0
- /package/dist/chunks/{state-NXFKMBOX.js.map → state-SHLWYVZU.js.map} +0 -0
- /package/dist/chunks/{upgrade-PROVWX55.js.map → upgrade-RHPZQ33L.js.map} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Add a Codex account by running the official `codex login` with a fresh,
|
|
3
|
+
* private `CODEX_HOME`. Namzu never handles the sign-in itself: it starts the
|
|
4
|
+
* tool, shows the address the tool prints, waits for it to finish, and checks
|
|
5
|
+
* that a usable `auth.json` was written. If the person cancels, or the tool
|
|
6
|
+
* fails, the folder it was given is removed.
|
|
7
|
+
*/
|
|
8
|
+
import { type ChildProcess } from 'node:child_process';
|
|
9
|
+
export type CodexLoginResult = {
|
|
10
|
+
readonly kind: 'signed-in';
|
|
11
|
+
readonly accountId: string;
|
|
12
|
+
} | {
|
|
13
|
+
readonly kind: 'cancelled';
|
|
14
|
+
} | {
|
|
15
|
+
readonly kind: 'failed';
|
|
16
|
+
readonly message: string;
|
|
17
|
+
/** The `codex` command is not on this computer. */
|
|
18
|
+
readonly missing?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export interface CodexLoginOptions {
|
|
21
|
+
/** The fresh folder the sign-in is written to. Created here, removed on failure. */
|
|
22
|
+
readonly dir: string;
|
|
23
|
+
readonly signal: AbortSignal;
|
|
24
|
+
readonly command?: string;
|
|
25
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
26
|
+
readonly spawn?: (command: string, args: string[], options: Record<string, unknown>) => ChildProcess;
|
|
27
|
+
/** Each line the tool prints, in order. */
|
|
28
|
+
readonly onOutput?: (line: string) => void;
|
|
29
|
+
}
|
|
30
|
+
/** The address a sign-in prints for the browser, if this line carries one. */
|
|
31
|
+
export declare function loginAddressIn(line: string): string | undefined;
|
|
32
|
+
export declare function runCodexLogin(options: CodexLoginOptions): Promise<CodexLoginResult>;
|
|
33
|
+
//# sourceMappingURL=codex-login.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-login.d.ts","sourceRoot":"","sources":["../../../src/integrations/accounts/codex-login.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,oBAAoB,CAAA;AAM1E,MAAM,MAAM,gBAAgB,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAC1D;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,GAC9B;IACA,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,mDAAmD;IACnD,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAEJ,MAAM,WAAW,iBAAiB;IACjC,oFAAoF;IACpF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAChB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B,YAAY,CAAA;IACjB,2CAA2C;IAC3C,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC1C;AAED,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE/D;AAYD,wBAAsB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAsEzF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a terminal running inside a spaces host tells it about its account: the
|
|
3
|
+
* label of a non-usual account the conversation is on, and whether that
|
|
4
|
+
* account is out of allowance. Pure, so the same answer is checked without a
|
|
5
|
+
* terminal.
|
|
6
|
+
*/
|
|
7
|
+
import type { AccountActivity } from './activity.js';
|
|
8
|
+
export interface HostAccountFacts {
|
|
9
|
+
/** The account's label; absent on the provider's usual sign-in. */
|
|
10
|
+
readonly account?: string;
|
|
11
|
+
readonly limited: boolean;
|
|
12
|
+
/** When the allowance is expected back (epoch ms); absent when not known. */
|
|
13
|
+
readonly limitedUntil?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function hostAccountFacts(input: {
|
|
16
|
+
readonly accountId: string | undefined;
|
|
17
|
+
/** The terminal is stopped on a spent allowance, waiting for a choice. */
|
|
18
|
+
readonly stopped: boolean;
|
|
19
|
+
readonly activity: AccountActivity | undefined;
|
|
20
|
+
readonly now: number;
|
|
21
|
+
}): HostAccountFacts;
|
|
22
|
+
//# sourceMappingURL=host-facts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-facts.d.ts","sourceRoot":"","sources":["../../../src/integrations/accounts/host-facts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAIpD,MAAM,WAAW,gBAAgB;IAChC,mEAAmE;IACnE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,6EAA6E;IAC7E,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAA;IAC9C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CACpB,GAAG,gBAAgB,CAiBnB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CLI's handle on the account registry: the SDK registry with the Codex
|
|
3
|
+
* reader wired in, plus the small history file the picker orders by.
|
|
4
|
+
*/
|
|
5
|
+
import { type Account, type AccountRegistry } from '@namzu/sdk';
|
|
6
|
+
import { type AccountActivityStore } from './activity.js';
|
|
7
|
+
/** Providers a labelled API key can be added for. Codex accounts come only from the official sign-in. */
|
|
8
|
+
export declare const API_KEY_ACCOUNT_PROVIDERS: readonly ["anthropic", "openai", "google", "deepseek", "openrouter", "zen", "zen-go"];
|
|
9
|
+
export interface CliAccounts {
|
|
10
|
+
readonly registry: AccountRegistry;
|
|
11
|
+
readonly activity: AccountActivityStore;
|
|
12
|
+
/** Where a new Codex account's private home lives. */
|
|
13
|
+
readonly codexHomeFor: (label: string) => string;
|
|
14
|
+
}
|
|
15
|
+
export interface OpenCliAccountsOptions {
|
|
16
|
+
readonly home?: string;
|
|
17
|
+
/** Providers whose usual sign-in is listed as the `default` account. */
|
|
18
|
+
readonly defaultProviders?: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
export declare function openCliAccounts(options?: OpenCliAccountsOptions): CliAccounts;
|
|
21
|
+
/** Whether a stored account's credential is there to be read. The usual sign-in is judged by discovery, not here. */
|
|
22
|
+
export declare function storedAccountSignedIn(account: Account): boolean;
|
|
23
|
+
//# sourceMappingURL=open.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../src/integrations/accounts/open.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,YAAY,CAAA;AAKtF,OAAO,EAAE,KAAK,oBAAoB,EAA8B,MAAM,eAAe,CAAA;AAErF,yGAAyG;AACzG,eAAO,MAAM,yBAAyB,uFAQ5B,CAAA;AAEV,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAA;IAClC,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAA;IACvC,sDAAsD;IACtD,QAAQ,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;CAChD;AAED,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAC7C;AAED,wBAAgB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,WAAW,CAYjF;AAED,qHAAqH;AACrH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAK/D"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The account picker's rows: provider, label, state, and which one this
|
|
3
|
+
* session is on. Pure, so the same rows can be tested without a terminal.
|
|
4
|
+
*/
|
|
5
|
+
import type { Account } from '@namzu/sdk';
|
|
6
|
+
import type { AccountActivity } from './activity.js';
|
|
7
|
+
export type AccountState = {
|
|
8
|
+
readonly kind: 'ready';
|
|
9
|
+
} | {
|
|
10
|
+
readonly kind: 'limited';
|
|
11
|
+
readonly until: number;
|
|
12
|
+
} | {
|
|
13
|
+
readonly kind: 'may-be-limited';
|
|
14
|
+
} | {
|
|
15
|
+
readonly kind: 'needs-sign-in';
|
|
16
|
+
};
|
|
17
|
+
export interface AccountRow {
|
|
18
|
+
readonly account: Account;
|
|
19
|
+
readonly state: AccountState;
|
|
20
|
+
readonly current: boolean;
|
|
21
|
+
readonly lastUsed?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface AccountRowsInput {
|
|
24
|
+
readonly accounts: readonly Account[];
|
|
25
|
+
readonly activity: AccountActivity;
|
|
26
|
+
readonly currentId: string | undefined;
|
|
27
|
+
readonly now: number;
|
|
28
|
+
/** Whether the account's credential can be read now. Defaults to yes. */
|
|
29
|
+
readonly signedIn?: (account: Account) => boolean;
|
|
30
|
+
/** Providers that cannot be used at all here (a default with no sign-in), so their default is hidden. */
|
|
31
|
+
readonly hidden?: (account: Account) => boolean;
|
|
32
|
+
}
|
|
33
|
+
/** What a person calls the product behind a provider id. */
|
|
34
|
+
export declare function accountProductName(provider: string): string;
|
|
35
|
+
/** How long "may be limited" is shown when the provider gave no return time; a reply that works clears it sooner. */
|
|
36
|
+
export declare const MAY_BE_LIMITED_WINDOW_MS: number;
|
|
37
|
+
export declare function accountState(account: Account, activity: AccountActivity, now: number, signedIn?: (account: Account) => boolean): AccountState;
|
|
38
|
+
/** Last-used first; accounts never used keep the registry's order (defaults, then creation). */
|
|
39
|
+
export declare function accountRows(input: AccountRowsInput): AccountRow[];
|
|
40
|
+
/** `3:40 pm` today, `Tue 3:40 pm` on another day. */
|
|
41
|
+
export declare function formatResetTime(until: number, now: number, locale?: string): string;
|
|
42
|
+
export declare function describeState(state: AccountState, now: number, locale?: string): string;
|
|
43
|
+
/** The endpoint's host, for an API-key account that names its own. */
|
|
44
|
+
export declare function endpointHost(account: Account): string | undefined;
|
|
45
|
+
//# sourceMappingURL=rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../../src/integrations/accounts/rows.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,MAAM,MAAM,YAAY,GACrB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAA;CAAE,GACnC;IAAE,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;CAAE,CAAA;AAErC,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAA;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,Q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
1
|
+
/**
|
|
2
|
+
* Put text on the operator's clipboard: the machine's own clipboard tool first,
|
|
3
|
+
* then the terminal's escape sequence.
|
|
4
|
+
*
|
|
5
|
+
* ## Order
|
|
6
|
+
*
|
|
7
|
+
* 1. Off a remote login, the platform tool: `pbcopy` on macOS; `powershell.exe`
|
|
8
|
+
* `Set-Clipboard` on Windows and under WSL (never `clip.exe`, which mangles
|
|
9
|
+
* anything outside the console code page); `wl-copy`, `xclip` or `xsel` on
|
|
10
|
+
* Linux. The text goes in on standard input, never in the command line, and
|
|
11
|
+
* the tool gets {@link NATIVE_TIMEOUT_MS} to finish.
|
|
12
|
+
* 2. The OSC 52 request ({@link buildClipboardSequence}) as well, unless the
|
|
13
|
+
* tool worked on Linux/WSL and the terminal is VTE-based, whose older
|
|
14
|
+
* releases print an unknown sequence instead of ignoring it. Inside tmux the
|
|
15
|
+
* request is also loaded into tmux's paste buffer.
|
|
16
|
+
*
|
|
17
|
+
* ## Never in the way of typing
|
|
18
|
+
*
|
|
19
|
+
* The tool runs asynchronously. Only one copy runs at a time; a copy asked for
|
|
20
|
+
* while another runs waits, and a newer one replaces it. A copy whose caller no
|
|
21
|
+
* longer wants it (`wanted()` returns false by the time its turn comes) never
|
|
22
|
+
* starts a process. A copy whose caller cannot see the outcome (a pane's own
|
|
23
|
+
* request) is `durable`: a newer copy queues behind it instead of replacing it.
|
|
24
|
+
* A tool that times out ends the attempt; the remaining tools are not tried.
|
|
25
|
+
* Where each tool lives is looked up once per copier, not on every copy.
|
|
26
|
+
*
|
|
27
|
+
* Every program is a fixed argv with the text on stdin: no shell, no
|
|
28
|
+
* interpolation. The runner and the environment are injected so a test names
|
|
29
|
+
* the machine it describes and never reaches a real clipboard.
|
|
30
|
+
*/
|
|
31
|
+
import { spawn } from 'node:child_process';
|
|
32
|
+
import { type ClipboardEnv, type TerminalClipboardOutput } from './text.js';
|
|
33
|
+
/** How long a platform clipboard tool may take before it counts as failed. */
|
|
34
|
+
export declare const NATIVE_TIMEOUT_MS = 2000;
|
|
35
|
+
/**
|
|
36
|
+
* Runs one program with `input` on its stdin; resolves whether it exited 0 in
|
|
37
|
+
* time, or 'timeout' when it did not finish in time.
|
|
38
|
+
*/
|
|
39
|
+
export type ClipboardRunner = (command: string, args: readonly string[], input: string, timeoutMs: number, env?: Readonly<Record<string, string>>) => Promise<boolean | 'timeout'>;
|
|
40
|
+
export interface CopyHost {
|
|
41
|
+
readonly platform?: NodeJS.Platform;
|
|
42
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
43
|
+
/** Absolute path of a program on PATH, or null. */
|
|
44
|
+
readonly which?: (name: string, env: NodeJS.ProcessEnv) => string | null;
|
|
45
|
+
readonly exists?: (path: string) => boolean;
|
|
46
|
+
/** Where the Windows drives are mounted under WSL. */
|
|
47
|
+
readonly mountRoot?: string;
|
|
48
|
+
readonly run?: ClipboardRunner;
|
|
49
|
+
/** The kernel's version string, read when WSL variables are absent. */
|
|
50
|
+
readonly kernelVersion?: () => string;
|
|
51
|
+
}
|
|
52
|
+
export type CopyOutcome = {
|
|
53
|
+
readonly chars: number;
|
|
54
|
+
readonly bytes: number;
|
|
55
|
+
/** The tool that took the text, or null when none did. */
|
|
56
|
+
readonly native: string | null;
|
|
57
|
+
/** What became of the terminal request. */
|
|
58
|
+
readonly osc52: 'sent' | 'skipped' | 'too-large' | 'unavailable' | 'failed';
|
|
59
|
+
/** The text also went into tmux's paste buffer. */
|
|
60
|
+
readonly tmuxBuffer: boolean;
|
|
61
|
+
};
|
|
62
|
+
/** The PowerShell script: UTF-8 in and out, the text read whole from stdin. */
|
|
63
|
+
export declare const POWERSHELL_COPY_SCRIPT: string;
|
|
64
|
+
/** The process-wide switch: `NAMZU_NO_CLIPBOARD=1` turns off every clipboard tool. */
|
|
65
|
+
export declare const CLIPBOARD_KILL_SWITCH = "NAMZU_NO_CLIPBOARD";
|
|
66
|
+
/**
|
|
67
|
+
* The runner over a given `spawn`. With `NAMZU_NO_CLIPBOARD=1` in the process
|
|
68
|
+
* environment it starts nothing and says the tool is unavailable, so the
|
|
69
|
+
* terminal request or the toast follows as on a machine with no tool.
|
|
70
|
+
*/
|
|
71
|
+
export declare function createRunner(spawnProcess: typeof spawn): ClipboardRunner;
|
|
72
|
+
export declare const realRunner: ClipboardRunner;
|
|
73
|
+
export interface ClipboardCopier {
|
|
74
|
+
/**
|
|
75
|
+
* Copies `text`. Resolves null when the copy was dropped: superseded by a newer
|
|
76
|
+
* one while waiting (unless durable), or no longer wanted when its turn came.
|
|
77
|
+
*/
|
|
78
|
+
copy(text: string, wanted?: () => boolean, options?: {
|
|
79
|
+
readonly durable?: boolean;
|
|
80
|
+
}): Promise<CopyOutcome | null>;
|
|
81
|
+
}
|
|
82
|
+
export declare function createClipboardCopier(output: TerminalClipboardOutput, host?: CopyHost): ClipboardCopier;
|
|
83
|
+
/** The key that makes the terminal select text by itself. */
|
|
84
|
+
export declare function bypassKey(env?: NodeJS.ProcessEnv): string;
|
|
85
|
+
/**
|
|
86
|
+
* One line telling the operator what happened. `key` is the modifier that makes
|
|
87
|
+
* their terminal select text by itself.
|
|
88
|
+
*/
|
|
89
|
+
export declare function describeCopy(outcome: CopyOutcome, key?: string, what?: string): {
|
|
90
|
+
text: string;
|
|
91
|
+
ok: boolean;
|
|
92
|
+
};
|
|
93
|
+
export type { ClipboardEnv };
|
|
94
|
+
//# sourceMappingURL=copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../src/integrations/clipboard/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAK1C,OAAO,EACN,KAAK,YAAY,EAEjB,KAAK,uBAAuB,EAE5B,MAAM,WAAW,CAAA;AAElB,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,OAAQ,CAAA;AAEtC;;;GAGG;AACH,MAAM,MAAM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AA;AAIZ,sFAAsF;AACtF,eAAO,MAAM,qBAAqB,uBAAuB,CAAA;AAEzD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,OAAO,KAAK,GAAG,eAAe,CASxE;AAuCD,eAAO,MAAM,UAAU,EAAE,eAAqC,CAAA;AAyG9D,MAAM,WAAW,eAAe;IAC/B;;;OAGG;IACH,IAAI,CACH,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,OAAO,EACtB,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GACtC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAC9B;AAED,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,uBAAuB,EAC/B,IAAI,GAAE,QAAa,GACjB,eAAe,CA4GjB;AAED,6DAA6D;AAC7D,wBAAgB,SAAS,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAMtE;AAMD;;;GAGG;AACH,wBAAgB,YAAY,CAC3B,OAAO,EAAE,WAAW,EACpB,GAAG,SAAU,EACb,IAAI,CAAC,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,OAAO,CAAA;CAAE,CAwB/B;AAED,YAAY,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bring an image inside what a provider accepts before it is attached.
|
|
3
|
+
*
|
|
4
|
+
* A provider refuses an image that is too wide, too tall or too many bytes,
|
|
5
|
+
* and it refuses it on every later turn, because the history carries it. So
|
|
6
|
+
* the limits are applied once, here, at the door: an image inside them passes
|
|
7
|
+
* through byte for byte; one outside is shrunk, and one that cannot be shrunk
|
|
8
|
+
* is refused with a sentence the operator can act on.
|
|
9
|
+
*
|
|
10
|
+
* Shrinking needs an image library. That library (`sharp`) is an optional
|
|
11
|
+
* dependency loaded on first use, so the CLI starts and works without it:
|
|
12
|
+
* without it an image already inside the limits is attached, and one outside
|
|
13
|
+
* is refused.
|
|
14
|
+
*/
|
|
15
|
+
export interface ImageLimits {
|
|
16
|
+
readonly maxWidth: number;
|
|
17
|
+
readonly maxHeight: number;
|
|
18
|
+
/** The most base64 text one image may become. */
|
|
19
|
+
readonly maxBase64Size: number;
|
|
20
|
+
/** The raw size to shrink to: base64 grows bytes by a third, so this leaves room. */
|
|
21
|
+
readonly targetRawSize: number;
|
|
22
|
+
}
|
|
23
|
+
export declare const DEFAULT_IMAGE_LIMITS: ImageLimits;
|
|
24
|
+
export type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp';
|
|
25
|
+
export type FitResult = {
|
|
26
|
+
readonly ok: true;
|
|
27
|
+
readonly data: Buffer;
|
|
28
|
+
readonly mediaType: ImageMediaType;
|
|
29
|
+
} | {
|
|
30
|
+
readonly ok: false;
|
|
31
|
+
readonly message: string;
|
|
32
|
+
};
|
|
33
|
+
/** The part of the image library this module uses; tests supply a fake. */
|
|
34
|
+
export interface SharpPipeline {
|
|
35
|
+
metadata(): Promise<{
|
|
36
|
+
width?: number;
|
|
37
|
+
height?: number;
|
|
38
|
+
orientation?: number;
|
|
39
|
+
pages?: number;
|
|
40
|
+
}>;
|
|
41
|
+
/** Apply the EXIF orientation to the pixels and drop the tag. */
|
|
42
|
+
rotate(): SharpPipeline;
|
|
43
|
+
resize(width: number, height?: number, options?: {
|
|
44
|
+
fit?: 'inside';
|
|
45
|
+
withoutEnlargement?: boolean;
|
|
46
|
+
}): SharpPipeline;
|
|
47
|
+
flatten(options: {
|
|
48
|
+
background: string;
|
|
49
|
+
}): SharpPipeline;
|
|
50
|
+
png(options?: {
|
|
51
|
+
compressionLevel?: number;
|
|
52
|
+
palette?: boolean;
|
|
53
|
+
}): SharpPipeline;
|
|
54
|
+
jpeg(options?: {
|
|
55
|
+
quality?: number;
|
|
56
|
+
}): SharpPipeline;
|
|
57
|
+
webp(options?: {
|
|
58
|
+
quality?: number;
|
|
59
|
+
}): SharpPipeline;
|
|
60
|
+
gif(): SharpPipeline;
|
|
61
|
+
toBuffer(): Promise<Buffer>;
|
|
62
|
+
}
|
|
63
|
+
export type SharpFactory = (input: Buffer) => SharpPipeline;
|
|
64
|
+
export interface FitDeps {
|
|
65
|
+
/** Resolves the image library, or `null` when it is not installed. */
|
|
66
|
+
readonly loadSharp?: () => Promise<SharpFactory | null>;
|
|
67
|
+
readonly limits?: ImageLimits;
|
|
68
|
+
}
|
|
69
|
+
/** Load `sharp` once, on first need. A missing or unloadable library is `null`. */
|
|
70
|
+
export declare function loadSharp(): Promise<SharpFactory | null>;
|
|
71
|
+
export type ImageFormat = ImageMediaType | 'image/bmp';
|
|
72
|
+
/** The format by leading bytes, or `null` for anything not recognised. */
|
|
73
|
+
export declare function sniffImageFormat(bytes: Buffer): ImageFormat | null;
|
|
74
|
+
/** Width and height read from the file's own header, or `null` when they cannot be. */
|
|
75
|
+
export declare function headerDimensions(bytes: Buffer, format: ImageFormat): {
|
|
76
|
+
width: number;
|
|
77
|
+
height: number;
|
|
78
|
+
} | null;
|
|
79
|
+
/** Image tokens a model spends on a picture: 28 px patches. For diagnostics only. */
|
|
80
|
+
export declare function imageTokenCost(width: number, height: number): number;
|
|
81
|
+
/**
|
|
82
|
+
* Fit an image to the limits.
|
|
83
|
+
*
|
|
84
|
+
* PNG, JPEG, GIF and WebP inside the limits come back unchanged. Anything
|
|
85
|
+
* else is converted to PNG first. An image too wide or tall is scaled to fit
|
|
86
|
+
* inside, never enlarged; one still too heavy is tried as a palette PNG, then
|
|
87
|
+
* as JPEG at quality 80, 60, 40 and 20, and last as a 1000 px wide JPEG at
|
|
88
|
+
* quality 20.
|
|
89
|
+
*/
|
|
90
|
+
export declare function fitImage(input: Buffer, deps?: FitDeps): Promise<FitResult>;
|
|
91
|
+
//# sourceMappingURL=image-fit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-fit.d.ts","s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ACH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,OAAY,GAAG,OAAO,CAAC,SAAS,CAAC,CAgFpF"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Image files named by a paste: a path typed into the terminal, or a file
|
|
3
|
+
* dragged onto it. Terminals insert such a drop as a (usually quoted) path,
|
|
4
|
+
* so the paste handler asks here first whether the whole paste is nothing but
|
|
5
|
+
* paths to images, and attaches them if so.
|
|
6
|
+
*
|
|
7
|
+
* All or nothing: if any piece is not an image we can read, the caller keeps
|
|
8
|
+
* the paste as ordinary text, so a paste is never half consumed.
|
|
9
|
+
*/
|
|
10
|
+
import { type FitResult } from './image-fit.js';
|
|
11
|
+
import type { ClipboardImage } from './image.js';
|
|
12
|
+
import { type PathEnvironment } from './wsl.js';
|
|
13
|
+
/** Raw bytes above this are left as text; the provider would refuse them anyway. */
|
|
14
|
+
export declare const MAX_IMAGE_FILE_BYTES: number;
|
|
15
|
+
/**
|
|
16
|
+
* The absolute local paths a paste names, or `null` when the paste is not
|
|
17
|
+
* made only of image paths. Windows forms are converted when on WSL.
|
|
18
|
+
*/
|
|
19
|
+
export declare function parsePastedImagePaths(text: string, env: PathEnvironment): string[] | null;
|
|
20
|
+
export interface ImageFileDeps {
|
|
21
|
+
readonly stat?: (path: string) => Promise<{
|
|
22
|
+
size: number;
|
|
23
|
+
isFile(): boolean;
|
|
24
|
+
}>;
|
|
25
|
+
readonly readFile?: (path: string) => Promise<Buffer>;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the permission rules let the CLI read this path: `null` when it
|
|
28
|
+
* may, otherwise a plain sentence saying why not. Absent means it may.
|
|
29
|
+
*/
|
|
30
|
+
readonly mayRead?: (path: string) => Promise<string | null>;
|
|
31
|
+
/** Brings an image inside the provider's limits; the default uses `sharp` when present. */
|
|
32
|
+
readonly fit?: (bytes: Buffer) => Promise<FitResult>;
|
|
33
|
+
}
|
|
34
|
+
export type ImageFilesResult =
|
|
35
|
+
/** Every path was an image, fitted and ready. */
|
|
36
|
+
{
|
|
37
|
+
readonly kind: 'images';
|
|
38
|
+
readonly images: ClipboardImage[];
|
|
39
|
+
}
|
|
40
|
+
/** A path is an image the operator should hear about: not allowed, or too large to shrink. */
|
|
41
|
+
| {
|
|
42
|
+
readonly kind: 'refused';
|
|
43
|
+
readonly message: string;
|
|
44
|
+
}
|
|
45
|
+
/** Not (all) readable images: the paste stays ordinary text. */
|
|
46
|
+
| {
|
|
47
|
+
readonly kind: 'text';
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Read every path as an image. All or nothing: one path that is missing,
|
|
51
|
+
* empty, too large to read, or not an image by its leading bytes leaves the
|
|
52
|
+
* paste as text, and one the permission rules refuse (or whose image cannot
|
|
53
|
+
* be brought inside the provider's limits) is reported with the reason.
|
|
54
|
+
*/
|
|
55
|
+
export declare function loadImageFiles(paths: readonly string[], deps?: ImageFileDeps): Promise<ImageFilesResult>;
|
|
56
|
+
//# sourceMappingURL=image-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-paths.d.ts","sourceRoot":"","sources":["../../../src/integrations/clipboard/image-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,gBAAgB,CAAA;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,KAAK,eAAe,EAAyC,MAAM,UAAU,CAAA;AAKtF,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,QAAmB,CAAA;AAgBpD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,GAAG,MAAM,EAAE,GAAG,IAAI,CA2BzF;AAED,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,IAAI,OAAO,CAAA;KAAE,CAAC,CAAA;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IACrD;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAC3D,2FAA2F;IAC3F,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,CAAC,CAAA;CACpD;AAED,MAAM,MAAM,gBAAgB;AAC3B,iDAAiD;AAC/C;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,EAAE,CAAA;CAAE;AAChE,8FAA8F;GAC5F;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE;AACxD,gEAAgE;GAC9D;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAE5B;;;;;GAKG;AACH,wBAAsB,cAAc,CACnC,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,IAAI,GAAE,aAAkB,GACtB,OAAO,CAAC,gBAAgB,CAAC,CAgC3B"}
|
|
@@ -1,32 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Read an image off the system clipboard, for the composer's
|
|
2
|
+
* Read an image off the system clipboard, for the composer's paste key.
|
|
3
3
|
*
|
|
4
|
-
* Terminals don't deliver pasted image bytes over stdin, so we
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* Terminals don't deliver pasted image bytes over stdin, so we ask the
|
|
5
|
+
* platform. macOS uses `osascript` (`«class PNGf»`); Linux tries `xclip` then
|
|
6
|
+
* `wl-paste`; Windows, and WSL where neither Linux tool sees the Windows
|
|
7
|
+
* clipboard, run one fixed PowerShell script that prints the image as base64
|
|
8
|
+
* on stdout. Nothing is written to a Windows temp file and no user-controlled
|
|
9
|
+
* string reaches a command line.
|
|
10
|
+
*
|
|
11
|
+
* Every read is asynchronous: a cold `powershell.exe` takes seconds, and the
|
|
12
|
+
* composer must keep redrawing meanwhile. Non-throwing: every failure comes
|
|
13
|
+
* back as a {@link ClipboardRead} saying which failure it was.
|
|
10
14
|
*/
|
|
15
|
+
import { type FitResult } from './image-fit.js';
|
|
11
16
|
export interface ClipboardImage {
|
|
12
|
-
/** Base64-encoded
|
|
17
|
+
/** Base64-encoded image bytes (no `data:` prefix). */
|
|
13
18
|
readonly data: string;
|
|
14
|
-
readonly mediaType: 'image/png';
|
|
19
|
+
readonly mediaType: 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp';
|
|
20
|
+
/** A display name: `Pasted image`, or the file's own name. */
|
|
21
|
+
readonly filename?: string;
|
|
15
22
|
}
|
|
16
23
|
/**
|
|
17
24
|
* What a clipboard read found, and when it found nothing, why.
|
|
18
25
|
*
|
|
19
26
|
* The reason is the whole point of this type. A single `null` for every outcome
|
|
20
|
-
* left the composer with nothing to say, so
|
|
21
|
-
* exactly like
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* each: copy an image, install a tool, or stop pressing the key.
|
|
27
|
+
* left the composer with nothing to say, so the paste key with no image behaved
|
|
28
|
+
* exactly like the same key on a machine with no clipboard tool, which behaved
|
|
29
|
+
* exactly like a key that was never wired up. The operator's next move differs
|
|
30
|
+
* in each: copy an image, install a tool, try again, or stop pressing the key.
|
|
25
31
|
*/
|
|
26
32
|
export type ClipboardRead = {
|
|
27
33
|
readonly kind: 'image';
|
|
28
34
|
readonly image: ClipboardImage;
|
|
29
35
|
}
|
|
36
|
+
/** The clipboard holds image files (a copy in a file manager), not pixels. */
|
|
37
|
+
| {
|
|
38
|
+
readonly kind: 'files';
|
|
39
|
+
readonly paths: readonly string[];
|
|
40
|
+
}
|
|
30
41
|
/** A tool ran and the clipboard held no image. */
|
|
31
42
|
| {
|
|
32
43
|
readonly kind: 'empty';
|
|
@@ -35,6 +46,60 @@ export type ClipboardRead = {
|
|
|
35
46
|
| {
|
|
36
47
|
readonly kind: 'unavailable';
|
|
37
48
|
readonly detail: string;
|
|
49
|
+
readonly wsl?: boolean;
|
|
50
|
+
}
|
|
51
|
+
/** A tool ran but did not finish or gave an answer that is not an image. */
|
|
52
|
+
| {
|
|
53
|
+
readonly kind: 'failed';
|
|
54
|
+
readonly detail: string;
|
|
55
|
+
}
|
|
56
|
+
/** An image was found and cannot be attached; `message` says why, in plain words. */
|
|
57
|
+
| {
|
|
58
|
+
readonly kind: 'refused';
|
|
59
|
+
readonly message: string;
|
|
38
60
|
};
|
|
39
|
-
export
|
|
61
|
+
export interface CommandResult {
|
|
62
|
+
/** Exit code, or `null` when killed. */
|
|
63
|
+
readonly code: number | null;
|
|
64
|
+
readonly stdout: Buffer;
|
|
65
|
+
readonly timedOut: boolean;
|
|
66
|
+
/** The program could not be started at all (missing, not executable). */
|
|
67
|
+
readonly spawnFailed: boolean;
|
|
68
|
+
}
|
|
69
|
+
export type CommandRunner = (file: string, args: readonly string[], options: {
|
|
70
|
+
readonly timeoutMs: number;
|
|
71
|
+
}) => Promise<CommandResult>;
|
|
72
|
+
/** The most base64 text a provider accepts for one image (5 MiB). */
|
|
73
|
+
export declare const MAX_IMAGE_BASE64_BYTES: number;
|
|
74
|
+
/** Whether an image is small enough to send. A larger one would fail every later turn. */
|
|
75
|
+
export declare function imageFitsProvider(image: ClipboardImage): boolean;
|
|
76
|
+
/** The largest output a clipboard tool may produce before the read is abandoned. */
|
|
77
|
+
export declare const MAX_CLIPBOARD_BYTES: number;
|
|
78
|
+
export declare const runCommand: CommandRunner;
|
|
79
|
+
export interface ClipboardDeps {
|
|
80
|
+
readonly platform?: NodeJS.Platform;
|
|
81
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
82
|
+
readonly run?: CommandRunner;
|
|
83
|
+
readonly readText?: (path: string) => string | undefined;
|
|
84
|
+
/** Brings an image inside the provider's limits; the default shrinks it with `sharp` when present. */
|
|
85
|
+
readonly fit?: (bytes: Buffer) => Promise<FitResult>;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The PowerShell that reads the clipboard. A constant: it names no user data.
|
|
89
|
+
* It prints either one base64 line (a PNG, shrunk to 2000 px a side) or one
|
|
90
|
+
* `PATH:` line per image file the clipboard holds, and exits 3 for "no image". Any other non-zero exit is an error in the script or the environment.
|
|
91
|
+
*/
|
|
92
|
+
/** The exit code the script uses for "the clipboard holds no image", and nothing else. */
|
|
93
|
+
export declare const CLIPBOARD_EMPTY_EXIT = 3;
|
|
94
|
+
export declare const CLIPBOARD_SCRIPT: string;
|
|
95
|
+
export declare function powershellArgs(script: string): string[];
|
|
96
|
+
/**
|
|
97
|
+
* Read what a PowerShell run printed: a PNG as one base64 line, file lines, or
|
|
98
|
+
* nothing. Banner and byte-order-mark noise is ignored; only a line that is
|
|
99
|
+
* base64 and decodes to a PNG counts.
|
|
100
|
+
*/
|
|
101
|
+
export declare function parsePowershellOutput(stdout: Buffer): ClipboardRead;
|
|
102
|
+
/** Where `powershell.exe` may be: the PATH, then the drive mounts' fixed location. */
|
|
103
|
+
export declare function powershellCandidates(mountRoot: string): string[];
|
|
104
|
+
export declare function readClipboardImage(deps?: ClipboardDeps): Promise<ClipboardRead>;
|
|
40
105
|
//# sourceMappingURL=image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/integrations/clipboard/image.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/integrations/clipboard/image.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH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AoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAIhE;AAED,wBAAsB,kBAAkB,CAAC,IAAI,GAAE,aAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,CA0BzF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read text off the system clipboard.
|
|
3
|
+
*
|
|
4
|
+
* The paste key reads an image first. A terminal that hands the key to the
|
|
5
|
+
* application instead of pasting has swallowed the text paste as well, so when
|
|
6
|
+
* there is no image the key falls back to the clipboard's text and inserts it,
|
|
7
|
+
* which is what the operator pressed the key to get.
|
|
8
|
+
*
|
|
9
|
+
* Every read is bounded by a short timeout: a clipboard that cannot answer
|
|
10
|
+
* must never hold the composer up. Non-throwing: any failure is `null`.
|
|
11
|
+
*/
|
|
12
|
+
import { type CommandRunner } from './image.js';
|
|
13
|
+
/** How long a text read may take before it is abandoned. */
|
|
14
|
+
export declare const TEXT_READ_TIMEOUT_MS = 2000;
|
|
15
|
+
/**
|
|
16
|
+
* Whether text is really binary data read through a text channel: it holds a
|
|
17
|
+
* NUL, or more than 5% of its first 4096 characters are U+FFFD.
|
|
18
|
+
*/
|
|
19
|
+
export declare function looksLikeBinary(text: string): boolean;
|
|
20
|
+
export interface TextReadDeps {
|
|
21
|
+
readonly platform?: NodeJS.Platform;
|
|
22
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
23
|
+
readonly run?: CommandRunner;
|
|
24
|
+
readonly readText?: (path: string) => string | undefined;
|
|
25
|
+
}
|
|
26
|
+
/** The clipboard's text, or `null` when there is none, it is binary, or it cannot be read. */
|
|
27
|
+
export declare function readClipboardText(deps?: TextReadDeps): Promise<string | null>;
|
|
28
|
+
//# sourceMappingURL=text-read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-read.d.ts","sourceRoot":"","sources":["../../../src/integrations/clipboard/text-read.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,aAAa,EAAoC,MAAM,YAAY,CAAA;AAGjF,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,OAAQ,CAAA;AAKzC;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAOrD;AASD,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAA;IACnC,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAC3D,QAAQ,CAAC,GAAG,CAAC,EAAE,aAAa,CAAA;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;CACxD;AAED,8FAA8F;AAC9F,wBAAsB,iBAAiB,CAAC,IAAI,GAAE,YAAiB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAkCvF"}
|
|
@@ -39,5 +39,20 @@ export type ClipboardWriteResult = {
|
|
|
39
39
|
readonly kind: 'write-failed';
|
|
40
40
|
readonly detail: string;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
/** The slice of the environment that decides how the request must be wrapped to reach the terminal. */
|
|
43
|
+
export interface ClipboardEnv {
|
|
44
|
+
readonly TMUX?: string | undefined;
|
|
45
|
+
readonly STY?: string | undefined;
|
|
46
|
+
readonly TERM?: string | undefined;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The bytes that ask the terminal to put `text` on its clipboard.
|
|
50
|
+
*
|
|
51
|
+
* Inside tmux the request is wrapped in a passthrough frame (every ESC doubled),
|
|
52
|
+
* which tmux forwards only when its `allow-passthrough` option is on. Inside
|
|
53
|
+
* screen it is cut into passthrough frames of at most 76 base64 characters. The
|
|
54
|
+
* plain form is used everywhere else.
|
|
55
|
+
*/
|
|
56
|
+
export declare function buildClipboardSequence(text: string, env?: ClipboardEnv): string;
|
|
57
|
+
export declare function writeClipboardText(text: string, output: TerminalClipboardOutput, env?: ClipboardEnv): ClipboardWriteResult;
|
|
43
58
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/integrations/clipboard/text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAAU,CAAA;AAE/C,MAAM,WAAW,uBAAuB;IACvC,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,gFAAgF;IAChF,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACtC;AAED,MAAM,MAAM,oBAAoB,GAC7B;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACzD;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACzD;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC9E;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAE7D,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,uBAAuB,GAC7B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/integrations/clipboard/text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,wBAA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