@claudiolabs/claudin 1.1.7 → 1.1.8
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.8-6z4gxak1.mjs +1 -0
- package/dist/chunks/App-1.1.8-d07z7cbf.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.8-fsyn77jc.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.8-z6j52pp3.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.8-nxgt8y8q.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.8-bjsz0qfp.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.8-2mwsqmhp.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.8-24z6s4j5.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.8-abc9qq6c.mjs +7 -0
- package/dist/chunks/Doctor-1.1.8-8ja3a3f1.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.8-nsj1wjz4.mjs +6 -0
- package/dist/chunks/Grove-1.1.8-hkq9z22m.mjs +1 -0
- package/dist/chunks/ITermBackend-1.1.8-a8tfxk9n.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.8-nt3tgbzz.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.8-ybdh3drb.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.8-qvkzvfgf.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.8-2bkd7rzz.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.8-v45zy151.mjs +1 -0
- package/dist/chunks/REPL-1.1.8-mdyssah9.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.8-2d6r24bp.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.8-bkt80qn7.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.8-35s6scr9.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.8-gddzn3ac.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.8-sqrxwgy6.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.8-21pehb0t.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.8-h78w5ftj.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.8-pqvwnbce.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.8-rnbk6kxv.mjs +1 -0
- package/dist/chunks/add-dir-1.1.8-mdmcq32z.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.8-h8nnkdmz.mjs +1 -0
- package/dist/chunks/agents-1.1.8-4f1tz8xm.mjs +110 -0
- package/dist/chunks/agents-1.1.8-6kv8h0fa.mjs +3 -0
- package/dist/chunks/api-1.1.8-mp8twdfj.mjs +1 -0
- package/dist/chunks/asciicast-1.1.8-t2mar25c.mjs +1 -0
- package/dist/chunks/assistant-1.1.8-t54n390j.mjs +1 -0
- package/dist/chunks/auth-1.1.8-pv29fraf.mjs +1 -0
- package/dist/chunks/auth-1.1.8-qm8h71j7.mjs +1 -0
- package/dist/chunks/autoMode-1.1.8-ahgyhzep.mjs +48 -0
- package/dist/chunks/autoUpdater-1.1.8-sdsx7fz9.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.8-b37pdha5.mjs +1 -0
- package/dist/chunks/branch-1.1.8-2emyy03d.mjs +4 -0
- package/dist/chunks/bridge-1.1.8-dkk2n1jt.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.8-bv7zrzb6.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.8-z1sv63ct.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.8-rqp8q7sc.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.8-5hg7c4c6.mjs +1 -0
- package/dist/chunks/btw-1.1.8-td5e11qz.mjs +1 -0
- package/dist/chunks/buddy-1.1.8-jmk0bgcs.mjs +3 -0
- package/dist/chunks/cacache-1.1.8-qzw8r9my.mjs +1 -0
- package/dist/chunks/cache-probe-1.1.8-889g7w4k.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.8-nzgv89d1.mjs +4 -0
- package/dist/chunks/caches-1.1.8-f09m1b12.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.8-2rww6nv3.mjs +1 -0
- package/dist/chunks/claudemd-1.1.8-wygkqnb3.mjs +1 -0
- package/dist/chunks/clear-1.1.8-71j589cf.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.8-5j0t6dtd.mjs +1 -0
- package/dist/chunks/cli-1.1.8-05yz3n3m.mjs +2 -0
- package/dist/chunks/cli-1.1.8-0fqp4nd4.mjs +2 -0
- package/dist/chunks/cli-1.1.8-0pb52yqp.mjs +6 -0
- package/dist/chunks/cli-1.1.8-0vkk8zhj.mjs +2 -0
- package/dist/chunks/cli-1.1.8-0xw30z19.mjs +2 -0
- package/dist/chunks/cli-1.1.8-125zncm7.mjs +2 -0
- package/dist/chunks/cli-1.1.8-12gxg7dk.mjs +3 -0
- package/dist/chunks/cli-1.1.8-1as5wwed.mjs +2 -0
- package/dist/chunks/cli-1.1.8-1at0q43h.mjs +2 -0
- package/dist/chunks/cli-1.1.8-1e4hz1dh.mjs +4 -0
- package/dist/chunks/cli-1.1.8-1m910jhy.mjs +2 -0
- package/dist/chunks/cli-1.1.8-205c5ayn.mjs +45 -0
- package/dist/chunks/cli-1.1.8-20fqtbb0.mjs +2 -0
- package/dist/chunks/cli-1.1.8-231ktrsd.mjs +2 -0
- package/dist/chunks/cli-1.1.8-2afqpefw.mjs +2 -0
- package/dist/chunks/cli-1.1.8-2nq1cm30.mjs +39 -0
- package/dist/chunks/cli-1.1.8-2q9w1hnc.mjs +2 -0
- package/dist/chunks/cli-1.1.8-2smp07zs.mjs +2 -0
- package/dist/chunks/cli-1.1.8-2vsq8a0w.mjs +2 -0
- package/dist/chunks/cli-1.1.8-2zp9e9zh.mjs +2 -0
- package/dist/chunks/cli-1.1.8-30zhxwg9.mjs +16 -0
- package/dist/chunks/cli-1.1.8-35pzh2ts.mjs +2 -0
- package/dist/chunks/cli-1.1.8-38vrxm77.mjs +3 -0
- package/dist/chunks/cli-1.1.8-3btvsdx3.mjs +2 -0
- package/dist/chunks/cli-1.1.8-3j80fvcv.mjs +2 -0
- package/dist/chunks/cli-1.1.8-3tazs3h1.mjs +2 -0
- package/dist/chunks/cli-1.1.8-462maymv.mjs +2 -0
- package/dist/chunks/cli-1.1.8-49wtksqb.mjs +2 -0
- package/dist/chunks/cli-1.1.8-4cgcvt3g.mjs +15 -0
- package/dist/chunks/cli-1.1.8-4cvb8vj8.mjs +2 -0
- package/dist/chunks/cli-1.1.8-5862s9mq.mjs +9 -0
- package/dist/chunks/cli-1.1.8-59r0krp6.mjs +4 -0
- package/dist/chunks/cli-1.1.8-5e3xx9db.mjs +8 -0
- package/dist/chunks/cli-1.1.8-5s0ctz15.mjs +25 -0
- package/dist/chunks/cli-1.1.8-6118xjzf.mjs +2 -0
- package/dist/chunks/cli-1.1.8-61d813en.mjs +2 -0
- package/dist/chunks/cli-1.1.8-656pm2np.mjs +2 -0
- package/dist/chunks/cli-1.1.8-67d0fesx.mjs +18 -0
- package/dist/chunks/cli-1.1.8-6kg3tp3t.mjs +2 -0
- package/dist/chunks/cli-1.1.8-6t8wtnyz.mjs +15 -0
- package/dist/chunks/cli-1.1.8-6w5tvkaj.mjs +2 -0
- package/dist/chunks/cli-1.1.8-74586mpw.mjs +9 -0
- package/dist/chunks/cli-1.1.8-7536y3yr.mjs +3 -0
- package/dist/chunks/cli-1.1.8-7e1cxc2r.mjs +2 -0
- package/dist/chunks/cli-1.1.8-7ghn9sgt.mjs +2 -0
- package/dist/chunks/cli-1.1.8-7gv7j9wf.mjs +2 -0
- package/dist/chunks/cli-1.1.8-7j6ztazy.mjs +2 -0
- package/dist/chunks/cli-1.1.8-7kf0prpp.mjs +2 -0
- package/dist/chunks/cli-1.1.8-7mtk34ry.mjs +4 -0
- package/dist/chunks/cli-1.1.8-7sft4tp3.mjs +2 -0
- package/dist/chunks/cli-1.1.8-85hnxfzw.mjs +2 -0
- package/dist/chunks/cli-1.1.8-8ethv98x.mjs +3 -0
- package/dist/chunks/cli-1.1.8-8gj0g1hd.mjs +2 -0
- package/dist/chunks/cli-1.1.8-8x1wf6wg.mjs +59 -0
- package/dist/chunks/cli-1.1.8-8xe9c3tx.mjs +2 -0
- package/dist/chunks/cli-1.1.8-8zf4nnw6.mjs +15 -0
- package/dist/chunks/cli-1.1.8-98pq375b.mjs +2 -0
- package/dist/chunks/cli-1.1.8-9bx144d4.mjs +2 -0
- package/dist/chunks/cli-1.1.8-9d0730ff.mjs +3 -0
- package/dist/chunks/cli-1.1.8-9egsv8kb.mjs +2 -0
- package/dist/chunks/cli-1.1.8-9mr8erq2.mjs +2 -0
- package/dist/chunks/cli-1.1.8-9nnn67wx.mjs +2 -0
- package/dist/chunks/cli-1.1.8-9yhtna2t.mjs +2 -0
- package/dist/chunks/cli-1.1.8-a1qac4fc.mjs +3 -0
- package/dist/chunks/cli-1.1.8-a3etddaa.mjs +2 -0
- package/dist/chunks/cli-1.1.8-a3w8yas2.mjs +24 -0
- package/dist/chunks/cli-1.1.8-a52qejcb.mjs +20 -0
- package/dist/chunks/cli-1.1.8-akxxvxcg.mjs +2 -0
- package/dist/chunks/cli-1.1.8-arxr9t30.mjs +2 -0
- package/dist/chunks/cli-1.1.8-b46m1pa5.mjs +2 -0
- package/dist/chunks/cli-1.1.8-bdesaqqn.mjs +2 -0
- package/dist/chunks/cli-1.1.8-bf0h6s2a.mjs +2 -0
- package/dist/chunks/cli-1.1.8-bh494psb.mjs +6 -0
- package/dist/chunks/cli-1.1.8-bxbg70bf.mjs +2 -0
- package/dist/chunks/cli-1.1.8-bzs61r0e.mjs +2 -0
- package/dist/chunks/cli-1.1.8-c0knk34t.mjs +2 -0
- package/dist/chunks/cli-1.1.8-c3rz4cxf.mjs +2 -0
- package/dist/chunks/cli-1.1.8-c4xc2d6s.mjs +2 -0
- package/dist/chunks/cli-1.1.8-cpgd4r16.mjs +2 -0
- package/dist/chunks/cli-1.1.8-czskf284.mjs +2 -0
- package/dist/chunks/cli-1.1.8-d092mrgm.mjs +2 -0
- package/dist/chunks/cli-1.1.8-d2gfswc3.mjs +2 -0
- package/dist/chunks/cli-1.1.8-d3s7xdkk.mjs +2 -0
- package/dist/chunks/cli-1.1.8-d4878nn2.mjs +2 -0
- package/dist/chunks/cli-1.1.8-d5afbx68.mjs +6 -0
- package/dist/chunks/cli-1.1.8-db100c4h.mjs +202 -0
- package/dist/chunks/cli-1.1.8-dgbh9n27.mjs +6 -0
- package/dist/chunks/cli-1.1.8-dv1edxg1.mjs +4 -0
- package/dist/chunks/cli-1.1.8-e1by1s5j.mjs +2 -0
- package/dist/chunks/cli-1.1.8-e3ev48gp.mjs +2 -0
- package/dist/chunks/cli-1.1.8-edw6k2f7.mjs +2 -0
- package/dist/chunks/cli-1.1.8-ee9qyzkj.mjs +2 -0
- package/dist/chunks/cli-1.1.8-efjw6x2m.mjs +2 -0
- package/dist/chunks/cli-1.1.8-ekmm2znm.mjs +2 -0
- package/dist/chunks/cli-1.1.8-epqqq77y.mjs +1 -0
- package/dist/chunks/cli-1.1.8-ernbjcgb.mjs +2 -0
- package/dist/chunks/cli-1.1.8-evk4j7cq.mjs +2 -0
- package/dist/chunks/cli-1.1.8-f0kaq070.mjs +2 -0
- package/dist/chunks/cli-1.1.8-f2gv8js5.mjs +2 -0
- package/dist/chunks/cli-1.1.8-f75mhnpd.mjs +17 -0
- package/dist/chunks/cli-1.1.8-fd4rat7s.mjs +2 -0
- package/dist/chunks/cli-1.1.8-ffx8vwwt.mjs +3 -0
- package/dist/chunks/cli-1.1.8-fgw4h53q.mjs +2 -0
- package/dist/chunks/cli-1.1.8-fqgcppxc.mjs +2 -0
- package/dist/chunks/cli-1.1.8-g0t0qtsv.mjs +12 -0
- package/dist/chunks/cli-1.1.8-g8sjkk8z.mjs +7 -0
- package/dist/chunks/cli-1.1.8-gf6w1neb.mjs +2 -0
- package/dist/chunks/cli-1.1.8-gfzzaejq.mjs +2 -0
- package/dist/chunks/cli-1.1.8-gqqjkrq0.mjs +4 -0
- package/dist/chunks/cli-1.1.8-h5zqw021.mjs +2 -0
- package/dist/chunks/cli-1.1.8-hws56n0s.mjs +2 -0
- package/dist/chunks/cli-1.1.8-hzkgx15v.mjs +3 -0
- package/dist/chunks/cli-1.1.8-j2mvpcgh.mjs +2 -0
- package/dist/chunks/cli-1.1.8-jk6kcgkf.mjs +4 -0
- package/dist/chunks/cli-1.1.8-jkp8ynyx.mjs +2 -0
- package/dist/chunks/cli-1.1.8-jmp76vj2.mjs +2 -0
- package/dist/chunks/cli-1.1.8-jtxcccqb.mjs +2 -0
- package/dist/chunks/cli-1.1.8-jv4y43ct.mjs +2 -0
- package/dist/chunks/cli-1.1.8-jzk8xgkw.mjs +2 -0
- package/dist/chunks/cli-1.1.8-k2q3jd4x.mjs +2 -0
- package/dist/chunks/cli-1.1.8-k3jmtdxb.mjs +2 -0
- package/dist/chunks/cli-1.1.8-k4q05xpp.mjs +4 -0
- package/dist/chunks/cli-1.1.8-k6xa7zcq.mjs +2 -0
- package/dist/chunks/cli-1.1.8-k878kyye.mjs +2 -0
- package/dist/chunks/cli-1.1.8-kgq0wj8c.mjs +2 -0
- package/dist/chunks/cli-1.1.8-kkzcmrxs.mjs +2 -0
- package/dist/chunks/cli-1.1.8-knfkgncm.mjs +5721 -0
- package/dist/chunks/cli-1.1.8-mayxghnz.mjs +2 -0
- package/dist/chunks/cli-1.1.8-mdybbj2p.mjs +133 -0
- package/dist/chunks/cli-1.1.8-mgz0nyed.mjs +50 -0
- package/dist/chunks/cli-1.1.8-mhv5xrf1.mjs +4 -0
- package/dist/chunks/cli-1.1.8-mkzsens1.mjs +4 -0
- package/dist/chunks/cli-1.1.8-mq7t5jca.mjs +3 -0
- package/dist/chunks/cli-1.1.8-mza3p36d.mjs +2 -0
- package/dist/chunks/cli-1.1.8-n14gnq6x.mjs +42 -0
- package/dist/chunks/cli-1.1.8-n5d4px5z.mjs +2 -0
- package/dist/chunks/cli-1.1.8-nh485h9b.mjs +2 -0
- package/dist/chunks/cli-1.1.8-nrr32j4a.mjs +2 -0
- package/dist/chunks/cli-1.1.8-nt403561.mjs +2 -0
- package/dist/chunks/cli-1.1.8-nv123ysj.mjs +5 -0
- package/dist/chunks/cli-1.1.8-nv181dzv.mjs +2 -0
- package/dist/chunks/cli-1.1.8-nv79qg54.mjs +2 -0
- package/dist/chunks/cli-1.1.8-nvt7cbzg.mjs +2 -0
- package/dist/chunks/cli-1.1.8-nx84ctb0.mjs +2 -0
- package/dist/chunks/cli-1.1.8-nzs4skf4.mjs +2 -0
- package/dist/chunks/cli-1.1.8-p3fzx1sj.mjs +24 -0
- package/dist/chunks/cli-1.1.8-p6bd42xj.mjs +2 -0
- package/dist/chunks/cli-1.1.8-pwdb2y2v.mjs +2 -0
- package/dist/chunks/cli-1.1.8-px4ph853.mjs +6 -0
- package/dist/chunks/cli-1.1.8-q6c1w0dw.mjs +2 -0
- package/dist/chunks/cli-1.1.8-qcyhp9k8.mjs +3 -0
- package/dist/chunks/cli-1.1.8-qgweycgj.mjs +6 -0
- package/dist/chunks/cli-1.1.8-qgzhmw5w.mjs +2 -0
- package/dist/chunks/cli-1.1.8-qpqcr4wt.mjs +2 -0
- package/dist/chunks/cli-1.1.8-r9vd968y.mjs +2 -0
- package/dist/chunks/cli-1.1.8-rk2akmnh.mjs +67 -0
- package/dist/chunks/cli-1.1.8-rk40pf8s.mjs +2 -0
- package/dist/chunks/cli-1.1.8-rqqgbjy2.mjs +133 -0
- package/dist/chunks/cli-1.1.8-sc8428te.mjs +12 -0
- package/dist/chunks/cli-1.1.8-sw7sne7p.mjs +25 -0
- package/dist/chunks/cli-1.1.8-sxkrzwwg.mjs +18 -0
- package/dist/chunks/cli-1.1.8-sxmsdz7p.mjs +2 -0
- package/dist/chunks/cli-1.1.8-syhhv2xq.mjs +21 -0
- package/dist/chunks/cli-1.1.8-syttwgv4.mjs +3 -0
- package/dist/chunks/cli-1.1.8-t4hx0et2.mjs +2 -0
- package/dist/chunks/cli-1.1.8-t62hkyhg.mjs +2 -0
- package/dist/chunks/cli-1.1.8-t8xxt1pf.mjs +2 -0
- package/dist/chunks/cli-1.1.8-t93r8p95.mjs +4 -0
- package/dist/chunks/cli-1.1.8-t9cqvdhd.mjs +2 -0
- package/dist/chunks/cli-1.1.8-ta0zzaw5.mjs +17 -0
- package/dist/chunks/cli-1.1.8-tf20w2jn.mjs +2 -0
- package/dist/chunks/cli-1.1.8-tw2q1gej.mjs +2 -0
- package/dist/chunks/cli-1.1.8-tx519hkn.mjs +2 -0
- package/dist/chunks/cli-1.1.8-v8hp2y41.mjs +2 -0
- package/dist/chunks/cli-1.1.8-vqpn0kq9.mjs +2 -0
- package/dist/chunks/cli-1.1.8-vrszw55m.mjs +2 -0
- package/dist/chunks/cli-1.1.8-vw9jfqt2.mjs +2 -0
- package/dist/chunks/cli-1.1.8-w1ktcdzx.mjs +34 -0
- package/dist/chunks/cli-1.1.8-w2e3c7g6.mjs +2 -0
- package/dist/chunks/cli-1.1.8-w99f42k9.mjs +3 -0
- package/dist/chunks/cli-1.1.8-w9h3mvb4.mjs +2 -0
- package/dist/chunks/cli-1.1.8-w9tz8aaw.mjs +2 -0
- package/dist/chunks/cli-1.1.8-wdfxmkc7.mjs +2 -0
- package/dist/chunks/cli-1.1.8-wew0nf1q.mjs +12 -0
- package/dist/chunks/cli-1.1.8-wkyr3v6g.mjs +24 -0
- package/dist/chunks/cli-1.1.8-x05h2zp4.mjs +2 -0
- package/dist/chunks/cli-1.1.8-x3vk9h1m.mjs +24 -0
- package/dist/chunks/cli-1.1.8-x9e1306p.mjs +2 -0
- package/dist/chunks/cli-1.1.8-xa445fak.mjs +2 -0
- package/dist/chunks/cli-1.1.8-xmcyv92d.mjs +2 -0
- package/dist/chunks/cli-1.1.8-xqdr42wv.mjs +2 -0
- package/dist/chunks/cli-1.1.8-xzb74dgc.mjs +58 -0
- package/dist/chunks/cli-1.1.8-y3tr91m8.mjs +2 -0
- package/dist/chunks/cli-1.1.8-y50med5h.mjs +4 -0
- package/dist/chunks/cli-1.1.8-yjmxxj4y.mjs +2 -0
- package/dist/chunks/cli-1.1.8-yptj5mm3.mjs +2 -0
- package/dist/chunks/cli-1.1.8-yv4mw1z8.mjs +2 -0
- package/dist/chunks/cli-1.1.8-yx9yzca1.mjs +5 -0
- package/dist/chunks/cli-1.1.8-yzrpw572.mjs +2 -0
- package/dist/chunks/cli-1.1.8-zav01h3c.mjs +2 -0
- package/dist/chunks/cli-1.1.8-zc2wv1d7.mjs +2 -0
- package/dist/chunks/cli-1.1.8-zcrckt5v.mjs +2 -0
- package/dist/chunks/cli-1.1.8-zfx1k21c.mjs +2 -0
- package/dist/chunks/client-1.1.8-h43htzv0.mjs +1 -0
- package/dist/chunks/color-1.1.8-zdg5fqma.mjs +1 -0
- package/dist/chunks/compact-1.1.8-1af2hhhd.mjs +3 -0
- package/dist/chunks/config-1.1.8-bs3j0bh7.mjs +1 -0
- package/dist/chunks/config-1.1.8-mwcwa3ha.mjs +1 -0
- package/dist/chunks/constants-1.1.8-6qsgmarg.mjs +1 -0
- package/dist/chunks/context-1.1.8-y2smmd8y.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.8-7m4c952c.mjs +1 -0
- package/dist/chunks/conversation-1.1.8-2hmabtxd.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.8-nh4ys57g.mjs +1 -0
- package/dist/chunks/copy-1.1.8-vxmgrtv3.mjs +9 -0
- package/dist/chunks/cost-1.1.8-70bsspf5.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.8-4axzt4k5.mjs +1 -0
- package/dist/chunks/createSession-1.1.8-c1fbb9pm.mjs +1 -0
- package/dist/chunks/debug-1.1.8-02x6g655.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.8-a1dxrpdz.mjs +1446 -0
- package/dist/chunks/desktop-1.1.8-tdtzcad0.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.8-6h2qfjfb.mjs +1 -0
- package/dist/chunks/detection-1.1.8-mwwyzmcq.mjs +1 -0
- package/dist/chunks/diff-1.1.8-dcm7epcs.mjs +1 -0
- package/dist/chunks/doctor-1.1.8-a29dgfa8.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.8-njzmwvmq.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.8-7genxy96.mjs +1 -0
- package/dist/chunks/effort-1.1.8-y36797j4.mjs +13 -0
- package/dist/chunks/engine-1.1.8-fqyd5m01.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.8-ef7qwkd5.mjs +1 -0
- package/dist/chunks/envUtils-1.1.8-99wqsc2g.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.8-cc9g8r4w.mjs +1 -0
- package/dist/chunks/environments-1.1.8-hw1xqjcd.mjs +1 -0
- package/dist/chunks/errors-1.1.8-1493t2ga.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.8-zdxcd2qw.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.8-ntrztjxv.mjs +1 -0
- package/dist/chunks/exit-1.1.8-hg0x8rb4.mjs +1 -0
- package/dist/chunks/explorer-1.1.8-45jxm6r3.mjs +1 -0
- package/dist/chunks/export-1.1.8-tjbc3yps.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.8-m07zw7z7.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.8-x0nk6gpq.mjs +1 -0
- package/dist/chunks/fast-1.1.8-16bcey2v.mjs +1 -0
- package/dist/chunks/feedback-1.1.8-ybfs6p31.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.8-0a07kg5a.mjs +1 -0
- package/dist/chunks/git-1.1.8-yhtjgapj.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.8-8m2kfpj0.mjs +1 -0
- package/dist/chunks/goal-1.1.8-m18wqymf.mjs +4 -0
- package/dist/chunks/grove-1.1.8-hq8trmvx.mjs +1 -0
- package/dist/chunks/growthbook-1.1.8-jnc5s1gr.mjs +1 -0
- package/dist/chunks/headless-1.1.8-g6y7x6p5.mjs +2 -0
- package/dist/chunks/heapdump-1.1.8-bdd4tbc4.mjs +6 -0
- package/dist/chunks/help-1.1.8-adn9yj5b.mjs +1 -0
- package/dist/chunks/hookChains-1.1.8-jvx26rvp.mjs +3 -0
- package/dist/chunks/hooks-1.1.8-10bepv2t.mjs +79 -0
- package/dist/chunks/hooks-1.1.8-wxrar4bk.mjs +1 -0
- package/dist/chunks/ide-1.1.8-e1kgf08v.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.8-7qq6cd9d.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.8-tmvsb72y.mjs +1 -0
- package/dist/chunks/index-1.1.8-075w4nhz.mjs +9 -0
- package/dist/chunks/index-1.1.8-0hkas4xw.mjs +1 -0
- package/dist/chunks/index-1.1.8-0vs7xmac.mjs +30 -0
- package/dist/chunks/index-1.1.8-15y0r0yw.mjs +1 -0
- package/dist/chunks/index-1.1.8-26b73x3g.mjs +2 -0
- package/dist/chunks/index-1.1.8-4etv37ta.mjs +1 -0
- package/dist/chunks/index-1.1.8-6p8c8t6k.mjs +1 -0
- package/dist/chunks/index-1.1.8-7ykg7nw4.mjs +1 -0
- package/dist/chunks/index-1.1.8-8t0g6s4j.mjs +1 -0
- package/dist/chunks/index-1.1.8-cgcvj82j.mjs +23 -0
- package/dist/chunks/index-1.1.8-cm3fqyj1.mjs +1 -0
- package/dist/chunks/index-1.1.8-cpf2mfhc.mjs +1 -0
- package/dist/chunks/index-1.1.8-f3qfkewa.mjs +1 -0
- package/dist/chunks/index-1.1.8-gyhxyh37.mjs +1 -0
- package/dist/chunks/index-1.1.8-hyz5kb4e.mjs +1 -0
- package/dist/chunks/index-1.1.8-k0eafjj9.mjs +1 -0
- package/dist/chunks/index-1.1.8-qhk5dps0.mjs +9 -0
- package/dist/chunks/index-1.1.8-rcyqt694.mjs +1 -0
- package/dist/chunks/index-1.1.8-sv9wq8vm.mjs +1 -0
- package/dist/chunks/index-1.1.8-tz0fvmye.mjs +5 -0
- package/dist/chunks/index-1.1.8-vaqk09sc.mjs +1 -0
- package/dist/chunks/index-1.1.8-vd2csf3e.mjs +2 -0
- package/dist/chunks/index-1.1.8-y6bn96fs.mjs +1 -0
- package/dist/chunks/init-1.1.8-e7kkbgzq.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.8-0cctke88.mjs +1 -0
- package/dist/chunks/ink-1.1.8-20q0h10k.mjs +1 -0
- package/dist/chunks/insights-1.1.8-e9hjnmbn.mjs +870 -0
- package/dist/chunks/install-1.1.8-fnb2k88m.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.8-dgabwyh1.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.8-2vh4newn.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.8-kth6vzt4.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.8-3g33kfsm.mjs +1 -0
- package/dist/chunks/keybindings-1.1.8-c69hmddw.mjs +2 -0
- package/dist/chunks/knowledge-1.1.8-sngea3j8.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.8-1srnp86b.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.8-wmvpm36a.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.8-9hrrn6b1.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.8-ae5zxvnn.mjs +1 -0
- package/dist/chunks/log-1.1.8-2wvsfegd.mjs +1 -0
- package/dist/chunks/main-1.1.8-53c8p1hf.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.8-3qxf1b2m.mjs +1 -0
- package/dist/chunks/mcp-1.1.8-12tszewv.mjs +4 -0
- package/dist/chunks/mcp-1.1.8-2yw2qynw.mjs +1 -0
- package/dist/chunks/mcp-1.1.8-awep4hb5.mjs +17 -0
- package/dist/chunks/mcpb-1.1.8-14gyeqdt.mjs +1 -0
- package/dist/chunks/memory-1.1.8-v7hbdb18.mjs +72 -0
- package/dist/chunks/model-1.1.8-70r35ayh.mjs +2 -0
- package/dist/chunks/model-1.1.8-wncbw1nv.mjs +1 -0
- package/dist/chunks/node-1.1.8-0bpza0gv.mjs +12 -0
- package/dist/chunks/oauth-1.1.8-1zj1geby.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.8-eaxqv9jn.mjs +14 -0
- package/dist/chunks/output-style-1.1.8-v8kk4mmm.mjs +1 -0
- package/dist/chunks/package-L37ZVTF4-1.1.8-f4krrwjg.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.8-tns55hj7.mjs +1 -0
- package/dist/chunks/parser-1.1.8-y6rm14pk.mjs +1 -0
- package/dist/chunks/passes-1.1.8-hyd8bv5h.mjs +1 -0
- package/dist/chunks/permissions-1.1.8-e32fqvvk.mjs +3 -0
- package/dist/chunks/permissions-1.1.8-j0scmex7.mjs +1 -0
- package/dist/chunks/plan-1.1.8-1csevcqv.mjs +1 -0
- package/dist/chunks/plist-1.1.8-47419hwn.mjs +1 -0
- package/dist/chunks/plugin-1.1.8-xcj7jz75.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.8-hqbc3c4d.mjs +1 -0
- package/dist/chunks/plugins-1.1.8-nrra8gx1.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.8-2fgj7c0d.mjs +2 -0
- package/dist/chunks/print-1.1.8-3qy5nfzr.mjs +57 -0
- package/dist/chunks/privacy-settings-1.1.8-zsp6fsh1.mjs +1 -0
- package/dist/chunks/process-1.1.8-t92an9g0.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.8-5j7f3zj5.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.8-97yy5hpk.mjs +9 -0
- package/dist/chunks/prompt-1.1.8-mges4wt5.mjs +1 -0
- package/dist/chunks/prompt-1.1.8-tfg4jhbt.mjs +1 -0
- package/dist/chunks/prompts-1.1.8-q1wrrwdr.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.8-ymb7yfxx.mjs +13 -0
- package/dist/chunks/provider-1.1.8-j317q85s.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.8-f2symnwy.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.8-k2r5q4vk.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.8-8chtnkxk.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.8-9wd8cb3g.mjs +34 -0
- package/dist/chunks/registry-1.1.8-d06az15f.mjs +1 -0
- package/dist/chunks/release-notes-1.1.8-rmg47yy1.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.8-wej3bnvx.mjs +2 -0
- package/dist/chunks/remote-env-1.1.8-bht3nad5.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.8-j57ggr86.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.8-rmrphzwh.mjs +1 -0
- package/dist/chunks/rename-1.1.8-t9s0vyfm.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.8-0hp49nj3.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.8-vw8ysvak.mjs +1 -0
- package/dist/chunks/resume-1.1.8-g13vfwpe.mjs +2 -0
- package/dist/chunks/rewind-1.1.8-k2bp0x9p.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.8-jjagdnm4.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.8-szat8e81.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.8-gcn8vt8z.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.8-9k1xg4b5.mjs +1 -0
- package/dist/chunks/session-1.1.8-09hwr9j5.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.8-f8mhpp1n.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.8-bahxxqhe.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.8-hjk3adja.mjs +1 -0
- package/dist/chunks/settings-1.1.8-5vc7cx5w.mjs +1 -0
- package/dist/chunks/setup-1.1.8-trp83ayz.mjs +5 -0
- package/dist/chunks/sinks-1.1.8-mwbk48v4.mjs +1 -0
- package/dist/chunks/skills-1.1.8-danp83p4.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.8-02jr5z55.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.8-69wzwvc1.mjs +1 -0
- package/dist/chunks/state-1.1.8-nsdn5anj.mjs +1 -0
- package/dist/chunks/stats-1.1.8-t5pza2rr.mjs +6 -0
- package/dist/chunks/status-1.1.8-68h5gqvx.mjs +1 -0
- package/dist/chunks/stickers-1.1.8-0h3kkr20.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.8-kabvqrxh.mjs +1 -0
- package/dist/chunks/tasks-1.1.8-zepre4hr.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.8-fcp2jsnp.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.8-qvmhwh7w.mjs +1 -0
- package/dist/chunks/teleport-1.1.8-7wdmygej.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.8-p7bj9pmp.mjs +1 -0
- package/dist/chunks/theme-1.1.8-3szcwvrn.mjs +1 -0
- package/dist/chunks/thinkback-1.1.8-gap3zzg0.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.8-v89ne249.mjs +1 -0
- package/dist/chunks/toolPool-1.1.8-3vtrmmhc.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.8-c86299rc.mjs +1 -0
- package/dist/chunks/tools-1.1.8-fgh8e1kf.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.8-nysjtcf4.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.8-cqczbjvz.mjs +69 -0
- package/dist/chunks/types-1.1.8-paq7e73r.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.8-3k0h42t7.mjs +4 -0
- package/dist/chunks/update-1.1.8-c8rb7gzn.mjs +72 -0
- package/dist/chunks/upgrade-1.1.8-nmgtg5re.mjs +1 -0
- package/dist/chunks/upload-1.1.8-bwrxfje4.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.8-9n7d40g6.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.8-zd3gsw0r.mjs +1 -0
- package/dist/chunks/usage-1.1.8-n15nggj5.mjs +1 -0
- package/dist/chunks/util-1.1.8-jz0kvsrr.mjs +1 -0
- package/dist/chunks/utils-1.1.8-zmtfqjk6.mjs +1 -0
- package/dist/chunks/vim-1.1.8-f0gtc89f.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.8-rw3vn991.mjs +13 -0
- package/dist/chunks/watcher-1.1.8-jcxwjkvy.mjs +1 -0
- package/dist/chunks/wiki-1.1.8-e7rt9td4.mjs +132 -0
- package/dist/chunks/workflows-1.1.8-crtrj2rc.mjs +1 -0
- package/dist/chunks/worktree-1.1.8-50mfr61r.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.8-a7h96pt2.mjs +1 -0
- package/dist/chunks/wrapper-1.1.8-x1j8x6bc.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.7-ta4a3hax.mjs +0 -1
- package/dist/chunks/App-1.1.7-bb5w6zvz.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.7-92afe7m0.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.7-gx3qxf94.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.7-d0as32bc.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.7-etp5s6ps.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.7-9thhg137.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.7-wwv2cgzz.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.7-30wzw849.mjs +0 -7
- package/dist/chunks/Doctor-1.1.7-m040nz42.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.7-xemvy0mx.mjs +0 -6
- package/dist/chunks/Grove-1.1.7-0synn9dr.mjs +0 -1
- package/dist/chunks/ITermBackend-1.1.7-be5cx2dr.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.7-b37xct1d.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.7-89avh225.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.7-1k5yjmhb.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.7-0qnmq973.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.7-h9tf58hn.mjs +0 -1
- package/dist/chunks/REPL-1.1.7-93jsr9mr.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.7-gv6zzztg.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.7-p7e7703c.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.7-p8bxj585.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.7-nz62ycxc.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.7-p5pzbd37.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.7-6wwv8wy2.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.7-cdgerv78.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.7-h6jenc4t.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.7-3xbperzf.mjs +0 -1
- package/dist/chunks/add-dir-1.1.7-e1padvq0.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.7-s8xd8r8v.mjs +0 -1
- package/dist/chunks/agents-1.1.7-a5ngvagv.mjs +0 -3
- package/dist/chunks/agents-1.1.7-c2hzc3gf.mjs +0 -110
- package/dist/chunks/api-1.1.7-fkvjxbac.mjs +0 -1
- package/dist/chunks/asciicast-1.1.7-9j8vqr1m.mjs +0 -1
- package/dist/chunks/assistant-1.1.7-fxfh1k7b.mjs +0 -1
- package/dist/chunks/auth-1.1.7-nrjefdt5.mjs +0 -1
- package/dist/chunks/auth-1.1.7-z48g7tsc.mjs +0 -1
- package/dist/chunks/autoMode-1.1.7-13583dda.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.7-s5qp83zy.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.7-4nc59aph.mjs +0 -1
- package/dist/chunks/branch-1.1.7-ar2367j0.mjs +0 -4
- package/dist/chunks/bridge-1.1.7-qk1825qz.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.7-dfwv9704.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.7-ergk9b5s.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.7-re0t745d.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.7-pcfmgmj9.mjs +0 -1
- package/dist/chunks/btw-1.1.7-g8g55nje.mjs +0 -1
- package/dist/chunks/buddy-1.1.7-m8tx1e1a.mjs +0 -3
- package/dist/chunks/cacache-1.1.7-5t3nj244.mjs +0 -1
- package/dist/chunks/cache-probe-1.1.7-wk6sr8ma.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.7-3wd7pt08.mjs +0 -4
- package/dist/chunks/caches-1.1.7-rwrwkfmc.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.7-3pkhb5wd.mjs +0 -1
- package/dist/chunks/claudemd-1.1.7-zw1vywa0.mjs +0 -1
- package/dist/chunks/clear-1.1.7-xme70phr.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.7-cjgtkhn0.mjs +0 -1
- package/dist/chunks/cli-1.1.7-00r59ren.mjs +0 -2
- package/dist/chunks/cli-1.1.7-00xwy80x.mjs +0 -2
- package/dist/chunks/cli-1.1.7-07qdmr1e.mjs +0 -15
- package/dist/chunks/cli-1.1.7-0dn48gxn.mjs +0 -2
- package/dist/chunks/cli-1.1.7-0ptzaz8z.mjs +0 -15
- package/dist/chunks/cli-1.1.7-0sbdqb04.mjs +0 -45
- package/dist/chunks/cli-1.1.7-0yczgbvg.mjs +0 -133
- package/dist/chunks/cli-1.1.7-17ye23zw.mjs +0 -2
- package/dist/chunks/cli-1.1.7-1fyag9qs.mjs +0 -18
- package/dist/chunks/cli-1.1.7-1pt67y2k.mjs +0 -2
- package/dist/chunks/cli-1.1.7-1sjzdsvt.mjs +0 -2
- package/dist/chunks/cli-1.1.7-1wwtwdd5.mjs +0 -2
- package/dist/chunks/cli-1.1.7-237ea9et.mjs +0 -2
- package/dist/chunks/cli-1.1.7-247qq37c.mjs +0 -2
- package/dist/chunks/cli-1.1.7-29jtrc18.mjs +0 -6
- package/dist/chunks/cli-1.1.7-2j5f9qsg.mjs +0 -2
- package/dist/chunks/cli-1.1.7-370fzee5.mjs +0 -202
- package/dist/chunks/cli-1.1.7-37vw5n8s.mjs +0 -4
- package/dist/chunks/cli-1.1.7-3c1fz3tj.mjs +0 -3
- package/dist/chunks/cli-1.1.7-3c59vjgs.mjs +0 -3
- package/dist/chunks/cli-1.1.7-3s5h7xwp.mjs +0 -2
- package/dist/chunks/cli-1.1.7-3yd94afn.mjs +0 -2
- package/dist/chunks/cli-1.1.7-45h3r40v.mjs +0 -2
- package/dist/chunks/cli-1.1.7-4jb3802k.mjs +0 -6
- package/dist/chunks/cli-1.1.7-4vn54hra.mjs +0 -2
- package/dist/chunks/cli-1.1.7-4w65nb7a.mjs +0 -2
- package/dist/chunks/cli-1.1.7-53ptk5md.mjs +0 -2
- package/dist/chunks/cli-1.1.7-55sdnwxx.mjs +0 -2
- package/dist/chunks/cli-1.1.7-5a7dx8xv.mjs +0 -67
- package/dist/chunks/cli-1.1.7-5afzqeez.mjs +0 -2
- package/dist/chunks/cli-1.1.7-5hy6nrtz.mjs +0 -2
- package/dist/chunks/cli-1.1.7-5jtj2ksb.mjs +0 -2
- package/dist/chunks/cli-1.1.7-5p7dfxc8.mjs +0 -3
- package/dist/chunks/cli-1.1.7-5xg15za9.mjs +0 -2
- package/dist/chunks/cli-1.1.7-6327xnsa.mjs +0 -16
- package/dist/chunks/cli-1.1.7-6393tfa4.mjs +0 -2
- package/dist/chunks/cli-1.1.7-6k9j331s.mjs +0 -2
- package/dist/chunks/cli-1.1.7-709xp7h3.mjs +0 -2
- package/dist/chunks/cli-1.1.7-70dq06tj.mjs +0 -2
- package/dist/chunks/cli-1.1.7-77fv8msz.mjs +0 -4
- package/dist/chunks/cli-1.1.7-78k36t0w.mjs +0 -2
- package/dist/chunks/cli-1.1.7-7m4h7kpa.mjs +0 -4
- package/dist/chunks/cli-1.1.7-7ykpgzpd.mjs +0 -2
- package/dist/chunks/cli-1.1.7-7zf1vqxk.mjs +0 -2
- package/dist/chunks/cli-1.1.7-80x28qvs.mjs +0 -50
- package/dist/chunks/cli-1.1.7-89xnqhx8.mjs +0 -2
- package/dist/chunks/cli-1.1.7-8e3qerv0.mjs +0 -59
- package/dist/chunks/cli-1.1.7-8f779vem.mjs +0 -2
- package/dist/chunks/cli-1.1.7-8hfhdq9h.mjs +0 -2
- package/dist/chunks/cli-1.1.7-8ht7sy5z.mjs +0 -2
- package/dist/chunks/cli-1.1.7-8pdn9bvd.mjs +0 -2
- package/dist/chunks/cli-1.1.7-8wevpaq4.mjs +0 -25
- package/dist/chunks/cli-1.1.7-903dbpsw.mjs +0 -2
- package/dist/chunks/cli-1.1.7-91mbg6d2.mjs +0 -2
- package/dist/chunks/cli-1.1.7-9cr42mkf.mjs +0 -2
- package/dist/chunks/cli-1.1.7-9twa1dgn.mjs +0 -2
- package/dist/chunks/cli-1.1.7-9wapsqqm.mjs +0 -2
- package/dist/chunks/cli-1.1.7-a16gq5s9.mjs +0 -2
- package/dist/chunks/cli-1.1.7-a1sffgeq.mjs +0 -2
- package/dist/chunks/cli-1.1.7-a34vkb0g.mjs +0 -2
- package/dist/chunks/cli-1.1.7-a59w1d0k.mjs +0 -3
- package/dist/chunks/cli-1.1.7-a5zb1mk0.mjs +0 -4
- package/dist/chunks/cli-1.1.7-aa0r6myz.mjs +0 -3
- package/dist/chunks/cli-1.1.7-ac6ve6ks.mjs +0 -2
- package/dist/chunks/cli-1.1.7-ah2nkq02.mjs +0 -2
- package/dist/chunks/cli-1.1.7-aq4f719n.mjs +0 -2
- package/dist/chunks/cli-1.1.7-asb7164v.mjs +0 -18
- package/dist/chunks/cli-1.1.7-asnfms2j.mjs +0 -15
- package/dist/chunks/cli-1.1.7-avggtwyk.mjs +0 -2
- package/dist/chunks/cli-1.1.7-avhh3ykn.mjs +0 -2
- package/dist/chunks/cli-1.1.7-avqm93yx.mjs +0 -2
- package/dist/chunks/cli-1.1.7-avsxepp6.mjs +0 -2
- package/dist/chunks/cli-1.1.7-az0v3sy4.mjs +0 -39
- package/dist/chunks/cli-1.1.7-b9n3ev12.mjs +0 -2
- package/dist/chunks/cli-1.1.7-be3bepsr.mjs +0 -2
- package/dist/chunks/cli-1.1.7-bgyeh9f1.mjs +0 -5
- package/dist/chunks/cli-1.1.7-bmf232xq.mjs +0 -2
- package/dist/chunks/cli-1.1.7-bn38catj.mjs +0 -2
- package/dist/chunks/cli-1.1.7-bsg2jwaz.mjs +0 -2
- package/dist/chunks/cli-1.1.7-c32f3enb.mjs +0 -2
- package/dist/chunks/cli-1.1.7-ca9b0k53.mjs +0 -3
- package/dist/chunks/cli-1.1.7-cfchvspf.mjs +0 -12
- package/dist/chunks/cli-1.1.7-cgcj8thk.mjs +0 -2
- package/dist/chunks/cli-1.1.7-cs5v2rwy.mjs +0 -2
- package/dist/chunks/cli-1.1.7-czrff7za.mjs +0 -3
- package/dist/chunks/cli-1.1.7-d44wcebs.mjs +0 -2
- package/dist/chunks/cli-1.1.7-dax2hwtd.mjs +0 -2
- package/dist/chunks/cli-1.1.7-dc8xhdv8.mjs +0 -4
- package/dist/chunks/cli-1.1.7-dnhbz3wm.mjs +0 -2
- package/dist/chunks/cli-1.1.7-dy1j64nd.mjs +0 -2
- package/dist/chunks/cli-1.1.7-e30xkgx8.mjs +0 -2
- package/dist/chunks/cli-1.1.7-e3ks80fz.mjs +0 -6
- package/dist/chunks/cli-1.1.7-e8rpt6jw.mjs +0 -2
- package/dist/chunks/cli-1.1.7-e9p7j4yw.mjs +0 -2
- package/dist/chunks/cli-1.1.7-esfdh0fz.mjs +0 -4
- package/dist/chunks/cli-1.1.7-eskazk5w.mjs +0 -4
- package/dist/chunks/cli-1.1.7-f47dycnc.mjs +0 -2
- package/dist/chunks/cli-1.1.7-fdmx4e0y.mjs +0 -2
- package/dist/chunks/cli-1.1.7-fh4kn809.mjs +0 -2
- package/dist/chunks/cli-1.1.7-fhatjz8y.mjs +0 -2
- package/dist/chunks/cli-1.1.7-fq766b4m.mjs +0 -2
- package/dist/chunks/cli-1.1.7-ftcsqcsq.mjs +0 -2
- package/dist/chunks/cli-1.1.7-ftxzdrxy.mjs +0 -2
- package/dist/chunks/cli-1.1.7-fzz66s7r.mjs +0 -2
- package/dist/chunks/cli-1.1.7-g69xsadf.mjs +0 -5652
- package/dist/chunks/cli-1.1.7-g84cjr3b.mjs +0 -2
- package/dist/chunks/cli-1.1.7-g9j8sjq1.mjs +0 -2
- package/dist/chunks/cli-1.1.7-gejatr5b.mjs +0 -3
- package/dist/chunks/cli-1.1.7-gjhe5v32.mjs +0 -3
- package/dist/chunks/cli-1.1.7-gm3vnavd.mjs +0 -4
- package/dist/chunks/cli-1.1.7-gsqhqm2p.mjs +0 -2
- package/dist/chunks/cli-1.1.7-gzqe35hp.mjs +0 -2
- package/dist/chunks/cli-1.1.7-h3m2ycf6.mjs +0 -2
- package/dist/chunks/cli-1.1.7-h6bad0y5.mjs +0 -2
- package/dist/chunks/cli-1.1.7-hht84q9b.mjs +0 -2
- package/dist/chunks/cli-1.1.7-j5s1nhz9.mjs +0 -2
- package/dist/chunks/cli-1.1.7-k0cy37cc.mjs +0 -9
- package/dist/chunks/cli-1.1.7-kbdranyx.mjs +0 -2
- package/dist/chunks/cli-1.1.7-m09c3zsc.mjs +0 -1
- package/dist/chunks/cli-1.1.7-m20ny6y6.mjs +0 -2
- package/dist/chunks/cli-1.1.7-m2jc7mts.mjs +0 -2
- package/dist/chunks/cli-1.1.7-m2rq9nq2.mjs +0 -2
- package/dist/chunks/cli-1.1.7-m4c2snne.mjs +0 -42
- package/dist/chunks/cli-1.1.7-m554nr3m.mjs +0 -2
- package/dist/chunks/cli-1.1.7-m7cx26gk.mjs +0 -2
- package/dist/chunks/cli-1.1.7-m7nyg4k2.mjs +0 -2
- package/dist/chunks/cli-1.1.7-m8kaqtm6.mjs +0 -2
- package/dist/chunks/cli-1.1.7-mxwxnfss.mjs +0 -24
- package/dist/chunks/cli-1.1.7-n642xdmn.mjs +0 -2
- package/dist/chunks/cli-1.1.7-n7ne87b1.mjs +0 -8
- package/dist/chunks/cli-1.1.7-natjc2r8.mjs +0 -2
- package/dist/chunks/cli-1.1.7-nay1q35s.mjs +0 -2
- package/dist/chunks/cli-1.1.7-ncn26e96.mjs +0 -2
- package/dist/chunks/cli-1.1.7-nctcfgp0.mjs +0 -2
- package/dist/chunks/cli-1.1.7-ndrf1r31.mjs +0 -2
- package/dist/chunks/cli-1.1.7-nywqmry6.mjs +0 -2
- package/dist/chunks/cli-1.1.7-p3a6cf8x.mjs +0 -2
- package/dist/chunks/cli-1.1.7-pcg3fv2k.mjs +0 -2
- package/dist/chunks/cli-1.1.7-phntwycy.mjs +0 -21
- package/dist/chunks/cli-1.1.7-pm52s8y4.mjs +0 -2
- package/dist/chunks/cli-1.1.7-q5cm825a.mjs +0 -6
- package/dist/chunks/cli-1.1.7-q711j0bm.mjs +0 -2
- package/dist/chunks/cli-1.1.7-qgh6hg9x.mjs +0 -2
- package/dist/chunks/cli-1.1.7-qgj0pn3h.mjs +0 -2
- package/dist/chunks/cli-1.1.7-qrkqafcw.mjs +0 -2
- package/dist/chunks/cli-1.1.7-qztj9jjs.mjs +0 -17
- package/dist/chunks/cli-1.1.7-r4j6e9vx.mjs +0 -2
- package/dist/chunks/cli-1.1.7-r8e45107.mjs +0 -3
- package/dist/chunks/cli-1.1.7-r9bf07me.mjs +0 -9
- package/dist/chunks/cli-1.1.7-rb629pva.mjs +0 -2
- package/dist/chunks/cli-1.1.7-rj70j99r.mjs +0 -4
- package/dist/chunks/cli-1.1.7-rtcac49z.mjs +0 -2
- package/dist/chunks/cli-1.1.7-sf4he5ds.mjs +0 -17
- package/dist/chunks/cli-1.1.7-sj06qxbn.mjs +0 -2
- package/dist/chunks/cli-1.1.7-sqb51kyw.mjs +0 -34
- package/dist/chunks/cli-1.1.7-svmaept7.mjs +0 -2
- package/dist/chunks/cli-1.1.7-svpmye16.mjs +0 -2
- package/dist/chunks/cli-1.1.7-sy3nh37g.mjs +0 -2
- package/dist/chunks/cli-1.1.7-t3vmh9fp.mjs +0 -12
- package/dist/chunks/cli-1.1.7-t4band33.mjs +0 -133
- package/dist/chunks/cli-1.1.7-t7869eaw.mjs +0 -2
- package/dist/chunks/cli-1.1.7-t9k89a7f.mjs +0 -12
- package/dist/chunks/cli-1.1.7-tdw09vfy.mjs +0 -6
- package/dist/chunks/cli-1.1.7-tebqyjfs.mjs +0 -2
- package/dist/chunks/cli-1.1.7-tj4a73gm.mjs +0 -2
- package/dist/chunks/cli-1.1.7-tpjej6bk.mjs +0 -2
- package/dist/chunks/cli-1.1.7-ttgr0wt8.mjs +0 -5
- package/dist/chunks/cli-1.1.7-v90pc090.mjs +0 -2
- package/dist/chunks/cli-1.1.7-v9fzr2wc.mjs +0 -25
- package/dist/chunks/cli-1.1.7-vbkerts0.mjs +0 -58
- package/dist/chunks/cli-1.1.7-veert5hx.mjs +0 -7
- package/dist/chunks/cli-1.1.7-vegzg3sv.mjs +0 -2
- package/dist/chunks/cli-1.1.7-vgnyrdsx.mjs +0 -2
- package/dist/chunks/cli-1.1.7-vhahreqp.mjs +0 -2
- package/dist/chunks/cli-1.1.7-vyxrgqgm.mjs +0 -2
- package/dist/chunks/cli-1.1.7-w7qe5saq.mjs +0 -24
- package/dist/chunks/cli-1.1.7-wczms3t6.mjs +0 -3
- package/dist/chunks/cli-1.1.7-wfpdnn8a.mjs +0 -2
- package/dist/chunks/cli-1.1.7-wnveck2c.mjs +0 -2
- package/dist/chunks/cli-1.1.7-wtb39gjs.mjs +0 -2
- package/dist/chunks/cli-1.1.7-wv4k34jv.mjs +0 -20
- package/dist/chunks/cli-1.1.7-wxge1tea.mjs +0 -24
- package/dist/chunks/cli-1.1.7-x1mh9vnk.mjs +0 -2
- package/dist/chunks/cli-1.1.7-x20kjfvg.mjs +0 -6
- package/dist/chunks/cli-1.1.7-x3bpzsev.mjs +0 -24
- package/dist/chunks/cli-1.1.7-x5gz0q3n.mjs +0 -2
- package/dist/chunks/cli-1.1.7-xbk0ex0w.mjs +0 -2
- package/dist/chunks/cli-1.1.7-xr9v14yb.mjs +0 -2
- package/dist/chunks/cli-1.1.7-xtcz12t9.mjs +0 -3
- package/dist/chunks/cli-1.1.7-xv2n043b.mjs +0 -4
- package/dist/chunks/cli-1.1.7-xzys836y.mjs +0 -2
- package/dist/chunks/cli-1.1.7-yatnaq1h.mjs +0 -2
- package/dist/chunks/cli-1.1.7-ybe5t1at.mjs +0 -2
- package/dist/chunks/cli-1.1.7-yejce50d.mjs +0 -2
- package/dist/chunks/cli-1.1.7-yf8r2p8t.mjs +0 -2
- package/dist/chunks/cli-1.1.7-yvfbn06j.mjs +0 -2
- package/dist/chunks/cli-1.1.7-z10gdn10.mjs +0 -2
- package/dist/chunks/cli-1.1.7-z7aapeb8.mjs +0 -2
- package/dist/chunks/cli-1.1.7-zaz1vdc9.mjs +0 -2
- package/dist/chunks/cli-1.1.7-zcxfemky.mjs +0 -2
- package/dist/chunks/cli-1.1.7-zk6vqjve.mjs +0 -4
- package/dist/chunks/cli-1.1.7-zpr5n1k0.mjs +0 -2
- package/dist/chunks/cli-1.1.7-zxr9h2qd.mjs +0 -2
- package/dist/chunks/client-1.1.7-zsnn57xt.mjs +0 -1
- package/dist/chunks/color-1.1.7-71p1dnta.mjs +0 -1
- package/dist/chunks/compact-1.1.7-e6arr03s.mjs +0 -3
- package/dist/chunks/config-1.1.7-g3d8g7g2.mjs +0 -1
- package/dist/chunks/config-1.1.7-nejamxf1.mjs +0 -1
- package/dist/chunks/constants-1.1.7-454c76bh.mjs +0 -1
- package/dist/chunks/context-1.1.7-p0442d4z.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.7-v71njac2.mjs +0 -1
- package/dist/chunks/conversation-1.1.7-8ywg16g5.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.7-qw0bnew9.mjs +0 -1
- package/dist/chunks/copy-1.1.7-dfdpmxck.mjs +0 -9
- package/dist/chunks/cost-1.1.7-2r3rhrq2.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.7-abvj6vqh.mjs +0 -1
- package/dist/chunks/createSession-1.1.7-a0t9ns7c.mjs +0 -1
- package/dist/chunks/debug-1.1.7-r660pqwp.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.7-79kexp4a.mjs +0 -1446
- package/dist/chunks/desktop-1.1.7-sy4n39yq.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.7-p52dxbn9.mjs +0 -1
- package/dist/chunks/detection-1.1.7-8e2z2aph.mjs +0 -1
- package/dist/chunks/diff-1.1.7-yt5nf8gj.mjs +0 -1
- package/dist/chunks/doctor-1.1.7-emta4vaz.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.7-4tam9mf5.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.7-93ms6qsc.mjs +0 -1
- package/dist/chunks/effort-1.1.7-1fp3rh9f.mjs +0 -13
- package/dist/chunks/engine-1.1.7-yngz7phq.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.7-j2h0sf63.mjs +0 -1
- package/dist/chunks/envUtils-1.1.7-9y71p8yv.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.7-pd11v0zx.mjs +0 -1
- package/dist/chunks/environments-1.1.7-ck5qxyqy.mjs +0 -1
- package/dist/chunks/errors-1.1.7-emnk1qwy.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.7-2ksd03w4.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.7-jqbw02pg.mjs +0 -1
- package/dist/chunks/exit-1.1.7-wpfmrwdn.mjs +0 -1
- package/dist/chunks/explorer-1.1.7-b8tcxb5d.mjs +0 -1
- package/dist/chunks/export-1.1.7-zz79hhsz.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.7-dt936zfb.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.7-shwjbctc.mjs +0 -1
- package/dist/chunks/fast-1.1.7-w7b1aqwk.mjs +0 -1
- package/dist/chunks/feedback-1.1.7-n9j2nr98.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.7-c0a02n4j.mjs +0 -1
- package/dist/chunks/git-1.1.7-9z0c0q3r.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.7-akhn8qhf.mjs +0 -1
- package/dist/chunks/goal-1.1.7-aw2580k9.mjs +0 -4
- package/dist/chunks/grove-1.1.7-kjhhr548.mjs +0 -1
- package/dist/chunks/growthbook-1.1.7-w746wv7x.mjs +0 -1
- package/dist/chunks/headless-1.1.7-y4j0h9z8.mjs +0 -2
- package/dist/chunks/heapdump-1.1.7-rct22hze.mjs +0 -6
- package/dist/chunks/help-1.1.7-y0c2ms52.mjs +0 -1
- package/dist/chunks/hookChains-1.1.7-xzn9ad36.mjs +0 -3
- package/dist/chunks/hooks-1.1.7-emcz8q8s.mjs +0 -79
- package/dist/chunks/hooks-1.1.7-jp0h65wb.mjs +0 -1
- package/dist/chunks/ide-1.1.7-x8w21qd6.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.7-wy6ecw5p.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.7-nw4e83c9.mjs +0 -1
- package/dist/chunks/index-1.1.7-189vzkzr.mjs +0 -1
- package/dist/chunks/index-1.1.7-23d4va8a.mjs +0 -2
- package/dist/chunks/index-1.1.7-36msf70m.mjs +0 -1
- package/dist/chunks/index-1.1.7-6nnrrxjs.mjs +0 -9
- package/dist/chunks/index-1.1.7-78kw401a.mjs +0 -1
- package/dist/chunks/index-1.1.7-9ag3vjcz.mjs +0 -1
- package/dist/chunks/index-1.1.7-abraka41.mjs +0 -1
- package/dist/chunks/index-1.1.7-apb8ray2.mjs +0 -1
- package/dist/chunks/index-1.1.7-b2e78mb7.mjs +0 -1
- package/dist/chunks/index-1.1.7-cxtqz2cx.mjs +0 -1
- package/dist/chunks/index-1.1.7-ep7qax1n.mjs +0 -5
- package/dist/chunks/index-1.1.7-fahb6z70.mjs +0 -1
- package/dist/chunks/index-1.1.7-g7me7k35.mjs +0 -1
- package/dist/chunks/index-1.1.7-gsdssjta.mjs +0 -2
- package/dist/chunks/index-1.1.7-n6c5mp02.mjs +0 -1
- package/dist/chunks/index-1.1.7-ngf7447d.mjs +0 -9
- package/dist/chunks/index-1.1.7-pbdmsdx4.mjs +0 -1
- package/dist/chunks/index-1.1.7-q3560epc.mjs +0 -23
- package/dist/chunks/index-1.1.7-ta1t48pj.mjs +0 -30
- package/dist/chunks/index-1.1.7-vrvbq3pq.mjs +0 -1
- package/dist/chunks/index-1.1.7-w3k1r4fj.mjs +0 -1
- package/dist/chunks/index-1.1.7-w40fc6hp.mjs +0 -1
- package/dist/chunks/index-1.1.7-wrysc35z.mjs +0 -1
- package/dist/chunks/init-1.1.7-35gnmfwk.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.7-tckq0ph3.mjs +0 -1
- package/dist/chunks/ink-1.1.7-00k9mpt1.mjs +0 -1
- package/dist/chunks/insights-1.1.7-0733jret.mjs +0 -870
- package/dist/chunks/install-1.1.7-hm4q4vg3.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.7-td4vg9cd.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.7-wcg8aqqz.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.7-c07a380v.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.7-46866tc9.mjs +0 -1
- package/dist/chunks/keybindings-1.1.7-8bb3ehzd.mjs +0 -2
- package/dist/chunks/knowledge-1.1.7-tvqfhagb.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.7-21sf5wht.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.7-0fsxdwtb.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.7-dme9wkc4.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.7-tn0by9qv.mjs +0 -1
- package/dist/chunks/log-1.1.7-3ry9dq4f.mjs +0 -1
- package/dist/chunks/main-1.1.7-z35y86b1.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.7-hkhdt6m1.mjs +0 -1
- package/dist/chunks/mcp-1.1.7-fhw7q8d8.mjs +0 -4
- package/dist/chunks/mcp-1.1.7-h76xwxj7.mjs +0 -1
- package/dist/chunks/mcp-1.1.7-qxaxb5n8.mjs +0 -17
- package/dist/chunks/mcpb-1.1.7-fh84mmcn.mjs +0 -1
- package/dist/chunks/memory-1.1.7-rja0b4e3.mjs +0 -72
- package/dist/chunks/model-1.1.7-8h1q1vva.mjs +0 -1
- package/dist/chunks/model-1.1.7-qn8a1vgp.mjs +0 -2
- package/dist/chunks/node-1.1.7-br2cm23q.mjs +0 -12
- package/dist/chunks/oauth-1.1.7-xprf6gf8.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.7-xpv4sdj1.mjs +0 -14
- package/dist/chunks/output-style-1.1.7-gwp6rb3c.mjs +0 -1
- package/dist/chunks/package-L37ZVTF4-1.1.7-tv37rpat.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.7-hxb18rh0.mjs +0 -1
- package/dist/chunks/parser-1.1.7-gxryvbxk.mjs +0 -1
- package/dist/chunks/passes-1.1.7-pgn5svgj.mjs +0 -1
- package/dist/chunks/permissions-1.1.7-hgf49z9d.mjs +0 -3
- package/dist/chunks/permissions-1.1.7-vwc3xcnn.mjs +0 -1
- package/dist/chunks/plan-1.1.7-5pd1ezzt.mjs +0 -1
- package/dist/chunks/plist-1.1.7-bgk5tgcz.mjs +0 -1
- package/dist/chunks/plugin-1.1.7-b2da306j.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.7-75pwt0x6.mjs +0 -1
- package/dist/chunks/plugins-1.1.7-wgq2tns5.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.7-9jppavfm.mjs +0 -2
- package/dist/chunks/print-1.1.7-hcpp1psj.mjs +0 -57
- package/dist/chunks/privacy-settings-1.1.7-0rhg1990.mjs +0 -1
- package/dist/chunks/process-1.1.7-sz6mk2ax.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.7-h988ta18.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.7-xj9yd54c.mjs +0 -9
- package/dist/chunks/prompt-1.1.7-9n1828tb.mjs +0 -1
- package/dist/chunks/prompt-1.1.7-xbh39c5a.mjs +0 -1
- package/dist/chunks/prompts-1.1.7-tm2b4n8b.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.7-x5r0fnay.mjs +0 -13
- package/dist/chunks/provider-1.1.7-8nkjfnp7.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.7-3hy3rra6.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.7-wpwhgmgj.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.7-qqwd9f98.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.7-z933969a.mjs +0 -34
- package/dist/chunks/registry-1.1.7-zt717sdd.mjs +0 -1
- package/dist/chunks/release-notes-1.1.7-hkyqmgj0.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.7-90wc1rrg.mjs +0 -2
- package/dist/chunks/remote-env-1.1.7-gyhmvnmb.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.7-kxpxxqbj.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.7-931g1df4.mjs +0 -1
- package/dist/chunks/rename-1.1.7-pdcr2fqc.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.7-wp87p7xp.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.7-7z04w8w8.mjs +0 -1
- package/dist/chunks/resume-1.1.7-8p8bahzg.mjs +0 -2
- package/dist/chunks/rewind-1.1.7-v2ajm3w0.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.7-kj11gm8y.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.7-7d5db3vq.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.7-3waw05qr.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.7-zhrme3nq.mjs +0 -1
- package/dist/chunks/session-1.1.7-b11ew8hv.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.7-3w4gd5vr.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.7-f1ktfmjp.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.7-0qj40f5g.mjs +0 -1
- package/dist/chunks/settings-1.1.7-ayf1fhp5.mjs +0 -1
- package/dist/chunks/setup-1.1.7-r7d17dtz.mjs +0 -5
- package/dist/chunks/sinks-1.1.7-agpm7pdt.mjs +0 -1
- package/dist/chunks/skills-1.1.7-xj1mgj1w.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.7-vy3ha1nb.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.7-m03evcd7.mjs +0 -1
- package/dist/chunks/state-1.1.7-a4z499r3.mjs +0 -1
- package/dist/chunks/stats-1.1.7-jxbtehxs.mjs +0 -6
- package/dist/chunks/status-1.1.7-j7b4zw5r.mjs +0 -1
- package/dist/chunks/stickers-1.1.7-2feaa91e.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.7-7yjfarpg.mjs +0 -1
- package/dist/chunks/tasks-1.1.7-74xbzaa7.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.7-y101nwrn.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.7-h5693rcg.mjs +0 -1
- package/dist/chunks/teleport-1.1.7-yjke98c8.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.7-tq3qth9s.mjs +0 -1
- package/dist/chunks/theme-1.1.7-5n3fsvh8.mjs +0 -1
- package/dist/chunks/thinkback-1.1.7-8wxb9n8q.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.7-rvzk8rt2.mjs +0 -1
- package/dist/chunks/toolPool-1.1.7-s3xnzfs1.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.7-b99evmfg.mjs +0 -1
- package/dist/chunks/tools-1.1.7-1bs5mhnz.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.7-sk8ewavd.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.7-tcj3tmer.mjs +0 -69
- package/dist/chunks/types-1.1.7-dt3wqg7h.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.7-5d0eav8t.mjs +0 -4
- package/dist/chunks/update-1.1.7-cc4860dp.mjs +0 -72
- package/dist/chunks/upgrade-1.1.7-xnqh398m.mjs +0 -1
- package/dist/chunks/upload-1.1.7-e1023tbm.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.7-54yd40wz.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.7-98renjvs.mjs +0 -1
- package/dist/chunks/usage-1.1.7-vr50x59b.mjs +0 -1
- package/dist/chunks/util-1.1.7-07n3bcf9.mjs +0 -1
- package/dist/chunks/utils-1.1.7-2gs8qp9e.mjs +0 -1
- package/dist/chunks/vim-1.1.7-1hdr63bv.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.7-dqnb4ew5.mjs +0 -13
- package/dist/chunks/watcher-1.1.7-0vhx6jqw.mjs +0 -1
- package/dist/chunks/wiki-1.1.7-hbab147s.mjs +0 -132
- package/dist/chunks/workflows-1.1.7-sqc7rhqm.mjs +0 -1
- package/dist/chunks/worktree-1.1.7-bgka176p.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.7-ddyrd6w3.mjs +0 -1
- package/dist/chunks/wrapper-1.1.7-tjp6nrw4.mjs +0 -7
- /package/dist/chunks/{cli-1.1.7-h8bj6vzr.mjs → cli-1.1.8-15q52swp.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.7-k69a0vax.mjs → cli-1.1.8-gtw37r6f.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.7-8yk0ktps.mjs → cli-1.1.8-gvkpq2k1.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.7-c1q5d5ds.mjs → cli-1.1.8-k0wdtx54.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.7-hr9a4wzy.mjs → cli-1.1.8-n7gqm17w.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.7-f0hcstcc.mjs → cli-1.1.8-rkw1dz9x.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.7-72scj2da.mjs → cli-1.1.8-t1a3d6s9.mjs} +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{Nb as U}from"./cli-1.1.7-veert5hx.mjs";import{Pt as N,Qt as b}from"./cli-1.1.7-g69xsadf.mjs";import{JW as F,MW as d,NW as _,OW as M,TW as I}from"./cli-1.1.7-yf8r2p8t.mjs";import{f9 as B,i9 as T,p9 as x,q9 as H,v9 as v}from"./cli-1.1.7-t3vmh9fp.mjs";import{Q_ as Z,S_ as P}from"./cli-1.1.7-370fzee5.mjs";import{Xja as O,_ja as D}from"./cli-1.1.7-tj4a73gm.mjs";import{Dka as z,Ika as S,_ka as Y,bla as A}from"./cli-1.1.7-4jb3802k.mjs";import{Lla as L,Vla as f}from"./cli-1.1.7-aq4f719n.mjs";import{Ksa as i,ssa as y}from"./cli-1.1.7-w7qe5saq.mjs";import{lta as k}from"./cli-1.1.7-a1sffgeq.mjs";i();A();P();d();D();b();A();P();f();T();v();I();S();var C=`{"type":"keep_alive"}
|
|
2
|
-
`,u=1000,h=1000,R=30000,w=600000,p=1e4,m=300000,E=R*2,c=new Set([1002,4001,4003]);class W{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new N(u)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:H(this.url.href),tls:B()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-1.1.7-tjp6nrw4.mjs"),Q=new K(this.url.href,{headers:J,agent:x(this.url.href),...B()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)O("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),_(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)O("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&c.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>E)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<w){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let V=this.refreshHeaders();Object.assign(this.headers,V),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(h*Math.pow(2,this.reconnectAttempts-1),R),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)O("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=z($)+`
|
|
3
|
-
`;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=z(J)+`
|
|
4
|
-
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>E){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},p)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),L(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(C),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},m)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var g=100,t=15000,l=3000;class n extends W{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:V}=$??{};this.postUrl=r(J),this.uploader=new U({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(j,q)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:j,failures:q}),V?.(j,q)},send:(j)=>this.postOnce(j)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),g);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,l)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=F();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await y.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:t})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function r(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
|
|
5
|
-
export{W as Ab,n as Bb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{q_ as Z,u_ as _,v_ as w}from"./cli-1.1.7-pm52s8y4.mjs";import{Daa as k,T$ as T,Vea as W,Yea as V,_aa as D,e$ as Y,f$ as U,q$ as $,rfa as j}from"./cli-1.1.7-370fzee5.mjs";import{_ka as N,bla as M}from"./cli-1.1.7-4jb3802k.mjs";import{Fna as X,yra as O}from"./cli-1.1.7-avggtwyk.mjs";O();j();M();w();D();U();T();import{realpath as v}from"fs/promises";async function b(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await v(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function y(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function c(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
|
|
2
|
-
export{b as lb,y as mb,P as nb,d as ob,c as pb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{UM as C,cN as N,lN as $,mN as k,sN as V}from"./cli-1.1.7-g69xsadf.mjs";import{EZ as P,I1 as D,b1 as f,d1 as t,h1 as v}from"./cli-1.1.7-8e3qerv0.mjs";import{p4 as n,q4 as i,r4 as M}from"./cli-1.1.7-1pt67y2k.mjs";import{gta as w,kta as L}from"./cli-1.1.7-a1sffgeq.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
|
|
2
|
-
export{J as Dg,z as Eg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{H3 as y,L3 as V}from"./cli-1.1.7-ybe5t1at.mjs";import{Gba as q,Iba as Q,V_ as p,X_ as K}from"./cli-1.1.7-370fzee5.mjs";import{kta as J}from"./cli-1.1.7-a1sffgeq.mjs";function j(){return!!z}async function D(){if(b!==null)return b;return b=!!z,b}function P(){return W||null}async function w(){return(await p(y,["-V"])).code===0}function E(){if(f!==null)return f;let k=process.env.TERM_PROGRAM,B=!!process.env.ITERM_SESSION_ID,H=q.terminal==="iTerm.app";return f=k==="iTerm.app"||B||H,f}async function F(){return(await p(Y,["session","list"])).code===0}function G(){b=null,f=null}var z,W,b=null,f=null,Y="it2";var Z=J(()=>{Q();K();V();z=process.env.TMUX,W=process.env.TMUX_PANE});
|
|
2
|
-
export{j as v3,D as w3,P as x3,w as y3,E as z3,Y as A3,F as B3,G as C3,Z as D3};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kta as B}from"./cli-1.1.7-a1sffgeq.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
|
|
2
|
-
export{F as $i,C as aj};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{cX as W,hX as p}from"./cli-1.1.7-czrff7za.mjs";import{D2 as H,F2 as P}from"./cli-1.1.7-h6bad0y5.mjs";import{Yha as M,jia as Z}from"./cli-1.1.7-avhh3ykn.mjs";import{aja as q,cja as $,dja as Q,eja as k}from"./cli-1.1.7-5a7dx8xv.mjs";import{kta as Y}from"./cli-1.1.7-a1sffgeq.mjs";async function X(){let x=await M("tengu_bridge_repl_v2_config",K),J=w().safeParse(x);return J.success?J.data:K}async function V(){let x=await X();if(x.min_version&&H("99.0.0",x.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${x.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function b(){if(!W())return!1;return(await X()).should_show_app_upgrade_message}var K,w;var O=Y(()=>{$();Z();k();P();p();K={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},w=Q(()=>q.object({init_retry_max_attempts:q.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:q.number().int().min(100).default(500),init_retry_jitter_fraction:q.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:q.number().int().min(500).default(4000),http_timeout_ms:q.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:q.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:q.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:q.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:q.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:q.number().int().min(500).max(2000).default(1500),connect_timeout_ms:q.number().int().min(5000).max(60000).default(15000),min_version:q.string().refine((x)=>{try{return H(x,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:q.boolean().default(!1)}))});
|
|
3
|
-
export{K as mc,X as nc,V as oc,b as pc,O as qc};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{AG as Mq,BF as Zq,Zn as E,_n as Uq,bo as r,co as Xq,fo as d,go as Yq,uF as x,vF as s,wF as C,yF as n,yG as o,zF as $}from"./cli-1.1.7-g69xsadf.mjs";import{EZ as Jq,I1 as Qq,b1 as N,d1 as U,h1 as V,x1 as a}from"./cli-1.1.7-8e3qerv0.mjs";import{o4 as u,p4 as J,q4 as X,r4 as g}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as zq}from"./cli-1.1.7-ac6ve6ks.mjs";import{Xja as w,_ja as qq}from"./cli-1.1.7-tj4a73gm.mjs";import{gta as i,kta as t}from"./cli-1.1.7-a1sffgeq.mjs";function Fq(){let z=f.c(9),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=X(U,{children:["An update to our Consumer Terms and Privacy Policy will take effect on"," ",J(U,{bold:!0,children:"October 8, 2025"}),". You can accept the updated terms today."]}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y,Z;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=J(U,{children:"· "}),Z=J(U,{bold:!0,children:"You can help improve Claude "}),z[2]=Y,z[3]=Z;else Y=z[2],Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(N,{paddingLeft:1,children:X(U,{children:[Y,Z,X(U,{children:["— Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",J(V,{url:"https://claude.ai/settings/data-privacy-controls"}),")."]})]})}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=X(N,{flexDirection:"column",children:[F,W,J(N,{paddingLeft:1,children:X(U,{children:[J(U,{children:"· "}),J(U,{bold:!0,children:"Updates to data retention "}),J(U,{children:"— To help us improve our AI models and safety protections, we're extending data retention to 5 years."})]})})]}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[6]=Q;else Q=z[6];let H;if(z[7]===Symbol.for("react.memo_cache_sentinel"))H=J(V,{url:"https://anthropic.com/legal/terms"}),z[7]=H;else H=z[7];let O;if(z[8]===Symbol.for("react.memo_cache_sentinel"))O=X(u,{children:[q,P,X(U,{children:["Learn more (",Q,") or read the updated Consumer Terms (",H,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[8]=O;else O=z[8];return O}function Nq(){let z=f.c(7),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=J(U,{children:"We've updated our Consumer Terms and Privacy Policy."}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Help improve Claude"}),J(U,{children:"Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"}),J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),z[2]=Y;else Y=z[2];let Z;if(z[3]===Symbol.for("react.memo_cache_sentinel"))Z=X(N,{flexDirection:"column",gap:1,children:[F,Y,X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"How this affects data retention"}),J(U,{children:"Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."})]})]}),z[3]=Z;else Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=J(V,{url:"https://anthropic.com/legal/terms"}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=X(u,{children:[q,Z,X(U,{children:["Learn more (",W,") or read the updated Consumer Terms (",P,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[6]=Q;else Q=z[6];return Q}function kq(z){let q=f.c(34),{showIfAlreadyViewed:F,location:Y,onDone:Z}=z,[W,P]=_.useState(null),[Q,H]=_.useState(null),O,R;if(q[0]!==Y||q[1]!==Z||q[2]!==F)O=()=>{(async function(){let[e,c]=await Promise.all([x(),n()]),j=c.success?c.data:null;H(j);let l=$(e,c,F);if(P(l),!l){Z("skip_rendering");return}s(),w("tengu_grove_policy_viewed",{location:Y,dismissable:j?.notice_is_grace_period})})()},R=[F,Y,Z],q[0]=Y,q[1]=Z,q[2]=F,q[3]=O,q[4]=R;else O=q[3],R=q[4];if(_.useEffect(O,R),W===null)return null;if(!W)return null;let K;if(q[5]!==Q?.notice_is_grace_period||q[6]!==Z)K=async function(v){q:switch(v){case"accept_opt_in":{await C(!0),w("tengu_grove_policy_submitted",{state:!0,dismissable:Q?.notice_is_grace_period});break q}case"accept_opt_out":{await C(!1),w("tengu_grove_policy_submitted",{state:!1,dismissable:Q?.notice_is_grace_period});break q}case"defer":{w("tengu_grove_policy_dismissed",{state:!0});break q}case"escape":w("tengu_grove_policy_escaped",{})}Z(v)},q[5]=Q?.notice_is_grace_period,q[6]=Z,q[7]=K;else K=q[7];let A=K,L;if(q[8]!==Q?.domain_excluded)L=Q?.domain_excluded?[{label:"Accept terms · Help improve Claude: OFF (for emails with your domain)",value:"accept_opt_out"}]:[{label:"Accept terms · Help improve Claude: ON",value:"accept_opt_in"},{label:"Accept terms · Help improve Claude: OFF",value:"accept_opt_out"}],q[8]=Q?.domain_excluded,q[9]=L;else L=q[9];let I=L,G;if(q[10]!==Q?.notice_is_grace_period||q[11]!==A)G=function(){if(Q?.notice_is_grace_period){A("defer");return}A("escape")},q[10]=Q?.notice_is_grace_period,q[11]=A,q[12]=G;else G=q[12];let M=G,k;if(q[13]!==Q?.notice_is_grace_period)k=J(N,{flexDirection:"column",gap:1,flexGrow:1,children:Q?.notice_is_grace_period?J(Fq,{}):J(Nq,{})}),q[13]=Q?.notice_is_grace_period,q[14]=k;else k=q[14];let D;if(q[15]===Symbol.for("react.memo_cache_sentinel"))D=J(N,{flexShrink:0,children:J(U,{color:"professionalBlue",children:Wq})}),q[15]=D;else D=q[15];let B;if(q[16]!==k)B=X(N,{flexDirection:"row",children:[k,D]}),q[16]=k,q[17]=B;else B=q[17];let T;if(q[18]===Symbol.for("react.memo_cache_sentinel"))T=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Please select how you'd like to continue"}),J(U,{children:"Your choice takes effect immediately upon confirmation."})]}),q[18]=T;else T=q[18];let b;if(q[19]!==Q?.notice_is_grace_period)b=Q?.notice_is_grace_period?[{label:"Not now",value:"defer"}]:[],q[19]=Q?.notice_is_grace_period,q[20]=b;else b=q[20];let m;if(q[21]!==I||q[22]!==b)m=[...I,...b],q[21]=I,q[22]=b,q[23]=m;else m=q[23];let p;if(q[24]!==A)p=(h)=>A(h),q[24]=A,q[25]=p;else p=q[25];let y;if(q[26]!==M||q[27]!==m||q[28]!==p)y=X(N,{flexDirection:"column",gap:1,children:[T,J(o,{options:m,onChange:p,onCancel:M})]}),q[26]=M,q[27]=m,q[28]=p,q[29]=y;else y=q[29];let S;if(q[30]!==M||q[31]!==y||q[32]!==B)S=X(d,{title:"Updates to Consumer Terms and Policies",color:"professionalBlue",onCancel:M,inputGuide:Oq,children:[B,y]}),q[30]=M,q[31]=y,q[32]=B,q[33]=S;else S=q[33];return S}function Oq(z){return z.pending?X(U,{children:["Press ",z.keyName," again to exit"]}):X(r,{children:[J(E,{shortcut:"Enter",action:"confirm"}),J(E,{shortcut:"Esc",action:"cancel"})]})}function _q(z){let q=f.c(17),{settings:F,domainExcluded:Y,onDone:Z}=z,[W,P]=_.useState(F.grove_enabled),Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],q[0]=Q;else Q=q[0];_.default.useEffect(Pq,Q);let H;if(q[1]!==Y||q[2]!==W)H=async(M,k)=>{if(!Y&&(k.tab||k.return||M===" ")){let D=!W;P(D),await C(D)}},q[1]=Y,q[2]=W,q[3]=H;else H=q[3];a(H);let O;if(q[4]===Symbol.for("react.memo_cache_sentinel"))O=J(U,{color:"error",children:"false"}),q[4]=O;else O=q[4];let R=O;if(Y){let M;if(q[5]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"error",children:"false (for emails with your domain)"}),q[5]=M;else M=q[5];R=M}else if(W){let M;if(q[6]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"success",children:"true"}),q[6]=M;else M=q[6];R=M}let K;if(q[7]!==Y)K=(M)=>M.pending?X(U,{children:["Press ",M.keyName," again to exit"]}):Y?J(E,{shortcut:"Esc",action:"cancel"}):X(r,{children:[J(E,{shortcut:"Enter/Tab/Space",action:"toggle"}),J(E,{shortcut:"Esc",action:"cancel"})]}),q[7]=Y,q[8]=K;else K=q[8];let A;if(q[9]===Symbol.for("react.memo_cache_sentinel"))A=X(U,{children:["Review and manage your privacy settings at"," ",J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),q[9]=A;else A=q[9];let L;if(q[10]===Symbol.for("react.memo_cache_sentinel"))L=J(N,{width:44,children:J(U,{bold:!0,children:"Help improve Claude"})}),q[10]=L;else L=q[10];let I;if(q[11]!==R)I=X(N,{children:[L,J(N,{children:R})]}),q[11]=R,q[12]=I;else I=q[12];let G;if(q[13]!==Z||q[14]!==K||q[15]!==I)G=X(d,{title:"Data Privacy",color:"professionalBlue",onCancel:Z,inputGuide:K,children:[A,I]}),q[13]=Z,q[14]=K,q[15]=I,q[16]=G;else G=q[16];return G}function Pq(){w("tengu_grove_privacy_settings_viewed",{})}var f,_,Wq=` _____________
|
|
2
|
-
| \\ \\
|
|
3
|
-
| NEW TERMS \\__\\
|
|
4
|
-
| |
|
|
5
|
-
| ---------- |
|
|
6
|
-
| ---------- |
|
|
7
|
-
| ---------- |
|
|
8
|
-
| ---------- |
|
|
9
|
-
| ---------- |
|
|
10
|
-
| |
|
|
11
|
-
|______________|`;var Aq=t(()=>{qq();Qq();Zq();Mq();Xq();Yq();Uq();g();f=i(Jq(),1),_=i(zq(),1)});
|
|
12
|
-
export{kq as xc,_q as yc,Aq as zc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jf as H,mf as A}from"./cli-1.1.7-5hy6nrtz.mjs";import{Af as L,Df as P,Ff as _}from"./cli-1.1.7-zcxfemky.mjs";import{Ksa as F,ssa as U}from"./cli-1.1.7-w7qe5saq.mjs";F();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class C extends Error{status;errorType;constructor(J,K,$){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=$}}function y(J){function K(q){J.onDebug?.(q)}let $=0,W=100;function Z(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},X=J.getTrustedDeviceToken?.();if(X)z["X-Trusted-Device-Token"]=X;return z}function D(){let q=J.getAccessToken();if(!q)throw Error(H);return q}async function M(q,z){let X=D(),Q=await q(X);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(X)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let V=D(),N=await q(V);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:Z(X),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${L({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${L(z.data)}`),z.data},async pollForWork(q,z,X,Q){j(q,"environmentId");let Y=$;$=0;let V=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:Z(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:X,validateStatus:(N)=>N<500});if(G(V.status,V.data,"Poll"),!V.data){if($=Y+1,$===1||$%W===0)K(`[bridge:api] GET .../work/poll -> ${V.status} (no work, ${$} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${V.status} workId=${V.data.id} type=${V.data.data?.type}${V.data.data?.id?` sessionId=${V.data.data.id}`:""}`),K(`[bridge:api] <<< ${L(V.data)}`),V.data},async acknowledgeWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${X}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:X},{headers:Z(Y),timeout:1e4,validateStatus:(V)=>V<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((X)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let X=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:Z(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(X.status,X.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${X.status}`)},async heartbeatWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,X){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${L({events:[z]})}`),K(`[bridge:api] <<< ${L(Q.data)}`)}}}function G(J,K,$){if(J===200||J===204)return;let W=P(K),Z=B(K);switch(J){case 401:throw new C(`${$}: Authentication failed (401)${W?`: ${W}`:""}. ${H}`,401,Z);case 403:throw new C(S(Z)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${$}: Access denied (403)${W?`: ${W}`:""}. Check your organization permissions.`,403,Z);case 404:throw new C(W??`${$}: Not found (404). Remote Control may not be available for this organization.`,404,Z);case 410:throw new C(W??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,Z??"environment_expired");case 429:throw Error(`${$}: Rate limited (429). Polling too frequently.`);default:throw Error(`${$}: Failed with status ${J}${W?`: ${W}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function h(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function f(J){let K=new AbortController;function $(){K.abort(),K=new AbortController}function W(){let Z=new AbortController,D=()=>Z.abort();if(J.aborted||K.signal.aborted)return Z.abort(),{signal:Z.signal,cleanup:()=>{}};J.addEventListener("abort",D,{once:!0});let M=K.signal;return M.addEventListener("abort",D,{once:!0}),{signal:Z.signal,cleanup:()=>{J.removeEventListener("abort",D),M.removeEventListener("abort",D)}}}return{signal:W,wake:$}}
|
|
2
|
-
export{j as Cb,C as Db,y as Eb,S as Fb,h as Gb,f as Hb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BM as c,cM as R,gM as b,jM as w,pM as M,rM as P,sp as L,tp as D,up as O,wM as m,xM as h,xp as _,yp as S}from"./cli-1.1.7-g69xsadf.mjs";import{Gca as x,Oca as T,Rga as N,Sda as B,Uda as A,Xda as C,Zga as j,fea as E}from"./cli-1.1.7-370fzee5.mjs";import{hja as U,jja as v}from"./cli-1.1.7-svpmye16.mjs";import{_ka as G,bla as F}from"./cli-1.1.7-4jb3802k.mjs";import{kta as y}from"./cli-1.1.7-a1sffgeq.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{v();F();j();E();D();P();b();S();c();T()});
|
|
2
|
-
export{qq as ce,zq as de,Jq as ee,Kq as fe,p as ge,Qq as he,Vq as ie,a as je};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{D2 as k,F2 as w}from"./cli-1.1.7-h6bad0y5.mjs";import{J8 as j,b9 as v}from"./cli-1.1.7-6327xnsa.mjs";import{Zha as d,iia as h,jia as s}from"./cli-1.1.7-avhh3ykn.mjs";import{Vla as q}from"./cli-1.1.7-aq4f719n.mjs";import{kta as p}from"./cli-1.1.7-a1sffgeq.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
|
|
3
|
-
export{x as $W,O as aX,P as bX,Q as cX,R as dX,U as eX,W as fX,X as gX,z as hX};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ad as GJ,Bd as aJ}from"./cli-1.1.7-g84cjr3b.mjs";import{bi as $J,ci as cJ}from"./cli-1.1.7-vbkerts0.mjs";import{Fm as l,Ix as C,Jj as g,KF as s,KT as kJ,LF as SJ,Lm as vJ,SD as LJ,Sk as wJ,Sn as x,dm as c,fS as I,gm as OJ,jH as b,kE as mJ,lE as uJ,nH as r,oH as t,pH as EJ,qE as XJ,rE as gJ,tm as a,yO as P,ym as bJ,yz as o,zz as TJ}from"./cli-1.1.7-g69xsadf.mjs";import{EV as i,FV as n,QV as FJ}from"./cli-1.1.7-pcg3fv2k.mjs";import{s7 as UJ}from"./cli-1.1.7-6327xnsa.mjs";import{Aaa as BJ,Iga as O,Jga as RJ,Rga as B,Yda as m,Zga as H,eea as u,fea as AJ,qea as HJ}from"./cli-1.1.7-370fzee5.mjs";import{jia as VJ}from"./cli-1.1.7-avhh3ykn.mjs";import{jja as WJ}from"./cli-1.1.7-svpmye16.mjs";import{Xja as R,_ja as y}from"./cli-1.1.7-tj4a73gm.mjs";import{Ika as zJ,Mka as V,Qka as _J,_ka as f,bla as MJ}from"./cli-1.1.7-4jb3802k.mjs";import{Fla as h}from"./cli-1.1.7-gm3vnavd.mjs";import{Ila as w,Vla as NJ}from"./cli-1.1.7-aq4f719n.mjs";import{Goa as F,ppa as T,yra as j}from"./cli-1.1.7-avggtwyk.mjs";import{hta as fJ}from"./cli-1.1.7-a1sffgeq.mjs";gJ();cJ();j();VJ();y();P();wJ();x();BJ();WJ();h();H();I();UJ();zJ();C();P();x();H();h();I();C();LJ();function D(){}j();y();RJ();MJ();NJ();_J();TJ();HJ();H();r();SJ();bJ();kJ();EJ();FJ();AJ();vJ();OJ();import{join as Y}from"path";var hJ=30;function U(){let G=((m()||{}).cleanupPeriodDays??hJ)*24*60*60*1000;return new Date(Date.now()-G)}function e(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function xJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function p(X,J,G){let $={messages:0,errors:0};try{let K=await V().readdir(X);for(let Z of K)try{if(xJ(Z.name)<J)if(await V().unlink(Y(X,Z.name)),G)$.messages++;else $.errors++}catch(Q){B(Q)}}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")B(K)}return $}async function CJ(){let X=V(),J=U(),G=O.errors(),$=O.baseLogs(),K=await p(G,J,!1);try{let Z;try{Z=await X.readdir($)}catch{return K}let Q=Z.filter((q)=>q.isDirectory()&&q.name.startsWith("mcp-logs-")).map((q)=>Y($,q.name));for(let q of Q)K=e(K,await p(q,J,!0)),await z(q,X)}catch(Z){if(Z instanceof Error&&"code"in Z&&Z.code!=="ENOENT")B(Z)}return K}async function L(X,J,G){if((await G.stat(X)).mtime<J)return await G.unlink(X),!0;return!1}async function z(X,J){try{await J.rmdir(X)}catch{}}async function PJ(){let X=U(),J={messages:0,errors:0},G=g(),$=V(),K;try{K=await $.readdir(G)}catch{return J}for(let Z of K){if(!Z.isDirectory())continue;let Q=Y(G,Z.name),q;try{q=await $.readdir(Q)}catch{J.errors++;continue}for(let W of q)if(W.isFile()){if(!W.name.endsWith(".jsonl")&&!W.name.endsWith(".cast"))continue;try{if(await L(Y(Q,W.name),X,$))J.messages++}catch{J.errors++}}else if(W.isDirectory()){let M=Y(Q,W.name),N=Y(M,l),S;try{S=await $.readdir(N)}catch{await z(M,$);continue}for(let _ of S)if(_.isFile())try{if(await L(Y(N,_.name),X,$))J.messages++}catch{J.errors++}else if(_.isDirectory()){let A=Y(N,_.name),E;try{E=await $.readdir(A)}catch{continue}for(let k of E){if(!k.isFile())continue;try{if(await L(Y(A,k.name),X,$))J.messages++}catch{J.errors++}}await z(A,$)}await z(N,$),await z(M,$)}await z(Q,$)}return J}async function d(X,J,G=!0){let $=U(),K={messages:0,errors:0},Z=V(),Q;try{Q=await Z.readdir(X)}catch{return K}for(let q of Q){if(!q.isFile()||!q.name.endsWith(J))continue;try{if(await L(Y(X,q.name),$,Z))K.messages++}catch{K.errors++}}if(G)await z(X,Z);return K}async function IJ(){let X=a(),J=await d(X,".md"),G=Y(w(),"plans");if(G!==X){let $=await d(G,".md");return e(J,$)}return J}async function jJ(){let X=U(),J={messages:0,errors:0},G=V();try{let $=w(),K=Y($,"file-history"),Z;try{Z=await G.readdir(K)}catch{return J}let Q=Z.filter((q)=>q.isDirectory()).map((q)=>Y(K,q.name));await Promise.all(Q.map(async(q)=>{try{if((await G.stat(q)).mtime<X)await G.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await z(K,G)}catch($){B($)}return J}async function yJ(){let X=U(),J={messages:0,errors:0},G=V();try{let $=w(),K=Y($,"session-env"),Z;try{Z=await G.readdir(K)}catch{return J}let Q=Z.filter((q)=>q.isDirectory()).map((q)=>Y(K,q.name));for(let q of Q)try{if((await G.stat(q)).mtime<X)await G.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await z(K,G)}catch($){B($)}return J}async function DJ(){let X=U(),J={messages:0,errors:0},G=V();try{let $=Y(w(),"tasks"),K=n(i()),Z;try{Z=await G.readdir($)}catch{return J}for(let Q of Z){if(!Q.isDirectory()||Q.name===K)continue;let q=Y($,Q.name);try{if(await pJ(q,G)<X)await G.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}}await z($,G)}catch($){B($)}return J}async function pJ(X,J){let G=(await J.stat(X)).mtime,$=await J.readdir(X).catch(()=>[]);for(let K of $){if(!K.isFile())continue;try{let{mtime:Z}=await J.stat(Y(X,K.name));if(Z>G)G=Z}catch{}}return G}async function dJ(){let X=U(),J={messages:0,errors:0},G=V(),$=Y(w(),"debug"),K;try{K=await G.readdir($)}catch{return J}for(let Z of K){if(!Z.isFile()||!Z.name.endsWith(".txt")||Z.name==="latest")continue;try{if(await L(Y($,Z.name),X,G))J.messages++}catch{J.errors++}}return J}async function JJ(){let{errors:X}=t();if(X.length>0&&u("cleanupPeriodDays")){f("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await CJ(),await PJ(),await IJ(),await jJ(),await yJ(),await DJ(),await dJ(),await o(),await s(U());let J=await c(U());if(J>0)R("tengu_worktree_cleanup",{removed:J})}r();aJ();var lJ=(uJ(),fJ(mJ));var v=600000;function $0(){$J(),D(),lJ.initExtractMemories(),XJ(),GJ();let X=!0;async function J(){if(T()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await JJ();if(T()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}await b()}setTimeout(J,v).unref()}
|
|
2
|
-
export{$0 as ka};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A4 as V,B4 as D,z4 as N}from"./cli-1.1.7-x1mh9vnk.mjs";import{D8 as J,F8 as $,I8 as B,b9 as x,c8 as Z,h5 as Y,n5 as _}from"./cli-1.1.7-6327xnsa.mjs";import{Qja as Q,Wja as P}from"./cli-1.1.7-1sjzdsvt.mjs";import{Ksa as R,ssa as X}from"./cli-1.1.7-w7qe5saq.mjs";import{kta as W}from"./cli-1.1.7-a1sffgeq.mjs";function E(){let z=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",F=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/99.0.0 (${process.env.CLAUDE_CODE_ENTRYPOINT??"cli"}${z}${F})`}function I(){let z=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)z.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)z.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)z.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);return`claude-code/99.0.0${z.length>0?` (${z.join(", ")})`:""}`}function w(){if(Y()==="firstParty")return`Claude-User (${N()}; +https://support.anthropic.com/)`;return`Claudin-User (${V()})`}function C(){if(B()){let F=J();if(!F?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${F.accessToken}`,"anthropic-beta":Q}}}let z=Z();if(!z)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":z}}}async function O(z,F){try{return await z()}catch(G){if(!X.isAxiosError(G))throw G;let L=G.response?.status;if(!(L===401||F?.also403Revoked&&L===403&&typeof G.response?.data==="string"&&G.response.data.includes("OAuth token has been revoked")))throw G;let M=J()?.accessToken;if(!M)throw G;return await $(M),await z()}}var H=W(()=>{R();P();x();_();D()});
|
|
2
|
-
export{E as t4,I as u4,w as v4,C as w4,O as x4,H as y4};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{HS as jJ,IS as $V,To as IJ,Vo as cJ,dj as pJ,iL as DJ,iS as UJ,jL as BJ,kL as lJ}from"./cli-1.1.7-g69xsadf.mjs";import{Rga as G,T$ as mJ,W_ as c,X_ as fJ,Xda as m,Yea as YJ,Zga as dJ,aaa as NJ,eaa as gJ,fea as uJ,q$ as WJ,rfa as hJ,v$ as l}from"./cli-1.1.7-370fzee5.mjs";import{hja as U,jja as PJ}from"./cli-1.1.7-svpmye16.mjs";import{Xja as f,_ja as SJ}from"./cli-1.1.7-tj4a73gm.mjs";import{Mka as VJ,Qka as bJ,_ka as Q,bla as kJ}from"./cli-1.1.7-4jb3802k.mjs";import{Fla as yJ,yla as JJ}from"./cli-1.1.7-gm3vnavd.mjs";import{vna as qJ,wna as zJ}from"./cli-1.1.7-avggtwyk.mjs";import{gta as wJ,kta as _J}from"./cli-1.1.7-a1sffgeq.mjs";class p{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=LJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],N=-1/0,{paths:I,lowerPaths:q,charBits:x,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((x[M]&$)!==$)continue;let B=Z?I[M]:q[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let A=1;A<Y;A++){if(E=B.indexOf(X[A],h+1),E===-1)continue J;y[A]=E;let F=E-h-1;if(F===0)u+=4;else C+=3+F*1;h=E}if(H.length===W&&_+u-C<=N)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,y[A],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=H[0].fuzzScore}else if(T>N){let A=0,F=H.length;while(A<F){let d=A+F>>1;if(H[d].fuzzScore<T)A=d+1;else F=d}H.splice(A,0,{path:S,fuzzScore:T}),H.shift(),N=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!K)K=new p;return K}function vV(){K=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function oJ(J){if(J.length===0)return;if(!K||L.length===0)return;let W=await FJ(J),Z=[...L,...$J,...XJ,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=KJ.default(),_=!1,H=X.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(H.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[q]}`)}let I=_?$:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),X=Date.now(),$=await c(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
|
|
2
|
-
`).filter(Boolean),H=OJ(_,V,Y),N=await EJ(V,Y);if(N){let q=H.length;H=N.filter(H),Q(`[FileIndex] applied ignore patterns: ${q} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=R;k=c(l(),q,{timeout:1e4,cwd:V}).then(async(j)=>{if(x!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
|
|
3
|
-
`).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),TJ(J,W)}async function TJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let Y=U(),$=(await IJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=U(),[$,_]=await Promise.all([tJ(J,Y),rJ(X)]);$J=_;let H=[...$,..._],N=await FJ(H);XJ=N;let I=[...N,...H],q=xJ(I);if(q!==r)await W.loadFromFileListAsync(I).done,r=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function GV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function AJ(){if(v)return;let J=sJ();if(K){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return AJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;AJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=NJ(Y);let $=K?VV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var KJ,K=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();cJ();uJ();zJ();KJ=wJ(pJ(),1);ZJ=qJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
|
|
4
|
-
export{p as ji,MJ as ki,jV as li,vV as mi,RV as ni,GV as oi,AJ as pi,CV as qi,LV as ri,ZV as si};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a9 as v,b9 as C}from"./cli-1.1.7-6327xnsa.mjs";import{Sfa as x,Tfa as Y,rea as Z,sea as V}from"./cli-1.1.7-370fzee5.mjs";import{Zha as R,bia as W,jia as O}from"./cli-1.1.7-avhh3ykn.mjs";import{Vja as Q,Wja as M}from"./cli-1.1.7-1sjzdsvt.mjs";import{Dka as P,Ika as I,_ka as f,bla as L}from"./cli-1.1.7-4jb3802k.mjs";import{Fla as H,yla as w}from"./cli-1.1.7-gm3vnavd.mjs";import{Xra as N,Yra as F}from"./cli-1.1.7-kbdranyx.mjs";import{Ksa as U,ssa as X}from"./cli-1.1.7-w7qe5saq.mjs";import{hta as h,kta as B}from"./cli-1.1.7-a1sffgeq.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
|
|
2
|
-
export{u as WW,n as XW,o as YW,t as ZW,d as _W};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{EZ as O}from"./cli-1.1.7-8e3qerv0.mjs";import{p4 as X,r4 as Q}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as b}from"./cli-1.1.7-ac6ve6ks.mjs";import{dfa as W,rfa as P}from"./cli-1.1.7-370fzee5.mjs";import{gta as U}from"./cli-1.1.7-a1sffgeq.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
|
|
2
|
-
export{V as qb,C as rb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{xi as M,yi as w,zi as A}from"./cli-1.1.7-m2rq9nq2.mjs";import{aja as X,cja as N,dja as $,eja as O}from"./cli-1.1.7-5a7dx8xv.mjs";import{_ka as R,bla as C}from"./cli-1.1.7-4jb3802k.mjs";import{Ila as L,Vla as _}from"./cli-1.1.7-aq4f719n.mjs";import{yra as T,zna as H}from"./cli-1.1.7-avggtwyk.mjs";import{Ksa as y,ssa as W}from"./cli-1.1.7-w7qe5saq.mjs";y();N();T();C();_();O();A();import{randomUUID as I}from"crypto";import{mkdir as P,writeFile as U}from"fs/promises";import{basename as v,join as B}from"path";var D=30000;function Q(q){R(`[bridge:inbound-attach] ${q}`)}var j=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),k=$(()=>X.array(j()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=k().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return v(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function x(){return B(L(),"uploads",H())}async function b(q){let G=M();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${w()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await W.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:D,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),F=(q.file_uuid.slice(0,8)||I().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),E=x(),Y=B(E,`${F}-${K}`);try{await P(E,{recursive:!0}),await U(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(b))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function l(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function s(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return l(G,K)}
|
|
2
|
-
export{S as ca,f as da,l as ea,s as fa};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{Nh as qq,Oh as Jq,Ph as Zq,Qh as _q}from"./cli-1.1.7-4w65nb7a.mjs";import{Rh as $q,Sh as Pq}from"./cli-1.1.7-5afzqeez.mjs";import{Mz as j,Nz as y,Rz as p}from"./cli-1.1.7-g69xsadf.mjs";import{I1 as Iq,b1 as F,d1 as K}from"./cli-1.1.7-8e3qerv0.mjs";import{p4 as Y,q4 as L,r4 as Xq}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as m}from"./cli-1.1.7-ac6ve6ks.mjs";import{B$ as c,E_ as I,F_ as e,T$ as Uq,nda as a,s$ as w,u$ as f,vda as Vq}from"./cli-1.1.7-370fzee5.mjs";import{fha as Mq,gha as x,uha as Eq}from"./cli-1.1.7-xv2n043b.mjs";import{gta as T,kta as D}from"./cli-1.1.7-a1sffgeq.mjs";function u(q,J){let{perFileStats:$}=q,z=[];for(let[Q,Z]of $){let A=J.get(Q),M=Z.isUntracked??!1,U=!Z.isBinary&&!M&&!A&&!Z.renamedFrom,H=Z.added+Z.removed,v=!U&&!Z.isBinary&&H>Kq;z.push({path:Q,linesAdded:Z.added,linesRemoved:Z.removed,isBinary:Z.isBinary,isLargeFile:U,isTruncated:v,isUntracked:M,...Z.renamedFrom?{renamedFrom:Z.renamedFrom}:{}})}return z.sort((Q,Z)=>Q.path.localeCompare(Z.path)),z}var b,Kq=400;var h=D(()=>{p();b=T(m(),1)});import{basename as S}from"path";function wq(q,J){let[$,z]=O.useState([]),[Q,Z]=O.useState([]),[A,M]=O.useState(!0),[U,H]=O.useState(0),v=q.join(`
|
|
2
|
-
`),X=J.join(`
|
|
3
|
-
`);O.useEffect(()=>{let V=!1;M(!0);async function G(){let N=v?v.split(`
|
|
4
|
-
`):[],_=X?X.split(`
|
|
5
|
-
`):[],E=(await Promise.all(_.map((B)=>f(B)))).flat(),P=w(E).filter((B)=>!N.includes(B)).sort((B,C)=>S(B).localeCompare(S(C))),k=w([...N,...P]),Yq=await Promise.all(k.map(async(B)=>{let[C,g,Aq]=await Promise.all([j(B),y(B),c(B)]);return{root:B,name:S(B),branch:Aq,files:C?u(C,g):[],hunks:g}}));if(!V)z(Yq),Z(k),M(!1)}return G().catch(()=>{if(!V)z([]),Z([]),M(!1)}),()=>{V=!0}},[v,X,U]);let W=O.useCallback(()=>H((V)=>V+1),[]);return{groups:$,roots:Q,loading:A,refresh:W}}var O;var Hq=D(()=>{Uq();p();h();O=T(m(),1)});import{basename as n}from"path";function d(q,J,$){if(q===0)return"";return J.join("")+($?vq:l)}function r(q){return{name:q,dirs:new Map,files:[]}}function Gq(q){let J=r("");for(let $ of q){let z=$.path.split("/");z.pop();let Q=J;for(let Z of z){let A=Q.dirs.get(Z);if(!A)A=r(Z),Q.dirs.set(Z,A);Q=A}Q.files.push($)}return J}function i(q,J,$,z,Q,Z,A,M){let U=[...q.dirs.values()].sort((X,W)=>X.name.localeCompare(W.name)),H=[...q.files].sort((X,W)=>n(X.path).localeCompare(n(W.path))),v=H.length>0;for(let X=0;X<U.length;X++){let W=U[X],V=W.name,G=J?`${J}/${W.name}`:W.name;while(W.files.length===0&&W.dirs.size===1){let P=W.dirs.values().next().value;V=`${V}/${P.name}`,G=`${G}/${P.name}`,W=P}let N=X===U.length-1&&!v,_=`${Q}\x00${G}`,E=z.has(_);if(A.push({kind:"dir",key:_,label:V,depth:$,collapsed:E,guides:d($,M,N)}),!E){let P=$>=1?[...M,N?Bq:l]:M;i(W,G,$+1,z,Q,Z,A,P)}}for(let X=0;X<H.length;X++){let W=H[X],V=X===H.length-1;A.push({kind:"file",file:W,root:Q,hunks:Z(W.path),depth:$,guides:d($,M,V)})}}function Nq(q,J){let $=[],z=q.length>1,Q=0;for(let Z of q){let A=z?1:0;if(z){let M=J.has(Z.root);if($.push({kind:"group",key:Z.root,name:Z.name,meta:`${Z.files.length} ${a(Z.files.length,"file")} changed`,branch:Z.branch,repoIndex:Q++,collapsed:M,depth:0}),M)continue}i(Gq(Z.files),"",A,J,Z.root,(M)=>Z.hunks.get(M)??[],$,[])}return $}var l="│ ",vq="└ ",Bq=" ";var o=D(()=>{Vq()});function hq(q){let J=0;for(let $=0;$<q.length;$++)J=Math.imul(J,31)+q.charCodeAt($)|0;return R[Math.abs(J)%R.length]}function s(q){let J=R.length;return R[(q%J+J)%J]}var R;var t=D(()=>{R=["cyan_FOR_SUBAGENTS_ONLY","green_FOR_SUBAGENTS_ONLY","yellow_FOR_SUBAGENTS_ONLY","purple_FOR_SUBAGENTS_ONLY","orange_FOR_SUBAGENTS_ONLY","pink_FOR_SUBAGENTS_ONLY","blue_FOR_SUBAGENTS_ONLY","red_FOR_SUBAGENTS_ONLY"]});function zq(){let q=$q();return{enabled:q,fileIcon:(J)=>q?Zq(J):"",folderIcon:(J)=>q?J?Jq:qq:"",repoIcon:q?Oq:"",branchIcon:q?Fq:"",pointer:I.pointer}}var Oq="",Fq="";var Qq=D(()=>{e();_q();Pq()});import{basename as Lq}from"path";function Dq(q,J,$){if(q<=$)return{start:0,end:q};let z=Math.max(0,J-Math.floor($/2)),Q=z+$;if(Q>q)Q=q,z=Math.max(0,Q-$);return{start:z,end:Q}}function ZJ(q){return q.flatMap((J)=>J.files)}function $J({rows:q,selectedIndex:J,maxVisible:$,width:z,statusByPath:Q,alignFiles:Z}){let A=Wq.useMemo(zq,[]),M=q.length;if(M===0)return Y(K,{dimColor:!0,children:"No changed files"});let{start:U,end:H}=Dq(M,J,$),v=[];for(let X=U;X<H;X++){let W=q[X];v.push(Y(kq,{row:W,isSelected:X===J,width:z,glyphs:A,alignFiles:Z,statusColor:W.kind==="file"?Q?.get(W.file.path):void 0},X))}return L(F,{flexDirection:"column",children:[U>0&&Y(K,{dimColor:!0,children:` ↑ ${U} more`}),v,H<M&&Y(K,{dimColor:!0,children:` ↓ ${M-H} more`})]})}function kq({row:q,isSelected:J,width:$,glyphs:z,statusColor:Q,alignFiles:Z}){if(q.kind==="group"){let N=J?`${z.pointer} `:" ",_=q.collapsed?I.triangleRight:I.triangleDown;return L(K,{dimColor:!J,bold:J,children:[`${N}${_} `,z.repoIcon&&Y(K,{color:s(q.repoIndex),dimColor:!1,children:`${z.repoIcon} `}),q.name," ",Y(K,{bold:!0,children:q.meta}),q.branch&&Y(K,{children:` ${z.branchIcon?`${z.branchIcon} `:"· "}${q.branch}`})]})}let A=J?`${z.pointer} `:" ",M=q.guides,U=2+q.depth*2;if(q.kind==="dir"){let N=q.collapsed?I.triangleRight:I.triangleDown,_=z.folderIcon(!q.collapsed),E=_?`${_} `:"",P=Math.max(4,$-U-2-(E?2:0)-1),k=x(q.label,P);return L(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:L(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),`${N} ${E}${k}`]})}),Y(F,{flexGrow:1})]})}let H=z.fileIcon(q.file.path),v=H?`${H} `:"",X=Z?" ":"",W=q.file.isBinary||q.file.isLargeFile||q.file.renamedFrom?9:0,V=Math.max(4,$-U-X.length-(v?2:0)-W-1),G=q.label?x(q.label,V):Mq(Lq(q.file.path),V);return L(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:L(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),X,v,Q&&!J?Y(K,{color:Q,children:G}):G]})}),Y(F,{flexGrow:1}),Y(F,{flexShrink:0,children:Y(Cq,{file:q.file,isSelected:J})})]})}function Cq({file:q,isSelected:J}){if(q.isBinary)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"binary"});if(q.isLargeFile)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"large"});if(q.renamedFrom)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"renamed"});return null}var Wq,JJ=80;var Rq=D(()=>{e();Iq();Eq();t();o();Qq();Xq();Wq=T(m(),1)});
|
|
6
|
-
export{wq as eg,Hq as fg,zq as gg,Qq as hg,hq as ig,t as jg,Nq as kg,o as lg,JJ as mg,ZJ as ng,$J as og,Rq as pg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{FO as O,GO as P,HO as Q,IO as U,LO as X,gj as M,hj as W}from"./cli-1.1.7-g69xsadf.mjs";import{kta as V}from"./cli-1.1.7-a1sffgeq.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
|
|
2
|
-
export{F as yg,$ as zg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Rga as U,Zga as m,aaa as F,eaa as f,g$ as K,h$ as E}from"./cli-1.1.7-370fzee5.mjs";import{hja as v,jja as x}from"./cli-1.1.7-svpmye16.mjs";import{Mka as D,Qka as g}from"./cli-1.1.7-4jb3802k.mjs";import{kta as S}from"./cli-1.1.7-a1sffgeq.mjs";import{basename as H,dirname as b,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=H(q);return{directory:N,prefix:J}}async function k(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function P(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await k(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function u(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await u(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();m();f();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
|
|
2
|
-
export{P as Gh,o as Hh,h as Ih,C as Jh};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{fta as Z}from"./cli-1.1.7-qztj9jjs.mjs";import{ita as Y,lta as O}from"./cli-1.1.7-a1sffgeq.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
|
-
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
|
-
export{ye as _sa};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Rg as rq,Sg as ZX}from"./cli-1.1.7-xbk0ex0w.mjs";import{Tg as sq,Ug as tq,Vg as tZ,Xg as QX}from"./cli-1.1.7-t7869eaw.mjs";import{Zg as tX}from"./cli-1.1.7-b9n3ev12.mjs";import{kh as sZ,lh as tY,mh as nq,nh as eY}from"./cli-1.1.7-8ht7sy5z.mjs";import{oh as lq,ph as sY}from"./cli-1.1.7-78k36t0w.mjs";import{qh as oq,rh as JX,sh as aq,th as qX}from"./cli-1.1.7-fzz66s7r.mjs";import{uh as WY,vh as DZ,xh as uq,yh as dq}from"./cli-1.1.7-fq766b4m.mjs";import{Vi as YY,Wi as aX}from"./cli-1.1.7-fh4kn809.mjs";import{$n as T,AG as lJ,AH as AY,Am as nX,Bo as iY,Dm as QY,Em as rX,Jj as gQ,KT as yY,Kv as PJ,Lv as _0,Mj as FJ,Nv as oX,Op as vq,Pp as lY,Rj as jX,SI as cq,TI as rY,VT as qQ,Zn as L0,_P as mQ,_n as dY,_y as sX,ao as c0,bo as J0,co as EZ,dQ as _X,dU as QQ,eU as YQ,fo as d0,gL as aZ,go as gZ,hL as oY,iU as GX,jy as E0,ky as gq,lL as BZ,ly as mq,mL as sJ,mo as oZ,my as TJ,nL as tJ,nT as iJ,oG as Qq,oL as eJ,pG as wY,qH as $J,qo as _q,rH as bJ,sH as wJ,tH as jJ,uH as _J,vH as vJ,wH as gJ,wN as s0,xH as mJ,xN as YJ,yG as i0,yH as pJ,zG as TY,zH as xJ,zm as qY}from"./cli-1.1.7-g69xsadf.mjs";import{eV as pq,fV as xq,jV as nY}from"./cli-1.1.7-z10gdn10.mjs";import{$W as iq,hX as aY}from"./cli-1.1.7-czrff7za.mjs";import{CY as _,DY as jq,EY as l0,HY as VY,IY as qG,KY as u0,LY as TZ,NY as UZ,QY as KY,RY as QG,oY as A0,pY as XZ}from"./cli-1.1.7-rb629pva.mjs";import{EZ as b0,H0 as wq,I1 as S0,NZ as x0,OZ as $q,TZ as hZ,VZ as lX,a0 as rZ,b0 as bq,b1 as B,d1 as K,f0 as uY,n1 as JY}from"./cli-1.1.7-8e3qerv0.mjs";import{o4 as H0,p4 as G,q4 as z,r4 as x}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as F0}from"./cli-1.1.7-ac6ve6ks.mjs";import{A4 as SQ,B4 as EX}from"./cli-1.1.7-x1mh9vnk.mjs";import{C6 as cY,O8 as ZY,R5 as n0,S5 as xY,b7 as NJ,b9 as iX,g7 as yq,h5 as eQ,i6 as YZ,j6 as lZ,l6 as Sq,m6 as nZ,n5 as dX,o6 as fq,o7 as kZ,s7 as Tq,t6 as hq}from"./cli-1.1.7-6327xnsa.mjs";import{x9 as K0,y9 as Fq}from"./cli-1.1.7-x20kjfvg.mjs";import{Cga as w0,E_ as C0,F_ as vZ,Fga as Cq,Rga as U0,Sda as dZ,Uda as Z0,Vea as y,Xda as iZ,Yea as h,Zea as Rq,Zga as IZ,cfa as Bq,cga as VQ,fea as pY,fga as KQ,gca as Nq,gfa as kq,gga as VX,hca as Pq,hfa as Iq,ica as Uq,iga as WQ,jca as Aq,oca as mY,pga as HQ,rfa as Eq,rga as zQ,vga as OQ,zga as KX}from"./cli-1.1.7-370fzee5.mjs";import{mha as OZ,nha as P0,oha as tQ,tha as SZ,uha as QJ}from"./cli-1.1.7-xv2n043b.mjs";import{Oha as Lq}from"./cli-1.1.7-a16gq5s9.mjs";import{Zha as Mq,jia as gY}from"./cli-1.1.7-avhh3ykn.mjs";import{hja as PZ,jja as yJ}from"./cli-1.1.7-svpmye16.mjs";import{Xja as S,_ja as vY}from"./cli-1.1.7-tj4a73gm.mjs";import{Ika as uX,_ka as j0,bla as qJ}from"./cli-1.1.7-4jb3802k.mjs";import{Dla as DJ,Fla as wX}from"./cli-1.1.7-gm3vnavd.mjs";import{Lla as Oq,Nla as GQ,Sla as uZ,Vla as Dq}from"./cli-1.1.7-aq4f719n.mjs";import{Apa as zq,Koa as sQ,Qna as lQ,Rna as nQ,Una as rQ,moa as oQ,noa as aQ,yra as hJ,zna as fJ,zoa as LJ,zpa as cZ}from"./cli-1.1.7-avggtwyk.mjs";import{gta as u,kta as r}from"./cli-1.1.7-a1sffgeq.mjs";function RY(){let J=fJ(),Q=iJ(J)??G(K,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"1.1.7"},{label:"Session name",value:Q},{label:"Session ID",value:J},{label:"cwd",value:PZ()},...mJ(),...pJ()]}function BY({mainLoopModel:J,mcp:Z,theme:Q,context:Y}){return[{label:"Model",value:xJ(J)},...bJ(Z.clients,Y.options.ideInstallationStatus,Q),...wJ(Z.clients,Q),...$J(),..._J()]}async function cJ(){return[...await vJ(),...await gJ(),...await jJ()]}function kY(J){let Z=AZ.c(8),{value:Q}=J;if(Array.isArray(Q)){let Y;if(Z[0]!==Q){let H;if(Z[2]!==Q.length)H=(O,F)=>z(K,{children:[O,F<Q.length-1?",":""]},F),Z[2]=Q.length,Z[3]=H;else H=Z[3];Y=Q.map(H),Z[0]=Q,Z[1]=Y}else Y=Z[1];let V;if(Z[4]!==Y)V=G(B,{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 uJ(J){let Z=AZ.c(20),{context:Q,diagnosticsPromise:Y}=J,V=E0(SY),H=E0(CY),[O]=x0(),F;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))F=RY(),Z[0]=F;else F=Z[0];let P;if(Z[1]!==Q||Z[2]!==V||Z[3]!==H||Z[4]!==O)P=BY({mainLoopModel:V,mcp:H,theme:O,context:Q}),Z[1]=Q,Z[2]=V,Z[3]=H,Z[4]=O,Z[5]=P;else P=Z[5];let U;if(Z[6]!==P)U=[F,P],Z[6]=P,Z[7]=U;else U=Z[7];let W=U,D=u0()?1:void 0,M;if(Z[8]!==W)M=W.map(IY),Z[8]=W,Z[9]=M;else M=Z[9];let N;if(Z[10]!==Y)N=G(RZ.Suspense,{fallback:null,children:G(fY,{promise:Y})}),Z[10]=Y,Z[11]=N;else N=Z[11];let A;if(Z[12]!==D||Z[13]!==M||Z[14]!==N)A=z(B,{flexDirection:"column",gap:1,flexGrow:D,children:[M,N]}),Z[12]=D,Z[13]=M,Z[14]=N,Z[15]=A;else A=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]!==D||Z[18]!==A)k=z(B,{flexDirection:"column",flexGrow:D,children:[A,I]}),Z[17]=D,Z[18]=A,Z[19]=k;else k=Z[19];return k}function IY(J,Z){return J.length>0&&G(B,{flexDirection:"column",children:J.map(EY)},Z)}function EY(J,Z){let{label:Q,value:Y}=J;return z(B,{flexDirection:"row",gap:1,flexShrink:0,children:[Q!==void 0&&z(K,{bold:!0,children:[Q,":"]}),G(kY,{value:Y})]},Z)}function CY(J){return J.mcp}function SY(J){return J.mainLoopModel}function fY(J){let Z=AZ.c(5),{promise:Q}=J,Y=RZ.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 H;if(Z[1]!==Y)H=Y.map(hY),Z[1]=Y,Z[2]=H;else H=Z[2];let O;if(Z[3]!==H)O=z(B,{flexDirection:"column",paddingBottom:1,children:[V,H]}),Z[3]=H,Z[4]=O;else O=Z[4];return O}function hY(J,Z){return z(B,{flexDirection:"row",gap:1,paddingX:1,children:[G(K,{color:"error",children:C0.warning}),typeof J==="string"?G(K,{wrap:"wrap",children:J}):J]},Z)}var AZ,RZ;var dJ=r(()=>{vZ();hJ();UZ();S0();TJ();yJ();yY();AY();c0();x();AZ=u(b0(),1),RZ=u(F0(),1)});function rJ(J){let Z=nJ.c(17),{currentVersion:Q,onChoice:Y}=J,V;if(Z[0]!==Y)V=function(k){Y(k)},Z[0]=Y,Z[1]=V;else V=Z[1];let H=V,O;if(Z[2]!==Y)O=function(){Y("cancel")},Z[2]=Y,Z[3]=O;else O=Z[3];let F=O,P;if(Z[4]!==Q)P=z(K,{children:["The stable channel may have an older version than what you're currently running (",Q,")."]}),Z[4]=Q,Z[5]=P;else P=Z[5];let U;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))U=G(K,{dimColor:!0,children:"How would you like to handle this?"}),Z[6]=U;else U=Z[6];let W;if(Z[7]===Symbol.for("react.memo_cache_sentinel"))W={label:"Allow possible downgrade to stable version",value:"downgrade"},Z[7]=W;else W=Z[7];let D=`Stay on current version (${Q}) until stable catches up`,M;if(Z[8]!==D)M=[W,{label:D,value:"stay"}],Z[8]=D,Z[9]=M;else M=Z[9];let N;if(Z[10]!==H||Z[11]!==M)N=G(i0,{options:M,onChange:H}),Z[10]=H,Z[11]=M,Z[12]=N;else N=Z[12];let A;if(Z[13]!==F||Z[14]!==P||Z[15]!==N)A=z(d0,{title:"Switch to Stable Channel",onCancel:F,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[P,U,N]}),Z[13]=F,Z[14]=P,Z[15]=N,Z[16]=A;else A=Z[16];return A}var nJ;var oJ=r(()=>{S0();lJ();gZ();x();nJ=u(b0(),1)});function aJ(J){return Object.entries(J).map(([Z,Q])=>({label:Q?.name??$Y,value:Z,description:Q?.description??bY}))}function Jq(J){let Z=Zq.c(16),{initialStyle:Q,onComplete:Y,onCancel:V,isStandaloneCommand:H}=J,O;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))O=[],Z[0]=O;else O=Z[0];let[F,P]=JZ.useState(O),[U,W]=JZ.useState(!0),D,M;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))D=()=>{tJ(PZ()).then((d)=>{let m=aJ(d);P(m),W(!1)}).catch(()=>{let d=aJ(sJ);P(d),W(!1)})},M=[],Z[1]=D,Z[2]=M;else D=Z[1],M=Z[2];JZ.useEffect(D,M);let N;if(Z[3]!==Y)N=(d)=>{Y(d)},Z[3]=Y,Z[4]=N;else N=Z[4];let A=N,I=!H,k=!H,j;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))j=G(B,{marginTop:1,children:G(K,{dimColor:!0,children:"This changes how Claudin communicates with you"})}),Z[5]=j;else j=Z[5];let t;if(Z[6]!==A||Z[7]!==Q||Z[8]!==U||Z[9]!==F)t=z(B,{flexDirection:"column",gap:1,children:[j,U?G(K,{dimColor:!0,children:"Loading output styles…"}):G(i0,{options:F,onChange:A,visibleOptionCount:10,defaultValue:Q})]}),Z[6]=A,Z[7]=Q,Z[8]=U,Z[9]=F,Z[10]=t;else t=Z[10];let w;if(Z[11]!==V||Z[12]!==I||Z[13]!==k||Z[14]!==t)w=G(d0,{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 Zq,JZ,$Y="Default",bY="Claudin completes coding tasks efficiently and provides concise responses";var qq=r(()=>{eJ();S0();yJ();TY();gZ();x();Zq=u(b0(),1),JZ=u(F0(),1)});function Xq(J){let Z=Yq.c(13),{initialLanguage:Q,onComplete:Y,onCancel:V}=J,[H,O]=mZ.useState(Q),[F,P]=mZ.useState((Q??"").length),U;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))U={context:"Settings"},Z[0]=U;else U=Z[0];_("confirm:no",V,U);let W;if(Z[1]!==H||Z[2]!==Y)W=function(){let w=H?.trim();Y(w||void 0)},Z[1]=H,Z[2]=Y,Z[3]=W;else W=Z[3];let D=W,M;if(Z[4]===Symbol.for("react.memo_cache_sentinel"))M=G(K,{children:"Enter your preferred response and voice language:"}),Z[4]=M;else M=Z[4];let N;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))N=G(K,{children:C0.pointer}),Z[5]=N;else N=Z[5];let A=H??"",I;if(Z[6]!==F||Z[7]!==D||Z[8]!==A)I=z(B,{flexDirection:"row",gap:1,children:[N,G(Qq,{value:A,onChange:O,onSubmit:D,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${C0.ellipsis}`,columns:60,cursorOffset:F,onChangeCursorOffset:P})]}),Z[6]=F,Z[7]=D,Z[8]=A,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 j;if(Z[11]!==I)j=z(B,{flexDirection:"column",gap:1,children:[M,I,k]}),Z[11]=I,Z[12]=j;else j=Z[12];return j}var Yq,mZ;var Gq=r(()=>{vZ();S0();l0();wY();x();Yq=u(b0(),1),mZ=u(F0(),1)});function Vq(J,{grouped:Z=!0}={}){if(!Z)return J.map((H)=>({kind:"setting",id:H.id,item:H}));let Q=new Map;for(let H of J){let O=Q.get(H.id);if(O)O.push(H);else Q.set(H.id,[H])}let Y=[],V=(H,O)=>{if(O.length===0)return;if(Y.length>0)Y.push({kind:"spacer",id:`spacer:${H.id}`});Y.push({kind:"header",id:`header:${H.id}`,label:H.label});for(let F of O)Y.push({kind:"setting",id:F.id,item:F})};for(let H of jY){let O=[];for(let F of H.settingIds){let P=Q.get(F);if(!P)continue;O.push(...P),Q.delete(F)}V(H,O)}return V(_Y,[...Q.values()].flat()),Y}function f0(J){return J?.kind==="setting"}function QZ(J){return J.findIndex((Z)=>f0(Z))}function pZ(J){for(let Z=J.length-1;Z>=0;Z--)if(f0(J[Z]))return Z;return-1}function qZ(J,Z,Q){for(let Y=Z+Q;Y>=0&&Y<J.length;Y+=Q)if(f0(J[Y]))return Y;return f0(J[Z])?Z:QZ(J)}function Kq(J,Z,Q){if(Q===1){for(let V=Z+1;V<J.length;V++)if(J[V]?.kind==="header")return qZ(J,V,1);return pZ(J)}let Y=-1;for(let V=Z-1;V>=0;V--)if(J[V]?.kind==="header"){Y=V;break}for(let V=Y-1;V>=0;V--)if(J[V]?.kind==="header")return qZ(J,V,1);return QZ(J)}function xZ(J){return J.reduce((Z,Q)=>f0(Q)?Z+1:Z,0)}var jY,_Y;var Wq=r(()=>{jY=[{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","toolResultSummarizerEnabled","repeatedFailureHintEnabled","fileCheckpointingEnabled","respectGitignore"]},{id:"interface",label:"Interface",settingIds:["theme","defaultView","verbose","showTurnDuration","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"]}],_Y={id:"other",label:"Other",settingIds:[]}});function ZQ({onClose:J,context:Z,setTabsHidden:Q,onIsSearchModeChange:Y,contentHeight:V}){let{headerFocused:H,focusHeader:O}=uq(),F=u0(),[,P]=x0(),U=$q(),[W,D]=v.useState(h()),M=l.useRef(h()),[N,A]=v.useState(iZ()),I=l.useRef(iZ()),[k,j]=v.useState(N?.outputStyle||BZ),t=l.useRef(k),[w,d]=v.useState(N?.language),m=l.useRef(w),[$,Q0]=v.useState(0),[o,Y0]=v.useState(0),[n,z0]=v.useState(!0),$0=wq(),[e]=v.useState(()=>rZ()),{rows:v0,columns:X0}=A0(),FZ=Math.max(24,Math.min(44,X0-18)),C=V??Math.min(Math.floor(v0*0.8),30),p=Math.max(5,C-10),R0=E0((q)=>q.mainLoopModel),MZ=E0((q)=>q.verbose),g0=E0((q)=>q.thinkingEnabled),m0=E0((q)=>YZ()?q.fastMode:!1),p0=E0((q)=>q.promptSuggestionEnabled),$Z=!1,G0=gq(),[t0,E]=v.useState({}),b=l.useRef(g0),[a]=v.useState(()=>dZ("localSettings")),[V0]=v.useState(()=>dZ("userSettings")),W0=l.useRef(U),e0=mq(),[B0]=v.useState(()=>{let q=e0.getState();return{mainLoopModel:q.mainLoopModel,mainLoopModelForSession:q.mainLoopModelForSession,verbose:q.verbose,thinkingEnabled:q.thinkingEnabled,fastMode:q.fastMode,promptSuggestionEnabled:q.promptSuggestionEnabled,isBriefOnly:q.isBriefOnly,replBridgeEnabled:q.replBridgeEnabled,replBridgeOutboundOnly:q.replBridgeOutboundOnly,settings:q.settings}}),[bZ]=v.useState(()=>cZ()),M0=l.useRef(!1),[zY,ZZ]=v.useState(!1),[i,g]=v.useState(null),{query:k0,setQuery:LZ,cursorOffset:OY}=aq({isActive:n&&i===null&&!H,onExit:()=>z0(!1),onExitUp:O,passthroughCtrlKeys:["c","d"]}),AJ=n&&!H;l.useEffect(()=>{Y?.(AJ)},[AJ,Y]);let DY=_q(Z.options.mcpClients),FY=!Oq(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),RJ=l.use(qQ(!0)),MY=YQ(RJ),I0=Iq();function BJ(q){S("tengu_config_model_changed",{from_model:R0,to_model:q}),G0((L)=>({...L,mainLoopModel:q,mainLoopModelForSession:null})),E((L)=>{let R=kZ(q)+(nq(q,!1,yq())?" · Billed as extra usage":"");if("model"in L){let{model:f,...O0}=L;return{...O0,model:R}}return{...L,model:R}})}function LY(q){y((X)=>({...X,verbose:q})),D({...h(),verbose:q}),G0((X)=>({...X,verbose:q})),E((X)=>{if("verbose"in X){let{verbose:L,...R}=X;return R}return{...X,verbose:q}})}let wZ=[{id:"autoCompactEnabled",label:"Auto-compact",value:W.autoCompactEnabled,type:"boolean",onChange(q){y((X)=>({...X,autoCompactEnabled:q})),D({...h(),autoCompactEnabled:q}),S("tengu_auto_compact_setting_changed",{enabled:q})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:W.thinkingHistoryRedactionEnabled,type:"boolean",onChange(q){y((X)=>({...X,thinkingHistoryRedactionEnabled:q})),D({...h(),thinkingHistoryRedactionEnabled:q}),S("claudin_thinking_history_redaction_setting_changed",{enabled:q})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:W.narrationHistoryRedactionEnabled,type:"boolean",onChange(q){y((X)=>({...X,narrationHistoryRedactionEnabled:q})),D({...h(),narrationHistoryRedactionEnabled:q}),S("claudin_narration_history_redaction_setting_changed",{enabled:q})}},{id:"showCacheStats",label:"Cache stats display",value:W.showCacheStats,options:["off","compact","full"],type:"enum",onChange(q){let X=q==="off"||q==="compact"||q==="full"?q:"compact";y((L)=>({...L,showCacheStats:X})),D({...h(),showCacheStats:X}),S("tengu_show_cache_stats_setting_changed",{mode:X})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:W.toolResultSummarizerEnabled,type:"boolean",onChange(q){y((X)=>({...X,toolResultSummarizerEnabled:q})),D({...h(),toolResultSummarizerEnabled:q}),S("claudin_tool_result_summarizer_setting_changed",{enabled:q})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:W.bashOutputFilterEnabled!==!1,type:"boolean",onChange(q){y((X)=>({...X,bashOutputFilterEnabled:q})),D({...h(),bashOutputFilterEnabled:q}),S("claudin_bash_output_filter_setting_changed",{enabled:q})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:W.autoBackgroundAgentsEnabled===!0,type:"boolean",onChange(q){y((X)=>({...X,autoBackgroundAgentsEnabled:q})),D({...h(),autoBackgroundAgentsEnabled:q}),S("claudin_auto_background_agents_setting_changed",{enabled:q})}},{id:"repeatedFailureHintEnabled",label:"Repeated-failure hint",value:W.repeatedFailureHintEnabled!==!1,type:"boolean",onChange(q){y((X)=>({...X,repeatedFailureHintEnabled:q})),D({...h(),repeatedFailureHintEnabled:q}),S("claudin_repeated_failure_hint_setting_changed",{enabled:q})}},{id:"workflowsDefaultBackground",label:"Workflows run in background",value:W.workflowsDefaultBackground===!0,type:"boolean",onChange(q){y((X)=>({...X,workflowsDefaultBackground:q})),D({...h(),workflowsDefaultBackground:q})}},{id:"inlineImagesMode",label:"Inline terminal images",value:W.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(q){let X=q==="auto"||q==="enable"||q==="disable"?q:"auto";y((L)=>({...L,inlineImagesMode:X})),D({...h(),inlineImagesMode:X}),S("claudin_inline_images_setting_changed",{mode:X})}},{id:"spinnerTipsEnabled",label:"Show tips",value:N?.spinnerTipsEnabled??!0,type:"boolean",onChange(q){Z0("localSettings",{spinnerTipsEnabled:q}),A((X)=>({...X,spinnerTipsEnabled:q})),S("tengu_tips_setting_changed",{enabled:q})}},{id:"prefersReducedMotion",label:"Reduce motion",value:N?.prefersReducedMotion??!1,type:"boolean",onChange(q){Z0("localSettings",{prefersReducedMotion:q}),A((X)=>({...X,prefersReducedMotion:q})),G0((X)=>({...X,settings:{...X.settings,prefersReducedMotion:q}})),S("tengu_reduce_motion_setting_changed",{enabled:q})}},{id:"thinkingEnabled",label:"Thinking mode",value:g0??!0,type:"boolean",onChange(q){G0((X)=>({...X,thinkingEnabled:q})),Z0("userSettings",{alwaysThinkingEnabled:q?void 0:!1}),S("tengu_thinking_toggled",{enabled:q})}},...YZ()&&lZ()?[{id:"fastMode",label:`Fast mode (${Sq} only)`,value:!!m0,type:"boolean",onChange(q){if(hq(),Z0("userSettings",{fastMode:q?!0:void 0}),q)G0((X)=>({...X,mainLoopModel:nZ(),mainLoopModelForSession:null,fastMode:!0})),E((X)=>({...X,model:nZ(),"Fast mode":"ON"}));else G0((X)=>({...X,fastMode:!1})),E((X)=>({...X,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:p0,type:"boolean",onChange(q){G0((X)=>({...X,promptSuggestionEnabled:q})),Z0("userSettings",{promptSuggestionEnabled:q?void 0:!1})}},...FY?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:W.fileCheckpointingEnabled,type:"boolean",onChange(q){y((X)=>({...X,fileCheckpointingEnabled:q})),D({...h(),fileCheckpointingEnabled:q}),S("tengu_file_history_snapshots_setting_changed",{enabled:q})}}]:[],{id:"verbose",label:"Verbose output",value:MZ,type:"boolean",onChange:LY},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:W.terminalProgressBarEnabled,type:"boolean",onChange(q){y((X)=>({...X,terminalProgressBarEnabled:q})),D({...h(),terminalProgressBarEnabled:q}),S("tengu_terminal_progress_bar_setting_changed",{enabled:q})}},...Mq("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:W.showStatusInTerminalTab??!1,type:"boolean",onChange(q){y((X)=>({...X,showStatusInTerminalTab:q})),D({...h(),showStatusInTerminalTab:q}),S("tengu_terminal_tab_status_setting_changed",{enabled:q})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:W.showTurnDuration,type:"boolean",onChange(q){y((X)=>({...X,showTurnDuration:q})),D({...h(),showTurnDuration:q}),S("tengu_show_turn_duration_setting_changed",{enabled:q})}},{id:"defaultPermissionMode",label:"Default permission mode",value:N?.permissions?.defaultMode||"default",options:(()=>{let q=["default","plan"],X=Lq,L=["bypassPermissions"];return[...q,...X.filter((R)=>!q.includes(R)&&!L.includes(R))]})(),type:"enum",onChange(q){let X=Uq(q),L=Nq(X)?Pq(X):X,R=Z0("userSettings",{permissions:{...N?.permissions,defaultMode:L}});if(R.error){U0(R.error);return}A((f)=>({...f,permissions:{...f?.permissions,defaultMode:L}})),E((f)=>({...f,defaultPermissionMode:q})),S("tengu_config_changed",{setting:"defaultPermissionMode",value:q})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:N?.useAutoModeDuringPlan??!0,type:"boolean",onChange(q){Z0("userSettings",{useAutoModeDuringPlan:q}),A((X)=>({...X,useAutoModeDuringPlan:q})),G0((X)=>{let L=aZ(X.toolPermissionContext);if(L===X.toolPermissionContext)return X;return{...X,toolPermissionContext:L}}),E((X)=>({...X,"Use auto mode during plan":q}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:W.respectGitignore,type:"boolean",onChange(q){y((X)=>({...X,respectGitignore:q})),D({...h(),respectGitignore:q}),S("tengu_respect_gitignore_setting_changed",{enabled:q})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy)",searchText:"Always copy full response skip /copy picker",value:W.copyFullResponse,type:"boolean",onChange(q){y((X)=>({...X,copyFullResponse:q})),D({...h(),copyFullResponse:q}),S("tengu_config_changed",{setting:"copyFullResponse",value:String(q)})}},...e?[{id:"copyOnSelect",label:"Copy on select",value:W.copyOnSelect??!0,type:"boolean",onChange(q){y((X)=>({...X,copyOnSelect:q})),D({...h(),copyOnSelect:q}),S("tengu_config_changed",{setting:"copyOnSelect",value:String(q)})}}]:[],{id:"terminalRenderer",label:bq()?"Terminal UI renderer (env)":"Terminal UI renderer",searchText:"terminal ui renderer fullscreen flicker-free alt-screen",value:rZ()?"fullscreen":"default",options:["default","fullscreen"],type:"enum",onChange(q){let X=q==="fullscreen";y((L)=>({...L,flickerFreeMode:X})),D({...h(),flickerFreeMode:X}),S("tengu_config_changed",{setting:"flickerFreeMode",value:String(X)})}},{id:"frameRate",label:tq()?`Frame rate (env, ${tZ()}fps)`:`Frame rate (${tZ()}fps)`,searchText:"frame rate fps animation smoothness gpu terminal refresh",value:W.renderFrameRate??"auto",options:[...sq],type:"enum",onChange(q){y((X)=>({...X,renderFrameRate:q})),D({...h(),renderFrameRate:q}),S("tengu_config_changed",{setting:"renderFrameRate",value:String(q)})}},I0?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:N?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:U,type:"managedEnum",onChange:P},{id:"notifChannel",label:"Notifications",value:W.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(q){y((X)=>({...X,preferredNotifChannel:q})),D({...h(),preferredNotifChannel:q})}},{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:W.editorMode==="emacs"?"normal":W.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(q){y((X)=>({...X,editorMode:q})),D({...h(),editorMode:q}),S("tengu_editor_mode_changed",{mode:q,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:W.prStatusFooterEnabled??!0,type:"boolean",onChange(q){y((X)=>{if(X.prStatusFooterEnabled===q)return X;return{...X,prStatusFooterEnabled:q}}),D({...h(),prStatusFooterEnabled:q}),S("tengu_pr_status_footer_setting_changed",{enabled:q})}},{id:"model",label:"Model",value:R0===null?"Default (recommended)":R0,type:"managedEnum",onChange:BJ},...DY?[{id:"diffTool",label:"Diff tool",value:W.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(q){y((X)=>({...X,diffTool:q})),D({...h(),diffTool:q}),S("tengu_diff_tool_changed",{tool:q,source:"config_panel"})}}]:[],...!oZ()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:W.autoConnectIde??!1,type:"boolean",onChange(q){y((X)=>({...X,autoConnectIde:q})),D({...h(),autoConnectIde:q}),S("tengu_auto_connect_ide_changed",{enabled:q,source:"config_panel"})}}]:[],...oZ()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:W.autoInstallIdeExtension??!0,type:"boolean",onChange(q){y((X)=>({...X,autoInstallIdeExtension:q})),D({...h(),autoInstallIdeExtension:q}),S("tengu_auto_install_ide_extension_changed",{enabled:q,source:"config_panel"})}}]:[],...vq()?(()=>{let q=pq();return[{id:"teammateMode",label:q?`Teammate mode [overridden: ${q}]`:"Teammate mode",value:W.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(L){if(L!=="auto"&&L!=="tmux"&&L!=="in-process")return;xq(L),y((R)=>({...R,teammateMode:L})),D({...h(),teammateMode:L}),S("tengu_teammate_mode_changed",{mode:L})}},{id:"teammateDefaultModel",label:"Default teammate model",value:Hq(W.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...iq()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:W.remoteControlAtStartup===void 0?"default":String(W.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(q){if(q==="default")y((L)=>{if(L.remoteControlAtStartup===void 0)return L;let R={...L};return delete R.remoteControlAtStartup,R}),D({...h(),remoteControlAtStartup:void 0});else{let L=q==="true";y((R)=>{if(R.remoteControlAtStartup===L)return R;return{...R,remoteControlAtStartup:L}}),D({...h(),remoteControlAtStartup:L})}let X=Rq();G0((L)=>{if(L.replBridgeEnabled===X&&!L.replBridgeOutboundOnly)return L;return{...L,replBridgeEnabled:X,replBridgeOutboundOnly:!1}})}}]:[],...MY?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(Bq().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let q=w0(),X=q?.transport==="anthropic"?q.apiKey?.trim():void 0;if(!X||uZ())return[];return[{id:"apiKey",label:z(K,{children:["Use custom API key:"," ",G(K,{bold:!0,children:n0(X)})]}),searchText:"Use custom API key",value:Boolean(W.customApiKeyResponses?.approved?.includes(n0(X))),type:"boolean",onChange(L){y((R)=>{let f={...R};if(!f.customApiKeyResponses)f.customApiKeyResponses={approved:[],rejected:[]};if(!f.customApiKeyResponses.approved)f.customApiKeyResponses={...f.customApiKeyResponses,approved:[]};if(!f.customApiKeyResponses.rejected)f.customApiKeyResponses={...f.customApiKeyResponses,rejected:[]};{let O0=n0(X);if(L)f.customApiKeyResponses={...f.customApiKeyResponses,approved:[...(f.customApiKeyResponses.approved??[]).filter((D0)=>D0!==O0),O0],rejected:(f.customApiKeyResponses.rejected??[]).filter((D0)=>D0!==O0)};else f.customApiKeyResponses={...f.customApiKeyResponses,approved:(f.customApiKeyResponses.approved??[]).filter((D0)=>D0!==O0),rejected:[...(f.customApiKeyResponses.rejected??[]).filter((D0)=>D0!==O0),O0]}}return f}),D(h())}}]})()],kJ=l.useMemo(()=>{if(!k0)return wZ;let q=k0.toLowerCase();return wZ.filter((X)=>{if(X.id.toLowerCase().includes(q))return!0;return("searchText"in X?X.searchText:X.label).toLowerCase().includes(q)})},[wZ,k0]),s=l.useMemo(()=>Vq(kJ,{grouped:k0===""}),[kJ,k0]),IJ=xZ(s.slice(0,o)),EJ=xZ(s.slice(o+p));l.useEffect(()=>{if($>=s.length){let q=Math.max(0,pZ(s));Q0(q),Y0(Math.max(0,q-p+1));return}if(!f0(s[$])){let q=Math.max(0,qZ(s,$,1));Q0(q),Y0((X)=>q>=X+p?q-p+1:X);return}Y0((q)=>{if($<q)return $;if($>=q+p)return $-p+1;return q})},[s,$,p]);let jZ=v.useCallback((q)=>{Y0((X)=>{if(q<X)return q;if(q>=X+p)return q-p+1;return X})},[p]),NY=v.useCallback(()=>{if(i!==null)return;let q=Object.entries(t0).map(([D0,SJ])=>{return S("tengu_config_changed",{key:D0,value:SJ}),`Set ${D0} to ${K0.bold(SJ)}`}),X=w0(),L=X?.transport==="anthropic"?X.apiKey?.trim():void 0,R=uZ()?void 0:L,f=Boolean(R&&M.current.customApiKeyResponses?.approved?.includes(n0(R))),O0=Boolean(R&&W.customApiKeyResponses?.approved?.includes(n0(R)));if(f!==O0)q.push(`${O0?"Enabled":"Disabled"} custom API key`),S("tengu_config_changed",{key:"env.ANTHROPIC_API_KEY",value:O0});if(W.theme!==M.current.theme)q.push(`Set theme to ${K0.bold(W.theme)}`);if(W.preferredNotifChannel!==M.current.preferredNotifChannel)q.push(`Set notifications to ${K0.bold(W.preferredNotifChannel)}`);if(k!==t.current)q.push(`Set output style to ${K0.bold(k)}`);if(w!==m.current)q.push(`Set response language to ${K0.bold(w??"Default (English)")}`);if(W.editorMode!==M.current.editorMode)q.push(`Set editor mode to ${K0.bold(W.editorMode||"emacs")}`);if(W.diffTool!==M.current.diffTool)q.push(`Set diff tool to ${K0.bold(W.diffTool)}`);if(W.autoConnectIde!==M.current.autoConnectIde)q.push(`${W.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(W.autoInstallIdeExtension!==M.current.autoInstallIdeExtension)q.push(`${W.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(W.autoCompactEnabled!==M.current.autoCompactEnabled)q.push(`${W.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(W.thinkingHistoryRedactionEnabled!==M.current.thinkingHistoryRedactionEnabled)q.push(`${W.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(W.narrationHistoryRedactionEnabled!==M.current.narrationHistoryRedactionEnabled)q.push(`${W.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(W.toolResultSummarizerEnabled!==M.current.toolResultSummarizerEnabled)q.push(`${W.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(W.autoBackgroundAgentsEnabled!==M.current.autoBackgroundAgentsEnabled)q.push(`${W.autoBackgroundAgentsEnabled===!0?"Enabled":"Disabled"} auto-background agents`);if(W.workflowsDefaultBackground!==M.current.workflowsDefaultBackground)q.push(`${W.workflowsDefaultBackground===!0?"Enabled":"Disabled"} workflows run in background`);if(W.bashOutputFilterEnabled!==M.current.bashOutputFilterEnabled)q.push(`${W.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(W.repeatedFailureHintEnabled!==M.current.repeatedFailureHintEnabled)q.push(`${W.repeatedFailureHintEnabled!==!1?"Enabled":"Disabled"} repeated-failure hint`);if(W.respectGitignore!==M.current.respectGitignore)q.push(`${W.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(W.copyFullResponse!==M.current.copyFullResponse)q.push(`${W.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(W.copyOnSelect!==M.current.copyOnSelect)q.push(`${W.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(W.flickerFreeMode!==M.current.flickerFreeMode)q.push(`Set terminal UI renderer to ${K0.bold(W.flickerFreeMode?"fullscreen":"default")}`);if(W.renderFrameRate!==M.current.renderFrameRate)q.push(`Set frame rate to ${K0.bold(W.renderFrameRate??"auto")} (applies on restart)`);if(W.terminalProgressBarEnabled!==M.current.terminalProgressBarEnabled)q.push(`${W.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(W.showStatusInTerminalTab!==M.current.showStatusInTerminalTab)q.push(`${W.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(W.showTurnDuration!==M.current.showTurnDuration)q.push(`${W.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(W.remoteControlAtStartup!==M.current.remoteControlAtStartup){let D0=W.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${W.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;q.push(D0)}if(N?.autoUpdatesChannel!==I.current?.autoUpdatesChannel)q.push(`Set auto-update channel to ${K0.bold(N?.autoUpdatesChannel??"latest")}`);if(q.length>0)J(q.join(`
|
|
2
|
-
`));else J("Config dialog dismissed",{display:"system"})},[i,t0,W,R0,k,w,N?.autoUpdatesChannel,YZ()?N?.fastMode:void 0,J]),CJ=v.useCallback(()=>{if(U!==W0.current)P(W0.current);y(()=>M.current);let q=a;Z0("localSettings",{spinnerTipsEnabled:q?.spinnerTipsEnabled,prefersReducedMotion:q?.prefersReducedMotion,defaultView:q?.defaultView,outputStyle:q?.outputStyle});let X=V0;Z0("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 L=B0;if(G0((R)=>({...R,mainLoopModel:L.mainLoopModel,mainLoopModelForSession:L.mainLoopModelForSession,verbose:L.verbose,thinkingEnabled:L.thinkingEnabled,fastMode:L.fastMode,promptSuggestionEnabled:L.promptSuggestionEnabled,isBriefOnly:L.isBriefOnly,replBridgeEnabled:L.replBridgeEnabled,replBridgeOutboundOnly:L.replBridgeOutboundOnly,settings:L.settings,toolPermissionContext:aZ(R.toolPermissionContext)})),cZ()!==bZ)zq(bZ)},[U,P,a,V0,B0,bZ,G0]),PY=v.useCallback(()=>{if(i!==null)return;if(M0.current)CJ();J("Config dialog dismissed",{display:"system"})},[i,CJ,J]);_("confirm:no",PY,{context:"Settings",isActive:i===null&&!n&&!H}),_("settings:close",NY,{context:"Settings",isActive:i===null&&!n&&!H});let _Z=v.useCallback(()=>{let q=s[$];if(!f0(q))return;let X=q.item;if(!X.onChange)return;if(X.type==="boolean"){if(M0.current=!0,X.onChange(!X.value),X.id==="thinkingEnabled"){if(!X.value===b.current)ZZ(!1);else if(Z.messages.some((f)=>f.type==="assistant"))ZZ(!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(I0){g("EnableAutoUpdates"),Q(!0);return}if((N?.autoUpdatesChannel??"latest")==="latest")g("ChannelDowngrade"),Q(!0);else M0.current=!0,Z0("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),A((R)=>({...R,autoUpdatesChannel:"latest",minimumVersion:void 0})),S("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(X.type==="enum"){M0.current=!0;let R=(X.options.indexOf(X.value)+1)%X.options.length;X.onChange(X.options[R]);return}},[I0,s,$,N?.autoUpdatesChannel,Q]),NZ=(q)=>{ZZ(!1);let X=qZ(s,$,q);if(X<0)return;Q0(X),jZ(X)};jq({"select:previous":()=>{let q=QZ(s);if(q<0||$<=q)ZZ(!1),z0(!0),Y0(0);else NZ(-1)},"select:next":()=>NZ(1),"scroll:lineUp":()=>NZ(-1),"scroll:lineDown":()=>NZ(1),"select:accept":_Z,"settings:search":()=>{z0(!0),LZ("")}},{context:"Settings",isActive:i===null&&!n&&!H});let UY=v.useCallback((q)=>{if(i!==null)return;if(H)return;if(n){if(q.key==="escape"){if(q.preventDefault(),k0.length>0)LZ("");else z0(!1);return}if(q.key==="return"||q.key==="down"||q.key==="wheeldown")q.preventDefault(),z0(!1),Q0(Math.max(0,QZ(s))),Y0(0);return}if(q.key==="left"||q.key==="right"||q.key==="tab"){q.preventDefault(),_Z();return}if(q.key==="["||q.key==="]"){q.preventDefault();let X=Kq(s,$,q.key==="["?-1:1);if(X>=0)ZZ(!1),Q0(X),jZ(X);return}if(q.ctrl||q.meta)return;if(q.key==="j"||q.key==="k"||q.key==="/")return;if(q.key.length===1&&q.key!==" ")q.preventDefault(),z0(!0),LZ(q.key)},[i,H,n,k0,LZ,_Z,s,$,jZ]);return G(B,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:UY,children:i==="Theme"?z(H0,{children:[G(lq,{onThemeSelect:(q)=>{M0.current=!0,P(q),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),G(B,{children:G(K,{dimColor:!0,italic:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"select"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):i==="Model"?z(H0,{children:[G(sZ,{initial:R0,onSelect:(q,X)=>{M0.current=!0,BJ(q),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},showFastModeNotice:YZ()?m0&&fq(R0)&&lZ():!1}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="TeammateModel"?z(H0,{children:[G(sZ,{initial:W.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(q,X)=>{if(g(null),Q(!1),W.teammateDefaultModel===void 0&&q===null)return;M0.current=!0,y((L)=>L.teammateDefaultModel===q?L:{...L,teammateDefaultModel:q}),D({...h(),teammateDefaultModel:q}),E((L)=>({...L,teammateDefaultModel:Hq(q)})),S("tengu_teammate_default_model_changed",{model:q})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="ExternalIncludes"?z(H0,{children:[G(rq,{onDone:()=>{g(null),Q(!1)},externalIncludes:QQ(RJ)}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):i==="OutputStyle"?z(H0,{children:[G(Jq,{initialStyle:k,onComplete:(q)=>{M0.current=!0,j(q??BZ),g(null),Q(!1),Z0("localSettings",{outputStyle:q}),S("tengu_output_style_changed",{style:q??BZ,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="Language"?z(H0,{children:[G(Xq,{initialLanguage:w,onComplete:(q)=>{M0.current=!0,d(q),g(null),Q(!1),Z0("userSettings",{language:q}),S("tengu_language_changed",{language:q??"default",source:"config_panel"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):i==="EnableAutoUpdates"?G(d0,{title:"Enable Auto-Updates",onCancel:()=>{g(null),Q(!1)},hideBorder:!0,hideInputGuide:!0,children:I0?.type!=="config"?z(H0,{children:[G(K,{children:I0?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),I0?.type==="env"&&z(K,{dimColor:!0,children:["Unset ",I0.envVar," to re-enable auto-updates."]})]}):G(i0,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(q)=>{M0.current=!0,g(null),Q(!1),y((X)=>({...X,autoUpdates:!0})),D({...h(),autoUpdates:!0}),Z0("userSettings",{autoUpdatesChannel:q,minimumVersion:void 0}),A((X)=>({...X,autoUpdatesChannel:q,minimumVersion:void 0})),S("tengu_autoupdate_enabled",{channel:q})}})}):i==="ChannelDowngrade"?G(rJ,{currentVersion:"99.0.0",onChoice:(q)=>{if(g(null),Q(!1),q==="cancel")return;M0.current=!0;let X={autoUpdatesChannel:"stable"};if(q==="stay")X.minimumVersion="99.0.0";Z0("userSettings",X),A((L)=>({...L,...X})),S("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:q==="stay"})}}):z(B,{flexDirection:"column",gap:1,marginY:F?void 0:1,children:[G(oq,{query:k0,isFocused:n&&!H,isTerminalFocused:$0,cursorOffset:OY,placeholder:"Search settings…"}),G(B,{flexDirection:"column",children:s.length===0?z(K,{dimColor:!0,italic:!0,children:['No settings match "',k0,'"']}):z(H0,{children:[IJ>0&&z(K,{dimColor:!0,children:[C0.arrowUp," ",IJ," more above"]}),s.slice(o,o+p).map((q,X)=>{let L=o+X;if(q.kind==="spacer")return G(K,{children:" "},q.id);if(q.kind==="header")return z(K,{dimColor:!0,children:[" ",q.label]},q.id);let R=q.item,f=L===$&&!H&&!n;return G(l.Fragment,{children:z(B,{children:[G(B,{width:FZ,flexShrink:0,paddingRight:1,children:z(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:[f?C0.pointer:" "," ",R.label]})}),G(B,{children:R.type==="boolean"?z(H0,{children:[G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:R.value.toString()}),zY&&R.id==="thinkingEnabled"&&z(K,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):R.id==="theme"?G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:YX[R.value.toString()]??R.value.toString()}):R.id==="notifChannel"?G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:G(XX,{value:R.value.toString()})}):R.id==="defaultPermissionMode"?G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:Aq(R.value)}):R.id==="autoUpdatesChannel"&&I0?z(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:["disabled"," ",z(K,{dimColor:!0,children:["(",kq(I0),")"]})]}):G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:R.value.toString()})},f?"selected":"unselected")]})},R.id)}),EJ>0&&z(K,{dimColor:!0,children:[C0.arrowDown," ",EJ," more below"]})]})}),H?G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"←/→ tab",action:"switch"}),G(L0,{shortcut:"↓",action:"return"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):n?G(K,{dimColor:!0,children:z(J0,{children:[G(K,{children:"Type to filter"}),G(L0,{shortcut:"Enter/↓",action:"select"}),G(L0,{shortcut:"↑",action:"tabs"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):G(K,{dimColor:!0,children:z(J0,{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 Hq(J){if(J===void 0)return kZ(cq());if(J===null)return"Default (leader's model)";return kZ(J)}function XX(J){let Z=eq.c(4),{value:Q}=J;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 eq,l,v,YX;var JQ=r(()=>{S0();l0();vZ();Eq();xY();Cq();Eq();Fq();mY();oY();IZ();vY();aY();sY();TJ();tY();Tq();eY();ZX();oJ();gZ();lJ();qq();Gq();GX();dY();c0();EZ();dq();UZ();JX();iY();pY();hJ();eJ();Dq();gY();lY();nY();rY();qX();XZ();cY();uY();QX();Wq();x();eq=u(b0(),1),l=u(F0(),1),v=u(F0(),1);YX={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 VZ(J){return typeof J==="object"&&J!==null}function N0(J){return typeof J==="string"&&J.trim()?J.trim():void 0}function r0(J){return typeof J==="number"&&Number.isFinite(J)?J:void 0}function eZ(J){return typeof J==="boolean"?J:void 0}function ZJ(J){let Z=r0(J);if(Z===void 0)return;return new Date(Z*1000).toISOString()}function CZ(J){if(!VZ(J))return;let Z=r0(J.used_percent)??r0(J.usedPercent);if(Z===void 0)return;let Q=r0(J.window_minutes)??r0(J.windowDurationMins)??(()=>{let V=r0(J.limit_window_seconds);return V===void 0?void 0:Math.round(V/60)})(),Y=ZJ(J.resets_at)??ZJ(J.resetsAt)??ZJ(J.reset_at);return{usedPercent:Z,windowMinutes:Q,resetsAt:Y}}function DQ(J){if(!VZ(J))return;let Z=eZ(J.has_credits)??eZ(J.hasCredits)??!1,Q=eZ(J.unlimited)??!1,Y=N0(J.balance);if(!Z&&!Q&&!Y)return;return{hasCredits:Z,unlimited:Q,balance:Y}}function GZ(J,Z){if(!VZ(J))return;let Q=N0(J.limit_name)??N0(J.limitName)??N0(J.limit_id)??N0(J.limitId)??Z,Y=CZ(J.primary)??CZ(J.primary_window),V=CZ(J.secondary)??CZ(J.secondary_window),H=DQ(J.credits);if(!Y&&!V&&!H)return;return{limitName:Q,primary:Y,secondary:V,credits:H}}function JJ(J,Z="codex"){if(Array.isArray(J))return J.map((Q,Y)=>GZ(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!VZ(J))return[];return Object.entries(J).map(([Q,Y])=>GZ(Y,Q)).filter((Q)=>Q!==void 0)}function WX(J){let Z=N0(J.plan_type)??N0(J.planType),Q=[],Y=DQ(J.credits),V=GZ(J.rate_limit,"codex");if(V)V.credits??=Y,Q.push(V);else if(Y)Q.push({limitName:"codex",credits:Y});let H=GZ(J.code_review_rate_limit,"code review");if(H)Q.push(H);return Q.push(...JJ(J.additional_rate_limits??J.additionalRateLimits,"additional")),{planType:Z,snapshots:Q}}function HX(J){if(Array.isArray(J))return{snapshots:JJ(J)};if(!VZ(J))return{snapshots:[]};if("rate_limit"in J||"code_review_rate_limit"in J||"additional_rate_limits"in J||"credits"in J)return WX(J);let Z=J.rate_limits??J.rateLimits??J.rate_limits_by_limit_id??J.rateLimitsByLimitId;if(Z!==void 0)return{planType:N0(J.plan_type)??N0(J.planType),snapshots:JJ(Z)};let Q=GZ(J,"codex");return{planType:N0(J.plan_type)??N0(J.planType),snapshots:Q?[Q]:[]}}function o0(J){if(!J)return J;return J[0].toUpperCase()+J.slice(1)}function XQ(J,Z){if(J===void 0||J<=0)return Z;if(J===10080)return"weekly";if(J%1440===0)return`${J/1440}d`;if(J%60===0)return`${J/60}h`;return`${J}m`}function zX(J){let Z=J?.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 OX(J){if(!J?.hasCredits)return;if(J.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let Z=zX(J.balance);if(!Z)return;return{kind:"text",label:"Credits",value:`${Z} credits`}}function FQ(J){let Z=[];for(let Q of J){let Y=Q.limitName.trim()||"codex",V=OX(Q.credits);if(!(Q.primary!==void 0||Q.secondary!==void 0||V!==void 0))continue;let O=Y.toLowerCase()!=="codex",F=Number(Q.primary!==void 0)+Number(Q.secondary!==void 0),P=O&&F===1;if(O&&!P)Z.push({kind:"text",label:`${o0(Y)} limit`,value:""});if(Q.primary){let U=o0(XQ(Q.primary.windowMinutes,"5h"));Z.push({kind:"window",label:P?`${o0(Y)} ${U} limit`:`${U} limit`,usedPercent:Q.primary.usedPercent,resetsAt:Q.primary.resetsAt})}if(Q.secondary){let U=o0(XQ(Q.secondary.windowMinutes,"weekly"));Z.push({kind:"window",label:P?`${o0(Y)} ${U} limit`:`${U} limit`,usedPercent:Q.secondary.usedPercent,resetsAt:Q.secondary.resetsAt})}if(V)Z.push(V)}return Z}function MQ(J){if(!J)return;return J.split(/[_\s-]+/).filter(Boolean).map((Z)=>o0(Z.toLowerCase())).join(" ")}function DX(J=WQ){return new URL("/backend-api/wham/usage",J).toString()}async function LQ(){let J=await KQ().catch(async(V)=>{return j0(`[codex] access token refresh failed before usage fetch: ${V instanceof Error?V.message:String(V)}`,{level:"warn"}),{refreshed:!1,credentials:await VQ()}}),Z=zQ();if(!HQ(Z.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let Q=OQ({storedCredentials:J.credentials});if(!Q.apiKey){let V=GQ()?"":", choose Codex OAuth in /provider",H=Q.authPath?`${V} or place a Codex auth.json at ${Q.authPath}`:V;throw Error(`Codex auth is required. Set CODEX_API_KEY${H}.`)}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(DX(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 HX(await Y.json())}var NQ=r(()=>{VX();qJ();Dq();KX()});function FX({label:J,usedPercent:Z,resetsAt:Q,maxWidth:Y}){let V=Math.max(0,Math.min(100,Z)),H=`${Math.floor(V)}% used`,O=Q?`Resets ${SZ(Q,!0,!0)}`:void 0;if(Y>=62)return z(B,{flexDirection:"column",children:[G(K,{bold:!0,children:J}),z(B,{flexDirection:"row",gap:1,children:[G(s0,{ratio:V/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:H})]}),O?G(K,{dimColor:!0,children:O}):null]});return z(B,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:J}),O?z(H0,{children:[G(K,{children:" "}),z(K,{dimColor:!0,children:["· ",O]})]}):null]}),G(s0,{ratio:V/100,width:Y,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:H})]})}function MX({label:J,value:Z}){if(!Z)return G(K,{bold:!0,children:J});return z(K,{children:[G(K,{bold:!0,children:J}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function UQ(){let[J,Z]=a0.useState(null),[Q,Y]=a0.useState(null),[V,H]=a0.useState(!0),{columns:O}=A0(),F=O-2,P=Math.min(F,80),U=PQ.useCallback(async()=>{H(!0),Y(null);try{Z(await LQ())}catch(M){U0(M),Y(M instanceof Error?M.message:"Failed to load Codex usage")}finally{H(!1)}},[]);if(a0.useEffect(()=>{U()},[U]),_("settings:retry",()=>{U()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(B,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(J0,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!J)return z(B,{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 W=FQ(J.snapshots),D=MQ(J.planType);return z(B,{flexDirection:"column",gap:1,width:"100%",children:[D?z(K,{dimColor:!0,children:["Plan: ",D]}):null,W.length===0?G(K,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,W.map((M,N)=>M.kind==="window"?G(FX,{label:M.label,usedPercent:M.usedPercent,resetsAt:M.resetsAt,maxWidth:P},`${M.label}-${N}`):G(MX,{label:M.label,value:M.value},`${M.label}-${N}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var PQ,a0;var AQ=r(()=>{XZ();S0();l0();NQ();QJ();IZ();c0();EZ();YJ();x();PQ=u(F0(),1),a0=u(F0(),1)});var KZ="https://api.minimax.io/v1",WZ="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var XJ=()=>{};function h0(J){return typeof J==="object"&&J!==null}function q0(J){return typeof J==="string"&&J.trim()?J.trim():void 0}function VJ(J){if(typeof J==="number"&&Number.isFinite(J))return J;if(typeof J==="string"&&J.trim()){let Z=Number.parseFloat(J);if(Number.isFinite(Z))return Z}return}function fZ(J){return Math.max(0,Math.min(100,Math.round(J)))}function LX(J){if(typeof J==="string"){let Y=Date.parse(J);return Number.isNaN(Y)?J:new Date(Y).toISOString()}let Z=VJ(J);if(Z===void 0)return;let Q=Z>1000000000000?Z:Z*1000;return new Date(Q).toISOString()}function NX(J,Z){let Q=VJ(J);if(/remains?_time/i.test(Z)&&Q!==void 0){let Y=Q>604800?Q:Q*1000;return new Date(Date.now()+Y).toISOString()}return LX(J)}function HZ(J,Z){for(let Q of Z){let Y=VJ(J[Q]);if(Y!==void 0)return Y}return}function PX(J,Z){for(let Q of Z)if(J[Q]!==void 0)return NX(J[Q],Q);return}function zZ(J,Z){return Z.some((Q)=>J[Q]!==void 0)}function kQ(J){return J?J[0].toUpperCase()+J.slice(1):J}function UX(J){if(!J)return"MiniMax";let Z=J.trim();if(!Z)return"MiniMax";if(/[A-Z]/.test(Z))return Z;return Z.split(/[_\s-]+/).filter(Boolean).map((Q)=>kQ(Q.toLowerCase())).join(" ")}function AX(J){if(!J)return;return J.split(/[_\s-]+/).filter(Boolean).map((Z)=>kQ(Z.toLowerCase())).join(" ")}function IQ(J,Z){let Q=HZ(J,Z.percentKeys),Y=HZ(J,Z.remainingPercentKeys),V=HZ(J,Z.totalKeys),H=HZ(J,Z.remainingKeys),O=HZ(J,Z.usedKeys),F=V!==void 0&&O!==void 0?V-O:H,P;if(V!==void 0&&V>0&&O!==void 0)P=fZ(O/V*100);else if(V!==void 0&&V>0&&H!==void 0)P=fZ((V-H)/V*100);else if(Q!==void 0)P=fZ(Q);else if(Y!==void 0)P=fZ(100-Y);if(P===void 0)return;return{label:Z.label,usedPercent:P,remaining:F,total:V,resetsAt:PX(J,Z.resetKeys)}}function RX(J){let Z=q0(J.label)??q0(J.name)??q0(J.window_name)??q0(J.windowName)??"Limit";return IQ(J,{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 kX(J){if(zZ(J,BX))return!0;return EQ.some((Z)=>zZ(J,Z.totalKeys)||zZ(J,Z.remainingKeys)||zZ(J,Z.usedKeys)||zZ(J,Z.percentKeys))}function GJ(J,Z){if(!h0(J))return;let Q=EQ.map((V)=>IQ(J,V)).filter((V)=>V!==void 0);if(Q.length===0){let V=RX(J);if(V)Q.push(V)}if(Q.length===0)return;return{limitName:q0(J.limit_name)??q0(J.limitName)??q0(J.model_name)??q0(J.modelName)??q0(J.name)??Z,windows:Q}}function RQ(J,Z="MiniMax"){if(Array.isArray(J))return J.map((Q,Y)=>GJ(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!h0(J))return[];if(kX(J)){let Q=GJ(J,Z);return Q?[Q]:[]}return Object.entries(J).map(([Q,Y])=>GJ(Y,Q)).filter((Q)=>Q!==void 0)}function BQ(J=WZ,Z){return{availability:"unknown",planType:Z,snapshots:[],message:J}}function KJ(J){if(!h0(J))return BQ();let Z=AX(q0(J.plan_type)??q0(J.planType)??q0(J.subscription_type)??q0(J.subscriptionType)??q0(J.plan_name)??q0(J.planName)),Y=[J.data,J.result,J.model_remains,J.modelRemains,J.remains,J.usage,J.quotas,J.models,h0(J.data)?J.data.model_remains:void 0,h0(J.data)?J.data.modelRemains:void 0,h0(J.data)?J.data.models:void 0,h0(J.data)?J.data.quotas:void 0,h0(J.data)?J.data.remains:void 0].flatMap((H)=>RQ(H)).filter((H,O,F)=>{let P=`${H.limitName}:${H.windows.map((U)=>U.label).join("|")}`;return F.findIndex((U)=>`${U.limitName}:${U.windows.map((W)=>W.label).join("|")}`===P)===O});if(Y.length>0)return{availability:"available",planType:Z,snapshots:Y};let V=RQ(J);if(V.length>0)return{availability:"available",planType:Z,snapshots:V};return BQ(void 0,Z)}function IX(J){if(J.remaining===void 0||J.total===void 0||J.total<=0)return;return`${J.remaining}/${J.total} remaining`}function WJ(J){let Z=[];for(let Q of J){let Y=UX(Q.limitName),V=Y.toLowerCase()!=="minimax",H=V&&Q.windows.length===1;if(V&&!H)Z.push({kind:"text",label:`${Y} quota`,value:""});for(let O of Q.windows)Z.push({kind:"window",label:H?`${Y} ${O.label}`:O.label,usedPercent:O.usedPercent,resetsAt:O.resetsAt,extraSubtext:IX(O)})}return Z}var EQ,BX;var HJ=r(()=>{XJ();EQ=[{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"]}],BX=["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 CX(J){return J.replace(/\/+$/,"")}function fQ(J=w0()?.baseUrl??KZ){let Z=J.trim();return Z?CX(Z):KZ}function SX(J){let Z=J??w0()?.baseUrl;if(!Z?.trim())return{baseUrl:KZ,usedDefault:!0};return{baseUrl:fQ(Z),usedDefault:!1}}function CQ(J){return{availability:"unknown",snapshots:[],message:J}}function hQ(J){let{baseUrl:Z,usedDefault:Q}=SX(J);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(`${KZ}/`);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 zJ(){let J=w0()?.apiKey;if(!J)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let Z=hQ(),Q=[],Y=null;for(let V of Z){let H;try{H=await fetch(V,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,"Content-Type":"application/json","User-Agent":SQ()},signal:AbortSignal.timeout(5000)})}catch(F){j0(`[minimax] usage request failed for ${V}: ${F instanceof Error?F.message:String(F)}`,{level:"warn"}),Y=F instanceof Error?F:Error(String(F));continue}if(!H.ok){let F=await H.text().catch(()=>"");if([400,401,403,404].includes(H.status)){Q.push({status:H.status,body:F});continue}Y=Error(`MiniMax usage error ${H.status}: ${F||"unknown error"}`);continue}let O=KJ(await H.json());if(O.availability==="available")return O}if(Q.length>0){let V=Q[Q.length-1];return j0(`[minimax] usage endpoint returned non-fatal status ${V.status}: ${V.body}`,{level:"warn"}),CQ(WZ)}if(Y)throw Y;return CQ(WZ)}var yQ=r(()=>{Cq();qJ();EX();XJ();HJ()});var TQ=r(()=>{HJ();yQ()});function yX(J){let Z=Math.max(1,Math.ceil(J/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 TX(J,Z){if(!J)return;let Q=Date.parse(J);if(!Number.isFinite(Q))return;let Y=Q-Z;if(Y<=0)return"Resetting now";return`Resets in ${yX(Y)}`}function $X({label:J,usedPercent:Z,resetsAt:Q,extraSubtext:Y,maxWidth:V,nowMs:H}){let O=Math.max(0,Math.min(100,Z)),F=`${Math.floor(O)}% used`,P=TX(Q,H),U=[F,Y].filter((W)=>Boolean(W));return z(B,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:J}),P?z(K,{dimColor:!0,children:[" · ",P]}):null]}),z(B,{flexDirection:"row",gap:1,children:[G(s0,{ratio:O/100,width:Math.min(hX,Math.max(1,V)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),U.length>0?G(K,{dimColor:!0,children:U.join(" · ")}):null]})]})}function bX({label:J,value:Z}){if(!Z)return G(K,{bold:!0,children:J});return z(K,{children:[G(K,{bold:!0,children:J}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function bQ(){let[J,Z]=y0.useState(null),[Q,Y]=y0.useState(null),[V,H]=y0.useState(!0),[O,F]=y0.useState(()=>Date.now()),{columns:P}=A0(),U=P-2,W=Math.min(U,80),D=$Q.useCallback(async()=>{H(!0),Y(null);try{Z(await zJ())}catch(N){U0(N),Y(N instanceof Error?N.message:"Failed to load MiniMax usage")}finally{H(!1)}},[]);if(y0.useEffect(()=>{D()},[D]),y0.useEffect(()=>{let N=setInterval(()=>{F(Date.now())},fX);return()=>clearInterval(N)},[]),_("settings:retry",()=>{D()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(B,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(J0,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!J)return z(B,{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 M=J.availability==="available"?WJ(J.snapshots):[];return z(B,{flexDirection:"column",gap:1,width:"100%",children:[J.planType?z(K,{dimColor:!0,children:["Plan: ",J.planType]}):null,J.availability==="unknown"?G(K,{dimColor:!0,children:J.message}):M.length===0?G(K,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,M.map((N,A)=>N.kind==="window"?G($X,{label:N.label,usedPercent:N.usedPercent,resetsAt:N.resetsAt,extraSubtext:N.extraSubtext,maxWidth:W,nowMs:O},`${N.label}-${A}`):G(bX,{label:N.label,value:N.value},`${N.label}-${A}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var $Q,y0,fX=30000,hX=18;var wQ=r(()=>{XZ();S0();l0();TQ();IZ();c0();EZ();YJ();x();$Q=u(F0(),1),y0=u(F0(),1)});function jQ({providerLabel:J}){return z(B,{flexDirection:"column",gap:1,children:[z(K,{dimColor:!0,children:["Usage details are not currently available for ",J,"."]}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var _Q=r(()=>{S0();c0();x()});import{readdir as pQ,readFile as xQ}from"fs/promises";import{join as OJ}from"path";async function vQ(J,Z){let Q;try{Q=await xQ(J,"utf-8")}catch(V){if(!DJ(V))j0(`usageContribution: skip ${J}: ${String(V)}`);return 0}if(Q.length>FJ)return 0;let Y=0;for(let V of Q.split(`
|
|
3
|
-
`)){if(!V)continue;let H;try{H=JSON.parse(V)}catch{continue}if(H.type!=="assistant")continue;if(!H.timestamp)continue;let O=Date.parse(H.timestamp);if(Number.isNaN(O)||O<Z)continue;let F=H.message?.usage;if(!F)continue;Y+=(F.input_tokens??0)+(F.output_tokens??0)+(F.cache_creation_input_tokens??0)+(F.cache_read_input_tokens??0)}return Y}async function cQ(J){let Z;try{Z=await pQ(J,{withFileTypes:!0})}catch(Y){if(DJ(Y))return[];throw Y}let Q=[];for(let Y of Z){let V=OJ(J,Y.name);if(Y.isDirectory())Q.push(...await cQ(V));else if(Y.isFile()&&xX.test(Y.name))Q.push(V)}return Q}async function cX(J){let Z=J.replace(/\.jsonl$/,".meta.json");try{let Q=await xQ(Z,"utf-8");return JSON.parse(Q).agentType||"subagent"}catch{return"subagent"}}async function MJ(J){let Z=Date.now()-vX[J],Q={window:J,totalTokens:0,sessionCount:0,subagentHeavyPct:0,agentBreakdown:[]},Y=gQ(),V;try{V=await pQ(Y,{withFileTypes:!0})}catch{return Q}let H=V.filter((D)=>D.isDirectory()).map((D)=>OJ(Y,D.name)),O=0,F=0,P=0,U=new Map;for(let D=0;D<H.length;D++){let M=H[D],N=await mQ(M);for(let[A,I]of N){if(I.mtime<Z)continue;let k=I.size>FJ?0:await vQ(I.path,Z),j=0,t=OJ(M,A,"subagents");for(let d of await cQ(t)){let m=await vQ(d,Z);if(m<=0)continue;j+=m;let $=await cX(d);U.set($,(U.get($)??0)+m)}let w=k+j;if(w<=0)continue;if(P++,O+=w,j/w>gX)F+=w}if(D%10===9)await new Promise((A)=>setImmediate(A))}if(O===0)return Q;let W=[...U.entries()].map(([D,M])=>({agentType:D,tokens:M,pct:M/O*100})).filter((D)=>D.tokens/O>=mX).sort((D,M)=>M.tokens-D.tokens).slice(0,pX);return{window:J,totalTokens:O,sessionCount:P,subagentHeavyPct:F/O*100,agentBreakdown:W}}var vX,gX=0.5,mX=0.05,pX=5,xX;var uQ=r(()=>{qJ();wX();jX();_X();vX={day:86400000,week:604800000},xX=/^agent-.*\.jsonl$/});function dQ(J){let{title:Z,totalCost:Q,apiDuration:Y,wallDuration:V,linesAdded:H,linesRemoved:O,modelUsage:F,unknownCost:P,bytesSaved:U}=J,W=Object.entries(F);if(Q===0&&W.length===0&&H===0&&O===0)return null;let D={};for(let[N,A]of W){let I=NJ(N);if(!D[I])D[I]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let k=D[I];k.inputTokens+=A.inputTokens,k.outputTokens+=A.outputTokens,k.cacheReadInputTokens+=A.cacheReadInputTokens,k.cacheCreationInputTokens+=A.cacheCreationInputTokens,k.webSearchRequests+=A.webSearchRequests,k.costUSD+=A.costUSD}let M=Object.entries(D);return z(B,{flexDirection:"column",children:[G(K,{bold:!0,children:Z}),z(K,{children:[G(K,{children:"Total cost: "}),G(K,{children:_0(Q)}),P&&G(K,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),z(K,{children:["Total duration (API): ",OZ(Y)]}),z(K,{children:["Total duration (wall): ",OZ(V)]}),z(K,{children:["Total code changes: ",H," ",H===1?"line":"lines"," added, ",O," ",O===1?"line":"lines"," removed"]}),U!==void 0&&U>0&&z(K,{children:["Context tokens saved: ~",tQ(U/qY)," tokens"]}),M.length>0&&G(K,{children:"Usage by model:"}),M.map(([N,A])=>{let I=`${P0(A.inputTokens)} input, ${P0(A.outputTokens)} output`;if(A.cacheReadInputTokens>0)I+=`, ${P0(A.cacheReadInputTokens)} cache read`;if(A.cacheCreationInputTokens>0)I+=`, ${P0(A.cacheCreationInputTokens)} cache write`;if(A.webSearchRequests>0)I+=`, ${P0(A.webSearchRequests)} web search`;return I+=` (${_0(A.costUSD)})`,z(K,{children:[`${N}:`.padStart(21)," ",I]},N)})]})}function iQ(J={}){let Z=J.view??"global",[,Q]=c.useReducer((O)=>O+1,0);c.useEffect(()=>{let O=setInterval(()=>Q(),1000);return()=>clearInterval(O)},[]);let Y=LJ();if(Z==="session"){let O=lQ(),F=sQ(),P=oQ(),U=aQ();return G(dQ,{title:"Current session",totalCost:O,apiDuration:nQ(),wallDuration:rQ(),linesAdded:P,linesRemoved:U,modelUsage:F,unknownCost:Y,bytesSaved:QY()})}let V=PJ();if(!(V.totalCost!==0||Object.keys(V.modelUsage).length>0||V.totalLinesAdded!==0||V.totalLinesRemoved!==0))return null;return z(B,{flexDirection:"column",gap:1,children:[G(dQ,{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 UJ(J={}){if((J.view??"global")==="session")return G(B,{flexDirection:"column",gap:1,width:"100%",children:G(iQ,{view:"session"})});let Q=eQ();if(Q==="firstParty")return G(JG,{});let Y;if(Q==="codex")Y=G(UQ,{});else if(Q==="minimax")Y=G(bQ,{});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(jQ,{providerLabel:V})}return z(B,{flexDirection:"column",gap:1,width:"100%",children:[G(iQ,{view:"global"}),Y,G(ZG,{})]})}function ZG(){let[J,Z]=c.useState("day"),[Q,Y]=c.useState(null),[V,H]=c.useState(!0),O=yZ.useCallback(async(U)=>{H(!0);try{Y(await MJ(U))}catch(W){U0(W),Y(null)}finally{H(!1)}},[]);c.useEffect(()=>{O(J)},[O,J]),_("settings:usageDay",()=>Z("day"),{context:"Settings",isActive:!0}),_("settings:usageWeek",()=>Z("week"),{context:"Settings",isActive:!0});let F=J==="day"?"last 24h":"last week",P=Q?.agentBreakdown[0];return z(B,{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:`${F[0].toUpperCase()}${F.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 ${F}.`}):z(B,{flexDirection:"column",marginTop:1,children:[Q.subagentHeavyPct>=5&&z(B,{flexDirection:"column",children:[G(K,{children:`${Math.round(Q.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`}),G(K,{dimColor:!0,children:XY})]}),P&&G(B,{flexDirection:"column",marginTop:Q.subagentHeavyPct>=5?1:0,children:G(K,{children:`${Math.round(P.pct)}% of your token usage came from subagents under '${P.agentType}'.`})}),Q.agentBreakdown.length>0&&z(B,{flexDirection:"column",marginTop:1,children:[z(K,{children:[G(K,{children:"Subagents".padEnd(24)}),G(K,{children:"% of usage"})]}),Q.agentBreakdown.map((U)=>z(K,{children:[G(K,{children:U.agentType.padEnd(24)}),G(K,{children:`${Math.round(U.pct)}%`})]},U.agentType))]})]}),G(K,{dimColor:!0,children:"d to day · w to week"})]})}function JG(){let J=x0(),Z=A0(),{columns:Q}=Z,{rows:Y}=TZ(Z),V=Math.min(Math.max(20,Q-2),80),H=Math.min(50,Math.max(20,V-14)),O=Math.max(15,Math.min(Math.floor(Y*0.8),30)),F=Math.max(5,O-3),[P,U]=c.useState(null),[W,D]=c.useState(null),[M,N]=c.useState(!0),[A,I]=c.useState("day"),[k,j]=c.useState(null),[t,w]=c.useState(!0),[d,m]=c.useState(0),[,$]=c.useReducer((E)=>E+1,0),Q0=yZ.useCallback(async()=>{N(!0),D(null);try{U(await YY())}catch(E){U0(E),D(E?.message||"Failed to load usage data")}finally{N(!1)}},[]),o=yZ.useCallback(async(E)=>{w(!0);try{j(await MJ(E))}catch(b){U0(b),j(null)}finally{w(!1)}},[]);c.useEffect(()=>{Q0()},[Q0]),c.useEffect(()=>{o(A)},[o,A]),c.useEffect(()=>{let E=setInterval(()=>$(),1000);return()=>clearInterval(E)},[]);let Y0=()=>m((E)=>Math.max(0,E-1)),n=()=>m((E)=>E+1),z0=()=>m((E)=>Math.max(0,E-F)),$0=()=>m((E)=>E+F),e={context:"Settings",isActive:!0};_("select:previous",Y0,e),_("select:next",n,e),_("scroll:lineUp",Y0,e),_("scroll:lineDown",n,e),_("scroll:pageUp",z0,e),_("scroll:pageDown",$0,e),_("settings:usageDay",()=>I("day"),e),_("settings:usageWeek",()=>I("week"),e),_("settings:retry",()=>{Q0(),o(A)},{context:"Settings",isActive:!!W&&!M});let v0=(E)=>K0.bold(E),X0=(E)=>K0.dim(E),FZ=(E)=>{let b=Math.min(1,Math.max(0,E)),a=Math.floor(b*H),V0="█".repeat(a),W0=" ".repeat(Math.max(0,H-a));return hZ(V0,J.rate_limit_fill,"foreground")+hZ(W0,J.rate_limit_empty,"background")},C=[],p=PJ();C.push(v0("Project total (all sessions)")),C.push("Total cost: "+_0(p.totalCost)+(LJ()?X0(" (costs may be inaccurate)"):"")),C.push("Total duration (API): "+OZ(p.totalAPIDuration)),C.push("Total duration (wall): "+OZ(p.totalDuration)),C.push(`Total code changes: ${p.totalLinesAdded} ${p.totalLinesAdded===1?"line":"lines"} added, ${p.totalLinesRemoved} ${p.totalLinesRemoved===1?"line":"lines"} removed`);let R0={};for(let[E,b]of Object.entries(p.modelUsage)){let a=NJ(E),V0=R0[a]??={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};V0.inputTokens+=b.inputTokens,V0.outputTokens+=b.outputTokens,V0.cacheReadInputTokens+=b.cacheReadInputTokens,V0.cacheCreationInputTokens+=b.cacheCreationInputTokens,V0.webSearchRequests+=b.webSearchRequests,V0.costUSD+=b.costUSD}let MZ=Object.entries(R0);if(MZ.length>0)C.push("Usage by model:");for(let[E,b]of MZ){let a=`${P0(b.inputTokens)} input, ${P0(b.outputTokens)} output`;if(b.cacheReadInputTokens>0)a+=`, ${P0(b.cacheReadInputTokens)} cache read`;if(b.cacheCreationInputTokens>0)a+=`, ${P0(b.cacheCreationInputTokens)} cache write`;if(b.webSearchRequests>0)a+=`, ${P0(b.webSearchRequests)} web search`;a+=` (${_0(b.costUSD)})`,C.push(`${`${E}:`.padStart(21)} ${a}`)}if(C.push(X0("Aggregated across all sessions in this project — includes the current session live.")),C.push(""),M&&!P)C.push(X0("Loading usage data…"));else if(W)C.push(hZ(`Could not load rate-limit data: ${W}`,J.error,"foreground")),C.push(X0("(cost/usage totals above are unaffected) · r to retry"));else if(P){let E=ZY(),b=E==="max"||E==="team"||E===null,a=[["Current session",P.five_hour],["Current week (all models)",P.seven_day],...b?[["Current week (Sonnet only)",P.seven_day_sonnet]]:[]];if(!a.some(([,e0])=>e0))C.push(X0("/usage is only available for subscription plans."));let V0=!0;for(let[e0,B0]of a){if(!B0||B0.utilization===null)continue;if(!V0)C.push("");if(V0=!1,C.push(v0(e0)),C.push(`${FZ(B0.utilization/100)} ${Math.floor(B0.utilization)}% used`),B0.resets_at)C.push(X0(`Resets ${SZ(B0.resets_at,!0,!0)}`))}let W0=P.extra_usage;if(W0?.is_enabled&&typeof W0.used_credits==="number"&&typeof W0.utilization==="number"&&W0.monthly_limit!=null)C.push(""),C.push(v0("Extra usage")),C.push(`${FZ(W0.utilization/100)} ${Math.floor(W0.utilization)}% used`),C.push(X0(`${_0(W0.used_credits/100,2)} / ${_0(W0.monthly_limit/100,2)} spent`))}C.push("");let g0=A==="day"?"last 24h":"last week";if(C.push(v0("What's driving your token usage?")),C.push(X0("Approximate, based on local sessions on this machine — does not include other devices.")),C.push(X0(`${g0[0].toUpperCase()}${g0.slice(1)} · a characteristic of your usage, not a full breakdown`)),t&&!k)C.push(X0("Analyzing local sessions…"));else if(!k||k.totalTokens===0)C.push(X0(`No local session activity in the ${g0}.`));else{if(k.subagentHeavyPct>=5)C.push(""),C.push(`${Math.round(k.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`),C.push(X0(XY));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 b of k.agentBreakdown)C.push(b.agentType.padEnd(24)+`${Math.round(b.pct)}%`)}}let m0=Math.max(0,C.length-F);if(d>m0)m(m0);let p0=Math.min(d,m0),$Z=C.slice(p0,p0+F),G0=p0,t0=C.length-(p0+$Z.length);return z(B,{flexDirection:"column",width:"100%",children:[G(K,{dimColor:!0,children:G0>0?`↑ ${G0} more above`:" "}),G(JY,{lines:$Z,width:V}),G(K,{dimColor:!0,children:t0>0?`↓ ${t0} more below`:" "}),G(K,{dimColor:!0,children:"↑↓ scroll · d to day · w to week · Esc to close"})]})}var eX,yZ,c,XY="Each subagent runs its own requests. Be deliberate about spawning them — and consider a cheaper model for simpler subagents.";var GY=r(()=>{sX();oX();Tq();QJ();rX();nX();iX();Fq();XZ();S0();lX();UZ();l0();aX();QJ();IZ();dX();uX();c0();EZ();YJ();tX();AQ();wQ();_Q();uQ();x();eX=u(b0(),1),yZ=u(F0(),1),c=u(F0(),1)});function LK(J){let Z=HY.c(25),{onClose:Q,context:Y,defaultTab:V}=J,[H,O]=T0.useState(V),[F,P]=T0.useState(!1),[U,W]=T0.useState(!1),[D,M]=T0.useState(!1),N=u0(),{rows:A}=TZ(A0()),I=N?A+1:Math.max(15,Math.min(Math.floor(A*0.8),30)),[k]=T0.useState(YG);VY();let j;if(Z[0]!==Q||Z[1]!==F)j=()=>{if(F)return;Q("Status dialog dismissed",{display:"system"})},Z[0]=Q,Z[1]=F,Z[2]=j;else j=Z[2];let t=j,w=!F&&!(H==="Config"&&U)&&!(H==="Gates"&&D),d;if(Z[3]!==w)d={context:"Settings",isActive:w},Z[3]=w,Z[4]=d;else d=Z[4];_("confirm:no",t,d);let m;if(Z[5]!==Y||Z[6]!==k)m=G(DZ,{title:"Status",children:G(uJ,{context:Y,diagnosticsPromise:k})},"status"),Z[5]=Y,Z[6]=k,Z[7]=m;else m=Z[7];let $;if(Z[8]!==I||Z[9]!==Y||Z[10]!==Q)$=G(DZ,{title:"Config",children:G(T0.Suspense,{fallback:null,children:G(ZQ,{context:Y,onClose:Q,setTabsHidden:P,onIsSearchModeChange:W,contentHeight:I})})},"config"),Z[8]=I,Z[9]=Y,Z[10]=Q,Z[11]=$;else $=Z[11];let Q0;if(Z[12]===Symbol.for("react.memo_cache_sentinel"))Q0=[G(DZ,{title:"Usage",children:G(UJ,{view:"global"})},"usage"),G(DZ,{title:"Session",children:G(UJ,{view:"session"})},"session")],Z[12]=Q0;else Q0=Z[12];let o;if(Z[13]!==I)o=[],Z[13]=I,Z[14]=o;else o=Z[14];let Y0;if(Z[15]!==m||Z[16]!==$||Z[17]!==o)Y0=[m,$,...Q0,...o],Z[15]=m,Z[16]=$,Z[17]=o,Z[18]=Y0;else Y0=Z[18];let n=Y0,z0=V!=="Config"&&V!=="Gates",$0=F||N?void 0:I,e;if(Z[19]!==H||Z[20]!==$0||Z[21]!==z0||Z[22]!==n||Z[23]!==F)e=G(KY,{color:"permission",children:G(WY,{color:"permission",selectedTab:H,onTabChange:O,hidden:F,initialHeaderFocused:z0,contentHeight:$0,children:n})}),Z[19]=H,Z[20]=$0,Z[21]=z0,Z[22]=n,Z[23]=F,Z[24]=e;else e=Z[24];return e}function YG(){return cJ().catch(XG)}function XG(){return[]}var HY,T0;var GG=r(()=>{l0();qG();XZ();UZ();QG();dq();dJ();JQ();GY();x();HY=u(b0(),1),T0=u(F0(),1)});
|
|
4
|
-
export{LK as Pg,GG as Qg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Yea as P,rfa as y}from"./cli-1.1.7-370fzee5.mjs";import{kta as U}from"./cli-1.1.7-a1sffgeq.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
|
|
2
|
-
export{G as lX,M as mX,N as nX,Y as oX,C as pX,_ as qX,R as rX,f as sX,E as tX,I as uX,k as vX,A as wX,b as xX,h as yX,m as zX,p as AX,u as BX,T as CX,e as DX,W as EX,a as FX,s as GX,r as HX,g as IX};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{iU as z,qs as _}from"./cli-1.1.7-g69xsadf.mjs";import{B4 as f}from"./cli-1.1.7-x1mh9vnk.mjs";import{Y7 as k,b9 as A,n5 as K}from"./cli-1.1.7-6327xnsa.mjs";import{S_ as L,T$ as T,fea as v,rfa as x,uba as W}from"./cli-1.1.7-370fzee5.mjs";import{jia as H}from"./cli-1.1.7-avhh3ykn.mjs";import{aja as b,cja as Q,dja as q,eja as V}from"./cli-1.1.7-5a7dx8xv.mjs";import{Wja as w}from"./cli-1.1.7-1sjzdsvt.mjs";import{_ja as O}from"./cli-1.1.7-tj4a73gm.mjs";import{Fla as U}from"./cli-1.1.7-gm3vnavd.mjs";import{una as X,yra as B}from"./cli-1.1.7-avggtwyk.mjs";import{kta as G}from"./cli-1.1.7-a1sffgeq.mjs";var Z,$;var J=G(()=>{Q();V();Z=q(()=>b.object({entries:b.record(b.string(),b.string())})),$=q(()=>b.object({userId:b.string(),version:b.number(),lastModified:b.string(),checksum:b.string(),content:Z()}))});var Y=G(()=>{B();w();A();z();x();L();U();T();K();W();v();X();k();f();H();O();_();J()});
|
|
2
|
-
export{Y as Id};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{w4 as K,y4 as Z}from"./cli-1.1.7-dax2hwtd.mjs";import{B4 as Y,z4 as J}from"./cli-1.1.7-x1mh9vnk.mjs";import{D8 as D,H5 as B,I8 as F,J8 as G,M5 as W,b9 as X}from"./cli-1.1.7-6327xnsa.mjs";import{Vja as y,Wja as Q}from"./cli-1.1.7-1sjzdsvt.mjs";import{Ksa as V,ssa as z}from"./cli-1.1.7-w7qe5saq.mjs";import{kta as N}from"./cli-1.1.7-a1sffgeq.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
|
|
2
|
-
export{P as Vi,_ as Wi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kta as H}from"./cli-1.1.7-a1sffgeq.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
|
|
2
|
-
export{F as Fha,K as Gha,M as Hha,N as Iha,O as Jha,P as Kha,J as Lha};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wh as Vq,Xh as fq}from"./cli-1.1.7-00r59ren.mjs";import{DY as o,EY as pq,KY as Qq,MY as Uq,NY as Hq,oY as Pq,pY as mq}from"./cli-1.1.7-rb629pva.mjs";import{EZ as Sq,I1 as Wq,b1 as M,d1 as g}from"./cli-1.1.7-8e3qerv0.mjs";import{p4 as Z,q4 as F,r4 as Jq}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as _q}from"./cli-1.1.7-ac6ve6ks.mjs";import{cha as s,dha as jq}from"./cli-1.1.7-xv2n043b.mjs";import{gta as Lq,kta as wq}from"./cli-1.1.7-a1sffgeq.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
|
|
2
|
-
export{lq as uh,oq as vh,sq as wh,aq as xh,Tq as yh};
|