@claudiolabs/claudin 1.1.28 → 1.1.29
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.29-awhbrkah.mjs +1 -0
- package/dist/chunks/App-1.1.29-pm1xvr3g.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.29-c44twxse.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.29-f11by8v4.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.29-vnqj2te2.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.29-z2ah9t9j.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.29-30pn689g.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.29-sja8s9ck.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.29-k98h1gzp.mjs +6 -0
- package/dist/chunks/Doctor-1.1.29-ab8tjfg7.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.29-16y5q4ta.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.29-rk6hjgv2.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.29-kwjexf2x.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.29-479a268q.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.29-vshc8a59.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.29-snkzzfjw.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.29-x67swksb.mjs +1 -0
- package/dist/chunks/REPL-1.1.29-yw76hfjs.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.29-033m6wha.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.29-kbtx0xa6.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.29-dq4fkj22.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.29-x5fsxqa3.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.29-18h9wdn7.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.29-42z37x43.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.29-dkk7q8sf.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.29-944b5g4w.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.29-j7qknp7t.mjs +1 -0
- package/dist/chunks/add-dir-1.1.29-na3kdm45.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.29-fjjae3tn.mjs +1 -0
- package/dist/chunks/agents-1.1.29-gdcf24kq.mjs +110 -0
- package/dist/chunks/agents-1.1.29-hbyggbar.mjs +3 -0
- package/dist/chunks/api-1.1.29-tb280rgw.mjs +1 -0
- package/dist/chunks/asciicast-1.1.29-69mc9agv.mjs +1 -0
- package/dist/chunks/assistant-1.1.29-qmvynqfb.mjs +1 -0
- package/dist/chunks/auth-1.1.29-k2h0c136.mjs +1 -0
- package/dist/chunks/auth-1.1.29-mkh8s4y7.mjs +1 -0
- package/dist/chunks/autoMode-1.1.29-5enddc49.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.29-p4hp4dv6.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.29-sk8rt0mh.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.29-qxt8xakt.mjs +1 -0
- package/dist/chunks/branch-1.1.29-0zwfdt6s.mjs +4 -0
- package/dist/chunks/bridge-1.1.29-ee6b7cck.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.29-4wseqmtn.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.29-2r501b1s.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.29-sk2e5ssh.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.29-mjz0jnns.mjs +1 -0
- package/dist/chunks/btw-1.1.29-arf7x19m.mjs +1 -0
- package/dist/chunks/buddy-1.1.29-awsva6y8.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.29-67egf5jw.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.29-yk1h4vdq.mjs +4 -0
- package/dist/chunks/caches-1.1.29-8ryyt679.mjs +1 -0
- package/dist/chunks/cd-1.1.29-w9gepxqm.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.29-7g8vpmk4.mjs +1 -0
- package/dist/chunks/claudemd-1.1.29-z00d07f9.mjs +1 -0
- package/dist/chunks/clear-1.1.29-aj6vgn4b.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.29-95xqw9gq.mjs +1 -0
- package/dist/chunks/cli-1.1.29-0kfg7hf8.mjs +2 -0
- package/dist/chunks/cli-1.1.29-0rnfn0gy.mjs +2 -0
- package/dist/chunks/cli-1.1.29-0s73ykp6.mjs +3 -0
- package/dist/chunks/cli-1.1.29-0tf52nkw.mjs +8 -0
- package/dist/chunks/cli-1.1.29-0v2ryegc.mjs +2 -0
- package/dist/chunks/cli-1.1.29-0vpcc8vm.mjs +2 -0
- package/dist/chunks/cli-1.1.29-11hr4111.mjs +2 -0
- package/dist/chunks/cli-1.1.29-13gvy0m9.mjs +25 -0
- package/dist/chunks/cli-1.1.29-153rxzts.mjs +2 -0
- package/dist/chunks/cli-1.1.29-17kpfbq0.mjs +2 -0
- package/dist/chunks/cli-1.1.29-1dqp4d2w.mjs +2 -0
- package/dist/chunks/cli-1.1.29-1pqjxrp8.mjs +2 -0
- package/dist/chunks/cli-1.1.29-20bcsb6f.mjs +15 -0
- package/dist/chunks/cli-1.1.29-23gv5dgk.mjs +2 -0
- package/dist/chunks/cli-1.1.29-247v5hpd.mjs +2 -0
- package/dist/chunks/cli-1.1.29-252q86ck.mjs +2 -0
- package/dist/chunks/cli-1.1.29-27h8nqm5.mjs +2 -0
- package/dist/chunks/cli-1.1.29-29svre2k.mjs +133 -0
- package/dist/chunks/cli-1.1.29-2e5s8gsb.mjs +24 -0
- package/dist/chunks/cli-1.1.29-2ezms0yf.mjs +2 -0
- package/dist/chunks/cli-1.1.29-2hejf6pj.mjs +2 -0
- package/dist/chunks/cli-1.1.29-2mcxe125.mjs +2 -0
- package/dist/chunks/cli-1.1.29-2sjtk1zb.mjs +2 -0
- package/dist/chunks/cli-1.1.29-2tyhgmxe.mjs +2 -0
- package/dist/chunks/cli-1.1.29-2yev8mxw.mjs +6 -0
- package/dist/chunks/cli-1.1.29-31y8na35.mjs +2 -0
- package/dist/chunks/cli-1.1.29-34nqdrk5.mjs +2 -0
- package/dist/chunks/cli-1.1.29-35kpvqby.mjs +4 -0
- package/dist/chunks/cli-1.1.29-3776marx.mjs +9 -0
- package/dist/chunks/cli-1.1.29-37j436rz.mjs +2 -0
- package/dist/chunks/cli-1.1.29-3dnft82a.mjs +2 -0
- package/dist/chunks/cli-1.1.29-3fcr0sm5.mjs +2 -0
- package/dist/chunks/cli-1.1.29-3s4wcn65.mjs +4 -0
- package/dist/chunks/cli-1.1.29-40v483aw.mjs +58 -0
- package/dist/chunks/cli-1.1.29-4ahf2sg4.mjs +2 -0
- package/dist/chunks/cli-1.1.29-4bemzx23.mjs +2 -0
- package/dist/chunks/cli-1.1.29-4p953chd.mjs +2 -0
- package/dist/chunks/cli-1.1.29-4pdnzc5j.mjs +2 -0
- package/dist/chunks/cli-1.1.29-4q271q7a.mjs +2 -0
- package/dist/chunks/cli-1.1.29-4w9b7g8h.mjs +3 -0
- package/dist/chunks/cli-1.1.29-4xqgqvwm.mjs +2 -0
- package/dist/chunks/cli-1.1.29-4yztmbcx.mjs +17 -0
- package/dist/chunks/cli-1.1.29-55khgk00.mjs +9 -0
- package/dist/chunks/cli-1.1.29-566mygcr.mjs +2 -0
- package/dist/chunks/cli-1.1.29-57e9kkv7.mjs +12 -0
- package/dist/chunks/cli-1.1.29-57f3k3fp.mjs +5 -0
- package/dist/chunks/cli-1.1.29-5bm4np8j.mjs +2 -0
- package/dist/chunks/cli-1.1.29-5gydp5n7.mjs +6 -0
- package/dist/chunks/cli-1.1.29-5mpj7dft.mjs +2 -0
- package/dist/chunks/cli-1.1.29-5p2zzfpq.mjs +4 -0
- package/dist/chunks/cli-1.1.29-5pbjmqzt.mjs +2 -0
- package/dist/chunks/cli-1.1.29-5svhj1v0.mjs +18 -0
- package/dist/chunks/cli-1.1.29-6g47vtst.mjs +2 -0
- package/dist/chunks/cli-1.1.29-6kvtrk8a.mjs +2 -0
- package/dist/chunks/cli-1.1.29-6mbq5wth.mjs +3 -0
- package/dist/chunks/cli-1.1.29-6ngsfhk3.mjs +17 -0
- package/dist/chunks/cli-1.1.29-6q1q5fa3.mjs +2 -0
- package/dist/chunks/cli-1.1.29-6qykmvew.mjs +2 -0
- package/dist/chunks/cli-1.1.29-6t6n6ctd.mjs +2 -0
- package/dist/chunks/cli-1.1.29-71e5px3b.mjs +2 -0
- package/dist/chunks/cli-1.1.29-740d0ga1.mjs +2 -0
- package/dist/chunks/cli-1.1.29-79tgwbnn.mjs +2 -0
- package/dist/chunks/cli-1.1.29-7p975zzx.mjs +2 -0
- package/dist/chunks/cli-1.1.29-7peev9wq.mjs +3 -0
- package/dist/chunks/cli-1.1.29-7pfvq0z6.mjs +60 -0
- package/dist/chunks/cli-1.1.29-7vrxybxh.mjs +15 -0
- package/dist/chunks/cli-1.1.29-834b4680.mjs +2 -0
- package/dist/chunks/cli-1.1.29-8398r1x1.mjs +2 -0
- package/dist/chunks/cli-1.1.29-842m4sds.mjs +2 -0
- package/dist/chunks/cli-1.1.29-84fpb4zk.mjs +2 -0
- package/dist/chunks/cli-1.1.29-89nqwnk6.mjs +3 -0
- package/dist/chunks/cli-1.1.29-8c371c3k.mjs +2 -0
- package/dist/chunks/cli-1.1.29-8dsnjzad.mjs +2 -0
- package/dist/chunks/cli-1.1.29-8eeh9yez.mjs +2 -0
- package/dist/chunks/cli-1.1.29-8k2xw0ns.mjs +16 -0
- package/dist/chunks/cli-1.1.29-8s0k2ydg.mjs +2 -0
- package/dist/chunks/cli-1.1.29-995n5c8r.mjs +2 -0
- package/dist/chunks/cli-1.1.29-9fkgjjzm.mjs +2 -0
- package/dist/chunks/cli-1.1.29-9n8sz71q.mjs +6 -0
- package/dist/chunks/cli-1.1.29-9qc9kyz8.mjs +6 -0
- package/dist/chunks/cli-1.1.29-9s3rafev.mjs +2 -0
- package/dist/chunks/cli-1.1.29-9s9kgzze.mjs +2 -0
- package/dist/chunks/cli-1.1.29-a1p2bm8x.mjs +4 -0
- package/dist/chunks/cli-1.1.29-a6pnwve8.mjs +206 -0
- package/dist/chunks/cli-1.1.29-aa81cr7r.mjs +2 -0
- package/dist/chunks/cli-1.1.29-aazftc8x.mjs +4 -0
- package/dist/chunks/cli-1.1.29-ajwqka67.mjs +2 -0
- package/dist/chunks/cli-1.1.29-akx5bp37.mjs +2 -0
- package/dist/chunks/cli-1.1.29-am1n3767.mjs +5553 -0
- package/dist/chunks/cli-1.1.29-aptcshv0.mjs +2 -0
- package/dist/chunks/cli-1.1.29-ar7jahd2.mjs +2 -0
- package/dist/chunks/cli-1.1.29-bpvwqqqm.mjs +3 -0
- package/dist/chunks/cli-1.1.29-bzfhb58d.mjs +21 -0
- package/dist/chunks/cli-1.1.29-c67xmzgw.mjs +2 -0
- package/dist/chunks/cli-1.1.29-c7eatffy.mjs +7 -0
- package/dist/chunks/cli-1.1.29-ccmw3ns3.mjs +2 -0
- package/dist/chunks/cli-1.1.29-cgska4m2.mjs +2 -0
- package/dist/chunks/cli-1.1.29-cjy4bmpv.mjs +2 -0
- package/dist/chunks/cli-1.1.29-cwngf5s4.mjs +2 -0
- package/dist/chunks/cli-1.1.29-df0crs3h.mjs +2 -0
- package/dist/chunks/cli-1.1.29-dfra4ygt.mjs +2 -0
- package/dist/chunks/cli-1.1.29-dpzd32s9.mjs +2 -0
- package/dist/chunks/cli-1.1.29-dseazhey.mjs +34 -0
- package/dist/chunks/cli-1.1.29-e7b3rw2q.mjs +2 -0
- package/dist/chunks/cli-1.1.29-enk5zgkk.mjs +2 -0
- package/dist/chunks/cli-1.1.29-eq7p29fp.mjs +2 -0
- package/dist/chunks/cli-1.1.29-erh6v56f.mjs +2 -0
- package/dist/chunks/cli-1.1.29-es8f8tm1.mjs +2 -0
- package/dist/chunks/cli-1.1.29-ex9733z1.mjs +2 -0
- package/dist/chunks/cli-1.1.29-f103mqc1.mjs +133 -0
- package/dist/chunks/cli-1.1.29-f56z0kjj.mjs +2 -0
- package/dist/chunks/cli-1.1.29-f8qh0czy.mjs +24 -0
- package/dist/chunks/cli-1.1.29-fhwjnhs2.mjs +12 -0
- package/dist/chunks/cli-1.1.29-fsht50yz.mjs +2 -0
- package/dist/chunks/cli-1.1.29-g2g0bf6s.mjs +2 -0
- package/dist/chunks/cli-1.1.29-g9nssmee.mjs +2 -0
- package/dist/chunks/cli-1.1.29-gd1bzvdb.mjs +20 -0
- package/dist/chunks/cli-1.1.29-gfwfhh3b.mjs +4 -0
- package/dist/chunks/cli-1.1.29-gfyabc3h.mjs +2 -0
- package/dist/chunks/cli-1.1.29-gycpj0z6.mjs +2 -0
- package/dist/chunks/cli-1.1.29-h1ej5qf0.mjs +2 -0
- package/dist/chunks/cli-1.1.29-h4fg85xm.mjs +2 -0
- package/dist/chunks/cli-1.1.29-hez6jzkx.mjs +2 -0
- package/dist/chunks/cli-1.1.29-hsa1qk75.mjs +2 -0
- package/dist/chunks/cli-1.1.29-j17q2nnf.mjs +2 -0
- package/dist/chunks/cli-1.1.29-j3n6rxnx.mjs +2 -0
- package/dist/chunks/cli-1.1.29-k0yj3sf0.mjs +2 -0
- package/dist/chunks/cli-1.1.29-kcfqkdev.mjs +24 -0
- package/dist/chunks/cli-1.1.29-kd96jtpb.mjs +2 -0
- package/dist/chunks/cli-1.1.29-kjbjanmr.mjs +2 -0
- package/dist/chunks/cli-1.1.29-krg96g94.mjs +2 -0
- package/dist/chunks/cli-1.1.29-ksekfz16.mjs +3 -0
- package/dist/chunks/cli-1.1.29-kywbej24.mjs +3 -0
- package/dist/chunks/cli-1.1.29-m4bwjmrm.mjs +2 -0
- package/dist/chunks/cli-1.1.29-m4j21s8k.mjs +3 -0
- package/dist/chunks/cli-1.1.29-m7rehwdd.mjs +58 -0
- package/dist/chunks/cli-1.1.29-mcacd7ag.mjs +2 -0
- package/dist/chunks/cli-1.1.29-mn3z3w8e.mjs +2 -0
- package/dist/chunks/cli-1.1.29-mwntmkzh.mjs +39 -0
- package/dist/chunks/cli-1.1.29-mxtxy5qg.mjs +2 -0
- package/dist/chunks/cli-1.1.29-mxxghqnd.mjs +2 -0
- package/dist/chunks/cli-1.1.29-nkb4dq83.mjs +2 -0
- package/dist/chunks/cli-1.1.29-nn0hkwgq.mjs +2 -0
- package/dist/chunks/cli-1.1.29-nx6ynaex.mjs +6 -0
- package/dist/chunks/cli-1.1.29-nxbgdt4q.mjs +2 -0
- package/dist/chunks/cli-1.1.29-nxvs12dw.mjs +2 -0
- package/dist/chunks/cli-1.1.29-pbydvpcy.mjs +7 -0
- package/dist/chunks/cli-1.1.29-pf67dsfj.mjs +42 -0
- package/dist/chunks/cli-1.1.29-pwsznt80.mjs +2 -0
- package/dist/chunks/cli-1.1.29-q4fv8e5e.mjs +2 -0
- package/dist/chunks/cli-1.1.29-q7nywp06.mjs +2 -0
- package/dist/chunks/cli-1.1.29-q9atby2h.mjs +2 -0
- package/dist/chunks/cli-1.1.29-qqcjvb8v.mjs +3 -0
- package/dist/chunks/cli-1.1.29-qyg6dttd.mjs +2 -0
- package/dist/chunks/cli-1.1.29-qz5zy9rd.mjs +4 -0
- package/dist/chunks/cli-1.1.29-ra7737c1.mjs +2 -0
- package/dist/chunks/cli-1.1.29-rah0vfkh.mjs +1 -0
- package/dist/chunks/cli-1.1.29-rbtgtxtr.mjs +2 -0
- package/dist/chunks/cli-1.1.29-rcf2pvf2.mjs +2 -0
- package/dist/chunks/cli-1.1.29-rd1s45en.mjs +24 -0
- package/dist/chunks/cli-1.1.29-rfz718th.mjs +6 -0
- package/dist/chunks/cli-1.1.29-rn9a55ga.mjs +2 -0
- package/dist/chunks/cli-1.1.29-rnrvwymv.mjs +2 -0
- package/dist/chunks/cli-1.1.29-rse83jw9.mjs +2 -0
- package/dist/chunks/cli-1.1.29-s7njwf37.mjs +15 -0
- package/dist/chunks/cli-1.1.29-s8attyep.mjs +2 -0
- package/dist/chunks/cli-1.1.29-sb5dzja5.mjs +2 -0
- package/dist/chunks/cli-1.1.29-scf5dmr2.mjs +50 -0
- package/dist/chunks/cli-1.1.29-sgfpybka.mjs +2 -0
- package/dist/chunks/cli-1.1.29-smn5dd7n.mjs +2 -0
- package/dist/chunks/cli-1.1.29-snxnt4nr.mjs +2 -0
- package/dist/chunks/cli-1.1.29-t64smfse.mjs +2 -0
- package/dist/chunks/cli-1.1.29-tf20f72b.mjs +2 -0
- package/dist/chunks/cli-1.1.29-tg84q1yd.mjs +20 -0
- package/dist/chunks/cli-1.1.29-tyew653x.mjs +3 -0
- package/dist/chunks/cli-1.1.29-tz817yh8.mjs +2 -0
- package/dist/chunks/cli-1.1.29-v4wsvara.mjs +2 -0
- package/dist/chunks/cli-1.1.29-v6y1118n.mjs +4 -0
- package/dist/chunks/cli-1.1.29-v9bvr1aw.mjs +5 -0
- package/dist/chunks/cli-1.1.29-vd6b2ckm.mjs +2 -0
- package/dist/chunks/cli-1.1.29-vmmpxa0v.mjs +2 -0
- package/dist/chunks/cli-1.1.29-vp3z0245.mjs +2 -0
- package/dist/chunks/cli-1.1.29-vr34j6s2.mjs +3 -0
- package/dist/chunks/cli-1.1.29-vv1sy2ya.mjs +25 -0
- package/dist/chunks/cli-1.1.29-vws4vx43.mjs +2 -0
- package/dist/chunks/cli-1.1.29-vybx7rvs.mjs +10 -0
- package/dist/chunks/cli-1.1.29-we6vghby.mjs +2 -0
- package/dist/chunks/cli-1.1.29-wscghnfp.mjs +2 -0
- package/dist/chunks/cli-1.1.29-wv5r6reg.mjs +2 -0
- package/dist/chunks/cli-1.1.29-wxg06wve.mjs +2 -0
- package/dist/chunks/cli-1.1.29-xfcy5e42.mjs +2 -0
- package/dist/chunks/cli-1.1.29-xfhxkzzh.mjs +2 -0
- package/dist/chunks/cli-1.1.29-xftqnjy0.mjs +4 -0
- package/dist/chunks/cli-1.1.29-xjh2k6ex.mjs +3 -0
- package/dist/chunks/cli-1.1.29-xrwps5rg.mjs +3 -0
- package/dist/chunks/cli-1.1.29-y3v15ehz.mjs +2 -0
- package/dist/chunks/cli-1.1.29-yddrcp23.mjs +2 -0
- package/dist/chunks/cli-1.1.29-ykat6ksh.mjs +2 -0
- package/dist/chunks/cli-1.1.29-ymcd1d05.mjs +2 -0
- package/dist/chunks/cli-1.1.29-ypgjht1s.mjs +2 -0
- package/dist/chunks/cli-1.1.29-yv3r7f00.mjs +2 -0
- package/dist/chunks/cli-1.1.29-zb1qmpq0.mjs +45 -0
- package/dist/chunks/cli-1.1.29-ze1sanxc.mjs +2 -0
- package/dist/chunks/cli-1.1.29-zf1md9se.mjs +2 -0
- package/dist/chunks/cli-1.1.29-zh2qqpcy.mjs +2 -0
- package/dist/chunks/cli-1.1.29-zqccyb2h.mjs +2 -0
- package/dist/chunks/client-1.1.29-abnv29yp.mjs +1 -0
- package/dist/chunks/color-1.1.29-h2d0ea1p.mjs +1 -0
- package/dist/chunks/compact-1.1.29-071ysk4h.mjs +3 -0
- package/dist/chunks/config-1.1.29-jhy41xna.mjs +1 -0
- package/dist/chunks/config-1.1.29-wzvad2ns.mjs +1 -0
- package/dist/chunks/constants-1.1.29-5536grwb.mjs +1 -0
- package/dist/chunks/context-1.1.29-qxvktpnx.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.29-rypt767r.mjs +1 -0
- package/dist/chunks/conversation-1.1.29-yr51bv23.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.29-h3z6avxk.mjs +1 -0
- package/dist/chunks/copy-1.1.29-ze2g86qn.mjs +9 -0
- package/dist/chunks/cost-1.1.29-bn9nefss.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.29-5fe73ss4.mjs +1 -0
- package/dist/chunks/createSession-1.1.29-rscwvwx3.mjs +1 -0
- package/dist/chunks/debug-1.1.29-hsa8740f.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.29-nrkya6cw.mjs +1534 -0
- package/dist/chunks/desktop-1.1.29-wzh1a3fx.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.29-tgssqtyy.mjs +1 -0
- package/dist/chunks/detection-1.1.29-f3hp0x2s.mjs +1 -0
- package/dist/chunks/diff-1.1.29-h7fm7n04.mjs +1 -0
- package/dist/chunks/doctor-1.1.29-5ccr1m55.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.29-vmnf895k.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.29-d0ktjabf.mjs +1 -0
- package/dist/chunks/effort-1.1.29-xxzxaym4.mjs +13 -0
- package/dist/chunks/engine-1.1.29-9ekq4v2g.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.29-8c9jjpjy.mjs +1 -0
- package/dist/chunks/envUtils-1.1.29-593t90q5.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.29-g5qpphd9.mjs +1 -0
- package/dist/chunks/environments-1.1.29-x2aa2eet.mjs +1 -0
- package/dist/chunks/errors-1.1.29-jgx19cvb.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.29-wxzjn2xw.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.29-hexzsnhv.mjs +1 -0
- package/dist/chunks/exit-1.1.29-h788x2yv.mjs +1 -0
- package/dist/chunks/explorer-1.1.29-wtr7bga1.mjs +1 -0
- package/dist/chunks/export-1.1.29-42ve1rgm.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.29-y1e1m369.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.29-gq3g80nm.mjs +1 -0
- package/dist/chunks/fast-1.1.29-h6r42366.mjs +1 -0
- package/dist/chunks/feedback-1.1.29-st43crhj.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.29-ckcepqgc.mjs +1 -0
- package/dist/chunks/git-1.1.29-j563zwhc.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.29-vk8m9ket.mjs +1 -0
- package/dist/chunks/goal-1.1.29-p7hzmh24.mjs +4 -0
- package/dist/chunks/growthbook-1.1.29-3549rcjz.mjs +1 -0
- package/dist/chunks/headless-1.1.29-5vx8fpbe.mjs +2 -0
- package/dist/chunks/heapdump-1.1.29-rp203g47.mjs +6 -0
- package/dist/chunks/help-1.1.29-3y5b0e2g.mjs +1 -0
- package/dist/chunks/hookChains-1.1.29-ga4rejj3.mjs +3 -0
- package/dist/chunks/hooks-1.1.29-b38tdtzk.mjs +1 -0
- package/dist/chunks/hooks-1.1.29-ygwx2459.mjs +79 -0
- package/dist/chunks/ide-1.1.29-67nmghjh.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.29-z1xa8jsd.mjs +1 -0
- package/dist/chunks/import-1.1.29-627psf8x.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.29-9dtr0d37.mjs +1 -0
- package/dist/chunks/index-1.1.29-101dgedk.mjs +9 -0
- package/dist/chunks/index-1.1.29-3mknam1s.mjs +1 -0
- package/dist/chunks/index-1.1.29-3rjcfsf3.mjs +1 -0
- package/dist/chunks/index-1.1.29-4ye92se8.mjs +1 -0
- package/dist/chunks/index-1.1.29-568ncn0w.mjs +1 -0
- package/dist/chunks/index-1.1.29-5zbg7qfm.mjs +1 -0
- package/dist/chunks/index-1.1.29-6pe6cr8p.mjs +1 -0
- package/dist/chunks/index-1.1.29-cpvbfs32.mjs +5 -0
- package/dist/chunks/index-1.1.29-e90xbdas.mjs +23 -0
- package/dist/chunks/index-1.1.29-efsdrxv3.mjs +1 -0
- package/dist/chunks/index-1.1.29-gy6pctgv.mjs +1 -0
- package/dist/chunks/index-1.1.29-jghqwznd.mjs +1 -0
- package/dist/chunks/index-1.1.29-k42kw8w5.mjs +1 -0
- package/dist/chunks/index-1.1.29-kvaapa6z.mjs +1 -0
- package/dist/chunks/index-1.1.29-mwtftmry.mjs +9 -0
- package/dist/chunks/index-1.1.29-q7ydx0h2.mjs +2 -0
- package/dist/chunks/index-1.1.29-r4y0qs9x.mjs +1 -0
- package/dist/chunks/index-1.1.29-rgsmqr6q.mjs +1 -0
- package/dist/chunks/index-1.1.29-tfnnf0k2.mjs +1 -0
- package/dist/chunks/index-1.1.29-v640rrh6.mjs +1 -0
- package/dist/chunks/index-1.1.29-v7vcnkxr.mjs +30 -0
- package/dist/chunks/index-1.1.29-xwekv48p.mjs +2 -0
- package/dist/chunks/index-1.1.29-z8a1fx6p.mjs +1 -0
- package/dist/chunks/init-1.1.29-h07twh7g.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.29-ae1e53vd.mjs +1 -0
- package/dist/chunks/ink-1.1.29-jkk9zn2g.mjs +1 -0
- package/dist/chunks/insights-1.1.29-awyethqq.mjs +870 -0
- package/dist/chunks/install-1.1.29-yhkejpep.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.29-jsrj24s4.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.29-gts768ac.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.29-mhgk5gm7.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.29-nz689brn.mjs +1 -0
- package/dist/chunks/keybindings-1.1.29-gh9axh60.mjs +2 -0
- package/dist/chunks/knowledge-1.1.29-hfwtr4gz.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.29-hfeprnvk.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.29-m2np7bm8.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.29-zpz05b3t.mjs +1 -0
- package/dist/chunks/log-1.1.29-fw86q3jh.mjs +1 -0
- package/dist/chunks/main-1.1.29-w3b4z9p1.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.29-r7qb1f8v.mjs +1 -0
- package/dist/chunks/mcp-1.1.29-jyq80had.mjs +4 -0
- package/dist/chunks/mcp-1.1.29-rj6rmrwj.mjs +17 -0
- package/dist/chunks/mcp-1.1.29-v1dw736k.mjs +1 -0
- package/dist/chunks/mcpb-1.1.29-2eqhsr4h.mjs +1 -0
- package/dist/chunks/memory-1.1.29-f9bfe5q1.mjs +77 -0
- package/dist/chunks/model-1.1.29-3cbf7nj8.mjs +1 -0
- package/dist/chunks/model-1.1.29-65mwx0jt.mjs +2 -0
- package/dist/chunks/node-1.1.29-9gdbqzzb.mjs +15 -0
- package/dist/chunks/node-1.1.29-g8j45zsn.mjs +1 -0
- package/dist/chunks/oauth-1.1.29-rzdyddzx.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.29-3v0weah8.mjs +14 -0
- package/dist/chunks/output-style-1.1.29-kh5kpq0r.mjs +1 -0
- package/dist/chunks/package-OS7RONXY-1.1.29-wartca0p.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.29-1pk3egnf.mjs +1 -0
- package/dist/chunks/parser-1.1.29-j664c2gz.mjs +1 -0
- package/dist/chunks/passes-1.1.29-daz9sxtn.mjs +1 -0
- package/dist/chunks/permissions-1.1.29-2t8t5tw7.mjs +1 -0
- package/dist/chunks/permissions-1.1.29-yrdqzbx5.mjs +3 -0
- package/dist/chunks/plan-1.1.29-bz008b9p.mjs +1 -0
- package/dist/chunks/plist-1.1.29-35acgftn.mjs +1 -0
- package/dist/chunks/plugin-1.1.29-8f04719q.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.29-xb113h6m.mjs +1 -0
- package/dist/chunks/plugins-1.1.29-qvtkwvvz.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.29-y3pz26pa.mjs +2 -0
- package/dist/chunks/print-1.1.29-efswnrv9.mjs +57 -0
- package/dist/chunks/process-1.1.29-58f1e2bp.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.29-d1jsv2w2.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.29-b3y0q14a.mjs +9 -0
- package/dist/chunks/prompt-1.1.29-62tsknn0.mjs +1 -0
- package/dist/chunks/prompt-1.1.29-jhbfphh7.mjs +1 -0
- package/dist/chunks/prompts-1.1.29-3z4c3ek4.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.29-rdwh19s1.mjs +13 -0
- package/dist/chunks/provider-1.1.29-3zvq773g.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.29-607et4qp.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.29-yenzyrfm.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.29-298ja1r1.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.29-4jd1spvm.mjs +26 -0
- package/dist/chunks/registry-1.1.29-m25stkr0.mjs +1 -0
- package/dist/chunks/release-notes-1.1.29-22baamfx.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.29-phv53y08.mjs +2 -0
- package/dist/chunks/remote-env-1.1.29-2ey2vymh.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.29-eafsxes0.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.29-hs2wyhc3.mjs +1 -0
- package/dist/chunks/rename-1.1.29-75kb3avp.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.29-dz6hhgez.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.29-09a6pk1q.mjs +1 -0
- package/dist/chunks/resume-1.1.29-685rb92g.mjs +2 -0
- package/dist/chunks/rewind-1.1.29-7nw7f08p.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.29-9cr8rvbr.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.29-xmaezf6n.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.29-db9nwpd6.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.29-wzeynybm.mjs +1 -0
- package/dist/chunks/session-1.1.29-m8fppsh2.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.29-ast9gceq.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.29-h1eqvpq2.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.29-aykc0gmj.mjs +1 -0
- package/dist/chunks/settings-1.1.29-0c2fyzj5.mjs +1 -0
- package/dist/chunks/setup-1.1.29-y2wjm0r9.mjs +12 -0
- package/dist/chunks/sinks-1.1.29-5rs2f8yn.mjs +1 -0
- package/dist/chunks/skills-1.1.29-cp2813x4.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.29-kh45g8fh.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.29-82s33sqm.mjs +1 -0
- package/dist/chunks/state-1.1.29-p67vvgkh.mjs +1 -0
- package/dist/chunks/stats-1.1.29-by56pge2.mjs +1 -0
- package/dist/chunks/status-1.1.29-hw493zns.mjs +1 -0
- package/dist/chunks/stickers-1.1.29-8s1sjy27.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.29-qz9p5e81.mjs +1 -0
- package/dist/chunks/tasks-1.1.29-337vzgbz.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.29-85qvaaf6.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.29-k78c522w.mjs +1 -0
- package/dist/chunks/teleport-1.1.29-c44n1v9b.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.29-rrwvk8ab.mjs +1 -0
- package/dist/chunks/theme-1.1.29-y04xza5k.mjs +1 -0
- package/dist/chunks/thinkback-1.1.29-s3hjbm7q.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.29-2bhrtfq9.mjs +1 -0
- package/dist/chunks/toolPool-1.1.29-gfpcfj2x.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.29-vfnsb7j0.mjs +1 -0
- package/dist/chunks/tools-1.1.29-w11mxfwv.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.29-qwyypx3m.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.29-yxqqz6t4.mjs +69 -0
- package/dist/chunks/types-1.1.29-2v59e63g.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.29-a115pcna.mjs +4 -0
- package/dist/chunks/update-1.1.29-3zmwqt73.mjs +72 -0
- package/dist/chunks/upgrade-1.1.29-xpe0b67z.mjs +1 -0
- package/dist/chunks/upload-1.1.29-d3tkf4nc.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.29-fqatj32w.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.29-9w1d0vdc.mjs +1 -0
- package/dist/chunks/usage-1.1.29-6mr5tsjn.mjs +1 -0
- package/dist/chunks/util-1.1.29-94aahqex.mjs +1 -0
- package/dist/chunks/utils-1.1.29-jg1xnwx8.mjs +1 -0
- package/dist/chunks/vim-1.1.29-hf5m1934.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.29-7z8smp5m.mjs +13 -0
- package/dist/chunks/watcher-1.1.29-qeqe2296.mjs +1 -0
- package/dist/chunks/wiki-1.1.29-cr99gpcx.mjs +132 -0
- package/dist/chunks/workflows-1.1.29-v6f0e3am.mjs +1 -0
- package/dist/chunks/worktree-1.1.29-qf1zfstj.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.29-qxpsmfqy.mjs +1 -0
- package/dist/chunks/wrapper-1.1.29-b7y6s4vd.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.28-hdgcephe.mjs +0 -1
- package/dist/chunks/App-1.1.28-rdhr58j6.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.28-dn460p70.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.28-k16de89c.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.28-19td2te8.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.28-011pgh7b.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.28-ych5693j.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.28-7p5bx0b5.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.28-nkct57y5.mjs +0 -6
- package/dist/chunks/Doctor-1.1.28-xerfvzx5.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.28-ne9ftnxx.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.28-07enf929.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.28-mcsd53vd.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.28-rmrgfzbv.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.28-w5mh2w2b.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.28-7q9nc8c9.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.28-08ytr6ma.mjs +0 -1
- package/dist/chunks/REPL-1.1.28-pxy1ag0k.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.28-b2pk1nan.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.28-xa772x92.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.28-6x6ca6kq.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.28-vy7p3j3e.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.28-egnv67by.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.28-y1ss2e0h.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.28-7w099741.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.28-49aey2f6.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.28-gw9e23bc.mjs +0 -1
- package/dist/chunks/add-dir-1.1.28-5j989gf2.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.28-hxk0wpj5.mjs +0 -1
- package/dist/chunks/agents-1.1.28-3yth9sa4.mjs +0 -110
- package/dist/chunks/agents-1.1.28-4qdh001q.mjs +0 -3
- package/dist/chunks/api-1.1.28-znpy0eyy.mjs +0 -1
- package/dist/chunks/asciicast-1.1.28-r6dsend4.mjs +0 -1
- package/dist/chunks/assistant-1.1.28-16hn1f6b.mjs +0 -1
- package/dist/chunks/auth-1.1.28-bw7dane8.mjs +0 -1
- package/dist/chunks/auth-1.1.28-ht6j3ag3.mjs +0 -1
- package/dist/chunks/autoMode-1.1.28-nyaf1s0s.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.28-sjjeha2m.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.28-070wmr6y.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.28-y5mjznxx.mjs +0 -1
- package/dist/chunks/branch-1.1.28-5d97ysjr.mjs +0 -4
- package/dist/chunks/bridge-1.1.28-62qv0wgq.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.28-m986jcxg.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.28-0fs5tkxx.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.28-pyr5gvmx.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.28-wpzz2yca.mjs +0 -1
- package/dist/chunks/btw-1.1.28-p1tk901s.mjs +0 -1
- package/dist/chunks/buddy-1.1.28-thrnzpdp.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.28-bb4xsnev.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.28-9p9fmxas.mjs +0 -4
- package/dist/chunks/caches-1.1.28-t6dq2xtp.mjs +0 -1
- package/dist/chunks/cd-1.1.28-84z1kqam.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.28-3x0y2w87.mjs +0 -1
- package/dist/chunks/claudemd-1.1.28-skmb6ar5.mjs +0 -1
- package/dist/chunks/clear-1.1.28-78f1rnc5.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.28-sx5qqtxb.mjs +0 -1
- package/dist/chunks/cli-1.1.28-01g60h7m.mjs +0 -2
- package/dist/chunks/cli-1.1.28-040xb4f8.mjs +0 -2
- package/dist/chunks/cli-1.1.28-0c0kb6x2.mjs +0 -24
- package/dist/chunks/cli-1.1.28-0njtm2nf.mjs +0 -60
- package/dist/chunks/cli-1.1.28-0vgve5rw.mjs +0 -24
- package/dist/chunks/cli-1.1.28-12g8qyfk.mjs +0 -58
- package/dist/chunks/cli-1.1.28-130w2y17.mjs +0 -50
- package/dist/chunks/cli-1.1.28-13j6r7pz.mjs +0 -2
- package/dist/chunks/cli-1.1.28-14abe08r.mjs +0 -4
- package/dist/chunks/cli-1.1.28-1jd8x2af.mjs +0 -2
- package/dist/chunks/cli-1.1.28-1mscaejt.mjs +0 -2
- package/dist/chunks/cli-1.1.28-1q409efb.mjs +0 -2
- package/dist/chunks/cli-1.1.28-1rrn1mhr.mjs +0 -2
- package/dist/chunks/cli-1.1.28-1vrff9a3.mjs +0 -5
- package/dist/chunks/cli-1.1.28-2arzkhzs.mjs +0 -2
- package/dist/chunks/cli-1.1.28-2dafhgjv.mjs +0 -34
- package/dist/chunks/cli-1.1.28-2esp2ssp.mjs +0 -6
- package/dist/chunks/cli-1.1.28-2q7dztmb.mjs +0 -2
- package/dist/chunks/cli-1.1.28-2wem9fnx.mjs +0 -2
- package/dist/chunks/cli-1.1.28-2ykcw73j.mjs +0 -2
- package/dist/chunks/cli-1.1.28-2zhmwh7t.mjs +0 -2
- package/dist/chunks/cli-1.1.28-30yw5q4z.mjs +0 -4
- package/dist/chunks/cli-1.1.28-347ygvzg.mjs +0 -6
- package/dist/chunks/cli-1.1.28-36891pwy.mjs +0 -2
- package/dist/chunks/cli-1.1.28-36y6830c.mjs +0 -2
- package/dist/chunks/cli-1.1.28-37rkgevh.mjs +0 -2
- package/dist/chunks/cli-1.1.28-3bj091x6.mjs +0 -2
- package/dist/chunks/cli-1.1.28-3fssr567.mjs +0 -2
- package/dist/chunks/cli-1.1.28-3p6j7k4a.mjs +0 -2
- package/dist/chunks/cli-1.1.28-4kda7s33.mjs +0 -2
- package/dist/chunks/cli-1.1.28-4kxqqtpz.mjs +0 -2
- package/dist/chunks/cli-1.1.28-4mpm44jj.mjs +0 -9
- package/dist/chunks/cli-1.1.28-4qh42y9g.mjs +0 -2
- package/dist/chunks/cli-1.1.28-4sx3zr2c.mjs +0 -3
- package/dist/chunks/cli-1.1.28-58rs1ja0.mjs +0 -2
- package/dist/chunks/cli-1.1.28-5edzsdcr.mjs +0 -6
- package/dist/chunks/cli-1.1.28-5y1xeh89.mjs +0 -206
- package/dist/chunks/cli-1.1.28-638dshxx.mjs +0 -42
- package/dist/chunks/cli-1.1.28-6bc84c0n.mjs +0 -2
- package/dist/chunks/cli-1.1.28-6x9c71q9.mjs +0 -2
- package/dist/chunks/cli-1.1.28-6y7vtevf.mjs +0 -17
- package/dist/chunks/cli-1.1.28-75thpvfa.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7amn29ks.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7e3nqd5c.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7fz4fqgd.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7g65bppm.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7nye6zs7.mjs +0 -4
- package/dist/chunks/cli-1.1.28-7pmtq82j.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7vvtkeeh.mjs +0 -25
- package/dist/chunks/cli-1.1.28-7x94aewp.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7zpfvkxq.mjs +0 -2
- package/dist/chunks/cli-1.1.28-81p0zmxc.mjs +0 -2
- package/dist/chunks/cli-1.1.28-83k0knzj.mjs +0 -2
- package/dist/chunks/cli-1.1.28-8ahmbnjh.mjs +0 -2
- package/dist/chunks/cli-1.1.28-8avwqt1z.mjs +0 -4
- package/dist/chunks/cli-1.1.28-8jrfznkw.mjs +0 -2
- package/dist/chunks/cli-1.1.28-8v2vx373.mjs +0 -2
- package/dist/chunks/cli-1.1.28-943993zt.mjs +0 -2
- package/dist/chunks/cli-1.1.28-94sk1z8g.mjs +0 -5
- package/dist/chunks/cli-1.1.28-95fs05hq.mjs +0 -2
- package/dist/chunks/cli-1.1.28-9e74kqtd.mjs +0 -2
- package/dist/chunks/cli-1.1.28-9s4pee5a.mjs +0 -2
- package/dist/chunks/cli-1.1.28-a00k75hj.mjs +0 -2
- package/dist/chunks/cli-1.1.28-a79xcdg3.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ad15rvp0.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ak2bzv1v.mjs +0 -16
- package/dist/chunks/cli-1.1.28-atrbc4s7.mjs +0 -2
- package/dist/chunks/cli-1.1.28-avxe0zxq.mjs +0 -15
- package/dist/chunks/cli-1.1.28-b2jq83aj.mjs +0 -15
- package/dist/chunks/cli-1.1.28-be8cxh1e.mjs +0 -2
- package/dist/chunks/cli-1.1.28-bfs5hmfp.mjs +0 -3
- package/dist/chunks/cli-1.1.28-bqtpnyqr.mjs +0 -2
- package/dist/chunks/cli-1.1.28-brh6rw23.mjs +0 -2
- package/dist/chunks/cli-1.1.28-bsqgt8m4.mjs +0 -2
- package/dist/chunks/cli-1.1.28-bwbz3v3j.mjs +0 -2
- package/dist/chunks/cli-1.1.28-bwgr7j8z.mjs +0 -2
- package/dist/chunks/cli-1.1.28-by5acg3a.mjs +0 -2
- package/dist/chunks/cli-1.1.28-c9nh8cpr.mjs +0 -2
- package/dist/chunks/cli-1.1.28-cb5wemmj.mjs +0 -7
- package/dist/chunks/cli-1.1.28-cfq2wwx5.mjs +0 -2
- package/dist/chunks/cli-1.1.28-cyrrpdkd.mjs +0 -2
- package/dist/chunks/cli-1.1.28-d5h3kve6.mjs +0 -24
- package/dist/chunks/cli-1.1.28-davs3ve8.mjs +0 -58
- package/dist/chunks/cli-1.1.28-denmqz0s.mjs +0 -2
- package/dist/chunks/cli-1.1.28-dqsxqszf.mjs +0 -2
- package/dist/chunks/cli-1.1.28-dy3tnnyd.mjs +0 -3
- package/dist/chunks/cli-1.1.28-e2mfhtpx.mjs +0 -2
- package/dist/chunks/cli-1.1.28-egskcwa5.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ek683x01.mjs +0 -2
- package/dist/chunks/cli-1.1.28-epzkhgww.mjs +0 -2
- package/dist/chunks/cli-1.1.28-erqn7gwg.mjs +0 -6
- package/dist/chunks/cli-1.1.28-es8var4t.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ev0gfjgf.mjs +0 -24
- package/dist/chunks/cli-1.1.28-evvcbjb6.mjs +0 -2
- package/dist/chunks/cli-1.1.28-f0vrbk1t.mjs +0 -2
- package/dist/chunks/cli-1.1.28-f1n8p9v2.mjs +0 -12
- package/dist/chunks/cli-1.1.28-f3rdt4zg.mjs +0 -2
- package/dist/chunks/cli-1.1.28-f8av9yzr.mjs +0 -39
- package/dist/chunks/cli-1.1.28-fetsedc8.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ffy07rnm.mjs +0 -2
- package/dist/chunks/cli-1.1.28-fjbefwwe.mjs +0 -2
- package/dist/chunks/cli-1.1.28-fnd6z5bq.mjs +0 -2
- package/dist/chunks/cli-1.1.28-fv1twt9b.mjs +0 -8
- package/dist/chunks/cli-1.1.28-h00s5n5y.mjs +0 -2
- package/dist/chunks/cli-1.1.28-h7p3dmnv.mjs +0 -2
- package/dist/chunks/cli-1.1.28-hb02sa63.mjs +0 -2
- package/dist/chunks/cli-1.1.28-hkfays5k.mjs +0 -2
- package/dist/chunks/cli-1.1.28-hx5j3q23.mjs +0 -17
- package/dist/chunks/cli-1.1.28-hxbkncxe.mjs +0 -2
- package/dist/chunks/cli-1.1.28-hyd7kkyr.mjs +0 -2
- package/dist/chunks/cli-1.1.28-j5m0kc75.mjs +0 -3
- package/dist/chunks/cli-1.1.28-j6nysca9.mjs +0 -2
- package/dist/chunks/cli-1.1.28-jqnzq23v.mjs +0 -3
- package/dist/chunks/cli-1.1.28-jr3jtfkf.mjs +0 -2
- package/dist/chunks/cli-1.1.28-jwg70mjs.mjs +0 -2
- package/dist/chunks/cli-1.1.28-k0ewezmj.mjs +0 -20
- package/dist/chunks/cli-1.1.28-k10f3f7z.mjs +0 -3
- package/dist/chunks/cli-1.1.28-k7pnt9ba.mjs +0 -2
- package/dist/chunks/cli-1.1.28-kaddwxsy.mjs +0 -2
- package/dist/chunks/cli-1.1.28-kc8f0nz7.mjs +0 -3
- package/dist/chunks/cli-1.1.28-khcgtk4a.mjs +0 -2
- package/dist/chunks/cli-1.1.28-knfg26kb.mjs +0 -2
- package/dist/chunks/cli-1.1.28-m6k4d2wx.mjs +0 -2
- package/dist/chunks/cli-1.1.28-mdexghj2.mjs +0 -2
- package/dist/chunks/cli-1.1.28-mk8zwqb2.mjs +0 -4
- package/dist/chunks/cli-1.1.28-mkm05wf9.mjs +0 -2
- package/dist/chunks/cli-1.1.28-mpjz8znf.mjs +0 -3
- package/dist/chunks/cli-1.1.28-mqmy0gy0.mjs +0 -2
- package/dist/chunks/cli-1.1.28-mvkxhjmj.mjs +0 -2
- package/dist/chunks/cli-1.1.28-mx413hqd.mjs +0 -3
- package/dist/chunks/cli-1.1.28-n2jx5w3n.mjs +0 -2
- package/dist/chunks/cli-1.1.28-n7v87yyn.mjs +0 -2
- package/dist/chunks/cli-1.1.28-n8d1x31e.mjs +0 -2
- package/dist/chunks/cli-1.1.28-neqd5cwa.mjs +0 -2
- package/dist/chunks/cli-1.1.28-nq2qxnzx.mjs +0 -10
- package/dist/chunks/cli-1.1.28-nqjbqqb6.mjs +0 -4
- package/dist/chunks/cli-1.1.28-nyvjfkx6.mjs +0 -2
- package/dist/chunks/cli-1.1.28-p11zcjmv.mjs +0 -2
- package/dist/chunks/cli-1.1.28-pabfwpqr.mjs +0 -2
- package/dist/chunks/cli-1.1.28-pdxwmetp.mjs +0 -25
- package/dist/chunks/cli-1.1.28-pfnc9p9n.mjs +0 -2
- package/dist/chunks/cli-1.1.28-prd0t983.mjs +0 -9
- package/dist/chunks/cli-1.1.28-pykx8k1j.mjs +0 -4
- package/dist/chunks/cli-1.1.28-q14qmewe.mjs +0 -2
- package/dist/chunks/cli-1.1.28-q43r6snq.mjs +0 -2
- package/dist/chunks/cli-1.1.28-q6dv65zx.mjs +0 -2
- package/dist/chunks/cli-1.1.28-qb921m5a.mjs +0 -3
- package/dist/chunks/cli-1.1.28-qf1qq8t0.mjs +0 -3
- package/dist/chunks/cli-1.1.28-qhqkr80z.mjs +0 -45
- package/dist/chunks/cli-1.1.28-qj312jgw.mjs +0 -2
- package/dist/chunks/cli-1.1.28-qjn28vhw.mjs +0 -2
- package/dist/chunks/cli-1.1.28-qrx5ata3.mjs +0 -2
- package/dist/chunks/cli-1.1.28-qvpamm5s.mjs +0 -4
- package/dist/chunks/cli-1.1.28-qvr8rkg2.mjs +0 -2
- package/dist/chunks/cli-1.1.28-qzg6n6hj.mjs +0 -2
- package/dist/chunks/cli-1.1.28-r81y1681.mjs +0 -3
- package/dist/chunks/cli-1.1.28-rbjeq16x.mjs +0 -2
- package/dist/chunks/cli-1.1.28-rbne7wtq.mjs +0 -4
- package/dist/chunks/cli-1.1.28-rez81jab.mjs +0 -6
- package/dist/chunks/cli-1.1.28-rq49kn4q.mjs +0 -2
- package/dist/chunks/cli-1.1.28-rt0aect8.mjs +0 -2
- package/dist/chunks/cli-1.1.28-rwfwz209.mjs +0 -2
- package/dist/chunks/cli-1.1.28-s1pbcd86.mjs +0 -3
- package/dist/chunks/cli-1.1.28-s2pcpdyc.mjs +0 -2
- package/dist/chunks/cli-1.1.28-s6w8jb6z.mjs +0 -2
- package/dist/chunks/cli-1.1.28-smb1frk6.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ss8nzmnb.mjs +0 -12
- package/dist/chunks/cli-1.1.28-sx3mmc5d.mjs +0 -2
- package/dist/chunks/cli-1.1.28-sz8sgxj4.mjs +0 -2
- package/dist/chunks/cli-1.1.28-t5yawarz.mjs +0 -2
- package/dist/chunks/cli-1.1.28-tt0c354s.mjs +0 -2
- package/dist/chunks/cli-1.1.28-v1p12e3g.mjs +0 -2
- package/dist/chunks/cli-1.1.28-v5r7bmzh.mjs +0 -2
- package/dist/chunks/cli-1.1.28-v5ypq0r2.mjs +0 -2
- package/dist/chunks/cli-1.1.28-v6ewa1y0.mjs +0 -2
- package/dist/chunks/cli-1.1.28-vctvnrwx.mjs +0 -133
- package/dist/chunks/cli-1.1.28-vf3j29kt.mjs +0 -2
- package/dist/chunks/cli-1.1.28-vgfss8e4.mjs +0 -2
- package/dist/chunks/cli-1.1.28-vje1ac31.mjs +0 -7
- package/dist/chunks/cli-1.1.28-vphadsag.mjs +0 -2
- package/dist/chunks/cli-1.1.28-vyzp74xh.mjs +0 -3
- package/dist/chunks/cli-1.1.28-w0kxa99b.mjs +0 -2
- package/dist/chunks/cli-1.1.28-w6cd3j36.mjs +0 -20
- package/dist/chunks/cli-1.1.28-wew8jymx.mjs +0 -2
- package/dist/chunks/cli-1.1.28-wmyy1pdj.mjs +0 -2
- package/dist/chunks/cli-1.1.28-wvj52k91.mjs +0 -2
- package/dist/chunks/cli-1.1.28-wze93r29.mjs +0 -2
- package/dist/chunks/cli-1.1.28-x04zkwy5.mjs +0 -18
- package/dist/chunks/cli-1.1.28-x0ypcq4e.mjs +0 -2
- package/dist/chunks/cli-1.1.28-x13sctb2.mjs +0 -2
- package/dist/chunks/cli-1.1.28-xv2tg10n.mjs +0 -2
- package/dist/chunks/cli-1.1.28-y173v5ak.mjs +0 -133
- package/dist/chunks/cli-1.1.28-y4k1f7he.mjs +0 -2
- package/dist/chunks/cli-1.1.28-y5w3ev7m.mjs +0 -2
- package/dist/chunks/cli-1.1.28-yaa1gft3.mjs +0 -15
- package/dist/chunks/cli-1.1.28-ypzyse5q.mjs +0 -2
- package/dist/chunks/cli-1.1.28-yv5gzenz.mjs +0 -2
- package/dist/chunks/cli-1.1.28-yyk292aq.mjs +0 -6
- package/dist/chunks/cli-1.1.28-z4kzjv3v.mjs +0 -21
- package/dist/chunks/cli-1.1.28-z5mbbt38.mjs +0 -2
- package/dist/chunks/cli-1.1.28-zarbrcn7.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ze1j03ww.mjs +0 -1
- package/dist/chunks/cli-1.1.28-zhftjycn.mjs +0 -5553
- package/dist/chunks/cli-1.1.28-zqpvgqxf.mjs +0 -2
- package/dist/chunks/cli-1.1.28-zv9zfwz9.mjs +0 -2
- package/dist/chunks/client-1.1.28-59t63af8.mjs +0 -1
- package/dist/chunks/color-1.1.28-gmbrq89g.mjs +0 -1
- package/dist/chunks/compact-1.1.28-14hmkmd6.mjs +0 -3
- package/dist/chunks/config-1.1.28-b69ey9g1.mjs +0 -1
- package/dist/chunks/config-1.1.28-cryax439.mjs +0 -1
- package/dist/chunks/constants-1.1.28-63cv4s6z.mjs +0 -1
- package/dist/chunks/context-1.1.28-09kfp2sa.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.28-h9279pbh.mjs +0 -1
- package/dist/chunks/conversation-1.1.28-qnj7ywxq.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.28-yjrmx9z1.mjs +0 -1
- package/dist/chunks/copy-1.1.28-az1n9y3n.mjs +0 -9
- package/dist/chunks/cost-1.1.28-507xt42s.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.28-m9ecjhc1.mjs +0 -1
- package/dist/chunks/createSession-1.1.28-gbrmw9ad.mjs +0 -1
- package/dist/chunks/debug-1.1.28-k9m06yz6.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.28-4sxh2jyw.mjs +0 -1534
- package/dist/chunks/desktop-1.1.28-ycc1hv5c.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.28-mxrqqjv6.mjs +0 -1
- package/dist/chunks/detection-1.1.28-06p2mev8.mjs +0 -1
- package/dist/chunks/diff-1.1.28-d9a2n60t.mjs +0 -1
- package/dist/chunks/doctor-1.1.28-qef12k2p.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.28-v5rq4x27.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.28-xr89w719.mjs +0 -1
- package/dist/chunks/effort-1.1.28-yjbwr68r.mjs +0 -13
- package/dist/chunks/engine-1.1.28-yv6qdcgp.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.28-tpjzc2ar.mjs +0 -1
- package/dist/chunks/envUtils-1.1.28-n17cxj8h.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.28-c7vj172q.mjs +0 -1
- package/dist/chunks/environments-1.1.28-08b7gpg6.mjs +0 -1
- package/dist/chunks/errors-1.1.28-eysc80qa.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.28-gk1ma509.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.28-4nc53n56.mjs +0 -1
- package/dist/chunks/exit-1.1.28-7rjnfzc2.mjs +0 -1
- package/dist/chunks/explorer-1.1.28-hf7jvkfg.mjs +0 -1
- package/dist/chunks/export-1.1.28-3xgdy7gr.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.28-6wkgsscs.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.28-03hnqa8n.mjs +0 -1
- package/dist/chunks/fast-1.1.28-gf0rb9by.mjs +0 -1
- package/dist/chunks/feedback-1.1.28-dvdyq5v7.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.28-rd6eskzg.mjs +0 -1
- package/dist/chunks/git-1.1.28-ktf61jaz.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.28-re8t0b2z.mjs +0 -1
- package/dist/chunks/goal-1.1.28-s7n55rqn.mjs +0 -4
- package/dist/chunks/growthbook-1.1.28-jcs0qzz8.mjs +0 -1
- package/dist/chunks/headless-1.1.28-yzfk04g2.mjs +0 -2
- package/dist/chunks/heapdump-1.1.28-hgfac8pe.mjs +0 -6
- package/dist/chunks/help-1.1.28-yhrv28x1.mjs +0 -1
- package/dist/chunks/hookChains-1.1.28-9y5pz734.mjs +0 -3
- package/dist/chunks/hooks-1.1.28-pwy1h39c.mjs +0 -79
- package/dist/chunks/hooks-1.1.28-xhtrbwa5.mjs +0 -1
- package/dist/chunks/ide-1.1.28-27vb56tk.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.28-b092deny.mjs +0 -1
- package/dist/chunks/import-1.1.28-bqs6ebec.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.28-0jb4nc2j.mjs +0 -1
- package/dist/chunks/index-1.1.28-0p3tfhd7.mjs +0 -23
- package/dist/chunks/index-1.1.28-30ges9rx.mjs +0 -1
- package/dist/chunks/index-1.1.28-3kg2kmpd.mjs +0 -1
- package/dist/chunks/index-1.1.28-76ztpb54.mjs +0 -1
- package/dist/chunks/index-1.1.28-a6fzpa8n.mjs +0 -1
- package/dist/chunks/index-1.1.28-ac1sbem8.mjs +0 -9
- package/dist/chunks/index-1.1.28-axnrgqkq.mjs +0 -1
- package/dist/chunks/index-1.1.28-b5b1qact.mjs +0 -1
- package/dist/chunks/index-1.1.28-bqm5cnw1.mjs +0 -1
- package/dist/chunks/index-1.1.28-bt937784.mjs +0 -1
- package/dist/chunks/index-1.1.28-bxtzy977.mjs +0 -2
- package/dist/chunks/index-1.1.28-dgnx1m4x.mjs +0 -9
- package/dist/chunks/index-1.1.28-dtfxav1q.mjs +0 -1
- package/dist/chunks/index-1.1.28-gk3v69b8.mjs +0 -1
- package/dist/chunks/index-1.1.28-m2nnkj3d.mjs +0 -1
- package/dist/chunks/index-1.1.28-qk8rhq5n.mjs +0 -1
- package/dist/chunks/index-1.1.28-vgc6r0g0.mjs +0 -1
- package/dist/chunks/index-1.1.28-w2a4k4md.mjs +0 -2
- package/dist/chunks/index-1.1.28-wajajmmp.mjs +0 -1
- package/dist/chunks/index-1.1.28-xaw4tf13.mjs +0 -30
- package/dist/chunks/index-1.1.28-y7jd8m9f.mjs +0 -1
- package/dist/chunks/index-1.1.28-ymg3kz4x.mjs +0 -5
- package/dist/chunks/index-1.1.28-z85wbmey.mjs +0 -1
- package/dist/chunks/init-1.1.28-vt168swt.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.28-vtkc85kf.mjs +0 -1
- package/dist/chunks/ink-1.1.28-8bcvzs97.mjs +0 -1
- package/dist/chunks/insights-1.1.28-hcccjwbm.mjs +0 -870
- package/dist/chunks/install-1.1.28-azeaj14w.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.28-jr58yj7c.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.28-ca73e004.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.28-v5fj6zfn.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.28-k8pjx51r.mjs +0 -1
- package/dist/chunks/keybindings-1.1.28-szefym9t.mjs +0 -2
- package/dist/chunks/knowledge-1.1.28-twc2bf6q.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.28-swqk1ppm.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.28-gvzkk593.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.28-j5fvzh5b.mjs +0 -1
- package/dist/chunks/log-1.1.28-744tvnnz.mjs +0 -1
- package/dist/chunks/main-1.1.28-ngd4qj24.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.28-v3t5y08t.mjs +0 -1
- package/dist/chunks/mcp-1.1.28-bjtwbjwv.mjs +0 -17
- package/dist/chunks/mcp-1.1.28-k0p4t3rs.mjs +0 -1
- package/dist/chunks/mcp-1.1.28-pxxge6kd.mjs +0 -4
- package/dist/chunks/mcpb-1.1.28-rjvsf8d4.mjs +0 -1
- package/dist/chunks/memory-1.1.28-437zyh3m.mjs +0 -77
- package/dist/chunks/model-1.1.28-1weg50dg.mjs +0 -2
- package/dist/chunks/model-1.1.28-qbnnaa17.mjs +0 -1
- package/dist/chunks/node-1.1.28-f9q7m0bb.mjs +0 -15
- package/dist/chunks/node-1.1.28-q18jbvyv.mjs +0 -1
- package/dist/chunks/oauth-1.1.28-nv1bmgrh.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.28-qt0bgn0p.mjs +0 -14
- package/dist/chunks/output-style-1.1.28-xpmnvzvz.mjs +0 -1
- package/dist/chunks/package-OS7RONXY-1.1.28-s8fma63p.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.28-9e7g8r3q.mjs +0 -1
- package/dist/chunks/parser-1.1.28-hahczgmc.mjs +0 -1
- package/dist/chunks/passes-1.1.28-73vxd2mh.mjs +0 -1
- package/dist/chunks/permissions-1.1.28-4dzfyh6m.mjs +0 -1
- package/dist/chunks/permissions-1.1.28-mh27xg9k.mjs +0 -3
- package/dist/chunks/plan-1.1.28-awnhzrk0.mjs +0 -1
- package/dist/chunks/plist-1.1.28-yf5fjx19.mjs +0 -1
- package/dist/chunks/plugin-1.1.28-m9j8cnkz.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.28-w4yvsmat.mjs +0 -1
- package/dist/chunks/plugins-1.1.28-rgr19gwa.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.28-bq157gz5.mjs +0 -2
- package/dist/chunks/print-1.1.28-g8smjzce.mjs +0 -57
- package/dist/chunks/process-1.1.28-tk5w2b0a.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.28-0a601ws2.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.28-2mq2y7nd.mjs +0 -9
- package/dist/chunks/prompt-1.1.28-tj8v37yx.mjs +0 -1
- package/dist/chunks/prompt-1.1.28-x4mxe7n2.mjs +0 -1
- package/dist/chunks/prompts-1.1.28-z2rx5cb6.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.28-cvce24s6.mjs +0 -13
- package/dist/chunks/provider-1.1.28-wd0k9dj9.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.28-ansdm0bp.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.28-xkpar3nj.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.28-kv8762wq.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.28-464hjqs0.mjs +0 -26
- package/dist/chunks/registry-1.1.28-a9wz892f.mjs +0 -1
- package/dist/chunks/release-notes-1.1.28-3dsn738r.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.28-8kfgxbx6.mjs +0 -2
- package/dist/chunks/remote-env-1.1.28-x46beyd7.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.28-1pr9890h.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.28-0dbsb9gr.mjs +0 -1
- package/dist/chunks/rename-1.1.28-m7z3qe6s.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.28-h8cn3e2b.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.28-dc94xnm0.mjs +0 -1
- package/dist/chunks/resume-1.1.28-mr6necqk.mjs +0 -2
- package/dist/chunks/rewind-1.1.28-dk5z09nd.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.28-g6c2bc4a.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.28-2r5z099n.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.28-9gkyj8zg.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.28-mvyww40e.mjs +0 -1
- package/dist/chunks/session-1.1.28-8xwfxnzq.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.28-6twnc7gm.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.28-w6yt6st1.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.28-rfvff5qy.mjs +0 -1
- package/dist/chunks/settings-1.1.28-b3wrgfej.mjs +0 -1
- package/dist/chunks/setup-1.1.28-6vt58sg8.mjs +0 -12
- package/dist/chunks/sinks-1.1.28-rdvsx829.mjs +0 -1
- package/dist/chunks/skills-1.1.28-b53h2c2v.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.28-mk4vmdef.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.28-0p8x3xh5.mjs +0 -1
- package/dist/chunks/state-1.1.28-fd27gqw0.mjs +0 -1
- package/dist/chunks/stats-1.1.28-fmezsyc4.mjs +0 -1
- package/dist/chunks/status-1.1.28-67a4bkc3.mjs +0 -1
- package/dist/chunks/stickers-1.1.28-0g68m8nd.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.28-548a2kyv.mjs +0 -1
- package/dist/chunks/tasks-1.1.28-h3xfz4f4.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.28-4twfmqhf.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.28-7p6f8wg0.mjs +0 -1
- package/dist/chunks/teleport-1.1.28-zdrc7v25.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.28-fbkk7v65.mjs +0 -1
- package/dist/chunks/theme-1.1.28-tj36fh0f.mjs +0 -1
- package/dist/chunks/thinkback-1.1.28-x1bq9k3h.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.28-3jdfk2q7.mjs +0 -1
- package/dist/chunks/toolPool-1.1.28-fpt8xrnv.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.28-mvqt18a8.mjs +0 -1
- package/dist/chunks/tools-1.1.28-a9t3fc6d.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.28-9e0gqehg.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.28-dhs0afg7.mjs +0 -69
- package/dist/chunks/types-1.1.28-51fcbp8c.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.28-d4ca5c58.mjs +0 -4
- package/dist/chunks/update-1.1.28-t9v2gpbh.mjs +0 -72
- package/dist/chunks/upgrade-1.1.28-12174ed0.mjs +0 -1
- package/dist/chunks/upload-1.1.28-whe18m8m.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.28-bnjrek99.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.28-0gh9dbnj.mjs +0 -1
- package/dist/chunks/usage-1.1.28-6m1bv4x5.mjs +0 -1
- package/dist/chunks/util-1.1.28-cvpx898d.mjs +0 -1
- package/dist/chunks/utils-1.1.28-ztac8cf7.mjs +0 -1
- package/dist/chunks/vim-1.1.28-rrv9qbr2.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.28-rtznty0c.mjs +0 -13
- package/dist/chunks/watcher-1.1.28-7v4bd9pm.mjs +0 -1
- package/dist/chunks/wiki-1.1.28-m0y2n8rc.mjs +0 -132
- package/dist/chunks/workflows-1.1.28-k9wt163q.mjs +0 -1
- package/dist/chunks/worktree-1.1.28-5bjehwgc.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.28-d1yy7627.mjs +0 -1
- package/dist/chunks/wrapper-1.1.28-qgyry9mh.mjs +0 -7
- /package/dist/chunks/{cli-1.1.28-m37hk495.mjs → cli-1.1.29-09pf4n9h.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.28-f658tc1w.mjs → cli-1.1.29-8zfk7gyk.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.28-m7x3ax7z.mjs → cli-1.1.29-h0m93zmw.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.28-7d7hz6b4.mjs → cli-1.1.29-skjcgaw2.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.28-qzdtd4w8.mjs → cli-1.1.29-v507w0kc.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.28-43p679k7.mjs → cli-1.1.29-vk67t66v.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{sf as o0,tf as Pq,uf as l0,vf as Mq,wf as v0,xf as Bq,yf as S0,zf as Aq}from"./cli-1.1.29-erh6v56f.mjs";import{Bf as Eq,Cf as hq,Ef as Dq}from"./cli-1.1.29-27h8nqm5.mjs";import"./cli-1.1.29-gfwfhh3b.mjs";import{$g as Kq,ah as jq}from"./cli-1.1.29-hez6jzkx.mjs";import{Eo as J0,FN as Xq,Fo as t0,Go as W0,Ho as e0,Hx as F0,IN as Yq,Io as y0,JN as yq,Jo as qq,Jx as Rq,Kx as _0,Mo as P0,NN as Zq,No as Gq,fI as M0,gI as Qq,gN as b0,nG as Jq,oN as B0,uG as uq,uN as fq,vN as zq}from"./cli-1.1.29-am1n3767.mjs";import"./cli-1.1.29-cwngf5s4.mjs";import"./cli-1.1.29-7vrxybxh.mjs";import"./cli-1.1.29-ra7737c1.mjs";import"./cli-1.1.29-zf1md9se.mjs";import"./cli-1.1.29-31y8na35.mjs";import"./cli-1.1.29-6ngsfhk3.mjs";import"./cli-1.1.29-zh2qqpcy.mjs";import"./cli-1.1.29-ccmw3ns3.mjs";import"./cli-1.1.29-0vpcc8vm.mjs";import"./cli-1.1.29-xjh2k6ex.mjs";import{AW as lq,xW as Vq}from"./cli-1.1.29-cgska4m2.mjs";import"./cli-1.1.29-kjbjanmr.mjs";import"./cli-1.1.29-89nqwnk6.mjs";import"./cli-1.1.29-sb5dzja5.mjs";import"./cli-1.1.29-c67xmzgw.mjs";import"./cli-1.1.29-f8qh0czy.mjs";import"./cli-1.1.29-995n5c8r.mjs";import"./cli-1.1.29-9fkgjjzm.mjs";import"./cli-1.1.29-xfcy5e42.mjs";import{DY as r0,EY as Nq,FY as s0}from"./cli-1.1.29-6qykmvew.mjs";import"./cli-1.1.29-dseazhey.mjs";import{FZ as A0,J1 as d0,OZ as X0,a1 as u,c1 as L,e1 as U,i1 as f0}from"./cli-1.1.29-7pfvq0z6.mjs";import"./cli-1.1.29-0s73ykp6.mjs";import"./cli-1.1.29-23gv5dgk.mjs";import"./cli-1.1.29-smn5dd7n.mjs";import"./cli-1.1.29-yddrcp23.mjs";import"./cli-1.1.29-1dqp4d2w.mjs";import"./cli-1.1.29-mcacd7ag.mjs";import"./cli-1.1.29-q7nywp06.mjs";import"./cli-1.1.29-9qc9kyz8.mjs";import"./cli-1.1.29-aa81cr7r.mjs";import"./cli-1.1.29-3fcr0sm5.mjs";import"./cli-1.1.29-akx5bp37.mjs";import"./cli-1.1.29-nx6ynaex.mjs";import{c5 as J,d5 as W,e5 as m}from"./cli-1.1.29-nxvs12dw.mjs";import{f5 as U0}from"./cli-1.1.29-aptcshv0.mjs";import"./cli-1.1.29-kd96jtpb.mjs";import"./cli-1.1.29-0kfg7hf8.mjs";import"./cli-1.1.29-ymcd1d05.mjs";import"./cli-1.1.29-m4j21s8k.mjs";import"./cli-1.1.29-8k2xw0ns.mjs";import"./cli-1.1.29-57e9kkv7.mjs";import"./cli-1.1.29-5gydp5n7.mjs";import"./cli-1.1.29-29svre2k.mjs";import"./cli-1.1.29-71e5px3b.mjs";import"./cli-1.1.29-cjy4bmpv.mjs";import{B$ as w,C$ as u0,Dea as n0,uea as a0,vea as Fq}from"./cli-1.1.29-a6pnwve8.mjs";import"./cli-1.1.29-5p2zzfpq.mjs";import"./cli-1.1.29-84fpb4zk.mjs";import"./cli-1.1.29-6g47vtst.mjs";import"./cli-1.1.29-252q86ck.mjs";import"./cli-1.1.29-m7rehwdd.mjs";import"./cli-1.1.29-4bemzx23.mjs";import"./cli-1.1.29-3dnft82a.mjs";import"./cli-1.1.29-gycpj0z6.mjs";import{Kla as dq,zla as kq}from"./cli-1.1.29-rfz718th.mjs";import"./cli-1.1.29-q4fv8e5e.mjs";import"./cli-1.1.29-v6y1118n.mjs";import"./cli-1.1.29-79tgwbnn.mjs";import"./cli-1.1.29-dfra4ygt.mjs";import"./cli-1.1.29-4pdnzc5j.mjs";import"./cli-1.1.29-pf67dsfj.mjs";import"./cli-1.1.29-2e5s8gsb.mjs";import"./cli-1.1.29-9n8sz71q.mjs";import"./cli-1.1.29-snxnt4nr.mjs";import{Sta as o,Wta as Q0}from"./cli-1.1.29-4xqgqvwm.mjs";function j0({agentServer:G,onCancel:q,onComplete:Q}){let[X]=X0(),[y,M]=d.useState(!1),[B,Y]=d.useState(null),[O,D]=d.useState(null),R=d.useRef(null);d.useEffect(()=>()=>R.current?.abort(),[]);let T=d.useCallback(()=>{if(y)R.current?.abort(),R.current=null,M(!1),D(null)},[y]);r0("confirm:no",T,{context:"Confirmation",isActive:y});let b=d.useCallback(async()=>{if(!G.needsAuth||!G.url)return;M(!0),Y(null);let N=new AbortController;R.current=N;try{let H={type:G.transport,url:G.url};await Yq(G.name,H,D,N.signal),Q?.(`Authentication successful for ${G.name}. The server will connect when the agent runs.`)}catch(H){if(H instanceof Error&&!(H instanceof Xq))Y(H.message)}finally{M(!1),R.current=null}},[G,Q]),k=a0(String(G.name));if(y)return W(L,{flexDirection:"column",gap:1,padding:1,children:[W(U,{color:"claude",children:["Authenticating with ",G.name,"…"]}),W(L,{children:[J(M0,{}),J(U,{children:" A browser window will open for authentication"})]}),O&&W(L,{flexDirection:"column",children:[J(U,{dimColor:!0,children:"If your browser doesn't open automatically, copy this URL manually:"}),J(f0,{url:O})]}),J(L,{marginLeft:3,children:W(U,{dimColor:!0,children:["Return here after authenticating in your browser."," ",J(W0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]})})]});let f=[];if(G.needsAuth)f.push({label:G.isAuthenticated?"Re-authenticate":"Authenticate",value:"auth"});return f.push({label:"Back",value:"back"}),W(P0,{title:`${k} MCP Server`,subtitle:"agent-only",onCancel:q,inputGuide:(N)=>N.pending?W(U,{children:["Press ",N.keyName," again to exit"]}):W(y0,{children:[J(J0,{shortcut:"↑↓",action:"navigate"}),J(J0,{shortcut:"Enter",action:"confirm"}),J(W0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]}),children:[W(L,{flexDirection:"column",gap:0,children:[W(L,{children:[J(U,{bold:!0,children:"Type: "}),J(U,{dimColor:!0,children:G.transport})]}),G.url&&W(L,{children:[J(U,{bold:!0,children:"URL: "}),J(U,{dimColor:!0,children:G.url})]}),G.command&&W(L,{children:[J(U,{bold:!0,children:"Command: "}),J(U,{dimColor:!0,children:G.command})]}),W(L,{children:[J(U,{bold:!0,children:"Used by: "}),J(U,{dimColor:!0,children:G.sourceAgents.join(", ")})]}),W(L,{marginTop:1,children:[J(U,{bold:!0,children:"Status: "}),W(U,{children:[u("inactive",X)(w.radioOff)," not connected (agent-only)"]})]}),G.needsAuth&&W(L,{children:[J(U,{bold:!0,children:"Auth: "}),G.isAuthenticated?W(U,{children:[u("success",X)(w.tick)," authenticated"]}):W(U,{children:[u("warning",X)(w.triangleUpOutline)," may need authentication"]})]})]}),J(L,{children:J(U,{dimColor:!0,children:"This server connects only when running the agent."})}),B&&J(L,{children:W(U,{color:"error",children:["Error: ",B]})}),J(L,{children:J(Jq,{options:f,onChange:async(N)=>{switch(N){case"auth":await b();break;case"back":q();break}},onCancel:q})})]})}var d;var m0=Q0(()=>{u0();d0();s0();Zq();n0();e0();uq();qq();Gq();t0();Qq();m();d=o(U0(),1)});function Uq(G){switch(G){case"project":return{label:"Project MCPs",path:B0(G)};case"user":return{label:"User MCPs",path:B0(G)};case"local":return{label:"Local MCPs",path:B0(G)};case"enterprise":return{label:"Enterprise MCPs"};case"dynamic":return{label:"Built-in MCPs",path:"always available"};default:return{label:G}}}function mq(G){let q=new Map;for(let Q of G){let X=Q.scope;if(!q.has(X))q.set(X,[]);q.get(X).push(Q)}for(let[,Q]of q)Q.sort((X,y)=>X.name.localeCompare(y.name));return q}function p0(G){let q=Lq.c(78),{servers:Q,agentServers:X,onSelectServer:y,onSelectAgentServer:M,onComplete:B}=G,Y;if(q[0]!==X)Y=X===void 0?[]:X,q[0]=X,q[1]=Y;else Y=q[1];let O=Y,[D]=X0(),[R,T]=Oq.useState(0),b;if(q[2]!==Q){let Z=Q.filter(oq);b=mq(Z),q[2]=Q,q[3]=b}else b=q[3];let k=b,f;if(q[4]!==Q)f=Q.filter(cq).sort(xq),q[4]=Q,q[5]=f;else f=q[5];let N=f,H;if(q[6]!==k)H=(k.get("dynamic")??[]).sort(_q),q[6]=k,q[7]=H;else H=q[7];let P=H,C;if(q[8]===Symbol.for("react.memo_cache_sentinel"))C=Uq("dynamic"),q[8]=C;else C=q[8];let l=C,K;if(q[9]!==O||q[10]!==N||q[11]!==P||q[12]!==k){K=[];for(let Z of Wq){let A=k.get(Z)??[];for(let I of A)K.push({type:"server",server:I})}for(let Z of N)K.push({type:"server",server:Z});for(let Z of O)K.push({type:"agent-server",agentServer:Z});for(let Z of P)K.push({type:"server",server:Z});q[9]=O,q[10]=N,q[11]=P,q[12]=k,q[13]=K}else K=q[13];let z=K,V;if(q[14]!==B)V=()=>{B("MCP dialog dismissed",{display:"system"})},q[14]=B,q[15]=V;else V=q[15];let E=V,F;if(q[16]!==M||q[17]!==y||q[18]!==z||q[19]!==R)F=()=>{let Z=z[R];if(!Z)return;if(Z.type==="server")y(Z.server);else if(Z.type==="agent-server"&&M)M(Z.agentServer)},q[16]=M,q[17]=y,q[18]=z,q[19]=R,q[20]=F;else F=q[20];let h=F,p,g;if(q[21]!==z)g=()=>T((Z)=>Z===0?z.length-1:Z-1),p=()=>T((Z)=>Z===z.length-1?0:Z+1),q[21]=z,q[22]=p,q[23]=g;else p=q[22],g=q[23];let S;if(q[24]!==E||q[25]!==h||q[26]!==p||q[27]!==g)S={"confirm:previous":g,"confirm:next":p,"confirm:yes":h,"confirm:no":E},q[24]=E,q[25]=h,q[26]=p,q[27]=g,q[28]=S;else S=q[28];let v;if(q[29]===Symbol.for("react.memo_cache_sentinel"))v={context:"Confirmation"},q[29]=v;else v=q[29];Nq(S,v);let _;if(q[30]!==z)_=(Z)=>z.findIndex((A)=>A.type==="server"&&A.server===Z),q[30]=z,q[31]=_;else _=q[31];let N0=_,i;if(q[32]!==z)i=(Z)=>z.findIndex((A)=>A.type==="agent-server"&&A.agentServer===Z),q[32]=z,q[33]=i;else i=q[33];let Z0=i,$;if(q[34]===Symbol.for("react.memo_cache_sentinel"))$=kq(),q[34]=$;else $=q[34];let Cq=$,z0;if(q[35]!==Q)z0=Q.some(gq),q[35]=Q,q[36]=z0;else z0=q[36];let h0=z0;if(Q.length===0&&O.length===0)return null;let K0;if(q[37]!==N0||q[38]!==R||q[39]!==D)K0=(Z)=>{let A=N0(Z),I=R===A,j,c;if(Z.client.type==="disabled")j=u("inactive",D)(w.radioOff),c="disabled";else if(Z.client.type==="connected")j=u("success",D)(w.tick),c="connected";else if(Z.client.type==="pending"){j=u("inactive",D)(w.radioOff);let{reconnectAttempt:i0,maxReconnectAttempts:$0}=Z.client;if(i0&&$0)c=`reconnecting (${i0}/${$0})…`;else c="connecting…"}else if(Z.client.type==="needs-auth")j=u("warning",D)(w.triangleUpOutline),c="needs authentication";else j=u("error",D)(w.cross),c="failed";return W(L,{children:[J(U,{color:I?"suggestion":void 0,children:I?`${w.pointer} `:" "}),J(U,{color:I?"suggestion":void 0,children:Z.name}),W(U,{dimColor:!I,children:[" · ",j," "]}),J(U,{dimColor:!I,children:c})]},`${Z.name}-${A}`)},q[37]=N0,q[38]=R,q[39]=D,q[40]=K0;else K0=q[40];let x=K0,L0;if(q[41]!==Z0||q[42]!==R||q[43]!==D)L0=(Z)=>{let A=Z0(Z),I=R===A,j=Z.needsAuth?u("warning",D)(w.triangleUpOutline):u("inactive",D)(w.radioOff),c=Z.needsAuth?"may need auth":"agent-only";return W(L,{children:[J(U,{color:I?"suggestion":void 0,children:I?`${w.pointer} `:" "}),J(U,{color:I?"suggestion":void 0,children:Z.name}),W(U,{dimColor:!I,children:[" · ",j," "]}),J(U,{dimColor:!I,children:c})]},`agent-${Z.name}-${A}`)},q[41]=Z0,q[42]=R,q[43]=D,q[44]=L0;else L0=q[44];let T0=L0,O0=Q.length+O.length,R0;if(q[45]===Symbol.for("react.memo_cache_sentinel"))R0=J(Kq,{}),q[45]=R0;else R0=q[45];let E0;if(q[46]!==O0)E0=Fq(O0,"server"),q[46]=O0,q[47]=E0;else E0=q[47];let C0=`${O0} ${E0}`,a;if(q[48]!==x||q[49]!==k)a=Wq.map((Z)=>{let A=k.get(Z);if(!A||A.length===0)return null;let I=Uq(Z);return W(L,{flexDirection:"column",marginBottom:1,children:[W(L,{paddingLeft:2,children:[J(U,{bold:!0,children:I.label}),I.path&&W(U,{dimColor:!0,children:[" (",I.path,")"]})]}),A.map((j)=>x(j))]},Z)}),q[48]=x,q[49]=k,q[50]=a;else a=q[50];let n;if(q[51]!==N||q[52]!==x)n=N.length>0&&W(L,{flexDirection:"column",marginBottom:1,children:[J(L,{paddingLeft:2,children:J(U,{bold:!0,children:"claude.ai"})}),N.map((Z)=>x(Z))]}),q[51]=N,q[52]=x,q[53]=n;else n=q[53];let r;if(q[54]!==O||q[55]!==T0)r=O.length>0&&W(L,{flexDirection:"column",marginBottom:1,children:[J(L,{paddingLeft:2,children:J(U,{bold:!0,children:"Agent MCPs"})}),[...new Set(O.flatMap(pq))].map((Z)=>W(L,{flexDirection:"column",marginTop:1,children:[J(L,{paddingLeft:2,children:W(U,{dimColor:!0,children:["@",Z]})}),O.filter((A)=>A.sourceAgents.includes(Z)).map((A)=>T0(A))]},Z))]}),q[54]=O,q[55]=T0,q[56]=r;else r=q[56];let s;if(q[57]!==P||q[58]!==x)s=P.length>0&&W(L,{flexDirection:"column",marginBottom:1,children:[W(L,{paddingLeft:2,children:[J(U,{bold:!0,children:l.label}),l.path&&W(U,{dimColor:!0,children:[" (",l.path,")"]})]}),P.map((Z)=>x(Z))]}),q[57]=P,q[58]=x,q[59]=s;else s=q[59];let t;if(q[60]!==h0)t=h0&&J(U,{dimColor:!0,children:Cq?"※ Error logs shown inline with --debug":"※ Run claude --debug to see error logs"}),q[60]=h0,q[61]=t;else t=q[61];let D0;if(q[62]===Symbol.for("react.memo_cache_sentinel"))D0=W(U,{dimColor:!0,children:[J(f0,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})," ","for help"]}),q[62]=D0;else D0=q[62];let e;if(q[63]!==t)e=W(L,{flexDirection:"column",children:[t,D0]}),q[63]=t,q[64]=e;else e=q[64];let q0;if(q[65]!==a||q[66]!==n||q[67]!==r||q[68]!==s||q[69]!==e)q0=W(L,{flexDirection:"column",children:[a,n,r,s,e]}),q[65]=a,q[66]=n,q[67]=r,q[68]=s,q[69]=e,q[70]=q0;else q0=q[70];let G0;if(q[71]!==E||q[72]!==C0||q[73]!==q0)G0=J(P0,{title:"Manage MCP servers",subtitle:C0,onCancel:E,hideInputGuide:!0,children:q0}),q[71]=E,q[72]=C0,q[73]=q0,q[74]=G0;else G0=q[74];let H0;if(q[75]===Symbol.for("react.memo_cache_sentinel"))H0=J(L,{paddingX:1,children:J(U,{dimColor:!0,italic:!0,children:W(y0,{children:[J(J0,{shortcut:"↑↓",action:"navigate"}),J(J0,{shortcut:"Enter",action:"confirm"}),J(W0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})}),q[75]=H0;else H0=q[75];let V0;if(q[76]!==G0)V0=W(L,{flexDirection:"column",children:[R0,G0,H0]}),q[76]=G0,q[77]=V0;else V0=q[77];return V0}function pq(G){return G.sourceAgents}function gq(G){return G.client.type==="failed"}function _q(G,q){return G.name.localeCompare(q.name)}function xq(G,q){return G.name.localeCompare(q.name)}function cq(G){return G.client.config.type==="claudeai-proxy"}function oq(G){return G.client.config.type!=="claudeai-proxy"}var Lq,Oq,Wq;var g0=Q0(()=>{u0();d0();s0();zq();dq();n0();e0();qq();Gq();t0();jq();m();Lq=o(A0(),1),Oq=o(U0(),1),Wq=["project","local","user","enterprise"]});function x0(G){let q=Hq.c(25),{serverName:Q,onComplete:X}=G,[y]=X0(),M=Rq(),B=Eq(),[Y,O]=k0.useState(!0),[D,R]=k0.useState(null),T,b;if(q[0]!==X||q[1]!==B||q[2]!==Q||q[3]!==M)T=()=>{(async function(){try{if(!M.getState().mcp.clients.find((P)=>P.name===Q)){R(`MCP server "${Q}" not found`),O(!1),X(`MCP server "${Q}" not found`);return}let H=await B(Q);q:switch(H.client.type){case"connected":{O(!1),X(`Successfully reconnected to ${Q}`);break q}case"needs-auth":{R(`${Q} requires authentication`),O(!1),X(`${Q} requires authentication. Use /mcp to authenticate.`);break q}case"pending":case"failed":case"disabled":R(`Failed to reconnect to ${Q}`),O(!1),X(`Failed to reconnect to ${Q}`)}}catch(N){let H=N,P=H instanceof Error?H.message:String(H);R(P),O(!1),X(`Error: ${P}`)}})()},b=[Q,B,M,X],q[0]=X,q[1]=B,q[2]=Q,q[3]=M,q[4]=T,q[5]=b;else T=q[4],b=q[5];if(k0.useEffect(T,b),Y){let k;if(q[6]!==Q)k=W(U,{color:"text",children:["Reconnecting to ",J(U,{bold:!0,children:Q})]}),q[6]=Q,q[7]=k;else k=q[7];let f;if(q[8]===Symbol.for("react.memo_cache_sentinel"))f=W(L,{children:[J(M0,{}),J(U,{children:" Establishing connection to MCP server"})]}),q[8]=f;else f=q[8];let N;if(q[9]!==k)N=W(L,{flexDirection:"column",gap:1,padding:1,children:[k,f]}),q[9]=k,q[10]=N;else N=q[10];return N}if(D){let k;if(q[11]!==y)k=u("error",y)(w.cross),q[11]=y,q[12]=k;else k=q[12];let f;if(q[13]!==k)f=W(U,{children:[k," "]}),q[13]=k,q[14]=f;else f=q[14];let N;if(q[15]!==Q)N=W(U,{color:"error",children:["Failed to reconnect to ",Q]}),q[15]=Q,q[16]=N;else N=q[16];let H;if(q[17]!==f||q[18]!==N)H=W(L,{children:[f,N]}),q[17]=f,q[18]=N,q[19]=H;else H=q[19];let P;if(q[20]!==D)P=W(U,{dimColor:!0,children:["Error: ",D]}),q[20]=D,q[21]=P;else P=q[21];let C;if(q[22]!==H||q[23]!==P)C=W(L,{flexDirection:"column",gap:1,padding:1,children:[H,P]}),q[22]=H,q[23]=P,q[24]=C;else C=q[24];return C}return null}var Hq,k0;var c0=Q0(()=>{u0();d0();Dq();_0();Qq();m();Hq=o(A0(),1),k0=o(U0(),1)});function I0(G){let q=bq.c(66),{onComplete:Q}=G,X=F0($q),y=F0(iq),M=X.clients,B;if(q[0]===Symbol.for("react.memo_cache_sentinel"))B={type:"list"},q[0]=B;else B=q[0];let[Y,O]=Y0.default.useState(B),D;if(q[1]===Symbol.for("react.memo_cache_sentinel"))D=[],q[1]=D;else D=q[1];let[R,T]=Y0.default.useState(D),b;if(q[2]!==y.allAgents)b=fq(y.allAgents),q[2]=y.allAgents,q[3]=b;else b=q[3];let k=b,f;if(q[4]!==M)f=M.filter(Sq).sort(vq),q[4]=M,q[5]=f;else f=q[5];let N=f,H,P;if(q[6]!==N||q[7]!==X.tools)H=()=>{let K=!1;return async function(){let E=await Promise.all(N.map(async(F)=>{let h=F.config.scope,p=F.config.type==="sse",g=F.config.type==="http",S=F.config.type==="claudeai-proxy",v=void 0;if(p||g){let i=await new yq(F.name,F.config).tokens(),Z0=Vq()!==null&&F.type==="connected",$=F.type==="connected"&&b0(X.tools,F.name).length>0;v=Boolean(i)||Z0||$}let _={name:F.name,client:F,scope:h};if(S)return{..._,transport:"claudeai-proxy",isAuthenticated:!1,config:F.config};else if(p)return{..._,transport:"sse",isAuthenticated:v,config:F.config};else if(g)return{..._,transport:"http",isAuthenticated:v,config:F.config};else return{..._,transport:"stdio",config:F.config}}));if(K)return;T(E)}(),()=>{K=!0}},P=[N,X.tools],q[6]=N,q[7]=X.tools,q[8]=H,q[9]=P;else H=q[8],P=q[9];Y0.default.useEffect(H,P);let C,l;if(q[10]!==k.length||q[11]!==N.length||q[12]!==Q||q[13]!==R.length)C=()=>{if(R.length===0&&N.length>0)return;if(R.length===0&&k.length===0)Q("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `claude mcp --help` or visit https://code.claude.com/docs/en/mcp to learn more.")},l=[R.length,N.length,k.length,Q],q[10]=k.length,q[11]=N.length,q[12]=Q,q[13]=R.length,q[14]=C,q[15]=l;else C=q[14],l=q[15];switch(Y0.useEffect(C,l),Y.type){case"list":{let K,z;if(q[16]===Symbol.for("react.memo_cache_sentinel"))z=(E)=>O({type:"server-menu",server:E}),K=(E)=>O({type:"agent-server-menu",agentServer:E}),q[16]=K,q[17]=z;else K=q[16],z=q[17];let V;if(q[18]!==k||q[19]!==Q||q[20]!==R||q[21]!==Y.defaultTab)V=J(p0,{servers:R,agentServers:k,onSelectServer:z,onSelectAgentServer:K,onComplete:Q,defaultTab:Y.defaultTab}),q[18]=k,q[19]=Q,q[20]=R,q[21]=Y.defaultTab,q[22]=V;else V=q[22];return V}case"server-menu":{let K;if(q[23]!==X.tools||q[24]!==Y.server.name)K=b0(X.tools,Y.server.name),q[23]=X.tools,q[24]=Y.server.name,q[25]=K;else K=q[25];let z=K,V=Y.server.transport==="claudeai-proxy"?"claude.ai":"Claude Code";if(Y.server.transport==="stdio"){let E;if(q[26]!==Y.server)E=()=>O({type:"server-tools",server:Y.server}),q[26]=Y.server,q[27]=E;else E=q[27];let F;if(q[28]!==V)F=()=>O({type:"list",defaultTab:V}),q[28]=V,q[29]=F;else F=q[29];let h;if(q[30]!==Q||q[31]!==z.length||q[32]!==E||q[33]!==F||q[34]!==Y.server)h=J(l0,{server:Y.server,serverToolsCount:z.length,onViewTools:E,onCancel:F,onComplete:Q}),q[30]=Q,q[31]=z.length,q[32]=E,q[33]=F,q[34]=Y.server,q[35]=h;else h=q[35];return h}else{let E;if(q[36]!==Y.server)E=()=>O({type:"server-tools",server:Y.server}),q[36]=Y.server,q[37]=E;else E=q[37];let F;if(q[38]!==V)F=()=>O({type:"list",defaultTab:V}),q[38]=V,q[39]=F;else F=q[39];let h;if(q[40]!==Q||q[41]!==z.length||q[42]!==E||q[43]!==F||q[44]!==Y.server)h=J(o0,{server:Y.server,serverToolsCount:z.length,onViewTools:E,onCancel:F,onComplete:Q}),q[40]=Q,q[41]=z.length,q[42]=E,q[43]=F,q[44]=Y.server,q[45]=h;else h=q[45];return h}}case"server-tools":{let K,z;if(q[46]!==Y.server)z=(E,F)=>O({type:"server-tool-detail",server:Y.server,toolIndex:F}),K=()=>O({type:"server-menu",server:Y.server}),q[46]=Y.server,q[47]=K,q[48]=z;else K=q[47],z=q[48];let V;if(q[49]!==K||q[50]!==z||q[51]!==Y.server)V=J(S0,{server:Y.server,onSelectTool:z,onBack:K}),q[49]=K,q[50]=z,q[51]=Y.server,q[52]=V;else V=q[52];return V}case"server-tool-detail":{let K;if(q[53]!==X.tools||q[54]!==Y.server.name)K=b0(X.tools,Y.server.name),q[53]=X.tools,q[54]=Y.server.name,q[55]=K;else K=q[55];let V=K[Y.toolIndex];if(!V)return O({type:"server-tools",server:Y.server}),null;let E;if(q[56]!==Y.server)E=()=>O({type:"server-tools",server:Y.server}),q[56]=Y.server,q[57]=E;else E=q[57];let F;if(q[58]!==E||q[59]!==V||q[60]!==Y.server)F=J(v0,{tool:V,server:Y.server,onBack:E}),q[58]=E,q[59]=V,q[60]=Y.server,q[61]=F;else F=q[61];return F}case"agent-server-menu":{let K;if(q[62]===Symbol.for("react.memo_cache_sentinel"))K=()=>O({type:"list",defaultTab:"Agents"}),q[62]=K;else K=q[62];let z;if(q[63]!==Q||q[64]!==Y.agentServer)z=J(j0,{agentServer:Y.agentServer,onCancel:K,onComplete:Q}),q[63]=Q,q[64]=Y.agentServer,q[65]=z;else z=q[65];return z}}}function vq(G,q){return G.name.localeCompare(q.name)}function Sq(G){return G.name!=="ide"}function iq(G){return G.agentDefinitions}function $q(G){return G.mcp}var bq,Y0;var Iq=Q0(()=>{Zq();zq();_0();lq();m0();g0();Pq();Mq();Bq();Aq();m();bq=o(A0(),1),Y0=o(U0(),1)});var wq=Q0(()=>{m0();g0();c0();Pq();Iq();Mq();Bq();Aq()});function aq(G){let q=Tq.c(7),{action:Q,target:X,onComplete:y}=G,M=F0(rq),B=hq(),Y=w0.useRef(!1),O,D;if(q[0]!==Q||q[1]!==M||q[2]!==y||q[3]!==X||q[4]!==B)O=()=>{if(Y.current)return;Y.current=!0;let R=Q==="enable",T=M.filter(nq),b=X==="all"?T.filter((k)=>R?k.type==="disabled":k.type!=="disabled"):T.filter((k)=>k.name===X);if(b.length===0){y(X==="all"?`All MCP servers are already ${R?"enabled":"disabled"}`:`MCP server "${X}" not found`);return}for(let k of b)B(k.name);y(X==="all"?`${R?"Enabled":"Disabled"} ${b.length} MCP server(s)`:`MCP server "${X}" ${R?"enabled":"disabled"}`)},D=[Q,X,M,B,y],q[0]=Q,q[1]=M,q[2]=y,q[3]=X,q[4]=B,q[5]=O,q[6]=D;else O=q[5],D=q[6];return w0.useEffect(O,D),null}function nq(G){return G.name!=="ide"}function rq(G){return G.mcp.clients}async function UJ(G,q,Q){if(Q){let X=Q.trim().split(/\s+/);if(X[0]==="no-redirect")return J(I0,{onComplete:G});if(X[0]==="reconnect"&&X[1])return J(x0,{serverName:X.slice(1).join(" "),onComplete:G});if(X[0]==="enable"||X[0]==="disable")return J(aq,{action:X[0],target:X.length>1?X.slice(1).join(" "):"all",onComplete:G})}return J(I0,{onComplete:G})}var Tq,w0;var sq=Q0(()=>{wq();c0();Dq();_0();m();Tq=o(A0(),1),w0=o(U0(),1)});sq();export{UJ as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wta as z}from"./cli-1.1.29-4xqgqvwm.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import{lg as NJ,mg as RQ,ng as Mq,pg as BJ}from"./cli-1.1.29-57f3k3fp.mjs";import{Go as cq,Ho as OQ,Hx as mq,Io as GJ,Jo as AQ,Kx as lQ,MT as $,Mm as PJ,Mo as ZQ,NT as sJ,No as YZ,OT as aJ,PT as rJ,Pm as mQ,RT as hq,VT as Eq,WT as UQ,fG as dq,gG as sQ,hU as gJ,ku as HJ,lu as bQ,mE as $J,nE as nQ,nG as xJ,ou as rq,pu as WQ,qE as yJ,qu as YJ,qy as VJ,rE as iQ,rq as KJ,ru as vQ,sq as FQ,sy as IQ,tG as LJ,uG as kJ}from"./cli-1.1.29-am1n3767.mjs";import"./cli-1.1.29-cwngf5s4.mjs";import"./cli-1.1.29-7vrxybxh.mjs";import"./cli-1.1.29-ra7737c1.mjs";import"./cli-1.1.29-zf1md9se.mjs";import"./cli-1.1.29-31y8na35.mjs";import"./cli-1.1.29-6ngsfhk3.mjs";import"./cli-1.1.29-zh2qqpcy.mjs";import"./cli-1.1.29-ccmw3ns3.mjs";import"./cli-1.1.29-0vpcc8vm.mjs";import"./cli-1.1.29-xjh2k6ex.mjs";import"./cli-1.1.29-cgska4m2.mjs";import"./cli-1.1.29-kjbjanmr.mjs";import"./cli-1.1.29-89nqwnk6.mjs";import"./cli-1.1.29-sb5dzja5.mjs";import"./cli-1.1.29-c67xmzgw.mjs";import"./cli-1.1.29-f8qh0czy.mjs";import"./cli-1.1.29-995n5c8r.mjs";import"./cli-1.1.29-9fkgjjzm.mjs";import"./cli-1.1.29-xfcy5e42.mjs";import{DY as x,EY as XJ,FY as UJ,IY as fJ,JY as dQ}from"./cli-1.1.29-6qykmvew.mjs";import"./cli-1.1.29-dseazhey.mjs";import{FZ as DJ,J1 as Sq,c1 as b,e1 as W,i1 as QQ}from"./cli-1.1.29-7pfvq0z6.mjs";import"./cli-1.1.29-0s73ykp6.mjs";import"./cli-1.1.29-23gv5dgk.mjs";import"./cli-1.1.29-smn5dd7n.mjs";import"./cli-1.1.29-yddrcp23.mjs";import"./cli-1.1.29-1dqp4d2w.mjs";import"./cli-1.1.29-mcacd7ag.mjs";import"./cli-1.1.29-q7nywp06.mjs";import"./cli-1.1.29-9qc9kyz8.mjs";import"./cli-1.1.29-aa81cr7r.mjs";import"./cli-1.1.29-3fcr0sm5.mjs";import"./cli-1.1.29-akx5bp37.mjs";import"./cli-1.1.29-nx6ynaex.mjs";import{c5 as X,d5 as V,e5 as y}from"./cli-1.1.29-nxvs12dw.mjs";import{f5 as jq}from"./cli-1.1.29-aptcshv0.mjs";import"./cli-1.1.29-kd96jtpb.mjs";import"./cli-1.1.29-0kfg7hf8.mjs";import"./cli-1.1.29-ymcd1d05.mjs";import{D5 as WJ,F5 as CQ}from"./cli-1.1.29-m4j21s8k.mjs";import"./cli-1.1.29-8k2xw0ns.mjs";import"./cli-1.1.29-57e9kkv7.mjs";import{j_ as wJ,k_ as cQ}from"./cli-1.1.29-5gydp5n7.mjs";import"./cli-1.1.29-29svre2k.mjs";import"./cli-1.1.29-71e5px3b.mjs";import"./cli-1.1.29-cjy4bmpv.mjs";import{Efa as vJ,Hfa as IJ,Ifa as RJ,Jba as m,Jfa as PQ,Nfa as oJ,Ofa as tJ,Qaa as DQ,Sfa as uQ,Tfa as TJ,Xba as ZJ,afa as uq,aia as Jq,iia as zJ,naa as FJ,qfa as gQ,rfa as D,vfa as d,yfa as lq}from"./cli-1.1.29-a6pnwve8.mjs";import{Bia as vq,Fia as aq}from"./cli-1.1.29-5p2zzfpq.mjs";import"./cli-1.1.29-84fpb4zk.mjs";import"./cli-1.1.29-6g47vtst.mjs";import"./cli-1.1.29-252q86ck.mjs";import"./cli-1.1.29-m7rehwdd.mjs";import{Qja as uJ,Sja as zZ}from"./cli-1.1.29-4bemzx23.mjs";import"./cli-1.1.29-3dnft82a.mjs";import{Eka as gq,Hka as hQ}from"./cli-1.1.29-gycpj0z6.mjs";import"./cli-1.1.29-rfz718th.mjs";import"./cli-1.1.29-q4fv8e5e.mjs";import{_la as JJ,gma as JQ,mma as QJ}from"./cli-1.1.29-v6y1118n.mjs";import{Ama as EJ,pma as Kq}from"./cli-1.1.29-79tgwbnn.mjs";import{dsa as pQ,koa as _J}from"./cli-1.1.29-dfra4ygt.mjs";import"./cli-1.1.29-4pdnzc5j.mjs";import"./cli-1.1.29-pf67dsfj.mjs";import"./cli-1.1.29-2e5s8gsb.mjs";import"./cli-1.1.29-9n8sz71q.mjs";import"./cli-1.1.29-snxnt4nr.mjs";import{Sta as Qq,Tta as xQ,Wta as M}from"./cli-1.1.29-4xqgqvwm.mjs";import{readdir as HQ}from"fs/promises";import{basename as YQ,sep as VQ}from"path";function Iq(J){return`${xq}${J.isTeamDir?"1":"0"}${bq}${J.title}${bq}${J.dir}`}function oq(J){if(!J.startsWith(xq))return null;let q=J.slice(xq.length),Q=q.indexOf(bq);if(Q===-1)return null;let Z=q.indexOf(bq,Q+1);if(Z===-1)return null;return{isTeamDir:q.slice(0,Q)==="1",title:q.slice(Q+1,Z),dir:q.slice(Z+1)}}function LQ(J){return(J===void 0?"":`[${J}]`).padEnd(tq)}function kQ(J){return J.filename.includes(VQ)||J.filename.includes("/")}function NQ(J){if(J===null)return;let q=J.replace(/\s+/g," ").trim();if(q.length<=sq)return q===""?void 0:q;return`${q.slice(0,sq-1).trimEnd()}…`}function eq(J,q){let{indexPath:Q,indexExists:Z,includeNested:H=!1}=q,U=[];if(Z)U.push({label:`${"".padEnd(tq)}${YQ(Q)}`,value:Q,description:"the index loaded into context every session",isIndex:!0});for(let B of J){if(!H&&kQ(B))continue;U.push({label:`${LQ(B.type)}${B.filename.replace(/\.md$/,"")} ${vq(new Date(B.mtimeMs))}`,value:B.filePath,description:NQ(B.description),isIndex:!1})}return U}function qJ(J,q){let Q=J.split(`
|
|
2
|
+
`),Z=Q.filter((H)=>{let U=BQ.exec(H);return U===null||U[1]!==q});return Z.length===Q.length?J:Z.join(`
|
|
3
|
+
`)}async function pq(J){try{return(await HQ(J,{withFileTypes:!0})).filter((Q)=>Q.isFile()&&Q.name.endsWith(".md")&&Q.name!==$).length}catch{return 0}}var xq="__browse_dir__",Gq="__memory_tidy__",bq="\x1F",tq,sq=60,BQ;var Rq=M(()=>{hq();WQ();aq();tq=Math.max(...rq.map((J)=>J.length))+4;BQ=/\]\(([^)]+)\)/});import{basename as qq}from"path";import{mkdir as jQ,readFile as SQ,stat as MQ,unlink as _Q,writeFile as EQ}from"fs/promises";function OJ({dir:J,title:q,indexPath:Q,isTeamDir:Z=!1,onBack:H}){let[U,B]=L.useState(null),[P,E]=L.useState(!1),[zq,p]=L.useState(0),[k,O]=L.useState(void 0),[I,A]=L.useState(null),[w,l]=L.useState(!1),[N,h]=L.useState(null),[c,g]=L.useState(null);L.useEffect(()=>{let K=new AbortController,G=!1;return(async()=>{let[v,f]=await Promise.all([YJ(J,K.signal),MQ(Q).then(()=>!0,()=>!1)]);if(G)return;B(v),E(f)})(),()=>{G=!0,K.abort()}},[J,Q,zq]);let j=L.useMemo(()=>U===null?[]:eq(U,{indexPath:Q,indexExists:P}),[U,Q,P]),wq=L.useMemo(()=>j.map((K)=>({label:K.label,value:K.value,description:K.description})),[j]),F=j.find((K)=>K.value===k)??null;L.useEffect(()=>{if(k===void 0)return;let K=new AbortController;return HJ(k,0,TQ,void 0,K.signal).then((G)=>{let{frontmatter:v,content:f}=KJ(G.content,k),R=f.split(`
|
|
4
|
+
`),Xq=G.content.split(`
|
|
5
|
+
`).length-R.length,C=R.slice(0,wQ),T=typeof v.type==="string"?v.type:null;A({heading:T?`${T} · ${qq(k,".md")}`:qq(k),body:C.join(`
|
|
6
|
+
`).trim(),moreLines:Math.max(0,G.totalLines-Xq-C.length)})},(G)=>{if(JJ(G))return;Jq(G),A(null)}),()=>K.abort()},[k]);let S=L.useCallback((K)=>{if(!NJ()){g("No editor configured — set $EDITOR or $VISUAL to edit memories here.");return}let G=Mq(K);if(G.error){g(G.error);return}g(null),p((v)=>v+1)},[]),u=L.useCallback(async()=>{let K=N;if(K===null)return;h(null);try{await _Q(K.value);let G=await SQ(Q,"utf8").catch(()=>null);if(G!==null){let v=qJ(G,qq(K.value));if(v!==G)await EQ(Q,v,"utf8")}g(`Deleted ${qq(K.value)}`)}catch(G){Jq(G),g(`Could not delete ${qq(K.value)}`)}O(void 0),A(null),p((G)=>G+1)},[N,Q]),Tq=L.useMemo(()=>({"memory:openFolder":()=>{jQ(J,{recursive:!0}).catch(()=>{}).then(()=>WJ(J))},"memory:delete":()=>{if(F===null||F.isIndex)return!1;h(F)}}),[J,F]);if(XJ(Tq,{context:"Memory",isActive:!w&&N===null}),x("confirm:yes",()=>void u(),{context:"Confirmation",isActive:N!==null}),x("confirm:no",()=>h(null),{context:"Confirmation",isActive:N!==null}),U===null)return X(b,{flexDirection:"column",width:"100%",children:V(W,{dimColor:!0,children:["Reading ",m(J),"…"]})});return V(b,{flexDirection:"column",width:"100%",children:[X(b,{marginBottom:1,children:V(W,{bold:!0,children:[q,V(W,{dimColor:!0,children:[" · ",m(J)]})]})}),j.length===0?X(W,{dimColor:!0,children:"No memories here yet. They appear as Claudin saves them."}):X(LJ,{options:wq,visibleOptionCount:5,showOverflowCount:!0,searchPlaceholder:"Search memories…",isDisabled:N!==null,onSearchModeChange:l,onFocus:O,onChange:S,onCancel:H}),N!==null?V(b,{flexDirection:"column",marginTop:1,children:[V(W,{color:"error",children:["Delete ",qq(N.value),"?"]}),X(W,{dimColor:!0,children:Z?"Shared memory — the deletion reaches the team on the next sync. Its line in MEMORY.md goes too.":"Its line in MEMORY.md goes too."})]}):I!==null&&V(b,{flexDirection:"column",marginTop:1,children:[X(W,{dimColor:!0,children:I.heading}),I.body===""?X(W,{dimColor:!0,children:"(empty)"}):X(VJ,{dimColor:!0,children:I.body}),I.moreLines>0&&V(W,{dimColor:!0,children:["… +",I.moreLines," more lines"]})]}),c!==null&&X(b,{marginTop:1,children:X(W,{dimColor:!0,children:c})}),X(b,{marginTop:1,children:X(W,{dimColor:!0,italic:!0,children:V(GJ,{children:[N!==null?X(W,{dimColor:!0,children:"y to delete"}):X(W,{dimColor:!0,children:"enter to edit"}),N!==null?X(W,{dimColor:!0,children:"n to cancel"}):X(cq,{action:"memory:delete",context:"Memory",fallback:"d",description:"delete"}),N===null&&X(cq,{action:"memory:openFolder",context:"Memory",fallback:"o",description:"open folder"}),N===null&&X(W,{dimColor:!0,children:"esc to go back"})]})})})]})}var L,wQ=10,TQ=40;var AJ=M(()=>{vQ();Rq();CQ();RQ();QJ();ZJ();bQ();FQ();zJ();OQ();kJ();AQ();Sq();BJ();UJ();IQ();y();L=Qq(jq(),1)});function CJ(J){return FJ(J)!==null}var bJ=M(()=>{DQ()});import{basename as fQ,join as $Q}from"path";function yQ(J){return J.type==="Project"&&J.parent===void 0&&RJ(fQ(J.path))}function jJ(J,q){let Q=new Set(J.filter(yQ).map((Z)=>Z.path));return IJ(q,(Z)=>Q.has(Z))??$Q(q,vJ)}var SJ=M(()=>{PQ()});import{basename as aQ,join as rQ}from"path";function hJ(J){let q=pJ.c(58),{onSelect:Q,onCancel:Z,dirCounts:H}=J,U=_.use(Eq()),B=_J(),P=rQ(Kq(),"CLAUDE.md"),E=jJ(U,B),zq=aQ(E),p=U.some((z)=>z.path===P),k=U.some((z)=>z.path===E),O=[...U.filter(ZZ).map(QZ),...p?[]:[{path:P,type:"User",content:"",exists:!1}],...k?[]:[{path:E,type:"Project",content:"",exists:!1}]],I=new Map,A=O.map((z)=>{let Y=m(z.path),yq=z.exists?"":" (new)",Cq=z.parent?(I.get(z.parent)??0)+1:0;I.set(z.path,Cq);let GQ=Cq>0?" ".repeat(Cq-1):"",Uq;if(z.type==="User"&&!z.isNested&&z.path===P)Uq="User memory";else if(z.type==="Project"&&!z.isNested&&z.path===E)Uq="Project memory";else if(Cq>0)Uq=`${GQ}L ${Y}${yq}`;else Uq=`${Y}`;let e,KQ=CJ(B);if(z.type==="User"&&!z.isNested)e="Saved in ~/.claudin/CLAUDE.md";else if(z.type==="Project"&&!z.isNested&&z.path===E)e=`${KQ?"Checked in at":"Saved in"} ./${zq}`;else if(z.parent)e="@-imported";else if(z.isNested)e="dynamically loaded";else e="";return{label:Uq,value:z.path,description:e}}),w=[],l=mq(JZ);if(D()){let z=d();if(w.push({label:`Private memory${H?` · ${H.private}`:""}`,value:Iq({dir:z,title:"Private memory",isTeamDir:!1}),description:`Saved in ${m(z)}`}),MJ?.isTeamMemoryEnabled()){let Y=MJ.getTeamMemPath();w.push({label:`Team memory${H?` · ${H.team}`:""}`,value:Iq({dir:Y,title:"Team memory",isTeamDir:!0}),description:`Shared with the team, synced from ${m(Y)}`})}w.push({label:"Tidy memories",value:Gq,description:"Merge duplicate memories and rebuild the index"});for(let Y of l.activeAgents)if(Y.memory){let yq=PJ(Y.agentType,Y.memory);w.push({label:`${wJ.bold(Y.agentType)} agent memory`,value:Iq({dir:yq,title:`${Y.agentType} agent memory`,isTeamDir:!1}),description:`${Y.memory} scope`})}}A.push(...w);let N;if(q[2]!==A)N=_q&&A.some(qZ)?_q:A[0]?.value||"",q[2]=A,q[3]=N;else N=q[3];let h=N,[c,g]=_.useState(D),[j,wq]=_.useState($J),[F]=_.useState(D),S=mq(tQ),[u,Tq]=_.useState(null),K;if(q[4]!==F)K=()=>{if(!F)return;yJ().then(Tq)},q[4]=F,q[5]=K;else K=q[5];let G;if(q[6]!==S||q[7]!==F)G=[F,S],q[6]=S,q[7]=F,q[8]=G;else G=q[8];_.useEffect(K,G);let v;if(q[9]!==S||q[10]!==u)v=S?"running":u===null?"":u===0?"never":`last ran ${vq(new Date(u))}`,q[9]=S,q[10]=u,q[11]=v;else v=q[11];let f=v,[R,Xq]=_.useState(null),C=R!==null,T=F?1:0,Hq;if(q[12]!==c)Hq=function(){let Y=!c;uq("userSettings",{autoMemoryEnabled:Y}),g(Y),gq("",{enabled:Y})},q[12]=c,q[13]=Hq;else Hq=q[13];let Dq=Hq,Yq;if(q[14]!==j)Yq=function(){let Y=!j;uq("userSettings",{autoDreamEnabled:Y}),wq(Y),gq("",{enabled:Y})},q[14]=j,q[15]=Yq;else Yq=q[15];let Pq=Yq;fJ();let Vq;if(q[16]===Symbol.for("react.memo_cache_sentinel"))Vq={context:"Confirmation"},q[16]=Vq;else Vq=q[16];x("confirm:no",Z,Vq);let Lq;if(q[17]!==R||q[18]!==Pq||q[19]!==Dq)Lq=()=>{if(R===0)Dq();else if(R===1)Pq()},q[17]=R,q[18]=Pq,q[19]=Dq,q[20]=Lq;else Lq=q[20];let kq;if(q[21]!==C)kq={context:"Confirmation",isActive:C},q[21]=C,q[22]=kq;else kq=q[22];x("confirm:yes",Lq,kq);let Nq;if(q[23]!==T)Nq=()=>{Xq((z)=>z!==null&&z<T?z+1:null)},q[23]=T,q[24]=Nq;else Nq=q[24];let Bq;if(q[25]!==C)Bq={context:"Select",isActive:C},q[25]=C,q[26]=Bq;else Bq=q[26];x("select:next",Nq,Bq);let Oq;if(q[27]===Symbol.for("react.memo_cache_sentinel"))Oq=()=>{Xq(oQ)},q[27]=Oq;else Oq=q[27];let Aq;if(q[28]!==C)Aq={context:"Select",isActive:C},q[28]=C,q[29]=Aq;else Aq=q[29];x("select:previous",Oq,Aq);let fq=R===0,$q=c?"on":"off",n;if(q[30]!==$q)n=V(W,{children:["Auto-memory: ",$q]}),q[30]=$q,q[31]=n;else n=q[31];let i;if(q[32]!==fq||q[33]!==n)i=X(dq,{isFocused:fq,children:n}),q[32]=fq,q[33]=n,q[34]=i;else i=q[34];let s;if(q[35]!==j||q[36]!==f||q[37]!==R||q[38]!==S||q[39]!==F)s=F&&X(dq,{isFocused:R===1,styled:!1,children:V(W,{color:R===1?"suggestion":void 0,children:["Auto-dream: ",j?"on":"off",f&&V(W,{dimColor:!0,children:[" · ",f]}),!S&&j&&X(W,{dimColor:!0,children:" · /dream to run"})]})}),q[35]=j,q[36]=f,q[37]=R,q[38]=S,q[39]=F,q[40]=s;else s=q[40];let a;if(q[41]!==i||q[42]!==s)a=V(b,{flexDirection:"column",marginBottom:1,children:[i,s]}),q[41]=i,q[42]=s,q[43]=a;else a=q[43];let r;if(q[44]!==Q)r=(z)=>{if(z!==Gq)_q=z;Q(z)},q[44]=Q,q[45]=r;else r=q[45];let o;if(q[46]!==T)o=()=>Xq(T),q[46]=T,q[47]=o;else o=q[47];let t;if(q[48]!==h||q[49]!==A||q[50]!==Z||q[51]!==r||q[52]!==o||q[53]!==C)t=X(xJ,{defaultFocusValue:h,options:A,isDisabled:C,onChange:r,onCancel:Z,onUpFromFirstItem:o}),q[48]=h,q[49]=A,q[50]=Z,q[51]=r,q[52]=o,q[53]=C,q[54]=t;else t=q[54];let Fq;if(q[55]!==a||q[56]!==t)Fq=V(b,{flexDirection:"column",width:"100%",children:[a,t]}),q[55]=a,q[56]=t,q[57]=Fq;else Fq=q[57];return Fq}function oQ(J){return J!==null&&J>0?J-1:J}function tQ(J){return Object.values(J.tasks).some(eQ)}function eQ(J){return J.type==="dream"&&J.status==="running"}function qZ(J){return J.value===_q}function JZ(J){return J.agentDefinitions}function QZ(J){return{...J,exists:!0}}function ZZ(J){return J.type!=="AutoMem"&&J.type!=="TeamMem"}var pJ,_,MJ,_q;var cJ=M(()=>{cQ();pQ();dQ();Sq();UJ();lq();hQ();nQ();iQ();lQ();mQ();gJ();EJ();ZJ();aq();bJ();gQ();kJ();sQ();SJ();Rq();y();pJ=Qq(DJ(),1),_=Qq(jq(),1),MJ=(TJ(),xQ(uQ))});import{homedir as UZ}from"os";import{relative as GZ}from"path";function mJ(J){let q=UZ(),Q=uJ(),Z=J.startsWith(q)?"~"+J.slice(q.length):null,H=J.startsWith(Q)?"./"+GZ(Q,J):null;if(Z&&H)return Z.length<=H.length?Z:H;return Z||H||J}var XZ;var dJ=M(()=>{Sq();zZ();y();XZ=Qq(DJ(),1)});function lJ(J){return J.replace(KZ,"")}function nJ(J,q){let Q=lJ(J),Z=q===null?null:lJ(q),H=Math.round(aJ/WZ),U=Z!==null?"skip subdirectories other than the team dir handled separately":"skip all subdirectories",B=Z!==null?`
|
|
7
|
+
## Team memory
|
|
8
|
+
|
|
9
|
+
Also tidy the team memory directory: \`${Z}\`
|
|
10
|
+
|
|
11
|
+
- Apply the exact same orient → identify → merge → update-index steps inside \`${Z}\` (its index is \`${Z}/${$}\`)
|
|
12
|
+
- The team index may have its own structure beyond bare index lines — a \`# Team Memory\` header, an intro blockquote, \`## Section\` groupings. **Preserve all of it**: only touch the individual index lines for files you deleted or renamed, exactly as in the private index. Never reformat, reorder, or flatten the team index's sections.
|
|
13
|
+
- **Never merge across the boundary**: a private memory and a team memory about the same fact stay separate. Do not move content between \`${Q}\` and \`${Z}\`, do not merge a pair that spans the two, and do not "promote" a private memory into team — that is a deliberate user decision, not tidy's job.
|
|
14
|
+
- Files you change or delete here propagate to the team via automatic sync — another reason to stay strictly conservative.
|
|
15
|
+
`:"";return`# Memory Tidy: conservative duplicate merge
|
|
16
|
+
|
|
17
|
+
You are tidying the memory directory — a **conservative** pass that merges duplicate memory files and updates the index. This is NOT a dream/consolidation: do not look at transcripts, do not create new memories, do not reorganize by topic, and do not rewrite the content of files that are not duplicates.
|
|
18
|
+
|
|
19
|
+
Memory directory: \`${Q}\`
|
|
20
|
+
${rJ}
|
|
21
|
+
${B}
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Step 1 — Orient
|
|
25
|
+
|
|
26
|
+
- Read \`${Q}/${$}\` to see the current index
|
|
27
|
+
- Read every \`.md\` file in the directory — full contents, not just frontmatter (there are at most a couple hundred; ${U})
|
|
28
|
+
|
|
29
|
+
## Step 2 — Identify duplicates
|
|
30
|
+
|
|
31
|
+
Look for pairs or groups of files that record the **same fact**:
|
|
32
|
+
|
|
33
|
+
- Same topic under different names (e.g. \`feedback-build-after-edit.md\` vs \`always-build-after-source-change.md\`)
|
|
34
|
+
- Near-identical \`description\` frontmatter
|
|
35
|
+
- Heavily overlapping body content
|
|
36
|
+
|
|
37
|
+
Two files that merely **partially overlap** are NOT duplicates: if file A covers facts X+Y and file B covers X+Z, each holds a distinct fact — leave both alone. Only files where one is (nearly) fully redundant with the other qualify.
|
|
38
|
+
|
|
39
|
+
If you are not confident two files describe the same fact, they are NOT duplicates — leave both untouched and list them under "ambiguous pairs" in your report.
|
|
40
|
+
|
|
41
|
+
## Step 3 — Merge (conservatively)
|
|
42
|
+
|
|
43
|
+
For each confirmed duplicate group:
|
|
44
|
+
|
|
45
|
+
1. Pick the survivor: prefer the file with the more complete frontmatter and richer content; on a tie prefer the older file (check mtime with \`ls -l\` — its name is more likely already referenced elsewhere).
|
|
46
|
+
2. Fold the redundant file's content into the survivor. When the two files **conflict factually**, keep BOTH facts (union) and note the contradiction in your report — never silently pick one side.
|
|
47
|
+
3. Keep the survivor's frontmatter \`type\`; refresh its \`description\` only if the merged content demands it. If a file's frontmatter is malformed, skip that file entirely and note it in the report.
|
|
48
|
+
4. Delete the redundant file with \`rm\`. The user will see a permission prompt for each deletion — that is intentional, it is their chance to veto a merge.
|
|
49
|
+
|
|
50
|
+
Hard rules:
|
|
51
|
+
- Never merge across the private ↔ team boundary.
|
|
52
|
+
- Never delete a file that is merely stale, ambiguous, or low-quality — only confirmed duplicates. Stale or wrong content is reported, not fixed.
|
|
53
|
+
- Never create new memory files, and never touch files outside the memory directories.
|
|
54
|
+
|
|
55
|
+
## Step 4 — Update the index (minimal edits, NOT a rewrite)
|
|
56
|
+
|
|
57
|
+
Edit \`${Q}/${$}\` (and the team index if applicable) **in place, surgically**:
|
|
58
|
+
|
|
59
|
+
- Remove only the lines pointing at files you deleted
|
|
60
|
+
- Update the survivor's line only if its title/hook changed
|
|
61
|
+
- Do not reorder, regroup, reformat, or rewrite surviving lines — the rest of the index stays byte-for-byte as it was
|
|
62
|
+
- Format for any line you do touch: \`- [Title](file.md) — one-line hook\`, under ~150 chars
|
|
63
|
+
- The index must stay under ${sJ} lines AND under ~${H}KB — it's an index, never write memory content into it
|
|
64
|
+
|
|
65
|
+
## Step 5 — Report
|
|
66
|
+
|
|
67
|
+
Finish with a brief summary:
|
|
68
|
+
|
|
69
|
+
- **Merged**: which files combined into which survivor (X + Y → Z)
|
|
70
|
+
- **Deleted**: files removed
|
|
71
|
+
- **Ambiguous pairs left alone**: candidates you were not confident about, so the user can decide by hand
|
|
72
|
+
- **Conflicts noted**: factual contradictions you kept as union
|
|
73
|
+
- **Stale or broken observed**: outdated content, malformed frontmatter, or anything else you noticed but deliberately did NOT fix (tidy only merges duplicates)
|
|
74
|
+
|
|
75
|
+
If nothing was duplicated, say so — a tidy run that changes nothing is a correct outcome.`}var KZ,WZ=1024;var iJ=M(()=>{hq();KZ=/[/\\]+$/});function Wq(){if(oJ())return tJ();return null}var nq=M(()=>{TJ()});function eJ(J){let q=J.trim();return HZ.find((Q)=>Q===q)??null}function iq(J){if(!D())return J("Memory tidy unavailable: auto memory is disabled (autoMemoryEnabled is false, or CLAUDIN_DISABLE_AUTO_MEMORY is set).",{display:"system"}),null;return J("Running memory tidy — merging duplicate memories…",{display:"system",shouldQuery:!0,metaMessages:[nJ(d(),Wq())]}),null}var HZ;var qQ=M(()=>{lq();iJ();nq();HZ=["tidy","private","team"]});import{mkdir as VZ,writeFile as LZ}from"fs/promises";import{join as kZ}from"path";async function XQ(){if(!D())return{private:0,team:0};let J=Wq(),[q,Q]=await Promise.all([pq(d()),J===null?Promise.resolve(0):pq(J)]);return{private:q,team:Q}}function NZ(J){if(!D())return null;if(J==="team"){let q=Wq();return q===null?null:{dir:q,title:"Team memory",isTeamDir:!0}}return{dir:d(),title:"Private memory",isTeamDir:!1}}function BZ({onDone:J,initialCounts:q,initialBrowse:Q}){let[Z,H]=Zq.useState(q),[U,B]=Zq.useState(Q),P=async(k)=>{try{if(k.includes(Kq()))await VZ(Kq(),{recursive:!0});try{await LZ(k,"",{encoding:"utf8",flag:"wx"})}catch(l){if(JQ(l)!=="EEXIST")throw l}await Mq(k);let O="default",I="";if(process.env.VISUAL)O="$VISUAL",I=process.env.VISUAL;else if(process.env.EDITOR)O="$EDITOR",I=process.env.EDITOR;let A=O!=="default"?`Using ${O}="${I}".`:"",w=A?`> ${A} To change editor, set $EDITOR or $VISUAL environment variable.`:"> To use a different editor, set the $EDITOR or $VISUAL environment variable.";J(`Opened memory file at ${mJ(k)}
|
|
76
|
+
|
|
77
|
+
${w}`,{display:"system"})}catch(O){Jq(O),J(`Error opening memory file: ${O}`)}},E=Zq.useCallback((k)=>{if(k===Gq){iq(J);return}let O=oq(k);if(O!==null){B(O);return}P(k)},[J]),zq=Zq.useCallback(()=>{B(null),XQ().then(H,Jq)},[]),p=()=>{J("Cancelled memory editing",{display:"system"})};return X(ZQ,{title:"Memory",onCancel:p,color:"remember",isCancelActive:U===null,hideInputGuide:U!==null,children:U!==null?X(OJ,{dir:U.dir,title:U.title,indexPath:kZ(U.dir,$),isTeamDir:U.isTeamDir,onBack:zq}):V(b,{flexDirection:"column",children:[X(zQ.Suspense,{fallback:null,children:X(hJ,{onSelect:E,onCancel:p,dirCounts:Z})}),X(b,{marginTop:1,children:V(W,{dimColor:!0,children:["Learn more: ",X(QQ,{url:"https://code.claude.com/docs/en/memory"})]})})]})})}var zQ,Zq,r0=async(J,q,Q)=>{let Z=eJ(Q);if(Z==="tidy")return iq(J);UQ();let[,H]=await Promise.all([Eq(),XQ()]),U=Z===null?null:NZ(Z);return X(BZ,{onDone:J,initialCounts:H,initialBrowse:U})};var OZ=M(()=>{YZ();AJ();cJ();dJ();Sq();gJ();hq();lq();Rq();EJ();QJ();zJ();BJ();qQ();nq();y();zQ=Qq(jq(),1),Zq=Qq(jq(),1)});OZ();export{r0 as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$7 as z,C7 as a,D7 as b,E7 as c,F7 as d,G7 as e,H7 as f,I7 as g,J7 as h,K7 as i,L7 as j,M7 as k,N7 as l,O7 as m,P7 as n,Q7 as o,R7 as p,S7 as q,T7 as r,U7 as s,V7 as t,W7 as u,X7 as v,Y7 as w,Z7 as x,_7 as y,a8 as A,b8 as B,c8 as C,d8 as D,e8 as E}from"./cli-1.1.29-8k2xw0ns.mjs";import"./cli-1.1.29-57e9kkv7.mjs";import"./cli-1.1.29-5gydp5n7.mjs";import"./cli-1.1.29-29svre2k.mjs";import"./cli-1.1.29-71e5px3b.mjs";import"./cli-1.1.29-a6pnwve8.mjs";import"./cli-1.1.29-5p2zzfpq.mjs";import"./cli-1.1.29-84fpb4zk.mjs";import"./cli-1.1.29-6g47vtst.mjs";import"./cli-1.1.29-252q86ck.mjs";import"./cli-1.1.29-m7rehwdd.mjs";import"./cli-1.1.29-4bemzx23.mjs";import"./cli-1.1.29-3dnft82a.mjs";import"./cli-1.1.29-gycpj0z6.mjs";import"./cli-1.1.29-rfz718th.mjs";import"./cli-1.1.29-q4fv8e5e.mjs";import"./cli-1.1.29-v6y1118n.mjs";import"./cli-1.1.29-79tgwbnn.mjs";import"./cli-1.1.29-dfra4ygt.mjs";import"./cli-1.1.29-4pdnzc5j.mjs";import"./cli-1.1.29-pf67dsfj.mjs";import"./cli-1.1.29-2e5s8gsb.mjs";import"./cli-1.1.29-9n8sz71q.mjs";import"./cli-1.1.29-snxnt4nr.mjs";import"./cli-1.1.29-4xqgqvwm.mjs";E();export{y as resolveSkillModelOverride,t as renderModelSetting,v as renderModelName,p as renderDefaultModelSetting,x as parseUserSpecifiedModel,C as normalizeModelStringForAPI,D as modelRejectsSamplingParams,A as modelDisplayString,s as isOpus1mMergeEnabled,b as isNonCustomOpusModel,c as isNative1mModel,z as isLegacyModelRemapEnabled,d as getUserSpecifiedModelSetting,a as getSmallFastModel,j as getRuntimeMainLoopModel,w as getPublicModelName,u as getPublicModelDisplayName,r as getOpus5PricingSuffix,q as getOpus46PricingSuffix,B as getMarketingNameForModel,e as getMainLoopModel,h as getDefaultSonnetModel,g as getDefaultOpusModel,k as getDefaultMainLoopModelSetting,l as getDefaultMainLoopModel,i as getDefaultHaikuModel,o as getClaudeAiUserDefaultModelDescription,n as getCanonicalName,f as getBestModel,m as firstPartyNameToCanonical};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./cli-1.1.29-vp3z0245.mjs";import{$h as Rb,_h as m,ai as _,bi as Ub}from"./cli-1.1.29-v4wsvara.mjs";import"./cli-1.1.29-ypgjht1s.mjs";import"./cli-1.1.29-tf20f72b.mjs";import{Hx as W,Ix as v,Kx as Qb,Lw as i,Mw as r,Nw as Pb,gQ as t,hQ as Wb}from"./cli-1.1.29-am1n3767.mjs";import"./cli-1.1.29-cwngf5s4.mjs";import"./cli-1.1.29-7vrxybxh.mjs";import"./cli-1.1.29-ra7737c1.mjs";import"./cli-1.1.29-zf1md9se.mjs";import"./cli-1.1.29-31y8na35.mjs";import"./cli-1.1.29-6ngsfhk3.mjs";import"./cli-1.1.29-zh2qqpcy.mjs";import"./cli-1.1.29-ccmw3ns3.mjs";import"./cli-1.1.29-0vpcc8vm.mjs";import"./cli-1.1.29-xjh2k6ex.mjs";import"./cli-1.1.29-cgska4m2.mjs";import"./cli-1.1.29-kjbjanmr.mjs";import"./cli-1.1.29-89nqwnk6.mjs";import"./cli-1.1.29-sb5dzja5.mjs";import"./cli-1.1.29-c67xmzgw.mjs";import"./cli-1.1.29-f8qh0czy.mjs";import"./cli-1.1.29-995n5c8r.mjs";import"./cli-1.1.29-9fkgjjzm.mjs";import"./cli-1.1.29-xfcy5e42.mjs";import"./cli-1.1.29-6qykmvew.mjs";import"./cli-1.1.29-dseazhey.mjs";import{FZ as Nb}from"./cli-1.1.29-7pfvq0z6.mjs";import"./cli-1.1.29-0s73ykp6.mjs";import"./cli-1.1.29-23gv5dgk.mjs";import"./cli-1.1.29-smn5dd7n.mjs";import"./cli-1.1.29-yddrcp23.mjs";import"./cli-1.1.29-1dqp4d2w.mjs";import"./cli-1.1.29-mcacd7ag.mjs";import"./cli-1.1.29-q7nywp06.mjs";import"./cli-1.1.29-9qc9kyz8.mjs";import"./cli-1.1.29-aa81cr7r.mjs";import"./cli-1.1.29-3fcr0sm5.mjs";import"./cli-1.1.29-akx5bp37.mjs";import"./cli-1.1.29-nx6ynaex.mjs";import{c5 as Y,e5 as V}from"./cli-1.1.29-nxvs12dw.mjs";import{f5 as Kb}from"./cli-1.1.29-aptcshv0.mjs";import"./cli-1.1.29-kd96jtpb.mjs";import"./cli-1.1.29-0kfg7hf8.mjs";import"./cli-1.1.29-ymcd1d05.mjs";import"./cli-1.1.29-m4j21s8k.mjs";import{A7 as $,B7 as Gb,M7 as M,R7 as g,U7 as I,W6 as w,X6 as x,a7 as X,e8 as Hb,f7 as A,j8 as p,l8 as Jb,o7 as Bb,y7 as f,z7 as Eb}from"./cli-1.1.29-8k2xw0ns.mjs";import"./cli-1.1.29-57e9kkv7.mjs";import{j_ as Q,k_ as e}from"./cli-1.1.29-5gydp5n7.mjs";import"./cli-1.1.29-29svre2k.mjs";import"./cli-1.1.29-71e5px3b.mjs";import"./cli-1.1.29-cjy4bmpv.mjs";import{Cga as bb,Eha as C,Jga as L,Kha as qb,Xga as h,Yga as S,_ga as kb,nga as u}from"./cli-1.1.29-a6pnwve8.mjs";import"./cli-1.1.29-5p2zzfpq.mjs";import"./cli-1.1.29-84fpb4zk.mjs";import"./cli-1.1.29-6g47vtst.mjs";import"./cli-1.1.29-252q86ck.mjs";import"./cli-1.1.29-m7rehwdd.mjs";import{rka as F,ska as D,tka as zb}from"./cli-1.1.29-4bemzx23.mjs";import"./cli-1.1.29-3dnft82a.mjs";import{Eka as Z,Hka as o}from"./cli-1.1.29-gycpj0z6.mjs";import"./cli-1.1.29-rfz718th.mjs";import"./cli-1.1.29-q4fv8e5e.mjs";import"./cli-1.1.29-v6y1118n.mjs";import"./cli-1.1.29-79tgwbnn.mjs";import"./cli-1.1.29-dfra4ygt.mjs";import"./cli-1.1.29-4pdnzc5j.mjs";import"./cli-1.1.29-pf67dsfj.mjs";import"./cli-1.1.29-2e5s8gsb.mjs";import"./cli-1.1.29-9n8sz71q.mjs";import"./cli-1.1.29-snxnt4nr.mjs";import{Sta as c,Wta as s}from"./cli-1.1.29-4xqgqvwm.mjs";function Xb(k){let b=a.c(17),{onDone:z}=k,B=W(Ib),q=W(yb),G=W(Zb),J=v(),E;if(b[0]!==B||b[1]!==z)E=function(){Z("",{action:"cancel"});let N=y(B);z(`Kept model as ${Q.bold(N)}`,{display:"system"})},b[0]=B,b[1]=z,b[2]=E;else E=b[2];let R=E,H;if(b[3]!==G||b[4]!==B||b[5]!==z||b[6]!==J)H=function(N,O){Z("",{action:N,from_model:B,to_model:N}),J((n)=>({...n,mainLoopModel:N,mainLoopModelForSession:null}));let P=`Set model to ${Q.bold(y(N))}`;if(O!==void 0)P=P+` with ${Q.bold(O)} effort`;let T=void 0;if(w()){if(A(),!X(N)&&G)J(Yb),T=!1;else if(X(N)&&x()&&G)P=P+" · Fast mode ON",T=!0}if(_(N,T===!0,I()))P=P+" · Billed as extra usage";if(T===!1)P=P+" · Fast mode OFF";z(P)},b[3]=G,b[4]=B,b[5]=z,b[6]=J,b[7]=H;else H=b[7];let U=H,K;if(b[8]!==G||b[9]!==B)K=w()&&G&&X(B)&&x(),b[8]=G,b[9]=B,b[10]=K;else K=b[10];let j;if(b[11]!==R||b[12]!==U||b[13]!==B||b[14]!==q||b[15]!==K)j=Y(m,{initial:B,sessionModel:q,onSelect:U,onCancel:R,isStandaloneCommand:!0,showFastModeNotice:K}),b[11]=R,b[12]=U,b[13]=B,b[14]=q,b[15]=K,b[16]=j;else j=b[16];return j}function Yb(k){return{...k,fastMode:!1}}function Zb(k){return k.fastMode}function yb(k){return k.mainLoopModelForSession}function Ib(k){return k.mainLoopModel}function jb({args:k,onDone:b}){let z=W((G)=>G.fastMode),B=v(),q=k==="default"?null:k;return l.useEffect(()=>{async function G(){if(q&&!$(q)){b(`Model '${q}' is not available. Your organization restricts model selection.`,{display:"system"});return}if(q&&wb(q)){b("Opus with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(q&&xb(q)){b("Sonnet 4.6 with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(!q){J(null);return}if(Tb(q)){J(q);return}try{let{valid:E,error:R}=await t(q);if(E)J(q);else b(R||`Model '${q}' not found`,{display:"system"})}catch(E){b(`Failed to validate model: ${E.message}`,{display:"system"})}}function J(E){B((K)=>({...K,mainLoopModel:E,mainLoopModelForSession:null}));let R=E?Q.dim(" · for this project"):"",H=`Set model to ${Q.bold(y(E))}${R}`,U=void 0;if(w()){if(A(),!X(E)&&z)B((K)=>({...K,fastMode:!1})),U=!1;else if(X(E)&&z)H+=" · Fast mode ON",U=!0}if(_(E,U===!0,I()))H+=" · Billed as extra usage";if(U===!1)H+=" · Fast mode OFF";b(H)}G()},[q,b,B]),null}function Tb(k){return f.includes(k.toLowerCase().trim())}function wb(k){let b=k.toLowerCase();return!i()&&!I()&&b.includes("opus")&&b.includes("[1m]")}function xb(k){let b=k.toLowerCase();return!r()&&!I()&&(b.includes("sonnet[1m]")||b.includes("sonnet-4-6[1m]"))}function Cb(k){let{onDone:b}=k,z=W(_b),B=W(vb),q=W(Ab),G=y(z),J=q!==void 0?` (effort: ${q})`:"",E=u(),H=(E.activeModelForProject?E.activeModelForProjectProfileId===void 0||E.activeModelForProjectProfileId===L()?.id:!1)?Q.dim(" (project)"):"";if(B)b(`Current model: ${Q.bold(y(B))} (session override from plan mode)
|
|
2
|
+
Base model: ${G}${H}${J}`);else b(`Current model: ${G}${H}${J}`);return null}function Ab(k){return k.effortValue}function vb(k){return k.mainLoopModelForSession}function _b(k){return k.mainLoopModel}function Ob(k,b){if(k.length!==b.length)return!1;return k.every((z,B)=>{let q=b[B];return q!==void 0&&z.value===q.value&&z.label===q.label&&z.description===q.description&&z.descriptionForModel===q.descriptionForModel})}async function Vb(){if(!C()?.startsWith("openai:"))return;try{let k=await p();if(k.length===0)return;let b=h();if(Ob(b,k))return;S(k)}catch{}}function y(k){let b=g(k??M());return k===null?`${b} (default)`:b}var a,l,lb=async(k,b,z)=>{if(z=z?.trim()||"",D.includes(z))return Z("",{args:z}),Y(Cb,{onDone:k});if(F.includes(z)){k("Run /model to open the model selection menu, or /model [modelName] to set the model.",{display:"system"});return}if(z)return Z("",{args:z}),Y(jb,{args:z,onDone:k});if(C()?.startsWith("openai:"))Vb();return Y(Xb,{onDone:k})};var cb=s(()=>{e();Rb();zb();o();Qb();bb();Ub();Bb();Eb();Pb();Jb();kb();Hb();Gb();Wb();qb();V();a=c(Nb(),1),l=c(Kb(),1)});cb();export{lb as call};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{e$ as nQ,f$ as S,g$ as P,i$ as U,j$ as bQ,k$ as iQ,l$ as YQ}from"./cli-1.1.29-ar7jahd2.mjs";import{$sa as I0,Esa as B,Fsa as X,Gsa as N0,Hsa as w,Osa as xQ,Psa as Q0,Qsa as B0,Rsa as $0,Ssa as WQ,Tsa as lQ,Usa as p0,Vsa as v,Wsa as U1,Xsa as D,Ysa as dQ,Zsa as kQ,_sa as M0,ata as A0,bta as SQ,cta as G1,fta as d0}from"./cli-1.1.29-pf67dsfj.mjs";import{Wta as u}from"./cli-1.1.29-4xqgqvwm.mjs";var _Q=u(()=>{p0()});function f(V){if(V.inputSchema.type!=="object")throw Error(`JSON schema for tool "${V.name}" must be an object, but got ${V.inputSchema.type}`);return{type:"custom",name:V.name,input_schema:V.inputSchema,description:V.description,run:V.run,parse:(Q)=>Q,...V.close?{close:V.close}:{}}}var pQ=u(()=>{d0();_Q()});function JQ(V,Q){let $=U.relative(V,Q);return $===""||!$.startsWith(".."+U.sep)&&$!==".."&&!U.isAbsolute($)}async function jQ(V,Q){for(let $ of V)if(JQ(await e(U.resolve($)),Q))return $;return}function $Q(V){let Q=V?.code;return typeof Q==="string"?Q:void 0}async function e(V){let Q=[],$=V,z=0;for(;;){let K;try{K=await n.realpath($)}catch(Z){let q;try{q=(await n.lstat($)).isSymbolicLink()}catch(H){let W=$Q(H);if(W!=="ENOENT"&&W!=="ENOTDIR")throw H;let J=U.dirname($);if(J===$)throw H;Q.push(U.basename($)),$=J;continue}if(!q)throw Z;if(++z>c0)throw Object.assign(Error("too many levels of symbolic links"),{code:"ELOOP"});$=U.resolve(U.dirname($),await n.readlink($));continue}return Q.length?U.join(K,...Q.reverse()):K}}async function hQ(V,Q,$){let z=$?.allowedRoots??[],K=await e(U.resolve(V)),Z;try{Z=await e(U.resolve(K,Q))}catch(H){throw new D(i(H,`path ${JSON.stringify(Q)}`))}if(JQ(K,Z)||await jQ(z,Z)!==void 0)return Z;let q=z.length?"the session's working directory and its other permitted directories":"the session's working directory";throw new D(`path ${JSON.stringify(Q)} is outside ${q}`)}async function LQ(V,Q){let $=U.dirname(V),z=U.join($,`.tmp-${process.pid}-${S.randomUUID()}`),K;try{K=await n.open(z,"wx",h0),await K.writeFile(Q,"utf-8"),await K.sync(),await K.close(),K=void 0,await n.rename(z,V)}catch(Z){if(K)await K.close().catch(()=>{});throw await n.unlink(z).catch(()=>{}),Z}}function i(V,Q){let $=$Q(V);switch($){case"ENOENT":return`${Q}: no such file or directory`;case"EACCES":case"EPERM":return`${Q}: permission denied`;case"ENOTDIR":return`${Q}: not a directory`;case"EISDIR":return`${Q}: is a directory`;case"ELOOP":return`${Q}: too many levels of symbolic links`;case"ENAMETOOLONG":return`${Q}: file name too long`;case"ENOSPC":return`${Q}: no space left on device`;case"EMFILE":case"ENFILE":return`${Q}: too many open files`;default:return`${Q}: ${$!==void 0?`i/o error (${$})`:"i/o error"}`}}var n,QQ=493,h0=420,c0=40;var TQ=u(()=>{YQ();dQ();n=P.promises});async function i0(V){let{client:Q,sessionId:$}=V;if(!Q)return async()=>{};let z=WQ(Q),K=V.session;if(!K){if($===void 0)return async()=>{};z.warn("AgentToolContext.sessionId is deprecated and costs an extra session fetch; fetch the session once and set `session` instead",{component:"agent-tool-context"}),K=await Q.beta.sessions.retrieve($)}let Z=U.resolve(V.workdir,"skills"),q=[];for(let H of K.agent.skills)try{let W=await Q.beta.skills.versions.retrieve(H.version,{skill_id:H.skill_id}),J=U.basename(W.name.trim());if(J===""||J==="."||J==="..")J=H.skill_id;let Y=U.resolve(Z,J);if(Y!==Z&&!Y.startsWith(Z+U.sep)){z.warn("skill name escapes the skills dir; skipping",{component:"agent-tool-context",name:W.name});continue}let I=await Q.beta.skills.versions.download(W.id,{skill_id:H.skill_id});await L.rm(Y,{recursive:!0,force:!0}),await L.mkdir(Y,{recursive:!0,mode:QQ}),q.push(Y),await oQ(I,Y),z.info("downloaded skill",{component:"agent-tool-context",skill_id:H.skill_id,version:W.id,dest:Y})}catch(W){z.warn("failed to download skill",{component:"agent-tool-context",skill_id:H.skill_id,error:String(W)})}return async()=>{for(let H of q)await L.rm(H,{recursive:!0,force:!0}).catch((W)=>{z.warn("failed to clean up skill",{component:"agent-tool-context",dest:H,error:String(W)})})}}function l0(V){for(let Q of V){let $=Q.trim();if(!$)continue;if(U.isAbsolute($)||$.split(/[\\/]/).includes(".."))throw new w(`refusing to extract unsafe archive member: ${$}`)}}function cQ(V){let Q=V.split(`
|
|
2
|
+
`);if(Q[Q.length-1]==="")Q.pop();return Q}function o0(V,Q){return/^[\x20-\x7E]+$/.test(Q)&&!/[\\^#]/.test(Q)&&!(V==="unzip"&&Q.startsWith("-"))}function s0(V,Q,$){let z=cQ(Q),K=cQ($);if(z.length!==K.length)throw new w(vQ);let Z=[],q=[];return z.forEach((H,W)=>{if(a0[V].has(K[W].charAt(0))){Z.push(H);return}if(!o0(V,H))throw new w(`refusing to extract archive: cannot safely exclude member ${JSON.stringify(H)}`);q.push(H)}),{plain:Z,special:q}}async function aQ(V){for(let Q of await L.readdir(V,{withFileTypes:!0}))if(Q.isDirectory())await aQ(U.join(V,Q.name));else if(!Q.isFile())throw new w(vQ)}async function yQ(V,Q){try{let{stdout:$}=await n0(V,Q);return $}catch($){if($Q($)==="ENOENT")throw new w(`skill extraction requires the \`${V}\` command, but it was not found on PATH`);throw $}}function r0(V){let Q,$=!1;for(let z of V){let K=z.trim().split("/").filter((q)=>q!==""&&q!==".");if(K.length===0)continue;let Z=K[0];if(Q===void 0)Q=Z;else if(Z!==Q)return"";if(K.length>1)$=!0}return Q!==void 0&&$?Q:""}async function oQ(V,Q){let $=U.join(Q,`.skill-archive-${process.pid}-${Date.now()}`);if(!V.body)throw new w("skill download response had no body");await bQ.promises.pipeline(bQ.Readable.fromWeb(V.body),P.createWriteStream($));let z=U.join(U.dirname(Q),`.skill-stage-${process.pid}-${Date.now()}`),K=U.join(U.dirname(Q),`.skill-exclude-${process.pid}-${Date.now()}`);try{let Z=await e0($,4),q=Z.length>=4&&Z[0]===80&&Z[1]===75&&Z[2]===3&&Z[3]===4,H=q?"unzip":"tar",W=await yQ(H,q?["-Z1",$]:["-tf",$]),J=await yQ(H,q?["-Z","--h","--t",$]:["-tvf",$]),{plain:Y,special:I}=s0(H,W,J);l0([...Y,...I]);let G=r0(Y);if(await L.mkdir(z,{recursive:!0,mode:QQ}),Y.length>0)await yQ(H,await t0(H,$,z,I,K));await aQ(z);let y=G?U.join(z,G):z,b=await L.readdir(y).catch((x)=>{throw $Q(x)==="ENOENT"?new w(vQ):x});for(let x of b)await L.rename(U.join(y,x),U.join(Q,x))}finally{await L.rm($,{force:!0}),await L.rm(K,{force:!0}),await L.rm(z,{recursive:!0,force:!0})}}async function t0(V,Q,$,z,K){let Z=z.map((q)=>q.replace(/[*?[\\]/g,"\\$&"));if(V==="unzip")return["-oq",Q,"-d",$,...Z.length>0?["-x",...Z]:[]];if(Z.length===0)return["-xf",Q,"-C",$];return await L.writeFile(K,Z.join(`
|
|
3
|
+
`)+`
|
|
4
|
+
`,{flag:"wx",mode:384}),["-xf",Q,"-C",$,"-X",K]}async function e0(V,Q){let $=await L.open(V,"r");try{let z=Buffer.alloc(Q),{bytesRead:K}=await $.read(z,0,Q,0);return z.subarray(0,K)}finally{await $.close()}}var L,n0,vQ="skill archive listing is inconsistent; refusing to extract",a0;var sQ=u(()=>{YQ();xQ();lQ();TQ();L=P.promises,n0=iQ.promisify(nQ.execFile);a0={unzip:new Set(["-","d","?"]),tar:new Set(["-","d","C"])}});function EQ(V){return V.startsWith("/")&&!V.split("/").includes("..")}class a{constructor(V,Q,$=!1){this.hashes=new Map,this.rootPath=V,this.removedOnDispose=Q,this.decoder=$?new TextDecoder("utf-8",{fatal:!0}):void 0}static async open(V,Q){if(!z1())throw Error("FileStore requires O_NOFOLLOW support on this platform");let $=!1;try{await k.lstat(V)}catch(z){if(z.code!=="ENOENT")throw z;$=!0}return new a(U.resolve(V),$,Q?.utf8??!1)}async createRoot(){await K1(this.rootPath)}root(){return{path:this.rootPath,removedOnDispose:this.removedOnDispose}}async dispose(){if(!this.removedOnDispose)return;await k.rm(this.rootPath,{recursive:!0,force:!0})}async put(V,Q,$){let z=V.replace(/\\/g,"/");if(z.endsWith("/")||z.endsWith("/.")||z===""||z===".")throw new N(N.NOT_A_FILE,V);let K=this.resolveUnderRoot(V),Z=typeof Q==="string"?Q0(Q):Q;this.requireUtf8(V,Z),await rQ(this.rootPath,U.dirname(K)),await Z1(K,Z,$?.executable??!1)}async get(V){let Q=this.resolveUnderRoot(V),$;try{$=await z0(V,Q)}catch(K){if(K.code==="ENOENT")return null;throw K}let z;try{let K=await $.readFile();z=new Uint8Array(K.buffer,K.byteOffset,K.byteLength)}finally{await $.close()}return this.requireUtf8(V,z),z}async ls(V="/"){let Q=this.resolveUnderRoot(V);return new Set((await tQ(this.rootPath,V,Q)).map(([$])=>$))}async findSymlinks(V="/"){let Q=this.resolveUnderRoot(V);return q1(this.rootPath,V,Q)}async hashtree(V="/"){let Q=this.resolveUnderRoot(V),$=UQ.nowNs(),z=Object.create(null);for(let[K,Z]of await tQ(this.rootPath,V,Q)){let q=await this.hashViaCache(K,Z,$);if(q!==null)z[K]=q}return z}async hashFile(V){let Q=this.resolveUnderRoot(V),$;try{$=await k.lstat(Q,{bigint:!0})}catch(K){if(K.code==="ENOENT")return null;throw K}if($.isSymbolicLink())throw new N(N.IS_A_SYMLINK,V);if(!$.isFile())throw new N(N.NOT_A_FILE,V);let z=U.relative(this.rootPath,Q).split(U.sep).join("/");return this.hashViaCache(z,Q,UQ.nowNs())}async move(V,Q){let $=this.resolveUnderRoot(V),z=this.resolveUnderRoot(Q);if($===this.rootPath||z===this.rootPath)return;if(await k.stat(z).then(()=>!0,()=>!1))throw new N(N.MOVE_DESTINATION_EXISTS,Q);await rQ(this.rootPath,U.dirname(z)),await k.rename($,z)}async remove(V){let Q=this.resolveUnderRoot(V);if(Q===this.rootPath)return;let $;try{$=await k.lstat(Q,{bigint:!0})}catch(z){if(z.code==="ENOENT")return;throw z}if($.isDirectory())await k.rm(Q,{recursive:!0,force:!0});else try{await k.unlink(Q)}catch(z){if(z.code!=="ENOENT")throw z}}resolveUnderRoot(V){let Q=V.replace(/\\/g,"/").replace(/^\/+/,""),$=Q.split("/").filter((z)=>z!==""&&z!==".");if(U.posix.isAbsolute(Q)||$.includes(".."))throw new N(N.ESCAPES_ROOT,V);return $.length===0?this.rootPath:U.join(this.rootPath,...$)}requireUtf8(V,Q){if(!this.decoder)return;try{this.decoder.decode(Q)}catch{throw new N(N.NOT_UTF8,V)}}async hashViaCache(V,Q,$){let z;try{z=await k.lstat(Q,{bigint:!0})}catch(q){if(q.code==="ENOENT")return null;throw q}if(!z.isFile())return null;let K=this.hashes.get(V),Z;if(K!==void 0&&Y1(K,z))Z=K.sha;else try{Z=await UQ.hashFile(Q)}catch(q){let H=q.code;if(H==="ENOENT"||q instanceof N)return null;if(H==="ELOOP"||H==="EMLINK")return null;throw q}if(J1(z,$))this.hashes.set(V,{mtimeNs:z.mtimeNs,ctimeNs:z.ctimeNs,size:z.size,sha:Z});return Z}}function z1(){return PQ!==0}async function K1(V){let Q=[],$=V;for(;;){try{await k.stat($);break}catch(K){let Z=K.code;if(Z!=="ENOENT"&&Z!=="ENOTDIR"&&Z!=="ELOOP")throw K}Q.push($);let z=U.dirname($);if(z===$)break;$=z}for(let z of Q.reverse())try{await k.mkdir(z,{mode:V0})}catch(K){if(K.code!=="EEXIST")throw K}}async function rQ(V,Q){let $=U.relative(V,Q);if($==="")return;let z=V;for(let K of $.split(U.sep)){z=U.join(z,K);try{await k.mkdir(z,{mode:V0})}catch(Z){if(Z.code!=="EEXIST")throw Z}}}async function Z1(V,Q,$){let z=$?$1:Q1,K=U.join(U.dirname(V),`.fs-${S.randomBytes(8).toString("hex")}.tmp`),Z;try{Z=await k.open(K,l.O_WRONLY|l.O_CREAT|l.O_EXCL|PQ,z),await Z.writeFile(Q),await Z.close(),Z=void 0,await k.rename(K,V)}catch(q){if(Z)await Z.close().catch(()=>{});throw await k.unlink(K).catch(()=>{}),q}}async function z0(V,Q){let $;try{$=await k.open(Q,l.O_RDONLY|PQ|V1)}catch(z){let K=z.code;if(K==="ELOOP"||K==="EMLINK")throw new N(N.IS_A_SYMLINK,V);throw z}try{if(!(await $.stat()).isFile())throw new N(N.NOT_A_FILE,V)}catch(z){throw await $.close().catch(()=>{}),z}return $}async function X1(V){let Q=S.createHash("sha256"),$=await z0(U.basename(V),V),z=new Uint8Array(1048576);try{for(;;){let{bytesRead:K}=await $.read(z,0,z.length);if(K===0)break;Q.update(z.subarray(0,K))}}finally{await $.close()}return Q.digest("hex")}async function tQ(V,Q,$){if(!await H1(Q,$))return[];let z=[];return await K0($,(K,Z)=>{if(Z.isFile())z.push([U.relative(V,K).split(U.sep).join("/"),K])}),z.sort(),z}async function q1(V,Q,$){let z=(q)=>U.relative(V,q).split(U.sep).join("/"),K;try{K=await k.lstat($,{bigint:!0})}catch(q){let H=q.code;if(H==="ENOENT"||H==="ENOTDIR")return new Set;throw q}if(K.isSymbolicLink())return new Set([z($)]);if(!K.isDirectory())throw new N(N.NOT_A_DIRECTORY,Q);let Z=new Set;return await K0($,(q,H)=>{if(H.isSymbolicLink())Z.add(z(q))}),Z}async function H1(V,Q){let $;try{$=await k.lstat(Q,{bigint:!0})}catch(z){let K=z.code;if(K==="ENOENT"||K==="ENOTDIR")return!1;throw z}if(!$.isDirectory())throw new N(N.NOT_A_DIRECTORY,V);return!0}async function K0(V,Q){let $=[V];while($.length){let z=$.pop(),K;try{K=await k.readdir(z,{withFileTypes:!0})}catch(Z){if(Z.code==="ENOENT")continue;throw Z}for(let Z of K){let q=U.join(z,Z.name);if(Q(q,Z),Z.isDirectory()&&!Z.isSymbolicLink())$.push(q)}}}function Y1(V,Q){return Q.mtimeNs===V.mtimeNs&&Q.ctimeNs===V.ctimeNs&&Q.size===V.size}function J1(V,Q){return(V.mtimeNs>V.ctimeNs?V.mtimeNs:V.ctimeNs)<Q-UQ.timestampTrustMarginNs}var k,l,V0=448,Q1=384,$1=448,PQ,V1,N,W1=2000000000n,UQ,Z0,eQ;var X0=u(()=>{YQ();$0();k=P.promises,l=P.constants,PQ=l.O_NOFOLLOW??0,V1=l.O_NONBLOCK??0;N=class N extends Error{constructor(V,Q){super(`path ${JSON.stringify(Q)} ${V}`);this.name="FileStoreError",this.reason=V,this.relPath=Q}};N.ESCAPES_ROOT="escapes the store root";N.IS_A_SYMLINK="is a symlink";N.NOT_A_FILE="is not a regular file";N.NOT_A_DIRECTORY="is not a directory";N.NOT_UTF8="is not valid utf-8";N.MOVE_DESTINATION_EXISTS="already exists";a.isPathLegal=EQ;UQ={hashFile:X1,timestampTrustMarginNs:W1,nowNs:()=>BigInt(Date.now())*1000000n},Z0=a,eQ=Symbol.asyncDispose;if(eQ)Object.defineProperty(a.prototype,eQ,{value:a.prototype.dispose,configurable:!0,writable:!0})});function D0(V){return S.createHash("sha256").update(`version ${G0}
|
|
5
|
+
${V}`,"utf-8").digest("hex")}class O0{constructor(V,Q,$){this.mode=V,this.cap=Q,this.waiveWindow=$,this.attempted=0,this.capped=0,this.suppressed=0}takeSlot(){if(this.attempted>=this.cap)return this.capped++,!1;return this.attempted++,!0}}class R0{constructor(V,Q){A.add(this),F.set(this,void 0),IQ.set(this,void 0),VQ.set(this,void 0),AQ.set(this,void 0),M.set(this,void 0),o.set(this,void 0),BQ.set(this,!1),E.set(this,[]),B(this,F,V,"f"),B(this,IQ,Q.workdir,"f"),B(this,VQ,Q.syncIntervalMs??kQ,"f"),I0(X(this,VQ,"f"),"syncIntervalMs"),B(this,AQ,Q.syncDeletions??"enabled","f"),B(this,M,WQ(V),"f"),B(this,o,Date.now(),"f")}get roots(){return X(this,E,"f").map((V)=>V.files.root().path)}get readOnlyRoots(){return X(this,E,"f").filter((V)=>V.readOnly).map((V)=>V.files.root().path)}async download(V){for(let Q of V.resources){if(Q.type!=="memory_store")continue;let $=X(this,A,"m",k0).call(this,Q),z;try{if(z={memoryStoreId:Q.memory_store_id,files:await Z0.open($,{utf8:!0}),readOnly:Q.access==="read_only",baseline:new Map,refusedShas:new Map,pendingDeletes:new Map},!z.files.root().removedOnDispose)throw new m(`something already exists at the memory store's path: ${$} (memory_store_id=${Q.memory_store_id}); it must not exist when the session starts`);try{await z.files.createRoot()}catch(K){if(!r(K))throw K;throw new m(`cannot create the memory store's folder: ${$} (memory_store_id=${Q.memory_store_id}): ${K}; the worker host must make this mount path writable`,K)}await X(this,A,"m",uQ).call(this,z),X(this,M,"f").info("downloaded memories",{count:z.baseline.size,memory_store_id:z.memoryStoreId,dest:z.files.root().path}),X(this,E,"f").push(z)}catch(K){if(z)await z.files.dispose().catch(()=>{});if(K instanceof m)throw K;throw new m(`failed to download memory store memory_store_id=${Q.memory_store_id}: ${K}`,K)}}B(this,o,Date.now(),"f")}async finish(){if(X(this,BQ,"f"))throw new w("finish() was already called: it is the session's last sync and runs once");B(this,BQ,!0,"f"),await this.syncAll(!0)}async syncAll(V){await Promise.all(X(this,E,"f").map((Q)=>X(this,A,"m",C0).call(this,Q,V))),B(this,o,Date.now(),"f")}async syncIfDue(){if(Date.now()-X(this,o,"f")<X(this,VQ,"f"))return;await this.syncAll(!1)}async flushWrites(V){await Promise.all(X(this,E,"f").map((Q)=>X(this,A,"m",w0).call(this,Q,V)))}async dispose(){for(let V of X(this,E,"f")){let Q=V.files.root();try{let $=await X(this,A,"m",MQ).call(this,V);if(!$.markerOk&&Object.keys($.files).length>0){X(this,M,"f").warn(`${$.distrustReason}; leaving the memory store folder on disk`,{root:Q.path,memory_store_id:V.memoryStoreId});continue}await V.files.dispose()}catch($){if(!($ instanceof N)&&!r($))throw $;X(this,M,"f").warn("failed to remove the memory store folder",{root:V.files.root().path,memory_store_id:V.memoryStoreId,error:String($)});continue}if(Q.removedOnDispose)X(this,M,"f").info("removed memory store dir",{dest:Q.path,memory_store_id:V.memoryStoreId})}}}function r(V){return typeof V==="object"&&V!==null&&typeof V.code==="string"}async function w1(V,Q){if(!Q){await V;return}let $,z=new Promise((K)=>{if($=K,Q.aborted)K()});Q.addEventListener("abort",$,{once:!0});try{await Promise.race([V,z])}finally{Q.removeEventListener("abort",$)}}var A,F,IQ,VQ,AQ,M,o,BQ,E,k0,MQ,C0,w0,FQ,uQ,q0,H0,gQ,Y0,J0,DQ,NQ,W0,U0,D1=30000,s=".anthropic-memory-store",G0=1,N1=30000,B1=100,M1=20,I1=16,A1=32,k1=8,C1=50,m;var j0=u(()=>{N0();YQ();xQ();lQ();$0();U1();X0();A0();A0();m=class m extends w{constructor(V,Q){super(V);if(this.name="SessionMemoryError",Q!==void 0)this.cause=Q}};F=new WeakMap,IQ=new WeakMap,VQ=new WeakMap,AQ=new WeakMap,M=new WeakMap,o=new WeakMap,BQ=new WeakMap,E=new WeakMap,A=new WeakSet,k0=function(Q){if(Q.mount_path){if(!EQ(Q.mount_path))throw new m(`memory store mount_path is not a clean absolute path: ${JSON.stringify(Q.mount_path)} (memory_store_id=${Q.memory_store_id})`);return Q.mount_path}return U.join(X(this,IQ,"f"),"memory",Q.name||Q.memory_store_id)},MQ=async function(Q){let $=await Q.files.hashtree(),z=$[s];if(delete $[s],z===D0(Q.memoryStoreId))return{files:$,markerOk:!0,distrustReason:null};return{files:$,markerOk:!1,distrustReason:z!==void 0?"the marker file does not match this store":"the marker file is gone"}},C0=async function(Q,$){try{let z=await X(this,A,"m",MQ).call(this,Q),K=z.files;if(!z.markerOk){if(Object.keys(K).length>0){X(this,M,"f").warn(`${z.distrustReason}; leaving the memory store folder as found and not syncing`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId});return}await X(this,A,"m",FQ).call(this,Q,"the folder or its marker is gone");return}if(Object.keys(K).length===0&&Q.baseline.size>1){await X(this,A,"m",FQ).call(this,Q,"every memory file is gone at once");return}let Z=new Map;for await(let[Y,I]of X(this,A,"m",DQ).call(this,Q.memoryStoreId))Z.set(Y,I);let q=new O0(X(this,AQ,"f"),Math.max(k1,Math.min(C1,Math.floor(Q.baseline.size/4))),$),H=[],W=new Map,J=[...new Set([...Z.keys(),...Object.keys(K),...Q.baseline.keys()])].sort();for(let Y of J){let I=Z.get(Y),G=K[Y],y=Q.baseline.get(Y),b;if(G===void 0&&y!==void 0&&I!==void 0&&I.content_sha256===y&&!Q.readOnly)b=await X(this,A,"m",W0).call(this,Q,Y,I,y,q);else b=await X(this,A,"m",q0).call(this,Q,Y,I,G,H);if(b!==void 0)W.set(Y,b)}if(Q.baseline=W,await X(this,A,"m",Y0).call(this,Q,H),q.suppressed>0)X(this,M,"f").debug("remote deletes are disabled; locally deleted memories stay on the server",{count:q.suppressed,memory_store_id:Q.memoryStoreId});if(q.capped>0)X(this,M,"f").warn(`delete cap reached: ${q.mode==="log_only"?"would send":"sent"} ${q.attempted} deletes, held ${q.capped} for later syncs`,{memory_store_id:Q.memoryStoreId})}catch(z){X(this,M,"f").warn("memory sync failed",{memory_store_id:Q.memoryStoreId,error:String(z)})}},w0=async function(Q,$){let z=new Map,K=new Set,Z=async()=>{if(Q.readOnly)return;let q=await X(this,A,"m",MQ).call(this,Q);if(!q.markerOk){X(this,M,"f").warn(`${q.distrustReason}; not uploading anything from the memory store folder`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId});return}for(let[J,Y]of Object.entries(q.files))if(Y!==Q.baseline.get(J)&&Q.refusedShas.get(J)!==Y)z.set(J,Y),K.add(J);if(z.size===0||$?.aborted)return;let H=new Map;for await(let[J,Y]of X(this,A,"m",DQ).call(this,Q.memoryStoreId)){if($?.aborted)return;H.set(J,Y)}let W=[];for(let J of[...z.keys()].sort()){let Y=z.get(J),I=Q.baseline.get(J),G=H.get(J);if(G!==void 0&&G.content_sha256===Y){Q.baseline.set(J,G.content_sha256),K.delete(J);continue}if(G!==void 0&&G.content_sha256!==I){X(this,M,"f").warn("memory changed both locally and remotely; the flush leaves the remote version",{path:J,memory_store_id:Q.memoryStoreId}),K.delete(J);continue}W.push([J,Y,G])}await X(this,A,"m",J0).call(this,Q,W,K,$)};try{if(await w1(Z(),$),$?.aborted&&K.size>0)X(this,M,"f").warn(`memory flush cut off part-way; ${K.size} of ${z.size} changed files had not finished uploading`,{memory_store_id:Q.memoryStoreId})}catch(q){X(this,M,"f").warn("memory flush failed",{memory_store_id:Q.memoryStoreId,error:String(q)})}},FQ=async function(Q,$){X(this,M,"f").warn(`${$}; re-downloading the memory store folder instead of syncing`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId}),await Q.files.createRoot(),await X(this,A,"m",uQ).call(this,Q)},uQ=async function(Q){Q.baseline=new Map,Q.pendingDeletes.clear(),await Q.files.put(s,`version ${G0}
|
|
6
|
+
${Q.memoryStoreId}`);for await(let[$,z]of X(this,A,"m",DQ).call(this,Q.memoryStoreId,"full"))if(await X(this,A,"m",gQ).call(this,Q,$,z.content??""))Q.baseline.set($,z.content_sha256)},q0=async function(Q,$,z,K,Z){let q=Q.baseline.get($);if(K!==void 0)Q.pendingDeletes.delete($);if(!z){if(K===void 0){Q.pendingDeletes.delete($);return}if(q!==void 0){if(K===q){let I=await X(this,A,"m",H0).call(this,Q,$,q);if(I===void 0)return;if(I===q)return q;K=I}if(Q.readOnly)X(this,M,"f").warn("memory deleted remotely but edited locally; keeping the file, which a read-only store cannot push",{path:$,memory_store_id:Q.memoryStoreId});else if(Q.refusedShas.get($)!==K)X(this,M,"f").info("memory deleted remotely but edited locally; re-creating it from the file",{path:$,memory_store_id:Q.memoryStoreId})}if(Q.readOnly)return;if(Q.refusedShas.get($)===K)return;return await X(this,A,"m",NQ).call(this,Q,$,K,void 0)}let H=z.content_sha256,W=H!==q,J=K!==void 0&&K!==q&&K!==H,Y=!Q.readOnly&&J;if(K===void 0&&q!==void 0){if(W)X(this,M,"f").warn("memory deleted locally but changed remotely; restoring the remote version",{path:$,memory_store_id:Q.memoryStoreId}),Q.pendingDeletes.delete($),Z.push([$,z]);return q}if(W){if(K===H)return H;if(J)X(this,M,"f").warn("memory changed both locally and remotely; keeping the remote version",{path:$,memory_store_id:Q.memoryStoreId});return Z.push([$,z]),q}if(Y){if(Q.refusedShas.get($)===K)return H;return await X(this,A,"m",NQ).call(this,Q,$,K,z)??H}return H},H0=async function(Q,$,z){let K;try{K=await Q.files.hashFile($)}catch(Z){if(!(Z instanceof N)&&!r(Z))throw Z;return z}if(K===null)return;if(K!==z)return K;try{await Q.files.remove($)}catch(Z){if(!(Z instanceof N)&&!r(Z))throw Z;return X(this,M,"f").warn("failed to remove memory deleted remotely",{path:$,memory_store_id:Q.memoryStoreId,error:String(Z)}),z}return},gQ=async function(Q,$,z){try{await Q.files.put($,z)}catch(K){if(!(K instanceof N)&&!r(K))throw K;return X(this,M,"f").warn("failed to write memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(K)}),!1}return!0},Y0=async function(Q,$){if($.length===0)return;let z=async(q,H)=>{let W;try{W=await X(this,F,"f").beta.memoryStores.memories.retrieve(H.id,{memory_store_id:Q.memoryStoreId,view:"full"})}catch(J){if(v(J,404))return;X(this,M,"f").warn("failed to fetch memory content",{path:q,memory_store_id:Q.memoryStoreId,error:String(J)});return}if(await X(this,A,"m",gQ).call(this,Q,q,W.content??""))Q.baseline.set(q,W.content_sha256)},K=$[Symbol.iterator](),Z=async()=>{for(let[q,H]of K)await z(q,H)};await Promise.all(Array.from({length:Math.min(I1,$.length)},Z))},J0=async function(Q,$,z,K){let Z=$[Symbol.iterator](),q=async()=>{for(let[H,W,J]of Z){if(K?.aborted)return;let Y=await X(this,A,"m",NQ).call(this,Q,H,W,J);if(z.delete(H),Y!==void 0)Q.baseline.set(H,Y)}};await Promise.all(Array.from({length:Math.min(A1,$.length)},q))},DQ=async function*(Q,$="basic"){let z=$==="basic"?B1:M1;for await(let K of X(this,F,"f").beta.memoryStores.memories.list(Q,{view:$,limit:z})){if(K.type!=="memory")continue;let Z=K.path.replace(/^\/+/,"");if(Z===s){X(this,M,"f").warn("the server listed the reserved marker path; skipping",{path:K.path,memory_store_id:Q});continue}yield[Z,K]}},NQ=async function V(Q,$,z,K){try{let Z=await Q.files.get($);if(Z===null)return;let q=B0(Z),H=K?await X(this,F,"f").beta.memoryStores.memories.update(K.id,{memory_store_id:Q.memoryStoreId,content:q,precondition:{type:"content_sha256",content_sha256:K.content_sha256}}):await X(this,F,"f").beta.memoryStores.memories.create(Q.memoryStoreId,{path:"/"+$,content:q});return Q.refusedShas.delete($),H.content_sha256}catch(Z){if(K&&v(Z,404))return await X(this,A,"m",V).call(this,Q,$,z,void 0);let q=Z instanceof N||v(Z,400)||v(Z,413);if(K&&v(Z,409))X(this,M,"f").warn("memory changed both locally and remotely; the upload was refused and the local edit loses",{path:$,memory_store_id:Q.memoryStoreId});else if(q&&z!==void 0)Q.refusedShas.set($,z),X(this,M,"f").warn("the server rejected this memory file, so it stays un-synced until its content changes",{path:$,memory_store_id:Q.memoryStoreId,rejection:String(Z)});else X(this,M,"f").warn("failed to upload memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(Z)});return}},W0=async function(Q,$,z,K,Z){if(Z.mode==="disabled")return Z.suppressed++,K;let q=Q.pendingDeletes.get($);if(q===void 0)q=Date.now(),Q.pendingDeletes.set($,q);if(!Z.waiveWindow&&Date.now()-q<N1)return K;let H,W;try{H=await Q.files.hashFile(s)===D0(Q.memoryStoreId),W=await Q.files.hashFile($)===null}catch(Y){if(!(Y instanceof N)&&!r(Y))throw Y;H=W=!1}if(!H)return K;if(!W)return Q.pendingDeletes.delete($),K;if(!Z.takeSlot())return K;if(Z.mode==="log_only")return X(this,M,"f").info("log-only: sync would delete this memory on the server",{path:$,memory_store_id:Q.memoryStoreId}),K;let J=await X(this,A,"m",U0).call(this,Q,$,z,K);if(J===void 0)Q.pendingDeletes.delete($);return J},U0=async function(Q,$,z,K){try{await X(this,F,"f").beta.memoryStores.memories.delete(z.id,{memory_store_id:Q.memoryStoreId,expected_content_sha256:K})}catch(Z){if(v(Z,404))return;if(v(Z,409)||v(Z,412))X(this,M,"f").warn("memory deleted locally but changed remotely; keeping the remote version",{path:$,memory_store_id:Q.memoryStoreId});else X(this,M,"f").warn("failed to delete memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(Z)});return K}X(this,M,"f").info("propagated local deletion",{path:$,memory_store_id:Q.memoryStoreId});return}});import*as C from"node:fs/promises";import*as qQ from"node:fs";import*as R from"node:path";import*as mQ from"node:child_process";import*as v0 from"node:crypto";import*as P0 from"node:readline";function g0(V){return V===void 0?O1:V}function c(V){if(V===void 0)return;throw new w("The `unrestrictedPaths` option you passed to the agent toolset (AgentToolContext) is no longer supported. The toolset's file tools (read, write, edit, glob, grep) are now always confined to the working directory plus the directories listed in `allowedRoots`. Remove `unrestrictedPaths` from your context; to let the file tools reach any other directory, add it to `allowedRoots`.")}function R2(V){return[x1(V),v1(V),E1(V),F1(V),u1(V),f1(V)]}async function HQ(V,Q){return c(V.unrestrictedPaths),hQ(V.workdir,Q,{allowedRoots:V.allowedRoots??[]})}function u0(V,Q){return jQ(V.readOnlyRoots??[],Q)}function b1(){let V={};for(let[Q,$]of Object.entries(process.env)){if(Q.startsWith("ANTHROPIC_"))continue;V[Q]=$}return V}class f0{constructor(V,Q=b1()){CQ.add(this),O.set(this,void 0),j.set(this,""),zQ.set(this,!1),_.set(this,!1),T.set(this,null),B(this,O,mQ.spawn("/bin/bash",["--noprofile","--norc"],{cwd:V,env:{...Q,PS1:"",PS2:"",TERM:"dumb"},stdio:["pipe","pipe","pipe"],detached:!0}),"f"),X(this,O,"f").stdout.setEncoding("utf8"),X(this,O,"f").stderr.setEncoding("utf8"),X(this,O,"f").stdout.on("data",($)=>X(this,CQ,"m",fQ).call(this,$)),X(this,O,"f").stderr.on("data",($)=>X(this,CQ,"m",fQ).call(this,$)),X(this,O,"f").once("close",()=>{B(this,_,!0,"f");let $=X(this,T,"f");B(this,T,null,"f"),$?.resolve()})}get closed(){return X(this,_,"f")}async exec(V,Q={}){if(X(this,_,"f"))throw new w("bash session terminated");let $=Q.timeoutMs??E0,z=Q.signal;z?.throwIfAborted(),B(this,j,"","f"),B(this,zQ,!1,"f");let K=`__ANT_CMD_${v0.randomUUID()}_DONE__`,Z=`${K.slice(0,8)}''${K.slice(8)}`,q=`{ ${V}
|
|
7
|
+
} </dev/null 2>&1; printf '\\n${Z}%d\\n' $?
|
|
8
|
+
`;if(X(this,O,"f").stdin.write(q),X(this,j,"f").indexOf(K)<0){let{promise:G,resolve:y}=SQ();B(this,T,{sentinel:K,resolve:y},"f");let b,x;try{await Promise.race([G,new Promise((_0,RQ)=>{b=setTimeout(()=>RQ(new F0($)),$)}),new Promise((_0,RQ)=>{if(!z)return;x=()=>RQ(z.reason),z.addEventListener("abort",x,{once:!0})})])}finally{if(b)clearTimeout(b);if(x&&z)z.removeEventListener("abort",x);B(this,T,null,"f")}}let H=X(this,j,"f").indexOf(K);if(H<0)throw new w("bash session terminated");let J=X(this,j,"f").slice(H+K.length).match(/^(-?\d+)/),Y=J?parseInt(J[1],10):-1,I=X(this,j,"f").slice(0,H).replace(T1,"").replace(/\n+$/,"");if(X(this,zQ,"f"))I=`[output truncated]
|
|
9
|
+
${I}`;return{output:I,exitCode:Y}}close(){if(X(this,_,"f"))return;B(this,_,!0,"f");let V=X(this,T,"f");B(this,T,null,"f"),V?.resolve(),X(this,O,"f").stdout.destroy(),X(this,O,"f").stderr.destroy(),X(this,O,"f").stdin.destroy();try{process.kill(-X(this,O,"f").pid,"SIGKILL")}catch{X(this,O,"f").kill("SIGKILL")}X(this,O,"f").unref()}}function x1(V){c(V.unrestrictedPaths);let Q,$=Promise.resolve();return f({name:"bash",description:"Run a bash command in a persistent shell. State (cwd, env vars) persists across calls.",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to run"},restart:{type:"boolean",description:"Restart the persistent shell before running"},timeout_ms:{type:"integer",description:"Per-call timeout in milliseconds"}}},run:async({command:z,restart:K,timeout_ms:Z},q)=>{let H=$,W=SQ();$=W.promise;try{await H}catch{}try{if(K)Q?.close(),Q=void 0;if(!z){if(K)return"bash session restarted";throw new D("bash: command is required")}Q??(Q=new f0(V.workdir,V.env));try{let{output:J,exitCode:Y}=await Q.exec(z,{timeoutMs:Z??E0,signal:q?.signal});if(Y!==0)throw new D(J||`exit ${Y}`);return J}catch(J){if(J instanceof D)throw J;throw Q.close(),Q=void 0,new D(`bash: ${J instanceof Error?J.message:String(J)}`)}}finally{W.resolve()}},close:()=>{Q?.close(),Q=void 0}})}function v1(V){return c(V.unrestrictedPaths),f({name:"read",description:"Read a UTF-8 text file relative to the workdir.",inputSchema:{type:"object",properties:{file_path:{type:"string"},view_range:{type:"array",items:{type:"integer"},description:"[start_line, end_line] 1-indexed inclusive"}},required:["file_path"]},run:async({file_path:Q,view_range:$})=>{if(!Q)throw new D("read: file_path is required");let z=await HQ(V,Q);if($?.length&&$.length!==2)throw new D("read: view_range must be [start_line, end_line]");let K;try{let Y=await C.stat(z);if(!Y.isFile())throw new D(`read: ${Q} is not a regular file`);let I=g0(V.maxFileBytes);if(I!==null&&Y.size>I){if(!$?.length)throw new D(`read: ${Q} is ${Y.size} bytes, exceeds ${I}-byte limit. Use the view_range parameter to read specific line ranges, e.g. view_range: [1, 500].`);let[G,y]=$;return await P1(z,Q,G,y,I)}K=await C.readFile(z,"utf8")}catch(Y){if(Y instanceof D)throw Y;throw new D(`read: ${i(Y,Q)}`)}if(!$?.length)return K;let[Z,q]=$,H=K.split(`
|
|
10
|
+
`),W=Math.max(0,Z-1),J=q>0?q:H.length;return H.slice(W,J).join(`
|
|
11
|
+
`)}})}async function P1(V,Q,$,z,K){let Z=new S0(Q,$,z,K);if(Z.rangeIsEmpty())return"";let q=qQ.createReadStream(V,{highWaterMark:R1});try{for await(let H of q)if(Z.collectFrom(H),Z.rangeIsCollected())break}finally{q.destroy()}return Z.text()}class S0{constructor(V,Q,$,z){wQ.add(this),KQ.set(this,void 0),GQ.set(this,void 0),OQ.set(this,void 0),d.set(this,void 0),h.set(this,void 0),t.set(this,void 0),p.set(this,0),ZQ.set(this,[]),g.set(this,0),B(this,KQ,V,"f"),B(this,GQ,Q,"f"),B(this,OQ,$,"f"),B(this,d,Math.max(0,Q-1),"f"),B(this,h,$>0?$:1/0,"f"),B(this,t,z,"f")}rangeIsEmpty(){return X(this,h,"f")<=X(this,d,"f")}rangeIsCollected(){return X(this,p,"f")>=X(this,h,"f")}collectFrom(V){var Q;let $=0;while($<V.length&&!this.rangeIsCollected()){let z=V.indexOf(10,$),K=z<0?V.length:z;if(X(this,p,"f")>=X(this,d,"f"))X(this,wQ,"m",x0).call(this,V.subarray($,K),z>=0);if(z<0)break;B(this,p,(Q=X(this,p,"f"),Q++,Q),"f"),$=z+1}}text(){return Buffer.concat(X(this,ZQ,"f"),X(this,g,"f")).toString("utf8")}}function E1(V){return c(V.unrestrictedPaths),f({name:"write",description:"Write a UTF-8 text file relative to the workdir, creating parent directories as needed.",inputSchema:{type:"object",properties:{file_path:{type:"string"},content:{type:"string"}},required:["file_path","content"]},run:async({file_path:Q,content:$})=>{if(!Q)throw new D("write: file_path is required");let z=await HQ(V,Q),K=await u0(V,z);if(K!==void 0)throw new D(`write: ${Q} is inside read-only directory ${K}`);try{await C.mkdir(R.dirname(z),{recursive:!0,mode:QQ}),await LQ(z,$??"")}catch(Z){throw new D(`write: ${i(Z,Q)}`)}return`wrote ${Buffer.byteLength($??"")} bytes to ${Q}`}})}function F1(V){return c(V.unrestrictedPaths),f({name:"edit",description:"Replace old_string with new_string in a file. old_string must be unique unless replace_all.",inputSchema:{type:"object",properties:{file_path:{type:"string"},old_string:{type:"string"},new_string:{type:"string"},replace_all:{type:"boolean"}},required:["file_path","old_string","new_string"]},run:async({file_path:Q,old_string:$,new_string:z,replace_all:K})=>{if(!Q)throw new D("edit: file_path is required");if(!$)throw new D("edit: old_string is required");let Z=await HQ(V,Q),q=await u0(V,Z);if(q!==void 0)throw new D(`edit: ${Q} is inside read-only directory ${q}`);let H;try{let Y=await C.stat(Z);if(!Y.isFile())throw new D(`edit: ${Q} is not a regular file`);let I=g0(V.maxFileBytes);if(I!==null&&Y.size>I)throw new D(`edit: ${Q} is ${Y.size} bytes, exceeds ${I}-byte limit. The edit tool loads the whole file and cannot modify a file this large.`);H=await C.readFile(Z,"utf8")}catch(Y){if(Y instanceof D)throw Y;throw new D(`edit: ${i(Y,Q)}`)}let W=H.split($).length-1;if(W===0)throw new D(`edit: old_string not found in ${Q}`);let J;if(K)J=H.split($).join(z);else{if(W>1)throw new D(`edit: old_string appears ${W} times in ${Q} (must be unique)`);J=H.replace($,()=>z)}try{await LQ(Z,J)}catch(Y){throw new D(`edit: write: ${i(Y,Q)}`)}return`edited ${Q} (${K?W:1} replacement(s))`}})}function g1(V){return V.split(/[\\/{},]/).includes("..")}function u1(V){return c(V.unrestrictedPaths),f({name:"glob",description:"Match files under the workdir against a glob pattern. Results are mtime-sorted, newest first.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string",description:"Directory to search in. Defaults to the workdir."}},required:["pattern"]},run:async({pattern:Q,path:$})=>{if(!Q)throw new D("glob: pattern is required");if(R.isAbsolute(Q))throw new D("glob: absolute pattern not permitted; pass a relative pattern (and optionally path)");if(g1(Q))throw new D('glob: ".." is not permitted in the pattern');let z=$?await HQ(V,$):R.resolve(V.workdir),K=$?z:await e(z),Z=[],q=m0;try{for await(let H of y1(Q,{cwd:z,withFileTypes:!0,exclude:(W)=>W.name===".git"||W.name==="node_modules"})){if(q--<=0)break;if(!H.isFile())continue;let W=R.join(H.parentPath,H.name),J;try{J=await C.realpath(W)}catch{continue}if(!JQ(K,J))continue;let Y=0;try{Y=(await C.stat(W)).mtimeMs}catch{}Z.push({path:W,mtime:Y})}}catch(H){throw new D(`glob: ${H instanceof Error?H.message:String(H)}`)}if(Z.length===0)return"no matches";return Z.sort((H,W)=>W.mtime-H.mtime),Z.slice(0,L1).map((H)=>H.path).join(`
|
|
12
|
+
`)}})}function f1(V){return c(V.unrestrictedPaths),f({name:"grep",description:"Search file contents for a regex. Uses ripgrep if available, otherwise a built-in walker.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string"}},required:["pattern"]},run:async({pattern:Q,path:$},z)=>{if(!Q)throw new D("grep: pattern is required");let K=R.resolve(V.workdir);if($)K=await HQ(V,$);let Z=await d1();return Z?S1(Z,Q,K,z?.signal):m1(Q,K,z?.signal)}})}function S1(V,Q,$,z){return new Promise((K,Z)=>{let q=mQ.spawn(V,["-n","--no-heading","-e",Q,"--",$],{...z?{signal:z}:{}}),H="",W="",J=!1;q.stdout.on("data",(Y)=>{if(J)return;if(H+=Y,H.length>XQ)J=!0,H=H.slice(0,XQ),q.kill("SIGKILL")}),q.stderr.on("data",(Y)=>W+=Y),q.on("close",(Y)=>{if(z?.aborted)return Z(new D("grep: aborted"));if(J)return K(H+`
|
|
13
|
+
[output truncated at ${XQ} bytes]`);if(Y===0)return K(H);if(Y===1)return K("no matches");Z(new D(`grep: rg failed: ${W||`exit ${Y}`}`))}),q.on("error",(Y)=>{if(z?.aborted)return Z(new D("grep: aborted"));Z(new D(`grep: rg failed: ${Y.message}`))})})}async function m1(V,Q,$){let z;try{z=new RegExp(V)}catch(W){throw new D(`grep: invalid regex: ${W instanceof Error?W.message:String(W)}`)}let K=[],Z=XQ,q=(W)=>{if(Z-=W.length+1,Z<0)return K.push(`[output truncated at ${XQ} bytes]`),!1;return K.push(W),!0};if((await C.stat(Q).catch(()=>null))?.isFile())await b0(Q,z,q);else await p1(Q,"",(W)=>b0(R.join(Q,W),z,q),$);if($?.aborted)throw new D("grep: aborted");if(K.length===0)return"no matches";return K.join(`
|
|
14
|
+
`)}async function b0(V,Q,$){let z=qQ.createReadStream(V,{encoding:"utf8"}),K=P0.createInterface({input:z,crlfDelay:1/0}),Z=0;try{for await(let q of K){if(Z++,q.length>j1)continue;if(Q.test(q)&&!$(`${V}:${Z}:${q}`))return!1}}catch{}finally{z.destroy()}return!0}async function p1(V,Q,$,z){let K=m0;async function Z(q,H){if(H>_1)return!0;if(z?.aborted)return!1;let W;try{W=await C.readdir(R.join(V,q),{withFileTypes:!0})}catch{return!0}for(let J of W){if(J.name===".git"||J.name==="node_modules")continue;if(K--<=0)return!1;if(z?.aborted)return!1;let Y=q?R.join(q,J.name):J.name;if(J.isDirectory()){if(!await Z(Y,H+1))return!1}else if(J.isFile()){if(await $(Y)===!1)return!1}}return!0}await Z(Q,0)}async function d1(){let V=(process.env.PATH??"").split(R.delimiter);for(let Q of V){let $=R.join(Q,"rg");try{return await C.access($,qQ.constants.X_OK),$}catch{}}return null}var CQ,O,j,zQ,_,T,fQ,wQ,KQ,GQ,OQ,d,h,t,p,ZQ,g,x0,L0,T0=102400,E0=120000,O1=262144,R1=65536,y0,XQ=102400,j1=2000,L1=200,F0,T1,y1,_1=40,m0=50000;var h1=u(()=>{N0();xQ();dQ();pQ();G1();TQ();sQ();j0();y0=Buffer.from(`
|
|
15
|
+
`);F0=class F0 extends w{constructor(V){super(`bash command timed out after ${V}ms`);this.name="BashTimeoutError",this.timeoutMs=V}};T1=/\x1b\[[0-9;?]*[ -/]*[@-~]/g,y1=C.glob;O=new WeakMap,j=new WeakMap,zQ=new WeakMap,_=new WeakMap,T=new WeakMap,CQ=new WeakSet,fQ=function(Q){if(B(this,j,X(this,j,"f")+Q,"f"),X(this,j,"f").length>T0)B(this,j,X(this,j,"f").slice(X(this,j,"f").length-T0),"f"),B(this,zQ,!0,"f");if(X(this,T,"f")&&X(this,j,"f").indexOf(X(this,T,"f").sentinel)>=0){let $=X(this,T,"f");B(this,T,null,"f"),$.resolve()}};KQ=new WeakMap,GQ=new WeakMap,OQ=new WeakMap,d=new WeakMap,h=new WeakMap,t=new WeakMap,p=new WeakMap,ZQ=new WeakMap,g=new WeakMap,wQ=new WeakSet,x0=function(Q,$){if(X(this,ZQ,"f").push(Q),B(this,g,X(this,g,"f")+Q.length,"f"),$&&X(this,p,"f")+1<X(this,h,"f"))X(this,ZQ,"f").push(y0),B(this,g,X(this,g,"f")+y0.length,"f");if(X(this,g,"f")>X(this,t,"f"))throw X(this,wQ,"m",L0).call(this)},L0=function(){if(X(this,h,"f")-X(this,d,"f")===1)return new D(`read: line ${X(this,d,"f")+1} of ${X(this,KQ,"f")} alone exceeds ${X(this,t,"f")}-byte limit. The read tool cannot return part of a line, so view_range cannot narrow this further.`);return new D(`read: view_range [${X(this,GQ,"f")}, ${X(this,OQ,"f")}] of ${X(this,KQ,"f")} exceeds ${X(this,t,"f")}-byte limit. Narrow the view_range to read a smaller portion.`)}});h1();export{i0 as setupSkills,HQ as resolvePath,oQ as extractSkillArchive,E1 as betaWriteTool,v1 as betaReadTool,f1 as betaGrepTool,u1 as betaGlobTool,F1 as betaEditTool,x1 as betaBashTool,R2 as betaAgentToolset20260401,R0 as SessionMemoryStores,m as SessionMemoryError,M0 as MIN_MEMORY_SYNC_INTERVAL_MS,D1 as MEMORY_FLUSH_TIMEOUT_MS,s as MARKER_PATH,kQ as DEFAULT_MEMORY_SYNC_INTERVAL_MS,F0 as BashTimeoutError,f0 as BashSession};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e$ as a,f$ as b,g$ as c,h$ as d,i$ as e,j$ as f,k$ as g,l$ as h}from"./cli-1.1.29-ar7jahd2.mjs";import"./cli-1.1.29-4xqgqvwm.mjs";h();export{g as util,f as stream,e as path,d as os,c as fs,b as crypto,a as child_process};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aka as g,Bka as h,Cka as i,Dka as j,uka as a,vka as b,wka as c,xka as d,yka as e,zka as f}from"./cli-1.1.29-3dnft82a.mjs";import"./cli-1.1.29-4xqgqvwm.mjs";j();export{i as getOauthConfig,a as fileSuffixForOauthConfig,d as OAUTH_BETA_HEADER,h as MCP_CLIENT_METADATA_URL,e as CONSOLE_OAUTH_SCOPES,c as CLAUDE_AI_PROFILE_SCOPE,f as CLAUDE_AI_OAUTH_SCOPES,b as CLAUDE_AI_INFERENCE_SCOPE,g as ALL_OAUTH_SCOPES};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{$i as WZ,Zi as QZ,_i as D0}from"./cli-1.1.29-2tyhgmxe.mjs";import{cj as l$,ej as Y1}from"./cli-1.1.29-0rnfn0gy.mjs";import{Aq as c$,Ar as K1,Bq as i$,Br as X$,Cq as I$,Cr as EZ,Dq as J1,Dr as C$,Er as K0,Fr as j0,Gr as a$,Hj as _$,Hr as X0,Ij as eZ,Iq as e$,Ir as V0,Jj as o,Jq as N0,Jr as o$,Kj as m$,Kr as j1,Lj as d$,Mj as p$,Nj as $0,Oj as A$,Sq as Y0,Xk as f$,Yk as $1,fm as Z0,im as Z1,jr as z0,qr as z1,rR as P0,rr as Z$,sR as TZ,tR as r$,uR as gZ,yr as hZ,zr as n$}from"./cli-1.1.29-am1n3767.mjs";import"./cli-1.1.29-cwngf5s4.mjs";import"./cli-1.1.29-7vrxybxh.mjs";import"./cli-1.1.29-ra7737c1.mjs";import"./cli-1.1.29-zf1md9se.mjs";import"./cli-1.1.29-31y8na35.mjs";import"./cli-1.1.29-6ngsfhk3.mjs";import"./cli-1.1.29-zh2qqpcy.mjs";import"./cli-1.1.29-ccmw3ns3.mjs";import"./cli-1.1.29-0vpcc8vm.mjs";import"./cli-1.1.29-xjh2k6ex.mjs";import"./cli-1.1.29-cgska4m2.mjs";import"./cli-1.1.29-kjbjanmr.mjs";import"./cli-1.1.29-89nqwnk6.mjs";import"./cli-1.1.29-sb5dzja5.mjs";import"./cli-1.1.29-c67xmzgw.mjs";import"./cli-1.1.29-f8qh0czy.mjs";import"./cli-1.1.29-995n5c8r.mjs";import"./cli-1.1.29-9fkgjjzm.mjs";import"./cli-1.1.29-xfcy5e42.mjs";import"./cli-1.1.29-6qykmvew.mjs";import"./cli-1.1.29-dseazhey.mjs";import"./cli-1.1.29-7pfvq0z6.mjs";import"./cli-1.1.29-0s73ykp6.mjs";import"./cli-1.1.29-23gv5dgk.mjs";import"./cli-1.1.29-smn5dd7n.mjs";import{F2 as M$,K2 as SZ}from"./cli-1.1.29-yddrcp23.mjs";import"./cli-1.1.29-1dqp4d2w.mjs";import{K3 as W0,M3 as W1}from"./cli-1.1.29-mcacd7ag.mjs";import{$3 as Q1,X3 as Q0}from"./cli-1.1.29-q7nywp06.mjs";import"./cli-1.1.29-9qc9kyz8.mjs";import"./cli-1.1.29-aa81cr7r.mjs";import"./cli-1.1.29-3fcr0sm5.mjs";import"./cli-1.1.29-akx5bp37.mjs";import"./cli-1.1.29-nx6ynaex.mjs";import"./cli-1.1.29-nxvs12dw.mjs";import"./cli-1.1.29-aptcshv0.mjs";import"./cli-1.1.29-kd96jtpb.mjs";import{q5 as J0,r5 as D1}from"./cli-1.1.29-0kfg7hf8.mjs";import"./cli-1.1.29-ymcd1d05.mjs";import"./cli-1.1.29-m4j21s8k.mjs";import{Y5 as tZ,c6 as e0}from"./cli-1.1.29-8k2xw0ns.mjs";import"./cli-1.1.29-57e9kkv7.mjs";import"./cli-1.1.29-5gydp5n7.mjs";import"./cli-1.1.29-29svre2k.mjs";import{m_ as oZ,n_ as rZ,o_ as sZ,u_ as u$,v_ as bZ,w_ as kZ}from"./cli-1.1.29-71e5px3b.mjs";import"./cli-1.1.29-cjy4bmpv.mjs";import{Bha as h$,Cha as nZ,Gha as aZ,Kha as t0,Nha as Y$,Qha as ZZ,bha as $Z,cha as L0,nha as dZ,qha as pZ,rha as s0,vha as cZ,xha as k$,yha as iZ,zha as lZ}from"./cli-1.1.29-a6pnwve8.mjs";import"./cli-1.1.29-5p2zzfpq.mjs";import"./cli-1.1.29-84fpb4zk.mjs";import"./cli-1.1.29-6g47vtst.mjs";import"./cli-1.1.29-252q86ck.mjs";import"./cli-1.1.29-m7rehwdd.mjs";import"./cli-1.1.29-4bemzx23.mjs";import"./cli-1.1.29-3dnft82a.mjs";import"./cli-1.1.29-gycpj0z6.mjs";import{Hla as T,Kla as O$}from"./cli-1.1.29-rfz718th.mjs";import"./cli-1.1.29-q4fv8e5e.mjs";import"./cli-1.1.29-v6y1118n.mjs";import{Ama as P$,sma as a,uma as D$}from"./cli-1.1.29-79tgwbnn.mjs";import{dsa as o0,eoa as U$}from"./cli-1.1.29-dfra4ygt.mjs";import"./cli-1.1.29-4pdnzc5j.mjs";import{Isa as V$,fta as r0}from"./cli-1.1.29-pf67dsfj.mjs";import"./cli-1.1.29-2e5s8gsb.mjs";import"./cli-1.1.29-9n8sz71q.mjs";import"./cli-1.1.29-snxnt4nr.mjs";import{Wta as y}from"./cli-1.1.29-4xqgqvwm.mjs";function J$($,Z=!0){let Q=e$($);if(Q.type==="object"&&Q.properties){let W=Q.properties,J=Array.isArray(Q.required)?Q.required:[],D={};for(let[z,X]of Object.entries(W))D[z]=J$(X,Z);if(Q.properties=D,Z)Q.required=J.filter((z)=>(z in D)),Q.additionalProperties=!1;else Q.required=J.filter((z)=>(z in D))}if("items"in Q)if(Array.isArray(Q.items))Q.items=Q.items.map((W)=>J$(W,Z));else Q.items=J$(Q.items,Z);for(let W of["anyOf","oneOf","allOf"])if(W in Q&&Array.isArray(Q[W]))Q[W]=Q[W].map((J)=>J$(J,Z));return Q}function B$($){let Q=!o()&&!a(process.env.CLAUDIN_DISABLE_STRICT_TOOLS);return $.filter((W)=>W.name!=="ToolSearchTool").filter((W)=>!W.type||W.type==="function"||W.type==="custom").map((W)=>{let J=W.description??"";if(W.input_schema){let X=t$.get(W.input_schema);if(X&&X.name===W.name&&X.description===J&&X.strict===Q)return X.result}w0.computes++;let D={...W.input_schema??{type:"object",properties:{}}};if(W.name==="Agent"&&D.properties){let X=D.properties;if(!Array.isArray(D.required))D.required=[];let Y=D.required;for(let K of["message","subagent_type"])if(K in X&&!Y.includes(K))Y.push(K)}let z={type:"function",function:{name:W.name,description:J,parameters:J$(D,Q)}};if(W.input_schema)t$.set(W.input_schema,{name:W.name,description:J,strict:Q,result:z});return z})}var t$,w0;var v$=y(()=>{P$();N0();A$();t$=new WeakMap,w0={computes:0}});function M0(){if(D$())return;try{return $Z().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function JZ(){if(Y$()?.transport!=="gemini")return;let $=QZ(process.env);if($&&$!=="access-token")return;if(D$())return;M0()}var DZ=y(()=>{ZZ();P$();WZ();L0()});import{randomUUID as U0}from"crypto";function _0(){return U0()}function YZ($,Z){let Q=_0(),W=Date.now();return T(JSON.stringify({type:"api_call_start",correlationId:Q,provider:$,model:Z,timestamp:W}),{level:"debug"}),{correlationId:Q,startTime:W}}function zZ($,Z,Q,W,J,D,z,X,Y,K){let V=Date.now()-Z,F={type:W==="error"?"api_call_error":"api_call_end",correlationId:$,model:Q,duration_ms:V,status:W,tokens_in:J,tokens_out:D,streaming:z};if(X!==void 0)F.first_token_ms=X;if(Y!==void 0)F.total_chunks=Y;if(K)F.error=K;T(JSON.stringify(F),{level:W==="error"?"error":"debug"})}var KZ=y(()=>{O$()});function jZ($){return $.trim().length===0}function f0($){return/^\s*\{\s*['"]?\w+['"]?\s*:/.test($)}function I0($){return typeof $==="object"&&$!==null&&!Array.isArray($)}function R0($){return VZ[$]??null}function FZ($){return $ in VZ}function XZ($,Z){let Q=R0($);if(!Q)return null;return{[Q]:Z}}function $$($,Z){if(Z===void 0)return{};try{let Q=JSON.parse(Z);if(I0(Q))return Q;if(typeof Q==="string"&&!jZ(Q))return XZ($,Q)??Q;return Q}catch{if(jZ(Z)||f0(Z))return{};return XZ($,Z)??{}}}var VZ;var q$=y(()=>{VZ={Bash:"command",Read:"file_path",Write:"file_path",Edit:"file_path",Glob:"pattern",Grep:"pattern"}});function z$($){if(!$)return{};let Z={};for(let[Q,W]of Object.entries($)){let J=Q.toLowerCase();if(J.startsWith("x-anthropic")||J.startsWith("anthropic-")||J.startsWith("x-claude")||J==="x-app"||J==="x-client-app"||J==="authorization"||J==="x-api-key"||J==="api-key")continue;Z[Q]=W}return Z}function GZ($){let Z=$.headers.get("retry-after");return Z?` (Retry-After: ${Z})`:""}var HZ=()=>{};function PZ($){return new Promise((Z)=>setTimeout(Z,$))}function K$(){return`msg_${crypto.randomUUID().replace(/-/g,"")}`}var S$=()=>{};function A0($){let Z=OZ.get($);if(Z!==void 0)return Z;wZ.toolResultComputes++;let Q=v0($.content,$.is_error);return OZ.set($,Q),Q}function B0($){if(typeof $==="string")return $;if($===null||$===void 0)return"{}";if(typeof $!=="object")return JSON.stringify($);let Z=NZ.get($);if(Z!==void 0)return Z;wZ.toolUseArgumentsComputes++;let Q=JSON.stringify($);return NZ.set($,Q),Q}function E$($){if(!$)return"";if(typeof $==="string")return $;if(Array.isArray($))return $.map((Z)=>Z.type==="text"?Z.text??"":"").join(`
|
|
2
|
+
|
|
3
|
+
`);return String($)}function v0($,Z){if(typeof $==="string")return Z?`Error: ${$}`:$;if(!Array.isArray($)){let J=JSON.stringify($??"");return Z?`Error: ${J}`:J}let Q=[];for(let J of $){if(J?.type==="text"&&typeof J.text==="string"){Q.push({type:"text",text:J.text});continue}if(J?.type==="image"){let D=J.source;if(D?.type==="url"&&D.url)Q.push({type:"image_url",image_url:{url:D.url}});else if(D?.type==="base64"&&D.media_type&&D.data)Q.push({type:"image_url",image_url:{url:`data:${D.media_type};base64,${D.data}`}});continue}if(typeof J?.text==="string")Q.push({type:"text",text:J.text})}if(Q.length===0)return"";if(Q.length===1&&Q[0].type==="text"){let J=Q[0].text??"";return Z?`Error: ${J}`:J}if(Q.every((J)=>J.type==="text")){let J=Q.map((D)=>D.text??"").join(`
|
|
4
|
+
|
|
5
|
+
`);return Z?`Error: ${J}`:J}if(Z&&Q[0]?.type==="text")Q[0]={...Q[0],text:`Error: ${Q[0].text??""}`};else if(Z)Q.unshift({type:"text",text:"Error:"});return Q}function N$($){if(typeof $==="string")return $;if(!Array.isArray($))return String($??"");let Z=[];for(let W of $)switch(W.type){case"text":Z.push({type:"text",text:W.text??""});break;case"image":{let J=W.source;if(J?.type==="base64")Z.push({type:"image_url",image_url:{url:`data:${J.media_type};base64,${J.data}`}});else if(J?.type==="url")Z.push({type:"image_url",image_url:{url:J.url}});break}case"tool_use":break;case"tool_result":break;case"thinking":case"redacted_thinking":break;default:if(W.text)Z.push({type:"text",text:W.text})}if(Z.length===0)return"";if(Z.length===1&&Z[0].type==="text")return Z[0].text??"";if(Z.every((W)=>W.type==="text"))return Z.map((W)=>W.text??"").join(`
|
|
6
|
+
|
|
7
|
+
`);return Z}function LZ($,Z,Q){let W=Q?.preserveReasoningContent===!0,J=[],D=new Set,z=new Set;for(let K of $){let F=(K.message??K).content;if(Array.isArray(F)){for(let w of F)if(w.type==="tool_result"&&w.tool_use_id)z.add(w.tool_use_id)}}let X=E$(Z);if(X)J.push({role:"system",content:X});for(let K=0;K<$.length;K++){let V=$[K],F=K===$.length-1,w=V.message??V,M=w.role??V.role,H=w.content;if(M==="user")if(Array.isArray(H)){let L=H.filter((O)=>O.type==="tool_result"),_=H.filter((O)=>O.type!=="tool_result");for(let O of L){let R=O.tool_use_id??"unknown";if(D.has(R))J.push({role:"tool",tool_call_id:R,content:A0(O)});else T(`Dropping orphan tool_result for ID: ${R} to prevent API error`)}if(_.length>0)J.push({role:"user",content:N$(_)})}else J.push({role:"user",content:N$(H)});else if(M==="assistant")if(Array.isArray(H)){let L=H.filter((P)=>P.type==="tool_use"),_=H.find((P)=>P.type==="thinking"),O=H.filter((P)=>P.type!=="tool_use"&&P.type!=="thinking"),R={role:"assistant",content:(()=>{let P=N$(O);return typeof P==="string"?P:Array.isArray(P)?P.map((f)=>f.text??"").join(""):""})()};if(W){let P=_?.thinking;if(typeof P==="string"&&P.trim().length>0)R.reasoning_content=P;else R.reasoning_content=""}if(L.length>0){let P=L.map((f)=>{let g=f.id??`call_${crypto.randomUUID().replace(/-/g,"")}`;if(!z.has(g)&&!F)return null;D.add(g);let b={id:g,type:"function",function:{name:f.name??"unknown",arguments:B0(f.input)}};if(f.extra_content)b.extra_content={...f.extra_content};if(o()){let l=f.signature??_?.signature,r=b.extra_content?.google??{};b.extra_content={...b.extra_content,google:{...r,thought_signature:l??"skip_thought_signature_validator"}}}return b}).filter((f)=>f!==null);if(P.length>0)R.tool_calls=P}if(R.content||R.tool_calls?.length)J.push(R)}else{let L={role:"assistant",content:(()=>{let _=N$(H);return typeof _==="string"?_:Array.isArray(_)?_.map((O)=>O.text??"").join(""):""})()};if(L.content)J.push(L)}}let Y=[];for(let K of J){let V=Y[Y.length-1];if(V&&V.role==="tool"&&K.role==="user")Y.push({role:"assistant",content:"[Tool execution interrupted by user]"});let F=Y[Y.length-1];if(F&&F.role===K.role&&K.role!=="tool"&&K.role!=="system"){let w=F.content,M=K.content;if(typeof w==="string"&&typeof M==="string")F.content=w+(w&&M?`
|
|
8
|
+
`:"")+M;else{let H=(L)=>{if(!L)return[];if(typeof L==="string")return L?[{type:"text",text:L}]:[];return L};F.content=[...H(w),...H(M)]}if(K.tool_calls?.length)F.tool_calls=[...F.tool_calls??[],...K.tool_calls]}else Y.push(K)}return Y}var OZ,NZ,wZ;var MZ=y(()=>{O$();A$();OZ=new WeakMap,NZ=new WeakMap,wZ={toolResultComputes:0,toolUseArgumentsComputes:0}});function _Z($){for(let Z of UZ){let Q=$[Z];if(typeof Q==="string"&&Q!=="")return Q}return null}function fZ($){for(let Z of UZ){let Q=$[Z];if(typeof Q==="string"&&Q!=="")return Q}return null}var UZ;var x$=y(()=>{UZ=["reasoning_content","reasoning","reasoning_text","thinking"]});function IZ(){return{chunkCount:0,firstTokenTime:null,startTime:Date.now()}}function y$($,Z){if($.firstTokenTime===null)$.firstTokenTime=Date.now();$.chunkCount++}function RZ($){let Z=Date.now(),Q=$.firstTokenTime?Z-$.firstTokenTime:null,W=Z-$.startTime;return{totalChunks:$.chunkCount,firstTokenMs:Q,durationMs:W}}var AZ=()=>{};function j$($){let Z=$.trim();if(Z==="")return"";try{return JSON.parse(Z)}catch{return $}}function d0($,Z){let Q=0,W=!1,J=!1;for(let D=Z;D<$.length;D++){let z=$[D];if(J){J=!1;continue}if(z==="\\"&&W){J=!0;continue}if(z==='"'){W=!W;continue}if(W)continue;if(z==="{")Q++;else if(z==="}"){if(Q--,Q===0)return $.slice(Z,D+1)}}return null}function p0($,Z){let Q=[...Z].sort((D,z)=>D[0]-z[0]),W="",J=0;for(let[D,z]of Q)W+=$.slice(J,D),J=z;return W+$.slice(J)}function w$($){return $.split("?",1)[0]?.toLowerCase()==="tencent/hy3"}function c0($){let Z={},Q=$.trim(),W=Q.split(/[\n<]/,1)[0]?.trim().replace(/[\s`*_]+$/,""),J=!1;for(let D of $.matchAll(k0)){let z=D[1];if(z)J=!0,Z[z]=j$(D[2]??"")}for(let D of $.matchAll(h0)){let z=D[1];if(z)J=!0,Z[z]=j$(D[2]??"")}for(let D of $.matchAll(u0)){let z=D[1]?.trim();if(z)J=!0,Z[z]=j$(D[2]??"")}return{name:W&&m0.test(W)&&(J||Q===W)?W:void 0,args:Z}}function vZ($,Z){let Q=0,W=Z?BZ:[T$];for(let J of W){let D=Math.min($.length,J.length-1);for(let z=D;z>0;z--)if(J.startsWith($.slice($.length-z))){Q=Math.max(Q,z);break}}return Q}function qZ($,Z){return(Z?BZ:[T$]).reduce((W,J)=>{let D=$.indexOf(J);return D===-1?W:W===-1?D:Math.min(W,D)},-1)}function i0($,Z=!1){let Q=[],W=new Set,J=[],D=(Y,K)=>{let V=`${Y}:${JSON.stringify(K)}`;if(W.has(V))return;W.add(V),Q.push({id:`xml_tc_${++q0}`,name:Y,arguments:K})},z=Z?[...$.matchAll(C0)].map((Y)=>({range:[Y.index,Y.index+Y[0].length],parsed:c0(Y[1]??"")})):[],X=Z?[...$.matchAll(y0)].filter((Y)=>{let K=[Y.index,Y.index+Y[0].length];return z.some((V)=>V.parsed.name&&K[0]<=V.range[0]&&V.range[1]<=K[1])}).map((Y)=>[Y.index,Y.index+Y[0].length]):[];for(let Y of z){let{name:K,args:V}=Y.parsed;if(!K)continue;let F=Y.range;if(!X.some((w)=>w[0]<=F[0]&&F[1]<=w[1]))J.push(F);D(K,V)}J.push(...X);for(let Y of $.matchAll(x0)){let K=Y[1]??"",V=[Y.index,Y.index+Y[0].length],F,w={},M=K.match(T0);if(M){F=M[1];for(let H of K.matchAll(g0)){let L=H[1];if(L)w[L]=j$(H[2]??"")}}else{let H=K.trim(),L=[...K.matchAll(b0)];if(L.length>0&&!H.startsWith("{")){let _=H.split(/[\n<]/,1)[0]?.trim();if(_)F=_;for(let O of L){let R=(O[1]??"").trim();if(R)w[R]=j$(O[2]??"")}}else{let _=H.indexOf("{");if(_!==-1){let O=d0(H,_);if(O)try{let R=JSON.parse(O);if(typeof R.name==="string"){F=R.name;let P=R.arguments;if(typeof P==="string")try{Object.assign(w,JSON.parse(P))}catch{}else if(P&&typeof P==="object")Object.assign(w,P)}}catch{}}}}if(!F)continue;J.push(V),D(F,w)}return{calls:Q,toolCallRanges:J}}function L$($,Z={}){let{calls:Q,toolCallRanges:W}=i0($,Z.allowHy3??!1),J=Z.toolNames?Q.filter((z)=>Z.toolNames.has(z.name)):Q;if(J.length===0)return null;return{visibleText:X$(p0($,W).trim()).trim(),calls:J}}var q0=0,T$="<tool_call>",S0="<tool_calls:",E0="<tool_call:",BZ,x0,y0,C0,T0,g0,b0,k0,h0,u0,m0;var g$=y(()=>{C$();BZ=[T$,S0,E0],x0=/<tool_call>([\s\S]*?)(?:<\/tool_call>|$)/g,y0=/<tool_calls:[^>\s]+>([\s\S]*?)(?:<\/tool_calls(?::[^>\s]+)?>|$)/g,C0=/<tool_call:[^>\s]+>([\s\S]*?)(?:<\/tool_call(?::[^>\s]+)?>|$)/g,T0=/<function=([^>\s]+)\s*>/,g0=/<parameter=([^>\s]+)\s*>([\s\S]*?)<\/parameter>/g,b0=/<arg_key>([\s\S]*?)<\/arg_key>\s*<arg_value>([\s\S]*?)<\/arg_value>/g,k0=/<parameter\s+name=["']([^"'>\s]+)["']\s*>([\s\S]*?)<\/parameter>/g,h0=/^\s*([A-Za-z_][\w-]*)\s*:\s*(.+?)\s*$/gm,u0=/<arg_key(?::[^>\s]+)?>([\s\S]*?)<\/arg_key(?::[^>\s]+)?>\s*<arg_value(?::[^>\s]+)?>([\s\S]*?)<\/arg_value(?::[^>\s]+)?>/g,m0=/^[A-Za-z_][\w.-]*$/});function l0($){if(!$)return;return M$($)}function n0($){try{let Z=JSON.parse($);return Z&&typeof Z==="object"&&!Array.isArray(Z)?$:null}catch{for(let Z of xZ)try{let Q=$+Z,W=JSON.parse(Q);if(W&&typeof W==="object"&&!Array.isArray(W))return Q}catch{}return null}}async function*yZ($,Z,Q,W,J){let D=K$(),z=0,X=new Map,Y=!1,K=!1,V=!1,F=EZ(),w=null,M=!1,H=!1,L=0,_=IZ(),O=!!J&&J.size>0&&!a(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS),R=w$(Z),P=null,f="",g=null;yield{type:"message_start",message:{id:D,type:"message",role:"assistant",content:[],model:Z,stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}};let b=$.body?.getReader();if(!b)return;let l=b,r=new TextDecoder,s="",p=120000,k=Date.now();async function F$(){return new Promise((I,B)=>{let S=setTimeout(()=>{let U=Math.round((Date.now()-k)/1000);B(Error(`OpenAI/Gemini SSE stream idle for ${U}s (limit: ${p/1000}s). Connection likely dropped.`))},p),A;if(Q)A=()=>{clearTimeout(S)},Q.addEventListener("abort",A,{once:!0});l.read().then((U)=>{if(clearTimeout(S),Q&&A)Q.removeEventListener("abort",A);if(U.value)k=Date.now();I(U)},(U)=>{if(clearTimeout(S),Q&&A)Q.removeEventListener("abort",A);B(U)})})}let n=async function*(){if(!Y)return;let I=F.flush();if(I)yield{type:"content_block_delta",index:z,delta:{type:"text_delta",text:I}};yield{type:"content_block_stop",index:z},z++,Y=!1},h=async function*(I){if(!I)return;if(K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(!Y)yield{type:"content_block_start",index:z,content_block:{type:"text",text:""}},Y=!0;L+=I.length,yield{type:"content_block_delta",index:z,delta:{type:"text_delta",text:I}}},W$=async function*(I){if(!I)return;if(P!==null){P+=I;return}let B=f+I,S=qZ(B,R);if(S!==-1){let A=B.slice(0,S);if(A)yield*h(A);f="",P=B.slice(S)}else{let A=vZ(B,R),U=A>0?B.slice(0,B.length-A):B;if(f=A>0?B.slice(B.length-A):"",U)yield*h(U)}},G$=async function*(){if(O){let I=F.flush();if(I)yield*W$(I)}if(P!==null){let I=P;P=null;let B=L$(I,{allowHy3:R,toolNames:J});if(B){if(B.visibleText)yield*h(B.visibleText);if(Y)yield*n();for(let S of B.calls){let A=z;yield{type:"content_block_start",index:A,content_block:{type:"tool_use",id:S.id,name:S.name,input:{}}},z++,yield{type:"content_block_delta",index:A,delta:{type:"input_json_delta",partial_json:JSON.stringify($$(S.name,JSON.stringify(S.arguments)))}},yield{type:"content_block_stop",index:A}}g="tool_use"}else yield*h(I)}else if(f)yield*h(f),f=""};try{while(!0){let{done:I,value:B}=await F$();if(I)break;s+=r.decode(B,{stream:!0});let S=s.split(`
|
|
9
|
+
`);s=S.pop()??"";for(let A of S){let U=A.trim();if(!U||U==="data: [DONE]")continue;if(!U.startsWith("data: "))continue;let e;try{e=JSON.parse(U.slice(6))}catch{continue}let c=l0(e.usage);for(let u of e.choices??[]){let d=u.delta,G=_Z(d);if(G!=null){if(!K)yield{type:"content_block_start",index:z,content_block:{type:"thinking",thinking:""}},K=!0;yield{type:"content_block_delta",index:z,delta:{type:"thinking_delta",thinking:G}}}if(d.content!=null&&d.content!==""){let j=F.feed(d.content);if(y$(_,d.content),j)if(O)yield*W$(j);else yield*h(j)}if(d.tool_calls){if(P!==null)yield*h(P),P=null;if(f)yield*h(f),f="";for(let j of d.tool_calls)if(j.id&&j.function?.name){if(K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(Y)yield*n();let N=z,v=j.function.arguments??"",E=FZ(j.function.name);if(y$(_,j.function.arguments??""),X.set(j.index,{id:j.id,name:j.function.name,index:N,jsonBuffer:v,normalizeAtStop:E}),yield{type:"content_block_start",index:N,content_block:{type:"tool_use",id:j.id,name:j.function.name,input:{},...j.extra_content?{extra_content:j.extra_content}:{},...j.extra_content?.google?.thought_signature?{signature:(j.extra_content?.google).thought_signature}:{}}},z++,j.function.arguments&&!E)L+=j.function.arguments.length,yield{type:"content_block_delta",index:N,delta:{type:"input_json_delta",partial_json:j.function.arguments}}}else if(j.function?.arguments){let N=X.get(j.index);if(N){if(j.function.arguments)L+=j.function.arguments.length,N.jsonBuffer+=j.function.arguments;if(N.normalizeAtStop)continue;yield{type:"content_block_delta",index:N.index,delta:{type:"input_json_delta",partial_json:j.function.arguments}}}}}if(u.finish_reason&&!H){if(H=!0,K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(yield*G$(),g)u.finish_reason="tool_calls";if(Y)yield*n();for(let[,N]of X){if(N.normalizeAtStop){let E;if(u.finish_reason==="length")E=N.jsonBuffer;else{let C=n0(N.jsonBuffer);if(C)E=C;else E=JSON.stringify($$(N.name,N.jsonBuffer))}yield{type:"content_block_delta",index:N.index,delta:{type:"input_json_delta",partial_json:E}},yield{type:"content_block_stop",index:N.index};continue}let v="";if(N.jsonBuffer)try{JSON.parse(N.jsonBuffer)}catch{let E=N.jsonBuffer.trimEnd();for(let C of xZ)try{JSON.parse(E+C),v=C;break}catch{}}if(v)yield{type:"content_block_delta",index:N.index,delta:{type:"input_json_delta",partial_json:v}};yield{type:"content_block_stop",index:N.index}}let j=u.finish_reason==="tool_calls"?"tool_use":u.finish_reason==="length"?"max_tokens":"end_turn";if(u.finish_reason==="content_filter"||u.finish_reason==="safety"){if(!Y)yield{type:"content_block_start",index:z,content_block:{type:"text",text:""}},Y=!0;yield{type:"content_block_delta",index:z,delta:{type:"text_delta",text:`
|
|
10
|
+
|
|
11
|
+
[Content blocked by provider safety filter]`}}}if(w=j,yield{type:"message_delta",delta:{stop_reason:j,stop_sequence:null},...c?{usage:c}:{}},c)M=!0}}if(!M&&c&&(e.choices?.length??0)===0&&w!==null)yield{type:"message_delta",delta:{stop_reason:w,stop_sequence:null},usage:c},M=!0}}}finally{l.releaseLock()}if(!H&&(P!==null||f)){if(K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(yield*G$(),Y)yield*n();w=g??"end_turn",yield{type:"message_delta",delta:{stop_reason:w,stop_sequence:null}}}let t=RZ(_);if(t.totalChunks>0)T(JSON.stringify({type:"stream_stats",model:Z,total_chunks:t.totalChunks,first_token_ms:t.firstTokenMs,duration_ms:t.durationMs}),{level:"debug"});if(!M&&w!==null&&(L>0||(W??0)>0)){let I=TZ(Z);yield{type:"message_delta",delta:{stop_reason:w,stop_sequence:null},usage:{input_tokens:W??0,output_tokens:Math.ceil(L/I),cache_creation_input_tokens:0,cache_read_input_tokens:0}}}yield{type:"message_stop"}}var xZ,b$;var CZ=y(()=>{O$();AZ();SZ();C$();q$();gZ();P$();S$();x$();g$();xZ=["}",'"}',"]}",'"]}',"}}",'"}}',"]}}",'"]}}','"]}]}',"}]}"];b$=class b${generator;controller=new AbortController;constructor($){this.generator=$}async*[Symbol.asyncIterator](){yield*this.generator}}});function a0($){let Z=$.toLowerCase();return bZ.some((Q)=>Z.includes(Q))}function Q$($){try{let Z=new URL($);if(Z.username)Z.username="redacted";if(Z.password)Z.password="redacted";for(let W of Z.searchParams.keys())if(a0(W))Z.searchParams.set(W,"redacted");let Q=Z.toString();return Z$(Q,process.env)??Q}catch{return Z$($,process.env)??$}}var uZ=y(()=>{hZ();kZ()});function mZ($){if(!$)return!1;try{let Z=new URL($).host;return Z==="api.openai.com"||Z.endsWith(".api.openai.com")}catch{return!1}}class F0{defaultHeaders;reasoningEffort;constructor($,Z){this.defaultHeaders=z$($),this.reasoningEffort=Z}create($,Z){let Q=this,W,J=(async()=>{let D=z0($.model,$.effortValue),z=D==="low"||D==="medium"||D==="high"||D==="xhigh"||D==="max"?D:Q.reasoningEffort,X=nZ({model:$.model,reasoningEffortOverride:z}),Y=await Q._doRequest(X,$,Z);W=Y;let K=new Set(($.tools??[]).map((M)=>M.name).filter((M)=>typeof M==="string"));if($.stream){let M=Y.url?.includes("/responses"),H=0;for(let L of $.messages){let _=L,O=_.message?_.message.content:_.content;if(O!=null&&typeof O!=="string"&&!Array.isArray(O))continue;H+=r$(O??void 0)}if(typeof $.system==="string")H+=P0($.system);else if(Array.isArray($.system))H+=r$($.system);return new b$(X.transport==="codex_responses"||M?V0(Y,X.resolvedModel,Z?.signal):yZ(Y,X.resolvedModel,Z?.signal,H,K))}if(X.transport==="codex_responses"){let M=await X0(Y,Z?.signal);return o$(M,X.resolvedModel)}if(Y.url?.includes("/responses")||X.transport==="chat_completions"&&_$()){if((Y.headers.get("content-type")??"").includes("application/json")){let H=await Y.json();if(H&&typeof H==="object"&&(("output"in H)||("incomplete_details"in H)))return o$(H,X.resolvedModel);return Q._convertNonStreamingResponse(H,X.resolvedModel,K)}}if((Y.headers.get("content-type")??"").includes("application/json")){let M=await Y.json();return Q._convertNonStreamingResponse(M,X.resolvedModel,K)}let w=await Y.text().catch(()=>"");throw V$.generate(Y.status,void 0,`OpenAI API error ${Y.status}: unexpected response: ${w.slice(0,500)}`,Y.headers)})();return J.withResponse=async()=>{return{data:await J,response:W??new Response,request_id:W?.headers.get("x-request-id")??K$()}},J}async _doRequest($,Z,Q){let W=h$($.baseUrl),J=_$();if(J&&$.transport==="codex_responses"){let z=Y$(),X=z?.extras?.githubToken??z?.apiKey??"";if(!X)throw Error("GitHub Copilot auth is required. Run /provider and choose GitHub Copilot.");return a$({request:$,credentials:{apiKey:X,source:"env"},params:Z,defaultHeaders:{...this.defaultHeaders,...z$(Q?.headers),...u$,...l$(Z.messages)},signal:Q?.signal})}if($.transport==="codex_responses"&&!J){let z=await pZ().catch(async(Y)=>{return T(`[codex] access token refresh failed before request: ${Y instanceof Error?Y.message:String(Y)}`,{level:"warn"}),{refreshed:!1,credentials:await dZ()}}),X=aZ({storedCredentials:z.credentials});if(!X.apiKey){let Y=D$()?"":", choose Codex OAuth in /provider",K=X.authPath?`${Y} or place a Codex auth.json at ${X.authPath}`:Y,V=Z$($.requestedModel,process.env)??"the requested model";throw Error(`Codex auth is required for ${V}. Set CODEX_API_KEY${K}.`)}if(!X.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.");return a$({request:$,credentials:X,params:Z,defaultHeaders:{...this.defaultHeaders,...z$(Q?.headers)},signal:Q?.signal})}return this._doOpenAIRequest($,Z,Q)}async _doOpenAIRequest($,Z,Q){let W=Z0(Z.messages),J=LZ(W,Z.system,{preserveReasoningContent:m$($.baseUrl)||p$($.baseUrl)||d$($.baseUrl)}),D={model:$.resolvedModel,messages:J,stream:Z.stream??!1,store:!1,...mZ($.baseUrl)&&{prompt_cache_key:U$(),prompt_cache_retention:"24h"}},z=typeof Z.max_tokens==="number"&&Z.max_tokens>0?Z.max_tokens:void 0,X=typeof Z.max_completion_tokens==="number"?Z.max_completion_tokens:void 0;if(z!==void 0)D.max_completion_tokens=z;else if(X!==void 0)D.max_completion_tokens=X;if(Z.stream&&!k$($.baseUrl))D.stream_options={include_usage:!0};let Y=_$(),K=eZ(),V=k$($.baseUrl),F=h$($.baseUrl),w=Y&&F==="copilot",M=Y&&(F==="models"||F==="custom"),H=m$($.baseUrl),L=p$($.baseUrl),_=d$($.baseUrl);if((Y||K||V||H||L||_)&&D.max_completion_tokens!==void 0)D.max_tokens=D.max_completion_tokens,delete D.max_completion_tokens;if(K||o()||H||L||_)delete D.store;if(Z.temperature!==void 0)D.temperature=Z.temperature;if(Z.top_p!==void 0)D.top_p=Z.top_p;if(L){let G=Z.thinking?.type,j=G==="disabled"?"disabled":G==="enabled"||G==="adaptive"?"enabled":void 0;if(j)D.thinking={type:j};if(j==="enabled"){let N=$.reasoning?.effort;if(N)D.reasoning_effort=$0(N)}}if(H){let G=$.reasoning?.effort;if(G&&Y0($.resolvedModel))D.thinking={type:"enabled",effort:G,keep:"all"}}if(Z.tools&&Z.tools.length>0){let G=B$(Z.tools);if(G.length>0){if(D.tools=G,Z.tool_choice){let j=Z.tool_choice;if(j.type==="auto")D.tool_choice="auto";else if(j.type==="tool"&&j.name)D.tool_choice={type:"function",function:{name:j.name}};else if(j.type==="any")D.tool_choice="required";else if(j.type==="none")D.tool_choice="none"}}}let O={"Content-Type":"application/json",...this.defaultHeaders,...z$(Q?.headers),"User-Agent":J0()},R=o(),P=Y$(),f=await W0(P),g=P?.apiKey??P?.extras?.githubToken??f.accessToken??"",b=!1;try{let{hostname:G}=new URL($.baseUrl);b=G.endsWith(".azure.com")&&(G.includes("cognitiveservices")||G.includes("openai")||G.includes("services.ai"))}catch{}let l=!1;try{l=$.baseUrl.toLowerCase().includes("bankr")}catch{}if(g){if(b)O["api-key"]=g;else if(l)O["X-API-Key"]=g;else O.Authorization=`Bearer ${g}`;if(f.userAgent)O["User-Agent"]=f.userAgent;if(f.deviceHeaders)Object.assign(O,f.deviceHeaders)}else if(R){let G=await D0(process.env);if(G.kind!=="none"){if(O.Authorization=`Bearer ${G.credential}`,G.kind!=="api-key"&&"projectId"in G&&G.projectId)O["x-goog-user-project"]=G.projectId}}if(w)Object.assign(O,u$,l$(Z.messages));else if(M)O.Accept="application/vnd.github+json",O["X-GitHub-Api-Version"]="2022-11-28";if(cZ($.baseUrl)&&!a(process.env.CLAUDIN_DISABLE_XAI_CONV_ID))O["x-grok-conv-id"]=U$();let r=(G)=>{if(b){let j=process.env.AZURE_OPENAI_API_VERSION??"2024-12-01-preview",N=$.resolvedModel??P?.model??"gpt-4o";if(/\/deployments\//i.test(G))return`${G.replace(/\/+$/,"")}/chat/completions?api-version=${j}`;return`${G.replace(/\/(openai\/)?v1\/?$/,"").replace(/\/+$/,"")}/openai/deployments/${N}/chat/completions?api-version=${j}`}return`${G}/chat/completions`},s=V?iZ($.baseUrl):[],p=$.baseUrl,k=r(p),F$=new Set([p]),n=!1,h=(G)=>{for(let j of s){if(F$.has(j))continue;let N=k;return F$.add(j),p=j,k=r(p),T(`[OpenAIShim] self-heal retry reason=${G} method=POST from=${Q$(N)} to=${Q$(k)} model=${$.resolvedModel}`,{level:"warn"}),!0}return!1},W$=f$(D),G$=()=>{W$=f$(D)},t=()=>({method:"POST",headers:O,body:W$,signal:Q?.signal}),I=V?s.length+1:0,B=(Y?oZ:1)+I,S=(G,j,N)=>{if(Q?.signal?.aborted)throw G;let v=N??i$(G,{url:j}),E=Q$(j),C=Z$(v.message,process.env)||"Request failed";throw T(`[OpenAIShim] transport failure category=${v.category} retryable=${v.retryable} code=${v.code??"unknown"} method=POST url=${E} model=${$.resolvedModel} message=${C}`,{level:"warn"}),V$.generate(503,void 0,c$(`OpenAI API transport error: ${C}${v.code?` (code=${v.code})`:""}`,v),new Headers)},A=(G,j,N,v,E,C="",q)=>{let x=q??I$({status:G,body:j}),i=Q$(E);throw T(`[OpenAIShim] request failed category=${x.category} retryable=${x.retryable} status=${G} method=POST url=${i} model=${$.resolvedModel}`,{level:"warn"}),V$.generate(G,N,c$(`OpenAI API error ${G}: ${j}${C}`,x),v)},U,e=$.baseUrl.includes("nvidia")?"nvidia-nim":$.baseUrl.includes("minimax")?"minimax":$.baseUrl.includes("localhost:11434")||$.baseUrl.includes("localhost:11435")?"ollama":$.baseUrl.includes("anthropic")?"anthropic":"openai",c=tZ(),{correlationId:u,startTime:d}=YZ(e,$.resolvedModel);for(let G=0;G<B;G++){try{U=await n$(k,t(),{provider:c})}catch(q){if(Q?.signal?.aborted===!0||typeof DOMException<"u"&&q instanceof DOMException&&q.name==="AbortError"||typeof q==="object"&&q!==null&&"name"in q&&q.name==="AbortError")throw q;let i=i$(q,{url:k});if(V&&i.category==="localhost_resolution_failed"&&h("localhost_resolution_failed"))continue;S(q,k,i)}if(U.ok){let q=0,x=0;if(!Z.stream)try{let m=await U.clone().json();q=m.usage?.prompt_tokens??0,x=m.usage?.completion_tokens??0}catch{}return zZ(u,d,$.resolvedModel,"success",q,x,!1),U}if(Y&&U.status===429&&G<B-1){await U.text().catch(()=>{});let q=Math.min(rZ*2**G,sZ);await PZ(q*1000);continue}let j=await U.text().catch(()=>"unknown error"),N=Y&&U.status===429?GZ(U):"";if(Y&&U.status===400){if(j.includes("/chat/completions")||j.includes("not accessible")){let q=`${$.baseUrl}/responses`,x={model:$.resolvedModel,input:K0(Z.messages),stream:Z.stream??!1,store:!1,...mZ($.baseUrl)&&{prompt_cache_key:U$(),prompt_cache_retention:"24h"}};if(!Array.isArray(x.input)||x.input.length===0)x.input=[{type:"message",role:"user",content:[{type:"input_text",text:""}]}];let i=E$(Z.system);if(i)x.instructions=i;if(D.max_tokens!==void 0)x.max_output_tokens=D.max_tokens;if(Z.tools&&Z.tools.length>0){let H$=j0(Z.tools);if(H$.length>0)x.tools=H$}let m;try{m=await n$(q,{method:"POST",headers:O,body:f$(x),signal:Q?.signal},{provider:c})}catch(H$){S(H$,q)}if(m.ok)return m;let R$=await m.text().catch(()=>"unknown error"),O0=I$({status:m.status,body:R$}),s$;try{s$=JSON.parse(R$)}catch{}A(m.status,R$,s$,m.headers,q,"",O0)}}let v=I$({status:U.status,body:j});if(V&&v.category==="endpoint_not_found"&&h("endpoint_not_found"))continue;let E=Array.isArray(D.tools)&&D.tools.length>0;if(!n&&v.category==="tool_call_incompatible"&&lZ({baseUrl:p,hasTools:E})){n=!0,delete D.tools,delete D.tool_choice,G$(),T(`[OpenAIShim] self-heal retry reason=tool_call_incompatible mode=toolless method=POST url=${Q$(k)} model=${$.resolvedModel}`,{level:"warn"});continue}let C;try{C=JSON.parse(j)}catch{}A(U.status,j,C,U.headers,k,N,v)}throw V$.generate(500,void 0,"OpenAI shim: request loop exited unexpectedly",new Headers)}_convertNonStreamingResponse($,Z,Q){let W=$.choices?.[0],J=[],D=!1,z=fZ(W?.message??{});if(z)J.push({type:"thinking",thinking:z});let X=W?.message?.content!==""&&W?.message?.content!=null?W?.message?.content:null;if(typeof X==="string"&&X){let V=!!Q&&Q.size>0&&!a(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS)?L$(X,{allowHy3:w$(Z),toolNames:Q}):null;if(V){if(V.visibleText)J.push({type:"text",text:V.visibleText});for(let F of V.calls)J.push({type:"tool_use",id:F.id,name:F.name,input:$$(F.name,JSON.stringify(F.arguments))});D=!0}else J.push({type:"text",text:X$(X)})}else if(Array.isArray(X)&&X.length>0){let K=[];for(let F of X)if(F&&typeof F==="object"&&F.type==="text"&&typeof F.text==="string")K.push(F.text);let V=K.join(`
|
|
12
|
+
`);if(V)J.push({type:"text",text:X$(V)})}if(W?.message?.tool_calls)for(let K of W.message.tool_calls){let V=$$(K.function.name,K.function.arguments);J.push({type:"tool_use",id:K.id,name:K.function.name,input:V,...K.extra_content?{extra_content:K.extra_content}:{},...K.extra_content?.google?.thought_signature?{signature:(K.extra_content?.google).thought_signature}:{}})}let Y=D||W?.finish_reason==="tool_calls"?"tool_use":W?.finish_reason==="length"?"max_tokens":"end_turn";if(W?.finish_reason==="content_filter"||W?.finish_reason==="safety")J.push({type:"text",text:`
|
|
13
|
+
|
|
14
|
+
[Content blocked by provider safety filter]`});return{id:$.id??K$(),type:"message",role:"assistant",content:J,model:$.model??Z,stop_reason:Y,stop_sequence:null,usage:M$($.usage)}}}class G0{messages;reasoningEffort;constructor($,Z){this.messages=new F0($,Z),this.reasoningEffort=Z}}function X1($){JZ(),Q0();let Z=new G0({...$.defaultHeaders??{}},$.reasoningEffort);return{beta:Z,messages:Z.messages}}var H0=y(()=>{r0();s0();O$();P$();WZ();DZ();Q1();e0();z1();hZ();KZ();$1();gZ();Z1();ZZ();SZ();j1();K1();J1();t0();W1();C$();q$();D1();Y1();kZ();HZ();S$();MZ();A$();x$();CZ();o0();v$();g$();uZ()});var V1=y(()=>{v$();H0()});V1();export{X1 as createOpenAIShimClient,B$ as convertTools};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wta as t}from"./cli-1.1.29-4xqgqvwm.mjs";async function o(e){e("/output-style has been deprecated. Use /config to change your output style, or set it in your settings file. Changes take effect on the next session.",{display:"system"})}var n=()=>{};n();export{o as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ki as e,Li as a}from"./cli-1.1.29-fsht50yz.mjs";import{Wta as r}from"./cli-1.1.29-4xqgqvwm.mjs";var t;var o=r(()=>{a();t=e()});o();export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./cli-1.1.29-4xqgqvwm.mjs";var o=()=>null,n=o;export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e4 as a,f4 as b,g4 as c,h4 as d,i4 as e}from"./cli-1.1.29-aa81cr7r.mjs";import"./cli-1.1.29-gycpj0z6.mjs";import"./cli-1.1.29-rfz718th.mjs";import"./cli-1.1.29-q4fv8e5e.mjs";import"./cli-1.1.29-v6y1118n.mjs";import"./cli-1.1.29-79tgwbnn.mjs";import"./cli-1.1.29-dfra4ygt.mjs";import"./cli-1.1.29-4pdnzc5j.mjs";import"./cli-1.1.29-pf67dsfj.mjs";import"./cli-1.1.29-4xqgqvwm.mjs";e();export{c as parseCommandRaw,a as parseCommand,d as extractCommandArguments,b as PARSE_ABORTED};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DY as y,FY as Qq,IY as S,JY as Uq,RY as O,SY as Xq,TY as b,VY as f,XY as g,YY as m,_Y as D}from"./cli-1.1.29-6qykmvew.mjs";import{EZ as Hq,J1 as Nq,c1 as N,e1 as z,i1 as L,y1 as R,zZ as w}from"./cli-1.1.29-7pfvq0z6.mjs";import"./cli-1.1.29-0s73ykp6.mjs";import"./cli-1.1.29-23gv5dgk.mjs";import"./cli-1.1.29-1dqp4d2w.mjs";import{b5 as X,c5 as q,d5 as J,e5 as V}from"./cli-1.1.29-nxvs12dw.mjs";import{f5 as Jq}from"./cli-1.1.29-aptcshv0.mjs";import"./cli-1.1.29-ymcd1d05.mjs";import"./cli-1.1.29-8k2xw0ns.mjs";import"./cli-1.1.29-57e9kkv7.mjs";import"./cli-1.1.29-5gydp5n7.mjs";import"./cli-1.1.29-29svre2k.mjs";import"./cli-1.1.29-71e5px3b.mjs";import"./cli-1.1.29-cjy4bmpv.mjs";import{Cga as Yq,Tca as E,aia as P,ega as d,hga as p,iia as Bq,lda as zq,vba as v,xba as qq}from"./cli-1.1.29-a6pnwve8.mjs";import"./cli-1.1.29-5p2zzfpq.mjs";import"./cli-1.1.29-84fpb4zk.mjs";import"./cli-1.1.29-6g47vtst.mjs";import"./cli-1.1.29-252q86ck.mjs";import"./cli-1.1.29-m7rehwdd.mjs";import"./cli-1.1.29-4bemzx23.mjs";import"./cli-1.1.29-3dnft82a.mjs";import{Eka as _,Hka as k}from"./cli-1.1.29-gycpj0z6.mjs";import"./cli-1.1.29-rfz718th.mjs";import"./cli-1.1.29-q4fv8e5e.mjs";import"./cli-1.1.29-v6y1118n.mjs";import"./cli-1.1.29-79tgwbnn.mjs";import"./cli-1.1.29-dfra4ygt.mjs";import"./cli-1.1.29-4pdnzc5j.mjs";import"./cli-1.1.29-pf67dsfj.mjs";import"./cli-1.1.29-2e5s8gsb.mjs";import"./cli-1.1.29-9n8sz71q.mjs";import"./cli-1.1.29-snxnt4nr.mjs";import{Sta as s,Wta as h}from"./cli-1.1.29-4xqgqvwm.mjs";function c({onDone:Y}){let[C,U]=Q.useState(!0),[M,T]=Q.useState([]),[j,W]=Q.useState(!1),[G,x]=Q.useState(null),[A,l]=Q.useState(void 0),Z=S(()=>Y("Guest passes dialog dismissed",{display:"system"})),o=Q.useCallback(()=>{Y("Guest passes dialog dismissed",{display:"system"})},[Y]);if(y("confirm:no",o,{context:"Confirmation"}),R((H,B)=>{if(B.return&&G)w(G).then((K)=>{if(K)process.stdout.write(K);_("",{}),Y("Referral link copied to clipboard!")})}),Q.useEffect(()=>{async function H(){try{let B=await m();if(!B||!B.eligible){W(!1),U(!1);return}if(W(!0),B.referral_code_details?.referral_link)x(B.referral_code_details.referral_link);l(B.referrer_reward);let K=B.referral_code_details?.campaign??"claude_code_guest_pass",I;try{I=await b(K)}catch($){P($),W(!1),U(!1);return}let t=I.redemptions||[],a=I.limit||3,F=[];for(let $=0;$<a;$++){let e=t[$];F.push({passNumber:$+1,isAvailable:!e})}T(F),U(!1)}catch(B){P(B),W(!1),U(!1)}}H()},[]),C)return q(O,{children:J(N,{flexDirection:"column",gap:1,children:[q(z,{dimColor:!0,children:"Loading guest pass information…"}),q(z,{dimColor:!0,italic:!0,children:Z.pending?J(X,{children:["Press ",Z.keyName," again to exit"]}):q(X,{children:"Esc to cancel"})})]})});if(!j)return q(O,{children:J(N,{flexDirection:"column",gap:1,children:[q(z,{children:"Guest passes are not currently available."}),q(z,{dimColor:!0,italic:!0,children:Z.pending?J(X,{children:["Press ",Z.keyName," again to exit"]}):q(X,{children:"Esc to cancel"})})]})});let n=v(M,(H)=>H.isAvailable),r=[...M].sort((H,B)=>+B.isAvailable-+H.isAvailable),i=(H)=>{if(!H.isAvailable)return J(N,{flexDirection:"column",marginRight:1,children:[q(z,{dimColor:!0,children:"┌─────────╱"}),q(z,{dimColor:!0,children:` ) CC ${E} ┊╱`}),q(z,{dimColor:!0,children:"└───────╱"})]},H.passNumber);return J(N,{flexDirection:"column",marginRight:1,children:[q(z,{children:"┌──────────┐"}),J(z,{children:[" ) CC ",q(z,{color:"claude",children:E})," ┊ ( "]}),q(z,{children:"└──────────┘"})]},H.passNumber)};return q(O,{children:J(N,{flexDirection:"column",gap:1,children:[J(z,{color:"permission",children:["Guest passes · ",n," left"]}),q(N,{flexDirection:"row",marginLeft:2,children:r.slice(0,3).map((H)=>i(H))}),G&&q(N,{marginLeft:2,children:q(z,{children:G})}),q(N,{flexDirection:"column",marginLeft:2,children:J(z,{dimColor:!0,children:[A?`Share a free week of Claude Code with friends. If they love it and subscribe, you'll get ${f(A)} of extra usage to keep building. `:"Share a free week of Claude Code with friends. ",q(L,{url:A?"https://support.claude.com/en/articles/13456702-claude-code-guest-passes":"https://support.claude.com/en/articles/12875061-claude-code-guest-passes",children:"Terms apply."})]})}),q(N,{children:q(z,{dimColor:!0,italic:!0,children:Z.pending?J(X,{children:["Press ",Z.keyName," again to exit"]}):q(X,{children:"Enter to copy link · Esc to cancel"})})})]})})}var Q;var u=h(()=>{zq();Uq();Hq();Nq();Qq();k();D();qq();Bq();Xq();V();Q=s(Jq(),1)});async function kq(Y){let U=!p().hasVisitedPasses;if(U){let M=g();d((T)=>({...T,hasVisitedPasses:!0,passesLastSeenRemaining:M??T.passesLastSeenRemaining}))}return _("",{is_first_visit:U}),q(c,{onDone:Y})}var Zq=h(()=>{u();k();D();Yq();V()});Zq();export{kq as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wia as a,Xia as b,Yia as c}from"./cli-1.1.29-6g47vtst.mjs";import"./cli-1.1.29-4xqgqvwm.mjs";c();export{b as PERMISSION_MODES,a as EXTERNAL_PERMISSION_MODES};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Rc as e0,Sc as nN}from"./cli-1.1.29-247v5hpd.mjs";import{Wg as jN,Xg as vG}from"./cli-1.1.29-j17q2nnf.mjs";import{gi as OG,hi as I0,ii as IG,ji as O0,ki as fN}from"./cli-1.1.29-pwsznt80.mjs";import{li as iN,mi as hG}from"./cli-1.1.29-740d0ga1.mjs";import{qi as EG,ri as tG}from"./cli-1.1.29-zqccyb2h.mjs";import"./cli-1.1.29-tz817yh8.mjs";import"./cli-1.1.29-j3n6rxnx.mjs";import"./cli-1.1.29-2ezms0yf.mjs";import"./cli-1.1.29-tf20f72b.mjs";import"./cli-1.1.29-g9nssmee.mjs";import{AO as QG,An as $0,CO as WG,Cn as KN,DO as sG,Gp as MN,Hp as gG,Hx as ZG,Ix as zG,Kx as aG,Mo as s0,No as DN,dG as hN,dJ as pN,eG as mG,eJ as _G,gD as a0,gS as wJ,hD as TN,nG as n,oG as V0,pG as LG,qG as oG,rG as UG,sG as $G,xO as kG,xn as E0,yO as wG,zK as KG,zO as qG}from"./cli-1.1.29-am1n3767.mjs";import"./cli-1.1.29-cwngf5s4.mjs";import"./cli-1.1.29-7vrxybxh.mjs";import"./cli-1.1.29-ra7737c1.mjs";import"./cli-1.1.29-zf1md9se.mjs";import"./cli-1.1.29-31y8na35.mjs";import"./cli-1.1.29-6ngsfhk3.mjs";import"./cli-1.1.29-zh2qqpcy.mjs";import"./cli-1.1.29-ccmw3ns3.mjs";import"./cli-1.1.29-0vpcc8vm.mjs";import"./cli-1.1.29-xjh2k6ex.mjs";import"./cli-1.1.29-cgska4m2.mjs";import"./cli-1.1.29-kjbjanmr.mjs";import"./cli-1.1.29-89nqwnk6.mjs";import"./cli-1.1.29-sb5dzja5.mjs";import"./cli-1.1.29-c67xmzgw.mjs";import"./cli-1.1.29-f8qh0czy.mjs";import"./cli-1.1.29-995n5c8r.mjs";import"./cli-1.1.29-9fkgjjzm.mjs";import"./cli-1.1.29-xfcy5e42.mjs";import{DY as P0,FY as mN,IY as T0,JY as _N,RY as YG,SY as rG,pY as SN,qY as SG}from"./cli-1.1.29-6qykmvew.mjs";import"./cli-1.1.29-dseazhey.mjs";import{FZ as G0,I0 as XG,J1 as J0,c1 as v,e1 as H,m1 as RN,y1 as uN}from"./cli-1.1.29-7pfvq0z6.mjs";import"./cli-1.1.29-0s73ykp6.mjs";import"./cli-1.1.29-23gv5dgk.mjs";import"./cli-1.1.29-smn5dd7n.mjs";import"./cli-1.1.29-yddrcp23.mjs";import"./cli-1.1.29-1dqp4d2w.mjs";import"./cli-1.1.29-mcacd7ag.mjs";import"./cli-1.1.29-q7nywp06.mjs";import"./cli-1.1.29-9qc9kyz8.mjs";import"./cli-1.1.29-aa81cr7r.mjs";import"./cli-1.1.29-3fcr0sm5.mjs";import"./cli-1.1.29-akx5bp37.mjs";import"./cli-1.1.29-nx6ynaex.mjs";import{b5 as a,c5 as Y,d5 as T,e5 as x}from"./cli-1.1.29-nxvs12dw.mjs";import{f5 as t0}from"./cli-1.1.29-aptcshv0.mjs";import"./cli-1.1.29-kd96jtpb.mjs";import"./cli-1.1.29-0kfg7hf8.mjs";import"./cli-1.1.29-ymcd1d05.mjs";import"./cli-1.1.29-m4j21s8k.mjs";import"./cli-1.1.29-8k2xw0ns.mjs";import"./cli-1.1.29-57e9kkv7.mjs";import{j_ as s,k_ as lG}from"./cli-1.1.29-5gydp5n7.mjs";import"./cli-1.1.29-29svre2k.mjs";import"./cli-1.1.29-71e5px3b.mjs";import"./cli-1.1.29-cjy4bmpv.mjs";import{B$ as X0,C$ as BN,Dea as jG,Zea as IN,pca as ON,qca as DG,qea as yN,qfa as CG,rea as u,sea as HN,vea as FN}from"./cli-1.1.29-a6pnwve8.mjs";import"./cli-1.1.29-5p2zzfpq.mjs";import"./cli-1.1.29-84fpb4zk.mjs";import"./cli-1.1.29-6g47vtst.mjs";import"./cli-1.1.29-252q86ck.mjs";import"./cli-1.1.29-m7rehwdd.mjs";import"./cli-1.1.29-4bemzx23.mjs";import"./cli-1.1.29-3dnft82a.mjs";import"./cli-1.1.29-gycpj0z6.mjs";import{kla as b0,pla as nG}from"./cli-1.1.29-rfz718th.mjs";import"./cli-1.1.29-q4fv8e5e.mjs";import"./cli-1.1.29-v6y1118n.mjs";import"./cli-1.1.29-79tgwbnn.mjs";import{dsa as dG,koa as tN}from"./cli-1.1.29-dfra4ygt.mjs";import"./cli-1.1.29-4pdnzc5j.mjs";import"./cli-1.1.29-pf67dsfj.mjs";import"./cli-1.1.29-2e5s8gsb.mjs";import"./cli-1.1.29-9n8sz71q.mjs";import"./cli-1.1.29-snxnt4nr.mjs";import{Sta as i,Wta as e}from"./cli-1.1.29-4xqgqvwm.mjs";function o0(U){let N=bN.c(9),{ruleValue:J}=U;switch(J.toolName){case a0.name:if(J.ruleContent)if(J.ruleContent.endsWith(":*")){let z;if(N[0]!==J.ruleContent)z=J.ruleContent.slice(0,-2),N[0]=J.ruleContent,N[1]=z;else z=N[1];let G;if(N[2]!==z)G=T(H,{dimColor:!0,children:["Any Bash command starting with"," ",Y(H,{bold:!0,children:z})]}),N[2]=z,N[3]=G;else G=N[3];return G}else{let z;if(N[4]!==J.ruleContent)z=T(H,{dimColor:!0,children:["The Bash command ",Y(H,{bold:!0,children:J.ruleContent})]}),N[4]=J.ruleContent,N[5]=z;else z=N[5];return z}else{let z;if(N[6]===Symbol.for("react.memo_cache_sentinel"))z=Y(H,{dimColor:!0,children:"Any Bash command"}),N[6]=z;else z=N[6];return z}default:if(!J.ruleContent){let z;if(N[7]!==J.toolName)z=T(H,{dimColor:!0,children:["Any use of the ",Y(H,{bold:!0,children:J.toolName})," tool"]}),N[7]=J.toolName,N[8]=z;else z=N[8];return z}else return null}}var bN;var EN=e(()=>{J0();TN();x();bN=i(G0(),1)});function yG(U){switch(U){case"localSettings":return{label:"Project settings (local)",description:`Saved in ${IN("localSettings")}`,value:U};case"projectSettings":return{label:"Project settings",description:`Checked in at ${IN("projectSettings")}`,value:U};case"userSettings":return{label:"User settings",description:"Saved in ~/.claudin/settings.json",value:U}}}function gN(U){let N=CN.c(26),{onAddRules:J,onCancel:z,ruleValues:G,ruleBehavior:w,initialContext:B,setToolPermissionContext:q}=U,E;if(N[0]===Symbol.for("react.memo_cache_sentinel"))E=ON.map(yG),N[0]=E;else E=N[0];let k=E,W;if(N[1]!==B||N[2]!==J||N[3]!==z||N[4]!==w||N[5]!==G||N[6]!==q)W=(j)=>{if(j==="cancel"){z();return}else if(ON.includes(j)){let A=j,D=E0(B,{type:"addRules",rules:G,behavior:w,destination:A});$0({type:"addRules",rules:G,behavior:w,destination:A}),q(D);let C=G.map((m)=>({ruleValue:m,ruleBehavior:w,source:A})),S=MN.isSandboxingEnabled()&&MN.isAutoAllowBashIfSandboxedEnabled(),l=jN(D,{sandboxAutoAllowEnabled:S}).filter((m)=>G.some((R)=>R.toolName===m.rule.ruleValue.toolName&&R.ruleContent===m.rule.ruleValue.ruleContent));J(C,l.length>0?l:void 0)}},N[1]=B,N[2]=J,N[3]=z,N[4]=w,N[5]=G,N[6]=q,N[7]=W;else W=N[7];let Z=W,L;if(N[8]!==G.length)L=FN(G.length,"rule"),N[8]=G.length,N[9]=L;else L=N[9];let I=`Add ${w} permission ${L}`,M;if(N[10]!==G)M=G.map(RG),N[10]=G,N[11]=M;else M=N[11];let O;if(N[12]!==M)O=Y(v,{flexDirection:"column",paddingX:2,children:M}),N[12]=M,N[13]=O;else O=N[13];let K=G.length===1?"Where should this rule be saved?":"Where should these rules be saved?",b;if(N[14]!==K)b=Y(H,{children:K}),N[14]=K,N[15]=b;else b=N[15];let Q;if(N[16]!==Z)Q=Y(n,{options:k,onChange:Z}),N[16]=Z,N[17]=Q;else Q=N[17];let f;if(N[18]!==b||N[19]!==Q)f=T(v,{flexDirection:"column",marginY:1,children:[b,Q]}),N[18]=b,N[19]=Q,N[20]=f;else f=N[20];let F;if(N[21]!==z||N[22]!==O||N[23]!==f||N[24]!==I)F=T(s0,{title:I,onCancel:z,color:"permission",children:[O,f]}),N[21]=z,N[22]=O,N[23]=f,N[24]=I,N[25]=F;else F=N[25];return F}function RG(U){return T(v,{flexDirection:"column",children:[Y(H,{bold:!0,children:u(U)}),Y(o0,{ruleValue:U})]},u(U))}var CN;var vN=e(()=>{V0();J0();KN();HN();vG();gG();DG();CG();jG();DN();EN();x();CN=i(G0(),1)});function cN(U){let N=xN.c(24),{onCancel:J,onSubmit:z,ruleBehavior:G}=U,[w,B]=AN.useState(""),[q,E]=AN.useState(0),k=T0(),W;if(N[0]===Symbol.for("react.memo_cache_sentinel"))W={context:"Settings"},N[0]=W;else W=N[0];P0("confirm:no",J,W);let{columns:Z}=SN(),L=Z-6,I;if(N[1]!==z||N[2]!==G)I=(C)=>{let S=C.trim();if(S.length===0)return;let p=yN(S);z(p,G)},N[1]=z,N[2]=G,N[3]=I;else I=N[3];let M=I,O;if(N[4]!==G)O=T(H,{bold:!0,color:"permission",children:["Add ",G," permission rule"]}),N[4]=G,N[5]=O;else O=N[5];let K;if(N[6]===Symbol.for("react.memo_cache_sentinel"))K=Y(RN,{}),N[6]=K;else K=N[6];let b,Q;if(N[7]===Symbol.for("react.memo_cache_sentinel"))b=Y(H,{bold:!0,children:u({toolName:pN.name})}),Q=Y(H,{bold:!1,children:" or "}),N[7]=b,N[8]=Q;else b=N[7],Q=N[8];let f;if(N[9]===Symbol.for("react.memo_cache_sentinel"))f=T(H,{children:["Permission rules are a tool name, optionally followed by a specifier in parentheses.",K,"e.g.,"," ",b,Q,Y(H,{bold:!0,children:u({toolName:a0.name,ruleContent:"ls:*"})})]}),N[9]=f;else f=N[9];let F;if(N[10]!==q||N[11]!==M||N[12]!==w||N[13]!==L)F=T(v,{flexDirection:"column",children:[f,Y(v,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:Y(hN,{showCursor:!0,value:w,onChange:B,onSubmit:M,placeholder:`Enter permission rule${X0.ellipsis}`,columns:L,cursorOffset:q,onChangeCursorOffset:E})})]}),N[10]=q,N[11]=M,N[12]=w,N[13]=L,N[14]=F;else F=N[14];let j;if(N[15]!==O||N[16]!==F)j=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[O,F]}),N[15]=O,N[16]=F,N[17]=j;else j=N[17];let A;if(N[18]!==k.keyName||N[19]!==k.pending)A=Y(v,{marginLeft:3,children:k.pending?T(H,{dimColor:!0,children:["Press ",k.keyName," again to exit"]}):Y(H,{dimColor:!0,children:"Enter to submit · Esc to cancel"})}),N[18]=k.keyName,N[19]=k.pending,N[20]=A;else A=N[20];let D;if(N[21]!==A||N[22]!==j)D=T(a,{children:[j,A]}),N[21]=A,N[22]=j,N[23]=D;else D=N[23];return D}var xN,AN;var dN=e(()=>{BN();mG();_N();SG();J0();mN();TN();_G();HN();x();xN=i(G0(),1),AN=i(t0(),1)});function rN(U){let N=lN.c(30),{onHeaderFocusChange:J,onStateChange:z}=U,{headerFocused:G,focusHeader:w}=O0(),B,q;if(N[0]!==G||N[1]!==J)B=()=>{J?.(G)},q=[G,J],N[0]=G,N[1]=J,N[2]=B,N[3]=q;else B=N[2],q=N[3];N0.useEffect(B,q);let[E]=N0.useState(cG),[k,W]=N0.useState(xG),[Z,L]=N0.useState(pG),[I,M]=N0.useState(0),O,K;if(N[4]!==k||N[5]!==E||N[6]!==z||N[7]!==Z)O=()=>{z({approved:k,retry:Z,denials:E})},K=[k,Z,E,z],N[4]=k,N[5]=E,N[6]=z,N[7]=Z,N[8]=O,N[9]=K;else O=N[8],K=N[9];N0.useEffect(O,K);let b;if(N[10]===Symbol.for("react.memo_cache_sentinel"))b=(R)=>{let _=Number(R);W((c)=>{let h=new Set(c);if(h.has(_))h.delete(_);else h.add(_);return h})},N[10]=b;else b=N[10];let Q=b,f;if(N[11]===Symbol.for("react.memo_cache_sentinel"))f=(R)=>{M(Number(R))},N[11]=f;else f=N[11];let F=f,j;if(N[12]!==I)j=(R,_)=>{if(R==="r")L((c)=>{let h=new Set(c);if(h.has(I))h.delete(I);else h.add(I);return h}),W((c)=>{if(c.has(I))return c;let h=new Set(c);return h.add(I),h})},N[12]=I,N[13]=j;else j=N[13];let A=E.length>0,D;if(N[14]!==A)D={isActive:A},N[14]=A,N[15]=D;else D=N[15];if(uN(j,D),E.length===0){let R;if(N[16]===Symbol.for("react.memo_cache_sentinel"))R=Y(H,{dimColor:!0,children:"No recent denials. Commands denied by the auto mode classifier will appear here."}),N[16]=R;else R=N[16];return R}let C;if(N[17]!==k||N[18]!==E||N[19]!==Z){let R;if(N[21]!==k||N[22]!==Z)R=(_,c)=>{let h=k.has(c),NN=Z.has(c)?" (retry)":"";return{label:T(H,{children:[Y(iN,{status:h?"success":"error",withSpace:!0}),_.display,Y(H,{dimColor:!0,children:NN})]}),value:String(c)}},N[21]=k,N[22]=Z,N[23]=R;else R=N[23];C=E.map(R),N[17]=k,N[18]=E,N[19]=Z,N[20]=C}else C=N[20];let S=C,p;if(N[24]===Symbol.for("react.memo_cache_sentinel"))p=Y(H,{children:"Commands recently denied by the auto mode classifier."}),N[24]=p;else p=N[24];let l=Math.min(10,S.length),m;if(N[25]!==w||N[26]!==G||N[27]!==S||N[28]!==l)m=T(v,{flexDirection:"column",children:[p,Y(v,{marginTop:1,children:Y(n,{options:S,onChange:Q,onFocus:F,visibleOptionCount:l,isDisabled:G,onUpFromFirstItem:w})})]}),N[25]=w,N[26]=G,N[27]=S,N[28]=l,N[29]=m;else m=N[29];return m}function pG(){return new Set}function xG(){return new Set}function cG(){return e0()}var lN,N0;var aN=e(()=>{J0();nN();V0();hG();fN();x();lN=i(G0(),1),N0=i(t0(),1)});function $N(U){let N=oN.c(19),{directoryPath:J,onRemove:z,onCancel:G,permissionContext:w,setPermissionContext:B}=U,q;if(N[0]!==J||N[1]!==z||N[2]!==w||N[3]!==B)q=()=>{let K=E0(w,{type:"removeDirectories",directories:[J],destination:"session"});B(K),z()},N[0]=J,N[1]=z,N[2]=w,N[3]=B,N[4]=q;else q=N[4];let E=q,k;if(N[5]!==E||N[6]!==G)k=(K)=>{if(K==="yes")E();else G()},N[5]=E,N[6]=G,N[7]=k;else k=N[7];let W=k,Z;if(N[8]!==J)Z=Y(v,{marginX:2,flexDirection:"column",children:Y(H,{bold:!0,children:J})}),N[8]=J,N[9]=Z;else Z=N[9];let L;if(N[10]===Symbol.for("react.memo_cache_sentinel"))L=Y(H,{children:"Claudin will no longer have access to files in this directory."}),N[10]=L;else L=N[10];let I;if(N[11]===Symbol.for("react.memo_cache_sentinel"))I=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],N[11]=I;else I=N[11];let M;if(N[12]!==W||N[13]!==G)M=Y(n,{onChange:W,onCancel:G,options:I}),N[12]=W,N[13]=G,N[14]=M;else M=N[14];let O;if(N[15]!==G||N[16]!==Z||N[17]!==M)O=T(s0,{title:"Remove directory from workspace?",onCancel:G,color:"error",children:[Z,L,M]}),N[15]=G,N[16]=Z,N[17]=M,N[18]=O;else O=N[18];return O}var oN;var sN=e(()=>{V0();J0();KN();DN();x();oN=i(G0(),1)});function GG(U){let N=eN.c(23),{onExit:J,toolPermissionContext:z,onRequestAddDirectory:G,onRequestRemoveDirectory:w,onHeaderFocusChange:B}=U,{headerFocused:q,focusHeader:E}=O0(),k,W;if(N[0]!==q||N[1]!==B)k=()=>{B?.(q)},W=[q,B],N[0]=q,N[1]=B,N[2]=k,N[3]=W;else k=N[2],W=N[3];NG.useEffect(k,W);let Z;if(N[4]!==z.additionalWorkingDirectories)Z=Array.from(z.additionalWorkingDirectories.keys()).map(iG),N[4]=z.additionalWorkingDirectories,N[5]=Z;else Z=N[5];let L=Z,I;if(N[6]!==L||N[7]!==G||N[8]!==w)I=(A)=>{if(A==="add-directory"){G();return}let D=L.find((C)=>C.path===A);if(D&&D.isDeletable)w(D.path)},N[6]=L,N[7]=G,N[8]=w,N[9]=I;else I=N[9];let M=I,O;if(N[10]!==J)O=()=>J("Workspace dialog dismissed",{display:"system"}),N[10]=J,N[11]=O;else O=N[11];let K=O,b;if(N[12]!==L){b=L.map(uG);let A;if(N[14]===Symbol.for("react.memo_cache_sentinel"))A={label:`Add directory${X0.ellipsis}`,value:"add-directory"},N[14]=A;else A=N[14];b.push(A),N[12]=L,N[13]=b}else b=N[13];let Q=b,f;if(N[15]===Symbol.for("react.memo_cache_sentinel"))f=T(v,{flexDirection:"row",marginTop:1,marginLeft:2,gap:1,children:[Y(H,{children:`- ${tN()}`}),Y(H,{dimColor:!0,children:"(Original working directory)"})]}),N[15]=f;else f=N[15];let F=Math.min(10,Q.length),j;if(N[16]!==E||N[17]!==K||N[18]!==M||N[19]!==q||N[20]!==Q||N[21]!==F)j=T(v,{flexDirection:"column",marginBottom:1,children:[f,Y(n,{options:Q,onChange:M,onCancel:K,visibleOptionCount:F,onUpFromFirstItem:E,isDisabled:q})]}),N[16]=E,N[17]=K,N[18]=M,N[19]=q,N[20]=Q,N[21]=F,N[22]=j;else j=N[22];return j}function uG(U){return{label:U.path,value:U.path}}function iG(U){return{path:U,isCurrent:!1,isDeletable:!0}}var eN,NG;var JG=e(()=>{BN();dG();V0();J0();fN();x();eN=i(G0(),1),NG=i(t0(),1)});function eG(U){let N=M0.c(4),{rule:J}=U,z;if(N[0]!==J.source)z=kG(J.source),N[0]=J.source,N[1]=z;else z=N[1];let G=`From ${z}`,w;if(N[2]!==G)w=Y(H,{dimColor:!0,children:G}),N[2]=G,N[3]=w;else w=N[3];return w}function NJ(U){switch(U){case"allow":return"allowed";case"deny":return"denied";case"ask":return"ask"}}function GJ(U){let N=M0.c(42),{rule:J,onDelete:z,onCancel:G}=U,w=T0(),B;if(N[0]===Symbol.for("react.memo_cache_sentinel"))B={context:"Confirmation"},N[0]=B;else B=N[0];P0("confirm:no",G,B);let q;if(N[1]!==J.ruleValue)q=u(J.ruleValue),N[1]=J.ruleValue,N[2]=q;else q=N[2];let E;if(N[3]!==q)E=Y(H,{bold:!0,children:q}),N[3]=q,N[4]=E;else E=N[4];let k;if(N[5]!==J.ruleValue)k=Y(o0,{ruleValue:J.ruleValue}),N[5]=J.ruleValue,N[6]=k;else k=N[6];let W;if(N[7]!==J)W=Y(eG,{rule:J}),N[7]=J,N[8]=W;else W=N[8];let Z;if(N[9]!==E||N[10]!==k||N[11]!==W)Z=T(v,{flexDirection:"column",marginX:2,children:[E,k,W]}),N[9]=E,N[10]=k,N[11]=W,N[12]=Z;else Z=N[12];let L=Z,I;if(N[13]!==w.keyName||N[14]!==w.pending)I=Y(v,{marginLeft:3,children:w.pending?T(H,{dimColor:!0,children:["Press ",w.keyName," again to exit"]}):Y(H,{dimColor:!0,children:"Esc to cancel"})}),N[13]=w.keyName,N[14]=w.pending,N[15]=I;else I=N[15];let M=I;if(J.source==="policySettings"){let D;if(N[16]===Symbol.for("react.memo_cache_sentinel"))D=Y(H,{bold:!0,color:"permission",children:"Rule details"}),N[16]=D;else D=N[16];let C;if(N[17]===Symbol.for("react.memo_cache_sentinel"))C=T(H,{italic:!0,children:["This rule is configured by managed settings and cannot be modified.",`
|
|
2
|
+
`,"Contact your system administrator for more information."]}),N[17]=C;else C=N[17];let S;if(N[18]!==L)S=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[D,L,C]}),N[18]=L,N[19]=S;else S=N[19];let p;if(N[20]!==M||N[21]!==S)p=T(a,{children:[S,M]}),N[20]=M,N[21]=S,N[22]=p;else p=N[22];return p}let O;if(N[23]!==J.ruleBehavior)O=NJ(J.ruleBehavior),N[23]=J.ruleBehavior,N[24]=O;else O=N[24];let K;if(N[25]!==O)K=T(H,{bold:!0,color:"error",children:["Delete ",O," tool?"]}),N[25]=O,N[26]=K;else K=N[26];let b;if(N[27]===Symbol.for("react.memo_cache_sentinel"))b=Y(H,{children:"Are you sure you want to delete this permission rule?"}),N[27]=b;else b=N[27];let Q;if(N[28]!==G||N[29]!==z)Q=(D)=>D==="yes"?z():G(),N[28]=G,N[29]=z,N[30]=Q;else Q=N[30];let f;if(N[31]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],N[31]=f;else f=N[31];let F;if(N[32]!==G||N[33]!==Q)F=Y(n,{onChange:Q,onCancel:G,options:f}),N[32]=G,N[33]=Q,N[34]=F;else F=N[34];let j;if(N[35]!==L||N[36]!==F||N[37]!==K)j=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"error",children:[K,L,b,F]}),N[35]=L,N[36]=F,N[37]=K,N[38]=j;else j=N[38];let A;if(N[39]!==M||N[40]!==j)A=T(a,{children:[j,M]}),N[39]=M,N[40]=j,N[41]=A;else A=N[41];return A}function JJ(U){let N=M0.c(26),{options:J,searchQuery:z,isSearchMode:G,isFocused:w,onSelect:B,onCancel:q,lastFocusedRuleKey:E,cursorOffset:k,onHeaderFocusChange:W}=U,Z=IG(),{headerFocused:L,focusHeader:I,blurHeader:M}=O0(),O,K;if(N[0]!==M||N[1]!==L||N[2]!==G)O=()=>{if(G&&L)M()},K=[G,L,M],N[0]=M,N[1]=L,N[2]=G,N[3]=O,N[4]=K;else O=N[3],K=N[4];d.useEffect(O,K);let b,Q;if(N[5]!==L||N[6]!==W)b=()=>{W?.(L)},Q=[L,W],N[5]=L,N[6]=W,N[7]=b,N[8]=Q;else b=N[7],Q=N[8];d.useEffect(b,Q);let f=G&&!L,F;if(N[9]!==k||N[10]!==w||N[11]!==z||N[12]!==f||N[13]!==Z)F=Y(v,{marginBottom:1,flexDirection:"column",children:Y(UG,{query:z,isFocused:f,isTerminalFocused:w,width:Z,cursorOffset:k})}),N[9]=k,N[10]=w,N[11]=z,N[12]=f,N[13]=Z,N[14]=F;else F=N[14];let j=Math.min(10,J.length),A=G||L,D;if(N[15]!==I||N[16]!==E||N[17]!==q||N[18]!==B||N[19]!==J||N[20]!==j||N[21]!==A)D=Y(n,{options:J,onChange:B,onCancel:q,visibleOptionCount:j,isDisabled:A,defaultFocusValue:E,onUpFromFirstItem:I}),N[15]=I,N[16]=E,N[17]=q,N[18]=B,N[19]=J,N[20]=j,N[21]=A,N[22]=D;else D=N[22];let C;if(N[23]!==F||N[24]!==D)C=T(v,{flexDirection:"column",children:[F,D]}),N[23]=F,N[24]=D,N[25]=C;else C=N[25];return C}function VN(U){let N=M0.c(27),J,z,G,w,B,q,E,k,W;if(N[0]!==U){let{tab:M,getRulesOptions:O,handleToolSelect:K,...b}=U;W=M,G=K,w=b,z=v,q="column",E=W==="allow"?0:void 0;let Q;if(N[10]===Symbol.for("react.memo_cache_sentinel"))Q={allow:"Claudin won't ask before using allowed tools.",ask:"Claudin will always ask for confirmation before using these tools.",deny:"Claudin will always reject requests to use denied tools."},N[10]=Q;else Q=N[10];let f=Q[W];if(N[11]!==f)k=Y(H,{children:f}),N[11]=f,N[12]=k;else k=N[12];J=JJ,B=O(W,w.searchQuery),N[0]=U,N[1]=J,N[2]=z,N[3]=G,N[4]=w,N[5]=B,N[6]=q,N[7]=E,N[8]=k,N[9]=W}else J=N[1],z=N[2],G=N[3],w=N[4],B=N[5],q=N[6],E=N[7],k=N[8],W=N[9];let Z;if(N[13]!==G||N[14]!==W)Z=(M)=>G(M,W),N[13]=G,N[14]=W,N[15]=Z;else Z=N[15];let L;if(N[16]!==J||N[17]!==w||N[18]!==B.options||N[19]!==Z)L=Y(J,{options:B.options,onSelect:Z,...w}),N[16]=J,N[17]=w,N[18]=B.options,N[19]=Z,N[20]=L;else L=N[20];let I;if(N[21]!==z||N[22]!==q||N[23]!==E||N[24]!==k||N[25]!==L)I=T(z,{flexDirection:q,flexShrink:E,children:[k,L]}),N[21]=z,N[22]=q,N[23]=E,N[24]=k,N[25]=L,N[26]=I;else I=N[26];return I}function MG(U){let N=M0.c(113),{onExit:J,initialTab:z,onRetryDenials:G}=U,w;if(N[0]===Symbol.for("react.memo_cache_sentinel"))w=e0(),N[0]=w;else w=N[0];let B=w.length>0,q=z??(B?"recent":"allow"),E;if(N[1]===Symbol.for("react.memo_cache_sentinel"))E=[],N[1]=E;else E=N[1];let[k,W]=d.useState(E),Z=ZG(UJ),L=zG(),I=XG(),M;if(N[2]===Symbol.for("react.memo_cache_sentinel"))M={approved:new Set,retry:new Set,denials:[]},N[2]=M;else M=N[2];let O=d.useRef(M),K;if(N[3]===Symbol.for("react.memo_cache_sentinel"))K=(X)=>{O.current=X},N[3]=K;else K=N[3];let b=K,[Q,f]=d.useState(),[F,j]=d.useState(),[A,D]=d.useState(null),[C,S]=d.useState(null),[p,l]=d.useState(!1),[m,R]=d.useState(null),[_,c]=d.useState(!1),[h,NN]=d.useState(!0),F0;if(N[4]===Symbol.for("react.memo_cache_sentinel"))F0=(X)=>{NN(X)},N[4]=F0;else F0=N[4];let GN=F0,H0;if(N[5]!==Z)H0=new Map,wG(Z).forEach((X)=>{H0.set(b0(X),X)}),N[5]=Z,N[6]=H0;else H0=N[6];let JN=H0,K0;if(N[7]!==Z)K0=new Map,qG(Z).forEach((X)=>{K0.set(b0(X),X)}),N[7]=Z,N[8]=K0;else K0=N[8];let XN=K0,A0;if(N[9]!==Z)A0=new Map,QG(Z).forEach((X)=>{A0.set(b0(X),X)}),N[9]=Z,N[10]=A0;else A0=N[10];let YN=A0,D0;if(N[11]!==JN||N[12]!==YN||N[13]!==XN)D0=(X,V)=>{let P=V===void 0?"":V,g=(()=>{switch(X){case"allow":return JN;case"deny":return XN;case"ask":return YN;case"workspace":case"recent":return new Map}})(),y=[];if(X!=="workspace"&&X!=="recent"&&!P)y.push({label:`Add a new rule${X0.ellipsis}`,value:"add-new-rule"});let r=Array.from(g.keys()).sort((W0,t)=>{let f0=g.get(W0),PN=g.get(t);if(f0&&PN){let bG=u(f0.ruleValue).toLowerCase(),FG=u(PN.ruleValue).toLowerCase();return bG.localeCompare(FG)}return 0}),Q0=P.toLowerCase();for(let W0 of r){let t=g.get(W0);if(t){let f0=u(t.ruleValue);if(P&&!f0.toLowerCase().includes(Q0))continue;y.push({label:f0,value:W0})}}return{options:y,rulesByKey:g}},N[11]=JN,N[12]=YN,N[13]=XN,N[14]=D0;else D0=N[14];let o=D0,Y0=T0(),B0=!Q&&!A&&!C&&!p&&!m,ZN=B0&&_,j0;if(N[15]===Symbol.for("react.memo_cache_sentinel"))j0=()=>{c(!1)},N[15]=j0;else j0=N[15];let C0;if(N[16]!==ZN)C0={isActive:ZN,onExit:j0},N[16]=ZN,N[17]=C0;else C0=N[17];let{query:zN,setQuery:g0,cursorOffset:LN}=LG(C0),v0;if(N[18]!==_||N[19]!==B0||N[20]!==g0)v0=(X)=>{if(!B0)return;if(_)return;if(X.ctrl||X.meta)return;if(X.key==="/")X.preventDefault(),c(!0),g0("");else if(X.key.length===1&&X.key!=="j"&&X.key!=="k"&&X.key!=="m"&&X.key!=="i"&&X.key!=="r"&&X.key!==" ")X.preventDefault(),c(!0),g0(X.key)},N[18]=_,N[19]=B0,N[20]=g0,N[21]=v0;else v0=N[21];let UN=v0,y0;if(N[22]!==o)y0=(X,V)=>{let{rulesByKey:P}=o(V);if(X==="add-new-rule"){D(V);return}else{f(P.get(X));return}},N[22]=o,N[23]=y0;else y0=N[23];let kN=y0,R0;if(N[24]===Symbol.for("react.memo_cache_sentinel"))R0=()=>{D(null)},N[24]=R0;else R0=N[24];let AG=R0,S0;if(N[25]===Symbol.for("react.memo_cache_sentinel"))S0=(X,V)=>{S({ruleValue:X,ruleBehavior:V}),D(null)},N[25]=S0;else S0=N[25];let BG=S0,m0;if(N[26]===Symbol.for("react.memo_cache_sentinel"))m0=(X,V)=>{S(null);for(let P of X)W((g)=>[...g,`Added ${P.ruleBehavior} rule ${s.bold(u(P.ruleValue))}`]);if(V&&V.length>0)for(let P of V){let g=P.shadowType==="deny"?"blocked":"shadowed";W((y)=>[...y,s.yellow(`${X0.warning} Warning: ${u(P.rule.ruleValue)} is ${g}`),s.dim(` ${P.reason}`),s.dim(` Fix: ${P.fix}`)])}},N[26]=m0;else m0=N[26];let fG=m0,_0;if(N[27]===Symbol.for("react.memo_cache_sentinel"))_0=()=>{S(null)},N[27]=_0;else _0=N[27];let VG=_0,h0;if(N[28]===Symbol.for("react.memo_cache_sentinel"))h0=()=>l(!0),N[28]=h0;else h0=N[28];let PG=h0,p0;if(N[29]===Symbol.for("react.memo_cache_sentinel"))p0=(X)=>R(X),N[29]=p0;else p0=N[29];let TG=p0,x0;if(N[30]!==k||N[31]!==J||N[32]!==G)x0=()=>{let X=O.current,V=(y)=>Array.from(y).map((r)=>X.denials[r]).filter(LJ),P=V(X.retry);if(P.length>0){let y=P.map(zJ);G?.(y),J(void 0,{shouldQuery:!0,metaMessages:[`Permission granted for: ${y.join(", ")}. You may now retry ${y.length===1?"this command":"these commands"} if you would like.`]});return}let g=V(X.approved);if(g.length>0||k.length>0){let y=g.length>0?[`Approved ${g.map(ZJ).join(", ")}`]:[];J([...y,...k].join(`
|
|
3
|
+
`))}else J("Permissions dialog dismissed",{display:"system"})},N[30]=k,N[31]=J,N[32]=G,N[33]=x0;else x0=N[33];let c0=x0,wN=B0&&!_,d0;if(N[34]!==wN)d0={context:"Settings",isActive:wN},N[34]=wN,N[35]=d0;else d0=N[35];P0("confirm:no",c0,d0);let u0;if(N[36]!==o||N[37]!==Q||N[38]!==L||N[39]!==Z)u0=()=>{if(!Q)return;let{options:X}=o(Q.ruleBehavior),V=b0(Q),P=X.filter(YJ).map(XJ),g=P.indexOf(V),y;if(g!==-1){if(g<P.length-1)y=P[g+1];else if(g>0)y=P[g-1]}j(y),WG({rule:Q,initialContext:Z,setToolPermissionContext(r){L((Q0)=>({...Q0,toolPermissionContext:r}))}}),W((r)=>[...r,`Deleted ${Q.ruleBehavior} rule ${s.bold(u(Q.ruleValue))}`]),f(void 0)},N[36]=o,N[37]=Q,N[38]=L,N[39]=Z,N[40]=u0;else u0=N[40];let qN=u0;if(Q){let X;if(N[41]===Symbol.for("react.memo_cache_sentinel"))X=()=>f(void 0),N[41]=X;else X=N[41];let V;if(N[42]!==qN||N[43]!==Q)V=Y(GJ,{rule:Q,onDelete:qN,onCancel:X}),N[42]=qN,N[43]=Q,N[44]=V;else V=N[44];return V}if(A&&A!=="workspace"&&A!=="recent"){let X;if(N[45]!==A)X=Y(cN,{onCancel:AG,onSubmit:BG,ruleBehavior:A}),N[45]=A,N[46]=X;else X=N[46];return X}if(C){let X;if(N[47]!==C.ruleValue)X=[C.ruleValue],N[47]=C.ruleValue,N[48]=X;else X=N[48];let V;if(N[49]!==L)V=(g)=>{L((y)=>({...y,toolPermissionContext:g}))},N[49]=L,N[50]=V;else V=N[50];let P;if(N[51]!==X||N[52]!==V||N[53]!==Z||N[54]!==C.ruleBehavior)P=Y(gN,{onAddRules:fG,onCancel:VG,ruleValues:X,ruleBehavior:C.ruleBehavior,initialContext:Z,setToolPermissionContext:V}),N[51]=X,N[52]=V,N[53]=Z,N[54]=C.ruleBehavior,N[55]=P;else P=N[55];return P}if(p){let X;if(N[56]!==L||N[57]!==Z)X=(g,y)=>{let Q0={type:"addDirectories",directories:[g],destination:y?"localSettings":"session"},W0=E0(Z,Q0);if(L((t)=>({...t,toolPermissionContext:W0})),y)$0(Q0);W((t)=>[...t,`Added directory ${s.bold(g)} to workspace${y?" and saved to local settings":" for this session"}`]),l(!1)},N[56]=L,N[57]=Z,N[58]=X;else X=N[58];let V;if(N[59]===Symbol.for("react.memo_cache_sentinel"))V=()=>l(!1),N[59]=V;else V=N[59];let P;if(N[60]!==X||N[61]!==Z)P=Y(EG,{onAddDirectory:X,onCancel:V,permissionContext:Z}),N[60]=X,N[61]=Z,N[62]=P;else P=N[62];return P}if(m){let X;if(N[63]!==m)X=()=>{W((y)=>[...y,`Removed directory ${s.bold(m)} from workspace`]),R(null)},N[63]=m,N[64]=X;else X=N[64];let V;if(N[65]===Symbol.for("react.memo_cache_sentinel"))V=()=>R(null),N[65]=V;else V=N[65];let P;if(N[66]!==L)P=(y)=>{L((r)=>({...r,toolPermissionContext:y}))},N[66]=L,N[67]=P;else P=N[67];let g;if(N[68]!==m||N[69]!==X||N[70]!==P||N[71]!==Z)g=Y($N,{directoryPath:m,onRemove:X,onCancel:V,permissionContext:Z,setPermissionContext:P}),N[68]=m,N[69]=X,N[70]=P,N[71]=Z,N[72]=g;else g=N[72];return g}let i0;if(N[73]!==o||N[74]!==c0||N[75]!==kN||N[76]!==_||N[77]!==I||N[78]!==F||N[79]!==LN||N[80]!==zN)i0={searchQuery:zN,isSearchMode:_,isFocused:I,onCancel:c0,lastFocusedRuleKey:F,cursorOffset:LN,getRulesOptions:o,handleToolSelect:kN,onHeaderFocusChange:GN},N[73]=o,N[74]=c0,N[75]=kN,N[76]=_,N[77]=I,N[78]=F,N[79]=LN,N[80]=zN,N[81]=i0;else i0=N[81];let $=i0,QN=!!Q||!!A||!!C||p||!!m,WN=!_,n0;if(N[82]===Symbol.for("react.memo_cache_sentinel"))n0=Y(I0,{id:"recent",title:"Recently denied",children:Y(rN,{onHeaderFocusChange:GN,onStateChange:b})}),N[82]=n0;else n0=N[82];let Z0;if(N[83]!==$)Z0=Y(I0,{id:"allow",title:"Allow",children:Y(VN,{tab:"allow",...$})}),N[83]=$,N[84]=Z0;else Z0=N[84];let z0;if(N[85]!==$)z0=Y(I0,{id:"ask",title:"Ask",children:Y(VN,{tab:"ask",...$})}),N[85]=$,N[86]=z0;else z0=N[86];let L0;if(N[87]!==$)L0=Y(I0,{id:"deny",title:"Deny",children:Y(VN,{tab:"deny",...$})}),N[87]=$,N[88]=L0;else L0=N[88];let l0;if(N[89]===Symbol.for("react.memo_cache_sentinel"))l0=Y(H,{children:"Claudin can read files in the workspace, and make edits when auto-accept edits is on."}),N[89]=l0;else l0=N[89];let U0;if(N[90]!==J||N[91]!==Z)U0=Y(I0,{id:"workspace",title:"Workspace",children:T(v,{flexDirection:"column",children:[l0,Y(GG,{onExit:J,toolPermissionContext:Z,onRequestAddDirectory:PG,onRequestRemoveDirectory:TG,onHeaderFocusChange:GN})]})}),N[90]=J,N[91]=Z,N[92]=U0;else U0=N[92];let k0;if(N[93]!==q||N[94]!==QN||N[95]!==WN||N[96]!==Z0||N[97]!==z0||N[98]!==L0||N[99]!==U0)k0=T(OG,{title:"Permissions:",color:"permission",defaultTab:q,hidden:QN,initialHeaderFocused:!B,navFromContent:WN,children:[n0,Z0,z0,L0,U0]}),N[93]=q,N[94]=QN,N[95]=WN,N[96]=Z0,N[97]=z0,N[98]=L0,N[99]=U0,N[100]=k0;else k0=N[100];let w0;if(N[101]!==q||N[102]!==Y0.keyName||N[103]!==Y0.pending||N[104]!==h||N[105]!==_)w0=Y(v,{marginTop:1,paddingLeft:1,children:Y(H,{dimColor:!0,children:Y0.pending?T(a,{children:["Press ",Y0.keyName," again to exit"]}):h?Y(a,{children:"←/→ tab switch · ↓ return · Esc cancel"}):_?Y(a,{children:"Type to filter · Enter/↓ select · ↑ tabs · Esc clear"}):B&&q==="recent"?Y(a,{children:"Enter approve · r retry · ↑↓ navigate · ←/→ switch · Esc cancel"}):Y(a,{children:"↑↓ navigate · Enter select · Type to search · ←/→ switch · Esc cancel"})})}),N[101]=q,N[102]=Y0.keyName,N[103]=Y0.pending,N[104]=h,N[105]=_,N[106]=w0;else w0=N[106];let q0;if(N[107]!==k0||N[108]!==w0)q0=T(YG,{color:"permission",children:[k0,w0]}),N[107]=k0,N[108]=w0,N[109]=q0;else q0=N[109];let r0;if(N[110]!==UN||N[111]!==q0)r0=Y(v,{flexDirection:"column",onKeyDown:UN,children:q0}),N[110]=UN,N[111]=q0,N[112]=r0;else r0=N[112];return r0}function XJ(U){return U.value}function YJ(U){return U.value!=="add-new-rule"}function ZJ(U){return s.bold(U.display)}function zJ(U){return U.display}function LJ(U){return U!==void 0}function UJ(U){return U.toolPermissionContext}var M0,d;var HG=e(()=>{lG();BN();aG();KN();V0();_N();oG();J0();mN();nN();HN();sG();nG();rG();fN();$G();vN();tG();EN();dN();aN();sN();JG();x();M0=i(G0(),1),d=i(t0(),1)});var mX=async(U,N)=>{return Y(MG,{onExit:U,onRetryDenials:(J)=>{N.setMessages((z)=>[...z,KG(J)])}})};var kJ=e(()=>{HG();wJ();x()});kJ();export{mX as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Uc as S,Vc as d}from"./cli-1.1.29-rbtgtxtr.mjs";import{lg as B,mg as P,ng as F,pg as D}from"./cli-1.1.29-57f3k3fp.mjs";import{$m as g,Cn as m,Xm as U,Ym as _,cp as I,gp as c,iL as y,kL as j,xn as A}from"./cli-1.1.29-am1n3767.mjs";import"./cli-1.1.29-cwngf5s4.mjs";import"./cli-1.1.29-7vrxybxh.mjs";import"./cli-1.1.29-ra7737c1.mjs";import"./cli-1.1.29-zf1md9se.mjs";import"./cli-1.1.29-31y8na35.mjs";import"./cli-1.1.29-6ngsfhk3.mjs";import"./cli-1.1.29-zh2qqpcy.mjs";import"./cli-1.1.29-ccmw3ns3.mjs";import"./cli-1.1.29-0vpcc8vm.mjs";import"./cli-1.1.29-xjh2k6ex.mjs";import"./cli-1.1.29-cgska4m2.mjs";import"./cli-1.1.29-kjbjanmr.mjs";import"./cli-1.1.29-89nqwnk6.mjs";import"./cli-1.1.29-sb5dzja5.mjs";import"./cli-1.1.29-c67xmzgw.mjs";import"./cli-1.1.29-f8qh0czy.mjs";import"./cli-1.1.29-995n5c8r.mjs";import"./cli-1.1.29-9fkgjjzm.mjs";import"./cli-1.1.29-xfcy5e42.mjs";import"./cli-1.1.29-6qykmvew.mjs";import"./cli-1.1.29-dseazhey.mjs";import{FZ as h,J1 as T,c1 as V,e1 as G}from"./cli-1.1.29-7pfvq0z6.mjs";import"./cli-1.1.29-0s73ykp6.mjs";import"./cli-1.1.29-23gv5dgk.mjs";import"./cli-1.1.29-smn5dd7n.mjs";import"./cli-1.1.29-yddrcp23.mjs";import"./cli-1.1.29-1dqp4d2w.mjs";import"./cli-1.1.29-mcacd7ag.mjs";import"./cli-1.1.29-q7nywp06.mjs";import"./cli-1.1.29-9qc9kyz8.mjs";import"./cli-1.1.29-aa81cr7r.mjs";import"./cli-1.1.29-3fcr0sm5.mjs";import"./cli-1.1.29-akx5bp37.mjs";import"./cli-1.1.29-nx6ynaex.mjs";import{c5 as w,d5 as W,e5 as Z}from"./cli-1.1.29-nxvs12dw.mjs";import"./cli-1.1.29-aptcshv0.mjs";import"./cli-1.1.29-kd96jtpb.mjs";import"./cli-1.1.29-0kfg7hf8.mjs";import"./cli-1.1.29-ymcd1d05.mjs";import"./cli-1.1.29-m4j21s8k.mjs";import"./cli-1.1.29-8k2xw0ns.mjs";import"./cli-1.1.29-57e9kkv7.mjs";import"./cli-1.1.29-5gydp5n7.mjs";import"./cli-1.1.29-29svre2k.mjs";import"./cli-1.1.29-71e5px3b.mjs";import"./cli-1.1.29-cjy4bmpv.mjs";import"./cli-1.1.29-a6pnwve8.mjs";import"./cli-1.1.29-5p2zzfpq.mjs";import"./cli-1.1.29-84fpb4zk.mjs";import"./cli-1.1.29-6g47vtst.mjs";import"./cli-1.1.29-252q86ck.mjs";import"./cli-1.1.29-m7rehwdd.mjs";import"./cli-1.1.29-4bemzx23.mjs";import"./cli-1.1.29-3dnft82a.mjs";import"./cli-1.1.29-gycpj0z6.mjs";import"./cli-1.1.29-rfz718th.mjs";import"./cli-1.1.29-q4fv8e5e.mjs";import"./cli-1.1.29-v6y1118n.mjs";import"./cli-1.1.29-79tgwbnn.mjs";import{bra as R,dsa as u}from"./cli-1.1.29-dfra4ygt.mjs";import"./cli-1.1.29-4pdnzc5j.mjs";import"./cli-1.1.29-pf67dsfj.mjs";import"./cli-1.1.29-2e5s8gsb.mjs";import"./cli-1.1.29-9n8sz71q.mjs";import"./cli-1.1.29-snxnt4nr.mjs";import{Sta as C,Wta as N}from"./cli-1.1.29-4xqgqvwm.mjs";function $(z){let b=v.c(11),{planContent:H,planPath:K,editorName:J}=z,L;if(b[0]===Symbol.for("react.memo_cache_sentinel"))L=w(G,{bold:!0,children:"Current Plan"}),b[0]=L;else L=b[0];let k;if(b[1]!==K)k=w(G,{dimColor:!0,children:K}),b[1]=K,b[2]=k;else k=b[2];let q;if(b[3]!==H)q=w(V,{marginTop:1,children:w(G,{children:H})}),b[3]=H,b[4]=q;else q=b[4];let f;if(b[5]!==J)f=J&&W(V,{marginTop:1,children:[w(G,{dimColor:!0,children:'"/plan open"'}),w(G,{dimColor:!0,children:" to edit this plan in "}),w(G,{bold:!0,dimColor:!0,children:J})]}),b[5]=J,b[6]=f;else f=b[6];let O;if(b[7]!==k||b[8]!==q||b[9]!==f)O=W(V,{flexDirection:"column",children:[L,k,q,f]}),b[7]=k,b[8]=q,b[9]=f,b[10]=O;else O=b[10];return O}async function bb(z,b,H){let{getAppState:K,setAppState:J}=b,k=K().toolPermissionContext.mode;if(k!=="plan"){R(k,"plan"),J((Y)=>({...Y,toolPermissionContext:A(y(Y.toolPermissionContext),{type:"setMode",mode:"plan",destination:"session"})}));let Q=H.trim();if(Q&&Q!=="open")z("Enabled plan mode",{shouldQuery:!0});else z("Enabled plan mode");return null}let q=_(),f=U();if(!q)return z("Already in plan mode. No plan written yet."),null;if(H.trim().split(/\s+/)[0]==="open"){let Q=await F(f);if(Q.error)z(`Failed to open plan in editor: ${Q.error}`);else z(`Opened plan in editor: ${f}`);return null}let X=B(),E=X?I(X):void 0,M=await S(w($,{planContent:q,planPath:f,editorName:E}));return z(M),null}var v;var x=N(()=>{u();T();P();c();m();j();g();D();d();Z();v=C(h(),1)});x();export{bb as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wta as z}from"./cli-1.1.29-4xqgqvwm.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};
|