@namzu/cli 44.2.0 → 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 +145 -0
- package/README.md +4 -2
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-OUBJWH5B.js → acp-XSAUUT2D.js} +59 -165
- package/dist/chunks/acp-XSAUUT2D.js.map +6 -0
- package/dist/chunks/{activity-command-R7MUSZIY.js → activity-command-DB4DREW7.js} +13 -13
- package/dist/chunks/{add-PSEIDDRW.js → add-NVXRVUGY.js} +22 -19
- package/dist/chunks/add-NVXRVUGY.js.map +6 -0
- package/dist/chunks/{agent-YPEXUYPH.js → agent-6TD66IMV.js} +42 -38
- package/dist/chunks/agent-session-3A5K5VK3.js +69 -0
- package/dist/chunks/{archive-ET4PXE34.js → archive-A3X7KX2U.js} +11 -11
- package/dist/chunks/{bin-main-PMB57AZJ.js → bin-main-5PYV7WYI.js} +7 -7
- package/dist/chunks/{binding-K6RIQ5AP.js → binding-EMMG5PAE.js} +3 -3
- package/dist/chunks/{browser-SKTIAVBF.js → browser-FUFFJBRR.js} +6 -6
- package/dist/chunks/{chat-AVIVXXMD.js → chat-M653DEAF.js} +16 -16
- package/dist/chunks/{chunk-YXIG4OT2.js → chunk-24FBGXYR.js} +3 -3
- package/dist/chunks/{chunk-XX2SP5AM.js → chunk-2OAD3CZE.js} +3 -3
- package/dist/chunks/{chunk-7FPKSX4M.js → chunk-2YCPLLUW.js} +3 -3
- package/dist/chunks/{chunk-LF76CVOZ.js → chunk-325X27UO.js} +4 -4
- package/dist/chunks/{chunk-GBS6ATYF.js → chunk-43HR3AF5.js} +2 -2
- package/dist/chunks/{chunk-B3XIVOLM.js → chunk-43PTHA5N.js} +2 -2
- package/dist/chunks/{chunk-RSIWTHYS.js → chunk-46OOPRR6.js} +3 -3
- package/dist/chunks/{chunk-U4SST7AD.js → chunk-4DVCHAWN.js} +2 -2
- package/dist/chunks/{chunk-G73G2WGR.js → chunk-667W6Z5W.js} +72 -5
- package/dist/chunks/chunk-667W6Z5W.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-LKJBDF7W.js → chunk-6TT7NXLP.js} +170 -139
- package/dist/chunks/chunk-6TT7NXLP.js.map +6 -0
- package/dist/chunks/{chunk-HELINLSD.js → chunk-6ZEHXLF7.js} +2 -2
- package/dist/chunks/{chunk-6EJFXJDO.js → chunk-7DR7EU3J.js} +1661 -569
- 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-MGZSEPDY.js → chunk-7TBETDTX.js} +2 -2
- package/dist/chunks/{chunk-L2NNJ4XL.js → chunk-ADCVLGQO.js} +3 -3
- package/dist/chunks/{chunk-2Y26DLOF.js → chunk-AHNXQAYZ.js} +74 -56
- package/dist/chunks/chunk-AHNXQAYZ.js.map +6 -0
- package/dist/chunks/{chunk-IZVN6K6U.js → chunk-ANHFJD66.js} +4 -4
- package/dist/chunks/{chunk-LYGD5P7O.js → chunk-B6INWHLR.js} +3 -3
- package/dist/chunks/{chunk-4OXIJ2EF.js → chunk-BICC735N.js} +3 -3
- package/dist/chunks/{chunk-6FWFSPUL.js → chunk-BOM64EUQ.js} +2 -2
- package/dist/chunks/{chunk-WYJ3CNXX.js → chunk-C4MAQ64X.js} +38 -38
- package/dist/chunks/chunk-CDDS3UKB.js +425 -0
- package/dist/chunks/chunk-CDDS3UKB.js.map +6 -0
- package/dist/chunks/{chunk-2EHPXO4E.js → chunk-D23EJNO5.js} +3 -3
- package/dist/chunks/{chunk-G5RAECIB.js → chunk-E2MNVA3X.js} +2 -2
- package/dist/chunks/{chunk-3QGJXD7U.js → chunk-E3FA5H3Q.js} +5 -5
- package/dist/chunks/{chunk-YJ6NWB2B.js → chunk-EFU2OFEK.js} +2 -2
- package/dist/chunks/{chunk-7QQOUCGI.js → chunk-FUJSGQYW.js} +14 -12
- package/dist/chunks/chunk-FUJSGQYW.js.map +6 -0
- package/dist/chunks/{chunk-QWSZ5P4C.js → chunk-FZR4XULA.js} +6 -6
- package/dist/chunks/{chunk-ITA57VY5.js → chunk-G5FWVYK2.js} +45 -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-WKPRYH24.js → chunk-GAEZQRQI.js} +3 -3
- package/dist/chunks/{chunk-S4QOQGAT.js → chunk-GCFXQSN6.js} +2 -2
- package/dist/chunks/{chunk-XPS3W7FC.js → chunk-GMUWAUKQ.js} +2 -2
- package/dist/chunks/{chunk-KLKAK2O5.js → chunk-GWGIAZLZ.js} +37 -1
- package/dist/chunks/{chunk-KLKAK2O5.js.map → chunk-GWGIAZLZ.js.map} +1 -1
- package/dist/chunks/{chunk-VDKDXDOH.js → chunk-H6AUN2YD.js} +5 -5
- package/dist/chunks/{chunk-7TEXDZVO.js → chunk-HFD2VRQP.js} +4 -4
- package/dist/chunks/{chunk-M2OZ4SVS.js → chunk-HGIIAAEG.js} +5 -6
- package/dist/chunks/chunk-HGIIAAEG.js.map +6 -0
- package/dist/chunks/{chunk-WKFHQQOU.js → chunk-HH3NBBBE.js} +2 -2
- package/dist/chunks/{chunk-A5GTZ7R2.js → chunk-HV2JFRSE.js} +2 -2
- package/dist/chunks/{chunk-BGKQCLLH.js → chunk-IRUDNBAR.js} +4 -4
- package/dist/chunks/{chunk-PIVHVYCN.js → chunk-IYEDXZQZ.js} +412 -15
- package/dist/chunks/chunk-IYEDXZQZ.js.map +6 -0
- package/dist/chunks/{chunk-PMX2WTZL.js → chunk-J2FGTLZV.js} +2 -2
- package/dist/chunks/{chunk-YDSWGJWF.js → chunk-JAB62RI5.js} +2 -2
- package/dist/chunks/{chunk-AX5ESG6K.js → chunk-JKPUOSDC.js} +2 -2
- package/dist/chunks/{chunk-DFCJYRT5.js → chunk-K5FQ4G64.js} +2 -2
- package/dist/chunks/{chunk-HB5ZN5KQ.js → chunk-KVCYYXCS.js} +2 -2
- package/dist/chunks/{chunk-2X6JZAKH.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-JL64XHSL.js → chunk-L6QJZZCJ.js} +6 -6
- package/dist/chunks/{chunk-GCCFTP47.js → chunk-LHZSSQ6K.js} +4 -4
- package/dist/chunks/{chunk-VFVWHYHT.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-TZZOQ62Z.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-DQLSLXDF.js → chunk-MKRYUMLP.js} +6 -6
- package/dist/chunks/{chunk-YTE3QIH3.js → chunk-MMZHUQZQ.js} +3688 -1279
- package/dist/chunks/chunk-MMZHUQZQ.js.map +6 -0
- package/dist/chunks/{chunk-SJFPZPOJ.js → chunk-MYSU54EZ.js} +14 -12
- package/dist/chunks/chunk-MYSU54EZ.js.map +6 -0
- package/dist/chunks/{chunk-VZ4PKWLF.js → chunk-NUNOIP4Y.js} +2 -2
- package/dist/chunks/{chunk-SGRO4RJP.js → chunk-NXX6C3WS.js} +2 -2
- package/dist/chunks/{chunk-XPLHAOGE.js → chunk-OENL667J.js} +2 -2
- package/dist/chunks/{chunk-2NI5NS5S.js → chunk-OMRU22BQ.js} +4 -4
- package/dist/chunks/{chunk-GANFMGV7.js → chunk-P6FEQPES.js} +2 -2
- package/dist/chunks/{chunk-ACSG5R5P.js → chunk-P6RUYL3F.js} +3 -3
- package/dist/chunks/{chunk-26C37THH.js → chunk-P7MNE6YP.js} +8 -419
- package/dist/chunks/chunk-P7MNE6YP.js.map +6 -0
- package/dist/chunks/{chunk-FHQTXWDA.js → chunk-RJQ6WQYX.js} +358 -32
- package/dist/chunks/chunk-RJQ6WQYX.js.map +6 -0
- package/dist/chunks/{chunk-MYL75RA4.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-435DYOG4.js → chunk-TFOIA3U3.js} +2 -2
- package/dist/chunks/{chunk-HTBMDD6Y.js → chunk-THJQXERD.js} +8 -8
- package/dist/chunks/{chunk-DECJPLLA.js → chunk-THQAGFMO.js} +17 -17
- package/dist/chunks/{chunk-GNEDN6MU.js → chunk-THUX2WOG.js} +12 -12
- package/dist/chunks/{chunk-HKCIZR5P.js → chunk-TKIWAXRU.js} +10 -10
- package/dist/chunks/{chunk-AI6PBE5G.js → chunk-TUF4NNJV.js} +2 -2
- package/dist/chunks/{chunk-IJZ7SLBV.js → chunk-U33GIKBK.js} +4 -4
- package/dist/chunks/{chunk-LQRP2VRQ.js → chunk-U3EQTU4G.js} +4 -4
- package/dist/chunks/{chunk-WQFHJ4TO.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-2U5M5IYH.js → chunk-VGUU6E6X.js} +6 -6
- package/dist/chunks/{chunk-BT7ZELXJ.js → chunk-VHFPIYVY.js} +2 -2
- package/dist/chunks/{chunk-I5E4MT3C.js → chunk-VY377HAA.js} +4 -4
- package/dist/chunks/{chunk-MJBGVVI5.js → chunk-WG32TSVL.js} +3 -3
- package/dist/chunks/{chunk-LFPTXRMM.js → chunk-WSIMHBEQ.js} +2 -2
- package/dist/chunks/{chunk-YUYNIAJX.js → chunk-X4WCRRZV.js} +6 -6
- package/dist/chunks/{chunk-LG27EJU6.js → chunk-X7WLWVR7.js} +2 -2
- package/dist/chunks/{chunk-2OVZNENW.js → chunk-XH5YF2YX.js} +2 -2
- package/dist/chunks/{chunk-6IDFHPY3.js → chunk-Y2PZNQH5.js} +3 -3
- package/dist/chunks/{chunk-UGDZ7MLG.js → chunk-YLNQLDMP.js} +5 -5
- package/dist/chunks/{chunk-HRJPVPSU.js → chunk-YOWYTBJS.js} +2 -70
- package/dist/chunks/chunk-YOWYTBJS.js.map +6 -0
- package/dist/chunks/{cli-runtime-F4MEMBDL.js → cli-runtime-QWBGE2VF.js} +15 -15
- package/dist/chunks/{commands-ZCNZVYTG.js → commands-LVUUZ6LF.js} +5 -5
- package/dist/chunks/{crash-report-K53VF4H5.js → crash-report-PGXMRS5P.js} +8 -8
- package/dist/chunks/{dist-XNGK3C4G.js → dist-6HN2ZMLV.js} +2 -2
- package/dist/chunks/{dist-H53G25BE.js → dist-JJANJMY5.js} +162 -13
- package/dist/chunks/dist-JJANJMY5.js.map +6 -0
- package/dist/chunks/{dist-6IPPA55L.js → dist-JRBSW53E.js} +2 -2
- package/dist/chunks/{dist-RIH2Q2ER.js → dist-NSCNMOX7.js} +2 -2
- package/dist/chunks/{dist-VSJGDIXP.js → dist-TC6H7TPQ.js} +48 -2
- package/dist/chunks/{dist-T6KE7URX.js → dist-V4SNHHMB.js} +2 -2
- package/dist/chunks/{dist-L5LBM77I.js → dist-VON3NRHE.js} +35 -6
- package/dist/chunks/dist-VON3NRHE.js.map +6 -0
- package/dist/chunks/{dist-RTIKLSUV.js → dist-VV3V36IP.js} +2 -2
- package/dist/chunks/{doctor-DOCGTBME.js → doctor-P7L35KGN.js} +17 -15
- package/dist/chunks/{drain-LT3J2MEA.js → drain-HOHRXIYY.js} +11 -11
- package/dist/chunks/{entry-UHKDLPDS.js → entry-L7XZIE7J.js} +13 -12
- package/dist/chunks/entry-L7XZIE7J.js.map +6 -0
- package/dist/chunks/{eval-DH26W2QK.js → eval-2F473JAC.js} +2 -2
- package/dist/chunks/{exec-QGAHWUUQ.js → exec-VCM4AL2S.js} +43 -39
- package/dist/chunks/exec-VCM4AL2S.js.map +6 -0
- package/dist/chunks/{github-JTMZJAZL.js → github-OFCHQMQQ.js} +2 -2
- package/dist/chunks/{home-GGVNSCCU.js → home-R6WCBSOT.js} +3 -3
- package/dist/chunks/host-JGPJVLTC.js +28 -0
- package/dist/chunks/{host-queries-4EW7M54U.js → host-queries-QWV47CFK.js} +17 -17
- package/dist/chunks/{learn-PAO3IOYA.js → learn-3UPHM5OI.js} +14 -14
- package/dist/chunks/{learn-builtin-DXZUXOGG.js → learn-builtin-3Q4BJFCF.js} +17 -17
- package/dist/chunks/{lifecycle-KDN4D7DP.js → lifecycle-EJLVISCU.js} +33 -30
- package/dist/chunks/{list-KSP6S57Z.js → list-DQJBF4AB.js} +13 -13
- package/dist/chunks/{live-XWJ2JOFO.js → live-IWDOVSLG.js} +16 -14
- package/dist/chunks/login-B2PHE6IL.js +34 -0
- package/dist/chunks/{logs-UYB55HOX.js → logs-5UTV3FMG.js} +4 -4
- package/dist/chunks/{mcp-JWSI4KA6.js → mcp-JN36OQLX.js} +24 -21
- package/dist/chunks/mcp-JN36OQLX.js.map +6 -0
- package/dist/chunks/{message-command-YP6TGD3K.js → message-command-RMLQ2PU5.js} +48 -44
- package/dist/chunks/message-command-RMLQ2PU5.js.map +6 -0
- package/dist/chunks/mouse-WFSJSLQD.js +22 -0
- package/dist/chunks/{open-QUDHJK5H.js → open-LDBJL43A.js} +8 -7
- package/dist/chunks/{operator-tools-43NL7HKO.js → operator-tools-NA7PLRIP.js} +14 -14
- package/dist/chunks/{output-schema-TLW5FA37.js → output-schema-UKYWRZPS.js} +3 -3
- package/dist/chunks/{pal-EZE2KLYZ.js → pal-MAVUNYMB.js} +17 -14
- package/dist/chunks/pal-MAVUNYMB.js.map +6 -0
- package/dist/chunks/{peers-OBENILN2.js → peers-FBTQW2SY.js} +6 -6
- package/dist/chunks/{providers-PJIHLTXP.js → providers-M75ET3GT.js} +31 -16
- package/dist/chunks/{pty-HDEXCPR6.js → pty-VMUEEJRN.js} +3 -3
- package/dist/chunks/{resident-2GHB3BKR.js → resident-URNRPE2S.js} +27 -27
- package/dist/chunks/resume-7B3EHDJ7.js +24 -0
- package/dist/chunks/{resume-command-VB6VA64L.js → resume-command-5QGHV6WR.js} +4 -4
- package/dist/chunks/{schedule-42N4JOQJ.js → schedule-BK3WF2VK.js} +8 -8
- package/dist/chunks/{service-6WGZKKI4.js → service-VWASFP3R.js} +31 -28
- package/dist/chunks/service-VWASFP3R.js.map +6 -0
- package/dist/chunks/{session-step-SBWIM4MZ.js → session-step-DORV5FER.js} +16 -16
- package/dist/chunks/{skills-V3VDOL3D.js → skills-TDDPMTQI.js} +9 -9
- package/dist/chunks/{spaces-6II4JYTZ.js → spaces-AEOU6MSZ.js} +31 -21
- package/dist/chunks/spaces-AEOU6MSZ.js.map +6 -0
- package/dist/chunks/{start-check-MRSPS5JT.js → start-check-N4TPV2TM.js} +2 -2
- package/dist/chunks/{state-HX3XRNPC.js → state-SHLWYVZU.js} +2 -2
- package/dist/chunks/{store-MQXI7G2H.js → store-75YZOOZI.js} +4 -4
- package/dist/chunks/{store-IX6KNJA4.js → store-CQVUIU7K.js} +6 -6
- package/dist/chunks/{store-FUQE7EWU.js → store-GUSFCKJA.js} +11 -11
- package/dist/chunks/{store-7P462EUD.js → store-Z5H6LYVE.js} +3 -3
- package/dist/chunks/store-Z5H6LYVE.js.map +6 -0
- package/dist/chunks/{tui-PH5B6UCO.js → tui-PGHWYFN4.js} +8263 -7114
- package/dist/chunks/tui-PGHWYFN4.js.map +6 -0
- package/dist/chunks/{upgrade-HDW5MWLE.js → upgrade-RHPZQ33L.js} +6 -6
- package/dist/chunks/{worktree-MLFYZF56.js → worktree-5IYFN33C.js} +13 -13
- package/dist/commands/login.d.ts +2 -2
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/spaces.d.ts +5 -1
- package/dist/commands/spaces.d.ts.map +1 -1
- 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 +20 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/index.js +23 -21
- 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/providers/anthropic-endpoint.d.ts +34 -0
- package/dist/integrations/providers/anthropic-endpoint.d.ts.map +1 -0
- 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/registry.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +22 -22
- 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/host.d.ts +66 -0
- package/dist/spaces/host.d.ts.map +1 -1
- package/dist/spaces/mouse.d.ts +34 -0
- package/dist/spaces/mouse.d.ts.map +1 -0
- package/dist/spaces/selection.d.ts +52 -0
- package/dist/spaces/selection.d.ts.map +1 -0
- package/dist/terminal/screen.d.ts +14 -0
- package/dist/terminal/screen.d.ts.map +1 -1
- package/dist/tui/App.d.ts +9 -63
- 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 +8 -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/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/agent.d.ts +21 -9
- 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/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 +4 -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/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/slashCommands.d.ts +11 -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/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 +3 -0
- package/dist/tui/zoom/entry.d.ts.map +1 -1
- package/package.json +10 -9
- package/dist/chunks/acp-OUBJWH5B.js.map +0 -6
- package/dist/chunks/add-PSEIDDRW.js.map +0 -6
- package/dist/chunks/agent-session-EZB2OYG3.js +0 -65
- package/dist/chunks/chunk-26C37THH.js.map +0 -6
- package/dist/chunks/chunk-2Y26DLOF.js.map +0 -6
- package/dist/chunks/chunk-3NJPNX6V.js.map +0 -6
- package/dist/chunks/chunk-6EJFXJDO.js.map +0 -6
- package/dist/chunks/chunk-6LLJQ3KY.js.map +0 -6
- package/dist/chunks/chunk-7QQOUCGI.js.map +0 -6
- package/dist/chunks/chunk-FHQTXWDA.js.map +0 -6
- package/dist/chunks/chunk-G73G2WGR.js.map +0 -6
- package/dist/chunks/chunk-HRJPVPSU.js.map +0 -6
- package/dist/chunks/chunk-ITA57VY5.js.map +0 -6
- package/dist/chunks/chunk-LKJBDF7W.js.map +0 -6
- package/dist/chunks/chunk-LKODRKMZ.js +0 -575
- package/dist/chunks/chunk-LKODRKMZ.js.map +0 -6
- package/dist/chunks/chunk-M2OZ4SVS.js.map +0 -6
- package/dist/chunks/chunk-PIVHVYCN.js.map +0 -6
- package/dist/chunks/chunk-SJFPZPOJ.js.map +0 -6
- package/dist/chunks/chunk-TZZOQ62Z.js.map +0 -6
- package/dist/chunks/chunk-YTE3QIH3.js.map +0 -6
- package/dist/chunks/dist-H53G25BE.js.map +0 -6
- package/dist/chunks/dist-L5LBM77I.js.map +0 -6
- package/dist/chunks/entry-UHKDLPDS.js.map +0 -6
- package/dist/chunks/exec-QGAHWUUQ.js.map +0 -6
- package/dist/chunks/host-6CUYPX4T.js +0 -23
- package/dist/chunks/login-3Q2HKQUW.js +0 -31
- package/dist/chunks/mcp-JWSI4KA6.js.map +0 -6
- package/dist/chunks/message-command-YP6TGD3K.js.map +0 -6
- package/dist/chunks/pal-EZE2KLYZ.js.map +0 -6
- package/dist/chunks/resume-FHPY2RU3.js +0 -24
- package/dist/chunks/service-6WGZKKI4.js.map +0 -6
- package/dist/chunks/spaces-6II4JYTZ.js.map +0 -6
- package/dist/chunks/tui-PH5B6UCO.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/{activity-command-R7MUSZIY.js.map → activity-command-DB4DREW7.js.map} +0 -0
- /package/dist/chunks/{agent-YPEXUYPH.js.map → agent-6TD66IMV.js.map} +0 -0
- /package/dist/chunks/{agent-session-EZB2OYG3.js.map → agent-session-3A5K5VK3.js.map} +0 -0
- /package/dist/chunks/{archive-ET4PXE34.js.map → archive-A3X7KX2U.js.map} +0 -0
- /package/dist/chunks/{bin-main-PMB57AZJ.js.map → bin-main-5PYV7WYI.js.map} +0 -0
- /package/dist/chunks/{binding-K6RIQ5AP.js.map → binding-EMMG5PAE.js.map} +0 -0
- /package/dist/chunks/{browser-SKTIAVBF.js.map → browser-FUFFJBRR.js.map} +0 -0
- /package/dist/chunks/{chat-AVIVXXMD.js.map → chat-M653DEAF.js.map} +0 -0
- /package/dist/chunks/{chunk-YXIG4OT2.js.map → chunk-24FBGXYR.js.map} +0 -0
- /package/dist/chunks/{chunk-XX2SP5AM.js.map → chunk-2OAD3CZE.js.map} +0 -0
- /package/dist/chunks/{chunk-7FPKSX4M.js.map → chunk-2YCPLLUW.js.map} +0 -0
- /package/dist/chunks/{chunk-LF76CVOZ.js.map → chunk-325X27UO.js.map} +0 -0
- /package/dist/chunks/{chunk-GBS6ATYF.js.map → chunk-43HR3AF5.js.map} +0 -0
- /package/dist/chunks/{chunk-B3XIVOLM.js.map → chunk-43PTHA5N.js.map} +0 -0
- /package/dist/chunks/{chunk-RSIWTHYS.js.map → chunk-46OOPRR6.js.map} +0 -0
- /package/dist/chunks/{chunk-U4SST7AD.js.map → chunk-4DVCHAWN.js.map} +0 -0
- /package/dist/chunks/{chunk-HELINLSD.js.map → chunk-6ZEHXLF7.js.map} +0 -0
- /package/dist/chunks/{chunk-MGZSEPDY.js.map → chunk-7TBETDTX.js.map} +0 -0
- /package/dist/chunks/{chunk-L2NNJ4XL.js.map → chunk-ADCVLGQO.js.map} +0 -0
- /package/dist/chunks/{chunk-IZVN6K6U.js.map → chunk-ANHFJD66.js.map} +0 -0
- /package/dist/chunks/{chunk-LYGD5P7O.js.map → chunk-B6INWHLR.js.map} +0 -0
- /package/dist/chunks/{chunk-4OXIJ2EF.js.map → chunk-BICC735N.js.map} +0 -0
- /package/dist/chunks/{chunk-6FWFSPUL.js.map → chunk-BOM64EUQ.js.map} +0 -0
- /package/dist/chunks/{chunk-WYJ3CNXX.js.map → chunk-C4MAQ64X.js.map} +0 -0
- /package/dist/chunks/{chunk-2EHPXO4E.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-3QGJXD7U.js.map → chunk-E3FA5H3Q.js.map} +0 -0
- /package/dist/chunks/{chunk-YJ6NWB2B.js.map → chunk-EFU2OFEK.js.map} +0 -0
- /package/dist/chunks/{chunk-QWSZ5P4C.js.map → chunk-FZR4XULA.js.map} +0 -0
- /package/dist/chunks/{chunk-WKPRYH24.js.map → chunk-GAEZQRQI.js.map} +0 -0
- /package/dist/chunks/{chunk-S4QOQGAT.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-VDKDXDOH.js.map → chunk-H6AUN2YD.js.map} +0 -0
- /package/dist/chunks/{chunk-7TEXDZVO.js.map → chunk-HFD2VRQP.js.map} +0 -0
- /package/dist/chunks/{chunk-WKFHQQOU.js.map → chunk-HH3NBBBE.js.map} +0 -0
- /package/dist/chunks/{chunk-A5GTZ7R2.js.map → chunk-HV2JFRSE.js.map} +0 -0
- /package/dist/chunks/{chunk-BGKQCLLH.js.map → chunk-IRUDNBAR.js.map} +0 -0
- /package/dist/chunks/{chunk-PMX2WTZL.js.map → chunk-J2FGTLZV.js.map} +0 -0
- /package/dist/chunks/{chunk-YDSWGJWF.js.map → chunk-JAB62RI5.js.map} +0 -0
- /package/dist/chunks/{chunk-AX5ESG6K.js.map → chunk-JKPUOSDC.js.map} +0 -0
- /package/dist/chunks/{chunk-DFCJYRT5.js.map → chunk-K5FQ4G64.js.map} +0 -0
- /package/dist/chunks/{chunk-HB5ZN5KQ.js.map → chunk-KVCYYXCS.js.map} +0 -0
- /package/dist/chunks/{chunk-2X6JZAKH.js.map → chunk-KZ5WYSA6.js.map} +0 -0
- /package/dist/chunks/{chunk-JL64XHSL.js.map → chunk-L6QJZZCJ.js.map} +0 -0
- /package/dist/chunks/{chunk-GCCFTP47.js.map → chunk-LHZSSQ6K.js.map} +0 -0
- /package/dist/chunks/{chunk-VFVWHYHT.js.map → chunk-LR4QQMJH.js.map} +0 -0
- /package/dist/chunks/{chunk-DQLSLXDF.js.map → chunk-MKRYUMLP.js.map} +0 -0
- /package/dist/chunks/{chunk-VZ4PKWLF.js.map → chunk-NUNOIP4Y.js.map} +0 -0
- /package/dist/chunks/{chunk-SGRO4RJP.js.map → chunk-NXX6C3WS.js.map} +0 -0
- /package/dist/chunks/{chunk-XPLHAOGE.js.map → chunk-OENL667J.js.map} +0 -0
- /package/dist/chunks/{chunk-2NI5NS5S.js.map → chunk-OMRU22BQ.js.map} +0 -0
- /package/dist/chunks/{chunk-GANFMGV7.js.map → chunk-P6FEQPES.js.map} +0 -0
- /package/dist/chunks/{chunk-ACSG5R5P.js.map → chunk-P6RUYL3F.js.map} +0 -0
- /package/dist/chunks/{chunk-MYL75RA4.js.map → chunk-S2UDKXWH.js.map} +0 -0
- /package/dist/chunks/{chunk-435DYOG4.js.map → chunk-TFOIA3U3.js.map} +0 -0
- /package/dist/chunks/{chunk-HTBMDD6Y.js.map → chunk-THJQXERD.js.map} +0 -0
- /package/dist/chunks/{chunk-DECJPLLA.js.map → chunk-THQAGFMO.js.map} +0 -0
- /package/dist/chunks/{chunk-GNEDN6MU.js.map → chunk-THUX2WOG.js.map} +0 -0
- /package/dist/chunks/{chunk-HKCIZR5P.js.map → chunk-TKIWAXRU.js.map} +0 -0
- /package/dist/chunks/{chunk-AI6PBE5G.js.map → chunk-TUF4NNJV.js.map} +0 -0
- /package/dist/chunks/{chunk-IJZ7SLBV.js.map → chunk-U33GIKBK.js.map} +0 -0
- /package/dist/chunks/{chunk-LQRP2VRQ.js.map → chunk-U3EQTU4G.js.map} +0 -0
- /package/dist/chunks/{chunk-WQFHJ4TO.js.map → chunk-U6U472VN.js.map} +0 -0
- /package/dist/chunks/{chunk-2U5M5IYH.js.map → chunk-VGUU6E6X.js.map} +0 -0
- /package/dist/chunks/{chunk-BT7ZELXJ.js.map → chunk-VHFPIYVY.js.map} +0 -0
- /package/dist/chunks/{chunk-I5E4MT3C.js.map → chunk-VY377HAA.js.map} +0 -0
- /package/dist/chunks/{chunk-MJBGVVI5.js.map → chunk-WG32TSVL.js.map} +0 -0
- /package/dist/chunks/{chunk-LFPTXRMM.js.map → chunk-WSIMHBEQ.js.map} +0 -0
- /package/dist/chunks/{chunk-YUYNIAJX.js.map → chunk-X4WCRRZV.js.map} +0 -0
- /package/dist/chunks/{chunk-LG27EJU6.js.map → chunk-X7WLWVR7.js.map} +0 -0
- /package/dist/chunks/{chunk-2OVZNENW.js.map → chunk-XH5YF2YX.js.map} +0 -0
- /package/dist/chunks/{chunk-6IDFHPY3.js.map → chunk-Y2PZNQH5.js.map} +0 -0
- /package/dist/chunks/{chunk-UGDZ7MLG.js.map → chunk-YLNQLDMP.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-F4MEMBDL.js.map → cli-runtime-QWBGE2VF.js.map} +0 -0
- /package/dist/chunks/{commands-ZCNZVYTG.js.map → commands-LVUUZ6LF.js.map} +0 -0
- /package/dist/chunks/{crash-report-K53VF4H5.js.map → crash-report-PGXMRS5P.js.map} +0 -0
- /package/dist/chunks/{dist-XNGK3C4G.js.map → dist-6HN2ZMLV.js.map} +0 -0
- /package/dist/chunks/{dist-6IPPA55L.js.map → dist-JRBSW53E.js.map} +0 -0
- /package/dist/chunks/{dist-RIH2Q2ER.js.map → dist-NSCNMOX7.js.map} +0 -0
- /package/dist/chunks/{dist-VSJGDIXP.js.map → dist-TC6H7TPQ.js.map} +0 -0
- /package/dist/chunks/{dist-T6KE7URX.js.map → dist-V4SNHHMB.js.map} +0 -0
- /package/dist/chunks/{dist-RTIKLSUV.js.map → dist-VV3V36IP.js.map} +0 -0
- /package/dist/chunks/{doctor-DOCGTBME.js.map → doctor-P7L35KGN.js.map} +0 -0
- /package/dist/chunks/{drain-LT3J2MEA.js.map → drain-HOHRXIYY.js.map} +0 -0
- /package/dist/chunks/{eval-DH26W2QK.js.map → eval-2F473JAC.js.map} +0 -0
- /package/dist/chunks/{github-JTMZJAZL.js.map → github-OFCHQMQQ.js.map} +0 -0
- /package/dist/chunks/{home-GGVNSCCU.js.map → home-R6WCBSOT.js.map} +0 -0
- /package/dist/chunks/{host-6CUYPX4T.js.map → host-JGPJVLTC.js.map} +0 -0
- /package/dist/chunks/{host-queries-4EW7M54U.js.map → host-queries-QWV47CFK.js.map} +0 -0
- /package/dist/chunks/{learn-PAO3IOYA.js.map → learn-3UPHM5OI.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-DXZUXOGG.js.map → learn-builtin-3Q4BJFCF.js.map} +0 -0
- /package/dist/chunks/{lifecycle-KDN4D7DP.js.map → lifecycle-EJLVISCU.js.map} +0 -0
- /package/dist/chunks/{list-KSP6S57Z.js.map → list-DQJBF4AB.js.map} +0 -0
- /package/dist/chunks/{live-XWJ2JOFO.js.map → live-IWDOVSLG.js.map} +0 -0
- /package/dist/chunks/{login-3Q2HKQUW.js.map → login-B2PHE6IL.js.map} +0 -0
- /package/dist/chunks/{logs-UYB55HOX.js.map → logs-5UTV3FMG.js.map} +0 -0
- /package/dist/chunks/{open-QUDHJK5H.js.map → mouse-WFSJSLQD.js.map} +0 -0
- /package/dist/chunks/{output-schema-TLW5FA37.js.map → open-LDBJL43A.js.map} +0 -0
- /package/dist/chunks/{operator-tools-43NL7HKO.js.map → operator-tools-NA7PLRIP.js.map} +0 -0
- /package/dist/chunks/{peers-OBENILN2.js.map → output-schema-UKYWRZPS.js.map} +0 -0
- /package/dist/chunks/{providers-PJIHLTXP.js.map → peers-FBTQW2SY.js.map} +0 -0
- /package/dist/chunks/{pty-HDEXCPR6.js.map → providers-M75ET3GT.js.map} +0 -0
- /package/dist/chunks/{resume-FHPY2RU3.js.map → pty-VMUEEJRN.js.map} +0 -0
- /package/dist/chunks/{resident-2GHB3BKR.js.map → resident-URNRPE2S.js.map} +0 -0
- /package/dist/chunks/{resume-command-VB6VA64L.js.map → resume-7B3EHDJ7.js.map} +0 -0
- /package/dist/chunks/{session-step-SBWIM4MZ.js.map → resume-command-5QGHV6WR.js.map} +0 -0
- /package/dist/chunks/{schedule-42N4JOQJ.js.map → schedule-BK3WF2VK.js.map} +0 -0
- /package/dist/chunks/{start-check-MRSPS5JT.js.map → session-step-DORV5FER.js.map} +0 -0
- /package/dist/chunks/{skills-V3VDOL3D.js.map → skills-TDDPMTQI.js.map} +0 -0
- /package/dist/chunks/{store-7P462EUD.js.map → start-check-N4TPV2TM.js.map} +0 -0
- /package/dist/chunks/{state-HX3XRNPC.js.map → state-SHLWYVZU.js.map} +0 -0
- /package/dist/chunks/{store-FUQE7EWU.js.map → store-75YZOOZI.js.map} +0 -0
- /package/dist/chunks/{store-IX6KNJA4.js.map → store-CQVUIU7K.js.map} +0 -0
- /package/dist/chunks/{store-MQXI7G2H.js.map → store-GUSFCKJA.js.map} +0 -0
- /package/dist/chunks/{upgrade-HDW5MWLE.js.map → upgrade-RHPZQ33L.js.map} +0 -0
- /package/dist/chunks/{worktree-MLFYZF56.js.map → worktree-5IYFN33C.js.map} +0 -0
|
@@ -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":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AM,EAAE,MAAM,GAAG,aAAa,CAqBnE;AAuBD,sFAAsF;AACtF,wBAAgB,oBAAoB,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":[],"m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
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether this process runs inside WSL, and how Windows paths read from it.
|
|
3
|
+
*
|
|
4
|
+
* Kept here, not imported from the browser package, because that package is
|
|
5
|
+
* loaded lazily (it is heavy) and the clipboard path must stay cheap. Only
|
|
6
|
+
* the few pure functions the clipboard needs live here.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_WSL_MOUNT_ROOT = "/mnt/";
|
|
9
|
+
export interface WslProbe {
|
|
10
|
+
readonly platform: NodeJS.Platform;
|
|
11
|
+
readonly env: Readonly<Record<string, string | undefined>>;
|
|
12
|
+
/** The text of a file, or `undefined` when it cannot be read. */
|
|
13
|
+
readonly readText: (path: string) => string | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare function readTextOrUndefined(path: string): string | undefined;
|
|
16
|
+
/** WSL sets one of two variables; failing that the kernel's version string names it. */
|
|
17
|
+
export declare function isWslEnv(probe: WslProbe): boolean;
|
|
18
|
+
/** The `[automount] root` of `/etc/wsl.conf`, with a trailing slash; `/mnt/` by default. */
|
|
19
|
+
export declare function parseWslMountRoot(wslConf: string | undefined): string;
|
|
20
|
+
/** `C:\Users\A` to `/mnt/c/Users/A`. `undefined` when it is not a drive path. */
|
|
21
|
+
export declare function windowsPathToWsl(windowsPath: string, mountRoot?: string): string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* A path on this distribution's own share (`\\wsl$\Distro\home\a` or
|
|
24
|
+
* `\\wsl.localhost\Distro\home\a`) as the Linux path `/home/a`. `undefined`
|
|
25
|
+
* for another distribution (not reachable from here) or any other UNC path.
|
|
26
|
+
*/
|
|
27
|
+
export declare function wslSharePathToLinux(uncPath: string, distro: string | undefined): string | undefined;
|
|
28
|
+
export interface PathEnvironment {
|
|
29
|
+
readonly wsl: boolean;
|
|
30
|
+
/** True on native Windows, where drive and share paths are read as they are. */
|
|
31
|
+
readonly windows?: boolean;
|
|
32
|
+
/** The WSL distribution's name, for `\\wsl$\<name>` paths. */
|
|
33
|
+
readonly distro?: string;
|
|
34
|
+
readonly mountRoot: string;
|
|
35
|
+
}
|
|
36
|
+
/** This process's WSL facts, worked out once. */
|
|
37
|
+
export declare function currentPathEnvironment(): PathEnvironment;
|
|
38
|
+
//# sourceMappingURL=wsl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wsl.d.ts","sourceRoot":"","sources":["../../../src/integrations/clipboard/wsl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,sBAAsB,UAAU,CAAA;AAE7C,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAA;IAClC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAC1D,iEAAiE;IACjE,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;CACvD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMpE;AAED,wFAAwF;AACxF,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAKjD;AAED,4FAA4F;AAC5F,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAkBrE;AAED,iFAAiF;AACjF,wBAAgB,gBAAgB,CAC/B,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAA+B,GACxC,MAAM,GAAG,SAAS,CAOpB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,SAAS,GACxB,MAAM,GAAG,SAAS,CAKpB;AAED,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAA;IACrB,gFAAgF;IAChF,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,8DAA8D;IAC9D,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC1B;AAID,iDAAiD;AACjD,wBAAgB,sBAAsB,IAAI,eAAe,CAgBxD"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One liveness record for every running item of a session: background jobs,
|
|
3
|
+
* monitors, delegated agents and workflow runs.
|
|
4
|
+
*
|
|
5
|
+
* Pure over what it is given. The caller supplies the clock and the facts it
|
|
6
|
+
* read (the job registry's records and its process probe, the agent monitor's
|
|
7
|
+
* snapshot, the workflow registry's views), and the verdict comes from the
|
|
8
|
+
* kernel's `judgeLiveness`, so the note the model is shown on every request
|
|
9
|
+
* and the lines the status reads return are the same words.
|
|
10
|
+
*/
|
|
11
|
+
import { type Liveness } from '@namzu/sdk';
|
|
12
|
+
import type { SubagentActivity } from '../subagents/activity.js';
|
|
13
|
+
import { type WorkflowRunView } from '../workflows/view.js';
|
|
14
|
+
/** A job or monitor as the registry holds it, with its process probe already asked. */
|
|
15
|
+
export interface JobFact {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly command: string;
|
|
18
|
+
readonly description?: string;
|
|
19
|
+
readonly kind?: 'monitor';
|
|
20
|
+
readonly status: 'running' | 'exited' | 'killed';
|
|
21
|
+
readonly startedAt: number;
|
|
22
|
+
readonly lastOutputAt?: number;
|
|
23
|
+
readonly lastOutputLine?: string;
|
|
24
|
+
readonly alive: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface OutstandingFacts {
|
|
27
|
+
readonly now: number;
|
|
28
|
+
readonly jobs: readonly JobFact[];
|
|
29
|
+
readonly agents: readonly SubagentActivity[];
|
|
30
|
+
readonly workflows: readonly WorkflowRunView[];
|
|
31
|
+
/** The id the model sees for an agent; defaults to its task id. */
|
|
32
|
+
readonly agentId?: (agent: SubagentActivity) => string;
|
|
33
|
+
}
|
|
34
|
+
/** A short, deterministic label of what an agent is doing: no model call, only what the monitor saw. */
|
|
35
|
+
export declare function agentProgressLabel(agent: SubagentActivity): string | undefined;
|
|
36
|
+
/** The phase a run is in: the latest phase any running agent belongs to, else the latest agent's. */
|
|
37
|
+
export declare function currentPhase(view: WorkflowRunView): {
|
|
38
|
+
readonly index: number;
|
|
39
|
+
readonly total: number;
|
|
40
|
+
readonly title: string;
|
|
41
|
+
} | undefined;
|
|
42
|
+
/** The most recent thing any part of a run did, from the agents' own times and their live rows. */
|
|
43
|
+
export declare function workflowLastProgressAt(view: WorkflowRunView, snapshot: readonly SubagentActivity[]): number;
|
|
44
|
+
/**
|
|
45
|
+
* The running items, workflows first, then agents, jobs and monitors, each
|
|
46
|
+
* group oldest first. Ended items are not outstanding and are left out; an
|
|
47
|
+
* item the registry still lists as running whose probe says it is gone stays,
|
|
48
|
+
* as `dead`, so the model can say so instead of waiting for it.
|
|
49
|
+
*/
|
|
50
|
+
export declare function collectOutstanding(facts: OutstandingFacts): readonly Liveness[];
|
|
51
|
+
//# sourceMappingURL=collect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collect.d.ts","sourceRoot":"","sources":["../../../src/integrations/outstanding/collect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAqB,KAAK,QAAQ,EAAqC,MAAM,YAAY,CAAA;AAEhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAE,KAAK,eAAe,EAAe,MAAM,sBAAsB,CAAA;AAExE,uFAAuF;AACvF,MAAM,WAAW,OAAO;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAA;IACzB,QAAQ,CA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
* The host passes accessors rather than the objects, because most of them
|
|
5
|
+
* come into being after the session does (the agent runtime, the workflow
|
|
6
|
+
* host) and some are absent in a given run. Each call reads fresh; nothing is
|
|
7
|
+
* remembered between requests.
|
|
8
|
+
*/
|
|
9
|
+
import type { BackgroundJobRegistry, SessionId } from '@namzu/sdk';
|
|
10
|
+
import type { SubagentActivitySource } from '../subagents/activity.js';
|
|
11
|
+
import type { WorkflowRunView } from '../workflows/view.js';
|
|
12
|
+
import type { OutstandingFacts } from './collect.js';
|
|
13
|
+
export interface OutstandingFactSources {
|
|
14
|
+
readonly jobs: () => BackgroundJobRegistry | undefined;
|
|
15
|
+
/** The id background jobs of this session are owned by. */
|
|
16
|
+
readonly jobOwner: string;
|
|
17
|
+
readonly activity: () => SubagentActivitySource | undefined;
|
|
18
|
+
/** Every workflow run of the conversation, ended ones included. */
|
|
19
|
+
readonly workflows: (sessionId: SessionId) => readonly WorkflowRunView[];
|
|
20
|
+
readonly agentId?: OutstandingFacts['agentId'];
|
|
21
|
+
}
|
|
22
|
+
export declare function createOutstandingFacts(sources: OutstandingFactSources): (sessionId: SessionId) => Omit<OutstandingFacts, 'now'>;
|
|
23
|
+
//# sourceMappingURL=facts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"facts.d.ts","sourceRoot":"","sources":["../../../src/integrations/outstanding/facts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAElE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAW,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE7D,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,qBAAqB,GAAG,SAAS,CAAA;IACtD,2DAA2D;IAC3D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,sBAAsB,GAAG,SAAS,CAAA;IAC3D,mEAAmE;IACnE,QAAQ,CAAC,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,SAAS,eAAe,EAAE,CAAA;IACxE,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;CAC9C;AAED,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,sBAAsB,GAC7B,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAuBzD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The outstanding-work note: what the model is told about running work on
|
|
3
|
+
* every request of every turn, whichever turn started the work.
|
|
4
|
+
*
|
|
5
|
+
* Built fresh from the host's facts for each request and handed to the
|
|
6
|
+
* per-request context hook, so it is never recorded in the conversation:
|
|
7
|
+
* running state changes every second, and a recorded copy would go stale and
|
|
8
|
+
* then be compacted away. Because it is rebuilt from the registries and not
|
|
9
|
+
* from history, it is present after a compaction as well.
|
|
10
|
+
*/
|
|
11
|
+
import { type Liveness, type PrepareStep, type SessionId } from '@namzu/sdk';
|
|
12
|
+
import { type OutstandingFacts } from './collect.js';
|
|
13
|
+
/** Most lines in one note; the rest are counted. */
|
|
14
|
+
export declare const OUTSTANDING_NOTE_MAX_LINES = 12;
|
|
15
|
+
/** The largest the note may be, in characters, whatever the request budget allows. */
|
|
16
|
+
export declare const OUTSTANDING_NOTE_MAX_CHARS = 3000;
|
|
17
|
+
/** The lines every status read prints: the same words as the note. */
|
|
18
|
+
export declare function outstandingLines(items: readonly Liveness[]): readonly string[];
|
|
19
|
+
/** The note for these items, or `undefined` when nothing is going. */
|
|
20
|
+
export declare function formatOutstandingNote(items: readonly Liveness[], maxChars?: number): string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The per-request step. `facts` reads the live state of one session each
|
|
23
|
+
* time it is called; nothing is cached between requests.
|
|
24
|
+
*/
|
|
25
|
+
export declare function createOutstandingWorkStep(facts: (sessionId: SessionId) => Omit<OutstandingFacts, 'now'>, now?: () => number): PrepareStep;
|
|
26
|
+
//# sourceMappingURL=note.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../../src/integrations/outstanding/note.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAsB,MAAM,YAAY,CAAA;AAEhG,OAAO,EAAE,KAAK,gBAAgB,EAAsB,MAAM,cAAc,CAAA;AAOxE,oDAAoD;AACpD,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAE5C,sFAAsF;AACtF,eAAO,MAAM,0BAA0B,OAAQ,CAAA;AAO/C,sEAAsE;AACtE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,GAAG,SAAS,MAAM,EAAE,CAE9E;AAED,sEAAsE;AACtE,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,SAAS,QAAQ,EAAE,EAC1B,QAAQ,GAAE,MAAmC,GAC3C,MAAM,GAAG,SAAS,CAapB;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACxC,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,EAC9D,GAAG,GAAE,MAAM,MAAiB,GAC1B,WAAW,CAWb"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Two kinds of message the host pushes to the model about work that is still
|
|
3
|
+
* going, so that it need not ask:
|
|
4
|
+
*
|
|
5
|
+
* - a phase note when a workflow run moves on to its next phase. It rides
|
|
6
|
+
* along with the next request and never wakes an idle session, because it
|
|
7
|
+
* carries no news a person is waiting for;
|
|
8
|
+
* - a check-in when a background command has printed nothing for a while.
|
|
9
|
+
* It asks the model to read the output and the process and to stop the
|
|
10
|
+
* command only if it is stuck. It wakes an idle session, because a stuck
|
|
11
|
+
* command is the one thing here that gets worse with time.
|
|
12
|
+
*
|
|
13
|
+
* Check-ins back off: the first comes after {@link CHECK_IN_FIRST_MS} of
|
|
14
|
+
* silence, each next one after twice as much, and {@link CHECK_INS_PER_SILENCE}
|
|
15
|
+
* is all one stretch of silence gets: a server or a watcher is meant to be
|
|
16
|
+
* quiet, and a paid turn every half hour for it helps nobody. New output
|
|
17
|
+
* starts the count again. A check-in that has not been read is withdrawn when
|
|
18
|
+
* its command prints or ends, so a turn never opens on a stale one.
|
|
19
|
+
*
|
|
20
|
+
* A gap between two looks far longer than the look interval means the host
|
|
21
|
+
* was suspended or its clock jumped; the silence then starts over instead of
|
|
22
|
+
* reading as hours. Pure over the facts and the clock the caller passes, so a
|
|
23
|
+
* fake clock drives it.
|
|
24
|
+
*/
|
|
25
|
+
import { type OutstandingFacts } from './collect.js';
|
|
26
|
+
/** Silence before the first check-in on a command. */
|
|
27
|
+
export declare const CHECK_IN_FIRST_MS: number;
|
|
28
|
+
/** Check-ins one stretch of silence gets before the host stops asking. */
|
|
29
|
+
export declare const CHECK_INS_PER_SILENCE = 4;
|
|
30
|
+
/** Closest two probes must be to say a process is gone and not merely unseen for a moment. */
|
|
31
|
+
export declare const GONE_CONFIRM_MS = 250;
|
|
32
|
+
/** A gap between two looks longer than this is a suspended host, not silence. */
|
|
33
|
+
export declare const CLOCK_JUMP_MS: number;
|
|
34
|
+
/** How often the terminal looks, whether or not a run changed. */
|
|
35
|
+
export declare const PROGRESS_LOOK_MS = 15000;
|
|
36
|
+
/** Closest two looks may be, however often a run reports. */
|
|
37
|
+
export declare const PROGRESS_LOOK_MIN_GAP_MS = 1000;
|
|
38
|
+
/** Keys of phase notes start with this; every other key is a message that wakes. */
|
|
39
|
+
export declare const PHASE_NOTE_KEY_PREFIX = "progress:phase:";
|
|
40
|
+
export interface ProgressNotice {
|
|
41
|
+
/** Unique per message, so the host can keep it until the model has read it. */
|
|
42
|
+
readonly key: string;
|
|
43
|
+
readonly text: string;
|
|
44
|
+
/** Whether an idle session should start a turn to read it. */
|
|
45
|
+
readonly wakes: boolean;
|
|
46
|
+
/** The workflow run a phase note is about. */
|
|
47
|
+
readonly runId?: string;
|
|
48
|
+
/** The host should forget the message under `key`: it no longer holds. `text` is empty. */
|
|
49
|
+
readonly retired?: true;
|
|
50
|
+
}
|
|
51
|
+
export interface ProgressNotices {
|
|
52
|
+
/** Notes for what changed since the previous look. The first look only records. */
|
|
53
|
+
look(facts: OutstandingFacts): readonly ProgressNotice[];
|
|
54
|
+
}
|
|
55
|
+
export declare function createProgressNotices(): ProgressNotices;
|
|
56
|
+
/** Whether anything in the pending map is news enough to start a turn for. */
|
|
57
|
+
export declare function noticesWakeASession(pending: ReadonlyMap<string, string>): boolean;
|
|
58
|
+
/** Forget the phase notes of a run that has ended: its completion message says the rest. */
|
|
59
|
+
export declare function dropPhaseNotes(pending: Map<string, string>, runId: string): void;
|
|
60
|
+
/**
|
|
61
|
+
* What a turn that starts now is told about the pending messages: the runs
|
|
62
|
+
* that ended under their own heading, and the progress notes under another, so
|
|
63
|
+
* a phase change is never described as an end.
|
|
64
|
+
*/
|
|
65
|
+
export declare function describePendingWorkflowNotices(pending: ReadonlyMap<string, string>): string | undefined;
|
|
66
|
+
//# sourceMappingURL=progress-notices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-notices.d.ts","sourceRoot":"","sources":["../../../src/integrations/outstanding/progress-notices.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAIH,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,cAAc,CAAA;AAGlE,sDAAsD;AACtD,eAAO,MAAM,iBAAiB,QAAsB,CAAA;AAEpD,0EAA0E;AAC1E,eAAO,MAAM,qBAAqB,IAA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|
|
4
|
+
*
|
|
5
|
+
* Facts and elapsed time only. There is no estimate of when a run will end:
|
|
6
|
+
* the script decides how many agents it asks for, so a number made from the
|
|
7
|
+
* ones that finished would be a guess presented as a measurement.
|
|
8
|
+
*/
|
|
9
|
+
import { type WorkflowRunView } from '../workflows/view.js';
|
|
10
|
+
import { type OutstandingFacts } from './collect.js';
|
|
11
|
+
/** Longest result preview per finished agent, in characters. */
|
|
12
|
+
export declare const STATUS_PREVIEW_CHARS = 300;
|
|
13
|
+
/** What one run reports. Free text from the script and its agents is inside `observed`, marked as data. */
|
|
14
|
+
export declare function describeWorkflowStatus(view: WorkflowRunView, now: number): {
|
|
15
|
+
note: string;
|
|
16
|
+
observed?: string | undefined;
|
|
17
|
+
agents: {
|
|
18
|
+
total: number;
|
|
19
|
+
done: number;
|
|
20
|
+
running: number;
|
|
21
|
+
queued: number;
|
|
22
|
+
failed: number;
|
|
23
|
+
};
|
|
24
|
+
running_agents: {
|
|
25
|
+
elapsed_ms: number;
|
|
26
|
+
last_tool?: string | undefined;
|
|
27
|
+
phase?: string | undefined;
|
|
28
|
+
label: string;
|
|
29
|
+
}[];
|
|
30
|
+
phase?: {
|
|
31
|
+
index: number;
|
|
32
|
+
of: number;
|
|
33
|
+
title: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
run_id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
status: import("../workflows/view.js").WorkflowRunStatus;
|
|
38
|
+
elapsed_ms: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Runs for the status read: the selected one, or every run of the session with
|
|
42
|
+
* those still going first.
|
|
43
|
+
*/
|
|
44
|
+
export declare function describeWorkflowRuns(views: readonly WorkflowRunView[], now: number, runId?: string): {
|
|
45
|
+
workflows: {
|
|
46
|
+
note: string;
|
|
47
|
+
observed?: string | undefined;
|
|
48
|
+
agents: {
|
|
49
|
+
total: number;
|
|
50
|
+
done: number;
|
|
51
|
+
running: number;
|
|
52
|
+
queued: number;
|
|
53
|
+
failed: number;
|
|
54
|
+
};
|
|
55
|
+
running_agents: {
|
|
56
|
+
elapsed_ms: number;
|
|
57
|
+
last_tool?: string | undefined;
|
|
58
|
+
phase?: string | undefined;
|
|
59
|
+
label: string;
|
|
60
|
+
}[];
|
|
61
|
+
phase?: {
|
|
62
|
+
index: number;
|
|
63
|
+
of: number;
|
|
64
|
+
title: string;
|
|
65
|
+
} | undefined;
|
|
66
|
+
run_id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
status: import("../workflows/view.js").WorkflowRunStatus;
|
|
69
|
+
elapsed_ms: number;
|
|
70
|
+
}[];
|
|
71
|
+
omittedWorkflows: number;
|
|
72
|
+
};
|
|
73
|
+
/** What the status read of `agent_task_list` adds: the note's own lines, and the workflow runs in detail. */
|
|
74
|
+
export declare function readWorkStatus(facts: Omit<OutstandingFacts, 'now'>, now: number, runId?: string): {
|
|
75
|
+
workflows: {
|
|
76
|
+
note: string;
|
|
77
|
+
observed?: string | undefined;
|
|
78
|
+
agents: {
|
|
79
|
+
total: number;
|
|
80
|
+
done: number;
|
|
81
|
+
running: number;
|
|
82
|
+
queued: number;
|
|
83
|
+
failed: number;
|
|
84
|
+
};
|
|
85
|
+
running_agents: {
|
|
86
|
+
elapsed_ms: number;
|
|
87
|
+
last_tool?: string | undefined;
|
|
88
|
+
phase?: string | undefined;
|
|
89
|
+
label: string;
|
|
90
|
+
}[];
|
|
91
|
+
phase?: {
|
|
92
|
+
index: number;
|
|
93
|
+
of: number;
|
|
94
|
+
title: string;
|
|
95
|
+
} | undefined;
|
|
96
|
+
run_id: string;
|
|
97
|
+
name: string;
|
|
98
|
+
status: import("../workflows/view.js").WorkflowRunStatus;
|
|
99
|
+
elapsed_ms: number;
|
|
100
|
+
}[];
|
|
101
|
+
omittedWorkflows: number;
|
|
102
|
+
outstanding: readonly string[];
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/integrations/outstanding/status.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAA0B,KAAK,eAAe,EAAe,MAAM,sBAAsB,CAAA;AAChG,OAAO,EAAE,KAAK,gBAAgB,EAAoC,MAAM,cAAc,CAAA;AAGtF,gEAAgE;AAChE,eAAO,MAAM,oBAAoB,MAAM,CAAA;AAsBvC,2GAA2G;AAC3G,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;EAsDxE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,SAAS,eAAe,EAAE,EACjC,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYd;AAED,6GAA6G;AAC7G,wBAAgB,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK/F"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Where the Anthropic-wire driver sends requests, read from the standard environment. */
|
|
2
|
+
export interface AnthropicEndpoint {
|
|
3
|
+
readonly baseURL: string;
|
|
4
|
+
readonly host: string;
|
|
5
|
+
/** True when the host is the vendor's own, so saved sign-ins may be used on it. */
|
|
6
|
+
readonly vendor: boolean;
|
|
7
|
+
/** `ANTHROPIC_AUTH_TOKEN`, sent as a bearer token. */
|
|
8
|
+
readonly authToken?: string;
|
|
9
|
+
/** `ANTHROPIC_API_KEY`, sent as the vendor's key header. */
|
|
10
|
+
readonly apiKey?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* `ANTHROPIC_BASE_URL` and `ANTHROPIC_AUTH_TOKEN` are the vendor SDK's own
|
|
14
|
+
* variables, honoured so an Anthropic-compatible service works the way its
|
|
15
|
+
* documentation tells operators to configure it. Undefined when no base URL is
|
|
16
|
+
* set; throws for one that is not an http(s) URL, because a typo that silently
|
|
17
|
+
* fell back to the vendor would send the prompt to the wrong place.
|
|
18
|
+
*/
|
|
19
|
+
export declare function readAnthropicEndpoint(env?: NodeJS.ProcessEnv): AnthropicEndpoint | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The endpoint requests will actually go to, and a one-line notice when
|
|
22
|
+
* `ANTHROPIC_BASE_URL` is set but not used. A base URL is used when it names
|
|
23
|
+
* the vendor's host, or a third party together with a token or key variable.
|
|
24
|
+
* Otherwise (a typo, or a gateway URL exported for another tool with no
|
|
25
|
+
* credential for it) the saved sign-in keeps going to the vendor's own host
|
|
26
|
+
* and the notice says why the variable was ignored; nothing throws.
|
|
27
|
+
*/
|
|
28
|
+
export declare function resolveAnthropicEndpoint(env?: NodeJS.ProcessEnv): {
|
|
29
|
+
readonly endpoint?: AnthropicEndpoint;
|
|
30
|
+
readonly notice?: string;
|
|
31
|
+
};
|
|
32
|
+
/** The host to show an operator, only when requests go somewhere other than the vendor. */
|
|
33
|
+
export declare function thirdPartyHost(env?: NodeJS.ProcessEnv): string | undefined;
|
|
34
|
+
//# sourceMappingURL=anthropic-endpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anthropic-endpoint.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/anthropic-endpoint.ts"],"names":[],"mappings":"AAIA,0FAA0F;AAC1F,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mFAAmF;IACnF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,sDAAsD;IACtD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACxB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAClC,iBAAiB,GAAG,SAAS,CAoB/B;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG;IAC/E,QAAQ,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACxB,CAeA;AAED,2FAA2F;AAC3F,wBAAgB,cAAc,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,SAAS,CAGvF"}
|
|
@@ -34,4 +34,12 @@ export declare function connectionsFrom(detected: readonly DetectedProvider[], h
|
|
|
34
34
|
export declare function listProviderConnections(options?: DiscoverOptions): Promise<ProviderConnection[]>;
|
|
35
35
|
export declare function saveProviderKey(id: unknown, value: unknown, home?: string): ProviderId;
|
|
36
36
|
export declare function removeProviderKey(id: unknown, home?: string): ProviderId;
|
|
37
|
+
/** What `/logout` and `namzu logout` call a saved key; `anthropic-key` because `anthropic` is the subscription. */
|
|
38
|
+
export type ApiKeyLogoutTarget = `key:${ProviderId}`;
|
|
39
|
+
/** The provider whose saved API key a logout word names, or `null`. Gemini keeps its own word. */
|
|
40
|
+
export declare function apiKeyLogoutTarget(word: string): ApiKeyLogoutTarget | null;
|
|
41
|
+
/** Narrows a logout target to a saved-API-key one. */
|
|
42
|
+
export declare function isApiKeyLogoutTarget(target: string): target is ApiKeyLogoutTarget;
|
|
43
|
+
/** The word a person types to remove this provider's saved key. */
|
|
44
|
+
export declare function apiKeyLogoutWord(id: ProviderId): string;
|
|
37
45
|
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/connections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;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}
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/connections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAWH,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAqB,MAAM,eAAe,CAAA;AAC9F,OAAO,EAAuC,KAAK,UAAU,EAAE,MAAM,eAAe,CAAA;AAEpF,MAAM,MAAM,qBAAqB,GAC9B,aAAa,GACb,WAAW,GACX,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,cAAc,GACd,OAAO,GACP,MAAM,CAAA;AAET,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,kEAAkE;IAClE,KAAK,EAAE,WAAW,GAAG,MAAM,GAAG,eAAe,CAAA;IAC7C,GAAG,CAAC,EAAE,qBAAqB,CAAA;IAC3B,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kDAAkD;IAClD,UAAU,EAAE,OAAO,CAAA;IACnB,yDAAyD;IACzD,WAAW,EAAE,OAAO,CAAA;IACpB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAA;CACb;AAID,6DAA6D;AAC7D,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CASrD;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,OAAO,GAAG,UAAU,CAOxD;AA2CD,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EACrC,IAAI,CAAC,EAAE,MAAM,GACX,kBAAkB,EAAE,CA8BtB;AAED,wBAAsB,uBAAuB,CAC5C,OAAO,GAAE,eAAoB,GAC3B,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAE/B;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAMtF;AAED,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAKxE;AAED,mHAAmH;AACnH,MAAM,MAAM,kBAAkB,GAAG,OAAO,UAAU,EAAE,CAAA;AAEpD,kGAAkG;AAClG,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAO1E;AAED,sDAAsD;AACtD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,kBAAkB,CAEjF;AAED,mEAAmE;AACnE,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,UAAU,GAAG,MAAM,CAEvD"}
|
|
@@ -89,6 +89,8 @@ export declare function listStoredApiKeyProviders(home?: string): string[];
|
|
|
89
89
|
export declare function writeStoredApiKey(providerId: string, apiKey: string, home?: string): string;
|
|
90
90
|
/** Remove one provider's saved key; the file goes when it was the last. */
|
|
91
91
|
export declare function clearStoredApiKey(providerId: string, home?: string): void;
|
|
92
|
+
/** Remove every saved provider key at once (`/logout all`). */
|
|
93
|
+
export declare function clearAllStoredApiKeys(home?: string): void;
|
|
92
94
|
/**
|
|
93
95
|
* The stored subscription credential, or `null` when there is none.
|
|
94
96
|
*
|