@claudiolabs/claudin 1.1.20 → 1.1.22
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/dist/chunks/AgentTool-1.1.22-4ba6sbn1.mjs +1 -0
- package/dist/chunks/App-1.1.22-2m11r40p.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.22-zp1y1218.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.22-s95rx0gk.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.22-5qa3134t.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.22-m5fc6nej.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.22-bnv9d1h5.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.22-g92az35d.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.22-9ccdds3r.mjs +6 -0
- package/dist/chunks/Doctor-1.1.22-1gc86nqw.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.22-z6sndn27.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.22-gb09bshz.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.22-52wjx92m.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.22-q6j91dba.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.22-z6x86qa5.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.22-05vxshwk.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.22-zh99bzde.mjs +1 -0
- package/dist/chunks/REPL-1.1.22-2c229abh.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.22-jp1q8573.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.22-s20kx6cz.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.22-036phq5k.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.22-2fpx0v36.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.22-q9xh6c1x.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.22-shtyh6x1.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.22-hwnb32mw.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.22-tx9d7tzw.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.22-qd5cmwvf.mjs +1 -0
- package/dist/chunks/add-dir-1.1.22-be3sb4ed.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.22-rm5akk7n.mjs +1 -0
- package/dist/chunks/agents-1.1.22-ad8hknzy.mjs +3 -0
- package/dist/chunks/agents-1.1.22-c8hb8sst.mjs +110 -0
- package/dist/chunks/api-1.1.22-b74pv1bc.mjs +1 -0
- package/dist/chunks/asciicast-1.1.22-qz35a5k4.mjs +1 -0
- package/dist/chunks/assistant-1.1.22-mqc1g16y.mjs +1 -0
- package/dist/chunks/auth-1.1.22-hwjcqvy4.mjs +1 -0
- package/dist/chunks/auth-1.1.22-pwa369jw.mjs +1 -0
- package/dist/chunks/autoMode-1.1.22-3by2zax3.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.22-e4mn7cas.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.22-ng881g40.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.22-hxy5jpcq.mjs +1 -0
- package/dist/chunks/branch-1.1.22-akcs4dk5.mjs +4 -0
- package/dist/chunks/bridge-1.1.22-rttgyvkn.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.22-gtqyk17c.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.22-tfhha37q.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.22-mt52dzzq.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.22-bqaet342.mjs +1 -0
- package/dist/chunks/btw-1.1.22-y44fbm0x.mjs +1 -0
- package/dist/chunks/buddy-1.1.22-1jzcjwyr.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.22-wmckr2fj.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.22-rzg950xm.mjs +4 -0
- package/dist/chunks/caches-1.1.22-kabyzmmd.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.22-7mafzt35.mjs +1 -0
- package/dist/chunks/claudemd-1.1.22-genp8cn4.mjs +1 -0
- package/dist/chunks/clear-1.1.22-ta3shrbf.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.22-hvkervt4.mjs +1 -0
- package/dist/chunks/cli-1.1.22-00s47593.mjs +4 -0
- package/dist/chunks/cli-1.1.22-01xfy12n.mjs +18 -0
- package/dist/chunks/cli-1.1.22-01yb5we4.mjs +2 -0
- package/dist/chunks/cli-1.1.22-0553cn3c.mjs +3 -0
- package/dist/chunks/cli-1.1.22-073y3gd5.mjs +2 -0
- package/dist/chunks/cli-1.1.22-07prh801.mjs +2 -0
- package/dist/chunks/cli-1.1.22-09eb3077.mjs +2 -0
- package/dist/chunks/cli-1.1.22-0h7jejsr.mjs +3 -0
- package/dist/chunks/cli-1.1.22-0n0cxg2p.mjs +4 -0
- package/dist/chunks/cli-1.1.22-0x96ahhc.mjs +4 -0
- package/dist/chunks/cli-1.1.22-1099x9x2.mjs +2 -0
- package/dist/chunks/cli-1.1.22-12vfd6j1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-1npmfnxb.mjs +50 -0
- package/dist/chunks/cli-1.1.22-1tqdha8j.mjs +2 -0
- package/dist/chunks/cli-1.1.22-1vrzwj7y.mjs +2 -0
- package/dist/chunks/cli-1.1.22-22735g9w.mjs +2 -0
- package/dist/chunks/cli-1.1.22-261r450y.mjs +60 -0
- package/dist/chunks/cli-1.1.22-265a4qpa.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2bdf1etb.mjs +4 -0
- package/dist/chunks/cli-1.1.22-2getjsf5.mjs +6 -0
- package/dist/chunks/cli-1.1.22-2mahjtgk.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2nwmyakz.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2rqykpy1.mjs +18 -0
- package/dist/chunks/cli-1.1.22-2t3fhfjv.mjs +133 -0
- package/dist/chunks/cli-1.1.22-2tctx2yg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2wh33kpx.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2y82t3pd.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2yxd7hfb.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2zhxvvkx.mjs +2 -0
- package/dist/chunks/cli-1.1.22-33jc9czg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-35fe0h6z.mjs +2 -0
- package/dist/chunks/cli-1.1.22-3ehpcpz4.mjs +2 -0
- package/dist/chunks/cli-1.1.22-3h20fb9d.mjs +2 -0
- package/dist/chunks/cli-1.1.22-3jyydg5h.mjs +206 -0
- package/dist/chunks/cli-1.1.22-3nmtk1bh.mjs +2 -0
- package/dist/chunks/cli-1.1.22-3r3tadt1.mjs +4 -0
- package/dist/chunks/cli-1.1.22-3thczx3s.mjs +133 -0
- package/dist/chunks/cli-1.1.22-3xjx3y13.mjs +2 -0
- package/dist/chunks/cli-1.1.22-41aseceq.mjs +3 -0
- package/dist/chunks/cli-1.1.22-4227vtcf.mjs +24 -0
- package/dist/chunks/cli-1.1.22-48gjx3j7.mjs +2 -0
- package/dist/chunks/cli-1.1.22-4g11fbx3.mjs +2 -0
- package/dist/chunks/cli-1.1.22-4ph3xqne.mjs +2 -0
- package/dist/chunks/cli-1.1.22-4pmfh5v2.mjs +2 -0
- package/dist/chunks/cli-1.1.22-5afprdre.mjs +2 -0
- package/dist/chunks/cli-1.1.22-5dcmb4h9.mjs +2 -0
- package/dist/chunks/cli-1.1.22-5mzq5mc4.mjs +24 -0
- package/dist/chunks/cli-1.1.22-5vkvwgh1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-619cwdw8.mjs +2 -0
- package/dist/chunks/cli-1.1.22-6bxa25n5.mjs +2 -0
- package/dist/chunks/cli-1.1.22-6gd42s2a.mjs +2 -0
- package/dist/chunks/cli-1.1.22-6k5nt5wc.mjs +2 -0
- package/dist/chunks/cli-1.1.22-6khex7bz.mjs +34 -0
- package/dist/chunks/cli-1.1.22-6vtb75g8.mjs +2 -0
- package/dist/chunks/cli-1.1.22-73mzmb6a.mjs +3 -0
- package/dist/chunks/cli-1.1.22-796yez98.mjs +2 -0
- package/dist/chunks/cli-1.1.22-7dha9j2p.mjs +3 -0
- package/dist/chunks/cli-1.1.22-7rm6jw0h.mjs +17 -0
- package/dist/chunks/cli-1.1.22-7rv96st9.mjs +4 -0
- package/dist/chunks/cli-1.1.22-7xwf9v6n.mjs +2 -0
- package/dist/chunks/cli-1.1.22-7zv5k6p0.mjs +2 -0
- package/dist/chunks/cli-1.1.22-87m0b80d.mjs +8 -0
- package/dist/chunks/cli-1.1.22-8cxdckv7.mjs +39 -0
- package/dist/chunks/cli-1.1.22-8fwvxw5t.mjs +2 -0
- package/dist/chunks/cli-1.1.22-8zvpve6x.mjs +2 -0
- package/dist/chunks/cli-1.1.22-9283mpm5.mjs +4 -0
- package/dist/chunks/cli-1.1.22-9affzgn1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-9b6k45hn.mjs +3 -0
- package/dist/chunks/cli-1.1.22-9dr01ge1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-9jjvp1h1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-9t3wxp9c.mjs +2 -0
- package/dist/chunks/cli-1.1.22-9xhwr18a.mjs +2 -0
- package/dist/chunks/cli-1.1.22-a4bc88qq.mjs +2 -0
- package/dist/chunks/cli-1.1.22-an1qn05v.mjs +3 -0
- package/dist/chunks/cli-1.1.22-as4a7add.mjs +5 -0
- package/dist/chunks/cli-1.1.22-b3bpnsqk.mjs +2 -0
- package/dist/chunks/cli-1.1.22-b7axxc6j.mjs +2 -0
- package/dist/chunks/cli-1.1.22-b81ce6x4.mjs +15 -0
- package/dist/chunks/cli-1.1.22-bfc0nw13.mjs +3 -0
- package/dist/chunks/cli-1.1.22-bj4bsta6.mjs +2 -0
- package/dist/chunks/cli-1.1.22-bnse4r9s.mjs +2 -0
- package/dist/chunks/cli-1.1.22-bv3a0vaa.mjs +2 -0
- package/dist/chunks/cli-1.1.22-bxfemtrx.mjs +2 -0
- package/dist/chunks/cli-1.1.22-byxwkfrj.mjs +3 -0
- package/dist/chunks/cli-1.1.22-c07z4d74.mjs +2 -0
- package/dist/chunks/cli-1.1.22-c1h1wfjn.mjs +2 -0
- package/dist/chunks/cli-1.1.22-ca6d1erw.mjs +6 -0
- package/dist/chunks/cli-1.1.22-ccp7e8qv.mjs +2 -0
- package/dist/chunks/cli-1.1.22-ckvf3pt3.mjs +2 -0
- package/dist/chunks/cli-1.1.22-ctbmc0bv.mjs +2 -0
- package/dist/chunks/cli-1.1.22-cvfsmaqt.mjs +2 -0
- package/dist/chunks/cli-1.1.22-d1w2ky89.mjs +6 -0
- package/dist/chunks/cli-1.1.22-d7cmcmfd.mjs +2 -0
- package/dist/chunks/cli-1.1.22-d990gcrg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-d9y8qqg3.mjs +2 -0
- package/dist/chunks/cli-1.1.22-ddq8axpw.mjs +12 -0
- package/dist/chunks/cli-1.1.22-df129qms.mjs +5 -0
- package/dist/chunks/cli-1.1.22-df9q1a85.mjs +2 -0
- package/dist/chunks/cli-1.1.22-djkeg65n.mjs +2 -0
- package/dist/chunks/cli-1.1.22-dpqknw7z.mjs +2 -0
- package/dist/chunks/cli-1.1.22-e25bz2ew.mjs +9 -0
- package/dist/chunks/cli-1.1.22-e5sxpgah.mjs +2 -0
- package/dist/chunks/cli-1.1.22-e5wx36qr.mjs +2 -0
- package/dist/chunks/cli-1.1.22-eagkxr30.mjs +9 -0
- package/dist/chunks/cli-1.1.22-eddrkydn.mjs +2 -0
- package/dist/chunks/cli-1.1.22-emmr10wb.mjs +21 -0
- package/dist/chunks/cli-1.1.22-eqtbpc0r.mjs +2 -0
- package/dist/chunks/cli-1.1.22-erbhk4p7.mjs +4 -0
- package/dist/chunks/cli-1.1.22-f0wja05z.mjs +2 -0
- package/dist/chunks/cli-1.1.22-f9ntxarz.mjs +2 -0
- package/dist/chunks/cli-1.1.22-fetzhxhh.mjs +2 -0
- package/dist/chunks/cli-1.1.22-fwhfqwwn.mjs +2 -0
- package/dist/chunks/cli-1.1.22-gkryz2d0.mjs +2 -0
- package/dist/chunks/cli-1.1.22-gpt102mm.mjs +2 -0
- package/dist/chunks/cli-1.1.22-grjw9tnm.mjs +2 -0
- package/dist/chunks/cli-1.1.22-gwhdvfge.mjs +24 -0
- package/dist/chunks/cli-1.1.22-gyhxg2db.mjs +2 -0
- package/dist/chunks/cli-1.1.22-h3m1whqm.mjs +6 -0
- package/dist/chunks/cli-1.1.22-hgwxyksg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-hhmq1rbn.mjs +2 -0
- package/dist/chunks/cli-1.1.22-hjxaqntc.mjs +45 -0
- package/dist/chunks/cli-1.1.22-hqbf8xt0.mjs +3 -0
- package/dist/chunks/cli-1.1.22-hv3m9qnv.mjs +2 -0
- package/dist/chunks/cli-1.1.22-j6xg80k8.mjs +2 -0
- package/dist/chunks/cli-1.1.22-j7qc1g0f.mjs +2 -0
- package/dist/chunks/cli-1.1.22-jdz4rqbp.mjs +2 -0
- package/dist/chunks/cli-1.1.22-jech3kdr.mjs +2 -0
- package/dist/chunks/cli-1.1.22-jrhx2z2p.mjs +2 -0
- package/dist/chunks/cli-1.1.22-jvrjpdd1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-jz426kr2.mjs +66 -0
- package/dist/chunks/cli-1.1.22-jzvqt2pv.mjs +2 -0
- package/dist/chunks/cli-1.1.22-k3xv38bj.mjs +2 -0
- package/dist/chunks/cli-1.1.22-kphdet4j.mjs +58 -0
- package/dist/chunks/cli-1.1.22-m41t95z0.mjs +2 -0
- package/dist/chunks/cli-1.1.22-mdapyzp3.mjs +6 -0
- package/dist/chunks/cli-1.1.22-mdttpxs6.mjs +24 -0
- package/dist/chunks/cli-1.1.22-mw0jpevk.mjs +2 -0
- package/dist/chunks/cli-1.1.22-mxqz88pc.mjs +2 -0
- package/dist/chunks/cli-1.1.22-n0px7a23.mjs +3 -0
- package/dist/chunks/cli-1.1.22-n2jecp35.mjs +2 -0
- package/dist/chunks/cli-1.1.22-nstgtysk.mjs +2 -0
- package/dist/chunks/cli-1.1.22-nsydz2bd.mjs +2 -0
- package/dist/chunks/cli-1.1.22-nxv6yayj.mjs +2 -0
- package/dist/chunks/cli-1.1.22-pgrcj1gs.mjs +12 -0
- package/dist/chunks/cli-1.1.22-q622p3vr.mjs +16 -0
- package/dist/chunks/cli-1.1.22-q76mjgec.mjs +2 -0
- package/dist/chunks/cli-1.1.22-qmk7mm5m.mjs +2 -0
- package/dist/chunks/cli-1.1.22-qq7q7v3n.mjs +2 -0
- package/dist/chunks/cli-1.1.22-qzc4h0w2.mjs +2 -0
- package/dist/chunks/cli-1.1.22-r0v2mak7.mjs +2 -0
- package/dist/chunks/cli-1.1.22-r7dnq81v.mjs +2 -0
- package/dist/chunks/cli-1.1.22-r9n3fz01.mjs +2 -0
- package/dist/chunks/cli-1.1.22-rd5zdpvh.mjs +2 -0
- package/dist/chunks/cli-1.1.22-rma08k7m.mjs +3 -0
- package/dist/chunks/cli-1.1.22-rsp3340r.mjs +2 -0
- package/dist/chunks/cli-1.1.22-rtn7nhkb.mjs +1 -0
- package/dist/chunks/cli-1.1.22-s2n02sky.mjs +2 -0
- package/dist/chunks/cli-1.1.22-s5qhs3ds.mjs +2 -0
- package/dist/chunks/cli-1.1.22-s6e60cqc.mjs +2 -0
- package/dist/chunks/cli-1.1.22-sema6yh6.mjs +2 -0
- package/dist/chunks/cli-1.1.22-skpsy2jm.mjs +17 -0
- package/dist/chunks/cli-1.1.22-ss970cxc.mjs +2 -0
- package/dist/chunks/cli-1.1.22-swvmx131.mjs +2 -0
- package/dist/chunks/cli-1.1.22-sy41x518.mjs +2 -0
- package/dist/chunks/cli-1.1.22-tag23y0b.mjs +25 -0
- package/dist/chunks/cli-1.1.22-tkg7zwpn.mjs +20 -0
- package/dist/chunks/cli-1.1.22-tt24grn6.mjs +2 -0
- package/dist/chunks/cli-1.1.22-v260dy3k.mjs +2 -0
- package/dist/chunks/cli-1.1.22-v2q2pts1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-v8pzx6jk.mjs +2 -0
- package/dist/chunks/cli-1.1.22-vdsszncw.mjs +2 -0
- package/dist/chunks/cli-1.1.22-vesjdg08.mjs +2 -0
- package/dist/chunks/cli-1.1.22-vnmyjmjg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-vp1eed3p.mjs +7 -0
- package/dist/chunks/cli-1.1.22-vwdxbs23.mjs +2 -0
- package/dist/chunks/cli-1.1.22-vwv40zm1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-waqb850v.mjs +15 -0
- package/dist/chunks/cli-1.1.22-wbpdne8j.mjs +2 -0
- package/dist/chunks/cli-1.1.22-xm1rhe1d.mjs +2 -0
- package/dist/chunks/cli-1.1.22-xmb0wn88.mjs +42 -0
- package/dist/chunks/cli-1.1.22-xmy1w9q2.mjs +2 -0
- package/dist/chunks/cli-1.1.22-xpvyrpxz.mjs +7 -0
- package/dist/chunks/cli-1.1.22-xxwfawkh.mjs +2 -0
- package/dist/chunks/cli-1.1.22-xygngqfs.mjs +2 -0
- package/dist/chunks/cli-1.1.22-xzrnmekb.mjs +3 -0
- package/dist/chunks/cli-1.1.22-y0t8rezv.mjs +2 -0
- package/dist/chunks/cli-1.1.22-y3te45vg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-y4rj8ced.mjs +2 -0
- package/dist/chunks/cli-1.1.22-ya408d88.mjs +4 -0
- package/dist/chunks/cli-1.1.22-yegp0d0j.mjs +6 -0
- package/dist/chunks/cli-1.1.22-yhgxca73.mjs +2 -0
- package/dist/chunks/cli-1.1.22-yjv63n10.mjs +2 -0
- package/dist/chunks/cli-1.1.22-yqbnqsen.mjs +3 -0
- package/dist/chunks/cli-1.1.22-yr5y8074.mjs +4 -0
- package/dist/chunks/cli-1.1.22-yy4d5xbz.mjs +2 -0
- package/dist/chunks/cli-1.1.22-yzk40k6c.mjs +2 -0
- package/dist/chunks/cli-1.1.22-z5g00tpb.mjs +25 -0
- package/dist/chunks/cli-1.1.22-zcrvxkff.mjs +15 -0
- package/dist/chunks/cli-1.1.22-zfg31zpg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-zmt5pksy.mjs +5426 -0
- package/dist/chunks/cli-1.1.22-znq4fk8a.mjs +2 -0
- package/dist/chunks/cli-1.1.22-zsc0cmye.mjs +2 -0
- package/dist/chunks/client-1.1.22-wq8vw6a1.mjs +1 -0
- package/dist/chunks/color-1.1.22-qk5z13ac.mjs +1 -0
- package/dist/chunks/compact-1.1.22-rb84pjhg.mjs +3 -0
- package/dist/chunks/config-1.1.22-0p9ep18d.mjs +1 -0
- package/dist/chunks/config-1.1.22-5mngav76.mjs +1 -0
- package/dist/chunks/constants-1.1.22-kjrh13hv.mjs +1 -0
- package/dist/chunks/context-1.1.22-dw2er614.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.22-znhpxryw.mjs +1 -0
- package/dist/chunks/conversation-1.1.22-awv74gk2.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.22-m6ccr26v.mjs +1 -0
- package/dist/chunks/copy-1.1.22-7b5mhaaj.mjs +9 -0
- package/dist/chunks/cost-1.1.22-dt2gz43e.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.22-a42r8ywe.mjs +1 -0
- package/dist/chunks/createSession-1.1.22-ddd5ddkv.mjs +1 -0
- package/dist/chunks/debug-1.1.22-qraa5by9.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.22-ctnqgj01.mjs +1534 -0
- package/dist/chunks/desktop-1.1.22-wg1hxyyk.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.22-pn2g27hr.mjs +1 -0
- package/dist/chunks/detection-1.1.22-s8r50ft4.mjs +1 -0
- package/dist/chunks/diff-1.1.22-6sdsv83f.mjs +1 -0
- package/dist/chunks/doctor-1.1.22-cj56pasy.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.22-ezjhg329.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.22-k4tqtjbb.mjs +1 -0
- package/dist/chunks/effort-1.1.22-eztddah9.mjs +13 -0
- package/dist/chunks/engine-1.1.22-6wrga0yh.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.22-9jm3xgge.mjs +1 -0
- package/dist/chunks/envUtils-1.1.22-7qb9fr3c.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.22-4xy91rp5.mjs +1 -0
- package/dist/chunks/environments-1.1.22-ke6dvmrb.mjs +1 -0
- package/dist/chunks/errors-1.1.22-rgsmtg01.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.22-xv4kj009.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.22-m7ndjwpq.mjs +1 -0
- package/dist/chunks/exit-1.1.22-m0bm4f9d.mjs +1 -0
- package/dist/chunks/explorer-1.1.22-jsrgxmw0.mjs +1 -0
- package/dist/chunks/export-1.1.22-s0m4af77.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.22-9sdr6tyh.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.22-9k857j7m.mjs +1 -0
- package/dist/chunks/fast-1.1.22-3w3eg6gc.mjs +1 -0
- package/dist/chunks/feedback-1.1.22-7jr2gbzj.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.22-08zb6ajr.mjs +1 -0
- package/dist/chunks/git-1.1.22-m66s3f9x.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.22-2r1deqm3.mjs +1 -0
- package/dist/chunks/goal-1.1.22-60jn1knb.mjs +4 -0
- package/dist/chunks/growthbook-1.1.22-jnddje2q.mjs +1 -0
- package/dist/chunks/headless-1.1.22-jc8xk2dj.mjs +2 -0
- package/dist/chunks/heapdump-1.1.22-h87tv4ay.mjs +6 -0
- package/dist/chunks/help-1.1.22-hkgcwycs.mjs +1 -0
- package/dist/chunks/hookChains-1.1.22-hjjsdtfz.mjs +3 -0
- package/dist/chunks/hooks-1.1.22-d51y91pz.mjs +79 -0
- package/dist/chunks/hooks-1.1.22-knpyhzjq.mjs +1 -0
- package/dist/chunks/ide-1.1.22-0tqwa732.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.22-6qd4v6hf.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.22-gvb5zry4.mjs +1 -0
- package/dist/chunks/index-1.1.22-19x2126b.mjs +30 -0
- package/dist/chunks/index-1.1.22-28fcrc19.mjs +9 -0
- package/dist/chunks/index-1.1.22-2ea02rg7.mjs +1 -0
- package/dist/chunks/index-1.1.22-2rc4s1ea.mjs +1 -0
- package/dist/chunks/index-1.1.22-33ka1vh2.mjs +1 -0
- package/dist/chunks/index-1.1.22-3sbe52mk.mjs +1 -0
- package/dist/chunks/index-1.1.22-3ze6s7jh.mjs +1 -0
- package/dist/chunks/index-1.1.22-45fydkr4.mjs +1 -0
- package/dist/chunks/index-1.1.22-4jyb49wh.mjs +5 -0
- package/dist/chunks/index-1.1.22-53bbsdht.mjs +23 -0
- package/dist/chunks/index-1.1.22-6dbeceeq.mjs +1 -0
- package/dist/chunks/index-1.1.22-8dntbh7a.mjs +1 -0
- package/dist/chunks/index-1.1.22-8kjk15ba.mjs +1 -0
- package/dist/chunks/index-1.1.22-an0gp01d.mjs +1 -0
- package/dist/chunks/index-1.1.22-cnbxnqdc.mjs +1 -0
- package/dist/chunks/index-1.1.22-fpsntg6z.mjs +1 -0
- package/dist/chunks/index-1.1.22-fv3cwfqb.mjs +1 -0
- package/dist/chunks/index-1.1.22-hjp106ay.mjs +1 -0
- package/dist/chunks/index-1.1.22-njczpq0j.mjs +9 -0
- package/dist/chunks/index-1.1.22-zeprwv8d.mjs +2 -0
- package/dist/chunks/index-1.1.22-zmmyfbe7.mjs +1 -0
- package/dist/chunks/index-1.1.22-zssja3p2.mjs +2 -0
- package/dist/chunks/index-1.1.22-zw38mh26.mjs +1 -0
- package/dist/chunks/init-1.1.22-xnq27h0g.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.22-y1d60qz3.mjs +1 -0
- package/dist/chunks/ink-1.1.22-k48q879m.mjs +1 -0
- package/dist/chunks/insights-1.1.22-a1cvbm3p.mjs +870 -0
- package/dist/chunks/install-1.1.22-jbzmqsdp.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.22-8a3hpgxj.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.22-rt6z32mx.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.22-z450bn0g.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.22-6ks3mty3.mjs +1 -0
- package/dist/chunks/keybindings-1.1.22-g9y42jd0.mjs +2 -0
- package/dist/chunks/knowledge-1.1.22-9pnvwgtc.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.22-qt6jab06.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.22-sq4k9pva.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.22-vshz13qp.mjs +1 -0
- package/dist/chunks/log-1.1.22-e7ksty3v.mjs +1 -0
- package/dist/chunks/main-1.1.22-6td1g6n1.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.22-htj06t2x.mjs +1 -0
- package/dist/chunks/mcp-1.1.22-18h7drd2.mjs +17 -0
- package/dist/chunks/mcp-1.1.22-ezfae103.mjs +1 -0
- package/dist/chunks/mcp-1.1.22-s120rv95.mjs +4 -0
- package/dist/chunks/mcpb-1.1.22-vm6h475e.mjs +1 -0
- package/dist/chunks/memory-1.1.22-e0tx5g0m.mjs +72 -0
- package/dist/chunks/model-1.1.22-jpnba4j9.mjs +2 -0
- package/dist/chunks/model-1.1.22-ptaehfsq.mjs +1 -0
- package/dist/chunks/node-1.1.22-n2j0h224.mjs +14 -0
- package/dist/chunks/oauth-1.1.22-xryjmqvy.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.22-5g2mvrb0.mjs +14 -0
- package/dist/chunks/output-style-1.1.22-15avrxe6.mjs +1 -0
- package/dist/chunks/package-ZOVFJE7Z-1.1.22-74v22202.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.22-th9g7k2v.mjs +1 -0
- package/dist/chunks/parser-1.1.22-f76s0696.mjs +1 -0
- package/dist/chunks/passes-1.1.22-5067sbnv.mjs +1 -0
- package/dist/chunks/permissions-1.1.22-jq3s11rr.mjs +3 -0
- package/dist/chunks/permissions-1.1.22-yjbnyvja.mjs +1 -0
- package/dist/chunks/plan-1.1.22-a0v77tas.mjs +1 -0
- package/dist/chunks/plist-1.1.22-stjt7ne7.mjs +1 -0
- package/dist/chunks/plugin-1.1.22-ccc18w6d.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.22-6w6xqk0q.mjs +1 -0
- package/dist/chunks/plugins-1.1.22-14tg96p5.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.22-w8y973hr.mjs +2 -0
- package/dist/chunks/print-1.1.22-fj5my0gp.mjs +57 -0
- package/dist/chunks/process-1.1.22-5ehjyzp9.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.22-rfx8p83z.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.22-zz4rg3b9.mjs +9 -0
- package/dist/chunks/prompt-1.1.22-1k2zk0wc.mjs +1 -0
- package/dist/chunks/prompt-1.1.22-dnwycjh5.mjs +1 -0
- package/dist/chunks/prompts-1.1.22-4p4a5se6.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.22-cs8w65fv.mjs +13 -0
- package/dist/chunks/provider-1.1.22-bn5s7tah.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.22-pymtgbvs.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.22-c7c5hbxa.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.22-w2qffppm.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.22-ab4qb34w.mjs +26 -0
- package/dist/chunks/registry-1.1.22-nsm8d8eb.mjs +1 -0
- package/dist/chunks/release-notes-1.1.22-8x23myzn.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.22-ak7jhwx7.mjs +2 -0
- package/dist/chunks/remote-env-1.1.22-x7trmcqx.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.22-hbz0g8ya.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.22-f6jb57v7.mjs +1 -0
- package/dist/chunks/rename-1.1.22-xe35q0k0.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.22-fhwjkdxg.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.22-vv0a8mm6.mjs +1 -0
- package/dist/chunks/resume-1.1.22-2sa8hbck.mjs +2 -0
- package/dist/chunks/rewind-1.1.22-9p74phfv.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.22-d6srkssk.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.22-g8m5b1gg.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.22-xfg2fsw2.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.22-dtc44mq5.mjs +1 -0
- package/dist/chunks/session-1.1.22-3tjyetra.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.22-33mn13e8.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.22-d3bejz9v.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.22-j74sh7m1.mjs +1 -0
- package/dist/chunks/settings-1.1.22-nkarfvpa.mjs +1 -0
- package/dist/chunks/setup-1.1.22-qcehqed4.mjs +12 -0
- package/dist/chunks/sinks-1.1.22-cq9rny33.mjs +1 -0
- package/dist/chunks/skills-1.1.22-ekjpttza.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.22-9fngk9y1.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.22-d1k95rad.mjs +1 -0
- package/dist/chunks/state-1.1.22-jwyx08g8.mjs +1 -0
- package/dist/chunks/stats-1.1.22-gbms572d.mjs +6 -0
- package/dist/chunks/status-1.1.22-k6tz1204.mjs +1 -0
- package/dist/chunks/stickers-1.1.22-0p5wcv91.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.22-8nw03e6a.mjs +1 -0
- package/dist/chunks/tasks-1.1.22-j3tvhmzv.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.22-9h9wz2vt.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.22-az279j20.mjs +1 -0
- package/dist/chunks/teleport-1.1.22-x65tzb7k.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.22-mgtn4k1h.mjs +1 -0
- package/dist/chunks/theme-1.1.22-ytcpmqf6.mjs +1 -0
- package/dist/chunks/thinkback-1.1.22-r3tqf574.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.22-gy5pmk8r.mjs +1 -0
- package/dist/chunks/toolPool-1.1.22-enzkj5fj.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.22-nks2rxm6.mjs +1 -0
- package/dist/chunks/tools-1.1.22-vngj7bpe.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.22-521tzk05.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.22-thexftmp.mjs +69 -0
- package/dist/chunks/types-1.1.22-jp8m10f1.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.22-tjrn8agz.mjs +4 -0
- package/dist/chunks/update-1.1.22-n10ztshv.mjs +72 -0
- package/dist/chunks/upgrade-1.1.22-e0pjbtcd.mjs +1 -0
- package/dist/chunks/upload-1.1.22-e00jdttg.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.22-1qmxkbg7.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.22-jj7mv0bn.mjs +1 -0
- package/dist/chunks/usage-1.1.22-s54ykz8x.mjs +1 -0
- package/dist/chunks/util-1.1.22-wntx1394.mjs +1 -0
- package/dist/chunks/utils-1.1.22-wmew7b5j.mjs +1 -0
- package/dist/chunks/vim-1.1.22-qddsv4he.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.22-1z60qm0a.mjs +13 -0
- package/dist/chunks/watcher-1.1.22-100q2zbm.mjs +1 -0
- package/dist/chunks/wiki-1.1.22-akk70ycq.mjs +132 -0
- package/dist/chunks/workflows-1.1.22-ed33rwny.mjs +1 -0
- package/dist/chunks/worktree-1.1.22-f3b1rr0f.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.22-taeyewr8.mjs +1 -0
- package/dist/chunks/wrapper-1.1.22-hayqq9zr.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.20-gy68hszg.mjs +0 -1
- package/dist/chunks/App-1.1.20-10ggpxf4.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.20-6y0zcy4y.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.20-yebtqpwm.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.20-4t2txe84.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.20-6w697wvx.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.20-c3kyqfq3.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.20-87nay89d.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.20-wcg0gh1k.mjs +0 -6
- package/dist/chunks/Doctor-1.1.20-gq08p6c4.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.20-njwmt292.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.20-86szt9a8.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.20-yw03wzhm.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.20-b8bpx0av.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.20-xc1ete3w.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.20-ytp8f67t.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.20-qvj570ty.mjs +0 -1
- package/dist/chunks/REPL-1.1.20-1wqc3hyp.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.20-78gpsm6z.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.20-qzvapr16.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.20-tjphzty6.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.20-d63k8snr.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.20-k1pa6f9a.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.20-8mc5wrxb.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.20-xkwtgqwd.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.20-7p5t0a25.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.20-n88f7vxe.mjs +0 -1
- package/dist/chunks/add-dir-1.1.20-mkjy6mne.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.20-mf4dz2fp.mjs +0 -1
- package/dist/chunks/agents-1.1.20-eb13erze.mjs +0 -110
- package/dist/chunks/agents-1.1.20-ps3c6vj2.mjs +0 -3
- package/dist/chunks/api-1.1.20-11grpy2c.mjs +0 -1
- package/dist/chunks/asciicast-1.1.20-bqm28655.mjs +0 -1
- package/dist/chunks/assistant-1.1.20-xny4y49f.mjs +0 -1
- package/dist/chunks/auth-1.1.20-kyscffqe.mjs +0 -1
- package/dist/chunks/auth-1.1.20-ygabh4dg.mjs +0 -1
- package/dist/chunks/autoMode-1.1.20-6ehbhthd.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.20-skjmdzhq.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.20-n7vch4bv.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.20-a3snmx4e.mjs +0 -1
- package/dist/chunks/branch-1.1.20-849br2fw.mjs +0 -4
- package/dist/chunks/bridge-1.1.20-ec0z61jb.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.20-wks1jhmc.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.20-1nza3j0t.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.20-6dks41qc.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.20-tecp8fmk.mjs +0 -1
- package/dist/chunks/btw-1.1.20-mdw6bncw.mjs +0 -1
- package/dist/chunks/buddy-1.1.20-cmmgv2nf.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.20-62xx6y5w.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.20-j7kbrtbn.mjs +0 -4
- package/dist/chunks/caches-1.1.20-ykvsw24v.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.20-dhcfye38.mjs +0 -1
- package/dist/chunks/claudemd-1.1.20-0km3pc8d.mjs +0 -1
- package/dist/chunks/clear-1.1.20-rkzhan9n.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.20-h9nb94gb.mjs +0 -1
- package/dist/chunks/cli-1.1.20-003ssrqs.mjs +0 -2
- package/dist/chunks/cli-1.1.20-08kdg42c.mjs +0 -2
- package/dist/chunks/cli-1.1.20-0a8jwwrh.mjs +0 -2
- package/dist/chunks/cli-1.1.20-0cxx0azc.mjs +0 -2
- package/dist/chunks/cli-1.1.20-0hr449k2.mjs +0 -6
- package/dist/chunks/cli-1.1.20-0yjr70td.mjs +0 -2
- package/dist/chunks/cli-1.1.20-11yx2x29.mjs +0 -2
- package/dist/chunks/cli-1.1.20-14z9f90d.mjs +0 -4
- package/dist/chunks/cli-1.1.20-16js342k.mjs +0 -3
- package/dist/chunks/cli-1.1.20-1804zgnt.mjs +0 -2
- package/dist/chunks/cli-1.1.20-1axwpgex.mjs +0 -3
- package/dist/chunks/cli-1.1.20-1jzypzba.mjs +0 -2
- package/dist/chunks/cli-1.1.20-2189wy4p.mjs +0 -2
- package/dist/chunks/cli-1.1.20-25hfpkfc.mjs +0 -34
- package/dist/chunks/cli-1.1.20-28njwehy.mjs +0 -2
- package/dist/chunks/cli-1.1.20-2c8v6etd.mjs +0 -2
- package/dist/chunks/cli-1.1.20-2c9529sa.mjs +0 -4
- package/dist/chunks/cli-1.1.20-2epx2qhj.mjs +0 -4
- package/dist/chunks/cli-1.1.20-2kmxyr07.mjs +0 -2
- package/dist/chunks/cli-1.1.20-2tzzh4zx.mjs +0 -3
- package/dist/chunks/cli-1.1.20-2xfbht26.mjs +0 -2
- package/dist/chunks/cli-1.1.20-3awkxvmy.mjs +0 -2
- package/dist/chunks/cli-1.1.20-3d1z8rpz.mjs +0 -58
- package/dist/chunks/cli-1.1.20-3xgnb054.mjs +0 -2
- package/dist/chunks/cli-1.1.20-3xt27qam.mjs +0 -2
- package/dist/chunks/cli-1.1.20-3ya9b3gp.mjs +0 -2
- package/dist/chunks/cli-1.1.20-41jpan4m.mjs +0 -2
- package/dist/chunks/cli-1.1.20-44e5kpwx.mjs +0 -8
- package/dist/chunks/cli-1.1.20-456jkny0.mjs +0 -2
- package/dist/chunks/cli-1.1.20-45ymf6ss.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4dnyt1jx.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4fckza8j.mjs +0 -133
- package/dist/chunks/cli-1.1.20-4ns5w1w9.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4rera9rk.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4rzj958h.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4t5sspt7.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4wm04f49.mjs +0 -2
- package/dist/chunks/cli-1.1.20-50162v14.mjs +0 -2
- package/dist/chunks/cli-1.1.20-62a99cp9.mjs +0 -2
- package/dist/chunks/cli-1.1.20-6ev0yp0d.mjs +0 -6
- package/dist/chunks/cli-1.1.20-6jbvby2b.mjs +0 -20
- package/dist/chunks/cli-1.1.20-6xmv43xj.mjs +0 -3
- package/dist/chunks/cli-1.1.20-6yk3v95f.mjs +0 -39
- package/dist/chunks/cli-1.1.20-70wc36rc.mjs +0 -2
- package/dist/chunks/cli-1.1.20-751bmsqk.mjs +0 -2
- package/dist/chunks/cli-1.1.20-7732c5qg.mjs +0 -2
- package/dist/chunks/cli-1.1.20-7c1w166r.mjs +0 -2
- package/dist/chunks/cli-1.1.20-7rxmh5n8.mjs +0 -3
- package/dist/chunks/cli-1.1.20-7v6hhn2t.mjs +0 -2
- package/dist/chunks/cli-1.1.20-80v7e5s8.mjs +0 -2
- package/dist/chunks/cli-1.1.20-83btfm1z.mjs +0 -2
- package/dist/chunks/cli-1.1.20-83vhyp8j.mjs +0 -2
- package/dist/chunks/cli-1.1.20-8kjhy0wv.mjs +0 -2
- package/dist/chunks/cli-1.1.20-8s1w9hdq.mjs +0 -2
- package/dist/chunks/cli-1.1.20-93dztzcq.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9c4avkb0.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9g552760.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9h5643kr.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9nj6n1xg.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9p9rns5w.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9sv4xcek.mjs +0 -2
- package/dist/chunks/cli-1.1.20-a9fgbqdg.mjs +0 -2
- package/dist/chunks/cli-1.1.20-admbe52d.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ahqsg433.mjs +0 -2
- package/dist/chunks/cli-1.1.20-atv9jh9v.mjs +0 -2
- package/dist/chunks/cli-1.1.20-azb7xdf4.mjs +0 -2
- package/dist/chunks/cli-1.1.20-b09qhwrn.mjs +0 -2
- package/dist/chunks/cli-1.1.20-b0ehcdrw.mjs +0 -18
- package/dist/chunks/cli-1.1.20-bbb9fqyn.mjs +0 -2
- package/dist/chunks/cli-1.1.20-bgbsr3de.mjs +0 -3
- package/dist/chunks/cli-1.1.20-bk95x5hv.mjs +0 -25
- package/dist/chunks/cli-1.1.20-bs9520ht.mjs +0 -2
- package/dist/chunks/cli-1.1.20-c2g9cejz.mjs +0 -2
- package/dist/chunks/cli-1.1.20-cbehaby4.mjs +0 -2
- package/dist/chunks/cli-1.1.20-cfbterne.mjs +0 -2
- package/dist/chunks/cli-1.1.20-cgqjf8mh.mjs +0 -6
- package/dist/chunks/cli-1.1.20-chzjjxkj.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ckdgd8ze.mjs +0 -45
- package/dist/chunks/cli-1.1.20-csmgax19.mjs +0 -21
- package/dist/chunks/cli-1.1.20-d3ep1y0e.mjs +0 -3
- package/dist/chunks/cli-1.1.20-d5yrsevx.mjs +0 -2
- package/dist/chunks/cli-1.1.20-d6ghx4vg.mjs +0 -15
- package/dist/chunks/cli-1.1.20-d7jg0nb4.mjs +0 -24
- package/dist/chunks/cli-1.1.20-dhn7hn4q.mjs +0 -12
- package/dist/chunks/cli-1.1.20-dhqn7976.mjs +0 -2
- package/dist/chunks/cli-1.1.20-dws48g78.mjs +0 -2
- package/dist/chunks/cli-1.1.20-e49ygqc9.mjs +0 -2
- package/dist/chunks/cli-1.1.20-edmcts0d.mjs +0 -15
- package/dist/chunks/cli-1.1.20-ef6rjnnr.mjs +0 -2
- package/dist/chunks/cli-1.1.20-emfhskxb.mjs +0 -7
- package/dist/chunks/cli-1.1.20-emjnkdmv.mjs +0 -1
- package/dist/chunks/cli-1.1.20-eza9aynd.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ezsprsc5.mjs +0 -2
- package/dist/chunks/cli-1.1.20-f55khzsq.mjs +0 -25
- package/dist/chunks/cli-1.1.20-far01hg1.mjs +0 -42
- package/dist/chunks/cli-1.1.20-ffffyhx3.mjs +0 -3
- package/dist/chunks/cli-1.1.20-fwfjvfmd.mjs +0 -12
- package/dist/chunks/cli-1.1.20-g0w1ksxt.mjs +0 -2
- package/dist/chunks/cli-1.1.20-g41hgcbn.mjs +0 -2
- package/dist/chunks/cli-1.1.20-g68fwrp1.mjs +0 -2
- package/dist/chunks/cli-1.1.20-gd4g9gr0.mjs +0 -3
- package/dist/chunks/cli-1.1.20-geey2q0s.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ghdeh455.mjs +0 -2
- package/dist/chunks/cli-1.1.20-gkc4ptt0.mjs +0 -6
- package/dist/chunks/cli-1.1.20-gmw9jarz.mjs +0 -2
- package/dist/chunks/cli-1.1.20-gtk0ea9e.mjs +0 -2
- package/dist/chunks/cli-1.1.20-h5qtp5v0.mjs +0 -4
- package/dist/chunks/cli-1.1.20-hnvxzngf.mjs +0 -24
- package/dist/chunks/cli-1.1.20-hrw31bb0.mjs +0 -206
- package/dist/chunks/cli-1.1.20-hw1raza2.mjs +0 -2
- package/dist/chunks/cli-1.1.20-j1r8r4kb.mjs +0 -2
- package/dist/chunks/cli-1.1.20-j4a7q58c.mjs +0 -2
- package/dist/chunks/cli-1.1.20-jerx0cvb.mjs +0 -9
- package/dist/chunks/cli-1.1.20-jm6p2cdx.mjs +0 -2
- package/dist/chunks/cli-1.1.20-jsasy45b.mjs +0 -2
- package/dist/chunks/cli-1.1.20-jwgjrhwv.mjs +0 -17
- package/dist/chunks/cli-1.1.20-jy9v0t3f.mjs +0 -5
- package/dist/chunks/cli-1.1.20-k31p3ab5.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ka6crh5z.mjs +0 -2
- package/dist/chunks/cli-1.1.20-kbw4j273.mjs +0 -3
- package/dist/chunks/cli-1.1.20-kdcqs5pc.mjs +0 -2
- package/dist/chunks/cli-1.1.20-keawhead.mjs +0 -5
- package/dist/chunks/cli-1.1.20-kmjn4pys.mjs +0 -2
- package/dist/chunks/cli-1.1.20-kqncmabm.mjs +0 -4
- package/dist/chunks/cli-1.1.20-m1j9gb5j.mjs +0 -2
- package/dist/chunks/cli-1.1.20-m1rmtfx0.mjs +0 -2
- package/dist/chunks/cli-1.1.20-m90d7k90.mjs +0 -133
- package/dist/chunks/cli-1.1.20-m9x20s8d.mjs +0 -2
- package/dist/chunks/cli-1.1.20-mg71dz16.mjs +0 -2
- package/dist/chunks/cli-1.1.20-mmvz3csm.mjs +0 -2
- package/dist/chunks/cli-1.1.20-mtdrx7xp.mjs +0 -2
- package/dist/chunks/cli-1.1.20-n0e2f4pd.mjs +0 -2
- package/dist/chunks/cli-1.1.20-n23sb1sw.mjs +0 -2
- package/dist/chunks/cli-1.1.20-n9ja4mee.mjs +0 -66
- package/dist/chunks/cli-1.1.20-nbpvejz7.mjs +0 -2
- package/dist/chunks/cli-1.1.20-nk2jvm1z.mjs +0 -2
- package/dist/chunks/cli-1.1.20-nkrcdd4b.mjs +0 -2
- package/dist/chunks/cli-1.1.20-nmnzdvrw.mjs +0 -2
- package/dist/chunks/cli-1.1.20-nqwt6n3q.mjs +0 -2
- package/dist/chunks/cli-1.1.20-p0jj07wv.mjs +0 -2
- package/dist/chunks/cli-1.1.20-pfqkbt31.mjs +0 -2
- package/dist/chunks/cli-1.1.20-pg7cfgsa.mjs +0 -2
- package/dist/chunks/cli-1.1.20-psbfz74f.mjs +0 -2
- package/dist/chunks/cli-1.1.20-py0s55wt.mjs +0 -2
- package/dist/chunks/cli-1.1.20-q4bfnf9w.mjs +0 -2
- package/dist/chunks/cli-1.1.20-qbmhpfn5.mjs +0 -15
- package/dist/chunks/cli-1.1.20-qkdde9ck.mjs +0 -2
- package/dist/chunks/cli-1.1.20-r4xfymtx.mjs +0 -60
- package/dist/chunks/cli-1.1.20-r55gwcq5.mjs +0 -2
- package/dist/chunks/cli-1.1.20-r7y2pq10.mjs +0 -2
- package/dist/chunks/cli-1.1.20-rdjbzkh4.mjs +0 -2
- package/dist/chunks/cli-1.1.20-rmvq7swt.mjs +0 -2
- package/dist/chunks/cli-1.1.20-rsrj8q6n.mjs +0 -3
- package/dist/chunks/cli-1.1.20-rvch3wwj.mjs +0 -2
- package/dist/chunks/cli-1.1.20-rvn2axad.mjs +0 -16
- package/dist/chunks/cli-1.1.20-ry7grtff.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ryb6r2jj.mjs +0 -2
- package/dist/chunks/cli-1.1.20-se0125ky.mjs +0 -2
- package/dist/chunks/cli-1.1.20-snwfck2n.mjs +0 -2
- package/dist/chunks/cli-1.1.20-swewj6d5.mjs +0 -2
- package/dist/chunks/cli-1.1.20-sx7811qs.mjs +0 -5419
- package/dist/chunks/cli-1.1.20-sykpdv9k.mjs +0 -4
- package/dist/chunks/cli-1.1.20-t4zen7fz.mjs +0 -2
- package/dist/chunks/cli-1.1.20-t9y64aq1.mjs +0 -2
- package/dist/chunks/cli-1.1.20-tbtnrzgn.mjs +0 -6
- package/dist/chunks/cli-1.1.20-tgpt56rj.mjs +0 -2
- package/dist/chunks/cli-1.1.20-thtv1xqb.mjs +0 -2
- package/dist/chunks/cli-1.1.20-twysxm6j.mjs +0 -2
- package/dist/chunks/cli-1.1.20-txm7z2xq.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ty0gqe2q.mjs +0 -2
- package/dist/chunks/cli-1.1.20-v6kdm8qp.mjs +0 -2
- package/dist/chunks/cli-1.1.20-vf1ea98p.mjs +0 -2
- package/dist/chunks/cli-1.1.20-vxrv3y7w.mjs +0 -9
- package/dist/chunks/cli-1.1.20-w24tmpq4.mjs +0 -7
- package/dist/chunks/cli-1.1.20-w6gv2drs.mjs +0 -2
- package/dist/chunks/cli-1.1.20-wadq5w8t.mjs +0 -2
- package/dist/chunks/cli-1.1.20-we3ekctq.mjs +0 -2
- package/dist/chunks/cli-1.1.20-wn9t9syd.mjs +0 -2
- package/dist/chunks/cli-1.1.20-wr994817.mjs +0 -18
- package/dist/chunks/cli-1.1.20-wrat5rtg.mjs +0 -2
- package/dist/chunks/cli-1.1.20-wszdp4dg.mjs +0 -3
- package/dist/chunks/cli-1.1.20-wt0ygwrd.mjs +0 -6
- package/dist/chunks/cli-1.1.20-wtxwvcad.mjs +0 -4
- package/dist/chunks/cli-1.1.20-wx90y3jb.mjs +0 -24
- package/dist/chunks/cli-1.1.20-wxxphhy4.mjs +0 -2
- package/dist/chunks/cli-1.1.20-wz4h58mp.mjs +0 -2
- package/dist/chunks/cli-1.1.20-x2y5vr9b.mjs +0 -3
- package/dist/chunks/cli-1.1.20-x3cdhjtp.mjs +0 -24
- package/dist/chunks/cli-1.1.20-x3sn0d4f.mjs +0 -2
- package/dist/chunks/cli-1.1.20-x4ezs1pz.mjs +0 -2
- package/dist/chunks/cli-1.1.20-xk4edb6r.mjs +0 -3
- package/dist/chunks/cli-1.1.20-xkatp3rd.mjs +0 -2
- package/dist/chunks/cli-1.1.20-xmkwnf9c.mjs +0 -2
- package/dist/chunks/cli-1.1.20-xvytevdy.mjs +0 -4
- package/dist/chunks/cli-1.1.20-y4b0v8se.mjs +0 -50
- package/dist/chunks/cli-1.1.20-y9jwxk0y.mjs +0 -17
- package/dist/chunks/cli-1.1.20-yh2kxsxg.mjs +0 -4
- package/dist/chunks/cli-1.1.20-yq2kjrr2.mjs +0 -2
- package/dist/chunks/cli-1.1.20-z4ndf118.mjs +0 -2
- package/dist/chunks/cli-1.1.20-zgg887a7.mjs +0 -4
- package/dist/chunks/cli-1.1.20-zhn44mv6.mjs +0 -2
- package/dist/chunks/cli-1.1.20-zvce3e9x.mjs +0 -2
- package/dist/chunks/client-1.1.20-yzk4md3m.mjs +0 -1
- package/dist/chunks/color-1.1.20-nvfrt651.mjs +0 -1
- package/dist/chunks/compact-1.1.20-t1p5wzzx.mjs +0 -3
- package/dist/chunks/config-1.1.20-f5vnf3mj.mjs +0 -1
- package/dist/chunks/config-1.1.20-fyrs9k0m.mjs +0 -1
- package/dist/chunks/constants-1.1.20-2p88w4e8.mjs +0 -1
- package/dist/chunks/context-1.1.20-q5c07f98.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.20-m97bd3hc.mjs +0 -1
- package/dist/chunks/conversation-1.1.20-2tdp5wat.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.20-6bf1fkfp.mjs +0 -1
- package/dist/chunks/copy-1.1.20-jx18zafs.mjs +0 -9
- package/dist/chunks/cost-1.1.20-cvh7ag89.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.20-yrms9nqw.mjs +0 -1
- package/dist/chunks/createSession-1.1.20-c72cffnc.mjs +0 -1
- package/dist/chunks/debug-1.1.20-2fqdvvvc.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.20-hwtzy20f.mjs +0 -1534
- package/dist/chunks/desktop-1.1.20-mgz7c45r.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.20-d5fezv23.mjs +0 -1
- package/dist/chunks/detection-1.1.20-b17bg403.mjs +0 -1
- package/dist/chunks/diff-1.1.20-rgydsj6p.mjs +0 -1
- package/dist/chunks/doctor-1.1.20-jk5ar7pz.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.20-0q5qfybh.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.20-w47zy9sy.mjs +0 -1
- package/dist/chunks/effort-1.1.20-hy8t94kh.mjs +0 -13
- package/dist/chunks/engine-1.1.20-4etdjq40.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.20-1c7pmf1x.mjs +0 -1
- package/dist/chunks/envUtils-1.1.20-8687estk.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.20-vtn95gpz.mjs +0 -1
- package/dist/chunks/environments-1.1.20-n27s3sfh.mjs +0 -1
- package/dist/chunks/errors-1.1.20-a30dbhvw.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.20-97zbp5r8.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.20-zvnsd219.mjs +0 -1
- package/dist/chunks/exit-1.1.20-g7dar7aa.mjs +0 -1
- package/dist/chunks/explorer-1.1.20-m606rm48.mjs +0 -1
- package/dist/chunks/export-1.1.20-mgwvg841.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.20-baf3f8zp.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.20-60c2b66b.mjs +0 -1
- package/dist/chunks/fast-1.1.20-0cv5rvjb.mjs +0 -1
- package/dist/chunks/feedback-1.1.20-cn6v1mdj.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.20-26b3hvex.mjs +0 -1
- package/dist/chunks/git-1.1.20-16amvfft.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.20-g1tq2ecq.mjs +0 -1
- package/dist/chunks/goal-1.1.20-k5akp14a.mjs +0 -4
- package/dist/chunks/growthbook-1.1.20-yrs6qd7c.mjs +0 -1
- package/dist/chunks/headless-1.1.20-ab6xrkks.mjs +0 -2
- package/dist/chunks/heapdump-1.1.20-7ty4e4da.mjs +0 -6
- package/dist/chunks/help-1.1.20-drmq3b45.mjs +0 -1
- package/dist/chunks/hookChains-1.1.20-9xe50nmq.mjs +0 -3
- package/dist/chunks/hooks-1.1.20-ea0rjbyd.mjs +0 -1
- package/dist/chunks/hooks-1.1.20-h3ac1ems.mjs +0 -79
- package/dist/chunks/ide-1.1.20-e5k4xqrh.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.20-yxmq33b1.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.20-2e8y4p87.mjs +0 -1
- package/dist/chunks/index-1.1.20-2gxqgc08.mjs +0 -1
- package/dist/chunks/index-1.1.20-3vkfmzw3.mjs +0 -30
- package/dist/chunks/index-1.1.20-7esm5m4s.mjs +0 -23
- package/dist/chunks/index-1.1.20-bszeeg1q.mjs +0 -1
- package/dist/chunks/index-1.1.20-cv1fhrne.mjs +0 -1
- package/dist/chunks/index-1.1.20-e27z5gwd.mjs +0 -1
- package/dist/chunks/index-1.1.20-hzw72qk9.mjs +0 -1
- package/dist/chunks/index-1.1.20-mmt768hj.mjs +0 -5
- package/dist/chunks/index-1.1.20-ms7qs4m6.mjs +0 -1
- package/dist/chunks/index-1.1.20-nkjdz68f.mjs +0 -1
- package/dist/chunks/index-1.1.20-ptjvr4qj.mjs +0 -1
- package/dist/chunks/index-1.1.20-qa9tjj42.mjs +0 -2
- package/dist/chunks/index-1.1.20-r3h0dypg.mjs +0 -1
- package/dist/chunks/index-1.1.20-rcx2fneb.mjs +0 -1
- package/dist/chunks/index-1.1.20-rdm3n4y9.mjs +0 -2
- package/dist/chunks/index-1.1.20-rm6ekqj7.mjs +0 -9
- package/dist/chunks/index-1.1.20-s7fb4knz.mjs +0 -1
- package/dist/chunks/index-1.1.20-s7x9dsyr.mjs +0 -1
- package/dist/chunks/index-1.1.20-t9j801bt.mjs +0 -9
- package/dist/chunks/index-1.1.20-vvmarmb0.mjs +0 -1
- package/dist/chunks/index-1.1.20-w3efr5jj.mjs +0 -1
- package/dist/chunks/index-1.1.20-y78x64xh.mjs +0 -1
- package/dist/chunks/index-1.1.20-z42w2g06.mjs +0 -1
- package/dist/chunks/init-1.1.20-1md8nn1q.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.20-5zfa29sw.mjs +0 -1
- package/dist/chunks/ink-1.1.20-4rp0112s.mjs +0 -1
- package/dist/chunks/insights-1.1.20-fs1yxv8w.mjs +0 -870
- package/dist/chunks/install-1.1.20-g8hq9z8r.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.20-t1etxwvv.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.20-x4r2g8jm.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.20-8axp9w08.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.20-w1c5qa1c.mjs +0 -1
- package/dist/chunks/keybindings-1.1.20-t46j6vqd.mjs +0 -2
- package/dist/chunks/knowledge-1.1.20-fay2dby4.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.20-18wdnnqq.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.20-ja86yn75.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.20-rpwz8enf.mjs +0 -1
- package/dist/chunks/log-1.1.20-jab23qgp.mjs +0 -1
- package/dist/chunks/main-1.1.20-1tszrrj3.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.20-jhwtkzzq.mjs +0 -1
- package/dist/chunks/mcp-1.1.20-b3j31d37.mjs +0 -17
- package/dist/chunks/mcp-1.1.20-ggtdpb22.mjs +0 -4
- package/dist/chunks/mcp-1.1.20-r35rcax5.mjs +0 -1
- package/dist/chunks/mcpb-1.1.20-nmxsjrst.mjs +0 -1
- package/dist/chunks/memory-1.1.20-2fbhrnrk.mjs +0 -72
- package/dist/chunks/model-1.1.20-2nstg3gs.mjs +0 -2
- package/dist/chunks/model-1.1.20-ag4na6w9.mjs +0 -1
- package/dist/chunks/node-1.1.20-7meq917d.mjs +0 -14
- package/dist/chunks/oauth-1.1.20-xkcs3s0v.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.20-1jxfjf9e.mjs +0 -14
- package/dist/chunks/output-style-1.1.20-m38djt42.mjs +0 -1
- package/dist/chunks/package-ZOVFJE7Z-1.1.20-83n7wkxr.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.20-372zdrpd.mjs +0 -1
- package/dist/chunks/parser-1.1.20-gxyz7x28.mjs +0 -1
- package/dist/chunks/passes-1.1.20-ytgbf2dw.mjs +0 -1
- package/dist/chunks/permissions-1.1.20-s9ae41qy.mjs +0 -3
- package/dist/chunks/permissions-1.1.20-y9c9w35s.mjs +0 -1
- package/dist/chunks/plan-1.1.20-wbg3rbe5.mjs +0 -1
- package/dist/chunks/plist-1.1.20-ammve61n.mjs +0 -1
- package/dist/chunks/plugin-1.1.20-kprz45ck.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.20-0s19k556.mjs +0 -1
- package/dist/chunks/plugins-1.1.20-zcnf29dz.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.20-q1vqezxz.mjs +0 -2
- package/dist/chunks/print-1.1.20-jtj5dvm1.mjs +0 -57
- package/dist/chunks/process-1.1.20-gvna1rw4.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.20-4gf4hf9q.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.20-x7cpvyb1.mjs +0 -9
- package/dist/chunks/prompt-1.1.20-44tt0aay.mjs +0 -1
- package/dist/chunks/prompt-1.1.20-kd8b5z70.mjs +0 -1
- package/dist/chunks/prompts-1.1.20-p30n6333.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.20-k4c3bckj.mjs +0 -13
- package/dist/chunks/provider-1.1.20-x6r7w9y0.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.20-qr1eh5g1.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.20-whqrd8y7.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.20-hjftrz50.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.20-rspt0fgv.mjs +0 -26
- package/dist/chunks/registry-1.1.20-0mggqvzs.mjs +0 -1
- package/dist/chunks/release-notes-1.1.20-vb0mr5sj.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.20-vh7daesv.mjs +0 -2
- package/dist/chunks/remote-env-1.1.20-sarjwtd8.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.20-wn384wtw.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.20-v6xk4jcm.mjs +0 -1
- package/dist/chunks/rename-1.1.20-f8mjn6dk.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.20-rgnef71a.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.20-gtmq90n0.mjs +0 -1
- package/dist/chunks/resume-1.1.20-6azc4a6d.mjs +0 -2
- package/dist/chunks/rewind-1.1.20-y79g5sa8.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.20-j01mdex3.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.20-rjt6cc5k.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.20-2fy5bxtc.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.20-3fhx4jz1.mjs +0 -1
- package/dist/chunks/session-1.1.20-56bsxwcm.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.20-5awvar7p.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.20-p0m1trtr.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.20-kzwv0rca.mjs +0 -1
- package/dist/chunks/settings-1.1.20-qq5nh010.mjs +0 -1
- package/dist/chunks/setup-1.1.20-rxx0xk5h.mjs +0 -12
- package/dist/chunks/sinks-1.1.20-r3j94336.mjs +0 -1
- package/dist/chunks/skills-1.1.20-rj3k67vs.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.20-28r68j3h.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.20-na2gc2z0.mjs +0 -1
- package/dist/chunks/state-1.1.20-87k38gkf.mjs +0 -1
- package/dist/chunks/stats-1.1.20-4f0k42ck.mjs +0 -6
- package/dist/chunks/status-1.1.20-4q8drpbw.mjs +0 -1
- package/dist/chunks/stickers-1.1.20-6zrpy168.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.20-ay4xqbmj.mjs +0 -1
- package/dist/chunks/tasks-1.1.20-94bxr0pm.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.20-2wx4ycs3.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.20-84jswprz.mjs +0 -1
- package/dist/chunks/teleport-1.1.20-szer4192.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.20-6c6rr077.mjs +0 -1
- package/dist/chunks/theme-1.1.20-h0j5bxzv.mjs +0 -1
- package/dist/chunks/thinkback-1.1.20-xx7byjz0.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.20-y7e52jdn.mjs +0 -1
- package/dist/chunks/toolPool-1.1.20-3z7k5za6.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.20-60qd9jdb.mjs +0 -1
- package/dist/chunks/tools-1.1.20-x11zs4y1.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.20-2xcp041p.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.20-cvck081c.mjs +0 -69
- package/dist/chunks/types-1.1.20-143w1akg.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.20-0ahamh6w.mjs +0 -4
- package/dist/chunks/update-1.1.20-yy0y40m9.mjs +0 -72
- package/dist/chunks/upgrade-1.1.20-wk6398hc.mjs +0 -1
- package/dist/chunks/upload-1.1.20-x7890nxj.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.20-9fag2s50.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.20-98f7t8ex.mjs +0 -1
- package/dist/chunks/usage-1.1.20-x3t5jqtp.mjs +0 -1
- package/dist/chunks/util-1.1.20-6yg0jab0.mjs +0 -1
- package/dist/chunks/utils-1.1.20-eextgt51.mjs +0 -1
- package/dist/chunks/vim-1.1.20-45mkg766.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.20-m6zydt8m.mjs +0 -13
- package/dist/chunks/watcher-1.1.20-qtj8t09d.mjs +0 -1
- package/dist/chunks/wiki-1.1.20-3mvcvdfe.mjs +0 -132
- package/dist/chunks/workflows-1.1.20-19kpvc6v.mjs +0 -1
- package/dist/chunks/worktree-1.1.20-mj9bm0pg.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.20-gyvs55qh.mjs +0 -1
- package/dist/chunks/wrapper-1.1.20-8rckzejb.mjs +0 -7
- /package/dist/chunks/{cli-1.1.20-cypawma9.mjs → cli-1.1.22-08c4ym21.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-sfrzvte7.mjs → cli-1.1.22-as944wt5.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-nr5scd4y.mjs → cli-1.1.22-ccg6dy3s.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-c0p4wjw7.mjs → cli-1.1.22-kqk323ja.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-c4ktmkk3.mjs → cli-1.1.22-nv9q4jrr.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-0sgvc4nn.mjs → cli-1.1.22-w09pyst3.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-e4h3mrxr.mjs → cli-1.1.22-ws6y62na.mjs} +0 -0
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{Cg as $Z,Dg as uZ,Eg as pz}from"./cli-1.1.20-admbe52d.mjs";import{Oh as HJ,Ph as Vz}from"./cli-1.1.20-g68fwrp1.mjs";import{Zh as GJ,_h as Bz}from"./cli-1.1.20-cfbterne.mjs";import{$R as eJ,$x as xQ,AB as nJ,At as Dz,BB as yz,Bk as fJ,Co as WQ,Go as uz,Ly as pQ,MA as IZ,My as AX,NA as hZ,OA as TZ,OR as nQ,PA as dJ,Pk as mZ,QA as cQ,QT as VQ,Qk as FX,RA as cJ,SR as lQ,TR as iQ,TT as KQ,Ty as dQ,Un as zQ,Uy as PX,VR as nZ,Vn as $z,WR as aQ,WT as pZ,YR as g0,ZR as rQ,aS as ZQ,ao as RQ,bS as oQ,bo as NX,cS as tQ,cy as OX,eS as OZ,fU as BQ,kk as _Z,lk as TQ,qo as XQ,ry as DQ,so as xZ,sy as UQ,tK as gQ,tk as SJ,ty as $Q,uk as IJ,uy as uQ,wt as wJ,xB as e0,yB as gJ,yy as MQ,zB as mJ,zy as EQ}from"./cli-1.1.20-sx7811qs.mjs";import{aV as fQ,jV as jX}from"./cli-1.1.20-jwgjrhwv.mjs";import{IY as YJ,MY as qz,NY as DZ,OY as wX,nY as FZ,oY as qJ}from"./cli-1.1.20-ry7grtff.mjs";import{$Z as c0,D0 as UZ,DZ as u0,F0 as Jz,H1 as f0,V0 as hQ,W0 as KX,a1 as b,b1 as PQ,c1 as g,d1 as JX,e0 as vZ,tZ as WJ,uZ as Wz}from"./cli-1.1.20-r4xfymtx.mjs";import{c4 as p0,d4 as B,e4 as $,f4 as F0}from"./cli-1.1.20-azb7xdf4.mjs";import{g4 as I0}from"./cli-1.1.20-9p9rns5w.mjs";import{E4 as VJ,F4 as BJ,G4 as Yz}from"./cli-1.1.20-bgbsr3de.mjs";import{K7 as jQ,L7 as ZX,Q7 as JZ,Q8 as xz,T7 as QZ,l8 as JQ,v8 as QQ}from"./cli-1.1.20-rvn2axad.mjs";import{k9 as gZ,l9 as GX}from"./cli-1.1.20-tbtnrzgn.mjs";import{Lba as IQ,bfa as PZ,fca as LX,pda as LZ,wfa as HQ,x_ as v0,xda as XJ,y_ as zJ}from"./cli-1.1.20-hrw31bb0.mjs";import{hha as jZ,iha as TJ,sha as ZZ,zha as hz}from"./cli-1.1.20-xvytevdy.mjs";import{Bja as NZ,Cja as wZ,Oja as Pz,jja as RZ,lja as Rz,wja as KZ}from"./cli-1.1.20-nkrcdd4b.mjs";import{ala as m0,dla as ez}from"./cli-1.1.20-gkc4ptt0.mjs";import{Nla as SQ,Vla as HX}from"./cli-1.1.20-003ssrqs.mjs";import{Vqa as kQ,yra as BX}from"./cli-1.1.20-j4a7q58c.mjs";import{pta as w0,tta as L0}from"./cli-1.1.20-0sgvc4nn.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=UZ){MZ();return}$0=setTimeout(MZ,UZ-J)}function lZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var iZ=L0(()=>{Jz();EZ=w0(I0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=w0(u0(),1),K0=w0(I0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","bagel_console","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((j)=>j===null?null:j+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:j,newMessageCount:v,onPillClick:M}=J,I=F===void 0?!1:F,Z0=j===void 0?!1:j,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,N]=q0.useState(null),P;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))P={setStickyPrompt:N},Z[0]=P;else P=Z[0];let f=P,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??Nz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:f,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let l;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)l=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=l;else l=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(wz,{count:d,onClick:M}),Z[16]=I,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let S;if(Z[24]!==l||Z[25]!==o||Z[26]!==t||Z[27]!==X0)S=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,l,o,t]}),Z[24]=l,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=S;else S=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),w=B(jz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let D;if(Z[31]!==z)D=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=D;else D=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==S||Z[39]!==D||Z[40]!==R)s=$(sZ,{children:[S,D,R]}),Z[38]=S,Z[39]=D,Z[40]=R,Z[41]=s;else s=Z[41];return s}let i;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)i=$(p0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=i;else i=Z[46];return i}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function Nz(){}function wz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let j;if(Z[7]!==z||Z[8]!==F)j=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=j;else j=Z[9];return j}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function jz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();f0();Yz();vZ();XJ();CZ();Vz();F0();a0=w0(u0(),1),q0=w0(I0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function NJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,NZ)!=="completed")return!1;return _Z(Z.text,wZ)?.startsWith(wJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(NJ(X)){let W=0;while(z<J.length&&NJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${NZ}>completed</${NZ}><${wZ}>${W} background commands completed</${wZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Pz();Dz();vZ();OZ()});function jJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function PJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!jJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var DJ=()=>{};function UJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(UJ(z)){let X=0;while(Q<J.length&&UJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function Uz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Uz(Z),X=new Map;for(let F of J){let j=kZ(F);if(j&&z.has(j.toolName)){let v=`${j.messageId}:${j.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,j]of X)if(j.length>=2){W.set(F,j);for(let v of j){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let j of F.message.content)if(j.type==="tool_result"&&q.has(j.tool_use_id))V.set(j.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let j=kZ(F);if(j){let v=`${j.messageId}:${j.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:j.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:j.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(J.toolUseResult));Z=W.join(`
|
|
2
|
-
`)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Ez(W.input)];return[]}).join(`
|
|
3
|
-
`);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
|
|
4
|
-
`);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
|
|
5
|
-
`)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
|
|
6
|
-
`);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
|
|
7
|
-
`)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
|
|
8
|
-
`+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
|
|
9
|
-
`))}return Q.join(`
|
|
10
|
-
`)}var yJ="</system-reminder>",_J,kJ;var SZ=L0(()=>{OZ();_J=new Set([SJ,IJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=jZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();f0();F0();hJ=w0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=jZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var pJ=L0(()=>{TJ();f0();F0();$J=w0(u0(),1)});function aJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(IZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0],V=q?.type==="tool_use"?q.input:void 0;if(IZ(W.toolName,V,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=lJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:j,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:I,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",P;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)P=N&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=P;else P=Z[5];let f=P,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?dJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||N?[]:ZQ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let S=_||N?fJ:eJ(Q,O);Y0=tJ(Q,K,Y,S,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let i=Y0,h=!1;if(j)if(_){let S;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let D=w.message.content[0];return D?.type==="tool_use"&&Y.has(D.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];S=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=S}else S=Z[25];h=S}else if(N){let S;if(Z[28]!==Y||Z[29]!==Q)S=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=S;else S=Z[30];h=S}else{let S;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);S=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=S}else S=Z[33];h=S}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==f||Z[40]!==i||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:i,onOpenRateLimitOptions:v,isActiveCollapsedGroup:f,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=f,Z[40]=i,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let l=T;if(!Q0){let S;if(Z[55]!==l)S=B(e0,{children:l}),Z[55]=l,Z[56]=S;else S=Z[56];return S}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==l||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,l]})}),Z[60]=Z0,Z[61]=l,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Sz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function Tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Sz(J.message,J.streamingToolUseIDs),W=Iz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var lJ,iJ,rJ;var oJ=L0(()=>{f0();cJ();OZ();yz();xJ();sJ();pJ();gJ();F0();lJ=w0(u0(),1),iJ=w0(I0(),1);rJ=iJ.memo(_z,Tz)});import{relative as fz}from"path";function qQ(J){return iz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,lz,iz;var YQ=L0(()=>{f0();BQ();zJ();Rz();hz();xz();pz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>pZ(J.memoryFiles).length>0,render:(J)=>{let Z=pZ(J.memoryFiles);return B(p0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?fz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},lz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},iz=[dz,nz,cz,gz,mz,lz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:PZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",j=1,v=Y.map((I)=>B(r0.Fragment,{children:I.render(V)},I.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:j,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{f0();BQ();HQ();YQ();F0();GQ=w0(u0(),1),r0=w0(I0(),1),XZ=[]});function NQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),j=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[D,R]of z.current)z.current.set(D,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?j.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??sz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(D/tz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),D=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),D=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(D)X.current++},[Z]);let P=Z.length;if(q.current.version!==X.current||q.current.n!==P){let w=q.current.arr.length>=P+1?q.current.arr:new Float64Array(P+1);w[0]=0;for(let D=0;D<P;D++)w[D+1]=w[D]+(z.current.get(Z[D])??rz);q.current={arr:w,version:X.current,n:P}}let f=q.current.arr,J0=f[P],E,k;if(M)[E,k]=M,E=Math.min(E,P),k=Math.min(k,P);else if(_===0||O<0)E=Math.max(0,P-oz),k=P;else{if(N){let V0=_+o0;E=P;while(E>0&&J0-f[E-1]<V0)E--;k=P}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,P0=y0>G0?C<0?n0-G0:M0:M0,T0=P0+Math.min(y0,G0),l0=Math.max(0,P0-V0),h0=T0-V0,b0=l0-o0;{let H=0,L=P;while(H<L){let A=H+L>>1;if(f[A+1]<=b0)H=A+1;else L=A}E=H}{let H=j.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let i0=_+2*o0,t0=Math.min(P,E+WZ),_0=0;k=E;while(k<t0&&(_0<i0||f[k]<h0+_+o0))_0+=z.current.get(Z[k])??fZ,k++}let w=_+2*o0,D=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??fZ;while(E>D&&R<w)E--,R+=z.current.get(Z[E])??fZ;let s=j.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,P)}W.current=O}if(v.current>0)v.current--;else j.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),i=E<H0?H0:E,h=k>Y0?Y0:k;if(i>h||N)i=E,h=k;if(C>0)h=k;if(h-i>WZ){let w=(f[i]+f[h])/2;if(O-I.current<w)h=i+WZ;else i=h-WZ}let z0=I.current,Q0=f[i],X0=i===0?0:Q0+z0,O0=h===P?1/0:Math.max(Q0,f[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let D=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),D=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),D=!0}if(D)X.current++});let T=m.useCallback((w)=>{let D=Y.current.get(w);if(!D)D=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(w)!==A0)z.current.set(w,A0),X.current++}V.current.delete(w)}},Y.current.set(w,D);return D},[]),l=m.useCallback((w)=>{let D=V.current.get(Z[w])?.yogaNode;if(!D||D.getComputedWidth()===0)return-1;return D.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),S=m.useCallback((w)=>{let D=q.current;if(w<0||w>=D.n)return;J.current?.scrollTo(D.arr[w]+I.current)},[J]),W0=J0-f[h];return{range:[i,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:f,getItemTop:l,getItemElement:o,getItemHeight:t,scrollToIndex:S}}var m,rz=3,o0=80,oz=30,tz,fZ=1,WZ=300,qZ=25,sz=()=>{};var wQ=L0(()=>{m=w0(I0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
|
|
11
|
-
`)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:j,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let I=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==j)C=Y?()=>j(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=j,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let P;if(Z[19]!==_||Z[20]!==N)P=B(PQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=P;else P=Z[21];let f;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==P)f=B(b,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:P}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=P,Z[29]=f;else f=Z[29];return f}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:j,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let N=O.current,{range:P,topSpacer:f,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:i,getItemHeight:h,scrollToIndex:z0}=NQ(Z,N,Q),[Q0,X0]=P,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return DQ(J[H])},[h,J]);y.useImperativeHandle(j,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:UQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let l=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),S=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),D=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),j0=c+e+n.row;if(j0<c||j0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),j0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,D0=E0.prefixSum.at(-1)??0,U0=(E0.prefixSum[E0.ptr]??0)+u+1;I?.(D0,U0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${j0} badge=${U0}/${D0}`)}D.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=l.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){l.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}l.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}l.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let j0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:j0},m0(`seek(i=${L} t=${x}): ${j0.length} positions`),j0.length===0){if(++S.current>20){S.current=0;return}w.current(A?-1:1);return}S.current=0;let E0=A?j0.length-1:0;R.current.screenOrd=E0,t.current=-1,D.current(E0);let D0=W0.current;if(D0)W0.current=0,w.current(D0)},[M0]);function P0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},l.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(l.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,P0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;I?.(u,e)}w.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let D0=T.current.messages;for(let U0=0;U0<D0.length;U0++){let k0=Y(D0[U0]),G=k0.indexOf(L),U=0;while(G>=0)U++,G=k0.indexOf(L,G+L.length);if(U>0)A.push(U0),x.push(x.at(-1)+U)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,j0=R0(e),E0=j0>=0?j0-c[e]:0;if(A.length>0&&r){let D0=s.current>=0?s.current:r.getScrollTop(),U0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-D0);if(G<=U0)U0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${D0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)P0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);I?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await jQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[l0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let i0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(p0,{children:[B(b,{ref:k,height:f,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],u=!!W&&(q?.(H)??!0),n=u&&l0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:i0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:i,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??YX,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let P=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-P:P});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),j=Z,v=-1;for(let N=Q-1;N>=Z;N--){let P=X(N);if(P>=0){if(P<F)break;v=P}j=N}let M=-1,I=null;if(j>0&&!K)for(let N=j-1;N>=0;N--){let P=XX(J[N]);if(P===null)continue;let f=X(N);if(f>=0&&f+1>=F)continue;M=N,I=P;break}let Z0=v>=0?v-z[j]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let N=C.current==="force";if(C.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let P=I.trimStart(),f=P.search(/\n\s*\n/),J0=(f>=0?P.slice(0,f):P).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{wQ();f0();JX();LJ();ez();ZX();SZ();EQ();F0();bQ=w0(u0(),1),y=w0(I0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function SX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}return!1}var mQ,YZ,p,DX,UX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:j=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:N,scrollRef:P,trackStickyPrompt:f,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:i=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=p.useMemo(()=>nZ(J).filter(nQ),[J]),l=p.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=p.useMemo(()=>{if(!d)return null;if(l)return"streaming";for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="assistant"){let B0=U.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${U.uuid}:${a}`}else if(U?.type==="user"){if(!U.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,l]),t=p.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="user"){let B0=U.message.content;for(let a of B0)if(a.type==="text"){let N0=a.text;if(N0.startsWith("<bash-stdout")||N0.startsWith("<bash-stderr"))return U.uuid}}}return null},[T]),S=p.useMemo(()=>tQ(T),[T]),W0=p.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!S.has(G.contentBlock.id)),[F,q,S]),w=p.useMemo(()=>W0.flatMap((G)=>{let U=gQ({content:[G.contentBlock]});return U.uuid=TQ(G.contentBlock.id,0),nZ([U])}),[W0]),D=K==="transcript",R=p.useMemo(()=>SQ(process.env.CLAUDIN_DISABLE_VIRTUAL_SCROLL),[]),s=P!=null&&!R,A0=D&&!j&&!s,V0=p.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=p.useMemo(()=>{let G=z||c0()?T:lQ(T,{includeSnipped:!0}),U=aQ(G.filter((S0)=>S0.type!=="progress").filter((S0)=>!GZ(S0)).filter((S0)=>iQ(S0,D)),w),B0=[yQ,MX].filter((S0)=>S0!==null),a=[yQ].filter((S0)=>S0!==null),N0=B0.length>0&&!D?_?EX(U,B0):a.length>0?bX(U,a):U:U,C0=A0?N0.slice(-cZ):N0,VZ=A0&&N0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(PJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=U.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,D,w,A0,Z,_]),P0=p.useMemo(()=>{let U=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):U>0?G0.slice(U):G0},[G0,Q0,s,Y0]),T0=p.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),l0=xQ((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=p.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[U,B0]of h0){let a=l0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(U)}return G.size>0?G:null},[l0,h0]),i0=p.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let U of b0)G.add(U);return G},[q,b0]),t0=p.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return P0.findIndex((U)=>U.uuid.slice(0,24)===G)},[N,P0]),_0=p.useMemo(()=>{if(!i)return-1;return P0.findIndex((G)=>G.uuid===i.uuid)},[i,P0]),[H,L]=p.useState(()=>new Set),A=p.useCallback((G)=>{let U=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(U))a.delete(U);else a.add(U);return a})},[]),x=p.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=p.useRef(M0);u.current=M0;let n=p.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let N0=G.message.content[0];return N0!=null&&fQ(N0)&&N0.type==="advisor_tool_result"&&N0.content.type==="advisor_result"}if(G.type!=="user")return!1;let U=G.message.content[0];if(U?.type!=="tool_result"||U.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(U.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=i0.size>0,{progress:e}=hQ(),R0=p.useRef(null),j0=PZ().terminalProgressBarEnabled&&!kQ()&&!(UX?.isProactiveActive()??!1);p.useEffect(()=>{let G=j0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,j0,c]),p.useEffect(()=>{return()=>e(null)},[e]);let E0=p.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),D0=(G,U)=>{if(G.type==="progress")return null;let B0=U>0?P0[U-1]?.type:void 0,a=G.type==="user"&&B0==="user",N0=G.type==="collapsed_read_search"&&(C||aJ(P0,U,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:N0,tools:Z,commands:Q,verbose:z||x(G)||i?.expanded===!0&&U===_0,inProgressToolUseIDs:i0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B($Q.Provider,{value:U===_0,children:VZ},C0);if(N&&U===t0)return[B(b,{marginTop:1,children:B(DZ,{title:`${N.count} new ${LZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},U0=p.useRef(new WeakMap),k0=p.useCallback((G)=>{let U=U0.current.get(G);if(U!==void 0)return U;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let N0=G.message.content.find((C0)=>C0.type==="tool_result");if(N0&&"tool_use_id"in N0){let C0=M0.toolUseByToolUseID.get(N0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return U0.current.set(G,a),a},[Z,M0]);return $(p0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(DX,{agentDefinitions:v}),n0&&B(DZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),D&&j&&y0>0&&!Y0&&B(DZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(uQ.Provider,{value:!0,children:B(CQ,{messages:P0,scrollRef:P,columns:X0,itemKey:E0,renderItem:D0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:f,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):P0.flatMap(D0),C&&!_&&B(kX,{}),l&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=lZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:IQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();f0();NX();OX();FX();jX();AJ();DJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();SZ();wX();AX();iZ();oJ();EQ();PX();CZ();gJ();FQ();vQ();F0();mQ=w0(u0(),1),YZ=w0(I0(),1),p=w0(I0(),1),DX=YZ.memo(function(Z){let Q=mQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(SX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
|
|
12
|
-
export{s0 as ve,TX as we,iZ as xe,xX as ye,$X as ze,JJ as Ae,QW as Be,zW as Ce,XW as De,LJ as Ee,g8 as Fe,sJ as Ge};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{oI as U,pI as w}from"./cli-1.1.20-sx7811qs.mjs";import{DZ as f,H1 as k,a1 as N,c1 as O}from"./cli-1.1.20-r4xfymtx.mjs";import{d4 as M,e4 as H,f4 as R}from"./cli-1.1.20-azb7xdf4.mjs";import{pta as Y,tta as Z}from"./cli-1.1.20-0sgvc4nn.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
|
|
2
|
-
export{_ as Pg,A as Qg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wga as B,bfa as A,cha as N,wfa as L}from"./cli-1.1.20-hrw31bb0.mjs";import{ala as z,dla as K}from"./cli-1.1.20-gkc4ptt0.mjs";import{sta as I,tta as J}from"./cli-1.1.20-0sgvc4nn.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=A().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)B(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{L();K();N()});
|
|
2
|
-
export{P as kV,Q as lV,R as mV,H as nV,U as oV,V as pV,W as qV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Sh as C,Th as t}from"./cli-1.1.20-wz4h58mp.mjs";import{Uh as p,Vh as e}from"./cli-1.1.20-mg71dz16.mjs";import{nY as L,oY as i}from"./cli-1.1.20-ry7grtff.mjs";import{H1 as s,a1 as b,c1 as P}from"./cli-1.1.20-r4xfymtx.mjs";import{d4 as M,f4 as y}from"./cli-1.1.20-azb7xdf4.mjs";import{g4 as n}from"./cli-1.1.20-9p9rns5w.mjs";import{x_ as T,y_ as m}from"./cli-1.1.20-hrw31bb0.mjs";import{hha as $,iha as o,jha as S,kha as v,mha as W,zha as d}from"./cli-1.1.20-xvytevdy.mjs";import{pta as a,tta as l}from"./cli-1.1.20-0sgvc4nn.mjs";function Zq(J,q,Y){if(J.startsWith("file-"))return Y?C(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function x(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function $q(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Gq(J,q,Y){if(q<=0||Y<=0)return[];let G=J.replace(Yq," ").trim();if(G==="")return[];let Q=[],K="";for(let z of G.split(" ")){if(K==="")K=z;else if($(K)+1+$(z)<=q)K=`${K} ${z}`;else Q.push(K),K=z;while($(K)>q){let H=W(K,q);if(H==="")break;Q.push(H),K=K.slice(H.length)}if(Q.length>Y)break}if(K!=="")Q.push(K);if(Q.length<=Y)return Q;let O=Q.slice(Y-1).join(" "),A=Q.slice(0,Y);return A[Y-1]=$(O)<=q?O:v(O,q),A}function c(J,q,Y){let G=Math.floor(q*0.4),Q=Math.min(Y??$(J.displayText)+5,G),K=J.displayText;if($(K)>Q-2)K=v(K,Q-2);let O=$q(J)?`${h?C(J.displayText):"+"} `:"",A=J.tag?`[${J.tag}] `:"",z=Math.max(0,q-R-Q-$(A)-4),H=J.description?Gq(J.description,z,Kq):[];return{displayText:K,displayTextWidth:Q,pathIcon:O,tagText:A,descriptionLines:H}}function Oq(J,q,Y){if(x(J.id))return 1;return Math.max(1,c(J,q,Y).descriptionLines.length)}function Aq({suggestions:J,selectedSuggestion:q,maxColumnWidth:Y,overlay:G}){let{columns:Q,rows:K}=L(),O=Math.max(1,K-2),A=O>=qq?Math.min(Jq,O):O;if(J.length===0)return null;let z=Y??Math.max(...J.map((Z)=>$(Z.displayText)))+5,H=J.map((Z)=>Oq(Z,Q,z)),N=(Z)=>Math.max(0,Math.min(q-Math.floor(Z/2),J.length-Z)),U=Math.min(A,J.length);while(U>1){let Z=N(U);if(H.slice(Z,Z+U).reduce((B,j)=>B+j,0)<=O)break;U--}let V=N(U),X=Math.min(V+U,J.length),F=J.slice(V,X);return M(b,{flexDirection:"column",justifyContent:G?void 0:"flex-end",children:F.map((Z)=>M(zq,{item:Z,maxColumnWidth:z,isSelected:Z.id===J[q]?.id},`${Z.id}:${Z.id===J[q]?.id?"selected":"idle"}`))})}var E,qq=8,Jq=15,Kq=2,I,Qq=" ",R,Yq,h,zq,bq;var Uq=l(()=>{m();i();o();s();t();d();e();y();E=a(n(),1),I=`${T.pointer} `,R=$(I),Yq=/\s+/g,h=p();zq=E.memo(function({item:q,maxColumnWidth:Y,isSelected:G}){let Q=L().columns,K=G?I:Qq,O=G?"suggestion":void 0,A=G?"inverseText":void 0;if(x(q.id)){let k=Zq(q.id,q.displayText,h),B=!G,j=q.id.startsWith("file-"),u=q.id.startsWith("mcp-resource-"),Hq=2,kq=4,w=q.description?3:0,f;if(j){let _=q.description?Math.min(20,$(q.description)):0,r=Q-R-2-4-w-_;f=S(q.displayText,r)}else if(u)f=v(q.displayText,30);else f=q.displayText;let g=Q-R-2-$(f)-w-4,D;if(q.description){let _=v(q.description.replace(/\s+/g," "),Math.max(0,g));D=`${K}${k} ${f} - ${_}`}else D=`${K}${k} ${f}`;return M(b,{width:"100%",opaque:!0,backgroundColor:O,children:M(P,{color:A,dimColor:B,bold:G,wrap:"truncate",children:D})})}let{displayText:z,displayTextWidth:H,pathIcon:N,tagText:U,descriptionLines:V}=c(q,Q,Y),X=K+N+z+" ".repeat(Math.max(0,H-$(z))),F=" ".repeat($(X)+$(U)),Z=V.length>0?V.map((k,B)=>B===0?`${X}${U}${k}`:`${F}${k}`):[`${X}${U}`];return M(b,{flexDirection:"column",width:"100%",opaque:!0,backgroundColor:O,children:Z.map((k,B)=>M(P,{color:A,dimColor:!G,bold:G,wrap:"truncate",children:k},B))})});bq=E.memo(Aq)});
|
|
2
|
-
export{Aq as Nh,bq as Oh,Uq as Ph};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{I as x0}from"./cli-1.1.20-wrat5rtg.mjs";import{$ as d0}from"./cli-1.1.20-1axwpgex.mjs";import{fb as u0}from"./cli-1.1.20-k31p3ab5.mjs";import{kb as c0}from"./cli-1.1.20-n0e2f4pd.mjs";import{Bc as Vf,zc as y0}from"./cli-1.1.20-ezsprsc5.mjs";import{Ec as $,Fc as Uf}from"./cli-1.1.20-cbehaby4.mjs";import{Hc as O0,Ic as Lf}from"./cli-1.1.20-p0jj07wv.mjs";import{bd as q0,cd as o0}from"./cli-1.1.20-dws48g78.mjs";import{Yg as m0,Zg as Rf}from"./cli-1.1.20-py0s55wt.mjs";import{AG as l0,BG as n,DG as i0,IG as m,JG as Q0,JS as A0,KG as P0,LG as Jf,LS as D0,NS as Xf,TT as _0,ZM as R0,_x as E,bU as C0,co as p,cy as J0,dU as b0,do as g0,eo as f0,fU as Yf,fo as S0,go as F0,hN as a0,ho as $0,iU as N0,kU as Zf,ko as _,lo as a,rH as E0,sH as Qf,vN as U0,xN as n0,zG as T0}from"./cli-1.1.20-sx7811qs.mjs";import{DZ as u,H1 as o,VZ as K0,_Z as zf,a1 as e,c1 as A,g1 as l}from"./cli-1.1.20-r4xfymtx.mjs";import{c4 as t,d4 as q,e4 as G,f4 as w}from"./cli-1.1.20-azb7xdf4.mjs";import{E5 as k0,F5 as qf,_4 as I0,d5 as Tf}from"./cli-1.1.20-rvn2axad.mjs";import{Hga as M0,Kga as Ff,Uea as H0,Wda as H,Zda as K,_ea as j,aea as w0,bfa as i,cea as G0,dfa as B0,kea as d,wfa as X0}from"./cli-1.1.20-hrw31bb0.mjs";import{Eha as W,Iha as e0}from"./cli-1.1.20-xvytevdy.mjs";import{_ha as W0,gia as h0,mia as ff}from"./cli-1.1.20-rmvq7swt.mjs";import{Zja as I,aka as c}from"./cli-1.1.20-ka6crh5z.mjs";import{dla as s0}from"./cli-1.1.20-gkc4ptt0.mjs";import{Nla as S,Vla as t0}from"./cli-1.1.20-003ssrqs.mjs";import{ioa as Y0,oqa as Z0,yra as r0}from"./cli-1.1.20-j4a7q58c.mjs";import{pta as x,uta as B}from"./cli-1.1.20-0sgvc4nn.mjs";c();Xf();r0();import{appendFileSync as Wf}from"fs";Zf();zf();Q0();ff();Ff();c();d();i0();a();var s=x(u(),1);o();w();var v=x(u(),1);function D(){let T=v.c(1),f;if(T[0]===Symbol.for("react.memo_cache_sentinel"))f=G(A,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",q(l,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),T[0]=f;else f=T[0];return f}w();function r(T){let f=s.c(13),{serverName:F,onDone:L}=T,U;if(f[0]!==L||f[1]!==F)U=function(h){I("",{choice:h});f:switch(h){case"yes":case"yes_all":{let M=(K()||{}).enabledMcpjsonServers||[];if(!M.includes(F))H("localSettings",{enabledMcpjsonServers:[...M,F]});if(h==="yes_all")H("localSettings",{enableAllProjectMcpServers:!0});L();break f}case"no":{let M=(K()||{}).disabledMcpjsonServers||[];if(!M.includes(F))H("localSettings",{disabledMcpjsonServers:[...M,F]});L()}}},f[0]=L,f[1]=F,f[2]=U;else U=f[2];let J=U,V=`New MCP server found in .mcp.json: ${F}`,Q;if(f[3]!==J)Q=()=>J("no"),f[3]=J,f[4]=Q;else Q=f[4];let z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))z=q(D,{}),f[5]=z;else z=f[5];let R;if(f[6]===Symbol.for("react.memo_cache_sentinel"))R=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],f[6]=R;else R=f[6];let X;if(f[7]!==J)X=q(n,{options:R,onChange:(Z)=>J(Z),onCancel:()=>J("no")}),f[7]=J,f[8]=X;else X=f[8];let Y;if(f[9]!==V||f[10]!==Q||f[11]!==X)Y=G(_,{title:V,color:"warning",onCancel:Q,children:[z,X]}),f[9]=V,f[10]=Q,f[11]=X,f[12]=Y;else Y=f[12];return Y}o0();c();o();d();S0();l0();$0();a();g0();var L0=x(u(),1);w();function z0(T){let f=L0.c(21),{serverNames:F,onDone:L}=T,U;if(f[0]!==L||f[1]!==F)U=function(C){let y=K()||{},p0=y.enabledMcpjsonServers||[],j0=y.disabledMcpjsonServers||[],[b,N]=q0(F,(P)=>C.includes(P));if(I("",{approved:b.length,rejected:N.length}),b.length>0){let P=[...new Set([...p0,...b])];H("localSettings",{enabledMcpjsonServers:P})}if(N.length>0){let P=[...new Set([...j0,...N])];H("localSettings",{disabledMcpjsonServers:P})}L()},f[0]=L,f[1]=F,f[2]=U;else U=f[2];let J=U,V;if(f[3]!==L||f[4]!==F)V=()=>{let C=(K()||{}).disabledMcpjsonServers||[],y=[...new Set([...C,...F])];H("localSettings",{disabledMcpjsonServers:y}),L()},f[3]=L,f[4]=F,f[5]=V;else V=f[5];let Q=V,z=`${F.length} new MCP servers found in .mcp.json`,R;if(f[6]===Symbol.for("react.memo_cache_sentinel"))R=q(D,{}),f[6]=R;else R=f[6];let X;if(f[7]!==F)X=F.map(v0),f[7]=F,f[8]=X;else X=f[8];let Y;if(f[9]!==Q||f[10]!==J||f[11]!==F||f[12]!==X)Y=q(T0,{options:X,defaultValue:F,onSubmit:J,onCancel:Q,hideIndexes:!0}),f[9]=Q,f[10]=J,f[11]=F,f[12]=X,f[13]=Y;else Y=f[13];let Z;if(f[14]!==Q||f[15]!==z||f[16]!==Y)Z=G(_,{title:z,subtitle:"Select any you wish to enable.",color:"warning",onCancel:Q,hideInputGuide:!0,children:[R,Y]}),f[14]=Q,f[15]=z,f[16]=Y,f[17]=Z;else Z=f[17];let h;if(f[18]===Symbol.for("react.memo_cache_sentinel"))h=q(e,{paddingX:1,children:q(A,{dimColor:!0,italic:!0,children:G(F0,{children:[q(p,{shortcut:"Space",action:"select"}),q(p,{shortcut:"Enter",action:"confirm"}),q(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),f[18]=h;else h=f[18];let O;if(f[19]!==Z)O=G(t,{children:[Z,h]}),f[19]=Z,f[20]=O;else O=f[20];return O}function v0(T){return{label:T,value:T}}Q0();J0();a0();n0();w();async function V0(T){let{servers:f}=R0("project"),F=Object.keys(f).filter((L)=>U0(L)==="pending");if(F.length===0)return;await new Promise((L)=>{let U=()=>void L();if(F.length===1&&F[0]!==void 0){let J=F[0];T.render(q(E,{children:q(m,{children:q(r,{serverName:J,onDone:U})})}))}else T.render(q(E,{children:q(m,{children:q(z0,{serverNames:F,onDone:U})})}))})}J0();Uf();qf();Yf();X0();Vf();X0();s0();t0();class g{frameDurations=[];firstRenderTime;lastRenderTime;record(T){let f=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=f;this.lastRenderTime=f,this.frameDurations.push(T)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let T=this.lastRenderTime-this.firstRenderTime;if(T<=0)return;let F=this.frameDurations.length/(T/1000),L=this.frameDurations.slice().sort((Q,z)=>z-Q),U=Math.max(0,Math.ceil(L.length*0.01)-1),J=L[U],V=J>0?1000/J:0;return{averageFps:Math.round(F*100)/100,low1PctFps:Math.round(V*100)/100}}}Lf();Tf();Jf();Rf();Qf();d();e0();w();function hf(){j((T)=>({...T,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function wf(T,f){return new Promise((F)=>{let L=(U)=>void F(U);T.render(f(L))})}async function x9(T,f,F){return Gf(T,f,{color:"error",beforeExit:F})}async function Gf(T,f,F){let{Text:L}=await import("./ink-1.1.20-4rp0112s.mjs"),U=F?.color,J=F?.exitCode??1;T.render(U?q(L,{color:U,children:f}):q(L,{children:f})),T.unmount(),await F?.beforeExit?.(),process.exit(J)}function k(T,f,F){return wf(T,(L)=>q(E,{onChangeAppState:F?.onChangeAppState,children:q(m,{children:f(L)})}))}async function u9(T,f){T.render(f),x0(),await T.waitUntilExit(),await D0(0)}async function c9(T,f,F,L,U){if(S(!1)||process.env.IS_DEMO)return!1;W("setupScreens_start");let J=I0(),V=!1;if(y0()){let{MigrationDialog:z}=await import("./MigrationDialog-1.1.20-xc1ete3w.mjs");await k(T,(R)=>q(z,{onDone:()=>void R()}))}let Q=i();if(J&&(!Q.theme||!Q.hasCompletedOnboarding)){V=!0;let{Onboarding:z}=await import("./Onboarding-1.1.20-ytp8f67t.mjs");await k(T,(R)=>q(z,{onDone:()=>{hf(),R()}}),{onChangeAppState:$})}if(!S(process.env.CLAUBBIT)){if(J&&!H0()){let{TrustDialog:z}=await import("./TrustDialog-1.1.20-7p5t0a25.mjs");await k(T,(R)=>q(z,{commands:L,onDone:R}))}if(Z0(!0),W("setupScreens_after_trust_accepted"),h0(),W0(),N0(),W("setupScreens_after_growthbook_kick"),J){let{errors:z}=E0();if(z.length===0)await V0(T);W("setupScreens_after_mcp_approvals");let R=await b0();if(W("setupScreens_after_claudemd_check"),R){let X=C0(await _0(!0)),{ClaudeMdExternalIncludesDialog:Y}=await import("./ClaudeMdExternalIncludesDialog-1.1.20-c3kyqfq3.mjs");await k(T,(Z)=>q(Y,{onDone:Z,isStandaloneDialog:!0,externalIncludes:X}))}}}u0(),O0(),W("setupScreens_after_env_applied"),setImmediate(()=>d0());{let z=M0();W("setupScreens_after_tryGetActiveProvider");let R=z?.transport==="anthropic"?z.apiKey?.trim():void 0;if(R){let X=k0(R),Y=B0(X);if(W("setupScreens_after_keyStatus"),Y==="new"){let{ApproveApiKey:Z}=await import("./ApproveApiKey-1.1.20-6y0zcy4y.mjs");await k(T,(h)=>q(Z,{customApiKeyTruncated:X,onDone:h}),{onChangeAppState:$})}}}if(W("setupScreens_after_custom_api_key"),(f==="bypassPermissions"||F)&&!w0()){let{BypassPermissionsModeDialog:z}=await import("./BypassPermissionsModeDialog-1.1.20-6w697wvx.mjs");await k(T,(R)=>q(z,{onAccept:R}))}if(f==="auto"&&!G0()){let{AutoModeOptInDialog:z}=await import("./AutoModeOptInDialog-1.1.20-4t2txe84.mjs");await k(T,(R)=>q(z,{onAccept:R,onDecline:()=>A0(1),declineExits:!0}))}return W("setupScreens_end"),V}function d9(T){m0();let f=0,F=P0(T);if(F.stdin)I("",{});let L=new g,U=c0();Y0(U);let J=process.env.CLAUDIN_FRAME_TIMING_LOG;return{getFpsMetrics:()=>L.getMetrics(),stats:U,renderOptions:{...F,onFrame:(V)=>{if(L.record(V.durationMs),U.observe("frame_duration_ms",V.durationMs),J&&V.phases){let Q=JSON.stringify({total:V.durationMs,...V.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
|
|
2
|
-
`;Wf(J,Q)}if(K0())return;for(let Q of V.flickers){if(Q.reason==="resize")continue;let z=Date.now();if(z-f<1000)I("",{desiredHeight:Q.desiredHeight,actualHeight:Q.availableHeight,reason:Q.reason});f=z}}}}}
|
|
3
|
-
export{hf as A,wf as B,x9 as C,Gf as D,k as E,u9 as F,c9 as G,d9 as H};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as K}from"./cli-1.1.20-0sgvc4nn.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
|
|
2
|
-
export{M as ela,N as fla,Q as gla,R as hla,S as ila,L as jla};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{J_ as B,L_ as E}from"./cli-1.1.20-hrw31bb0.mjs";import{Zja as C,aka as y}from"./cli-1.1.20-ka6crh5z.mjs";import{Gka as T,Kka as M,ala as O,dla as p}from"./cli-1.1.20-gkc4ptt0.mjs";import{Ala as L,Hla as x}from"./cli-1.1.20-2c9529sa.mjs";y();p();E();x();M();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function F(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function c(W){let Z=F(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var h=300000,j=1800000,H=3,R=60000;function t({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=h}){let J=new Map,Y=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=c(Q);if(!$){O(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let V=J.get(q);if(V)clearTimeout(V);let v=U(q),X=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){O(`[${z}:token] Token for sessionId=${q} expires=${X} (past or within buffer), refreshing immediately`),K(q,v);return}O(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${X}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,v);J.set(q,k)}function D(q,Q){let $=J.get(q);if($)clearTimeout($);let V=U(q),v=Math.max(Q*1000-P,30000);O(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(v)} (expires_in=${Q}s, buffer=${P/1000}s)`);let X=setTimeout(K,v,q,V);J.set(q,X)}async function K(q,Q){let $;try{$=await W()}catch(v){O(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(v)}`,{level:"error"})}if(w.get(q)!==Q){O(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let v=(Y.get(q)??0)+1;if(Y.set(q,v),O(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${v}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),v<H){let X=setTimeout(K,R,q,Q);J.set(q,X)}return}Y.delete(q),O(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("",{}),Z(q,$);let V=setTimeout(K,j,q,Q);J.set(q,V),O(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=J.get(q);if(Q)clearTimeout(Q),J.delete(q);Y.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of J.values())clearTimeout(q);J.clear(),Y.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
|
|
2
|
-
export{c as Ob,t as Pb};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{gla as ZX,jla as y8}from"./cli-1.1.20-geey2q0s.mjs";import{Bla as r,Hla as R8}from"./cli-1.1.20-2c9529sa.mjs";import{Kla as $X,Nla as NJ,Vla as j8}from"./cli-1.1.20-003ssrqs.mjs";import{Ama as w,Bma as kQ,Ema as yJ,Fma as OX,Gma as h,Hma as vJ,Ima as tJ,Jma as hX,Kma as hJ,Lma as wX,Mma as y,Nma as OJ,Oma as gQ,Pma as m6,Sma as O,Tma as GJ,Wla as dQ,Xla as P6,ama as qJ,bma as oX,ema as eJ,fma as fX,gma as fQ,hma as T6,ima as $Q,jma as cX,mma as JQ,nma as pX,oma as g,pma as oJ,qma as n,rma as LQ,uma as pQ,vma as v6,yma as l,yra as sQ,zma as wQ,zna as XX}from"./cli-1.1.20-j4a7q58c.mjs";import{Ara as CX,Fra as cJ,Gra as TX,Hra as HJ,Ira as J6,Lra as L,Mra as XJ,Rra as LJ,Sra as zX,Xra as V,Yra as xJ,zra as SJ}from"./cli-1.1.20-snwfck2n.mjs";import{sta as uJ,tta as U,vta as N,wta as W}from"./cli-1.1.20-0sgvc4nn.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],q=0,H=null,G=null;function I(){if(H)clearTimeout(H),H=null}function B(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],q=0,I()}function M(){if(!H)H=setTimeout(B,Q)}function F(){if(G){G.push(...Z),Z=[],q=0,I();return}let x=Z;Z=[],q=0,I(),G=x,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(x){if(Y){J(x);return}if(Z.push(x),q+=x.length,M(),Z.length>=X||q>=$)F()},flush:B,dispose(){B()}}}var BJ=()=>{};function IJ(J){return t.add(J),()=>t.delete(J)}async function r8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function WX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function EX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function VJ(J,Q){if(!Q)return!0;let X=WX(J);return EX(X,Q)}var FJ;var DJ=U(()=>{xJ();FJ=V((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function MX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=MX});var BX,e;var _J=U(()=>{zX();BX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=BX});function IX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=IX});function VX(J,Q,X){var $=J[Q];if(!(FX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var xX,FX,j;var QJ=U(()=>{JJ();CX();xX=Object.prototype,FX=xX.hasOwnProperty;j=VX});function DX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,q=Q.length;while(++Z<q){var H=Q[Z],G=$?$(X[H],J[H],H,X,J):void 0;if(G===void 0)G=J[H];if(Y)m(X,H,G);else j(X,H,G)}return X}var R;var k=U(()=>{QJ();JJ();R=DX});function RX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=RX});function AX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var PJ;var TJ=U(()=>{PJ=AX});function SX(J){if(!L(J))return PJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!_X.call(J,$))))X.push($);return X}var LX,_X,mJ;var jJ=U(()=>{XJ();vJ();TJ();LX=Object.prototype,_X=LX.hasOwnProperty;mJ=SX});function kX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{OX();jJ();wX();_=kX});function PX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=PX});var p={};uJ(p,{default:()=>$J});function mX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,vX,gJ,bJ,$J;var lJ=U(()=>{TX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,vX=pJ&&pJ.exports===nJ,gJ=vX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=mX});function jX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=jX});function yX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=yX});var dX,b;var ZJ=U(()=>{hX();dX=tJ(Object.getPrototypeOf,Object),b=dX});var gX,bX,u;var YJ=U(()=>{fX();ZJ();oJ();pX();gX=Object.getOwnPropertySymbols,bX=!gX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=bX});function uX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=uX});function nX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{cX();YJ();d();ZQ=nX});function rX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&iX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var lX,iX,qQ;var HQ=U(()=>{lX=Object.prototype,iX=lX.hasOwnProperty;qQ=rX});function sX(J){var Q=new J.constructor(J.byteLength);return new qJ(Q).set(new qJ(J)),Q}var S;var c=U(()=>{oX();S=sX});function aX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=aX});function eX(J){var Q=new J.constructor(J.source,tX.exec(J));return Q.lastIndex=J.lastIndex,Q}var tX,UQ;var NQ=U(()=>{tX=/\w*$/;UQ=eX});function Q6(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{J6();WQ=HJ?HJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=Q6});function X6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var BQ;var IQ=U(()=>{c();BQ=X6});function D6(J,Q,X){var $=J.constructor;switch(Q){case N6:return S(J);case $6:case Z6:return new $(+J);case W6:return GQ(J,X);case E6:case M6:case z6:case B6:case I6:case C6:case x6:case F6:case V6:return BQ(J,X);case Y6:return new $;case q6:case K6:return new $(J);case H6:return UQ(J);case G6:return new $;case U6:return MQ(J)}}var $6="[object Boolean]",Z6="[object Date]",Y6="[object Map]",q6="[object Number]",H6="[object RegExp]",G6="[object Set]",K6="[object String]",U6="[object Symbol]",N6="[object ArrayBuffer]",W6="[object DataView]",E6="[object Float32Array]",M6="[object Float64Array]",z6="[object Int8Array]",B6="[object Int16Array]",I6="[object Int32Array]",C6="[object Uint8Array]",x6="[object Uint8ClampedArray]",F6="[object Uint16Array]",V6="[object Uint32Array]",CQ;var xQ=U(()=>{c();KQ();NQ();zQ();IQ();CQ=D6});var FQ,R6,VQ;var DQ=U(()=>{XJ();FQ=Object.create,R6=function(){function J(){}return function(Q){if(!L(Q))return{};if(FQ)return FQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),VQ=R6});function A6(J){return typeof J.constructor=="function"&&!h(J)?VQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=A6});function _6(J){return n(J)&&O(J)==L6}var L6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=_6});var OQ,S6,PQ;var TQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,S6=OQ?l(OQ):_Q,PQ=S6});function w6(J){return n(J)&&O(J)==O6}var O6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=w6});var jQ,k6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,k6=jQ?l(jQ):vQ,yQ=k6});function i(J,Q,X,$,Y,Z){var q,H=Q&j6,G=Q&y6,I=Q&h6;if(X)q=Y?X(J,$,Y,Z):X(J);if(q!==void 0)return q;if(!L(J))return J;var B=fQ(J);if(B){if(q=qQ(J),!H)return iJ(J,q)}else{var M=O(J),F=M==uQ||M==b6;if(pQ(J))return $J(J,H);if(M==cQ||M==bQ||F&&!Y){if(q=G||F?{}:RQ(J),!H)return G?QQ(J,dJ(q,J)):sJ(J,wJ(q,J))}else{if(!z[M])return Y?J:{};q=CQ(J,M,H)}}Z||(Z=new dQ);var x=Z.get(J);if(x)return x;if(Z.set(J,q),yQ(J))J.forEach(function(D){q.add(i(D,Q,X,D,J,Z))});else if(PQ(J))J.forEach(function(D,A){q.set(A,i(D,Q,X,A,J,Z))});var v=I?G?ZQ:gQ:G?_:y,MJ=B?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(q,A,i(D,Q,X,A,J,Z))}),q}var j6=1,y6=2,h6=4,bQ="[object Arguments]",d6="[object Array]",f6="[object Boolean]",p6="[object Date]",g6="[object Error]",uQ="[object Function]",b6="[object GeneratorFunction]",u6="[object Map]",c6="[object Number]",cQ="[object Object]",n6="[object RegExp]",l6="[object Set]",i6="[object String]",r6="[object Symbol]",o6="[object WeakMap]",s6="[object ArrayBuffer]",a6="[object DataView]",t6="[object Float32Array]",e6="[object Float64Array]",J8="[object Int8Array]",Q8="[object Int16Array]",X8="[object Int32Array]",$8="[object Uint8Array]",Z8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",q8="[object Uint32Array]",z,nQ;var lQ=U(()=>{P6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();m6();YQ();GJ();HQ();xQ();AQ();T6();v6();TQ();XJ();hQ();OJ();d();z={};z[bQ]=z[d6]=z[s6]=z[a6]=z[f6]=z[p6]=z[t6]=z[e6]=z[J8]=z[Q8]=z[X8]=z[u6]=z[c6]=z[cQ]=z[n6]=z[l6]=z[i6]=z[r6]=z[$8]=z[Z8]=z[Y8]=z[q8]=!0;z[g6]=z[uQ]=z[o6]=!1;nQ=i});function K8(J){return nQ(J,H8|G8)}var H8=1,G8=4,iQ;var rQ=U(()=>{lQ();iQ=K8});var V8={};uJ(V8,{writeFileSync_DEPRECATED:()=>F8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>I8,cloneDeep:()=>x8,clone:()=>C8,callerFrame:()=>M8,SLOW_OPERATION_THRESHOLD_MS:()=>E8});import{closeSync as U8,writeFileSync as oQ,fsyncSync as N8,openSync as W8}from"fs";function M8(J){if(!J)return"";for(let Q of J.split(`
|
|
2
|
-
`)){if(Q.includes("slowOperations"))continue;let X=Q.match(/([^/\\]+?):(\d+):\d+\)?$/);if(X)return` @ ${X[1]}:${X[2]}`}return""}function B8(){return z8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}}function C8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}}function x8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function F8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let I=typeof X==="object"&&"encoding"in X?X.encoding:void 0,B=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=W8(J,"w",B),oQ(M,Q,{encoding:I??void 0}),N8(M)}finally{if(M!==void 0)U8(M)}}else oQ(J,Q,X)}catch(q){var H=q,G=1}finally{W(Z,H,G)}}var E8,z8,E,I8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}};var UJ=U(()=>{rQ();sQ();aQ();E8=(()=>{let J=process.env.CLAUDIN_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let Q=Number(J);if(!Number.isNaN(Q)&&Q>=0)return Q}return 1/0})();z8={[Symbol.dispose](){}};E=B8});import*as K from"fs";import{mkdir as A8,open as o,readdir as L8,readFile as tQ,copyFile as _8,rename as S8,rmdir as O8,rm as w8,stat as k8,unlink as P8}from"fs/promises";import{homedir as eQ}from"os";import*as C from"path";function JX(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function H1(J,Q,X){let{resolvedPath:$}=JX(J,Q);if(X.has($))return!0;return X.add($),!1}function T8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),q=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?q:C.join(q,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function G1(J){let Q=J;if(Q==="~")Q=eQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(eQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let q=Q,H=new Set,G=40;for(let I=0;I<G;I++){if(H.has(q))break;if(H.add(q),!$.existsSync(q)){if(q===Q){let x=T8($,Q);if(x!==void 0)X.add(x)}break}let B=$.lstatSync(q);if(B.isFIFO()||B.isSocket()||B.isCharacterDevice()||B.isBlockDevice())break;if(!B.isSymbolicLink())break;let M=$.readlinkSync(q),F=C.isAbsolute(M)?M:C.resolve(C.dirname(q),M);X.add(F),q=F}}catch{}let{resolvedPath:Y,isSymlink:Z}=JX($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return m8}async function K1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await $.read(q,H,Z-H,Q+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:Y}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function U1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await X.read(q,H,Z-H,Y+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:$}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function*N1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),q=Buffer.alloc(4096);while(Y>0){let H=Math.min(4096,Y);Y-=H,await X.read(q,0,H,Y);let G=Buffer.concat([q.subarray(0,H),Z]),I=G.indexOf(10);if(I===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,I));let B=G.toString("utf8",I+1).split(`
|
|
3
|
-
`);for(let M=B.length-1;M>=0;M--){let F=B[M];if(F)yield F}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var v8,m8;var QX=U(()=>{R8();UJ();v8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return k8(J)},async readdir(J){return L8(J,{withFileTypes:!0})},async unlink(J){return P8(J)},async rmdir(J){return O8(J)},async rm(J,Q){return w8(J,Q)},async mkdir(J,Q){try{await A8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return tQ(J,{encoding:Q.encoding})},async rename(J,Q){return S8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return _8(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),I=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:I}}finally{if($)K.closeSync($)}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return tQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),q=0;while(q<Y){let{bytesRead:H}=await X.read(Z,q,Y-q,q);if(H===0)break;q+=H}return q<Y?Z.subarray(0,q):Z}finally{await X.close()}}},m8=v8});import{appendFile as h8,mkdir as d8,symlink as f8,unlink as p8}from"fs/promises";import{dirname as YX,join as qX}from"path";function L1(){let J=T();return HX=!0,T.cache.clear?.(),J}function u8(J){if(!T())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=b8();return VJ(J,Q)}function _1(J){EJ=J}function S1(){return EJ}async function c8(J,Q,X,$){if(J)await d8(Q,{recursive:!0}).catch(()=>{});await h8(X,$),NX()}function n8(){}function l8(){if(!P){let J=null;P=zJ({writeFn:(Q)=>{let X=UX(),$=YX(X),Y=J!==$;if(J=$,T()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),NX();return}a=a.then(c8.bind(null,Y,$,X,Q)).catch(n8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:T()}),IJ(async()=>{P?.dispose(),await a})}return P}async function O1(){P?.flush(),await a}function D8(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[g8()])return;if(!u8(J))return;if(EJ&&J.includes(`
|
|
4
|
-
`))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
|
|
5
|
-
`;if(GX()){ZX($);return}l8().write($)}function UX(){return KX()??process.env.CLAUDIN_DEBUG_LOGS_DIR??qX($X(),"debug",`${XX()}.txt`)}function w1(J,Q){}var WJ,g8,HX=!1,T,b8,GX,KX,EJ=!1,P=null,a,NX;var aQ=U(()=>{xJ();sQ();BJ();CJ();DJ();j8();QX();y8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},g8=V(()=>{let J=process.env.CLAUDIN_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),T=V(()=>{return HX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||GX()||process.argv.some((J)=>J.startsWith("--debug="))||KX()!==null});b8=V(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return FJ(Q)}),GX=V(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),KX=V(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();NX=V(async()=>{try{let J=UX(),Q=YX(J),X=qX(Q,"latest");await p8(X).catch(()=>{}),await f8(J,X)}catch{}})});
|
|
6
|
-
export{zJ as bka,BJ as cka,IJ as dka,r8 as eka,CJ as fka,e as gka,_J as hka,m as ika,JJ as jka,j as kka,QJ as lka,R as mka,k as nka,_ as oka,d as pka,$J as qka,lJ as rka,iJ as ska,rJ as tka,b as uka,ZJ as vka,ZQ as wka,YQ as xka,BQ as yka,IQ as zka,RQ as Aka,AQ as Bka,nQ as Cka,lQ as Dka,E as Eka,KJ as Fka,I8 as Gka,C8 as Hka,F8 as Ika,V8 as Jka,UJ as Kka,JX as Lka,H1 as Mka,G1 as Nka,s as Oka,K1 as Pka,U1 as Qka,N1 as Rka,QX as Ska,g8 as Tka,T as Uka,L1 as Vka,b8 as Wka,GX as Xka,KX as Yka,_1 as Zka,S1 as _ka,O1 as $ka,D8 as ala,UX as bla,w1 as cla,aQ as dla};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{D4 as Z}from"./cli-1.1.20-7v6hhn2t.mjs";import{Q8 as Y,y8 as F}from"./cli-1.1.20-rvn2axad.mjs";import{_ea as N,bfa as B,cha as X,wfa as W,xea as V}from"./cli-1.1.20-hrw31bb0.mjs";import{Yja as Q}from"./cli-1.1.20-x4ezs1pz.mjs";import{tta as P}from"./cli-1.1.20-0sgvc4nn.mjs";function E(){let w=F()?.organizationUuid;if(!w)return null;let z=B().overageCreditGrantCache?.[w];if(!z)return null;if(Date.now()-z.timestamp>$)return null;return z.info}function U(){let w=F()?.organizationUuid;if(!w)return;let z=B().overageCreditGrantCache;if(!z||!(w in z))return;N((J)=>{let K={...J.overageCreditGrantCache};return delete K[w],{...J,overageCreditGrantCache:K}})}function _(w){if(w.amount_minor_units==null||!w.currency)return null;if(w.currency.toUpperCase()==="USD"){let z=w.amount_minor_units/100;return Number.isInteger(z)?`$${z}`:`$${z.toFixed(2)}`}return null}var $=3600000;var k=P(()=>{Q();Y();W();X();V();Z()});
|
|
2
|
-
export{E as _i,U as $i,_ as aj,k as bj};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Q8 as D,q8 as q}from"./cli-1.1.20-rvn2axad.mjs";import{Xja as m,Yja as z}from"./cli-1.1.20-x4ezs1pz.mjs";import{tta as x}from"./cli-1.1.20-0sgvc4nn.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
|
|
2
|
-
export{E as yi,F as zi,K as Ai,M as Bi,G as Ci};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Tg as nJ,Ug as tY}from"./cli-1.1.20-we3ekctq.mjs";import{Vg as aJ,Wg as sJ,Xg as s0,Zg as qX}from"./cli-1.1.20-py0s55wt.mjs";import{$g as sX}from"./cli-1.1.20-7c1w166r.mjs";import{nh as a0,oh as aY,ph as lJ,qh as sY}from"./cli-1.1.20-chzjjxkj.mjs";import{rh as iJ,sh as oY}from"./cli-1.1.20-8kjhy0wv.mjs";import{th as rJ,uh as eY,vh as oJ,wh as ZX}from"./cli-1.1.20-rvch3wwj.mjs";import{Ah as cJ,Bh as dJ,xh as VY,yh as O0}from"./cli-1.1.20-3awkxvmy.mjs";import{cj as JY,dj as rX}from"./cli-1.1.20-3ya9b3gp.mjs";import{$x as EZ,AH as gq,Am as ZY,BG as iZ,BH as mq,BN as sZ,Bm as lX,CG as fY,CH as pq,CN as Qq,DG as iq,DH as LY,Go as dY,Hz as Aq,Im as qY,Iz as bZ,JT as hY,Jm as nX,Kz as aX,Mj as bQ,Pj as Oq,Qy as oX,TT as qQ,Tp as bJ,UP as vQ,Uj as wX,Up as uY,VI as xJ,WI as lY,ZP as _X,ay as vJ,bU as JQ,by as gJ,cU as QQ,co as PZ,cy as yq,do as cY,eo as T,fU as YX,fo as cZ,go as qZ,ho as E0,ko as uZ,lL as o0,lo as g0,mL as nY,mT as uq,qL as U0,rG as JJ,rL as aq,ro as r0,sG as jY,sL as sq,tH as Tq,tL as tq,uH as jq,vH as $q,vo as _J,wH as wq,xH as _q,yH as bq,zH as vq}from"./cli-1.1.20-sx7811qs.mjs";import{lV as mJ,mV as pJ,qV as iY}from"./cli-1.1.20-g41hgcbn.mjs";import{_W as uJ,gX as rY}from"./cli-1.1.20-xk4edb6r.mjs";import{BY as b,CY as wJ,DY as lZ,GY as XY,HY as qG,JY as dZ,KY as T0,MY as M0,PY as GY,QY as JG,nY as RZ,oY as X0}from"./cli-1.1.20-ry7grtff.mjs";import{$Z as n0,DZ as $Z,G0 as $J,H1 as SZ,MZ as xZ,NZ as TJ,SZ as f0,UZ as iX,a0 as jJ,a1 as U,c1 as K,e0 as xY,m1 as eQ}from"./cli-1.1.20-r4xfymtx.mjs";import{c4 as WZ,d4 as G,e4 as z,f4 as x}from"./cli-1.1.20-azb7xdf4.mjs";import{g4 as FZ}from"./cli-1.1.20-9p9rns5w.mjs";import{r4 as CQ,s4 as kX}from"./cli-1.1.20-a9fgbqdg.mjs";import{$5 as l0,B8 as tQ,E5 as nZ,F5 as mY,Q6 as Pq,Q8 as uX,V6 as fJ,X5 as Y0,Y5 as i0,Z4 as sQ,_5 as CJ,b6 as SJ,b7 as k0,d5 as dX,f7 as yJ,g6 as hJ,p6 as pY}from"./cli-1.1.20-rvn2axad.mjs";import{k9 as KZ,l9 as OJ}from"./cli-1.1.20-tbtnrzgn.mjs";import{Aga as zQ,Ega as GX,Hga as wZ,Kga as EJ,Uda as d0,Wda as ZZ,Wga as MZ,Zda as u0,_ea as y,bfa as f,cfa as RJ,cha as I0,hfa as BJ,hga as GQ,ica as PJ,jca as AJ,kca as LJ,kea as gY,kga as VQ,lca as MJ,lfa as UJ,lga as XX,mfa as kJ,nga as KQ,qca as vY,uga as HQ,wfa as IJ,wga as WQ,x_ as CZ,y_ as v0}from"./cli-1.1.20-hrw31bb0.mjs";import{rha as D0,sha as LZ,tha as aQ,yha as S0,zha as Jq}from"./cli-1.1.20-xvytevdy.mjs";import{Rha as NJ}from"./cli-1.1.20-m9x20s8d.mjs";import{aia as FJ,mia as bY}from"./cli-1.1.20-rmvq7swt.mjs";import{jja as L0,lja as fq}from"./cli-1.1.20-nkrcdd4b.mjs";import{Zja as S,aka as _Y}from"./cli-1.1.20-ka6crh5z.mjs";import{Kka as cX,ala as _Z,dla as qq}from"./cli-1.1.20-gkc4ptt0.mjs";import{Fla as Dq,Hla as $X}from"./cli-1.1.20-2c9529sa.mjs";import{Nla as zJ,Pla as XQ,Vla as DJ}from"./cli-1.1.20-003ssrqs.mjs";import{Apa as WJ,Koa as oQ,Qna as uQ,Rna as iQ,Una as lQ,moa as nQ,noa as rQ,yra as hq,zna as Sq,zoa as Nq,zpa as c0}from"./cli-1.1.20-j4a7q58c.mjs";import{pta as d,tta as r}from"./cli-1.1.20-0sgvc4nn.mjs";function MY(){let q=Sq(),Q=uq(q)??G(K,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"1.1.20"},{label:"Session name",value:Q},{label:"Session ID",value:q},{label:"cwd",value:L0()},...gq(),...mq()]}function RY({mainLoopModel:q,mcp:Z,theme:Q,context:Y}){return[{label:"Model",value:pq(q)},...jq(Z.clients,Y.options.ideInstallationStatus,Q),...$q(Z.clients,Q),...Tq(),..._q()]}async function xq(){return[...await bq(),...await vq(),...await wq()]}function BY(q){let Z=R0.c(8),{value:Q}=q;if(Array.isArray(Q)){let Y;if(Z[0]!==Q){let W;if(Z[2]!==Q.length)W=(D,N)=>z(K,{children:[D,N<Q.length-1?",":""]},N),Z[2]=Q.length,Z[3]=W;else W=Z[3];Y=Q.map(W),Z[0]=Q,Z[1]=Y}else Y=Z[1];let V;if(Z[4]!==Y)V=G(U,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:Y}),Z[4]=Y,Z[5]=V;else V=Z[5];return V}if(typeof Q==="string"){let Y;if(Z[6]!==Q)Y=G(K,{children:Q}),Z[6]=Q,Z[7]=Y;else Y=Z[7];return Y}return Q}function cq(q){let Z=R0.c(20),{context:Q,diagnosticsPromise:Y}=q,V=EZ(EY),W=EZ(IY),[D]=xZ(),N;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))N=MY(),Z[0]=N;else N=Z[0];let L;if(Z[1]!==Q||Z[2]!==V||Z[3]!==W||Z[4]!==D)L=RY({mainLoopModel:V,mcp:W,theme:D,context:Q}),Z[1]=Q,Z[2]=V,Z[3]=W,Z[4]=D,Z[5]=L;else L=Z[5];let M;if(Z[6]!==L)M=[N,L],Z[6]=L,Z[7]=M;else M=Z[7];let H=M,O=dZ()?1:void 0,F;if(Z[8]!==H)F=H.map(UY),Z[8]=H,Z[9]=F;else F=Z[9];let P;if(Z[10]!==Y)P=G(B0.Suspense,{fallback:null,children:G(CY,{promise:Y})}),Z[10]=Y,Z[11]=P;else P=Z[11];let R;if(Z[12]!==O||Z[13]!==F||Z[14]!==P)R=z(U,{flexDirection:"column",gap:1,flexGrow:O,children:[F,P]}),Z[12]=O,Z[13]=F,Z[14]=P,Z[15]=R;else R=Z[15];let I;if(Z[16]===Symbol.for("react.memo_cache_sentinel"))I=G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),Z[16]=I;else I=Z[16];let k;if(Z[17]!==O||Z[18]!==R)k=z(U,{flexDirection:"column",flexGrow:O,children:[R,I]}),Z[17]=O,Z[18]=R,Z[19]=k;else k=Z[19];return k}function UY(q,Z){return q.length>0&&G(U,{flexDirection:"column",children:q.map(kY)},Z)}function kY(q,Z){let{label:Q,value:Y}=q;return z(U,{flexDirection:"row",gap:1,flexShrink:0,children:[Q!==void 0&&z(K,{bold:!0,children:[Q,":"]}),G(BY,{value:Y})]},Z)}function IY(q){return q.mcp}function EY(q){return q.mainLoopModel}function CY(q){let Z=R0.c(5),{promise:Q}=q,Y=B0.use(Q);if(Y.length===0)return null;let V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=G(K,{bold:!0,children:"System Diagnostics"}),Z[0]=V;else V=Z[0];let W;if(Z[1]!==Y)W=Y.map(SY),Z[1]=Y,Z[2]=W;else W=Z[2];let D;if(Z[3]!==W)D=z(U,{flexDirection:"column",paddingBottom:1,children:[V,W]}),Z[3]=W,Z[4]=D;else D=Z[4];return D}function SY(q,Z){return z(U,{flexDirection:"row",gap:1,paddingX:1,children:[G(K,{color:"error",children:CZ.warning}),typeof q==="string"?G(K,{wrap:"wrap",children:q}):q]},Z)}var R0,B0;var dq=r(()=>{v0();hq();M0();SZ();yq();fq();hY();LY();cZ();x();R0=d($Z(),1),B0=d(FZ(),1)});function nq(q){let Z=lq.c(17),{currentVersion:Q,onChoice:Y}=q,V;if(Z[0]!==Y)V=function(k){Y(k)},Z[0]=Y,Z[1]=V;else V=Z[1];let W=V,D;if(Z[2]!==Y)D=function(){Y("cancel")},Z[2]=Y,Z[3]=D;else D=Z[3];let N=D,L;if(Z[4]!==Q)L=z(K,{children:["The stable channel may have an older version than what you're currently running (",Q,")."]}),Z[4]=Q,Z[5]=L;else L=Z[5];let M;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))M=G(K,{dimColor:!0,children:"How would you like to handle this?"}),Z[6]=M;else M=Z[6];let H;if(Z[7]===Symbol.for("react.memo_cache_sentinel"))H={label:"Allow possible downgrade to stable version",value:"downgrade"},Z[7]=H;else H=Z[7];let O=`Stay on current version (${Q}) until stable catches up`,F;if(Z[8]!==O)F=[H,{label:O,value:"stay"}],Z[8]=O,Z[9]=F;else F=Z[9];let P;if(Z[10]!==W||Z[11]!==F)P=G(iZ,{options:F,onChange:W}),Z[10]=W,Z[11]=F,Z[12]=P;else P=Z[12];let R;if(Z[13]!==N||Z[14]!==L||Z[15]!==P)R=z(uZ,{title:"Switch to Stable Channel",onCancel:N,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[L,M,P]}),Z[13]=N,Z[14]=L,Z[15]=P,Z[16]=R;else R=Z[16];return R}var lq;var rq=r(()=>{SZ();iq();g0();x();lq=d($Z(),1)});function oq(q){return Object.entries(q).map(([Z,Q])=>({label:Q?.name??yY,value:Z,description:Q?.description??TY}))}function ZJ(q){let Z=eq.c(16),{initialStyle:Q,onComplete:Y,onCancel:V,isStandaloneCommand:W}=q,D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D=[],Z[0]=D;else D=Z[0];let[N,L]=q0.useState(D),[M,H]=q0.useState(!0),O,F;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))O=()=>{sq(L0()).then((u)=>{let m=oq(u);L(m),H(!1)}).catch(()=>{let u=oq(aq);L(u),H(!1)})},F=[],Z[1]=O,Z[2]=F;else O=Z[1],F=Z[2];q0.useEffect(O,F);let P;if(Z[3]!==Y)P=(u)=>{Y(u)},Z[3]=Y,Z[4]=P;else P=Z[4];let R=P,I=!W,k=!W,_;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))_=G(U,{marginTop:1,children:G(K,{dimColor:!0,children:"This changes how Claudin communicates with you"})}),Z[5]=_;else _=Z[5];let t;if(Z[6]!==R||Z[7]!==Q||Z[8]!==M||Z[9]!==N)t=z(U,{flexDirection:"column",gap:1,children:[_,M?G(K,{dimColor:!0,children:"Loading output styles…"}):G(iZ,{options:N,onChange:R,visibleOptionCount:10,defaultValue:Q})]}),Z[6]=R,Z[7]=Q,Z[8]=M,Z[9]=N,Z[10]=t;else t=Z[10];let w;if(Z[11]!==V||Z[12]!==I||Z[13]!==k||Z[14]!==t)w=G(uZ,{title:"Preferred output style",onCancel:V,hideInputGuide:I,hideBorder:k,children:t}),Z[11]=V,Z[12]=I,Z[13]=k,Z[14]=t,Z[15]=w;else w=Z[15];return w}var eq,q0,yY="Default",TY="Claudin completes coding tasks efficiently and provides concise responses";var qJ=r(()=>{tq();SZ();fq();fY();g0();x();eq=d($Z(),1),q0=d(FZ(),1)});function YJ(q){let Z=QJ.c(13),{initialLanguage:Q,onComplete:Y,onCancel:V}=q,[W,D]=m0.useState(Q),[N,L]=m0.useState((Q??"").length),M;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))M={context:"Settings"},Z[0]=M;else M=Z[0];b("confirm:no",V,M);let H;if(Z[1]!==W||Z[2]!==Y)H=function(){let w=W?.trim();Y(w||void 0)},Z[1]=W,Z[2]=Y,Z[3]=H;else H=Z[3];let O=H,F;if(Z[4]===Symbol.for("react.memo_cache_sentinel"))F=G(K,{children:"Enter your preferred response and voice language:"}),Z[4]=F;else F=Z[4];let P;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))P=G(K,{children:CZ.pointer}),Z[5]=P;else P=Z[5];let R=W??"",I;if(Z[6]!==N||Z[7]!==O||Z[8]!==R)I=z(U,{flexDirection:"row",gap:1,children:[P,G(JJ,{value:R,onChange:D,onSubmit:O,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${CZ.ellipsis}`,columns:60,cursorOffset:N,onChangeCursorOffset:L})]}),Z[6]=N,Z[7]=O,Z[8]=R,Z[9]=I;else I=Z[9];let k;if(Z[10]===Symbol.for("react.memo_cache_sentinel"))k=G(K,{dimColor:!0,children:"Leave empty for default (English)"}),Z[10]=k;else k=Z[10];let _;if(Z[11]!==I)_=z(U,{flexDirection:"column",gap:1,children:[F,I,k]}),Z[11]=I,Z[12]=_;else _=Z[12];return _}var QJ,m0;var XJ=r(()=>{v0();SZ();lZ();jY();x();QJ=d($Z(),1),m0=d(FZ(),1)});function GJ(q,{grouped:Z=!0}={}){if(!Z)return q.map((W)=>({kind:"setting",id:W.id,item:W}));let Q=new Map;for(let W of q){let D=Q.get(W.id);if(D)D.push(W);else Q.set(W.id,[W])}let Y=[],V=(W,D)=>{if(D.length===0)return;if(Y.length>0)Y.push({kind:"spacer",id:`spacer:${W.id}`});Y.push({kind:"header",id:`header:${W.id}`,label:W.label});for(let N of D)Y.push({kind:"setting",id:N.id,item:N})};for(let W of $Y){let D=[];for(let N of W.settingIds){let L=Q.get(N);if(!L)continue;D.push(...L),Q.delete(N)}V(W,D)}return V(wY,[...Q.values()].flat()),Y}function hZ(q){return q?.kind==="setting"}function Q0(q){return q.findIndex((Z)=>hZ(Z))}function p0(q){for(let Z=q.length-1;Z>=0;Z--)if(hZ(q[Z]))return Z;return-1}function J0(q,Z,Q){for(let Y=Z+Q;Y>=0&&Y<q.length;Y+=Q)if(hZ(q[Y]))return Y;return hZ(q[Z])?Z:Q0(q)}function VJ(q,Z,Q){if(Q===1){for(let V=Z+1;V<q.length;V++)if(q[V]?.kind==="header")return J0(q,V,1);return p0(q)}let Y=-1;for(let V=Z-1;V>=0;V--)if(q[V]?.kind==="header"){Y=V;break}for(let V=Y-1;V>=0;V--)if(q[V]?.kind==="header")return J0(q,V,1);return Q0(q)}function x0(q){return q.reduce((Z,Q)=>hZ(Q)?Z+1:Z,0)}var $Y,wY;var KJ=r(()=>{$Y=[{id:"model",label:"Model & thinking",settingIds:["model","thinkingEnabled","fastMode","outputStyle","language","autoCompactEnabled"]},{id:"agents",label:"Agents & workflows",settingIds:["autoBackgroundAgentsEnabled","workflowsDefaultBackground","teammateMode","teammateDefaultModel"]},{id:"tools",label:"Tools & permissions",settingIds:["defaultPermissionMode","useAutoModeDuringPlan","bashOutputFilterEnabled","bashOutputFilterCapEnabled","toolResultSummarizerEnabled","repeatedFailureHintEnabled","fileCheckpointingEnabled","respectGitignore"]},{id:"interface",label:"Interface",settingIds:["theme","defaultView","verbose","showTurnDuration","collapseFileWritesEnabled","showCacheStats","spinnerTipsEnabled","prefersReducedMotion","prStatusFooterEnabled","promptSuggestionEnabled","editorMode","inlineImagesMode"]},{id:"terminal",label:"Terminal",settingIds:["terminalRenderer","frameRate","terminalProgressBarEnabled","showStatusInTerminalTab","copyOnSelect","copyFullResponse"]},{id:"notifications",label:"Notifications",settingIds:["notifChannel","taskCompleteNotifEnabled","inputNeededNotifEnabled","agentPushNotifEnabled"]},{id:"integrations",label:"Integrations",settingIds:["diffTool","autoConnectIde","autoInstallIdeExtension","remoteControlAtStartup"]},{id:"context",label:"Context & privacy",settingIds:["thinkingHistoryRedactionEnabled","narrationHistoryRedactionEnabled","showExternalIncludesDialog"]},{id:"updates",label:"Updates & account",settingIds:["autoUpdatesChannel","apiKey"]}],wY={id:"other",label:"Other",settingIds:[]}});function eJ({onClose:q,context:Z,setTabsHidden:Q,onIsSearchModeChange:Y,contentHeight:V}){let{headerFocused:W,focusHeader:D}=cJ(),N=dZ(),[,L]=xZ(),M=TJ(),[H,O]=v.useState(f()),F=l.useRef(f()),[P,R]=v.useState(u0()),I=l.useRef(u0()),[k,_]=v.useState(P?.outputStyle||U0),t=l.useRef(k),[w,u]=v.useState(P?.language),m=l.useRef(w),[j,QZ]=v.useState(0),[o,YZ]=v.useState(0),[n,zZ]=v.useState(!0),jZ=$J(),[e]=v.useState(()=>n0()),{rows:vZ,columns:XZ}=RZ(),F0=Math.max(24,Math.min(44,XZ-18)),C=V??Math.min(Math.floor(vZ*0.8),30),p=Math.max(5,C-10),BZ=EZ((J)=>J.mainLoopModel),N0=EZ((J)=>J.verbose),gZ=EZ((J)=>J.thinkingEnabled),mZ=EZ((J)=>Y0()?J.fastMode:!1),pZ=EZ((J)=>J.promptSuggestionEnabled),j0=!1,GZ=vJ(),[tZ,E]=v.useState({}),$=l.useRef(gZ),[a]=v.useState(()=>d0("localSettings")),[VZ]=v.useState(()=>d0("userSettings")),HZ=l.useRef(M),eZ=gJ(),[UZ]=v.useState(()=>{let J=eZ.getState();return{mainLoopModel:J.mainLoopModel,mainLoopModelForSession:J.mainLoopModelForSession,verbose:J.verbose,thinkingEnabled:J.thinkingEnabled,fastMode:J.fastMode,promptSuggestionEnabled:J.promptSuggestionEnabled,isBriefOnly:J.isBriefOnly,replBridgeEnabled:J.replBridgeEnabled,replBridgeOutboundOnly:J.replBridgeOutboundOnly,settings:J.settings}}),[$0]=v.useState(()=>c0()),NZ=l.useRef(!1),[HY,Z0]=v.useState(!1),[i,g]=v.useState(null),{query:kZ,setQuery:P0,cursorOffset:WY}=oJ({isActive:n&&i===null&&!W,onExit:()=>zZ(!1),onExitUp:D,passthroughCtrlKeys:["c","d"]}),Mq=n&&!W;l.useEffect(()=>{Y?.(Mq)},[Mq,Y]);let zY=_J(Z.options.mcpClients),DY=!zJ(process.env.CLAUDIN_DISABLE_FILE_CHECKPOINTING),Rq=l.use(qQ(!0)),OY=QQ(Rq),IZ=kJ();function Bq(J){S("",{from_model:BZ,to_model:J}),GZ((A)=>({...A,mainLoopModel:J,mainLoopModelForSession:null})),E((A)=>{let B=k0(J)+(lJ(J,!1,fJ())?" · Billed as extra usage":"");if("model"in A){let{model:h,...DZ}=A;return{...DZ,model:B}}return{...A,model:B}})}function FY(J){y((X)=>({...X,verbose:J})),O({...f(),verbose:J}),GZ((X)=>({...X,verbose:J})),E((X)=>{if("verbose"in X){let{verbose:A,...B}=X;return B}return{...X,verbose:J}})}let w0=[{id:"autoCompactEnabled",label:"Auto-compact",value:H.autoCompactEnabled,type:"boolean",onChange(J){y((X)=>({...X,autoCompactEnabled:J})),O({...f(),autoCompactEnabled:J}),S("",{enabled:J})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:H.thinkingHistoryRedactionEnabled,type:"boolean",onChange(J){y((X)=>({...X,thinkingHistoryRedactionEnabled:J})),O({...f(),thinkingHistoryRedactionEnabled:J}),S("claudin_thinking_history_redaction_setting_changed",{enabled:J})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:H.narrationHistoryRedactionEnabled,type:"boolean",onChange(J){y((X)=>({...X,narrationHistoryRedactionEnabled:J})),O({...f(),narrationHistoryRedactionEnabled:J}),S("claudin_narration_history_redaction_setting_changed",{enabled:J})}},{id:"showCacheStats",label:"Cache stats display",value:H.showCacheStats,options:["off","compact","full"],type:"enum",onChange(J){let X=J==="off"||J==="compact"||J==="full"?J:"compact";y((A)=>({...A,showCacheStats:X})),O({...f(),showCacheStats:X}),S("",{mode:X})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:H.toolResultSummarizerEnabled,type:"boolean",onChange(J){y((X)=>({...X,toolResultSummarizerEnabled:J})),O({...f(),toolResultSummarizerEnabled:J}),S("claudin_tool_result_summarizer_setting_changed",{enabled:J})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:H.bashOutputFilterEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,bashOutputFilterEnabled:J})),O({...f(),bashOutputFilterEnabled:J}),S("claudin_bash_output_filter_setting_changed",{enabled:J})}},{id:"bashOutputFilterCapEnabled",label:"Bash output line cap",value:H.bashOutputFilterCapEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,bashOutputFilterCapEnabled:J})),O({...f(),bashOutputFilterCapEnabled:J}),S("claudin_bash_output_filter_cap_setting_changed",{enabled:J})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:H.autoBackgroundAgentsEnabled===!0,type:"boolean",onChange(J){y((X)=>({...X,autoBackgroundAgentsEnabled:J})),O({...f(),autoBackgroundAgentsEnabled:J}),S("claudin_auto_background_agents_setting_changed",{enabled:J})}},{id:"repeatedFailureHintEnabled",label:"Repeated-failure hint",value:H.repeatedFailureHintEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,repeatedFailureHintEnabled:J})),O({...f(),repeatedFailureHintEnabled:J}),S("claudin_repeated_failure_hint_setting_changed",{enabled:J})}},{id:"collapseFileWritesEnabled",label:"Collapse file writes",value:H.collapseFileWritesEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,collapseFileWritesEnabled:J})),O({...f(),collapseFileWritesEnabled:J}),S("claudin_collapse_file_writes_setting_changed",{enabled:J})}},{id:"workflowsDefaultBackground",label:"Workflows run in background",value:H.workflowsDefaultBackground===!0,type:"boolean",onChange(J){y((X)=>({...X,workflowsDefaultBackground:J})),O({...f(),workflowsDefaultBackground:J})}},{id:"inlineImagesMode",label:"Inline terminal images",value:H.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(J){let X=J==="auto"||J==="enable"||J==="disable"?J:"auto";y((A)=>({...A,inlineImagesMode:X})),O({...f(),inlineImagesMode:X}),S("claudin_inline_images_setting_changed",{mode:X})}},{id:"spinnerTipsEnabled",label:"Show tips",value:P?.spinnerTipsEnabled??!0,type:"boolean",onChange(J){ZZ("localSettings",{spinnerTipsEnabled:J}),R((X)=>({...X,spinnerTipsEnabled:J})),S("",{enabled:J})}},{id:"prefersReducedMotion",label:"Reduce motion",value:P?.prefersReducedMotion??!1,type:"boolean",onChange(J){ZZ("localSettings",{prefersReducedMotion:J}),R((X)=>({...X,prefersReducedMotion:J})),GZ((X)=>({...X,settings:{...X.settings,prefersReducedMotion:J}})),S("",{enabled:J})}},{id:"thinkingEnabled",label:"Thinking mode",value:gZ??!0,type:"boolean",onChange(J){GZ((X)=>({...X,thinkingEnabled:J})),ZZ("userSettings",{alwaysThinkingEnabled:J?void 0:!1}),S("",{enabled:J})}},...Y0()&&i0()?[{id:"fastMode",label:`Fast mode (${CJ} only)`,value:!!mZ,type:"boolean",onChange(J){if(hJ(),ZZ("userSettings",{fastMode:J?!0:void 0}),J)GZ((X)=>({...X,mainLoopModel:l0(),mainLoopModelForSession:null,fastMode:!0})),E((X)=>({...X,model:l0(),"Fast mode":"ON"}));else GZ((X)=>({...X,fastMode:!1})),E((X)=>({...X,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:pZ,type:"boolean",onChange(J){GZ((X)=>({...X,promptSuggestionEnabled:J})),ZZ("userSettings",{promptSuggestionEnabled:J?void 0:!1})}},...DY?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:H.fileCheckpointingEnabled,type:"boolean",onChange(J){y((X)=>({...X,fileCheckpointingEnabled:J})),O({...f(),fileCheckpointingEnabled:J}),S("",{enabled:J})}}]:[],{id:"verbose",label:"Verbose output",value:N0,type:"boolean",onChange:FY},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:H.terminalProgressBarEnabled,type:"boolean",onChange(J){y((X)=>({...X,terminalProgressBarEnabled:J})),O({...f(),terminalProgressBarEnabled:J}),S("",{enabled:J})}},...FJ("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:H.showStatusInTerminalTab??!1,type:"boolean",onChange(J){y((X)=>({...X,showStatusInTerminalTab:J})),O({...f(),showStatusInTerminalTab:J}),S("",{enabled:J})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:H.showTurnDuration,type:"boolean",onChange(J){y((X)=>({...X,showTurnDuration:J})),O({...f(),showTurnDuration:J}),S("",{enabled:J})}},{id:"defaultPermissionMode",label:"Default permission mode",value:P?.permissions?.defaultMode||"default",options:(()=>{let J=["default","plan"],X=NJ,A=["bypassPermissions"];return[...J,...X.filter((B)=>!J.includes(B)&&!A.includes(B))]})(),type:"enum",onChange(J){let X=LJ(J),A=PJ(X)?AJ(X):X,B=ZZ("userSettings",{permissions:{...P?.permissions,defaultMode:A}});if(B.error){MZ(B.error);return}R((h)=>({...h,permissions:{...h?.permissions,defaultMode:A}})),E((h)=>({...h,defaultPermissionMode:J})),S("",{setting:"defaultPermissionMode",value:J})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:P?.useAutoModeDuringPlan??!0,type:"boolean",onChange(J){ZZ("userSettings",{useAutoModeDuringPlan:J}),R((X)=>({...X,useAutoModeDuringPlan:J})),GZ((X)=>{let A=o0(X.toolPermissionContext);if(A===X.toolPermissionContext)return X;return{...X,toolPermissionContext:A}}),E((X)=>({...X,"Use auto mode during plan":J}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:H.respectGitignore,type:"boolean",onChange(J){y((X)=>({...X,respectGitignore:J})),O({...f(),respectGitignore:J}),S("",{enabled:J})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy)",searchText:"Always copy full response skip /copy picker",value:H.copyFullResponse,type:"boolean",onChange(J){y((X)=>({...X,copyFullResponse:J})),O({...f(),copyFullResponse:J}),S("",{setting:"copyFullResponse",value:String(J)})}},...e?[{id:"copyOnSelect",label:"Copy on select",value:H.copyOnSelect??!0,type:"boolean",onChange(J){y((X)=>({...X,copyOnSelect:J})),O({...f(),copyOnSelect:J}),S("",{setting:"copyOnSelect",value:String(J)})}}]:[],{id:"terminalRenderer",label:jJ()?"Terminal UI renderer (env)":"Terminal UI renderer",searchText:"terminal ui renderer fullscreen flicker-free alt-screen",value:n0()?"fullscreen":"default",options:["default","fullscreen"],type:"enum",onChange(J){let X=J==="fullscreen";y((A)=>({...A,flickerFreeMode:X})),O({...f(),flickerFreeMode:X}),S("",{setting:"flickerFreeMode",value:String(X)})}},{id:"frameRate",label:sJ()?`Frame rate (env, ${s0()}fps)`:`Frame rate (${s0()}fps)`,searchText:"frame rate fps animation smoothness gpu terminal refresh",value:H.renderFrameRate??"auto",options:[...aJ],type:"enum",onChange(J){y((X)=>({...X,renderFrameRate:J})),O({...f(),renderFrameRate:J}),S("",{setting:"renderFrameRate",value:String(J)})}},IZ?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:P?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:M,type:"managedEnum",onChange:L},{id:"notifChannel",label:"Notifications",value:H.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(J){y((X)=>({...X,preferredNotifChannel:J})),O({...f(),preferredNotifChannel:J})}},{id:"outputStyle",label:"Output style",value:k,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:w??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:H.editorMode==="emacs"?"normal":H.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(J){y((X)=>({...X,editorMode:J})),O({...f(),editorMode:J}),S("",{mode:J,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:H.prStatusFooterEnabled??!0,type:"boolean",onChange(J){y((X)=>{if(X.prStatusFooterEnabled===J)return X;return{...X,prStatusFooterEnabled:J}}),O({...f(),prStatusFooterEnabled:J}),S("",{enabled:J})}},{id:"model",label:"Model",value:BZ===null?"Default (recommended)":BZ,type:"managedEnum",onChange:Bq},...zY?[{id:"diffTool",label:"Diff tool",value:H.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(J){y((X)=>({...X,diffTool:J})),O({...f(),diffTool:J}),S("",{tool:J,source:"config_panel"})}}]:[],...!r0()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:H.autoConnectIde??!1,type:"boolean",onChange(J){y((X)=>({...X,autoConnectIde:J})),O({...f(),autoConnectIde:J}),S("",{enabled:J,source:"config_panel"})}}]:[],...r0()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:H.autoInstallIdeExtension??!0,type:"boolean",onChange(J){y((X)=>({...X,autoInstallIdeExtension:J})),O({...f(),autoInstallIdeExtension:J}),S("",{enabled:J,source:"config_panel"})}}]:[],...bJ()?(()=>{let J=mJ();return[{id:"teammateMode",label:J?`Teammate mode [overridden: ${J}]`:"Teammate mode",value:H.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(A){if(A!=="auto"&&A!=="tmux"&&A!=="in-process")return;pJ(A),y((B)=>({...B,teammateMode:A})),O({...f(),teammateMode:A}),S("",{mode:A})}},{id:"teammateDefaultModel",label:"Default teammate model",value:HJ(H.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...uJ()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:H.remoteControlAtStartup===void 0?"default":String(H.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(J){if(J==="default")y((A)=>{if(A.remoteControlAtStartup===void 0)return A;let B={...A};return delete B.remoteControlAtStartup,B}),O({...f(),remoteControlAtStartup:void 0});else{let A=J==="true";y((B)=>{if(B.remoteControlAtStartup===A)return B;return{...B,remoteControlAtStartup:A}}),O({...f(),remoteControlAtStartup:A})}let X=RJ();GZ((A)=>{if(A.replBridgeEnabled===X&&!A.replBridgeOutboundOnly)return A;return{...A,replBridgeEnabled:X,replBridgeOutboundOnly:!1}})}}]:[],...OY?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(BJ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let J=wZ(),X=J?.transport==="anthropic"?J.apiKey?.trim():void 0;if(!X)return[];return[{id:"apiKey",label:z(K,{children:["Use custom API key:"," ",G(K,{bold:!0,children:nZ(X)})]}),searchText:"Use custom API key",value:Boolean(H.customApiKeyResponses?.approved?.includes(nZ(X))),type:"boolean",onChange(A){y((B)=>{let h={...B};if(!h.customApiKeyResponses)h.customApiKeyResponses={approved:[],rejected:[]};if(!h.customApiKeyResponses.approved)h.customApiKeyResponses={...h.customApiKeyResponses,approved:[]};if(!h.customApiKeyResponses.rejected)h.customApiKeyResponses={...h.customApiKeyResponses,rejected:[]};{let DZ=nZ(X);if(A)h.customApiKeyResponses={...h.customApiKeyResponses,approved:[...(h.customApiKeyResponses.approved??[]).filter((OZ)=>OZ!==DZ),DZ],rejected:(h.customApiKeyResponses.rejected??[]).filter((OZ)=>OZ!==DZ)};else h.customApiKeyResponses={...h.customApiKeyResponses,approved:(h.customApiKeyResponses.approved??[]).filter((OZ)=>OZ!==DZ),rejected:[...(h.customApiKeyResponses.rejected??[]).filter((OZ)=>OZ!==DZ),DZ]}}return h}),O(f())}}]})()],Uq=l.useMemo(()=>{if(!kZ)return w0;let J=kZ.toLowerCase();return w0.filter((X)=>{if(X.id.toLowerCase().includes(J))return!0;return("searchText"in X?X.searchText:X.label).toLowerCase().includes(J)})},[w0,kZ]),s=l.useMemo(()=>GJ(Uq,{grouped:kZ===""}),[Uq,kZ]),kq=x0(s.slice(0,o)),Iq=x0(s.slice(o+p));l.useEffect(()=>{if(j>=s.length){let J=Math.max(0,p0(s));QZ(J),YZ(Math.max(0,J-p+1));return}if(!hZ(s[j])){let J=Math.max(0,J0(s,j,1));QZ(J),YZ((X)=>J>=X+p?J-p+1:X);return}YZ((J)=>{if(j<J)return j;if(j>=J+p)return j-p+1;return J})},[s,j,p]);let _0=v.useCallback((J)=>{YZ((X)=>{if(J<X)return J;if(J>=X+p)return J-p+1;return X})},[p]),NY=v.useCallback(()=>{if(i!==null)return;let J=Object.entries(tZ).map(([OZ,Cq])=>{return S("",{key:OZ,value:Cq}),`Set ${OZ} to ${KZ.bold(Cq)}`}),X=wZ(),B=X?.transport==="anthropic"?X.apiKey?.trim():void 0,h=Boolean(B&&F.current.customApiKeyResponses?.approved?.includes(nZ(B))),DZ=Boolean(B&&H.customApiKeyResponses?.approved?.includes(nZ(B)));if(h!==DZ)J.push(`${DZ?"Enabled":"Disabled"} custom API key`),S("",{key:"env.ANTHROPIC_API_KEY",value:DZ});if(H.theme!==F.current.theme)J.push(`Set theme to ${KZ.bold(H.theme)}`);if(H.preferredNotifChannel!==F.current.preferredNotifChannel)J.push(`Set notifications to ${KZ.bold(H.preferredNotifChannel)}`);if(k!==t.current)J.push(`Set output style to ${KZ.bold(k)}`);if(w!==m.current)J.push(`Set response language to ${KZ.bold(w??"Default (English)")}`);if(H.editorMode!==F.current.editorMode)J.push(`Set editor mode to ${KZ.bold(H.editorMode||"emacs")}`);if(H.diffTool!==F.current.diffTool)J.push(`Set diff tool to ${KZ.bold(H.diffTool)}`);if(H.autoConnectIde!==F.current.autoConnectIde)J.push(`${H.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(H.autoInstallIdeExtension!==F.current.autoInstallIdeExtension)J.push(`${H.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(H.autoCompactEnabled!==F.current.autoCompactEnabled)J.push(`${H.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(H.thinkingHistoryRedactionEnabled!==F.current.thinkingHistoryRedactionEnabled)J.push(`${H.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(H.narrationHistoryRedactionEnabled!==F.current.narrationHistoryRedactionEnabled)J.push(`${H.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(H.toolResultSummarizerEnabled!==F.current.toolResultSummarizerEnabled)J.push(`${H.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(H.autoBackgroundAgentsEnabled!==F.current.autoBackgroundAgentsEnabled)J.push(`${H.autoBackgroundAgentsEnabled===!0?"Enabled":"Disabled"} auto-background agents`);if(H.workflowsDefaultBackground!==F.current.workflowsDefaultBackground)J.push(`${H.workflowsDefaultBackground===!0?"Enabled":"Disabled"} workflows run in background`);if(H.bashOutputFilterEnabled!==F.current.bashOutputFilterEnabled)J.push(`${H.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(H.bashOutputFilterCapEnabled!==F.current.bashOutputFilterCapEnabled)J.push(`${H.bashOutputFilterCapEnabled!==!1?"Enabled":"Disabled"} bash output line cap`);if(H.repeatedFailureHintEnabled!==F.current.repeatedFailureHintEnabled)J.push(`${H.repeatedFailureHintEnabled!==!1?"Enabled":"Disabled"} repeated-failure hint`);if(H.collapseFileWritesEnabled!==F.current.collapseFileWritesEnabled)J.push(`${H.collapseFileWritesEnabled!==!1?"Enabled":"Disabled"} collapse file writes`);if(H.respectGitignore!==F.current.respectGitignore)J.push(`${H.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(H.copyFullResponse!==F.current.copyFullResponse)J.push(`${H.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(H.copyOnSelect!==F.current.copyOnSelect)J.push(`${H.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(H.flickerFreeMode!==F.current.flickerFreeMode)J.push(`Set terminal UI renderer to ${KZ.bold(H.flickerFreeMode?"fullscreen":"default")}`);if(H.renderFrameRate!==F.current.renderFrameRate)J.push(`Set frame rate to ${KZ.bold(H.renderFrameRate??"auto")} (applies on restart)`);if(H.terminalProgressBarEnabled!==F.current.terminalProgressBarEnabled)J.push(`${H.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(H.showStatusInTerminalTab!==F.current.showStatusInTerminalTab)J.push(`${H.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(H.showTurnDuration!==F.current.showTurnDuration)J.push(`${H.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(H.remoteControlAtStartup!==F.current.remoteControlAtStartup){let OZ=H.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${H.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;J.push(OZ)}if(P?.autoUpdatesChannel!==I.current?.autoUpdatesChannel)J.push(`Set auto-update channel to ${KZ.bold(P?.autoUpdatesChannel??"latest")}`);if(J.length>0)q(J.join(`
|
|
2
|
-
`));else q("Config dialog dismissed",{display:"system"})},[i,tZ,H,BZ,k,w,P?.autoUpdatesChannel,Y0()?P?.fastMode:void 0,q]),Eq=v.useCallback(()=>{if(M!==HZ.current)L(HZ.current);y(()=>F.current);let J=a;ZZ("localSettings",{spinnerTipsEnabled:J?.spinnerTipsEnabled,prefersReducedMotion:J?.prefersReducedMotion,defaultView:J?.defaultView,outputStyle:J?.outputStyle});let X=VZ;ZZ("userSettings",{alwaysThinkingEnabled:X?.alwaysThinkingEnabled,fastMode:X?.fastMode,promptSuggestionEnabled:X?.promptSuggestionEnabled,autoUpdatesChannel:X?.autoUpdatesChannel,minimumVersion:X?.minimumVersion,language:X?.language,...{useAutoModeDuringPlan:X?.useAutoModeDuringPlan},syntaxHighlightingDisabled:X?.syntaxHighlightingDisabled,permissions:X?.permissions===void 0?void 0:{...X.permissions,defaultMode:X.permissions.defaultMode}});let A=UZ;if(GZ((B)=>({...B,mainLoopModel:A.mainLoopModel,mainLoopModelForSession:A.mainLoopModelForSession,verbose:A.verbose,thinkingEnabled:A.thinkingEnabled,fastMode:A.fastMode,promptSuggestionEnabled:A.promptSuggestionEnabled,isBriefOnly:A.isBriefOnly,replBridgeEnabled:A.replBridgeEnabled,replBridgeOutboundOnly:A.replBridgeOutboundOnly,settings:A.settings,toolPermissionContext:o0(B.toolPermissionContext)})),c0()!==$0)WJ($0)},[M,L,a,VZ,UZ,$0,GZ]),PY=v.useCallback(()=>{if(i!==null)return;if(NZ.current)Eq();q("Config dialog dismissed",{display:"system"})},[i,Eq,q]);b("confirm:no",PY,{context:"Settings",isActive:i===null&&!n&&!W}),b("settings:close",NY,{context:"Settings",isActive:i===null&&!n&&!W});let b0=v.useCallback(()=>{let J=s[j];if(!hZ(J))return;let X=J.item;if(!X.onChange)return;if(X.type==="boolean"){if(NZ.current=!0,X.onChange(!X.value),X.id==="thinkingEnabled"){if(!X.value===$.current)Z0(!1);else if(Z.messages.some((h)=>h.type==="assistant"))Z0(!0)}return}if(X.id==="theme"||X.id==="model"||X.id==="teammateDefaultModel"||X.id==="showExternalIncludesDialog"||X.id==="outputStyle"||X.id==="language")switch(X.id){case"theme":g("Theme"),Q(!0);return;case"model":g("Model"),Q(!0);return;case"teammateDefaultModel":g("TeammateModel"),Q(!0);return;case"showExternalIncludesDialog":g("ExternalIncludes"),Q(!0);return;case"outputStyle":g("OutputStyle"),Q(!0);return;case"language":g("Language"),Q(!0);return}if(X.id==="autoUpdatesChannel"){if(IZ){g("EnableAutoUpdates"),Q(!0);return}if((P?.autoUpdatesChannel??"latest")==="latest")g("ChannelDowngrade"),Q(!0);else NZ.current=!0,ZZ("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),R((B)=>({...B,autoUpdatesChannel:"latest",minimumVersion:void 0})),S("",{channel:"latest"});return}if(X.type==="enum"){NZ.current=!0;let B=(X.options.indexOf(X.value)+1)%X.options.length;X.onChange(X.options[B]);return}},[IZ,s,j,P?.autoUpdatesChannel,Q]),A0=(J)=>{Z0(!1);let X=J0(s,j,J);if(X<0)return;QZ(X),_0(X)};wJ({"select:previous":()=>{let J=Q0(s);if(J<0||j<=J)Z0(!1),zZ(!0),YZ(0);else A0(-1)},"select:next":()=>A0(1),"scroll:lineUp":()=>A0(-1),"scroll:lineDown":()=>A0(1),"select:accept":b0,"settings:search":()=>{zZ(!0),P0("")}},{context:"Settings",isActive:i===null&&!n&&!W});let AY=v.useCallback((J)=>{if(i!==null)return;if(W)return;if(n){if(J.key==="escape"){if(J.preventDefault(),kZ.length>0)P0("");else zZ(!1);return}if(J.key==="return"||J.key==="down"||J.key==="wheeldown")J.preventDefault(),zZ(!1),QZ(Math.max(0,Q0(s))),YZ(0);return}if(J.key==="left"||J.key==="right"||J.key==="tab"){J.preventDefault(),b0();return}if(J.key==="["||J.key==="]"){J.preventDefault();let X=VJ(s,j,J.key==="["?-1:1);if(X>=0)Z0(!1),QZ(X),_0(X);return}if(J.ctrl||J.meta)return;if(J.key==="j"||J.key==="k"||J.key==="/")return;if(J.key.length===1&&J.key!==" ")J.preventDefault(),zZ(!0),P0(J.key)},[i,W,n,kZ,P0,b0,s,j,_0]);return G(U,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:AY,children:i==="Theme"?z(WZ,{children:[G(iJ,{onThemeSelect:(J)=>{NZ.current=!0,L(J),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),G(U,{children:G(K,{dimColor:!0,italic:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"select"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):i==="Model"?z(WZ,{children:[G(a0,{initial:BZ,onSelect:(J,X)=>{NZ.current=!0,Bq(J),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},showFastModeNotice:Y0()?mZ&&SJ(BZ)&&i0():!1}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="TeammateModel"?z(WZ,{children:[G(a0,{initial:H.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(J,X)=>{if(g(null),Q(!1),H.teammateDefaultModel===void 0&&J===null)return;NZ.current=!0,y((A)=>A.teammateDefaultModel===J?A:{...A,teammateDefaultModel:J}),O({...f(),teammateDefaultModel:J}),E((A)=>({...A,teammateDefaultModel:HJ(J)})),S("",{model:J})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="ExternalIncludes"?z(WZ,{children:[G(nJ,{onDone:()=>{g(null),Q(!1)},externalIncludes:JQ(Rq)}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):i==="OutputStyle"?z(WZ,{children:[G(ZJ,{initialStyle:k,onComplete:(J)=>{NZ.current=!0,_(J??U0),g(null),Q(!1),ZZ("localSettings",{outputStyle:J}),S("",{style:J??U0,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="Language"?z(WZ,{children:[G(YJ,{initialLanguage:w,onComplete:(J)=>{NZ.current=!0,u(J),g(null),Q(!1),ZZ("userSettings",{language:J}),S("",{language:J??"default",source:"config_panel"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):i==="EnableAutoUpdates"?G(uZ,{title:"Enable Auto-Updates",onCancel:()=>{g(null),Q(!1)},hideBorder:!0,hideInputGuide:!0,children:IZ?.type!=="config"?z(WZ,{children:[G(K,{children:IZ?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),IZ?.type==="env"&&z(K,{dimColor:!0,children:["Unset ",IZ.envVar," to re-enable auto-updates."]})]}):G(iZ,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(J)=>{NZ.current=!0,g(null),Q(!1),y((X)=>({...X,autoUpdates:!0})),O({...f(),autoUpdates:!0}),ZZ("userSettings",{autoUpdatesChannel:J,minimumVersion:void 0}),R((X)=>({...X,autoUpdatesChannel:J,minimumVersion:void 0})),S("",{channel:J})}})}):i==="ChannelDowngrade"?G(nq,{currentVersion:"99.0.0",onChoice:(J)=>{if(g(null),Q(!1),J==="cancel")return;NZ.current=!0;let X={autoUpdatesChannel:"stable"};if(J==="stay")X.minimumVersion="99.0.0";ZZ("userSettings",X),R((A)=>({...A,...X})),S("",{channel:"stable",minimum_version_set:J==="stay"})}}):z(U,{flexDirection:"column",gap:1,marginY:N?void 0:1,children:[G(rJ,{query:kZ,isFocused:n&&!W,isTerminalFocused:jZ,cursorOffset:WY,placeholder:"Search settings…"}),G(U,{flexDirection:"column",children:s.length===0?z(K,{dimColor:!0,italic:!0,children:['No settings match "',kZ,'"']}):z(WZ,{children:[kq>0&&z(K,{dimColor:!0,children:[CZ.arrowUp," ",kq," more above"]}),s.slice(o,o+p).map((J,X)=>{let A=o+X;if(J.kind==="spacer")return G(K,{children:" "},J.id);if(J.kind==="header")return z(K,{dimColor:!0,children:[" ",J.label]},J.id);let B=J.item,h=A===j&&!W&&!n;return G(l.Fragment,{children:z(U,{children:[G(U,{width:F0,flexShrink:0,paddingRight:1,children:z(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:[h?CZ.pointer:" "," ",B.label]})}),G(U,{children:B.type==="boolean"?z(WZ,{children:[G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:B.value.toString()}),HY&&B.id==="thinkingEnabled"&&z(K,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):B.id==="theme"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:JX[B.value.toString()]??B.value.toString()}):B.id==="notifChannel"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:G(QX,{value:B.value.toString()})}):B.id==="defaultPermissionMode"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:MJ(B.value)}):B.id==="autoUpdatesChannel"&&IZ?z(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:["disabled"," ",z(K,{dimColor:!0,children:["(",UJ(IZ),")"]})]}):G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:B.value.toString()})},h?"selected":"unselected")]})},B.id)}),Iq>0&&z(K,{dimColor:!0,children:[CZ.arrowDown," ",Iq," more below"]})]})}),W?G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"←/→ tab",action:"switch"}),G(PZ,{shortcut:"↓",action:"return"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):n?G(K,{dimColor:!0,children:z(qZ,{children:[G(K,{children:"Type to filter"}),G(PZ,{shortcut:"Enter/↓",action:"select"}),G(PZ,{shortcut:"↑",action:"tabs"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),G(T,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),G(T,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function HJ(q){if(q===void 0)return k0(xJ());if(q===null)return"Default (leader's model)";return k0(q)}function QX(q){let Z=tJ.c(4),{value:Q}=q;switch(Q){case"auto":return"Auto";case"iterm2":{let Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["iTerm2 ",G(K,{dimColor:!0,children:"(OSC 9)"})]}),Z[0]=Y;else Y=Z[0];return Y}case"terminal_bell":{let Y;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Terminal Bell ",G(K,{dimColor:!0,children:"(\\a)"})]}),Z[1]=Y;else Y=Z[1];return Y}case"kitty":{let Y;if(Z[2]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Kitty ",G(K,{dimColor:!0,children:"(OSC 99)"})]}),Z[2]=Y;else Y=Z[2];return Y}case"ghostty":{let Y;if(Z[3]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Ghostty ",G(K,{dimColor:!0,children:"(OSC 777)"})]}),Z[3]=Y;else Y=Z[3];return Y}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return Q}}var tJ,l,v,JX;var ZQ=r(()=>{SZ();lZ();v0();IJ();mY();EJ();IJ();OJ();vY();nY();I0();_Y();rY();oY();yq();aY();yJ();sY();tY();rq();g0();iq();qJ();XJ();YX();cY();cZ();E0();dJ();M0();eY();dY();gY();hq();tq();DJ();bY();uY();iY();lY();ZX();X0();pY();xY();qX();KJ();x();tJ=d($Z(),1),l=d(FZ(),1),v=d(FZ(),1);JX={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)",terminal:"Terminal default (inherit colors)",dracula:"Dracula","catppuccin-mocha":"Catppuccin Mocha (dark)","catppuccin-latte":"Catppuccin Latte (light)","tokyo-night":"Tokyo Night",nord:"Nord","gruvbox-dark":"Gruvbox Dark"}});function V0(q){return typeof q==="object"&&q!==null}function AZ(q){return typeof q==="string"&&q.trim()?q.trim():void 0}function rZ(q){return typeof q==="number"&&Number.isFinite(q)?q:void 0}function t0(q){return typeof q==="boolean"?q:void 0}function e0(q){let Z=rZ(q);if(Z===void 0)return;return new Date(Z*1000).toISOString()}function C0(q){if(!V0(q))return;let Z=rZ(q.used_percent)??rZ(q.usedPercent);if(Z===void 0)return;let Q=rZ(q.window_minutes)??rZ(q.windowDurationMins)??(()=>{let V=rZ(q.limit_window_seconds);return V===void 0?void 0:Math.round(V/60)})(),Y=e0(q.resets_at)??e0(q.resetsAt)??e0(q.reset_at);return{usedPercent:Z,windowMinutes:Q,resetsAt:Y}}function DQ(q){if(!V0(q))return;let Z=t0(q.has_credits)??t0(q.hasCredits)??!1,Q=t0(q.unlimited)??!1,Y=AZ(q.balance);if(!Z&&!Q&&!Y)return;return{hasCredits:Z,unlimited:Q,balance:Y}}function G0(q,Z){if(!V0(q))return;let Q=AZ(q.limit_name)??AZ(q.limitName)??AZ(q.limit_id)??AZ(q.limitId)??Z,Y=C0(q.primary)??C0(q.primary_window),V=C0(q.secondary)??C0(q.secondary_window),W=DQ(q.credits);if(!Y&&!V&&!W)return;return{limitName:Q,primary:Y,secondary:V,credits:W}}function Zq(q,Z="codex"){if(Array.isArray(q))return q.map((Q,Y)=>G0(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!V0(q))return[];return Object.entries(q).map(([Q,Y])=>G0(Y,Q)).filter((Q)=>Q!==void 0)}function VX(q){let Z=AZ(q.plan_type)??AZ(q.planType),Q=[],Y=DQ(q.credits),V=G0(q.rate_limit,"codex");if(V)V.credits??=Y,Q.push(V);else if(Y)Q.push({limitName:"codex",credits:Y});let W=G0(q.code_review_rate_limit,"code review");if(W)Q.push(W);return Q.push(...Zq(q.additional_rate_limits??q.additionalRateLimits,"additional")),{planType:Z,snapshots:Q}}function KX(q){if(Array.isArray(q))return{snapshots:Zq(q)};if(!V0(q))return{snapshots:[]};if("rate_limit"in q||"code_review_rate_limit"in q||"additional_rate_limits"in q||"credits"in q)return VX(q);let Z=q.rate_limits??q.rateLimits??q.rate_limits_by_limit_id??q.rateLimitsByLimitId;if(Z!==void 0)return{planType:AZ(q.plan_type)??AZ(q.planType),snapshots:Zq(Z)};let Q=G0(q,"codex");return{planType:AZ(q.plan_type)??AZ(q.planType),snapshots:Q?[Q]:[]}}function oZ(q){if(!q)return q;return q[0].toUpperCase()+q.slice(1)}function YQ(q,Z){if(q===void 0||q<=0)return Z;if(q===10080)return"weekly";if(q%1440===0)return`${q/1440}d`;if(q%60===0)return`${q/60}h`;return`${q}m`}function HX(q){let Z=q?.trim();if(!Z)return;let Q=Number.parseInt(Z,10);if(Number.isFinite(Q)&&`${Q}`===Z&&Q>0)return`${Q}`;let Y=Number.parseFloat(Z);if(Number.isFinite(Y)&&Y>0)return`${Math.round(Y)}`;return}function WX(q){if(!q?.hasCredits)return;if(q.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let Z=HX(q.balance);if(!Z)return;return{kind:"text",label:"Credits",value:`${Z} credits`}}function OQ(q){let Z=[];for(let Q of q){let Y=Q.limitName.trim()||"codex",V=WX(Q.credits);if(!(Q.primary!==void 0||Q.secondary!==void 0||V!==void 0))continue;let D=Y.toLowerCase()!=="codex",N=Number(Q.primary!==void 0)+Number(Q.secondary!==void 0),L=D&&N===1;if(D&&!L)Z.push({kind:"text",label:`${oZ(Y)} limit`,value:""});if(Q.primary){let M=oZ(YQ(Q.primary.windowMinutes,"5h"));Z.push({kind:"window",label:L?`${oZ(Y)} ${M} limit`:`${M} limit`,usedPercent:Q.primary.usedPercent,resetsAt:Q.primary.resetsAt})}if(Q.secondary){let M=oZ(YQ(Q.secondary.windowMinutes,"weekly"));Z.push({kind:"window",label:L?`${oZ(Y)} ${M} limit`:`${M} limit`,usedPercent:Q.secondary.usedPercent,resetsAt:Q.secondary.resetsAt})}if(V)Z.push(V)}return Z}function FQ(q){if(!q)return;return q.split(/[_\s-]+/).filter(Boolean).map((Z)=>oZ(Z.toLowerCase())).join(" ")}function zX(q=KQ){return new URL("/backend-api/wham/usage",q).toString()}async function NQ(){let q=await VQ().catch(async(V)=>{return _Z(`[codex] access token refresh failed before usage fetch: ${V instanceof Error?V.message:String(V)}`,{level:"warn"}),{refreshed:!1,credentials:await GQ()}}),Z=WQ();if(!HQ(Z.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let Q=zQ({storedCredentials:q.credentials});if(!Q.apiKey){let V=XQ()?"":", choose Codex OAuth in /provider",W=Q.authPath?`${V} or place a Codex auth.json at ${Q.authPath}`:V;throw Error(`Codex auth is required. Set CODEX_API_KEY${W}.`)}if(!Q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let Y=await fetch(zX(Z.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Q.apiKey}`,"chatgpt-account-id":Q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!Y.ok){let V=await Y.text().catch(()=>"unknown error");throw Error(`Codex usage error ${Y.status}: ${V}`)}return KX(await Y.json())}var PQ=r(()=>{XX();qq();DJ();GX()});function DX({label:q,usedPercent:Z,resetsAt:Q,maxWidth:Y}){let V=Math.max(0,Math.min(100,Z)),W=`${Math.floor(V)}% used`,D=Q?`Resets ${S0(Q,!0,!0)}`:void 0;if(Y>=62)return z(U,{flexDirection:"column",children:[G(K,{bold:!0,children:q}),z(U,{flexDirection:"row",gap:1,children:[G(sZ,{ratio:V/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:W})]}),D?G(K,{dimColor:!0,children:D}):null]});return z(U,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:q}),D?z(WZ,{children:[G(K,{children:" "}),z(K,{dimColor:!0,children:["· ",D]})]}):null]}),G(sZ,{ratio:V/100,width:Y,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:W})]})}function OX({label:q,value:Z}){if(!Z)return G(K,{bold:!0,children:q});return z(K,{children:[G(K,{bold:!0,children:q}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function LQ(){let[q,Z]=aZ.useState(null),[Q,Y]=aZ.useState(null),[V,W]=aZ.useState(!0),{columns:D}=RZ(),N=D-2,L=Math.min(N,80),M=AQ.useCallback(async()=>{W(!0),Y(null);try{Z(await NQ())}catch(F){MZ(F),Y(F instanceof Error?F.message:"Failed to load Codex usage")}finally{W(!1)}},[]);if(aZ.useEffect(()=>{M()},[M]),b("settings:retry",()=>{M()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(U,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!q)return z(U,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading Codex usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let H=OQ(q.snapshots),O=FQ(q.planType);return z(U,{flexDirection:"column",gap:1,width:"100%",children:[O?z(K,{dimColor:!0,children:["Plan: ",O]}):null,H.length===0?G(K,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,H.map((F,P)=>F.kind==="window"?G(DX,{label:F.label,usedPercent:F.usedPercent,resetsAt:F.resetsAt,maxWidth:L},`${F.label}-${P}`):G(OX,{label:F.label,value:F.value},`${F.label}-${P}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var AQ,aZ;var MQ=r(()=>{X0();SZ();lZ();PQ();Jq();I0();cZ();E0();Qq();x();AQ=d(FZ(),1),aZ=d(FZ(),1)});var K0="https://api.minimax.io/v1",H0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var Yq=()=>{};function fZ(q){return typeof q==="object"&&q!==null}function JZ(q){return typeof q==="string"&&q.trim()?q.trim():void 0}function Gq(q){if(typeof q==="number"&&Number.isFinite(q))return q;if(typeof q==="string"&&q.trim()){let Z=Number.parseFloat(q);if(Number.isFinite(Z))return Z}return}function h0(q){return Math.max(0,Math.min(100,Math.round(q)))}function FX(q){if(typeof q==="string"){let Y=Date.parse(q);return Number.isNaN(Y)?q:new Date(Y).toISOString()}let Z=Gq(q);if(Z===void 0)return;let Q=Z>1000000000000?Z:Z*1000;return new Date(Q).toISOString()}function NX(q,Z){let Q=Gq(q);if(/remains?_time/i.test(Z)&&Q!==void 0){let Y=Q>604800?Q:Q*1000;return new Date(Date.now()+Y).toISOString()}return FX(q)}function W0(q,Z){for(let Q of Z){let Y=Gq(q[Q]);if(Y!==void 0)return Y}return}function PX(q,Z){for(let Q of Z)if(q[Q]!==void 0)return NX(q[Q],Q);return}function z0(q,Z){return Z.some((Q)=>q[Q]!==void 0)}function UQ(q){return q?q[0].toUpperCase()+q.slice(1):q}function AX(q){if(!q)return"MiniMax";let Z=q.trim();if(!Z)return"MiniMax";if(/[A-Z]/.test(Z))return Z;return Z.split(/[_\s-]+/).filter(Boolean).map((Q)=>UQ(Q.toLowerCase())).join(" ")}function LX(q){if(!q)return;return q.split(/[_\s-]+/).filter(Boolean).map((Z)=>UQ(Z.toLowerCase())).join(" ")}function kQ(q,Z){let Q=W0(q,Z.percentKeys),Y=W0(q,Z.remainingPercentKeys),V=W0(q,Z.totalKeys),W=W0(q,Z.remainingKeys),D=W0(q,Z.usedKeys),N=V!==void 0&&D!==void 0?V-D:W,L;if(V!==void 0&&V>0&&D!==void 0)L=h0(D/V*100);else if(V!==void 0&&V>0&&W!==void 0)L=h0((V-W)/V*100);else if(Q!==void 0)L=h0(Q);else if(Y!==void 0)L=h0(100-Y);if(L===void 0)return;return{label:Z.label,usedPercent:L,remaining:N,total:V,resetsAt:PX(q,Z.resetKeys)}}function MX(q){let Z=JZ(q.label)??JZ(q.name)??JZ(q.window_name)??JZ(q.windowName)??"Limit";return kQ(q,{label:Z,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function BX(q){if(z0(q,RX))return!0;return IQ.some((Z)=>z0(q,Z.totalKeys)||z0(q,Z.remainingKeys)||z0(q,Z.usedKeys)||z0(q,Z.percentKeys))}function Xq(q,Z){if(!fZ(q))return;let Q=IQ.map((V)=>kQ(q,V)).filter((V)=>V!==void 0);if(Q.length===0){let V=MX(q);if(V)Q.push(V)}if(Q.length===0)return;return{limitName:JZ(q.limit_name)??JZ(q.limitName)??JZ(q.model_name)??JZ(q.modelName)??JZ(q.name)??Z,windows:Q}}function RQ(q,Z="MiniMax"){if(Array.isArray(q))return q.map((Q,Y)=>Xq(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!fZ(q))return[];if(BX(q)){let Q=Xq(q,Z);return Q?[Q]:[]}return Object.entries(q).map(([Q,Y])=>Xq(Y,Q)).filter((Q)=>Q!==void 0)}function BQ(q=H0,Z){return{availability:"unknown",planType:Z,snapshots:[],message:q}}function Vq(q){if(!fZ(q))return BQ();let Z=LX(JZ(q.plan_type)??JZ(q.planType)??JZ(q.subscription_type)??JZ(q.subscriptionType)??JZ(q.plan_name)??JZ(q.planName)),Y=[q.data,q.result,q.model_remains,q.modelRemains,q.remains,q.usage,q.quotas,q.models,fZ(q.data)?q.data.model_remains:void 0,fZ(q.data)?q.data.modelRemains:void 0,fZ(q.data)?q.data.models:void 0,fZ(q.data)?q.data.quotas:void 0,fZ(q.data)?q.data.remains:void 0].flatMap((W)=>RQ(W)).filter((W,D,N)=>{let L=`${W.limitName}:${W.windows.map((M)=>M.label).join("|")}`;return N.findIndex((M)=>`${M.limitName}:${M.windows.map((H)=>H.label).join("|")}`===L)===D});if(Y.length>0)return{availability:"available",planType:Z,snapshots:Y};let V=RQ(q);if(V.length>0)return{availability:"available",planType:Z,snapshots:V};return BQ(void 0,Z)}function UX(q){if(q.remaining===void 0||q.total===void 0||q.total<=0)return;return`${q.remaining}/${q.total} remaining`}function Kq(q){let Z=[];for(let Q of q){let Y=AX(Q.limitName),V=Y.toLowerCase()!=="minimax",W=V&&Q.windows.length===1;if(V&&!W)Z.push({kind:"text",label:`${Y} quota`,value:""});for(let D of Q.windows)Z.push({kind:"window",label:W?`${Y} ${D.label}`:D.label,usedPercent:D.usedPercent,resetsAt:D.resetsAt,extraSubtext:UX(D)})}return Z}var IQ,RX;var Hq=r(()=>{Yq();IQ=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],RX=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function IX(q){return q.replace(/\/+$/,"")}function EX(q=wZ()?.baseUrl??K0){let Z=q.trim();return Z?IX(Z):K0}function CX(q){let Z=q??wZ()?.baseUrl;if(!Z?.trim())return{baseUrl:K0,usedDefault:!0};return{baseUrl:EX(Z),usedDefault:!1}}function EQ(q){return{availability:"unknown",snapshots:[],message:q}}function SQ(q){let{baseUrl:Z,usedDefault:Q}=CX(q);try{let Y=new URL(`${Z}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}catch{if(Q){let Y=new URL(`${K0}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}throw Error(`MiniMax usage base URL is invalid: ${Z}`)}}async function Wq(){let q=wZ()?.apiKey;if(!q)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let Z=SQ(),Q=[],Y=null;for(let V of Z){let W;try{W=await fetch(V,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${q}`,"Content-Type":"application/json","User-Agent":CQ()},signal:AbortSignal.timeout(5000)})}catch(N){_Z(`[minimax] usage request failed for ${V}: ${N instanceof Error?N.message:String(N)}`,{level:"warn"}),Y=N instanceof Error?N:Error(String(N));continue}if(!W.ok){let N=await W.text().catch(()=>"");if([400,401,403,404].includes(W.status)){Q.push({status:W.status,body:N});continue}Y=Error(`MiniMax usage error ${W.status}: ${N||"unknown error"}`);continue}let D=Vq(await W.json());if(D.availability==="available")return D}if(Q.length>0){let V=Q[Q.length-1];return _Z(`[minimax] usage endpoint returned non-fatal status ${V.status}: ${V.body}`,{level:"warn"}),EQ(H0)}if(Y)throw Y;return EQ(H0)}var hQ=r(()=>{EJ();qq();kX();Yq();Hq()});var fQ=r(()=>{Hq();hQ()});function fX(q){let Z=Math.max(1,Math.ceil(q/60000)),Q=Math.floor(Z/1440),Y=Math.floor(Z%1440/60),V=Z%60;if(Q>0)return Y>0?`${Q}d ${Y}h`:`${Q}d`;if(Y>0)return V>0?`${Y}h ${V}m`:`${Y}h`;return`${V}m`}function yX(q,Z){if(!q)return;let Q=Date.parse(q);if(!Number.isFinite(Q))return;let Y=Q-Z;if(Y<=0)return"Resetting now";return`Resets in ${fX(Y)}`}function TX({label:q,usedPercent:Z,resetsAt:Q,extraSubtext:Y,maxWidth:V,nowMs:W}){let D=Math.max(0,Math.min(100,Z)),N=`${Math.floor(D)}% used`,L=yX(Q,W),M=[N,Y].filter((H)=>Boolean(H));return z(U,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:q}),L?z(K,{dimColor:!0,children:[" · ",L]}):null]}),z(U,{flexDirection:"row",gap:1,children:[G(sZ,{ratio:D/100,width:Math.min(hX,Math.max(1,V)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),M.length>0?G(K,{dimColor:!0,children:M.join(" · ")}):null]})]})}function jX({label:q,value:Z}){if(!Z)return G(K,{bold:!0,children:q});return z(K,{children:[G(K,{bold:!0,children:q}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function TQ(){let[q,Z]=yZ.useState(null),[Q,Y]=yZ.useState(null),[V,W]=yZ.useState(!0),[D,N]=yZ.useState(()=>Date.now()),{columns:L}=RZ(),M=L-2,H=Math.min(M,80),O=yQ.useCallback(async()=>{W(!0),Y(null);try{Z(await Wq())}catch(P){MZ(P),Y(P instanceof Error?P.message:"Failed to load MiniMax usage")}finally{W(!1)}},[]);if(yZ.useEffect(()=>{O()},[O]),yZ.useEffect(()=>{let P=setInterval(()=>{N(Date.now())},SX);return()=>clearInterval(P)},[]),b("settings:retry",()=>{O()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(U,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!q)return z(U,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading MiniMax usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let F=q.availability==="available"?Kq(q.snapshots):[];return z(U,{flexDirection:"column",gap:1,width:"100%",children:[q.planType?z(K,{dimColor:!0,children:["Plan: ",q.planType]}):null,q.availability==="unknown"?G(K,{dimColor:!0,children:q.message}):F.length===0?G(K,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,F.map((P,R)=>P.kind==="window"?G(TX,{label:P.label,usedPercent:P.usedPercent,resetsAt:P.resetsAt,extraSubtext:P.extraSubtext,maxWidth:H,nowMs:D},`${P.label}-${R}`):G(jX,{label:P.label,value:P.value},`${P.label}-${R}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var yQ,yZ,SX=30000,hX=18;var jQ=r(()=>{X0();SZ();lZ();fQ();I0();cZ();E0();Qq();x();yQ=d(FZ(),1),yZ=d(FZ(),1)});function $Q({providerLabel:q}){return z(U,{flexDirection:"column",gap:1,children:[z(K,{dimColor:!0,children:["Usage details are not currently available for ",q,"."]}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var wQ=r(()=>{SZ();cZ();x()});import{readdir as gQ,readFile as mQ}from"fs/promises";import{join as zq}from"path";async function _Q(q,Z){let Q;try{Q=await mQ(q,"utf-8")}catch(V){if(!Dq(V))_Z(`usageContribution: skip ${q}: ${String(V)}`);return 0}if(Q.length>Oq)return 0;let Y=0;for(let V of Q.split(`
|
|
3
|
-
`)){if(!V)continue;let W;try{W=JSON.parse(V)}catch{continue}if(W.type!=="assistant")continue;if(!W.timestamp)continue;let D=Date.parse(W.timestamp);if(Number.isNaN(D)||D<Z)continue;let N=W.message?.usage;if(!N)continue;Y+=(N.input_tokens??0)+(N.output_tokens??0)+(N.cache_creation_input_tokens??0)+(N.cache_read_input_tokens??0)}return Y}async function pQ(q){let Z;try{Z=await gQ(q,{withFileTypes:!0})}catch(Y){if(Dq(Y))return[];throw Y}let Q=[];for(let Y of Z){let V=zq(q,Y.name);if(Y.isDirectory())Q.push(...await pQ(V));else if(Y.isFile()&&pX.test(Y.name))Q.push(V)}return Q}async function xX(q){let Z=q.replace(/\.jsonl$/,".meta.json");try{let Q=await mQ(Z,"utf-8");return JSON.parse(Q).agentType||"subagent"}catch{return"subagent"}}async function Fq(q){let Z=Date.now()-bX[q],Q={window:q,totalTokens:0,sessionCount:0,subagentHeavyPct:0,agentBreakdown:[]},Y=bQ(),V;try{V=await gQ(Y,{withFileTypes:!0})}catch{return Q}let W=V.filter((O)=>O.isDirectory()).map((O)=>zq(Y,O.name)),D=0,N=0,L=0,M=new Map;for(let O=0;O<W.length;O++){let F=W[O],P=await vQ(F);for(let[R,I]of P){if(I.mtime<Z)continue;let k=I.size>Oq?0:await _Q(I.path,Z),_=0,t=zq(F,R,"subagents");for(let u of await pQ(t)){let m=await _Q(u,Z);if(m<=0)continue;_+=m;let j=await xX(u);M.set(j,(M.get(j)??0)+m)}let w=k+_;if(w<=0)continue;if(L++,D+=w,_/w>vX)N+=w}if(O%10===9)await new Promise((R)=>setImmediate(R))}if(D===0)return Q;let H=[...M.entries()].map(([O,F])=>({agentType:O,tokens:F,pct:F/D*100})).filter((O)=>O.tokens/D>=gX).sort((O,F)=>F.tokens-O.tokens).slice(0,mX);return{window:q,totalTokens:D,sessionCount:L,subagentHeavyPct:N/D*100,agentBreakdown:H}}var bX,vX=0.5,gX=0.05,mX=5,pX;var xQ=r(()=>{qq();$X();wX();_X();bX={day:86400000,week:604800000},pX=/^agent-.*\.jsonl$/});function cQ(q){let{title:Z,totalCost:Q,apiDuration:Y,wallDuration:V,linesAdded:W,linesRemoved:D,modelUsage:N,unknownCost:L,bytesSaved:M}=q,H=Object.entries(N);if(Q===0&&H.length===0&&W===0&&D===0)return null;let O={};for(let[P,R]of H){let I=Pq(P);if(!O[I])O[I]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let k=O[I];k.inputTokens+=R.inputTokens,k.outputTokens+=R.outputTokens,k.cacheReadInputTokens+=R.cacheReadInputTokens,k.cacheCreationInputTokens+=R.cacheCreationInputTokens,k.webSearchRequests+=R.webSearchRequests,k.costUSD+=R.costUSD}let F=Object.entries(O);return z(U,{flexDirection:"column",children:[G(K,{bold:!0,children:Z}),z(K,{children:[G(K,{children:"Total cost: "}),G(K,{children:bZ(Q)}),L&&G(K,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),z(K,{children:["Total duration (API): ",D0(Y)]}),z(K,{children:["Total duration (wall): ",D0(V)]}),z(K,{children:["Total code changes: ",W," ",W===1?"line":"lines"," added, ",D," ",D===1?"line":"lines"," removed"]}),M!==void 0&&M>0&&z(K,{children:["Context tokens saved: ~",aQ(M/ZY)," tokens"]}),F.length>0&&G(K,{children:"Usage by model:"}),F.map(([P,R])=>{let I=`${LZ(R.inputTokens)} input, ${LZ(R.outputTokens)} output`;if(R.cacheReadInputTokens>0)I+=`, ${LZ(R.cacheReadInputTokens)} cache read`;if(R.cacheCreationInputTokens>0)I+=`, ${LZ(R.cacheCreationInputTokens)} cache write`;if(R.webSearchRequests>0)I+=`, ${LZ(R.webSearchRequests)} web search`;return I+=` (${bZ(R.costUSD)})`,z(K,{children:[`${P}:`.padStart(21)," ",I]},P)})]})}function dQ(q={}){let Z=q.view??"global",[,Q]=c.useReducer((D)=>D+1,0);c.useEffect(()=>{let D=setInterval(()=>Q(),1000);return()=>clearInterval(D)},[]);let Y=Nq();if(Z==="session"){let D=uQ(),N=oQ(),L=nQ(),M=rQ();return G(cQ,{title:"Current session",totalCost:D,apiDuration:iQ(),wallDuration:lQ(),linesAdded:L,linesRemoved:M,modelUsage:N,unknownCost:Y,bytesSaved:qY()})}let V=Aq();if(!(V.totalCost!==0||Object.keys(V.modelUsage).length>0||V.totalLinesAdded!==0||V.totalLinesRemoved!==0))return null;return z(U,{flexDirection:"column",gap:1,children:[G(cQ,{title:"Project total (all sessions)",totalCost:V.totalCost,apiDuration:V.totalAPIDuration,wallDuration:V.totalDuration,linesAdded:V.totalLinesAdded,linesRemoved:V.totalLinesRemoved,modelUsage:V.modelUsage,unknownCost:Y}),G(K,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function Lq(q={}){if((q.view??"global")==="session")return G(U,{flexDirection:"column",gap:1,width:"100%",children:G(dQ,{view:"session"})});let Q=sQ();if(Q==="firstParty")return G(ZG,{});let Y;if(Q==="codex")Y=G(LQ,{});else if(Q==="minimax")Y=G(TQ,{});else{let V={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[Q]??"this provider";Y=G($Q,{providerLabel:V})}return z(U,{flexDirection:"column",gap:1,width:"100%",children:[G(dQ,{view:"global"}),Y,G(eX,{})]})}function eX(){let[q,Z]=c.useState("day"),[Q,Y]=c.useState(null),[V,W]=c.useState(!0),D=y0.useCallback(async(M)=>{W(!0);try{Y(await Fq(M))}catch(H){MZ(H),Y(null)}finally{W(!1)}},[]);c.useEffect(()=>{D(q)},[D,q]),b("settings:usageDay",()=>Z("day"),{context:"Settings",isActive:!0}),b("settings:usageWeek",()=>Z("week"),{context:"Settings",isActive:!0});let N=q==="day"?"last 24h":"last week",L=Q?.agentBreakdown[0];return z(U,{flexDirection:"column",width:"100%",children:[G(K,{bold:!0,children:"What's driving your token usage?"}),G(K,{dimColor:!0,children:"Approximate, based on local sessions on this machine — does not include other devices."}),G(K,{dimColor:!0,children:`${N[0].toUpperCase()}${N.slice(1)} · a characteristic of your usage, not a full breakdown`}),V&&!Q?G(K,{dimColor:!0,children:"Analyzing local sessions…"}):!Q||Q.totalTokens===0?G(K,{dimColor:!0,children:`No local session activity in the ${N}.`}):z(U,{flexDirection:"column",marginTop:1,children:[Q.subagentHeavyPct>=5&&z(U,{flexDirection:"column",children:[G(K,{children:`${Math.round(Q.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`}),G(K,{dimColor:!0,children:QY})]}),L&&G(U,{flexDirection:"column",marginTop:Q.subagentHeavyPct>=5?1:0,children:G(K,{children:`${Math.round(L.pct)}% of your token usage came from subagents under '${L.agentType}'.`})}),Q.agentBreakdown.length>0&&z(U,{flexDirection:"column",marginTop:1,children:[z(K,{children:[G(K,{children:"Subagents".padEnd(24)}),G(K,{children:"% of usage"})]}),Q.agentBreakdown.map((M)=>z(K,{children:[G(K,{children:M.agentType.padEnd(24)}),G(K,{children:`${Math.round(M.pct)}%`})]},M.agentType))]})]}),G(K,{dimColor:!0,children:"d to day · w to week"})]})}function ZG(){let q=xZ(),Z=RZ(),{columns:Q}=Z,{rows:Y}=T0(Z),V=Math.min(Math.max(20,Q-2),80),W=Math.min(50,Math.max(20,V-14)),D=Math.max(15,Math.min(Math.floor(Y*0.8),30)),N=Math.max(5,D-3),[L,M]=c.useState(null),[H,O]=c.useState(null),[F,P]=c.useState(!0),[R,I]=c.useState("day"),[k,_]=c.useState(null),[t,w]=c.useState(!0),[u,m]=c.useState(0),[,j]=c.useReducer((E)=>E+1,0),QZ=y0.useCallback(async()=>{P(!0),O(null);try{M(await JY())}catch(E){MZ(E),O(E?.message||"Failed to load usage data")}finally{P(!1)}},[]),o=y0.useCallback(async(E)=>{w(!0);try{_(await Fq(E))}catch($){MZ($),_(null)}finally{w(!1)}},[]);c.useEffect(()=>{QZ()},[QZ]),c.useEffect(()=>{o(R)},[o,R]),c.useEffect(()=>{let E=setInterval(()=>j(),1000);return()=>clearInterval(E)},[]);let YZ=()=>m((E)=>Math.max(0,E-1)),n=()=>m((E)=>E+1),zZ=()=>m((E)=>Math.max(0,E-N)),jZ=()=>m((E)=>E+N),e={context:"Settings",isActive:!0};b("select:previous",YZ,e),b("select:next",n,e),b("scroll:lineUp",YZ,e),b("scroll:lineDown",n,e),b("scroll:pageUp",zZ,e),b("scroll:pageDown",jZ,e),b("settings:usageDay",()=>I("day"),e),b("settings:usageWeek",()=>I("week"),e),b("settings:retry",()=>{QZ(),o(R)},{context:"Settings",isActive:!!H&&!F});let vZ=(E)=>KZ.bold(E),XZ=(E)=>KZ.dim(E),F0=(E)=>{let $=Math.min(1,Math.max(0,E)),a=Math.floor($*W),VZ="█".repeat(a),HZ=" ".repeat(Math.max(0,W-a));return f0(VZ,q.rate_limit_fill,"foreground")+f0(HZ,q.rate_limit_empty,"background")},C=[],p=Aq();C.push(vZ("Project total (all sessions)")),C.push("Total cost: "+bZ(p.totalCost)+(Nq()?XZ(" (costs may be inaccurate)"):"")),C.push("Total duration (API): "+D0(p.totalAPIDuration)),C.push("Total duration (wall): "+D0(p.totalDuration)),C.push(`Total code changes: ${p.totalLinesAdded} ${p.totalLinesAdded===1?"line":"lines"} added, ${p.totalLinesRemoved} ${p.totalLinesRemoved===1?"line":"lines"} removed`);let BZ={};for(let[E,$]of Object.entries(p.modelUsage)){let a=Pq(E),VZ=BZ[a]??={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};VZ.inputTokens+=$.inputTokens,VZ.outputTokens+=$.outputTokens,VZ.cacheReadInputTokens+=$.cacheReadInputTokens,VZ.cacheCreationInputTokens+=$.cacheCreationInputTokens,VZ.webSearchRequests+=$.webSearchRequests,VZ.costUSD+=$.costUSD}let N0=Object.entries(BZ);if(N0.length>0)C.push("Usage by model:");for(let[E,$]of N0){let a=`${LZ($.inputTokens)} input, ${LZ($.outputTokens)} output`;if($.cacheReadInputTokens>0)a+=`, ${LZ($.cacheReadInputTokens)} cache read`;if($.cacheCreationInputTokens>0)a+=`, ${LZ($.cacheCreationInputTokens)} cache write`;if($.webSearchRequests>0)a+=`, ${LZ($.webSearchRequests)} web search`;a+=` (${bZ($.costUSD)})`,C.push(`${`${E}:`.padStart(21)} ${a}`)}if(C.push(XZ("Aggregated across all sessions in this project — includes the current session live.")),C.push(""),F&&!L)C.push(XZ("Loading usage data…"));else if(H)C.push(f0(`Could not load rate-limit data: ${H}`,q.error,"foreground")),C.push(XZ("(cost/usage totals above are unaffected) · r to retry"));else if(L){let E=tQ(),$=E==="max"||E==="team"||E===null,a=[["Current session",L.five_hour],["Current week (all models)",L.seven_day],...$?[["Current week (Sonnet only)",L.seven_day_sonnet]]:[]];if(!a.some(([,eZ])=>eZ))C.push(XZ("/usage is only available for subscription plans."));let VZ=!0;for(let[eZ,UZ]of a){if(!UZ||UZ.utilization===null)continue;if(!VZ)C.push("");if(VZ=!1,C.push(vZ(eZ)),C.push(`${F0(UZ.utilization/100)} ${Math.floor(UZ.utilization)}% used`),UZ.resets_at)C.push(XZ(`Resets ${S0(UZ.resets_at,!0,!0)}`))}let HZ=L.extra_usage;if(HZ?.is_enabled&&typeof HZ.used_credits==="number"&&typeof HZ.utilization==="number"&&HZ.monthly_limit!=null)C.push(""),C.push(vZ("Extra usage")),C.push(`${F0(HZ.utilization/100)} ${Math.floor(HZ.utilization)}% used`),C.push(XZ(`${bZ(HZ.used_credits/100,2)} / ${bZ(HZ.monthly_limit/100,2)} spent`))}C.push("");let gZ=R==="day"?"last 24h":"last week";if(C.push(vZ("What's driving your token usage?")),C.push(XZ("Approximate, based on local sessions on this machine — does not include other devices.")),C.push(XZ(`${gZ[0].toUpperCase()}${gZ.slice(1)} · a characteristic of your usage, not a full breakdown`)),t&&!k)C.push(XZ("Analyzing local sessions…"));else if(!k||k.totalTokens===0)C.push(XZ(`No local session activity in the ${gZ}.`));else{if(k.subagentHeavyPct>=5)C.push(""),C.push(`${Math.round(k.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`),C.push(XZ(QY));let E=k.agentBreakdown[0];if(E)C.push(""),C.push(`${Math.round(E.pct)}% of your token usage came from subagents under '${E.agentType}'.`);if(k.agentBreakdown.length>0){C.push(""),C.push("Subagents".padEnd(24)+"% of usage");for(let $ of k.agentBreakdown)C.push($.agentType.padEnd(24)+`${Math.round($.pct)}%`)}}let mZ=Math.max(0,C.length-N);if(u>mZ)m(mZ);let pZ=Math.min(u,mZ),j0=C.slice(pZ,pZ+N),GZ=pZ,tZ=C.length-(pZ+j0.length);return z(U,{flexDirection:"column",width:"100%",children:[G(K,{dimColor:!0,children:GZ>0?`↑ ${GZ} more above`:" "}),G(eQ,{lines:j0,width:V}),G(K,{dimColor:!0,children:tZ>0?`↓ ${tZ} more below`:" "}),G(K,{dimColor:!0,children:"↑↓ scroll · d to day · w to week · Esc to close"})]})}var tX,y0,c,QY="Each subagent runs its own requests. Be deliberate about spawning them — and consider a cheaper model for simpler subagents.";var YY=r(()=>{oX();aX();yJ();Jq();nX();lX();uX();OJ();X0();SZ();iX();M0();lZ();rX();Jq();I0();dX();cX();cZ();E0();Qq();sX();MQ();jQ();wQ();xQ();x();tX=d($Z(),1),y0=d(FZ(),1),c=d(FZ(),1)});function N9(q){let Z=KY.c(25),{onClose:Q,context:Y,defaultTab:V}=q,[W,D]=TZ.useState(V),[N,L]=TZ.useState(!1),[M,H]=TZ.useState(!1),[O,F]=TZ.useState(!1),P=dZ(),{rows:R}=T0(RZ()),I=P?R+1:Math.max(15,Math.min(Math.floor(R*0.8),30)),[k]=TZ.useState(QG);XY();let _;if(Z[0]!==Q||Z[1]!==N)_=()=>{if(N)return;Q("Status dialog dismissed",{display:"system"})},Z[0]=Q,Z[1]=N,Z[2]=_;else _=Z[2];let t=_,w=!N&&!(W==="Config"&&M)&&!(W==="Gates"&&O),u;if(Z[3]!==w)u={context:"Settings",isActive:w},Z[3]=w,Z[4]=u;else u=Z[4];b("confirm:no",t,u);let m;if(Z[5]!==Y||Z[6]!==k)m=G(O0,{title:"Status",children:G(cq,{context:Y,diagnosticsPromise:k})},"status"),Z[5]=Y,Z[6]=k,Z[7]=m;else m=Z[7];let j;if(Z[8]!==I||Z[9]!==Y||Z[10]!==Q)j=G(O0,{title:"Config",children:G(TZ.Suspense,{fallback:null,children:G(eJ,{context:Y,onClose:Q,setTabsHidden:L,onIsSearchModeChange:H,contentHeight:I})})},"config"),Z[8]=I,Z[9]=Y,Z[10]=Q,Z[11]=j;else j=Z[11];let QZ;if(Z[12]===Symbol.for("react.memo_cache_sentinel"))QZ=[G(O0,{title:"Usage",children:G(Lq,{view:"global"})},"usage"),G(O0,{title:"Session",children:G(Lq,{view:"session"})},"session")],Z[12]=QZ;else QZ=Z[12];let o;if(Z[13]!==I)o=[],Z[13]=I,Z[14]=o;else o=Z[14];let YZ;if(Z[15]!==m||Z[16]!==j||Z[17]!==o)YZ=[m,j,...QZ,...o],Z[15]=m,Z[16]=j,Z[17]=o,Z[18]=YZ;else YZ=Z[18];let n=YZ,zZ=V!=="Config"&&V!=="Gates",jZ=N||P?void 0:I,e;if(Z[19]!==W||Z[20]!==jZ||Z[21]!==zZ||Z[22]!==n||Z[23]!==N)e=G(GY,{color:"permission",children:G(VY,{color:"permission",selectedTab:W,onTabChange:D,hidden:N,initialHeaderFocused:zZ,contentHeight:jZ,children:n})}),Z[19]=W,Z[20]=jZ,Z[21]=zZ,Z[22]=n,Z[23]=N,Z[24]=e;else e=Z[24];return e}function QG(){return xq().catch(YG)}function YG(){return[]}var KY,TZ;var XG=r(()=>{lZ();qG();X0();M0();JG();dJ();dq();ZQ();YY();x();KY=d($Z(),1),TZ=d(FZ(),1)});
|
|
4
|
-
export{N9 as Rg,XG as Sg};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{Kg as _Q,Mg as iQ}from"./cli-1.1.20-keawhead.mjs";import{Di as WQ,Ei as zX}from"./cli-1.1.20-f55khzsq.mjs";import{Np as ZQ,Op as uQ,Vs as CQ,XJ as JJ,YJ as mJ,dK as GQ,dt as qX,eK as KQ,fK as VQ,gK as OQ,iK as NQ,lK as IJ,mK as nJ,nK as rJ,oK as gQ,rG as SJ,sG as YQ}from"./cli-1.1.20-sx7811qs.mjs";import{BY as BQ,DY as ZX,GY as FQ,HY as $X,NY as zJ,OY as iJ,nY as bJ,oY as aJ}from"./cli-1.1.20-ry7grtff.mjs";import{H1 as WJ,MZ as BJ,X0 as FJ,Y0 as CJ,Z0 as oJ,a1 as N,c1 as M,m1 as t,tZ as LJ,uZ as lJ,w1 as e}from"./cli-1.1.20-r4xfymtx.mjs";import{d4 as q,e4 as _,f4 as s}from"./cli-1.1.20-azb7xdf4.mjs";import{g4 as AJ}from"./cli-1.1.20-9p9rns5w.mjs";import{k9 as i,l9 as dJ}from"./cli-1.1.20-tbtnrzgn.mjs";import{Wga as x,cha as DJ}from"./cli-1.1.20-hrw31bb0.mjs";import{hha as f,iha as pJ,kha as n,oha as uJ,tha as vJ,zha as kQ}from"./cli-1.1.20-xvytevdy.mjs";import{jja as UQ,lja as aQ}from"./cli-1.1.20-nkrcdd4b.mjs";import{pta as OJ,tta as qJ,uta as oQ}from"./cli-1.1.20-0sgvc4nn.mjs";import{writeFile as fQ}from"fs/promises";import{join as hQ}from"path";function PJ(J){if(J<1000)return`${J}ms`;let U=Math.round(J/1000);if(U<60)return`${U}s`;return`${Math.floor(U/60)}m ${U%60}s`}function sJ(J){if(J==="done")return"success";if(J==="stalled"||J==="failed")return"error";if(J==="cancelled")return"warning";return"permission"}function cQ(J){if(J==="running")return"▸";if(J==="failed"||J==="stalled")return"✗";if(J==="cancelled")return"⊘";return"✓"}function tJ(J){let U=0,K=0;for(let H of J.history)for(let A of HJ(H.agents))if(K+=1,!A.failed)U+=1;return{done:U,total:K}}function eJ(J){let U=J.history.map((K)=>{let H=HJ(K.agents);return{step:K.step,done:H.filter((A)=>!A.failed).length,total:H.length,agents:K.agents,decision:K.decision}});if(J.status==="running"&&!J.history.some((K)=>K.step===J.currentStep))U.push({step:J.currentStep,done:J.agentsDone??0,total:J.agentsInPhase??0,agents:null,decision:null});return U}function JQ(J,U){return`${CJ(J)}${U}\x1B[39m`}function jJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function xQ(J,U,K){let H=J.failed?"✗ ":"✓ ",A=JQ(J.failed?K.error:K.success,H.trimEnd())+" ",W=PJ(J.ms),X=f(W),I=Math.max(4,U-f(H)-X-1),w=n(`${J.label} ${J.model||"inherit"} · ${vJ(J.tokens)} tok`,I),S=w.length<=J.label.length?i.bold(w):i.bold(w.slice(0,J.label.length))+i.dim(w.slice(J.label.length)),F=Math.max(1,U-f(H)-f(w)-X);return A+S+" ".repeat(F)+i.dim(W)}function pQ({run:J,phaseIndex:U}){let{columns:K,rows:H}=bJ(),A=eJ(J),W=Math.min(U,Math.max(0,A.length-1)),X=A[W],{done:I,total:w}=tJ(J),[S]=BJ(),F=FJ(S),g=Math.max(6,H-6),R=g-2,l=TJ-4,v=Math.max(20,K-4-TJ-1-4-4),k=X?` ${X.step} · ${X.agents?HJ(X.agents).length:X.total} agents `:" phase ",C=A.map((D,L)=>{let V=L===W,O=D.total>0&&D.done===D.total?"✓":D.agents===null?"▸":"✓",m=n(`${V?") ":" "}${O} ${D.step}${D.total>0?` ${D.done}/${D.total}`:""}`,l);return jJ(V?JQ(F.permission,m):m,f(m),l)});while(C.length<R)C.push(" ".repeat(l));let j=!X?[jJ(i.dim("starting…"),f("starting…"),v)]:X.agents===null?[jJ(i.dim(`running… ${X.done}/${X.total} done`),f(`running… ${X.done}/${X.total} done`),v)]:HJ(X.agents).map((D)=>xQ(D,v,F));while(j.length<R)j.push(" ".repeat(v));return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[_(N,{flexDirection:"column",flexShrink:1,minWidth:0,children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:J.workflow}),J.description?q(M,{dimColor:!0,wrap:"truncate",children:J.description}):null]}),_(M,{color:sJ(J.status),wrap:"truncate",children:[I,"/",w," agents · ",PJ(J.updatedAt-J.startedAt)," · ",J.status]})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:TJ,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:C.slice(0,R),width:l})}),q(N,{flexDirection:"column",flexGrow:1,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:k,position:"top",align:"start"},children:q(t,{lines:j.slice(0,R),width:v})})]})]})}function QQ({liveRun:J,onStop:U,initialRunId:K,onViewChange:H}){let[A,W]=y.useState([]),[X,I]=y.useState(0),[w,S]=y.useState(0),[F,g]=y.useState(K?{mode:"detail",runId:K}:{mode:"list"}),[R,l]=y.useState(null),[v,k]=y.useState(!1),[C,j]=y.useState(new Set);y.useEffect(()=>{IJ().then(W).catch(($)=>x($))},[J?.runId,J?.updatedAt]);let D=(J?[J,...A.filter(($)=>$.runId!==J.runId)]:A).filter(($)=>!C.has($.runId)),L=D[Math.min(X,Math.max(0,D.length-1))],V=F.mode==="detail"?D.find(($)=>$.runId===F.runId):void 0;y.useEffect(()=>{H?.(F.mode==="detail")},[F.mode,H]);let O=y.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]),m=y.useRef(!1);y.useEffect(()=>{if(m.current||!K)return;let $=D.findIndex((Y)=>Y.runId===K);if($>=0)I($),m.current=!0},[K,D]);let T=F.mode==="detail"?V:L,h=y.useCallback(async()=>{if(!T)return;try{let $=hQ(JJ(),`run-${T.runId}.md`);await fQ($,rJ(T)),l($)}catch($){x($)}},[T]),c=y.useCallback(async()=>{if(!L)return;try{await nJ(L.runId),j(($)=>new Set($).add(L.runId)),I(($)=>Math.max(0,Math.min($,D.length-2))),W(await IJ())}catch($){x($)}},[L,D.length]);if(e(($,Y)=>{if(F.mode==="detail"){let P=V?eJ(V).length:0;if(Y.escape)O(),g({mode:"list"});else if(Y.upArrow)O(),S((B)=>Math.max(0,B-1));else if(Y.downArrow)O(),S((B)=>Math.min(Math.max(0,P-1),B+1));else if($==="s")h();else if($==="x"&&V&&J&&V.runId===J.runId)U();return}if(v){if(k(!1),$==="y")c();return}if(Y.upArrow)I((P)=>Math.max(0,P-1));else if(Y.downArrow)I((P)=>Math.min(D.length-1,P+1));else if(Y.return&&L)O(),S(0),g({mode:"detail",runId:L.runId});else if($==="s")h();else if($==="x"&&L&&J&&L.runId===J.runId)U();else if($==="d"&&L&&L.status!=="running")k(!0)},{isActive:!0}),F.mode==="detail"){if(!V)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Run not found."})});return _(N,{flexDirection:"column",paddingX:2,children:[q(pQ,{run:V,phaseIndex:w}),R&&_(M,{color:"success",children:["Saved → ",R]})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission",padding:4}),D.length===0?q(N,{paddingX:2,marginTop:1,children:q(M,{dimColor:!0,children:"No workflow runs yet. Start one from the Library tab."})}):_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[D.map(($,Y)=>{let{total:P}=tJ($);return _(M,{inverse:Y===X,wrap:"truncate",children:[Y===X?"▸ ":" ",q(M,{color:sJ($.status),children:cQ($.status)})," ",$.workflow," ",P," agents · ",vJ($.totalTokens)," tok · ",PJ($.updatedAt-$.startedAt)]},$.runId)}),R&&q(N,{marginTop:1,children:_(M,{color:"success",children:["Saved → ",R]})}),v&&L&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete run "',L.workflow,'" (',PJ(L.updatedAt-L.startedAt),")? (y/n)"]})})]})]})}var y,HJ=(J)=>J.filter((U)=>U.label!=="main"),TJ=26;var XQ=qJ(()=>{dJ();WJ();lJ();pJ();kQ();DJ();oJ();uJ();aJ();iJ();gQ();mJ();s();y=OJ(AJ(),1)});function lQ(J){let U={name:J.name};if(J.agents.length>0)U.agents=J.agents;if(J.handbackTo?.length)U.handbackTo=J.handbackTo;return U}function $Q(J,U={}){let K={name:J.name,description:J.description};if(J.main)K.main=J.main;K.steps=J.steps.map(lQ);for(let[W,X]of Object.entries(U))if(!dQ.has(W))K[W]=X;let H=ZQ(K).trimEnd(),A=J.instructions.trim();return`---
|
|
2
|
-
${H}
|
|
3
|
-
---
|
|
4
|
-
${A?`${A}
|
|
5
|
-
`:""}`}function qQ(J,U,K){let H=J[U]?.name;return J.map((A,W)=>({...A,name:W===U?K:A.name,handbackTo:A.handbackTo?.map((X)=>X===H?K:X)}))}var dQ;var zQ=qJ(()=>{uQ();dQ=new Set(["name","description","main","steps"])});import{unlinkSync as nQ,writeFileSync as rQ}from"fs";import{readFile as sQ,writeFile as tQ}from"fs/promises";import{tmpdir as eQ}from"os";import{join as yJ}from"path";function UJ(J,U){return`${CJ(J)}${U}\x1B[39m`}function ZJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function EJ(J,U,K){let H=J.slice(0,U);while(H.length<U)H.push(" ".repeat(K));return H}function MQ({sourceFile:J,onClose:U}){let{columns:K,rows:H}=bJ(),[A]=BJ(),W=FJ(A),[X,I]=E.useState(null),[w,S]=E.useState({}),[F,g]=E.useState(null),[R,l]=E.useState(!1),[v,k]=E.useState("phases"),[C,j]=E.useState(0),[D,L]=E.useState(0),[V,O]=E.useState(null),[m,T]=E.useState(null),[h,c]=E.useState(null),$=E.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]);E.useEffect(()=>{sQ(yJ(JJ(),J),"utf-8").then((Q)=>{let Z=GQ(Q,J.replace(/\.md$/,""));if(Z.def)I(Z.def),S(Z.rawFrontmatter);else g(Z.errors.join("; "))}).catch((Q)=>{x(Q),g("Failed to read workflow file.")})},[J]),E.useEffect(()=>{import("./agentTypes-1.1.20-mf4dz2fp.mjs").then((Q)=>Q.getKnownAgentTypes(UQ())).then(c).catch((Q)=>x(Q))},[]);let Y=E.useMemo(()=>{if(!X)return[];let Q=KQ(X);if(h)Q.push(...VQ(X,h));return Q},[X,h]),P=E.useCallback((Q)=>{$(),I((Z)=>Z?Q(Z):Z),l(!0),T(null)},[$]),B=C-1,u=X&&B>=0?X.steps[B]:void 0,YJ=C===0?["description","main"]:["name","agents","handbackTo"],bQ=E.useCallback(async()=>{if(!X)return;try{let Q=yJ(JJ(),J);await tQ(Q,$Q(X,w)),l(!1),T(`Saved → ${Q}`)}catch(Q){x(Q),T("Failed to save.")}},[X,w,J]),EQ=E.useCallback(()=>{if(!X)return;let Q=yJ(eQ(),`claudin-wf-prompt-${Date.now()}.md`);try{rQ(Q,X.instructions?`${X.instructions}
|
|
6
|
-
`:"");let Z=_Q(Q);if(Z.error)T(Z.error);else if(Z.content===null)T("No external editor available — set $EDITOR or $VISUAL.");else{let z=Z.content.trim();if(z!==X.instructions)P((G)=>({...G,instructions:z}))}}catch(Z){x(Z),T("Failed to open editor.")}finally{try{nQ(Q)}catch{}}},[X,P]),SQ=E.useCallback(()=>{if(!X)return;let Q=YJ[D];if($(),C===0){if(Q==="description")O({kind:"input",target:"description",value:X.description,cursor:X.description.length});else{let Z=["(default)",...[...h??[]].sort()];O({kind:"picker",target:"main",options:Z,checked:new Set([X.main??"(default)"]),cursor:Math.max(0,Z.indexOf(X.main??"(default)")),multi:!1})}return}if(!u)return;if(Q==="name")O({kind:"input",target:"name",value:u.name,cursor:u.name.length});else if(Q==="agents"){let Z=[...new Set([...[...h??[]].sort(),...u.agents])];O({kind:"picker",target:"agents",options:Z,checked:new Set(u.agents),cursor:0,multi:!0})}else{let Z=X.steps.slice(0,B).map((z)=>z.name);if(Z.length===0){T("No earlier phases to hand back to.");return}O({kind:"picker",target:"handbackTo",options:Z,checked:new Set(u.handbackTo??[]),cursor:0,multi:!0})}},[X,YJ,D,C,u,B,h,$]),RQ=E.useCallback((Q,Z)=>{let z=Z.trim();if($(),O(null),!z)return;if(Q==="description")P((G)=>({...G,description:z}));else if(Q==="name"&&B>=0)P((G)=>({...G,steps:qQ(G.steps,B,z)}));else if(Q==="addStep"){let G=C===0?0:C;P((b)=>({...b,steps:[...b.steps.slice(0,G),{name:z,agents:[]},...b.steps.slice(G)]})),j(G+1),k("phases")}},[$,C,B,P]),TQ=E.useCallback((Q)=>{if($(),O(null),Q.target==="main"){let z=Q.options[Q.cursor];P((G)=>({...G,main:z==="(default)"?void 0:z}));return}let Z=Q.options.filter((z)=>Q.checked.has(z));if(Q.target==="agents"&&B>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===B?{...G,agents:Z}:G)}));else if(Q.target==="handbackTo"&&B>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===B?{...G,handbackTo:Z.length?Z:void 0}:G)}))},[$,B,P]),jQ=E.useCallback(()=>{if(B<0)return;P((Q)=>({...Q,steps:Q.steps.filter((Z,z)=>z!==B)})),j((Q)=>Math.max(0,Math.min(Q,(X?.steps.length??1)-1))),k("phases")},[X,B,P]),gJ=E.useCallback((Q)=>{if(!X||B<0)return;let Z=B+Q;if(Z<0||Z>=X.steps.length)return;P((z)=>{let G=[...z.steps],[b]=G.splice(B,1);return G.splice(Z,0,b),{...z,steps:G}}),j(Z+1)},[X,B,P]);if(e((Q,Z)=>{if(!X){if(Z.escape)U();return}if(V?.kind==="input")return;if(V?.kind==="confirmDelete"){if($(),O(null),Q==="y")jQ();return}if(V?.kind==="confirmDiscard"){if($(),O(null),Q==="y")U();return}if(V?.kind==="picker"){let z=(G)=>{$(),O((b)=>b?.kind==="picker"?G(b):b)};if(Z.upArrow)z((G)=>({...G,cursor:Math.max(0,G.cursor-1)}));else if(Z.downArrow)z((G)=>({...G,cursor:Math.min(G.options.length-1,G.cursor+1)}));else if(Q===" "&&V.multi)z((G)=>{let b=G.options[G.cursor];if(b===void 0)return G;let a=new Set(G.checked);if(a.has(b))a.delete(b);else a.add(b);return{...G,checked:a}});else if(Z.return)TQ(V);else if(Z.escape)$(),O(null);return}if(Q==="s"){bQ();return}if(Q==="p"){EQ();return}if(v==="fields"){if(Z.escape)$(),k("phases");else if(Z.upArrow)$(),L((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),L((z)=>Math.min(YJ.length-1,z+1));else if(Z.return)SQ();return}if(Z.escape)if(R)$(),O({kind:"confirmDiscard"});else U();else if(Z.upArrow)$(),j((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),j((z)=>Math.min(X.steps.length,z+1));else if(Z.return)$(),k("fields"),L(0);else if(Q==="a")$(),O({kind:"input",target:"addStep",value:"",cursor:0});else if(Q==="d"&&C>0)$(),O({kind:"confirmDelete"});else if(Q==="K")gJ(-1);else if(Q==="J")gJ(1)},{isActive:!0}),F)return _(N,{flexDirection:"column",paddingX:2,paddingTop:1,children:[_(M,{color:"error",children:["⚠ ",F]}),_(M,{dimColor:!0,children:["Esc to go back — fix the file by hand at .claudin/workflows/",J,"."]})]});if(!X)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Loading…"})});let $J=Math.max(6,H-6),r=wJ-4,o=Math.max(20,K-4-wJ-1-4-4),IQ=$J-2,GJ=(Q)=>Q?") ":" ",KJ=[];{let Q=n(`${GJ(C===0)}${X.name}`,r);KJ.push(ZJ(C===0?UJ(W.permission,Q):i.bold(Q),f(Q),r));let Z=` ${"─".repeat(Math.max(1,r-2))}`;KJ.push(ZJ(i.dim(Z),f(Z),r)),X.steps.forEach((z,G)=>{let b=C===G+1,a=n(`${GJ(b)}${z.name} ${z.agents.length}`,r);KJ.push(ZJ(b?UJ(W.permission,a):a,f(a),r))})}let fJ=V?.kind==="picker",VJ,NJ,vQ=" Prompt (p to edit) ",_J=[],mQ=kJ-2,hJ=Math.max(3,$J-kJ),cJ=hJ-2;if(fJ){let Q=V;VJ=Q.target==="main"?" main orchestrator ":` ${Q.target==="agents"?"agents":"hand back to"} · ${u?.name??X.name} `;let Z=$J-2,z=Math.max(0,Math.min(Q.cursor-Math.floor(Z/2),Q.options.length-Z));NJ=Q.options.slice(z,z+Z).map((G,b)=>{let XJ=z+b===Q.cursor,RJ=Q.multi?Q.checked.has(G)?"[x] ":"[ ] ":"",xJ=Q.target==="agents"&&h&&!h.has(G),MJ=n(`${GJ(XJ)}${RJ}${G}${xJ?" (unknown)":""}`,o),wQ=XJ?UJ(W.permission,MJ):xJ?UJ(W.error,MJ):MJ;return ZJ(wQ,f(MJ),o)})}else{VJ=C===0?` ${X.name} `:` phase: ${u?.name??""} `;let Q=(z)=>{if(z==="description")return X.description||"(empty)";if(z==="main")return X.main??"(default)";if(z==="name")return u?.name??"";if(z==="agents")return u?.agents.join(", ")||"(none)";return u?.handbackTo?.join(", ")??"—"};if(NJ=YJ.map((z,G)=>{let b=v==="fields"&&G===D,a=z==="handbackTo"?"handback":z,XJ=n(`${GJ(b)}${a}: ${Q(z)}`,o),RJ=b?UJ(W.permission,XJ):i.dim(XJ.slice(0,2+a.length+1))+XJ.slice(2+a.length+1);return ZJ(RJ,f(XJ),o)}),_J=(X.instructions?X.instructions.split(`
|
|
7
|
-
`):[]).slice(0,cJ).map((z)=>{let G=n(z,o);return ZJ(i.dim(G),f(G),o)}),_J.length===0)_J=[ZJ(i.dim("(empty — press p to write the prompt)"),f("(empty — press p to write the prompt)"),o)]}let QJ=V?.kind==="input"?V:null,yQ=QJ?.target==="addStep"?"New phase name:":QJ?.target==="name"?"Rename phase:":"Description:";return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:X.name}),q(M,{color:R?"warning":"success",wrap:"truncate",children:R?"● unsaved":"saved"})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:wJ,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:EJ(KJ,IQ,r),width:r})}),fJ?q(N,{flexDirection:"column",flexGrow:1,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,$J-2,o),width:o})}):_(N,{flexDirection:"column",flexGrow:1,children:[q(N,{flexDirection:"column",height:kJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,mQ,o),width:o})}),q(N,{flexDirection:"column",height:hJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:vQ,position:"top",align:"start"},children:q(t,{lines:EJ(_J,cJ,o),width:o})})]})]}),QJ&&_(N,{flexDirection:"column",children:[q(M,{children:yQ}),q(N,{borderStyle:"round",borderDimColor:!0,paddingLeft:1,children:q(SJ,{value:QJ.value,onChange:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,value:Q}:Z),onSubmit:()=>RQ(QJ.target,QJ.value),columns:80,cursorOffset:QJ.cursor,onChangeCursorOffset:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,cursor:Q}:Z),showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]}),V?.kind==="confirmDelete"&&u&&_(M,{color:"warning",children:['Delete phase "',u.name,'"? (y/n)']}),V?.kind==="confirmDiscard"&&q(M,{color:"warning",children:"Discard unsaved changes? (y/n)"}),Y.length>0&&_(M,{color:"error",wrap:"truncate",children:["⚠ ",Y.join(" · ")]}),m&&q(M,{dimColor:!0,wrap:"truncate",children:m})]})}var E,wJ=26,kJ=7;var PQ=qJ(()=>{dJ();WJ();lJ();pJ();YQ();aJ();aQ();DJ();iQ();oJ();uJ();NQ();mJ();zQ();s();E=OJ(AJ(),1)});import{unlink as JX,writeFile as QX}from"fs/promises";import{join as HQ}from"path";function DQ({onRun:J,onInputActiveChange:U,onViewChange:K}){let[H,A]=p.useState([]),[W,X]=p.useState({}),[I,w]=p.useState(0),[S,F]=p.useState("list"),[g,R]=p.useState(""),[l,v]=p.useState(0),[k,C]=p.useState(null),[j,D]=p.useState(null),L=p.useCallback(()=>{OQ().then(({defs:Y,errorsByFile:P})=>{A(Y),X(P)}).catch((Y)=>x(Y))},[]);p.useEffect(L,[L]),p.useEffect(()=>{U(S!=="list")},[S,U]),p.useEffect(()=>{K?.(j!==null)},[j,K]);let V=H[Math.min(I,Math.max(0,H.length-1))],O=(Y)=>Y.sourceFile??`${Y.name}.md`,m=V?W[O(V)]:void 0,T=(Y)=>{R(""),v(0),C(null),F(Y)},h=()=>{if(V&&g.trim())J(V,g.trim());F("list")},c=async()=>{let Y=g.trim();if(!Y){F("list");return}try{let P=HQ(JJ(),`${Y}.md`);await QX(P,XX(Y)),L(),D(`${Y}.md`)}catch(P){x(P),C("Failed to create workflow.")}F("list")},$=async()=>{if(V)try{await JX(HQ(JJ(),O(V))),C(`Deleted ${V.name}.`),L()}catch(Y){x(Y),C("Failed to delete workflow.")}F("list")};if(e((Y,P)=>{if(j!==null)return;if(S==="confirmDelete"){if(Y==="y")$();else F("list");return}if(S!=="list")return;if(P.upArrow)w((B)=>Math.max(0,B-1));else if(P.downArrow)w((B)=>Math.min(H.length-1,B+1));else if(P.return&&V)T("task");else if(Y==="n")T("new");else if(Y==="d"&&V)F("confirmDelete");else if(Y==="e"&&V)C(null),D(O(V));else if(Y==="r")L()},{isActive:!0}),j!==null)return q(N,{paddingX:2,children:q(MQ,{sourceFile:j,onClose:()=>{D(null),L()}})});if(S==="task"||S==="new"){let Y=S==="task"?`Task for "${V?.name}":`:"New workflow name:";return _(N,{flexDirection:"column",paddingTop:1,paddingX:2,children:[q(zJ,{color:"permission"}),q(N,{marginTop:1,children:q(M,{children:Y})}),q(N,{borderStyle:"round",borderDimColor:!0,marginY:1,paddingLeft:1,children:q(SJ,{value:g,onChange:R,onSubmit:S==="task"?h:()=>void c(),columns:80,cursorOffset:l,onChangeCursorOffset:v,showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission"}),_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[H.length===0?q(M,{dimColor:!0,children:'No workflows. Press "n" to create one at .claudin/workflows/.'}):H.map((Y,P)=>{let B=Boolean(W[O(Y)]?.length);return _(M,{inverse:P===I,children:[P===I?"▸ ":" ",Y.name,B?" ⚠":""," ",_(M,{dimColor:!0,children:["· ",Y.steps.length," phases"]})]},Y.name)}),V&&_(N,{flexDirection:"column",marginTop:1,children:[q(M,{dimColor:!0,children:V.description}),V.steps.map((Y)=>_(M,{dimColor:!0,children:[" ",Y.name,": ",Y.agents.join(", ")||"(terminal)",Y.handbackTo?.length?` ↩ ${Y.handbackTo.join(",")}`:""]},Y.name)),m?.length?_(M,{color:"error",children:["⚠ ",m.join("; ")]}):null]}),S==="confirmDelete"&&V&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete "',V.name,'"? (y/n)']})}),k&&q(N,{marginTop:1,children:q(M,{dimColor:!0,children:k})})]})]})}var p,XX=(J)=>`---
|
|
8
|
-
name: ${J}
|
|
9
|
-
description: What this workflow does
|
|
10
|
-
steps:
|
|
11
|
-
- name: explore
|
|
12
|
-
agents: [explorer]
|
|
13
|
-
- name: synthesize
|
|
14
|
-
agents: [synthesizer]
|
|
15
|
-
handbackTo: [explore]
|
|
16
|
-
- name: done
|
|
17
|
-
---
|
|
18
|
-
Describe the goal and any house rules for this workflow.
|
|
19
|
-
`;var LQ=qJ(()=>{WJ();YQ();DJ();iJ();NQ();mJ();PQ();s();p=OJ(AJ(),1)});function AQ({hint:J,onExit:U,escActive:K=!0}){let H=FQ();return BQ("confirm:no",U,{context:"Settings",isActive:K}),q(N,{marginLeft:2,marginTop:1,children:q(M,{dimColor:!0,children:H.pending?`Press ${H.keyName} again to exit`:J})})}function NZ({context:J,onExit:U,initialTab:K,initialRunId:H}){let[A,W]=d.useState(K??"library"),[X,I]=d.useState(null),[w,S]=d.useState(!1),[F,g]=d.useState(!1),[R,l]=d.useState(!1),v=d.useRef(null),k=d.useRef(!0);d.useEffect(()=>{return k.current=!0,()=>{k.current=!1}},[]);let C=J.canUseTool??UX,j=d.useCallback((O,m)=>{v.current?.abort();let T=new AbortController;v.current=T,W("running");let h={...J,setAppState:()=>{},setAppStateForTasks:J.setAppStateForTasks??J.setAppState};WQ({def:O,task:m,toolUseContext:h,canUseTool:C,signal:T.signal,onProgress:(c)=>{if(k.current)I({...c})}}).then((c)=>{if(k.current)I({...c});let $=(c.artifact||"").slice(0,2000);CQ({value:`<task-notification>
|
|
20
|
-
<status>${c.status}</status>
|
|
21
|
-
<summary>Workflow "${O.name}" ${c.status} (run ${c.runId})</summary>
|
|
22
|
-
<result>${$}</result>
|
|
23
|
-
</task-notification>`,mode:"task-notification"})}).catch((c)=>x(c))},[J,C]),D=d.useCallback(()=>{v.current?.abort()},[]);e((O,m)=>{if(m.tab||m.leftArrow)W((T)=>T==="running"?"library":"running");else if(m.rightArrow)W("running")},{isActive:!w&&!F&&!R});let L=_(N,{flexDirection:"row",gap:1,children:[q(M,{bold:!0,color:"permission",children:"Workflows"}),_(M,{bold:A==="running",inverse:A==="running",children:[" ","Running"," "]}),_(M,{bold:A==="library",inverse:A==="library",children:[" ","Library"," "]})]}),V=()=>U("Workflows dialog dismissed",{display:"system"});if(A==="running")return _(N,{flexDirection:"column",children:[!F&&L,q(QQ,{liveRun:X,onStop:D,initialRunId:H,onViewChange:g}),q(AQ,{hint:F?"↑↓ select · esc back · s save":"Tab tabs · ↑↓ select · Enter view · s save · x stop · d delete · Esc close",escActive:!F,onExit:V})]});return _(N,{flexDirection:"column",children:[!R&&L,q(DQ,{onRun:j,onInputActiveChange:S,onViewChange:l}),q(AQ,{hint:R?"↑↓ nav · Enter edit · a add · d del · K/J move · p prompt · s save · Esc back":"Tab tabs · ↑↓ select · Enter run · n new · e edit · d delete · Esc close",escActive:!R,onExit:V})]})}var d,UX=async(J,U)=>({behavior:"allow",updatedInput:U});var YX=qJ(()=>{WJ();$X();ZX();DJ();qX();zX();XQ();LQ();s();d=OJ(AJ(),1)});
|
|
24
|
-
export{NZ as Xb,YX as Yb};
|