@namzu/cli 44.1.0 → 44.2.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 +49 -0
- package/dist/bin-main.d.ts +1 -1
- package/dist/bin-main.d.ts.map +1 -1
- package/dist/bin.js +2 -2
- package/dist/bin.js.map +1 -1
- package/dist/chunks/acp-OUBJWH5B.js +7754 -0
- package/dist/chunks/acp-OUBJWH5B.js.map +6 -0
- package/dist/chunks/{activity-command-UCUGH2LW.js → activity-command-R7MUSZIY.js} +16 -15
- package/dist/chunks/activity-command-R7MUSZIY.js.map +6 -0
- package/dist/chunks/{add-TNGQA6CH.js → add-PSEIDDRW.js} +22 -19
- package/dist/chunks/add-PSEIDDRW.js.map +6 -0
- package/dist/chunks/{agent-F7HY5T3U.js → agent-YPEXUYPH.js} +36 -31
- package/dist/chunks/agent-session-EZB2OYG3.js +65 -0
- package/dist/chunks/{archive-3L6VJWS4.js → archive-ET4PXE34.js} +11 -10
- package/dist/chunks/archive-ET4PXE34.js.map +6 -0
- package/dist/chunks/{bin-main-YEEDVZXH.js → bin-main-PMB57AZJ.js} +25 -15
- package/dist/chunks/bin-main-PMB57AZJ.js.map +6 -0
- package/dist/chunks/binding-K6RIQ5AP.js +17 -0
- package/dist/chunks/{browser-UHJ43DUU.js → browser-SKTIAVBF.js} +7 -7
- package/dist/chunks/{chat-DDPHHLQJ.js → chat-AVIVXXMD.js} +20 -19
- package/dist/chunks/chat-AVIVXXMD.js.map +6 -0
- package/dist/chunks/chunk-26C37THH.js +867 -0
- package/dist/chunks/chunk-26C37THH.js.map +6 -0
- package/dist/chunks/{chunk-4YJ4EI4X.js → chunk-2EHPXO4E.js} +3 -3
- package/dist/chunks/{chunk-F37FVPVW.js → chunk-2NI5NS5S.js} +3 -3
- package/dist/chunks/{chunk-SEYQW7MF.js → chunk-2U5M5IYH.js} +6 -6
- package/dist/chunks/{chunk-ZRPLJYFM.js → chunk-2X6JZAKH.js} +12 -12
- package/dist/chunks/{chunk-72ZSHKT7.js → chunk-2Y26DLOF.js} +27 -10
- package/dist/chunks/{chunk-72ZSHKT7.js.map → chunk-2Y26DLOF.js.map} +1 -1
- package/dist/chunks/{chunk-4Z4VYMTT.js → chunk-3QGJXD7U.js} +5 -5
- package/dist/chunks/{chunk-UZYTWQYW.js → chunk-435DYOG4.js} +2 -2
- package/dist/chunks/{chunk-CFHRQGO2.js → chunk-4OXIJ2EF.js} +3 -3
- package/dist/chunks/{chunk-SYOISB7S.js → chunk-6EJFXJDO.js} +219 -76
- package/dist/chunks/chunk-6EJFXJDO.js.map +6 -0
- package/dist/chunks/{chunk-VPZBVRXT.js → chunk-6FWFSPUL.js} +5 -3
- package/dist/chunks/chunk-6FWFSPUL.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-6IDFHPY3.js +413 -0
- package/dist/chunks/chunk-6IDFHPY3.js.map +6 -0
- package/dist/chunks/chunk-7FPKSX4M.js +61 -0
- package/dist/chunks/chunk-7FPKSX4M.js.map +6 -0
- package/dist/chunks/{chunk-MT4ONV77.js → chunk-7QQOUCGI.js} +16 -14
- package/dist/chunks/chunk-7QQOUCGI.js.map +6 -0
- package/dist/chunks/{chunk-3A4UOMMU.js → chunk-7TEXDZVO.js} +17 -3
- package/dist/chunks/chunk-7TEXDZVO.js.map +6 -0
- package/dist/chunks/{chunk-WEAIQEWJ.js → chunk-A5GTZ7R2.js} +2 -2
- package/dist/chunks/{chunk-DYJY4COC.js → chunk-ACSG5R5P.js} +3 -3
- package/dist/chunks/{chunk-6WXVHAS6.js → chunk-AI6PBE5G.js} +2 -2
- package/dist/chunks/{chunk-HI7UZRIV.js → chunk-AX5ESG6K.js} +2 -2
- package/dist/chunks/{chunk-WOY7SAUB.js → chunk-B3XIVOLM.js} +2 -2
- package/dist/chunks/{chunk-B45X6IGD.js → chunk-BGKQCLLH.js} +242 -447
- package/dist/chunks/chunk-BGKQCLLH.js.map +6 -0
- package/dist/chunks/chunk-BT7ZELXJ.js +63 -0
- package/dist/chunks/chunk-BT7ZELXJ.js.map +6 -0
- package/dist/chunks/{chunk-ZNY5ZPBB.js → chunk-DECJPLLA.js} +13 -13
- package/dist/chunks/{chunk-AH3DBEMR.js → chunk-DFCJYRT5.js} +2 -2
- package/dist/chunks/{chunk-TKCRF7DK.js → chunk-DQLSLXDF.js} +7 -7
- package/dist/chunks/chunk-EXFSMYH4.js +83 -0
- package/dist/chunks/chunk-EXFSMYH4.js.map +6 -0
- package/dist/chunks/{chunk-KEOBHC65.js → chunk-FHQTXWDA.js} +19 -7
- package/dist/chunks/chunk-FHQTXWDA.js.map +6 -0
- package/dist/chunks/chunk-G73G2WGR.js +242 -0
- package/dist/chunks/chunk-G73G2WGR.js.map +6 -0
- package/dist/chunks/{chunk-CLVP63AB.js → chunk-GANFMGV7.js} +5 -5
- package/dist/chunks/{chunk-GKMPPOXW.js → chunk-GBS6ATYF.js} +2 -2
- package/dist/chunks/{chunk-5PJIJTP2.js → chunk-GCCFTP47.js} +4 -4
- package/dist/chunks/{chunk-UXDNVRJ5.js → chunk-GNEDN6MU.js} +14 -14
- package/dist/chunks/{chunk-7DYH6R67.js → chunk-HB5ZN5KQ.js} +2 -2
- package/dist/chunks/{chunk-BKZW4DRY.js → chunk-HELINLSD.js} +2 -2
- package/dist/chunks/{chunk-OERIIND6.js → chunk-HKCIZR5P.js} +13 -13
- package/dist/chunks/chunk-HRJPVPSU.js +164 -0
- package/dist/chunks/chunk-HRJPVPSU.js.map +6 -0
- package/dist/chunks/{chunk-4LHT2QDO.js → chunk-HTBMDD6Y.js} +8 -8
- package/dist/chunks/{chunk-WTPIGLX7.js → chunk-I5E4MT3C.js} +4 -4
- package/dist/chunks/{chunk-GX74LDJL.js → chunk-IJZ7SLBV.js} +3 -3
- package/dist/chunks/{chunk-WIU25RLZ.js → chunk-ITA57VY5.js} +7 -5
- package/dist/chunks/chunk-ITA57VY5.js.map +6 -0
- package/dist/chunks/{chunk-OZLMT5WB.js → chunk-IZVN6K6U.js} +4 -4
- package/dist/chunks/{chunk-XHCUNLST.js → chunk-JL64XHSL.js} +55 -5
- package/dist/chunks/chunk-JL64XHSL.js.map +6 -0
- package/dist/chunks/chunk-KLKAK2O5.js +5817 -0
- package/dist/chunks/chunk-KLKAK2O5.js.map +6 -0
- package/dist/chunks/{chunk-VKYIL6BJ.js → chunk-L2NNJ4XL.js} +3 -3
- package/dist/chunks/{chunk-IDU2KLLT.js → chunk-LF76CVOZ.js} +4 -4
- package/dist/chunks/{chunk-N4IDJ5V2.js → chunk-LFPTXRMM.js} +2 -2
- package/dist/chunks/chunk-LG27EJU6.js +189 -0
- package/dist/chunks/chunk-LG27EJU6.js.map +6 -0
- package/dist/chunks/{chunk-SBKOTD2M.js → chunk-LKJBDF7W.js} +15 -3
- package/dist/chunks/chunk-LKJBDF7W.js.map +6 -0
- package/dist/chunks/chunk-LKODRKMZ.js +575 -0
- package/dist/chunks/chunk-LKODRKMZ.js.map +6 -0
- package/dist/chunks/{chunk-I47Q4G4X.js → chunk-LQRP2VRQ.js} +4 -4
- package/dist/chunks/{chunk-PEJV6XTK.js → chunk-LYGD5P7O.js} +3 -3
- package/dist/chunks/{chunk-JS4C7HNH.js → chunk-M2OZ4SVS.js} +3 -3
- package/dist/chunks/{chunk-RBTQ5ZQU.js → chunk-MGZSEPDY.js} +2 -2
- package/dist/chunks/{chunk-W6OOY44A.js → chunk-MJBGVVI5.js} +3 -3
- package/dist/chunks/{chunk-76DOZYZP.js → chunk-MYL75RA4.js} +2 -2
- package/dist/chunks/chunk-PIVHVYCN.js +3925 -0
- package/dist/chunks/chunk-PIVHVYCN.js.map +6 -0
- package/dist/chunks/{chunk-B5KDTZYH.js → chunk-PMX2WTZL.js} +2 -2
- package/dist/chunks/{chunk-J7PV6OOX.js → chunk-QWSZ5P4C.js} +6 -6
- package/dist/chunks/{chunk-TBIX6JRE.js → chunk-R66H2G5R.js} +12 -1
- package/dist/chunks/chunk-R66H2G5R.js.map +6 -0
- package/dist/chunks/{chunk-EBN4YPIN.js → chunk-RSIWTHYS.js} +3 -3
- package/dist/chunks/{chunk-IYNTTEQA.js → chunk-S4QOQGAT.js} +2 -2
- package/dist/chunks/chunk-S7WRWA25.js +33 -0
- package/dist/chunks/chunk-S7WRWA25.js.map +6 -0
- package/dist/chunks/{chunk-UVSKCXL6.js → chunk-SGRO4RJP.js} +2 -2
- package/dist/chunks/{chunk-NB5LGTUL.js → chunk-SJFPZPOJ.js} +83 -20
- package/dist/chunks/chunk-SJFPZPOJ.js.map +6 -0
- package/dist/chunks/{chunk-3LCJJT2F.js → chunk-TZZOQ62Z.js} +2 -2
- package/dist/chunks/chunk-U4SST7AD.js +219 -0
- package/dist/chunks/chunk-U4SST7AD.js.map +6 -0
- package/dist/chunks/{chunk-3UK2GDVX.js → chunk-UGDZ7MLG.js} +4 -4
- package/dist/chunks/chunk-VDKDXDOH.js +290 -0
- package/dist/chunks/chunk-VDKDXDOH.js.map +6 -0
- package/dist/chunks/{chunk-DASSBULE.js → chunk-VFVWHYHT.js} +4 -4
- package/dist/chunks/{chunk-WQ72OU4F.js → chunk-VZ4PKWLF.js} +2 -2
- package/dist/chunks/{chunk-Y6HB4AJE.js → chunk-WKFHQQOU.js} +2 -2
- package/dist/chunks/{chunk-WUUZJCAA.js → chunk-WKPRYH24.js} +3 -3
- package/dist/chunks/{chunk-7HRVTREO.js → chunk-WQFHJ4TO.js} +3 -3
- package/dist/chunks/{chunk-OAISYZM4.js → chunk-WYJ3CNXX.js} +83 -41
- package/dist/chunks/chunk-WYJ3CNXX.js.map +6 -0
- package/dist/chunks/{chunk-V2EGJD7W.js → chunk-XPLHAOGE.js} +2 -2
- package/dist/chunks/{chunk-WG5LLHJX.js → chunk-XX2SP5AM.js} +3 -3
- package/dist/chunks/{chunk-YSGVHT54.js → chunk-YDSWGJWF.js} +2 -2
- package/dist/chunks/{chunk-MZUVCANX.js → chunk-YJ6NWB2B.js} +2 -2
- package/dist/chunks/{chunk-OKDDIWD7.js → chunk-YTE3QIH3.js} +99941 -80958
- package/dist/chunks/chunk-YTE3QIH3.js.map +6 -0
- package/dist/chunks/{chunk-EYYWIMVU.js → chunk-YUYNIAJX.js} +6 -6
- package/dist/chunks/{chunk-RMBD3YZ5.js → chunk-YXIG4OT2.js} +2 -2
- package/dist/chunks/{cli-runtime-VRAUDAKZ.js → cli-runtime-F4MEMBDL.js} +11 -10
- package/dist/chunks/cli-runtime-F4MEMBDL.js.map +6 -0
- package/dist/chunks/{commands-Q3FSPHGU.js → commands-ZCNZVYTG.js} +6 -6
- package/dist/chunks/{crash-report-6XW44BV6.js → crash-report-K53VF4H5.js} +6 -6
- package/dist/chunks/{dist-VEEXDONU.js → dist-6IPPA55L.js} +2 -2
- package/dist/chunks/{dist-KNYBFHXB.js → dist-H53G25BE.js} +2 -2
- package/dist/chunks/{dist-6XC3YARD.js → dist-L5LBM77I.js} +2 -2
- package/dist/chunks/{dist-4SPA7VSK.js → dist-RIH2Q2ER.js} +2 -2
- package/dist/chunks/{dist-VYUROH2A.js → dist-RTIKLSUV.js} +2 -2
- package/dist/chunks/{dist-5DDSGOSA.js → dist-T6KE7URX.js} +2 -2
- package/dist/chunks/dist-VSJGDIXP.js +2754 -0
- package/dist/chunks/{dist-NG6RAO2C.js → dist-XNGK3C4G.js} +2 -2
- package/dist/chunks/{doctor-ZDXK5W6E.js → doctor-DOCGTBME.js} +18 -16
- package/dist/chunks/{drain-NQLOKED3.js → drain-LT3J2MEA.js} +13 -13
- package/dist/chunks/entry-UHKDLPDS.js +232 -0
- package/dist/chunks/entry-UHKDLPDS.js.map +6 -0
- package/dist/chunks/{eval-A2G4KS62.js → eval-DH26W2QK.js} +2 -2
- package/dist/chunks/{exec-EWGVFJNZ.js → exec-QGAHWUUQ.js} +57 -47
- package/dist/chunks/exec-QGAHWUUQ.js.map +6 -0
- package/dist/chunks/{github-FH7PPWVW.js → github-JTMZJAZL.js} +4 -4
- package/dist/chunks/{home-5N3FSKF7.js → home-GGVNSCCU.js} +3 -3
- package/dist/chunks/host-6CUYPX4T.js +23 -0
- package/dist/chunks/{host-queries-R2KVVFTJ.js → host-queries-4EW7M54U.js} +16 -15
- package/dist/chunks/host-queries-4EW7M54U.js.map +6 -0
- package/dist/chunks/{learn-SAVZB4Q7.js → learn-PAO3IOYA.js} +13 -13
- package/dist/chunks/{learn-builtin-ZWX7Q3X2.js → learn-builtin-DXZUXOGG.js} +19 -19
- package/dist/chunks/{lifecycle-2RFARBGC.js → lifecycle-KDN4D7DP.js} +31 -27
- package/dist/chunks/{list-D63Z2LT4.js → list-KSP6S57Z.js} +16 -15
- package/dist/chunks/list-KSP6S57Z.js.map +6 -0
- package/dist/chunks/{live-XC3V46W3.js → live-XWJ2JOFO.js} +16 -14
- package/dist/chunks/{login-NIX66V67.js → login-3Q2HKQUW.js} +10 -8
- package/dist/chunks/{logs-LJSWQUT5.js → logs-UYB55HOX.js} +5 -5
- package/dist/chunks/{mcp-OCEDFJA5.js → mcp-JWSI4KA6.js} +25 -22
- package/dist/chunks/mcp-JWSI4KA6.js.map +6 -0
- package/dist/chunks/{message-command-THJZ4EIM.js → message-command-YP6TGD3K.js} +50 -45
- package/dist/chunks/message-command-YP6TGD3K.js.map +6 -0
- package/dist/chunks/open-QUDHJK5H.js +19 -0
- package/dist/chunks/{operator-tools-C7KZGWFJ.js → operator-tools-43NL7HKO.js} +15 -14
- package/dist/chunks/operator-tools-43NL7HKO.js.map +6 -0
- package/dist/chunks/{output-schema-4BLF2AFQ.js → output-schema-TLW5FA37.js} +3 -3
- package/dist/chunks/{pal-7IB6LZJX.js → pal-EZE2KLYZ.js} +16 -14
- package/dist/chunks/pal-EZE2KLYZ.js.map +6 -0
- package/dist/chunks/palette-WDPS7W6Q.js +15 -0
- package/dist/chunks/peers-OBENILN2.js +18 -0
- package/dist/chunks/prefix-MLAG4KTK.js +14 -0
- package/dist/chunks/{providers-NCGZXLFH.js → providers-PJIHLTXP.js} +22 -18
- package/dist/chunks/pty-HDEXCPR6.js +29 -0
- package/dist/chunks/pty-HDEXCPR6.js.map +6 -0
- package/dist/chunks/{resident-EODT4UTE.js → resident-2GHB3BKR.js} +30 -28
- package/dist/chunks/resident-2GHB3BKR.js.map +6 -0
- package/dist/chunks/resume-FHPY2RU3.js +24 -0
- package/dist/chunks/resume-FHPY2RU3.js.map +6 -0
- package/dist/chunks/{resume-command-YJ6LCKON.js → resume-command-VB6VA64L.js} +5 -5
- package/dist/chunks/resume-command-VB6VA64L.js.map +6 -0
- package/dist/chunks/{schedule-LWY6AMC3.js → schedule-42N4JOQJ.js} +9 -9
- package/dist/chunks/{service-RQZF7NCJ.js → service-6WGZKKI4.js} +34 -30
- package/dist/chunks/service-6WGZKKI4.js.map +6 -0
- package/dist/chunks/{session-step-YIL6LV2J.js → session-step-SBWIM4MZ.js} +15 -15
- package/dist/chunks/session-step-SBWIM4MZ.js.map +6 -0
- package/dist/chunks/{skills-3KYQHENX.js → skills-V3VDOL3D.js} +11 -11
- package/dist/chunks/spaces-6II4JYTZ.js +231 -0
- package/dist/chunks/spaces-6II4JYTZ.js.map +6 -0
- package/dist/chunks/{start-check-OKGZSWUG.js → start-check-MRSPS5JT.js} +2 -2
- package/dist/chunks/start-check-MRSPS5JT.js.map +6 -0
- package/dist/chunks/{state-ER7R4WEN.js → state-HX3XRNPC.js} +2 -2
- package/dist/chunks/store-7P462EUD.js +17 -0
- package/dist/chunks/store-7P462EUD.js.map +6 -0
- package/dist/chunks/{store-C654AJPG.js → store-FUQE7EWU.js} +13 -10
- package/dist/chunks/store-FUQE7EWU.js.map +6 -0
- package/dist/chunks/{store-EQQRW7NJ.js → store-IX6KNJA4.js} +6 -6
- package/dist/chunks/store-IX6KNJA4.js.map +6 -0
- package/dist/chunks/{store-HWGRIA5X.js → store-MQXI7G2H.js} +4 -4
- package/dist/chunks/store-MQXI7G2H.js.map +6 -0
- package/dist/chunks/{tui-UYHIDUPB.js → tui-PH5B6UCO.js} +1844 -838
- package/dist/chunks/tui-PH5B6UCO.js.map +6 -0
- package/dist/chunks/{upgrade-D6Q5EAMR.js → upgrade-HDW5MWLE.js} +6 -6
- package/dist/chunks/{worktree-UFFQMC2B.js → worktree-MLFYZF56.js} +13 -12
- package/dist/chunks/worktree-MLFYZF56.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/manifest.d.ts +1 -0
- package/dist/commands/manifest.d.ts.map +1 -1
- package/dist/commands/spaces.d.ts +42 -0
- package/dist/commands/spaces.d.ts.map +1 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +7 -0
- package/dist/config/schema.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 +24 -21
- 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/peers/runtime.d.ts +12 -0
- package/dist/integrations/peers/runtime.d.ts.map +1 -1
- 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/preferences.d.ts +8 -0
- package/dist/integrations/providers/preferences.d.ts.map +1 -1
- package/dist/integrations/resident/runner-worker.js +26 -25
- 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.map +1 -1
- 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 +380 -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/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/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 +12 -0
- package/dist/terminal/screen.d.ts.map +1 -1
- package/dist/termination-state.d.ts +4 -0
- package/dist/termination-state.d.ts.map +1 -1
- package/dist/termination.d.ts.map +1 -1
- package/dist/tui/App.d.ts +106 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +7 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/ResumePicker.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 +17 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/compaction-rows.d.ts.map +1 -1
- package/dist/tui/context-usage.d.ts +14 -0
- package/dist/tui/context-usage.d.ts.map +1 -1
- package/dist/tui/index.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/plain-failure.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 +11 -0
- package/dist/tui/slashCommands.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/zoom/entry.d.ts +34 -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 +6 -5
- package/dist/chunks/acp-JCGPYVIA.js +0 -13601
- package/dist/chunks/acp-JCGPYVIA.js.map +0 -6
- package/dist/chunks/activity-command-UCUGH2LW.js.map +0 -6
- package/dist/chunks/add-TNGQA6CH.js.map +0 -6
- package/dist/chunks/agent-session-FFLSUP5P.js +0 -60
- package/dist/chunks/archive-3L6VJWS4.js.map +0 -6
- package/dist/chunks/bin-main-YEEDVZXH.js.map +0 -6
- package/dist/chunks/chat-DDPHHLQJ.js.map +0 -6
- package/dist/chunks/chunk-3A4UOMMU.js.map +0 -6
- package/dist/chunks/chunk-B45X6IGD.js.map +0 -6
- package/dist/chunks/chunk-KEOBHC65.js.map +0 -6
- package/dist/chunks/chunk-MT4ONV77.js.map +0 -6
- package/dist/chunks/chunk-NB5LGTUL.js.map +0 -6
- package/dist/chunks/chunk-OAISYZM4.js.map +0 -6
- package/dist/chunks/chunk-OKDDIWD7.js.map +0 -6
- package/dist/chunks/chunk-SBKOTD2M.js.map +0 -6
- package/dist/chunks/chunk-SYOISB7S.js.map +0 -6
- package/dist/chunks/chunk-TBIX6JRE.js.map +0 -6
- package/dist/chunks/chunk-UEPYLY5U.js +0 -1415
- package/dist/chunks/chunk-UEPYLY5U.js.map +0 -6
- package/dist/chunks/chunk-VPZBVRXT.js.map +0 -6
- package/dist/chunks/chunk-WIU25RLZ.js.map +0 -6
- package/dist/chunks/chunk-XHCUNLST.js.map +0 -6
- package/dist/chunks/cli-runtime-VRAUDAKZ.js.map +0 -6
- package/dist/chunks/exec-EWGVFJNZ.js.map +0 -6
- package/dist/chunks/host-queries-R2KVVFTJ.js.map +0 -6
- package/dist/chunks/list-D63Z2LT4.js.map +0 -6
- package/dist/chunks/mcp-OCEDFJA5.js.map +0 -6
- package/dist/chunks/message-command-THJZ4EIM.js.map +0 -6
- package/dist/chunks/operator-tools-C7KZGWFJ.js.map +0 -6
- package/dist/chunks/pal-7IB6LZJX.js.map +0 -6
- package/dist/chunks/resident-EODT4UTE.js.map +0 -6
- package/dist/chunks/resume-2RX7TSTR.js +0 -23
- package/dist/chunks/service-RQZF7NCJ.js.map +0 -6
- package/dist/chunks/tui-UYHIDUPB.js.map +0 -6
- package/dist/chunks/worktree-UFFQMC2B.js.map +0 -6
- /package/dist/chunks/{agent-F7HY5T3U.js.map → agent-YPEXUYPH.js.map} +0 -0
- /package/dist/chunks/{agent-session-FFLSUP5P.js.map → agent-session-EZB2OYG3.js.map} +0 -0
- /package/dist/chunks/{commands-Q3FSPHGU.js.map → binding-K6RIQ5AP.js.map} +0 -0
- /package/dist/chunks/{browser-UHJ43DUU.js.map → browser-SKTIAVBF.js.map} +0 -0
- /package/dist/chunks/{chunk-4YJ4EI4X.js.map → chunk-2EHPXO4E.js.map} +0 -0
- /package/dist/chunks/{chunk-F37FVPVW.js.map → chunk-2NI5NS5S.js.map} +0 -0
- /package/dist/chunks/{chunk-SEYQW7MF.js.map → chunk-2U5M5IYH.js.map} +0 -0
- /package/dist/chunks/{chunk-ZRPLJYFM.js.map → chunk-2X6JZAKH.js.map} +0 -0
- /package/dist/chunks/{chunk-4Z4VYMTT.js.map → chunk-3QGJXD7U.js.map} +0 -0
- /package/dist/chunks/{chunk-UZYTWQYW.js.map → chunk-435DYOG4.js.map} +0 -0
- /package/dist/chunks/{chunk-CFHRQGO2.js.map → chunk-4OXIJ2EF.js.map} +0 -0
- /package/dist/chunks/{chunk-WEAIQEWJ.js.map → chunk-A5GTZ7R2.js.map} +0 -0
- /package/dist/chunks/{chunk-DYJY4COC.js.map → chunk-ACSG5R5P.js.map} +0 -0
- /package/dist/chunks/{chunk-6WXVHAS6.js.map → chunk-AI6PBE5G.js.map} +0 -0
- /package/dist/chunks/{chunk-HI7UZRIV.js.map → chunk-AX5ESG6K.js.map} +0 -0
- /package/dist/chunks/{chunk-WOY7SAUB.js.map → chunk-B3XIVOLM.js.map} +0 -0
- /package/dist/chunks/{chunk-ZNY5ZPBB.js.map → chunk-DECJPLLA.js.map} +0 -0
- /package/dist/chunks/{chunk-AH3DBEMR.js.map → chunk-DFCJYRT5.js.map} +0 -0
- /package/dist/chunks/{chunk-TKCRF7DK.js.map → chunk-DQLSLXDF.js.map} +0 -0
- /package/dist/chunks/{chunk-CLVP63AB.js.map → chunk-GANFMGV7.js.map} +0 -0
- /package/dist/chunks/{chunk-GKMPPOXW.js.map → chunk-GBS6ATYF.js.map} +0 -0
- /package/dist/chunks/{chunk-5PJIJTP2.js.map → chunk-GCCFTP47.js.map} +0 -0
- /package/dist/chunks/{chunk-UXDNVRJ5.js.map → chunk-GNEDN6MU.js.map} +0 -0
- /package/dist/chunks/{chunk-7DYH6R67.js.map → chunk-HB5ZN5KQ.js.map} +0 -0
- /package/dist/chunks/{chunk-BKZW4DRY.js.map → chunk-HELINLSD.js.map} +0 -0
- /package/dist/chunks/{chunk-OERIIND6.js.map → chunk-HKCIZR5P.js.map} +0 -0
- /package/dist/chunks/{chunk-4LHT2QDO.js.map → chunk-HTBMDD6Y.js.map} +0 -0
- /package/dist/chunks/{chunk-WTPIGLX7.js.map → chunk-I5E4MT3C.js.map} +0 -0
- /package/dist/chunks/{chunk-GX74LDJL.js.map → chunk-IJZ7SLBV.js.map} +0 -0
- /package/dist/chunks/{chunk-OZLMT5WB.js.map → chunk-IZVN6K6U.js.map} +0 -0
- /package/dist/chunks/{chunk-VKYIL6BJ.js.map → chunk-L2NNJ4XL.js.map} +0 -0
- /package/dist/chunks/{chunk-IDU2KLLT.js.map → chunk-LF76CVOZ.js.map} +0 -0
- /package/dist/chunks/{chunk-N4IDJ5V2.js.map → chunk-LFPTXRMM.js.map} +0 -0
- /package/dist/chunks/{chunk-I47Q4G4X.js.map → chunk-LQRP2VRQ.js.map} +0 -0
- /package/dist/chunks/{chunk-PEJV6XTK.js.map → chunk-LYGD5P7O.js.map} +0 -0
- /package/dist/chunks/{chunk-JS4C7HNH.js.map → chunk-M2OZ4SVS.js.map} +0 -0
- /package/dist/chunks/{chunk-RBTQ5ZQU.js.map → chunk-MGZSEPDY.js.map} +0 -0
- /package/dist/chunks/{chunk-W6OOY44A.js.map → chunk-MJBGVVI5.js.map} +0 -0
- /package/dist/chunks/{chunk-76DOZYZP.js.map → chunk-MYL75RA4.js.map} +0 -0
- /package/dist/chunks/{chunk-B5KDTZYH.js.map → chunk-PMX2WTZL.js.map} +0 -0
- /package/dist/chunks/{chunk-J7PV6OOX.js.map → chunk-QWSZ5P4C.js.map} +0 -0
- /package/dist/chunks/{chunk-EBN4YPIN.js.map → chunk-RSIWTHYS.js.map} +0 -0
- /package/dist/chunks/{chunk-IYNTTEQA.js.map → chunk-S4QOQGAT.js.map} +0 -0
- /package/dist/chunks/{chunk-UVSKCXL6.js.map → chunk-SGRO4RJP.js.map} +0 -0
- /package/dist/chunks/{chunk-3LCJJT2F.js.map → chunk-TZZOQ62Z.js.map} +0 -0
- /package/dist/chunks/{chunk-3UK2GDVX.js.map → chunk-UGDZ7MLG.js.map} +0 -0
- /package/dist/chunks/{chunk-DASSBULE.js.map → chunk-VFVWHYHT.js.map} +0 -0
- /package/dist/chunks/{chunk-WQ72OU4F.js.map → chunk-VZ4PKWLF.js.map} +0 -0
- /package/dist/chunks/{chunk-Y6HB4AJE.js.map → chunk-WKFHQQOU.js.map} +0 -0
- /package/dist/chunks/{chunk-WUUZJCAA.js.map → chunk-WKPRYH24.js.map} +0 -0
- /package/dist/chunks/{chunk-7HRVTREO.js.map → chunk-WQFHJ4TO.js.map} +0 -0
- /package/dist/chunks/{chunk-V2EGJD7W.js.map → chunk-XPLHAOGE.js.map} +0 -0
- /package/dist/chunks/{chunk-WG5LLHJX.js.map → chunk-XX2SP5AM.js.map} +0 -0
- /package/dist/chunks/{chunk-YSGVHT54.js.map → chunk-YDSWGJWF.js.map} +0 -0
- /package/dist/chunks/{chunk-MZUVCANX.js.map → chunk-YJ6NWB2B.js.map} +0 -0
- /package/dist/chunks/{chunk-EYYWIMVU.js.map → chunk-YUYNIAJX.js.map} +0 -0
- /package/dist/chunks/{chunk-RMBD3YZ5.js.map → chunk-YXIG4OT2.js.map} +0 -0
- /package/dist/chunks/{crash-report-6XW44BV6.js.map → commands-ZCNZVYTG.js.map} +0 -0
- /package/dist/chunks/{doctor-ZDXK5W6E.js.map → crash-report-K53VF4H5.js.map} +0 -0
- /package/dist/chunks/{dist-VEEXDONU.js.map → dist-6IPPA55L.js.map} +0 -0
- /package/dist/chunks/{dist-KNYBFHXB.js.map → dist-H53G25BE.js.map} +0 -0
- /package/dist/chunks/{dist-6XC3YARD.js.map → dist-L5LBM77I.js.map} +0 -0
- /package/dist/chunks/{dist-4SPA7VSK.js.map → dist-RIH2Q2ER.js.map} +0 -0
- /package/dist/chunks/{dist-VYUROH2A.js.map → dist-RTIKLSUV.js.map} +0 -0
- /package/dist/chunks/{dist-5DDSGOSA.js.map → dist-T6KE7URX.js.map} +0 -0
- /package/dist/chunks/{home-5N3FSKF7.js.map → dist-VSJGDIXP.js.map} +0 -0
- /package/dist/chunks/{dist-NG6RAO2C.js.map → dist-XNGK3C4G.js.map} +0 -0
- /package/dist/chunks/{lifecycle-2RFARBGC.js.map → doctor-DOCGTBME.js.map} +0 -0
- /package/dist/chunks/{drain-NQLOKED3.js.map → drain-LT3J2MEA.js.map} +0 -0
- /package/dist/chunks/{eval-A2G4KS62.js.map → eval-DH26W2QK.js.map} +0 -0
- /package/dist/chunks/{github-FH7PPWVW.js.map → github-JTMZJAZL.js.map} +0 -0
- /package/dist/chunks/{live-XC3V46W3.js.map → home-GGVNSCCU.js.map} +0 -0
- /package/dist/chunks/{login-NIX66V67.js.map → host-6CUYPX4T.js.map} +0 -0
- /package/dist/chunks/{learn-SAVZB4Q7.js.map → learn-PAO3IOYA.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-ZWX7Q3X2.js.map → learn-builtin-DXZUXOGG.js.map} +0 -0
- /package/dist/chunks/{output-schema-4BLF2AFQ.js.map → lifecycle-KDN4D7DP.js.map} +0 -0
- /package/dist/chunks/{providers-NCGZXLFH.js.map → live-XWJ2JOFO.js.map} +0 -0
- /package/dist/chunks/{resume-2RX7TSTR.js.map → login-3Q2HKQUW.js.map} +0 -0
- /package/dist/chunks/{logs-LJSWQUT5.js.map → logs-UYB55HOX.js.map} +0 -0
- /package/dist/chunks/{resume-command-YJ6LCKON.js.map → open-QUDHJK5H.js.map} +0 -0
- /package/dist/chunks/{session-step-YIL6LV2J.js.map → output-schema-TLW5FA37.js.map} +0 -0
- /package/dist/chunks/{start-check-OKGZSWUG.js.map → palette-WDPS7W6Q.js.map} +0 -0
- /package/dist/chunks/{store-C654AJPG.js.map → peers-OBENILN2.js.map} +0 -0
- /package/dist/chunks/{store-EQQRW7NJ.js.map → prefix-MLAG4KTK.js.map} +0 -0
- /package/dist/chunks/{store-HWGRIA5X.js.map → providers-PJIHLTXP.js.map} +0 -0
- /package/dist/chunks/{schedule-LWY6AMC3.js.map → schedule-42N4JOQJ.js.map} +0 -0
- /package/dist/chunks/{skills-3KYQHENX.js.map → skills-V3VDOL3D.js.map} +0 -0
- /package/dist/chunks/{state-ER7R4WEN.js.map → state-HX3XRNPC.js.map} +0 -0
- /package/dist/chunks/{upgrade-D6Q5EAMR.js.map → upgrade-HDW5MWLE.js.map} +0 -0
|
@@ -2,17 +2,10 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openManagedWorktrees
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
connectMcpServers,
|
|
8
|
-
startMcpServers
|
|
9
|
-
} from "./chunk-DASSBULE.js";
|
|
10
|
-
import {
|
|
11
|
-
openInBrowser
|
|
12
|
-
} from "./chunk-AH3DBEMR.js";
|
|
5
|
+
} from "./chunk-I5E4MT3C.js";
|
|
13
6
|
import {
|
|
14
7
|
createSessionSkillCatalog
|
|
15
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L2NNJ4XL.js";
|
|
16
9
|
import {
|
|
17
10
|
SAVE_SKILL_TOOL_NAME,
|
|
18
11
|
attachAgentView,
|
|
@@ -30,48 +23,55 @@ import {
|
|
|
30
23
|
viewFromJournal,
|
|
31
24
|
withSandboxShell,
|
|
32
25
|
workingDirectoryProblem
|
|
33
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FHQTXWDA.js";
|
|
34
27
|
import {
|
|
35
28
|
runGeneratorCycle
|
|
36
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WKPRYH24.js";
|
|
37
30
|
import {
|
|
38
31
|
createSessionLearningFeed,
|
|
39
32
|
openLearningTarget,
|
|
40
33
|
readProjectGuidance,
|
|
41
34
|
withSessionLearningFeed
|
|
42
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3QGJXD7U.js";
|
|
36
|
+
import {
|
|
37
|
+
connectMcpServers,
|
|
38
|
+
startMcpServers
|
|
39
|
+
} from "./chunk-VFVWHYHT.js";
|
|
40
|
+
import {
|
|
41
|
+
openInBrowser
|
|
42
|
+
} from "./chunk-DFCJYRT5.js";
|
|
43
|
+
import {
|
|
44
|
+
ensureLocalConfigIgnored,
|
|
45
|
+
logIgnoreOutcome,
|
|
46
|
+
writeLocalAllows
|
|
47
|
+
} from "./chunk-GCCFTP47.js";
|
|
43
48
|
import {
|
|
44
49
|
createBrowserControl
|
|
45
50
|
} from "./chunk-WHODOMXA.js";
|
|
46
51
|
import {
|
|
47
52
|
conversationInUseSentence,
|
|
48
53
|
minutesUntilFree
|
|
49
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-7TEXDZVO.js";
|
|
50
55
|
import {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
discoverSkills,
|
|
57
|
+
loadSkillBody
|
|
58
|
+
} from "./chunk-2EHPXO4E.js";
|
|
59
|
+
import {
|
|
60
|
+
openCliAccounts
|
|
61
|
+
} from "./chunk-VDKDXDOH.js";
|
|
55
62
|
import {
|
|
56
63
|
CredentialRefreshRejectedError,
|
|
57
|
-
CredentialWithdrawnError,
|
|
64
|
+
CredentialWithdrawnError as CredentialWithdrawnError2,
|
|
58
65
|
ensureFreshAnthropicToken,
|
|
59
66
|
ensureFreshStoredCodexCredential,
|
|
60
67
|
readSubscriptionCredential,
|
|
61
68
|
sameOAuthCredential
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import {
|
|
64
|
-
discoverSkills,
|
|
65
|
-
loadSkillBody
|
|
66
|
-
} from "./chunk-4YJ4EI4X.js";
|
|
69
|
+
} from "./chunk-BGKQCLLH.js";
|
|
67
70
|
import {
|
|
68
71
|
createLazyCodeAnalysis,
|
|
69
72
|
promptCacheTtl,
|
|
70
73
|
setPromptCacheTtl
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import {
|
|
73
|
-
debugRequested
|
|
74
|
-
} from "./chunk-GNBMKISG.js";
|
|
74
|
+
} from "./chunk-PMX2WTZL.js";
|
|
75
75
|
import {
|
|
76
76
|
LOCAL_CONFIG_FILE,
|
|
77
77
|
configuredPassthroughTools,
|
|
@@ -80,13 +80,16 @@ import {
|
|
|
80
80
|
sessionWorkflowSizeAdvice,
|
|
81
81
|
unmatchedPassthroughTools,
|
|
82
82
|
workflowTokenCeiling
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-LKJBDF7W.js";
|
|
84
84
|
import {
|
|
85
85
|
require_dist
|
|
86
86
|
} from "./chunk-KONYGNG6.js";
|
|
87
87
|
import {
|
|
88
88
|
resolveGeneratorSettings
|
|
89
89
|
} from "./chunk-LCGXWCVU.js";
|
|
90
|
+
import {
|
|
91
|
+
debugRequested
|
|
92
|
+
} from "./chunk-GNBMKISG.js";
|
|
90
93
|
import {
|
|
91
94
|
formatSize,
|
|
92
95
|
homePath,
|
|
@@ -97,44 +100,47 @@ import {
|
|
|
97
100
|
canSelectModel,
|
|
98
101
|
chainCapabilityDisagreements,
|
|
99
102
|
chainPositionName,
|
|
100
|
-
composeEnvironmentPrompt,
|
|
101
103
|
createGeminiAccessTokenResolver,
|
|
102
104
|
describeAcceptedMismatch,
|
|
103
105
|
describeCapabilityRefusal,
|
|
104
|
-
detectWsl,
|
|
105
106
|
discoverProviders,
|
|
106
107
|
ensureRegistered,
|
|
107
|
-
environmentFactLines,
|
|
108
108
|
findDetected,
|
|
109
109
|
hasApiCredential,
|
|
110
|
-
isAnthropicOAuthToken,
|
|
111
110
|
isRegistered,
|
|
112
|
-
permissionSentence,
|
|
113
111
|
primaryProvider,
|
|
114
|
-
readCodexCredentialFile,
|
|
115
|
-
readEnvironmentFacts,
|
|
116
112
|
readPreferences,
|
|
117
113
|
requiresCredentialForModel,
|
|
118
114
|
resolveChainCapabilities,
|
|
119
115
|
unresolvedMembers
|
|
120
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-26C37THH.js";
|
|
121
117
|
import {
|
|
122
118
|
PROVIDER_REGISTRY,
|
|
123
119
|
missingCredentialMessage,
|
|
124
120
|
unsupportedProviderMessage
|
|
125
121
|
} from "./chunk-6LLJQ3KY.js";
|
|
122
|
+
import {
|
|
123
|
+
composeEnvironmentPrompt,
|
|
124
|
+
detectWsl,
|
|
125
|
+
environmentFactLines,
|
|
126
|
+
isAnthropicOAuthToken,
|
|
127
|
+
permissionSentence,
|
|
128
|
+
readCodexCredentialFile,
|
|
129
|
+
readEnvironmentFacts
|
|
130
|
+
} from "./chunk-LKODRKMZ.js";
|
|
126
131
|
import {
|
|
127
132
|
isPermissionMode,
|
|
128
133
|
permissionModeLabel
|
|
129
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-VZ4PKWLF.js";
|
|
130
135
|
import {
|
|
131
136
|
conversationLogPath,
|
|
132
137
|
ensureSessionStarted,
|
|
133
|
-
openConversationLog
|
|
134
|
-
|
|
138
|
+
openConversationLog,
|
|
139
|
+
recordAccountBound
|
|
140
|
+
} from "./chunk-JL64XHSL.js";
|
|
135
141
|
import {
|
|
136
142
|
readIdentity
|
|
137
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-MJBGVVI5.js";
|
|
138
144
|
import {
|
|
139
145
|
INSTRUCTIONS_FILENAME,
|
|
140
146
|
MAX_CHARS_PER_FILE,
|
|
@@ -143,18 +149,21 @@ import {
|
|
|
143
149
|
isContainedBy,
|
|
144
150
|
readInstructionAt
|
|
145
151
|
} from "./chunk-JQIBPPOL.js";
|
|
152
|
+
import {
|
|
153
|
+
isDefaultAccountId
|
|
154
|
+
} from "./chunk-BT7ZELXJ.js";
|
|
146
155
|
import {
|
|
147
156
|
probeCapabilities
|
|
148
157
|
} from "./chunk-OH6TB27S.js";
|
|
149
158
|
import {
|
|
150
159
|
compilePermissions
|
|
151
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-M2OZ4SVS.js";
|
|
152
161
|
import {
|
|
153
162
|
PERMISSION_MODE_NAMES
|
|
154
163
|
} from "./chunk-WMEZTDLT.js";
|
|
155
164
|
import {
|
|
156
165
|
cliLogger
|
|
157
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-B3XIVOLM.js";
|
|
158
167
|
import {
|
|
159
168
|
readModelLaunchEnvironment
|
|
160
169
|
} from "./chunk-3NJPNX6V.js";
|
|
@@ -167,13 +176,13 @@ import {
|
|
|
167
176
|
} from "./chunk-IE5XIE4W.js";
|
|
168
177
|
import {
|
|
169
178
|
ensurePrivateStateDirectory
|
|
170
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-HELINLSD.js";
|
|
171
180
|
import {
|
|
172
181
|
restrictToOwner
|
|
173
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-TZZOQ62Z.js";
|
|
174
183
|
import {
|
|
175
184
|
namzuHomePath
|
|
176
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-HB5ZN5KQ.js";
|
|
177
186
|
import {
|
|
178
187
|
AgentManager,
|
|
179
188
|
AgentRegistry,
|
|
@@ -187,6 +196,7 @@ import {
|
|
|
187
196
|
COMPUTER_USE_TOOL_NAME,
|
|
188
197
|
CacheClock,
|
|
189
198
|
CompletionInbox,
|
|
199
|
+
CredentialWithdrawnError,
|
|
190
200
|
DefaultCapacityValidator,
|
|
191
201
|
DiskMemoryStore,
|
|
192
202
|
DiskSessionCheckpointStore,
|
|
@@ -349,7 +359,7 @@ import {
|
|
|
349
359
|
windowsShellNotice,
|
|
350
360
|
withProviderFallback,
|
|
351
361
|
wrapUntrusted
|
|
352
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-YTE3QIH3.js";
|
|
353
363
|
import {
|
|
354
364
|
__name,
|
|
355
365
|
__toESM
|
|
@@ -495,12 +505,12 @@ function createCurrentCredentialReader() {
|
|
|
495
505
|
signal?.throwIfAborted();
|
|
496
506
|
const origin = oauth.origin ?? "keychain";
|
|
497
507
|
const credential = readSubscriptionCredential(origin, oauth.sourcePath);
|
|
498
|
-
if (!credential) throw new
|
|
508
|
+
if (!credential) throw new CredentialWithdrawnError2();
|
|
499
509
|
const metadata = { ...oauth, ...credential, origin };
|
|
500
510
|
const token = origin === "keychain" ? credential.accessToken : await ensureFreshAnthropicToken(credential.accessToken, metadata, signal);
|
|
501
511
|
signal?.throwIfAborted();
|
|
502
512
|
if (token === credential.accessToken && credential.expiresAt !== void 0 && credential.expiresAt <= Date.now()) {
|
|
503
|
-
throw new
|
|
513
|
+
throw new CredentialWithdrawnError2(
|
|
504
514
|
"The Claude credential is still expired after renewal. Retry when its owner has refreshed it, or sign in with /login."
|
|
505
515
|
);
|
|
506
516
|
}
|
|
@@ -920,10 +930,10 @@ __name(estimateHistoryTokens, "estimateHistoryTokens");
|
|
|
920
930
|
function compactResultLine(input) {
|
|
921
931
|
const parts = [COMPACT_RESULT_TEXT];
|
|
922
932
|
if (input.shed > 0) parts.push(`${input.shed} message${input.shed === 1 ? "" : "s"} summarized`);
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
);
|
|
933
|
+
const before = approximate(input.tokensBefore);
|
|
934
|
+
const after = approximate(input.tokensAfter);
|
|
935
|
+
if (input.tokensBefore > input.tokensAfter && before !== after) {
|
|
936
|
+
parts.push(`context about ${before} to ${after} tokens`);
|
|
927
937
|
}
|
|
928
938
|
return parts.join(" \xB7 ");
|
|
929
939
|
}
|
|
@@ -931,7 +941,9 @@ __name(compactResultLine, "compactResultLine");
|
|
|
931
941
|
var NOTHING_TO_COMPACT_TEXT = "Nothing to compact yet. The conversation is still short enough.";
|
|
932
942
|
var COMPACT_NOT_SAVED_TEXT = "This conversation could not be saved, so the summary lasts only until you quit.";
|
|
933
943
|
function approximate(tokens) {
|
|
934
|
-
|
|
944
|
+
if (tokens >= 1e4) return `${Math.round(tokens / 1e3)}k`;
|
|
945
|
+
if (tokens >= 1e3) return `${Math.round(tokens / 100) / 10}k`;
|
|
946
|
+
return String(tokens);
|
|
935
947
|
}
|
|
936
948
|
__name(approximate, "approximate");
|
|
937
949
|
function compactionHistoryLines(event) {
|
|
@@ -961,7 +973,7 @@ function describeCompactionFailure(event, debug) {
|
|
|
961
973
|
debug
|
|
962
974
|
);
|
|
963
975
|
case "shed_nothing":
|
|
964
|
-
return "Compaction failed \xB7 conversation could not be reduced below the context limit. Your conversation is unchanged
|
|
976
|
+
return "Compaction failed \xB7 conversation could not be reduced below the context limit. Your conversation is unchanged. Check the configured model context window; limit tool output or read files in smaller parts.";
|
|
965
977
|
case "split_tool_pair":
|
|
966
978
|
return withDebugDetail(
|
|
967
979
|
"Compaction failed \xB7 the summary could not be used. Your conversation is unchanged.",
|
|
@@ -972,7 +984,7 @@ function describeCompactionFailure(event, debug) {
|
|
|
972
984
|
return "Automatic compaction is paused for this reply after repeated attempts that freed nothing.";
|
|
973
985
|
case "refilling":
|
|
974
986
|
return withDebugDetail(
|
|
975
|
-
"The context filled up again right after being compacted, three times in a row.
|
|
987
|
+
"The context filled up again right after being compacted, three times in a row. Compaction may have left too little room, even for small outputs. Check the configured model context window; limit tool output or read files in smaller parts.",
|
|
976
988
|
event.error ?? "",
|
|
977
989
|
debug
|
|
978
990
|
);
|
|
@@ -1699,7 +1711,9 @@ function unknownToolNotice(result) {
|
|
|
1699
1711
|
}
|
|
1700
1712
|
__name(unknownToolNotice, "unknownToolNotice");
|
|
1701
1713
|
var INVALID_PARAMETERS = "Invalid tool parameters";
|
|
1702
|
-
|
|
1714
|
+
var STOPPED_BY_YOU_LINE = "You stopped this, so it did not run.";
|
|
1715
|
+
function declinedLine(note, stopped = false) {
|
|
1716
|
+
if (stopped) return STOPPED_BY_YOU_LINE;
|
|
1703
1717
|
const said = note?.replace(/\s+/g, " ").trim();
|
|
1704
1718
|
return said ? `You declined this, so it did not run. You said: \u201C${said}\u201D` : "You declined this, so it did not run.";
|
|
1705
1719
|
}
|
|
@@ -7092,6 +7106,9 @@ __name(createSideModel, "createSideModel");
|
|
|
7092
7106
|
// src/integrations/state/retention.ts
|
|
7093
7107
|
var CLI_CHECKPOINT_RETENTION = 10;
|
|
7094
7108
|
|
|
7109
|
+
// src/integrations/subagents/activity.ts
|
|
7110
|
+
import { Buffer as Buffer2 } from "node:buffer";
|
|
7111
|
+
|
|
7095
7112
|
// src/integrations/subagents/failure-words.ts
|
|
7096
7113
|
var HISTORY_CONTRACT = /^A cached message\b/;
|
|
7097
7114
|
function plainChildFailure(text2) {
|
|
@@ -7814,11 +7831,15 @@ function terminalLabel(status) {
|
|
|
7814
7831
|
}
|
|
7815
7832
|
__name(terminalLabel, "terminalLabel");
|
|
7816
7833
|
function bounded(value, max) {
|
|
7817
|
-
if (value.length <= max) return value;
|
|
7834
|
+
if (value.length <= max) return copyRetainedText(value);
|
|
7818
7835
|
const suffix = "\u2026 [clipped]";
|
|
7819
|
-
return `${value.slice(0, Math.max(0, max - suffix.length))}${suffix}
|
|
7836
|
+
return copyRetainedText(`${value.slice(0, Math.max(0, max - suffix.length))}${suffix}`);
|
|
7820
7837
|
}
|
|
7821
7838
|
__name(bounded, "bounded");
|
|
7839
|
+
function copyRetainedText(value) {
|
|
7840
|
+
return Buffer2.from(value, "utf16le").toString("utf16le");
|
|
7841
|
+
}
|
|
7842
|
+
__name(copyRetainedText, "copyRetainedText");
|
|
7822
7843
|
function normalizedLabel(value, fallback, max) {
|
|
7823
7844
|
const raw = typeof value === "string" ? value.trim() : "";
|
|
7824
7845
|
let label = "";
|
|
@@ -7839,9 +7860,9 @@ function normalizedPhaseOrder(value) {
|
|
|
7839
7860
|
__name(normalizedPhaseOrder, "normalizedPhaseOrder");
|
|
7840
7861
|
function appendBounded(current, delta) {
|
|
7841
7862
|
const joined = current + delta;
|
|
7842
|
-
if (joined.length <= MAX_ROW_CODE_UNITS) return joined;
|
|
7863
|
+
if (joined.length <= MAX_ROW_CODE_UNITS) return copyRetainedText(joined);
|
|
7843
7864
|
const prefix = "\u2026 [earlier text clipped]\n";
|
|
7844
|
-
return prefix + joined.slice(-(MAX_ROW_CODE_UNITS - prefix.length));
|
|
7865
|
+
return copyRetainedText(prefix + joined.slice(-(MAX_ROW_CODE_UNITS - prefix.length)));
|
|
7845
7866
|
}
|
|
7846
7867
|
__name(appendBounded, "appendBounded");
|
|
7847
7868
|
function errorMessage(error) {
|
|
@@ -14568,13 +14589,14 @@ function clipRequestContext(prompt, limit, kind) {
|
|
|
14568
14589
|
return prompt.slice(0, end).trimEnd() + notice2;
|
|
14569
14590
|
}
|
|
14570
14591
|
__name(clipRequestContext, "clipRequestContext");
|
|
14571
|
-
async function createAgentSession(prefs,
|
|
14592
|
+
async function createAgentSession(prefs, detectedProviders, options = {}) {
|
|
14572
14593
|
const modelEnvironment = readModelLaunchEnvironment();
|
|
14573
14594
|
if (options.palEnvironment) {
|
|
14574
|
-
const { createPalAgentSession } = await import("./agent-session-
|
|
14575
|
-
return createPalAgentSession(prefs,
|
|
14595
|
+
const { createPalAgentSession } = await import("./agent-session-EZB2OYG3.js");
|
|
14596
|
+
return createPalAgentSession(prefs, detectedProviders, options);
|
|
14576
14597
|
}
|
|
14577
|
-
|
|
14598
|
+
let detected = detectedProviders;
|
|
14599
|
+
const { palAtWorkspace } = await import("./store-IX6KNJA4.js");
|
|
14578
14600
|
if (palAtWorkspace(options.cwd ?? process.cwd()))
|
|
14579
14601
|
throw new Error("This Pal requires its owned virtual computer. Open it with namzu pal chat.");
|
|
14580
14602
|
const commandArguments = builtinCommandArguments();
|
|
@@ -14672,6 +14694,46 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14672
14694
|
if (!entry) {
|
|
14673
14695
|
return emptySession(`Unknown provider "${primary.id}" \u2014 pick another.`, "invocation");
|
|
14674
14696
|
}
|
|
14697
|
+
let boundAccount;
|
|
14698
|
+
let accountsHandle;
|
|
14699
|
+
if (primary.account !== void 0 && !isDefaultAccountId(primary.account)) {
|
|
14700
|
+
accountsHandle = options.accounts ?? openCliAccounts();
|
|
14701
|
+
const found = accountsHandle.registry.get(primary.account);
|
|
14702
|
+
if (!found || found.provider !== primary.id) {
|
|
14703
|
+
return emptySession(
|
|
14704
|
+
"That account is no longer set up. Choose another with /auth.",
|
|
14705
|
+
"invocation"
|
|
14706
|
+
);
|
|
14707
|
+
}
|
|
14708
|
+
let resolved;
|
|
14709
|
+
try {
|
|
14710
|
+
resolved = await accountsHandle.registry.resolve(found.id, AbortSignal.timeout(3e4));
|
|
14711
|
+
} catch (err) {
|
|
14712
|
+
return emptySession(
|
|
14713
|
+
err instanceof CredentialWithdrawnError ? `${found.label} needs to be signed in again. Choose it in /auth to add it once more, or pick another account.` : explainFailure(err, `Namzu could not use the account ${found.label}.`),
|
|
14714
|
+
"environment",
|
|
14715
|
+
describeError2(err)
|
|
14716
|
+
);
|
|
14717
|
+
}
|
|
14718
|
+
boundAccount = found;
|
|
14719
|
+
detected = [
|
|
14720
|
+
...detected.filter((item) => item.entry.id !== primary.id),
|
|
14721
|
+
{
|
|
14722
|
+
entry,
|
|
14723
|
+
source: { kind: "session" },
|
|
14724
|
+
apiKey: resolved.accessToken,
|
|
14725
|
+
...resolved.baseUrl !== void 0 ? { baseUrl: resolved.baseUrl } : {},
|
|
14726
|
+
...primary.id === "codex" && resolved.accountId !== void 0 ? {
|
|
14727
|
+
codex: {
|
|
14728
|
+
accountId: resolved.accountId,
|
|
14729
|
+
...resolved.expiresAt !== void 0 ? { expiresAt: resolved.expiresAt } : {},
|
|
14730
|
+
origin: "stored"
|
|
14731
|
+
}
|
|
14732
|
+
} : {},
|
|
14733
|
+
alternatives: []
|
|
14734
|
+
}
|
|
14735
|
+
];
|
|
14736
|
+
}
|
|
14675
14737
|
const det = findDetected(detected, primary.id);
|
|
14676
14738
|
if (requiresCredentialForModel(entry, primary.model ?? entry.defaultModel) && !hasApiCredential(entry, det?.apiKey)) {
|
|
14677
14739
|
return emptySession(
|
|
@@ -14724,7 +14786,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14724
14786
|
const subscriptionRefresh = primary.id === "anthropic" && (det?.oauth?.origin === "stored" || det?.oauth?.origin === "claude-file");
|
|
14725
14787
|
const borrowedAnthropic = primary.id === "anthropic" && det?.oauth?.origin === "keychain";
|
|
14726
14788
|
const borrowedCodexPath = primary.id === "codex" && det?.source.kind === "codex-file" ? det.source.path : void 0;
|
|
14727
|
-
const storedCodex = primary.id === "codex" && det?.codex?.origin === "stored";
|
|
14789
|
+
const storedCodex = primary.id === "codex" && det?.codex?.origin === "stored" && boundAccount === void 0;
|
|
14728
14790
|
const credentialOrigin = det?.oauth?.origin ?? "keychain";
|
|
14729
14791
|
const credentialPath = det?.oauth?.sourcePath;
|
|
14730
14792
|
let currentToken = det?.apiKey;
|
|
@@ -14734,7 +14796,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14734
14796
|
const performRefresh = /* @__PURE__ */ __name(async (signal) => {
|
|
14735
14797
|
signal?.throwIfAborted();
|
|
14736
14798
|
const cred = readSubscriptionCredential(credentialOrigin, credentialPath);
|
|
14737
|
-
if (!cred) throw new
|
|
14799
|
+
if (!cred) throw new CredentialWithdrawnError2();
|
|
14738
14800
|
if (rejectedRefresh && sameOAuthCredential(rejectedRefresh.credential, cred)) {
|
|
14739
14801
|
throw rejectedRefresh.error;
|
|
14740
14802
|
}
|
|
@@ -14756,7 +14818,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14756
14818
|
if (error instanceof CredentialRefreshRejectedError) {
|
|
14757
14819
|
signal?.throwIfAborted();
|
|
14758
14820
|
const current = readSubscriptionCredential(credentialOrigin, credentialPath);
|
|
14759
|
-
if (!current) throw new
|
|
14821
|
+
if (!current) throw new CredentialWithdrawnError2();
|
|
14760
14822
|
if (sameOAuthCredential(current, cred)) {
|
|
14761
14823
|
rejectedRefresh = { credential: cred, error };
|
|
14762
14824
|
}
|
|
@@ -14786,12 +14848,12 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14786
14848
|
if (!borrowedCodexPath) return;
|
|
14787
14849
|
const credential = readCodexCredentialFile(borrowedCodexPath);
|
|
14788
14850
|
if (!credential) {
|
|
14789
|
-
throw new
|
|
14851
|
+
throw new CredentialWithdrawnError2(
|
|
14790
14852
|
"The Codex sign-in Namzu borrowed is no longer available. Run `codex login` or choose another provider."
|
|
14791
14853
|
);
|
|
14792
14854
|
}
|
|
14793
14855
|
if (credential.expiresAt !== void 0 && credential.expiresAt - Date.now() <= 6e4) {
|
|
14794
|
-
throw new
|
|
14856
|
+
throw new CredentialWithdrawnError2(
|
|
14795
14857
|
"The Codex sign-in on this computer has expired. Run `codex login` to refresh it, then retry in Namzu."
|
|
14796
14858
|
);
|
|
14797
14859
|
}
|
|
@@ -14821,12 +14883,12 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14821
14883
|
if (!borrowedAnthropic) return;
|
|
14822
14884
|
const credential = readSubscriptionCredential(credentialOrigin, credentialPath);
|
|
14823
14885
|
if (!credential) {
|
|
14824
|
-
throw new
|
|
14886
|
+
throw new CredentialWithdrawnError2(
|
|
14825
14887
|
"The Claude sign-in Namzu borrowed is no longer available. Run `claude login` or choose another provider."
|
|
14826
14888
|
);
|
|
14827
14889
|
}
|
|
14828
14890
|
if (credential.expiresAt !== void 0 && credential.expiresAt - Date.now() <= 6e4) {
|
|
14829
|
-
throw new
|
|
14891
|
+
throw new CredentialWithdrawnError2(
|
|
14830
14892
|
"The Claude sign-in on this computer has expired. Run `claude login` to refresh it, then retry in Namzu."
|
|
14831
14893
|
);
|
|
14832
14894
|
}
|
|
@@ -14862,14 +14924,53 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
14862
14924
|
currentToken = credential.accessToken;
|
|
14863
14925
|
currentCodexAccount = credential.accountId;
|
|
14864
14926
|
}, "refreshStoredCodex");
|
|
14927
|
+
const accountCodexHome = boundAccount?.source.kind === "codex-home" ? boundAccount : void 0;
|
|
14928
|
+
const refreshAccountCodex = /* @__PURE__ */ __name(async (signal) => {
|
|
14929
|
+
if (!accountCodexHome || !accountsHandle) return;
|
|
14930
|
+
let credential;
|
|
14931
|
+
try {
|
|
14932
|
+
credential = await accountsHandle.registry.resolve(
|
|
14933
|
+
accountCodexHome.id,
|
|
14934
|
+
signal ?? AbortSignal.timeout(3e4)
|
|
14935
|
+
);
|
|
14936
|
+
} catch (error) {
|
|
14937
|
+
if (error instanceof CredentialWithdrawnError) {
|
|
14938
|
+
throw new CredentialWithdrawnError2(
|
|
14939
|
+
`${accountCodexHome.label} needs to be signed in again. Choose another account with /auth.`
|
|
14940
|
+
);
|
|
14941
|
+
}
|
|
14942
|
+
throw error;
|
|
14943
|
+
}
|
|
14944
|
+
if (credential.accessToken === currentToken && credential.accountId === currentCodexAccount) {
|
|
14945
|
+
return;
|
|
14946
|
+
}
|
|
14947
|
+
if (credential.accountId === void 0) return;
|
|
14948
|
+
provider = constructProvider(
|
|
14949
|
+
"codex",
|
|
14950
|
+
{
|
|
14951
|
+
...det,
|
|
14952
|
+
apiKey: credential.accessToken,
|
|
14953
|
+
codex: {
|
|
14954
|
+
accountId: credential.accountId,
|
|
14955
|
+
...credential.expiresAt !== void 0 ? { expiresAt: credential.expiresAt } : {},
|
|
14956
|
+
origin: "stored"
|
|
14957
|
+
}
|
|
14958
|
+
},
|
|
14959
|
+
model,
|
|
14960
|
+
{ sessionId: scope2.sessionId }
|
|
14961
|
+
);
|
|
14962
|
+
currentToken = credential.accessToken;
|
|
14963
|
+
currentCodexAccount = credential.accountId;
|
|
14964
|
+
}, "refreshAccountCodex");
|
|
14865
14965
|
const prepareProviderCredential = /* @__PURE__ */ __name((signal) => {
|
|
14866
|
-
if (!subscriptionRefresh && !borrowedAnthropic && !borrowedCodexPath && !storedCodex) {
|
|
14966
|
+
if (!subscriptionRefresh && !borrowedAnthropic && !borrowedCodexPath && !storedCodex && !accountCodexHome) {
|
|
14867
14967
|
signal?.throwIfAborted();
|
|
14868
14968
|
return Promise.resolve();
|
|
14869
14969
|
}
|
|
14870
14970
|
signal?.throwIfAborted();
|
|
14871
14971
|
const queued = credentialTail.then(async () => {
|
|
14872
|
-
if (
|
|
14972
|
+
if (accountCodexHome) await refreshAccountCodex(signal);
|
|
14973
|
+
else if (subscriptionRefresh) await performRefresh(signal);
|
|
14873
14974
|
else if (borrowedAnthropic) rereadBorrowedAnthropic(signal);
|
|
14874
14975
|
else if (storedCodex) await refreshStoredCodex(signal);
|
|
14875
14976
|
else rereadBorrowedCodex(signal);
|
|
@@ -15751,7 +15852,7 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
15751
15852
|
);
|
|
15752
15853
|
toolsets.push(options.toolLoading === "eager" ? monitorToolset : deferred(monitorToolset));
|
|
15753
15854
|
}
|
|
15754
|
-
const operatorPals = await import("./operator-tools-
|
|
15855
|
+
const operatorPals = await import("./operator-tools-43NL7HKO.js");
|
|
15755
15856
|
toolsets.push(
|
|
15756
15857
|
readyWhen(
|
|
15757
15858
|
toolset(
|
|
@@ -16355,8 +16456,21 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
16355
16456
|
if (failure) yield { kind: "error", message: failure.message };
|
|
16356
16457
|
})();
|
|
16357
16458
|
}, "resumePausedStream");
|
|
16459
|
+
const recordedAccountFor = /* @__PURE__ */ new Map();
|
|
16460
|
+
const accountBadge = (() => {
|
|
16461
|
+
if (boundAccount) {
|
|
16462
|
+
return { id: boundAccount.id, label: boundAccount.label, provider: boundAccount.provider };
|
|
16463
|
+
}
|
|
16464
|
+
try {
|
|
16465
|
+
const handle = options.accounts ?? openCliAccounts();
|
|
16466
|
+
return handle.registry.list(primary.id).some((item) => item.label !== "default") ? { id: `${primary.id}:default`, label: "default", provider: primary.id } : void 0;
|
|
16467
|
+
} catch {
|
|
16468
|
+
return void 0;
|
|
16469
|
+
}
|
|
16470
|
+
})();
|
|
16358
16471
|
const agentSession = {
|
|
16359
16472
|
hasProvider: true,
|
|
16473
|
+
...accountBadge ? { account: accountBadge } : {},
|
|
16360
16474
|
autoMode: {
|
|
16361
16475
|
available: sessionClassifier !== void 0,
|
|
16362
16476
|
...autoModeReason !== void 0 ? { reason: autoModeReason } : {},
|
|
@@ -17219,6 +17333,35 @@ async function createAgentSession(prefs, detected, options = {}) {
|
|
|
17219
17333
|
}
|
|
17220
17334
|
);
|
|
17221
17335
|
}
|
|
17336
|
+
if (boundAccount && accountsHandle) {
|
|
17337
|
+
accountsHandle.activity.markUsed(boundAccount.id, Date.now());
|
|
17338
|
+
if (!options.ephemeral && options.conversationSessions && options.accountReason !== void 0 && recordedAccountFor.get(turnScope.sessionId) !== boundAccount.id) {
|
|
17339
|
+
try {
|
|
17340
|
+
await recordAccountBound(options.conversationSessions, turnScope.sessionId, {
|
|
17341
|
+
accountId: boundAccount.id,
|
|
17342
|
+
provider: boundAccount.provider,
|
|
17343
|
+
reason: options.accountReason
|
|
17344
|
+
});
|
|
17345
|
+
recordedAccountFor.set(turnScope.sessionId, boundAccount.id);
|
|
17346
|
+
} catch (error) {
|
|
17347
|
+
cliLogger().warn("account binding was not recorded", exceptionAttributes(error));
|
|
17348
|
+
}
|
|
17349
|
+
}
|
|
17350
|
+
} else if (!boundAccount && !options.ephemeral && options.conversationSessions && options.accountReason !== void 0) {
|
|
17351
|
+
const usual = `${primary.id}:default`;
|
|
17352
|
+
if (recordedAccountFor.get(turnScope.sessionId) !== usual) {
|
|
17353
|
+
try {
|
|
17354
|
+
await recordAccountBound(options.conversationSessions, turnScope.sessionId, {
|
|
17355
|
+
accountId: usual,
|
|
17356
|
+
provider: primary.id,
|
|
17357
|
+
reason: options.accountReason
|
|
17358
|
+
});
|
|
17359
|
+
recordedAccountFor.set(turnScope.sessionId, usual);
|
|
17360
|
+
} catch (error) {
|
|
17361
|
+
cliLogger().warn("account binding was not recorded", exceptionAttributes(error));
|
|
17362
|
+
}
|
|
17363
|
+
}
|
|
17364
|
+
}
|
|
17222
17365
|
try {
|
|
17223
17366
|
for await (const event of runTurn({
|
|
17224
17367
|
provider: textOnlyModels.informing(turnProvider),
|
|
@@ -17670,7 +17813,7 @@ async function describeProviderModels(id, det, signal) {
|
|
|
17670
17813
|
kind: "failed",
|
|
17671
17814
|
reason: err instanceof Error ? err.message : String(err),
|
|
17672
17815
|
cause: modelListingCause(err),
|
|
17673
|
-
...err instanceof
|
|
17816
|
+
...err instanceof CredentialWithdrawnError2 ? { failure: "credential-unavailable" } : isCredentialRejection(err) ? { failure: "authentication" } : {}
|
|
17674
17817
|
};
|
|
17675
17818
|
}
|
|
17676
17819
|
}
|
|
@@ -18839,4 +18982,4 @@ export {
|
|
|
18839
18982
|
RESULT_SUMMARY_WHOLE_MAX,
|
|
18840
18983
|
resultSummaryLine
|
|
18841
18984
|
};
|
|
18842
|
-
//# sourceMappingURL=chunk-
|
|
18985
|
+
//# sourceMappingURL=chunk-6EJFXJDO.js.map
|