@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,38 @@
|
|
|
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
|
+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AC1B;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,CAAC,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;IAChD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,SAAS,OAAO,EAAE,CAAA;IACjC,QAAQ,CAAC,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAA;IAC5C,QAAQ,CAAC,SAAS,EAAE,SAAS,eAAe,EAAE,CAAA;IAC9C,mEAAmE;IACnE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,MAAM,CAAA;CACtD;AAaD,wGAAwG;AACxG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,GAAG,SAAS,CAO9E;AA0BD,qGAAqG;AACrG,wBAAgB,YAAY,CAC3B,IAAI,EAAE,eAAe,GACnB;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAkBxF;AAED,mGAAmG;AACnG,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,SAAS,gBAAgB,EAAE,GACnC,MAAM,CASR;AAgDD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,QAAQ,EAAE,CA+B/E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the live state of one session from the places the host keeps it.
|
|
3
|
+
*
|
|
4
|
+
* 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,IAAI,CAAA;AAEtC,8FAA8F;AAC9F,eAAO,MAAM,eAAe,MAAM,CAAA;AAElC,iFAAiF;AACjF,eAAO,MAAM,aAAa,QAAa,CAAA;AAEvC,kEAAkE;AAClE,eAAO,MAAM,gBAAgB,QAAS,CAAA;AAEtC,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,OAAQ,CAAA;AAE7C,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,oBAAoB,CAAA;AAGtD,MAAM,WAAW,cAAc;IAC9B,+EAA+E;IAC/E,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,2FAA2F;IAC3F,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAA;CACvB;AAgBD,MAAM,WAAW,eAAe;IAC/B,mFAAmF;IACnF,IAAI,CAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,cAAc,EAAE,CAAA;CACxD;AAED,wBAAgB,qBAAqB,IAAI,eAAe,CAsHvD;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAGjF;AAED,4FAA4F;AAC5F,wBAAgB,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAIhF;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC7C,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,MAAM,GAAG,SAAS,CAcpB"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The read-only status of workflow runs, for the model to read when the person
|
|
3
|
+
* asks how things are going.
|
|
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"}
|
|
@@ -19,7 +19,19 @@ export interface LivePeersOptions {
|
|
|
19
19
|
readonly ready: () => boolean;
|
|
20
20
|
readonly available: () => void;
|
|
21
21
|
readonly report: (text: string) => void;
|
|
22
|
+
/** The slot a spaces host launched this terminal under. */
|
|
23
|
+
readonly hostSlot?: string;
|
|
24
|
+
/** The conversation this terminal is on, once it has one. */
|
|
25
|
+
readonly conversation?: () => string | undefined;
|
|
26
|
+
/** The non-default account label the conversation is bound to. */
|
|
27
|
+
readonly account?: () => string | undefined;
|
|
28
|
+
/** True while the bound account is out of allowance. */
|
|
29
|
+
readonly limited?: () => boolean;
|
|
30
|
+
/** When the spent allowance is expected back (epoch ms), if known. */
|
|
31
|
+
readonly limitedUntil?: () => number | undefined;
|
|
22
32
|
}
|
|
33
|
+
/** The directory live-session records and sockets are kept in, hardened for the current user. */
|
|
34
|
+
export declare function resolvePeerRuntime(home: string, env?: NodeJS.ProcessEnv): import("@namzu/sdk").PeerRuntimeDir;
|
|
23
35
|
/** Live-instance mailbox. Durable conversation history begins only on drain. */
|
|
24
36
|
export declare function openLivePeers(options: LivePeersOptions): Promise<{
|
|
25
37
|
id: import("@namzu/sdk").SessionId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/integrations/peers/runtime.ts"],"names":[],"mappings":"AAGA,OAAO,EAGN,KAAK,OAAO,EAGZ,KAAK,QAAQ,EAEb,KAAK,gBAAgB,EAgBrB,MAAM,YAAY,CAAA;AAMnB,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAEvD;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAEpD;AAED,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,gBAAgB,CAAA;IACtC,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,MAAM,MAAM,CAAA;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,OAAO,CAAA;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAA;IAC9B,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceR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AC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;IAC3C,wDAAwD;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,OAAO,CAAA;IAChC,sEAAsE;IACtE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;CAChD;AAED,iGAAiG;AACjG,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,uCAWpF;AAED,gFAAgF;AAChF,wBAAsB,aAAa,CAAC,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;;mBA0LhC,MAAM,WAAW,MAAM;;;;;;;;;;;;;;;;;;sBA2EhC,OAAO;gBAKb,MAAM,GAAG,SAAS,QAAQ,EAAE;qBAIvB,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,SAAS;gBAM9C,MAAM,mBAA2B,QAAQ,EAAE;aAK9C,OAAO,CAAC,IAAI,CAAC;GAevB;AASD,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAA;AAEjE,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,SAAS,GAAG,IAAI,8CA+E7D"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reader for a Codex account that owns a private `CODEX_HOME`.
|
|
3
|
+
*
|
|
4
|
+
* A directory under `<NAMZU_HOME>/accounts/codex/<label>` holds the
|
|
5
|
+
* `auth.json` that the official `codex login` wrote when it ran with
|
|
6
|
+
* `CODEX_HOME` pointing there. Namzu is that directory's only reader, so it may
|
|
7
|
+
* refresh the tokens in place. The pieces are the ones the single stored Codex
|
|
8
|
+
* sign-in already uses: `readCodexCredentialFile` for the file shape,
|
|
9
|
+
* `requestCodexRefresh` (the refresh call `ensureFreshStoredCodexCredential`
|
|
10
|
+
* makes) for the grant, and the SDK's per-account refresh lock around the whole
|
|
11
|
+
* read-refresh-write so two processes never spend one refresh token twice.
|
|
12
|
+
*/
|
|
13
|
+
import { type AccountCredentialReaders } from '@namzu/sdk';
|
|
14
|
+
export interface CodexAccountReaderOptions {
|
|
15
|
+
readonly fetch?: typeof fetch;
|
|
16
|
+
readonly authOrigin?: string;
|
|
17
|
+
readonly now?: () => number;
|
|
18
|
+
/** Waits between attempts to take the refresh lock; injected so a test never depends on the clock. */
|
|
19
|
+
readonly wait?: (attempt: number) => Promise<void>;
|
|
20
|
+
/** How many times to try the refresh lock. A holder may be mid-refresh over the network. */
|
|
21
|
+
readonly lockAttempts?: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The `codexHome` reader for `createAccountRegistry({ readers })`. A missing or
|
|
25
|
+
* unusable `auth.json`, a refresh the server refuses, and a successor that
|
|
26
|
+
* belongs to a different ChatGPT account all surface as the SDK's
|
|
27
|
+
* `CredentialWithdrawnError` so the host can offer another account.
|
|
28
|
+
*/
|
|
29
|
+
export declare function createCodexHomeReader(options?: CodexAccountReaderOptions): NonNullable<AccountCredentialReaders['codexHome']>;
|
|
30
|
+
//# sourceMappingURL=codex-account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-account.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/codex-account.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAcH,OAAO,EACN,KAAK,wBAAwB,EAI7B,MAAM,YAAY,CAAA;AAYnB,MAAM,WAAW,yBAAyB;IACzC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;IAC3B,sGAAsG;IACtG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,4FAA4F;IAC5F,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC9B;AAmFD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,OAAO,GAAE,yBAA8B,GACrC,WAAW,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC,CAuCpD"}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
/** Refresh for a Codex credential owned by Namzu's credential store. */
|
|
2
2
|
import { type StoredCodexCredential } from './credential-store.js';
|
|
3
|
+
import { type CodexOAuthCredential } from './harness-credentials.js';
|
|
3
4
|
export interface StoredCodexRefreshOptions {
|
|
4
5
|
readonly home?: string;
|
|
5
6
|
readonly fetch?: typeof fetch;
|
|
6
7
|
readonly authOrigin?: string;
|
|
7
8
|
readonly now?: number;
|
|
8
9
|
}
|
|
10
|
+
/** True when `credential` should be refreshed before use. */
|
|
11
|
+
export declare function codexCredentialIsDue(credential: {
|
|
12
|
+
readonly expiresAt?: number;
|
|
13
|
+
}, now?: number): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Spend `current`'s refresh grant at the authorization server and return the
|
|
16
|
+
* successor, which must belong to the same ChatGPT account. Writes nothing:
|
|
17
|
+
* the caller decides where the successor is published. Shared by the stored
|
|
18
|
+
* credential and by a private per-account Codex home.
|
|
19
|
+
*/
|
|
20
|
+
export declare function requestCodexRefresh(current: CodexOAuthCredential, signal: AbortSignal | undefined, options?: Pick<StoredCodexRefreshOptions, 'fetch' | 'authOrigin'>): Promise<CodexOAuthCredential>;
|
|
9
21
|
export declare function ensureFreshStoredCodexCredential(signal?: AbortSignal, options?: StoredCodexRefreshOptions): Promise<StoredCodexCredential>;
|
|
10
22
|
//# sourceMappingURL=codex-oauth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-oauth.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/codex-oauth.ts"],"names":[],"mappings":"AAAA,wEAAwE;AAGxE,OAAO,EACN,KAAK,qBAAqB,EAG1B,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"codex-oauth.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/codex-oauth.ts"],"names":[],"mappings":"AAAA,wEAAwE;AAGxE,OAAO,EACN,KAAK,qBAAqB,EAG1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,KAAK,oBAAoB,EAA6B,MAAM,0BAA0B,CAAA;AAK/F,MAAM,WAAW,yBAAyB;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACrB;AAqBD,6DAA6D;AAC7D,wBAAgB,oBAAoB,CACnC,UAAU,EAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3C,GAAG,GAAE,MAAmB,GACtB,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACxC,OAAO,EAAE,oBAAoB,EAC7B,MAAM,EAAE,WAAW,GAAG,SAAS,EAC/B,OAAO,GAAE,IAAI,CAAC,yBAAyB,EAAE,OAAO,GAAG,YAAY,CAAM,GACnE,OAAO,CAAC,oBAAoB,CAAC,CA4D/B;AAED,wBAAsB,gCAAgC,CACrD,MAAM,CAAC,EAAE,WAAW,EACpB,OAAO,GAAE,yBAA8B,GACrC,OAAO,CAAC,qBAAqB,CAAC,CAgChC"}
|
|
@@ -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;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"}
|
|
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
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-store.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/credential-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAuBH,OAAO,KAAK,EAAE,oB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xD,wBAAgB,iCAAiC,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAiBrE;AAED,0FAA0F;AAC1F,wBAAgB,0BAA0B,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAc9D;AAED,gEAAgE;AAChE,wBAAgB,yBAAyB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAI7D;AAuID;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAEtD;AAqBD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAMpE;AAsED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,SAAM;gBAGvC,MAAM,YAAY,MAAM,KAAG,OAAO;mBAC/B,MAAM,YAAY,MAAM,GAAG,IAAI;mBAI/B,MAAM,KAAG,IAAI;mBAGhB,MAAM;EAInB;AAGD;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAqBvD;AAED,qFAAqF;AACrF,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAkB9C;AAGD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAmDjF"}
|
|
1
|
+
{"version":3,"file":"credential-store.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/credential-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAuBH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAKzD,eAAO,MAAM,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X,0BAA0B,CAiB5B;AA6ED,wDAAwD;AACxD,wBAAgB,iCAAiC,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAiBrE;AAED,0FAA0F;AAC1F,wBAAgB,0BAA0B,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAc9D;AAED,gEAAgE;AAChE,wBAAgB,yBAAyB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAI7D;AAuID;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAEtD;AAqBD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAMpE;AAsED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,SAAM;gBAGvC,MAAM,YAAY,MAAM,KAAG,OAAO;mBAC/B,MAAM,YAAY,MAAM,GAAG,IAAI;mBAI/B,MAAM,KAAG,IAAI;mBAGhB,MAAM;EAInB;AAGD;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAqBvD;AAED,qFAAqF;AACrF,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAkB9C;AAGD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAmDjF"}
|
|
@@ -2,7 +2,7 @@ export { type DetectedProvider, type DetectionSource, type AutomaticKind, type D
|
|
|
2
2
|
export { type CodexOAuthCredential, claudeCredentialsPath, codexCredentialsPath, readClaudeCredentialFile, readClaudeFileCredential, readCodexCredentialFile, readCodexFileCredential, } from './harness-credentials.js';
|
|
3
3
|
export { type AgentOAuthCredential, isAnthropicOAuthToken, readAgentKeychainCredential, } from './keychain.js';
|
|
4
4
|
export { beginCodexDeviceLogin, CODEX_AUTH_ORIGIN, CODEX_OAUTH_CLIENT_ID, type CodexDeviceLogin, type CodexDeviceLoginOptions, type CodexDeviceLoginOutcome, } from './codex-device-login.js';
|
|
5
|
-
export { apiKeysPath, clearStoredApiKey, listStoredApiKeyProviders, readStoredApiKey, writeStoredApiKey, clearAllStoredCredentials, clearStoredSubscriptionCredential, clearStoredCodexCredential, clearStoredGeminiApiKey, CREDENTIALS_FILE_VERSION, CredentialStoreError, credentialsPath, googleApiKeyPath, readStoredSubscriptionCredential, readStoredCodexCredential, readStoredGeminiApiKey, replaceStoredCodexCredential, type StoredCodexCredential, writeStoredSubscriptionCredential, writeStoredCodexCredential, writeStoredGeminiApiKey, } from './credential-store.js';
|
|
5
|
+
export { apiKeysPath, clearAllStoredApiKeys, clearStoredApiKey, listStoredApiKeyProviders, readStoredApiKey, writeStoredApiKey, clearAllStoredCredentials, clearStoredSubscriptionCredential, clearStoredCodexCredential, clearStoredGeminiApiKey, CREDENTIALS_FILE_VERSION, CredentialStoreError, credentialsPath, googleApiKeyPath, readStoredSubscriptionCredential, readStoredCodexCredential, readStoredGeminiApiKey, replaceStoredCodexCredential, type StoredCodexCredential, writeStoredSubscriptionCredential, writeStoredCodexCredential, writeStoredGeminiApiKey, } from './credential-store.js';
|
|
6
6
|
export { ensureFreshStoredCodexCredential, type StoredCodexRefreshOptions, } from './codex-oauth.js';
|
|
7
7
|
export { MANUAL_REDIRECT_URI, OAUTH_SCOPES } from './identity.js';
|
|
8
8
|
export { CredentialPublicationError, CredentialRefreshRejectedError, CredentialWithdrawnError, type CredentialOrigin, ensureFreshAnthropicToken, type OAuthMetadata, readSubscriptionCredential, refreshAgentOAuthToken, sameOAuthCredential, } from './oauth.js';
|
|
@@ -11,4 +11,6 @@ export { type CapabilityDisagreement, chainCapabilityDisagreements, describeAcce
|
|
|
11
11
|
export { chainPositionName, type Preferences, PREFERENCES_FILE_VERSION, PreferencesError, preferencesPath, primaryProvider, type ProviderChoice, type ReadResult, readPreferences, writePreferences, } from './preferences.js';
|
|
12
12
|
export { ALL_PROVIDER_IDS, missingCredentialMessage, PROVIDER_REGISTRY, providerEntriesOfVendor, type ProviderId, type ProviderRegistryEntry, type SubscriptionProviderId, type SdkProviderType, unsupportedProviderMessage, VENDOR_NAMES, type VendorId, } from './registry.js';
|
|
13
13
|
export { ensureRegistered, isRegistered, resolveChainCapabilities, } from './register.js';
|
|
14
|
+
export { migrateAccountKeys } from './key-migration.js';
|
|
15
|
+
export { type ApiKeyLogoutTarget, apiKeyLogoutTarget, apiKeyLogoutWord, isApiKeyLogoutTarget, } from './connections.js';
|
|
14
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,eAAe,EACf,aAAa,EACb,uBAAuB,EACvB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,GAC7B,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,GACvB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACN,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,2BAA2B,GAC3B,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,WAAW,EACX,iBAAiB,EACjB,yBAAyB,EACz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B,YAAY,EACZ,KAAK,QAAQ,GACb,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,gBAAgB,EAChB,YAAY,EACZ,wBAAwB,GACxB,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,eAAe,EACf,aAAa,EACb,uBAAuB,EACvB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,GAC7B,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,GACvB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACN,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,2BAA2B,GAC3B,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EACjB,yBAAyB,EACzB,iCAAiC,EACjC,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,gCAAgC,EAChC,yBAAyB,EACzB,sBAAsB,EACtB,4BAA4B,EAC5B,KAAK,qBAAqB,EAC1B,iCAAiC,EACjC,0BAA0B,EAC1B,uBAAuB,GACvB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACN,gCAAgC,EAChC,KAAK,yBAAyB,GAC9B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EACN,0BAA0B,EAC1B,8BAA8B,EAC9B,wBAAwB,EACxB,KAAK,gBAAgB,EACrB,yBAAyB,EACzB,KAAK,aAAa,EAClB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,YAAY,CAAA;AACnB,OAAO,EACN,sBAAsB,EACtB,KAAK,YAAY,EACjB,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,4BAA4B,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,iBAAiB,GACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,iBAAiB,EACjB,KAAK,WAAW,EAChB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,eAAe,EACf,gBAAgB,GAChB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACN,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,0BAA0B,EAC1B,YAAY,EACZ,KAAK,QAAQ,GACb,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,gBAAgB,EAChB,YAAY,EACZ,wBAAwB,GACxB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EACN,KAAK,kBAAkB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,GACpB,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One-time move of API keys that an earlier build kept only in `accounts.json`.
|
|
3
|
+
*
|
|
4
|
+
* Startup reads a provider's saved key from `api-keys.json` (Gemini: its own
|
|
5
|
+
* file), but the account flow stored its keys in `accounts.json`, which the
|
|
6
|
+
* provider list never consults. A person who added a key there found the
|
|
7
|
+
* provider "not detected" on every start. This copies the first plain account
|
|
8
|
+
* key of each such provider into the store startup reads, once, and leaves
|
|
9
|
+
* `accounts.json` exactly as it was so every account keeps working.
|
|
10
|
+
*/
|
|
11
|
+
import type { AccountRegistry } from '@namzu/sdk';
|
|
12
|
+
export declare function keyMigrationMarkerPath(home?: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Copy account keys into the startup store. Returns the one-line notice to
|
|
15
|
+
* show, or `null` when nothing moved. Runs once per home (a marker records
|
|
16
|
+
* that), never prompts, never throws, and never touches `accounts.json`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function migrateAccountKeys(registry: AccountRegistry, options?: {
|
|
19
|
+
readonly home?: string;
|
|
20
|
+
readonly labelOf?: (id: string) => string;
|
|
21
|
+
}): Promise<string | null>;
|
|
22
|
+
//# sourceMappingURL=key-migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-migration.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/key-migration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAYjD,wBAAgB,sBAAsB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAE5D;AAOD;;;;GAIG;AACH,wBAAsB,kBAAkB,CACvC,QAAQ,EAAE,eAAe,EACzB,OAAO,GAAE;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAA;CAAO,GACjF,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA4CxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type LLMProvider, type ModelInfo } from '@namzu/sdk';
|
|
2
2
|
/** A capability-only view: catalogue metadata is scoped to this exact provider/model. */
|
|
3
3
|
export declare function modelReasoningView(provider: LLMProvider, model: string, catalogue: readonly ModelInfo[]): LLMProvider;
|
|
4
4
|
//# sourceMappingURL=model-reasoning.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-reasoning.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/model-reasoning.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"model-reasoning.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/model-reasoning.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,SAAS,EAGd,MAAM,YAAY,CAAA;AAanB,yFAAyF;AACzF,wBAAgB,kBAAkB,CACjC,QAAQ,EAAE,WAAW,EACrB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,SAAS,SAAS,EAAE,GAC7B,WAAW,CAwCb"}
|
|
@@ -49,6 +49,14 @@ export declare const PREFERENCES_FILE_VERSION: 3;
|
|
|
49
49
|
export interface ProviderChoice {
|
|
50
50
|
readonly id: ProviderId;
|
|
51
51
|
readonly model?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The account this member runs under, as `<provider>:<label>`. Absent means
|
|
54
|
+
* the provider's existing sign-in, so a file written before accounts existed
|
|
55
|
+
* reads exactly as it did. A session that switches account with `/auth` keeps
|
|
56
|
+
* the choice for itself and never writes it here; this field is how a person
|
|
57
|
+
* (or `--account`) pins one.
|
|
58
|
+
*/
|
|
59
|
+
readonly account?: string;
|
|
52
60
|
}
|
|
53
61
|
export interface Preferences {
|
|
54
62
|
readonly version: 3;
|