@claudiolabs/claudio 0.1.14 → 0.1.15
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-0.1.15-aene6e12.mjs +1 -0
- package/dist/chunks/App-0.1.15-skbrajfh.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.15-zkd425a9.mjs +1 -0
- package/dist/chunks/{AssistantSessionChooser-0.1.14-tf848k8v.mjs → AssistantSessionChooser-0.1.15-3wyrkte5.mjs} +1 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.15-xemnqw1q.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.15-51n3nd6r.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.15-g407nd3p.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.15-80g71gdg.mjs +1 -0
- package/dist/chunks/{DiffDialog-0.1.14-wtx2wmbs.mjs → DiffDialog-0.1.15-86m0j64m.mjs} +1 -1
- package/dist/chunks/Doctor-0.1.15-9x07ccn6.mjs +1 -0
- package/dist/chunks/Grove-0.1.15-jdcp80ev.mjs +1 -0
- package/dist/chunks/{ITermBackend-0.1.14-xtdr5bmp.mjs → ITermBackend-0.1.15-ejm7gc8d.mjs} +1 -1
- package/dist/chunks/{InProcessTransport-0.1.14-wdqgcpb4.mjs → InProcessTransport-0.1.15-p32k8qva.mjs} +1 -1
- package/dist/chunks/InvalidConfigDialog-0.1.15-rctrbcsm.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.15-bjsk3qxm.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.15-6x3bjqw1.mjs +1 -0
- package/dist/chunks/{Onboarding-0.1.14-1rddgg2b.mjs → Onboarding-0.1.15-pqx4v1wq.mjs} +1 -1
- package/dist/chunks/ProviderManager-0.1.15-t8sezf1q.mjs +1 -0
- package/dist/chunks/REPL-0.1.15-6e0xrr9y.mjs +1 -0
- package/dist/chunks/{ResumeConversation-0.1.14-79hg5s2w.mjs → ResumeConversation-0.1.15-fm1gvj49.mjs} +1 -1
- package/dist/chunks/{SnapshotUpdateDialog-0.1.14-sbjnsz3c.mjs → SnapshotUpdateDialog-0.1.15-t3evkrvq.mjs} +1 -1
- package/dist/chunks/TeleportProgress-0.1.15-gad6kpfq.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.15-00rkfxqs.mjs +1 -0
- package/dist/chunks/{TeleportResumeWrapper-0.1.14-8wfa8twy.mjs → TeleportResumeWrapper-0.1.15-bwv0syaw.mjs} +1 -1
- package/dist/chunks/{TmuxBackend-0.1.14-175xkeyy.mjs → TmuxBackend-0.1.15-0d8n5p59.mjs} +1 -1
- package/dist/chunks/ToolSearchTool-0.1.15-1cemq4m9.mjs +1 -0
- package/dist/chunks/{TrustDialog-0.1.14-zvmfmtg5.mjs → TrustDialog-0.1.15-srz2xcqx.mjs} +1 -1
- package/dist/chunks/activeProvider-0.1.15-1fp1bec5.mjs +1 -0
- package/dist/chunks/add-dir-0.1.15-qj517xx8.mjs +1 -0
- package/dist/chunks/agents-0.1.15-vkekdkan.mjs +3 -0
- package/dist/chunks/agents-0.1.15-x18jhwwk.mjs +111 -0
- package/dist/chunks/api-0.1.15-jq17qdd8.mjs +1 -0
- package/dist/chunks/{asciicast-0.1.14-kgp9j4z6.mjs → asciicast-0.1.15-4t4tanfk.mjs} +1 -1
- package/dist/chunks/assistant-0.1.15-9fhfbk14.mjs +1 -0
- package/dist/chunks/auth-0.1.15-ddyv63ax.mjs +1 -0
- package/dist/chunks/{auth-0.1.14-vj6095mm.mjs → auth-0.1.15-x6bxj6d1.mjs} +1 -1
- package/dist/chunks/{autoMode-0.1.14-jxse6h16.mjs → autoMode-0.1.15-p9r45wxy.mjs} +1 -1
- package/dist/chunks/backgroundHousekeeping-0.1.15-sbv1p8kj.mjs +1 -0
- package/dist/chunks/{branch-0.1.14-r5tt7cec.mjs → branch-0.1.15-cqq1x0cj.mjs} +1 -1
- package/dist/chunks/{bridgePointer-0.1.14-2w1wvxgt.mjs → bridgePointer-0.1.15-p6kq1zz7.mjs} +1 -1
- package/dist/chunks/{btw-0.1.14-j1cexrtn.mjs → btw-0.1.15-q693ppfr.mjs} +1 -1
- package/dist/chunks/{buddy-0.1.14-r4nmfbke.mjs → buddy-0.1.15-vcca6k2p.mjs} +1 -1
- package/dist/chunks/{cacache-0.1.14-3vw5qkqs.mjs → cacache-0.1.15-tj6nes3h.mjs} +1 -1
- package/dist/chunks/{cache-probe-0.1.14-zfb6aw4f.mjs → cache-probe-0.1.15-dfdjj53r.mjs} +1 -1
- package/dist/chunks/{cacheStats-0.1.14-15eahew3.mjs → cacheStats-0.1.15-v9v9y02q.mjs} +1 -1
- package/dist/chunks/caches-0.1.15-tynjvd5a.mjs +1 -0
- package/dist/chunks/{claudeDesktop-0.1.14-0df0z4v6.mjs → claudeDesktop-0.1.15-rxtx8hbf.mjs} +1 -1
- package/dist/chunks/claudemd-0.1.15-s942v7vd.mjs +1 -0
- package/dist/chunks/clear-0.1.15-2tqn4fj6.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.15-qycj6c0p.mjs +1 -0
- package/dist/chunks/{cli-0.1.14-39y8qfj7.mjs → cli-0.1.15-0a38j3t8.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-ktz3cgwa.mjs → cli-0.1.15-0g0abv7y.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-mgcmwvcn.mjs → cli-0.1.15-11sdbfxy.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-r46jh9af.mjs → cli-0.1.15-12azgmva.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-as9nq99n.mjs → cli-0.1.15-1hxkpjgs.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-sn1rf71y.mjs → cli-0.1.15-1kmf57b0.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-eq0gbnpg.mjs → cli-0.1.15-1nkkhw5c.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-heevc19y.mjs → cli-0.1.15-20tvdt2s.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-edjtfw4q.mjs → cli-0.1.15-216kns0c.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-sb7dm65b.mjs → cli-0.1.15-229xqnrp.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-hvfg45y0.mjs → cli-0.1.15-23cavaaa.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-j5sbzwhy.mjs → cli-0.1.15-26hkdean.mjs} +709 -707
- package/dist/chunks/{cli-0.1.14-244fknyr.mjs → cli-0.1.15-2ccapgj1.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-fdpfr31f.mjs → cli-0.1.15-2h647znt.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-2te4sfkh.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-0kzzfe41.mjs → cli-0.1.15-2vwx57re.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-y2wxptpk.mjs → cli-0.1.15-30tz5ck8.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-9gem156t.mjs → cli-0.1.15-36pxgzf6.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-ch9c9c38.mjs → cli-0.1.15-3jz926ax.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-tqexnkmz.mjs → cli-0.1.15-3qwnw3ca.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-3rcdvk7c.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-c4v2kfdn.mjs → cli-0.1.15-3z0tzzs8.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-2f7s5xbd.mjs → cli-0.1.15-4892kydg.mjs} +3 -3
- package/dist/chunks/{cli-0.1.14-ta3w93yb.mjs → cli-0.1.15-4fc5wnse.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-jnfs73kb.mjs → cli-0.1.15-4hnhxg2w.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-4hzd3m6p.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-rtstk94r.mjs → cli-0.1.15-4y7051f2.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-rc5yd94n.mjs → cli-0.1.15-5denzf1p.mjs} +2 -2
- package/dist/chunks/{cli-0.1.14-bgqm4vsk.mjs → cli-0.1.15-5g0zxgxn.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-9kxzs20h.mjs → cli-0.1.15-5qx5p8cd.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-9b8kspnd.mjs → cli-0.1.15-5tz7z79g.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-seq2fm2d.mjs → cli-0.1.15-68f0jtkh.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-k8nwm06m.mjs → cli-0.1.15-69kq5chw.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-9vc52dnj.mjs → cli-0.1.15-6mad0r56.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-jpe9sxch.mjs → cli-0.1.15-6nwbd09n.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-71sp86jb.mjs → cli-0.1.15-6r12ayea.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-wwehdfwx.mjs → cli-0.1.15-6r630k68.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-vp1kn532.mjs → cli-0.1.15-77346q11.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-90zkq8jm.mjs → cli-0.1.15-7myqm617.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-4wdh3k7y.mjs → cli-0.1.15-7rr53z40.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-yxce1bdc.mjs → cli-0.1.15-82r3zgmq.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-qe5zyvfh.mjs → cli-0.1.15-8k69z9kk.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-hxvzvfr2.mjs → cli-0.1.15-8sgewact.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-w6nzk5dc.mjs → cli-0.1.15-8v8bskr0.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-28exj8zm.mjs → cli-0.1.15-90ye3yqx.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-5rp4y3q2.mjs → cli-0.1.15-99wmm9j7.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-c0bv9eha.mjs → cli-0.1.15-9m2znwvb.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-s9m1y93w.mjs → cli-0.1.15-9pe3dbgs.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-w3rwfr1d.mjs → cli-0.1.15-9w140hjt.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-3w7fbjhy.mjs → cli-0.1.15-a10ekh15.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-ntq8w1ss.mjs → cli-0.1.15-a8kgfrkd.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-8fr10t94.mjs → cli-0.1.15-acdm8b28.mjs} +2 -2
- package/dist/chunks/{cli-0.1.14-dqads3y3.mjs → cli-0.1.15-ajg1d1bh.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-d4zkffre.mjs → cli-0.1.15-asts8hm3.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-dt11hwkv.mjs → cli-0.1.15-b1t6c81s.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-kcrsww4s.mjs → cli-0.1.15-b21k5hzy.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-wz5yr49j.mjs → cli-0.1.15-b6gdqjbg.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-b7f6hacc.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-k9jcmxtd.mjs → cli-0.1.15-b7p48xfw.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-zjqt3r89.mjs → cli-0.1.15-be4mz6ka.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-e40hm9sd.mjs → cli-0.1.15-behp1dag.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-kt6sq4nr.mjs → cli-0.1.15-bfd337b0.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-fmmxw3gj.mjs → cli-0.1.15-bpcmpy8b.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-yagh75p5.mjs → cli-0.1.15-bz57rf9t.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-cbseyggr.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-7zz7abpc.mjs → cli-0.1.15-cenwnwnx.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-71m91842.mjs → cli-0.1.15-cf4s92e9.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-7zjhrz42.mjs → cli-0.1.15-cqzrzsh5.mjs} +2 -2
- package/dist/chunks/{cli-0.1.14-wgatq2fj.mjs → cli-0.1.15-cr7qy3wd.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-3zj4s594.mjs → cli-0.1.15-cyq0gbzk.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-nxphqjb4.mjs → cli-0.1.15-d9nfa2yf.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-5brvxst8.mjs → cli-0.1.15-dcabmk2v.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-adz0gnzy.mjs → cli-0.1.15-dcxa8b6s.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-nprcbhwn.mjs → cli-0.1.15-dp2e8j4f.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-442a367x.mjs → cli-0.1.15-dq954y1q.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-9evp0ewn.mjs → cli-0.1.15-dqkhbs67.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-ftjxb57b.mjs → cli-0.1.15-e2e7hn7p.mjs} +3 -3
- package/dist/chunks/{cli-0.1.14-zrmretjp.mjs → cli-0.1.15-e494j2sj.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-y56629hj.mjs → cli-0.1.15-e64w5wan.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-xp6rc33g.mjs → cli-0.1.15-e70ktyft.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-zs4vmj7z.mjs → cli-0.1.15-em40knm7.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-4tmbgg29.mjs → cli-0.1.15-en9ppdbd.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-5te1nbdc.mjs → cli-0.1.15-f838g4vw.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-jf8019sb.mjs → cli-0.1.15-f8abjagh.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-08ambmnj.mjs → cli-0.1.15-fe92jeft.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-jbn4ywda.mjs → cli-0.1.15-fmnyh9j9.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-x88ypr2r.mjs → cli-0.1.15-fr83vs1y.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-khtq9cgy.mjs → cli-0.1.15-ft6xtjsa.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-d483gd53.mjs → cli-0.1.15-g5wt8d3g.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-dw74ppax.mjs → cli-0.1.15-ghvjjc4g.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-0nhaxy76.mjs → cli-0.1.15-gkzany0s.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-kmsvd61a.mjs → cli-0.1.15-gmdv5ny8.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-zq66y0mv.mjs → cli-0.1.15-gn4wnxx3.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-16jrehc2.mjs → cli-0.1.15-gqf82qvm.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-ab0rxxvk.mjs → cli-0.1.15-gqp8kzp0.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-r5qyt63x.mjs → cli-0.1.15-gtn9gx9w.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-gwbebdj7.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-hjktwgtk.mjs → cli-0.1.15-gxgy4enj.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-77ha4n58.mjs → cli-0.1.15-h3a2cbdb.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-aky5tegx.mjs → cli-0.1.15-h4erh2cn.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-h7cb0pw7.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-canpypsb.mjs → cli-0.1.15-htms4w3h.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-a15xdexp.mjs → cli-0.1.15-hyydz4kc.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-cp2pada5.mjs → cli-0.1.15-j5m3s9r5.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-we6s7jfg.mjs → cli-0.1.15-jy7cjb23.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-m7xchegb.mjs → cli-0.1.15-k0bn0cze.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-mngn74ga.mjs → cli-0.1.15-knpxv22b.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-fmgz6tx2.mjs → cli-0.1.15-ks9rz9tk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.14-w8efvbh6.mjs → cli-0.1.15-kw7che8m.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-yfc7weqn.mjs → cli-0.1.15-m0v1d1kt.mjs} +11 -11
- package/dist/chunks/{cli-0.1.14-0x3m90bk.mjs → cli-0.1.15-m7gtc61y.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-3scecgzx.mjs → cli-0.1.15-my0y22r7.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-r00mjm41.mjs → cli-0.1.15-n97y4hq4.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-d1edbjh4.mjs → cli-0.1.15-ncammv2n.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-svqkx41a.mjs → cli-0.1.15-nejf7yqz.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-m75ce5ve.mjs → cli-0.1.15-njg0k6ga.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-2mzb5ath.mjs → cli-0.1.15-nk50qhet.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-wymtdw5f.mjs → cli-0.1.15-nkn6jfmb.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-mx9yse7m.mjs → cli-0.1.15-nts79xbr.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-5e5kkjam.mjs → cli-0.1.15-nw94frpp.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-4mde8z7h.mjs → cli-0.1.15-nx5v1cvm.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-nzsj259d.mjs → cli-0.1.15-p159ga3t.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-yxq1tr3a.mjs → cli-0.1.15-p47rrzrn.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-akz49g5v.mjs → cli-0.1.15-p5ty029c.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-dq7jkw1n.mjs → cli-0.1.15-pcqjreq6.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-ckjcet41.mjs → cli-0.1.15-pxf97j8y.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-fspxpmh7.mjs → cli-0.1.15-pya8tbx3.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-q021qg07.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-a6kwmqhz.mjs → cli-0.1.15-q35rzjnz.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-25ta9abj.mjs → cli-0.1.15-qhz07at6.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-dntkrp1j.mjs → cli-0.1.15-qns6xv34.mjs} +5 -5
- package/dist/chunks/{cli-0.1.14-1g5jq0j8.mjs → cli-0.1.15-r626437v.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-3yj4dkmn.mjs → cli-0.1.15-r8qzzahw.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-nmmtd1d6.mjs → cli-0.1.15-r9nrfwrq.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-3xj419mp.mjs → cli-0.1.15-rbx47sc3.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-yphht6rx.mjs → cli-0.1.15-rq9n4js4.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-cdby401e.mjs → cli-0.1.15-rr65b3dk.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-68wbwy40.mjs → cli-0.1.15-rs5swvy0.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-473sgexj.mjs → cli-0.1.15-rv6zpjh8.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-6cjjzttb.mjs → cli-0.1.15-rvtve9kq.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-893g12wf.mjs → cli-0.1.15-rwx8446j.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-v9q1cxjy.mjs → cli-0.1.15-s7trme0x.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-0ctjta81.mjs → cli-0.1.15-sct02cw6.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-kpsh76mj.mjs → cli-0.1.15-sd5jysf2.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-dcgxqsyp.mjs → cli-0.1.15-sg3n1v0w.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-qyx55m6c.mjs → cli-0.1.15-svhrqvzp.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-whe4bxfr.mjs → cli-0.1.15-tj4kzvth.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-nnr43nyg.mjs → cli-0.1.15-tn4214gj.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-harz1d9d.mjs → cli-0.1.15-tp614m5f.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-a9ytrehs.mjs → cli-0.1.15-twq0mjmr.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-3m63hy2a.mjs → cli-0.1.15-v07ep52w.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-y55hrwdp.mjs → cli-0.1.15-v8zwx5j6.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-ba919tmj.mjs → cli-0.1.15-vwb8h4r1.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-z0ckw2hb.mjs → cli-0.1.15-vzk22hwe.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-kv650aha.mjs → cli-0.1.15-w8q8f37x.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-z8j2n955.mjs → cli-0.1.15-wfn10357.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-gdm27acz.mjs → cli-0.1.15-wmwtv0tz.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-m7khgn2k.mjs → cli-0.1.15-wn40n534.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-42sm5vzr.mjs → cli-0.1.15-x3yhaxm9.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-stv1d0q3.mjs → cli-0.1.15-x69hfzmj.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-nkza93de.mjs → cli-0.1.15-xaw2s45s.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-qzcceap6.mjs → cli-0.1.15-xe4dq144.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-g5q2xqp3.mjs → cli-0.1.15-xery8c8c.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-y2pbhx6p.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-1xkst5wv.mjs → cli-0.1.15-y6fkcbes.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-tyv29sz9.mjs → cli-0.1.15-y7xkk5ds.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-hkaqyhx1.mjs → cli-0.1.15-yghcqf7h.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-fhfj87ej.mjs → cli-0.1.15-yjxhk7qj.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-tkb5t0xv.mjs → cli-0.1.15-ywed2hpz.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-kn1f2x94.mjs → cli-0.1.15-yxm6wwfz.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-yym7bka2.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-v2acyy7r.mjs → cli-0.1.15-z2yexprk.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-59axynr8.mjs → cli-0.1.15-z35x5bfj.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-as1s0b0t.mjs → cli-0.1.15-zap1wk9j.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-0a8ckx07.mjs → cli-0.1.15-zf1s8y92.mjs} +1 -1
- package/dist/chunks/cli-0.1.15-ztxn2vjm.mjs +2 -0
- package/dist/chunks/client-0.1.15-pbb4218v.mjs +1 -0
- package/dist/chunks/color-0.1.15-w9tvjt51.mjs +1 -0
- package/dist/chunks/{compact-0.1.14-mx9ng433.mjs → compact-0.1.15-2a2eywaz.mjs} +1 -1
- package/dist/chunks/{config-0.1.14-76vavy7t.mjs → config-0.1.15-m4gwmfb1.mjs} +1 -1
- package/dist/chunks/config-0.1.15-r15yk3zr.mjs +1 -0
- package/dist/chunks/{context-0.1.14-hyykwj83.mjs → context-0.1.15-ghkedaaw.mjs} +1 -1
- package/dist/chunks/context-noninteractive-0.1.15-wwa3qz84.mjs +1 -0
- package/dist/chunks/conversation-0.1.15-n1bn5vmb.mjs +1 -0
- package/dist/chunks/{copy-0.1.14-kp76nh7r.mjs → copy-0.1.15-53q3e2fk.mjs} +1 -1
- package/dist/chunks/cost-0.1.15-garxyfxy.mjs +1 -0
- package/dist/chunks/createSession-0.1.15-krz8fv09.mjs +1 -0
- package/dist/chunks/desktop-0.1.15-j0znhh3a.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.15-f34tbbq5.mjs +1 -0
- package/dist/chunks/detection-0.1.15-qfkk58tf.mjs +1 -0
- package/dist/chunks/diff-0.1.15-gc5686z3.mjs +1 -0
- package/dist/chunks/doctor-0.1.15-hhtv9s33.mjs +1 -0
- package/dist/chunks/{earlyInput-0.1.14-997vtdw4.mjs → earlyInput-0.1.15-ftgt9y2w.mjs} +1 -1
- package/dist/chunks/{effort-0.1.14-d9xmff2t.mjs → effort-0.1.15-5za6yh63.mjs} +1 -1
- package/dist/chunks/environmentSelection-0.1.15-59904m5c.mjs +1 -0
- package/dist/chunks/environments-0.1.15-fn4ybjrt.mjs +1 -0
- package/dist/chunks/exit-0.1.15-qxj6czd5.mjs +1 -0
- package/dist/chunks/{export-0.1.14-qpt72paa.mjs → export-0.1.15-h5n9s624.mjs} +1 -1
- package/dist/chunks/extra-usage-0.1.15-4a6e6rsa.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.15-rgqd9ef7.mjs +1 -0
- package/dist/chunks/fast-0.1.15-98jhvjxk.mjs +1 -0
- package/dist/chunks/{feedback-0.1.14-qhk5ek0b.mjs → feedback-0.1.15-pqe68x4v.mjs} +1 -1
- package/dist/chunks/{firstPartyEventLogger-0.1.14-78y09nr6.mjs → firstPartyEventLogger-0.1.15-pss0293k.mjs} +1 -1
- package/dist/chunks/{git-0.1.14-zvsa13gk.mjs → git-0.1.15-002t17pq.mjs} +1 -1
- package/dist/chunks/githubModelsCredentials-0.1.15-2a6dqqse.mjs +1 -0
- package/dist/chunks/{growthbook-0.1.14-dcdeqgyq.mjs → growthbook-0.1.15-m7gdvgqa.mjs} +1 -1
- package/dist/chunks/{heapdump-0.1.14-tj7w79dt.mjs → heapdump-0.1.15-s8h9rwpe.mjs} +1 -1
- package/dist/chunks/{help-0.1.14-gk9s0stg.mjs → help-0.1.15-y48dg88b.mjs} +1 -1
- package/dist/chunks/{hookChains-0.1.14-wng6tzfd.mjs → hookChains-0.1.15-z46c2xkf.mjs} +2 -2
- package/dist/chunks/{hooks-0.1.14-jy9bt7s6.mjs → hooks-0.1.15-f81kq7m2.mjs} +1 -1
- package/dist/chunks/hooks-0.1.15-vanat6cg.mjs +1 -0
- package/dist/chunks/{ide-0.1.14-0ar60k4r.mjs → ide-0.1.15-xepj09gj.mjs} +1 -1
- package/dist/chunks/{plist-0.1.14-ssqtjjq9.mjs → image-processor-napi-0.1.15-5w5sybn1.mjs} +1 -1
- package/dist/chunks/index-0.1.15-0z186jwx.mjs +1 -0
- package/dist/chunks/index-0.1.15-136649ke.mjs +1 -0
- package/dist/chunks/{index-0.1.14-8v5xwttx.mjs → index-0.1.15-15ftbc8a.mjs} +2 -2
- package/dist/chunks/index-0.1.15-1r19582s.mjs +1 -0
- package/dist/chunks/{index-0.1.14-2v6wa4p4.mjs → index-0.1.15-3jxezstk.mjs} +1 -1
- package/dist/chunks/index-0.1.15-52zxtxf2.mjs +1 -0
- package/dist/chunks/{index-0.1.14-ac13h1t1.mjs → index-0.1.15-628tag5v.mjs} +1 -1
- package/dist/chunks/{index-0.1.14-y3aj57xa.mjs → index-0.1.15-77j1wp6f.mjs} +1 -1
- package/dist/chunks/index-0.1.15-7cp4n6z6.mjs +1 -0
- package/dist/chunks/{index-0.1.14-mzhk0gvs.mjs → index-0.1.15-832xm57n.mjs} +1 -1
- package/dist/chunks/{index-0.1.14-272zxs9n.mjs → index-0.1.15-abzge0fa.mjs} +1 -1
- package/dist/chunks/{index-0.1.14-qrykb444.mjs → index-0.1.15-b9sdtjj4.mjs} +2 -2
- package/dist/chunks/{index-0.1.14-4hv4f8g9.mjs → index-0.1.15-bvr8e4dt.mjs} +1 -1
- package/dist/chunks/{index-0.1.14-ksa4vdak.mjs → index-0.1.15-d4ea93sj.mjs} +1 -1
- package/dist/chunks/{index-0.1.14-hqphn8m5.mjs → index-0.1.15-f1y1067a.mjs} +1 -1
- package/dist/chunks/{index-0.1.14-2x59va64.mjs → index-0.1.15-n2q4dkvc.mjs} +1 -1
- package/dist/chunks/{index-0.1.14-g5kkm9ng.mjs → index-0.1.15-nzmg6zng.mjs} +1 -1
- package/dist/chunks/{index-0.1.14-071xy8v4.mjs → index-0.1.15-r9ck21mp.mjs} +1 -1
- package/dist/chunks/index-0.1.15-rb4nqzzk.mjs +1 -0
- package/dist/chunks/{index-0.1.14-dmbjzapt.mjs → index-0.1.15-tf5b20vy.mjs} +1 -1
- package/dist/chunks/{index-0.1.14-1mttyja2.mjs → index-0.1.15-x8ghxne4.mjs} +1 -1
- package/dist/chunks/index-0.1.15-z3k5tm3n.mjs +1 -0
- package/dist/chunks/{initReplBridge-0.1.14-qe820gff.mjs → initReplBridge-0.1.15-g7q1qemf.mjs} +1 -1
- package/dist/chunks/{ink-0.1.14-kxs7ygns.mjs → ink-0.1.15-rd56fvsx.mjs} +1 -1
- package/dist/chunks/{insights-0.1.14-9n58d9t8.mjs → insights-0.1.15-2zt9898j.mjs} +1 -1
- package/dist/chunks/{install-0.1.14-1zyjez10.mjs → install-0.1.15-z6a6aa3t.mjs} +1 -1
- package/dist/chunks/{install-github-app-0.1.14-kmetkgdq.mjs → install-github-app-0.1.15-h746hza3.mjs} +1 -1
- package/dist/chunks/install-slack-app-0.1.15-2yhy3kwz.mjs +1 -0
- package/dist/chunks/{instrumentation-0.1.14-fsgk97cp.mjs → instrumentation-0.1.15-bwm4tb1y.mjs} +1 -1
- package/dist/chunks/interactiveHelpers-0.1.15-z5nx1rw2.mjs +1 -0
- package/dist/chunks/keybindings-0.1.15-cxmw2kd4.mjs +2 -0
- package/dist/chunks/{knowledge-0.1.14-f7w4damb.mjs → knowledge-0.1.15-2bnycc4a.mjs} +1 -1
- package/dist/chunks/loadAgentsDir-0.1.15-e4ms71xe.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.15-rcg3267j.mjs +1 -0
- package/dist/chunks/{lsp-0.1.14-cks4jevz.mjs → lsp-0.1.15-veqrp99h.mjs} +1 -1
- package/dist/chunks/main-0.1.15-bfvfcwwj.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.15-1mxydytg.mjs +1 -0
- package/dist/chunks/{mcp-0.1.14-3tzc0agq.mjs → mcp-0.1.15-rfy9pyrt.mjs} +1 -1
- package/dist/chunks/{mcp-0.1.14-dmtc9tjr.mjs → mcp-0.1.15-tw9s435t.mjs} +3 -3
- package/dist/chunks/{mcp-0.1.14-tepbr987.mjs → mcp-0.1.15-zc7h2fyj.mjs} +1 -1
- package/dist/chunks/mcpServer-0.1.15-t7dsptwh.mjs +1 -0
- package/dist/chunks/{image-processor-napi-0.1.14-p1r3vkb0.mjs → mcpb-0.1.15-5mam984d.mjs} +1 -1
- package/dist/chunks/{memory-0.1.14-cgx518q9.mjs → memory-0.1.15-b6zkcs44.mjs} +1 -1
- package/dist/chunks/{mobile-0.1.14-bwjnmpy0.mjs → mobile-0.1.15-sm8kbft4.mjs} +1 -1
- package/dist/chunks/{model-0.1.14-zg566cz0.mjs → model-0.1.15-843f7654.mjs} +1 -1
- package/dist/chunks/{model-0.1.14-rq2dkze7.mjs → model-0.1.15-e62wxf7h.mjs} +1 -1
- package/dist/chunks/{oauth-0.1.14-gftadks2.mjs → oauth-0.1.15-gxgmqwwx.mjs} +1 -1
- package/dist/chunks/{openaiShim-0.1.14-jv6416m8.mjs → openaiShim-0.1.15-0yryhq9r.mjs} +1 -1
- package/dist/chunks/{output-style-0.1.14-v41ce6t5.mjs → output-style-0.1.15-d20e4vc3.mjs} +1 -1
- package/dist/chunks/package-WSP46L7M-0.1.15-jsqef57n.mjs +1 -0
- package/dist/chunks/parser-0.1.15-wbja947p.mjs +1 -0
- package/dist/chunks/{passes-0.1.14-0jjh5wg5.mjs → passes-0.1.15-726y1cyq.mjs} +1 -1
- package/dist/chunks/{permissions-0.1.14-hh0d709r.mjs → permissions-0.1.15-4pqgyt4h.mjs} +1 -1
- package/dist/chunks/plan-0.1.15-p06bpb7x.mjs +1 -0
- package/dist/chunks/{mcpb-0.1.14-ffa57420.mjs → plist-0.1.15-fseac2c0.mjs} +1 -1
- package/dist/chunks/{plugin-0.1.14-01jhhdd3.mjs → plugin-0.1.15-yeqq1san.mjs} +1 -1
- package/dist/chunks/pluginStartupCheck-0.1.15-s9v7kq6q.mjs +1 -0
- package/dist/chunks/{plugins-0.1.14-4tggkexv.mjs → plugins-0.1.15-3rpwr86v.mjs} +2 -2
- package/dist/chunks/{print-0.1.14-m719w2yp.mjs → print-0.1.15-64y2p7wj.mjs} +4 -4
- package/dist/chunks/privacy-settings-0.1.15-rq35tcyk.mjs +1 -0
- package/dist/chunks/{process-0.1.14-vgdgd7sq.mjs → process-0.1.15-g6km3z8k.mjs} +1 -1
- package/dist/chunks/processBashCommand-0.1.15-57ga0c30.mjs +1 -0
- package/dist/chunks/{processSlashCommand-0.1.14-7w1v93bg.mjs → processSlashCommand-0.1.15-mee2mbyy.mjs} +1 -1
- package/dist/chunks/prompt-0.1.15-gm20yk5m.mjs +1 -0
- package/dist/chunks/prompt-0.1.15-gxjy2vnc.mjs +1 -0
- package/dist/chunks/prompts-0.1.15-v7p366n5.mjs +1 -0
- package/dist/chunks/{provider-0.1.14-xs34vy3w.mjs → provider-0.1.15-gz0fhpp7.mjs} +1 -1
- package/dist/chunks/providerProfiles-0.1.15-v7p3m9kf.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.15-3vs25v7e.mjs +1 -0
- package/dist/chunks/registry-0.1.15-3h7bxrc2.mjs +1 -0
- package/dist/chunks/release-notes-0.1.15-1g908440.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.15-5r2acf43.mjs +2 -0
- package/dist/chunks/{remote-env-0.1.14-jyc0gkhb.mjs → remote-env-0.1.15-fd5z1adp.mjs} +1 -1
- package/dist/chunks/{remoteBridgeCore-0.1.14-8kt4ffzy.mjs → remoteBridgeCore-0.1.15-kbthngek.mjs} +1 -1
- package/dist/chunks/remoteSession-0.1.15-yrg8c3z1.mjs +1 -0
- package/dist/chunks/rename-0.1.15-8079z5ff.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.15-cz1pf5m3.mjs +1 -0
- package/dist/chunks/{resume-0.1.14-7sda36n0.mjs → resume-0.1.15-s4hv4t9y.mjs} +1 -1
- package/dist/chunks/{rewind-0.1.14-zba66at0.mjs → rewind-0.1.15-fevxgefp.mjs} +1 -1
- package/dist/chunks/sandbox-adapter-0.1.15-yra7frkv.mjs +1 -0
- package/dist/chunks/{sandbox-toggle-0.1.14-jz6x02qp.mjs → sandbox-toggle-0.1.15-fn86ac4p.mjs} +1 -1
- package/dist/chunks/session-0.1.15-crg226x4.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.15-f3kpf3s7.mjs +1 -0
- package/dist/chunks/{sessionStorage-0.1.14-sz2medpp.mjs → sessionStorage-0.1.15-x0gw4hbz.mjs} +1 -1
- package/dist/chunks/{setup-0.1.14-f13rnmdg.mjs → setup-0.1.15-6znmc2q6.mjs} +2 -2
- package/dist/chunks/sinks-0.1.15-npqf68gv.mjs +1 -0
- package/dist/chunks/{skills-0.1.14-1vvr60ph.mjs → skills-0.1.15-sybv0v2p.mjs} +1 -1
- package/dist/chunks/startupProfiler-0.1.15-nwkwwtx6.mjs +1 -0
- package/dist/chunks/{state-0.1.14-rj00ry6n.mjs → state-0.1.15-rr5k0vbf.mjs} +1 -1
- package/dist/chunks/{stats-0.1.14-rr3tpwqw.mjs → stats-0.1.15-3c4f5zp4.mjs} +1 -1
- package/dist/chunks/status-0.1.15-cvscafrs.mjs +1 -0
- package/dist/chunks/stickers-0.1.15-ee8ptkd4.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.15-330g0p7g.mjs +1 -0
- package/dist/chunks/tasks-0.1.15-a4y42df2.mjs +1 -0
- package/dist/chunks/{teamHelpers-0.1.14-zv908fgk.mjs → teamHelpers-0.1.15-gw6hwmyj.mjs} +1 -1
- package/dist/chunks/teammateModeSnapshot-0.1.15-t2czx776.mjs +1 -0
- package/dist/chunks/teleport-0.1.15-bg434zjk.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.15-ged9eavp.mjs +1 -0
- package/dist/chunks/theme-0.1.15-zq998m8x.mjs +1 -0
- package/dist/chunks/thinkback-0.1.15-g09k62ck.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.15-mn7j6mm2.mjs +1 -0
- package/dist/chunks/toolPool-0.1.15-wej7eaff.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.15-v6zmdk1y.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.15-t9sax8yq.mjs +1 -0
- package/dist/chunks/{turndown.cjs-0.1.14-nw2rtcyd.mjs → turndown.cjs-0.1.15-pmxpe7z8.mjs} +1 -1
- package/dist/chunks/{ultrareviewCommand-0.1.14-9twnt5bp.mjs → ultrareviewCommand-0.1.15-3gjgaeyn.mjs} +1 -1
- package/dist/chunks/{update-0.1.14-9dhep94r.mjs → update-0.1.15-jtd1h3e7.mjs} +11 -11
- package/dist/chunks/upgrade-0.1.15-07pcdyyq.mjs +1 -0
- package/dist/chunks/{upstreamproxy-0.1.14-sc0x4n7b.mjs → upstreamproxy-0.1.15-wtbs40ct.mjs} +1 -1
- package/dist/chunks/usage-0.1.15-ayne7pw6.mjs +1 -0
- package/dist/chunks/util-0.1.15-vs1eanbw.mjs +1 -0
- package/dist/chunks/utils-0.1.15-aq7vgwy1.mjs +1 -0
- package/dist/chunks/vim-0.1.15-syferjfa.mjs +1 -0
- package/dist/chunks/watcher-0.1.15-bh7ych8a.mjs +1 -0
- package/dist/chunks/{wiki-0.1.14-s3exyf45.mjs → wiki-0.1.15-pp951r9h.mjs} +1 -1
- package/dist/chunks/worktree-0.1.15-twyfdw3p.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.15-afv7sbw1.mjs +1 -0
- package/dist/chunks/{wrapper-0.1.14-a4mesaeh.mjs → wrapper-0.1.15-dw3awx2b.mjs} +1 -1
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.1.14-cdr5h1g4.mjs +0 -1
- package/dist/chunks/App-0.1.14-pg2tqqjz.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.14-e86h3nff.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.14-ftdkaf8h.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.14-d45z21x5.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.14-dzhpgrhm.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.14-y2v8vg76.mjs +0 -1
- package/dist/chunks/Doctor-0.1.14-rhryp3qj.mjs +0 -1
- package/dist/chunks/Grove-0.1.14-4pt83x25.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.14-rx2djmka.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.14-nhkj2max.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.14-f6hf3ymp.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.14-2d77t0cr.mjs +0 -1
- package/dist/chunks/REPL-0.1.14-rz1jsayd.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.14-411m3y24.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.14-v6ytg24w.mjs +0 -1
- package/dist/chunks/ToolSearchTool-0.1.14-rpbvvb5j.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.14-5cpywex1.mjs +0 -1
- package/dist/chunks/add-dir-0.1.14-q700x1tp.mjs +0 -1
- package/dist/chunks/agents-0.1.14-nm4k11re.mjs +0 -3
- package/dist/chunks/agents-0.1.14-pjr42t23.mjs +0 -111
- package/dist/chunks/api-0.1.14-v09922m9.mjs +0 -1
- package/dist/chunks/assistant-0.1.14-yt6v1sjy.mjs +0 -1
- package/dist/chunks/auth-0.1.14-vg6ez70v.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.1.14-bh13ez8a.mjs +0 -1
- package/dist/chunks/caches-0.1.14-et2zg3m5.mjs +0 -1
- package/dist/chunks/claudemd-0.1.14-exzt8psa.mjs +0 -1
- package/dist/chunks/clear-0.1.14-62gnxkg3.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.14-5p1j5sbv.mjs +0 -1
- package/dist/chunks/cli-0.1.14-1shkmy81.mjs +0 -2
- package/dist/chunks/cli-0.1.14-2e2jfccr.mjs +0 -2
- package/dist/chunks/cli-0.1.14-373staaj.mjs +0 -2
- package/dist/chunks/cli-0.1.14-86gckvrm.mjs +0 -2
- package/dist/chunks/cli-0.1.14-bat0c779.mjs +0 -2
- package/dist/chunks/cli-0.1.14-dz2jvye2.mjs +0 -2
- package/dist/chunks/cli-0.1.14-efhhkgkx.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ja2ctrem.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ka0xhrv6.mjs +0 -2
- package/dist/chunks/cli-0.1.14-t3fga5je.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ydm3fwx1.mjs +0 -2
- package/dist/chunks/client-0.1.14-3t6sfwha.mjs +0 -1
- package/dist/chunks/color-0.1.14-65rf0ap9.mjs +0 -1
- package/dist/chunks/config-0.1.14-1v5v86ax.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.14-24qfm7b9.mjs +0 -1
- package/dist/chunks/conversation-0.1.14-mkc1cd5a.mjs +0 -1
- package/dist/chunks/cost-0.1.14-3d4g5gqm.mjs +0 -1
- package/dist/chunks/createSession-0.1.14-8599rbgg.mjs +0 -1
- package/dist/chunks/desktop-0.1.14-bx4eky6b.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.14-8yam7kv4.mjs +0 -1
- package/dist/chunks/detection-0.1.14-vz5bqsc0.mjs +0 -1
- package/dist/chunks/diff-0.1.14-e4pm39ee.mjs +0 -1
- package/dist/chunks/doctor-0.1.14-22fc2q8y.mjs +0 -1
- package/dist/chunks/environmentSelection-0.1.14-fn5p85z5.mjs +0 -1
- package/dist/chunks/environments-0.1.14-7napbg6g.mjs +0 -1
- package/dist/chunks/exit-0.1.14-v8j7rsfw.mjs +0 -1
- package/dist/chunks/extra-usage-0.1.14-tmwgn4dh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.14-b2pdph8q.mjs +0 -1
- package/dist/chunks/fast-0.1.14-q1tyk3k8.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.14-r30t00rx.mjs +0 -1
- package/dist/chunks/hooks-0.1.14-ybdbkdfh.mjs +0 -1
- package/dist/chunks/index-0.1.14-3m7vrt91.mjs +0 -1
- package/dist/chunks/index-0.1.14-h8gc6ph5.mjs +0 -1
- package/dist/chunks/index-0.1.14-qvap58wt.mjs +0 -1
- package/dist/chunks/index-0.1.14-vygpnv88.mjs +0 -1
- package/dist/chunks/index-0.1.14-wjc5jkvz.mjs +0 -1
- package/dist/chunks/index-0.1.14-yjw9017n.mjs +0 -1
- package/dist/chunks/index-0.1.14-zgwbnfqh.mjs +0 -1
- package/dist/chunks/install-slack-app-0.1.14-64534gsm.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.1.14-ca4bp7gy.mjs +0 -1
- package/dist/chunks/keybindings-0.1.14-zk3nyh0h.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.14-md40mt17.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.14-d998c7wf.mjs +0 -1
- package/dist/chunks/main-0.1.14-94wst05h.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.14-tvr9zhbp.mjs +0 -1
- package/dist/chunks/mcpServer-0.1.14-0mvs3bcw.mjs +0 -1
- package/dist/chunks/package-WSP46L7M-0.1.14-xy3ej2c4.mjs +0 -1
- package/dist/chunks/parser-0.1.14-jr4b3as9.mjs +0 -1
- package/dist/chunks/plan-0.1.14-kxb7xax2.mjs +0 -1
- package/dist/chunks/pluginStartupCheck-0.1.14-zjwy126p.mjs +0 -1
- package/dist/chunks/privacy-settings-0.1.14-2gv7gdy1.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.14-d3xsyk5f.mjs +0 -1
- package/dist/chunks/prompt-0.1.14-30e7kfkx.mjs +0 -1
- package/dist/chunks/prompt-0.1.14-brtd9j19.mjs +0 -1
- package/dist/chunks/prompts-0.1.14-bv9qxc0a.mjs +0 -1
- package/dist/chunks/providerProfiles-0.1.14-068kvwwx.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.14-2ftxh15k.mjs +0 -1
- package/dist/chunks/registry-0.1.14-ad3na7g6.mjs +0 -1
- package/dist/chunks/release-notes-0.1.14-b7e554an.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.14-3w9v6nw6.mjs +0 -2
- package/dist/chunks/remoteSession-0.1.14-ppejxt7n.mjs +0 -1
- package/dist/chunks/rename-0.1.14-tx9dpgk1.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.14-gsqgzdev.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.1.14-k97fyzcg.mjs +0 -1
- package/dist/chunks/session-0.1.14-5qsfxmey.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.14-mgx78eqm.mjs +0 -1
- package/dist/chunks/sinks-0.1.14-bkyqa9eq.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.14-sabjns03.mjs +0 -1
- package/dist/chunks/status-0.1.14-d4fcn5sn.mjs +0 -1
- package/dist/chunks/stickers-0.1.14-s9x2bdhp.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.14-spqyrvd7.mjs +0 -1
- package/dist/chunks/tasks-0.1.14-yje1cmy8.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.14-natmxyx5.mjs +0 -1
- package/dist/chunks/teleport-0.1.14-np0wrxrm.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.14-dzsstmk7.mjs +0 -1
- package/dist/chunks/theme-0.1.14-202es8wd.mjs +0 -1
- package/dist/chunks/thinkback-0.1.14-k4krnzrn.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.14-nn1v84ja.mjs +0 -1
- package/dist/chunks/toolPool-0.1.14-4etecef4.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.14-q506jg4k.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.14-qq8dmccd.mjs +0 -1
- package/dist/chunks/upgrade-0.1.14-4nr1rdba.mjs +0 -1
- package/dist/chunks/usage-0.1.14-sbaqxx8h.mjs +0 -1
- package/dist/chunks/util-0.1.14-vfg50acy.mjs +0 -1
- package/dist/chunks/utils-0.1.14-heqqycdx.mjs +0 -1
- package/dist/chunks/vim-0.1.14-z71303w7.mjs +0 -1
- package/dist/chunks/watcher-0.1.14-h1wk07kt.mjs +0 -1
- package/dist/chunks/worktree-0.1.14-5486fw5t.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.14-xn1mf8hc.mjs +0 -1
- /package/dist/chunks/{cli-0.1.14-nbvvdkk2.mjs → cli-0.1.15-618hqv9f.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.14-tsth8deg.mjs → cli-0.1.15-7mfwj2xs.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.14-et8yewbf.mjs → cli-0.1.15-7ve9h395.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.14-qn4ftczz.mjs → cli-0.1.15-mhbfhhf6.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.14-cahvg3jq.mjs → cli-0.1.15-p6bypqrv.mjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{bma as $}from"./cli-0.1.
|
|
1
|
+
import{bma as $}from"./cli-0.1.15-mhbfhhf6.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function x(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function A(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function N(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function k(z=1){return z===0?"":J(z,"A")}function X(z=1){return z===0?"":J(z,"B")}function D(z=1){return z===0?"":J(z,"C")}function M(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function S(z,Q){let V="";if(z<0)V+=M(-z);else if(z>0)V+=D(z);if(Q<0)V+=k(-Q);else if(Q>0)V+=X(Q);return V}function E(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=k(1);return Q+=W,Q}function y(z=1){return z===0?"":J(z,"S")}function a(z=1){return z===0?"":J(z,"T")}function n(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,W,q,b,l,F,K,o,c,t,r,i,e,s,zz,Jz,Qz;var v=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];W=J("G");q=J("H");b=J("s"),l=J("u"),F=J(2,"K"),K=J(2,"J"),o=J(3,"J");c=J("r"),t=J("200~"),r=J("201~"),i=J("I"),e=J("O"),s=J(">1u"),zz=J("<u"),Jz=J(">4;2m"),Qz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+q}var P,$z;var f=$(()=>{v();P=J(0,"f");$z=T()});
|
|
2
2
|
export{d as LY,Y as MY,h as NY,j as OY,H as PY,w as QY,L as RY,x as SY,A as TY,N as UY,J as VY,g as WY,I as XY,_ as YY,u as ZY,R as _Y,C as $Y,q as aZ,S as bZ,K as cZ,E as dZ,y as eZ,a as fZ,n as gZ,c as hZ,t as iZ,r as jZ,i as kZ,e as lZ,s as mZ,zz as nZ,Jz as oZ,Qz as pZ,v as qZ,T as rZ,$z as sZ,f as tZ};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{S6 as Q,g7 as _}from"./cli-0.1.
|
|
1
|
+
import{S6 as Q,g7 as _}from"./cli-0.1.15-4892kydg.mjs";import{vca as I,wca as V}from"./cli-0.1.15-rr65b3dk.mjs";import{wfa as B,zfa as X}from"./cli-0.1.15-nk50qhet.mjs";import{bma as T}from"./cli-0.1.15-mhbfhhf6.mjs";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{V();X();_();A=new Map});
|
|
2
2
|
export{j as D4,P as E4,Y as F4,S as G4,O as H4,D as I4,Z as J4};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{QE as B,RE as U,TE as L,UE as V,XH as N,_H as b}from"./cli-0.1.
|
|
1
|
+
import{QE as B,RE as U,TE as L,UE as V,XH as N,_H as b}from"./cli-0.1.15-26hkdean.mjs";import{F8 as F,y8 as z,z_ as P}from"./cli-0.1.15-4892kydg.mjs";import{aea as H,gea as v}from"./cli-0.1.15-11sdbfxy.mjs";import{bma as j}from"./cli-0.1.15-mhbfhhf6.mjs";async function A(R){let{messages:I,getAppState:O,options:{mainLoopModel:J,tools:Y,agentDefinitions:Z,customSystemPrompt:W,appendSystemPrompt:X}}=R,Q=N(I),{messages:K}=await B(Q),h=O();return L(K,J,async()=>h.toolPermissionContext,Y,Z,void 0,{options:{customSystemPrompt:W,appendSystemPrompt:X}},void 0,Q)}async function g(R,I){let O=await A(I);return{type:"text",value:w(O)}}function w(R){let{categories:I,totalTokens:O,rawMaxTokens:J,percentage:Y,model:Z,memoryFiles:W,mcpTools:X,agents:Q,skills:K}=R,h=`## Context Usage
|
|
2
2
|
|
|
3
3
|
`;h+=`**Model:** ${Z}
|
|
4
4
|
`,h+=`**Tokens:** ${H(O)} / ${H(J)} (${Y}%)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{bma as b}from"./cli-0.1.
|
|
1
|
+
import{bma as b}from"./cli-0.1.15-mhbfhhf6.mjs";var g="Agent",j="Task",m;var d=b(()=>{m=new Set(["Explore","Plan"])});
|
|
2
2
|
export{g as jda,j as kda,m as lda,d as mda};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{iv as O,kv as j,rt as y,st as p}from"./cli-0.1.
|
|
1
|
+
import{iv as O,kv as j,rt as y,st as p}from"./cli-0.1.15-26hkdean.mjs";import{AU as F,CU as I,GU as R,QS as S,fV as v}from"./cli-0.1.15-68f0jtkh.mjs";import{EV as Z,FV as N,GV as U}from"./cli-0.1.15-gxgy4enj.mjs";import{HV as d}from"./cli-0.1.15-tp614m5f.mjs";import{Z_ as M,j$ as E}from"./cli-0.1.15-4892kydg.mjs";import{yea as H,zea as b}from"./cli-0.1.15-b7f6hacc.mjs";import{Zla as k}from"./cli-0.1.15-mhbfhhf6.mjs";b();v();E();j();p();U();var T=k(S(),1),h=k(d(),1),x="Auto mode lets Claude handle permission prompts automatically — Claude checks each tool call for risky actions and prompt injection before executing. Actions Claude identifies as safe are executed, while actions Claude identifies as risky are blocked and Claude may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claude can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function l(A){let f=T.c(18),{onAccept:J,onDecline:q,declineExits:C}=A,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];h.default.useEffect(_,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(m){f:switch(m){case"accept":{H("tengu_auto_mode_opt_in_dialog_accept",{}),M("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("tengu_auto_mode_opt_in_dialog_accept_default",{}),M("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("tengu_auto_mode_opt_in_dialog_decline",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let B=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=N(F,{flexDirection:"column",gap:1,children:[Z(I,{children:x}),Z(R,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let L=C?"No, exit":"No, go back",w;if(f[7]!==L)w=[...W,X,{label:L,value:"decline"}],f[7]=L,f[8]=w;else w=f[8];let z;if(f[9]!==B)z=(P)=>B(P),f[9]=B,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(O,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=N(y,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function _(){H("tengu_auto_mode_opt_in_dialog_shown",{})}
|
|
2
2
|
export{x as Ra,l as Sa};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Qa as DY}from"./cli-0.1.
|
|
1
|
+
import{Qa as DY}from"./cli-0.1.15-7mfwj2xs.mjs";import{jb as qY}from"./cli-0.1.15-5qx5p8cd.mjs";import{Rg as X9,Sg as RW}from"./cli-0.1.15-0g0abv7y.mjs";import{$p as WZ,As as xZ,Bo as UZ,Bs as u0,By as b0,Cs as m0,Ds as c0,ED as HY,Eo as EZ,Es as g0,Ey as I0,FD as gQ,Fo as h0,Fs as pZ,Fy as TZ,GH as C0,Gs as uZ,Hs as d0,Is as l0,JD as i,Jm as Z0,Js as a0,Jy as n9,KN as q9,Km as K0,Ks as n0,LD as fW,Lm as FZ,Ls as i0,Mm as G0,Ms as r0,NH as J9,Ns as o0,Os as s0,PH as H9,Ps as t0,Qs as GQ,St as W9,Up as CY,VH as N9,Vp as zW,Vt as TW,WG as aY,WN as D9,Wn as JY,Wp as TY,XJ as T0,Xn as cQ,Xo as Q9,Xp as RY,Yp as jZ,ZG as PW,Zo as CW,Zp as rZ,_H as wZ,_J as i9,_p as fY,aL as B9,aq as oZ,bO as LY,bq as SY,cq as hY,dq as AY,eG as U9,gG as E9,hH as SZ,iv as F0,jL as L9,jv as l9,kG as y9,lH as s,lL as z9,lx as k0,mF as V9,mx as XQ,nF as SW,oO as zY,pL as kW,rG as dW,rH as XZ,sy as M0,ty as a9,vH as hZ,wJ as NY,xF as K9,xN as BY,yF as G9,yJ as dQ,yN as lQ,yk as O9,zF as hW,zk as gW,zs as p0}from"./cli-0.1.15-26hkdean.mjs";import{ER as $0,FR as g9}from"./cli-0.1.15-ajg1d1bh.mjs";import{ES as y0,FS as P0,GS as c9,MS as j0,NS as d9,qS as E0,rS as m9}from"./cli-0.1.15-8v8bskr0.mjs";import{AU as p,CU as F,QS as p9,fV as u9}from"./cli-0.1.15-68f0jtkh.mjs";import{DV as a,EV as E,FV as M,GV as J0}from"./cli-0.1.15-gxgy4enj.mjs";import{HV as x9}from"./cli-0.1.15-tp614m5f.mjs";import{FW as eY,SW as bW,sW as sY,tW as tY,uW as MW}from"./cli-0.1.15-m7gtc61y.mjs";import{TW as EY,XW as GW}from"./cli-0.1.15-6nwbd09n.mjs";import{B2 as lY,V0 as dY,Z0 as EW,y3 as yW}from"./cli-0.1.15-q35rzjnz.mjs";import{J5 as GY,J6 as A9,L5 as mQ,O7 as CZ,Q7 as h9,Q9 as w9,R5 as _0,T7 as _9,U5 as f9,X9 as cW,_5 as e,a$ as gY,d6 as w0,e6 as vZ,f6 as S9,g7 as uW,j$ as UW,n8 as mW,q8 as UY,v8 as KW}from"./cli-0.1.15-4892kydg.mjs";import{oca as Y,pca as k,qca as GZ,rca as q,sca as OZ}from"./cli-0.1.15-gmdv5ny8.mjs";import{Bca as B0,Cca as L0,Dca as z0,Eca as q0,Hca as D0,Ica as v0,Uca as A0,_ca as R9,vca as uY,wca as wW,yca as IZ}from"./cli-0.1.15-rr65b3dk.mjs";import{jda as mY,kda as cY,mda as OW}from"./cli-0.1.15-dq954y1q.mjs";import{Ida as tQ,xda as vY}from"./cli-0.1.15-wfn10357.mjs";import{Wda as O0,cea as U0,gea as k9}from"./cli-0.1.15-11sdbfxy.mjs";import{yea as d,zea as _Z}from"./cli-0.1.15-b7f6hacc.mjs";import{Cea as OY,Eea as VW,Qea as XY,Yea as v9,Zea as aZ,cfa as gZ,efa as ZZ,ffa as VY,ifa as PZ,wfa as b,zfa as KZ}from"./cli-0.1.15-nk50qhet.mjs";import{Pfa as KY,Tfa as uQ}from"./cli-0.1.15-tj4kzvth.mjs";import{Bha as Y0,Cha as wY,Kia as pY,aka as MY,bka as zZ,cka as bY,eka as IY,jla as oY,mla as BZ,vha as NZ}from"./cli-0.1.15-12azgmva.mjs";import{Zla as N0,ama as fZ,bma as AZ,cma as sZ}from"./cli-0.1.15-mhbfhhf6.mjs";var QQ={};fZ(QQ,{selectableUserMessagesFilter:()=>S0,messagesAfterAreOnlySynthetic:()=>YQ,MessageSelector:()=>o9});import{randomUUID as r9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function RZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function o9({messages:Q,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:V,onClose:J,preselectedMessage:K}){let H=T0((U)=>U.fileHistory),[B,z]=I.useState(void 0),G=b0(),L=I.useMemo(r9,[]),w=I.useMemo(()=>[...Q.filter(S0),{...s({content:""}),uuid:L}],[Q,L]),[v,_]=I.useState(w.length-1),P=Math.max(0,Math.min(v-Math.floor(bZ/2),w.length-bZ)),C=w.length>1,[D,$]=I.useState(K),[y,T]=I.useState(void 0);I.useEffect(()=>{if(!K||!G)return;let U=!1;return TZ(H,K.uuid).then((f)=>{if(!U)T(f)}),()=>{U=!0}},[K,G,H]);let[O,j]=I.useState(!1),[l,n]=I.useState(null),[S,m]=I.useState("both"),[g,x]=I.useState(""),[A,N]=I.useState("");function R(U){let f=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],u={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return f.push({value:"summarize",label:"Summarize from here",...u,onChange:x}),f.push({value:"nevermind",label:"Never mind"}),f}I.useEffect(()=>{d("tengu_message_selector_opened",{})},[]);async function h(U){Z(),j(!0);try{await W(U),j(!1),J()}catch(f){e(f),j(!1),z(`Failed to restore the conversation:
|
|
2
2
|
${f}`)}}async function r(U){let f=Q.indexOf(U),u=Q.length-1-f;if(d("tengu_message_selector_selected",{index_from_end:u,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){J();return}if(!G){await h(U);return}let c=await TZ(H,U.uuid);$(U),T(c)}async function t(U){if(d("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(K)J();else $(void 0);return}if(RZ(U)){Z(),j(!0),n(U),z(void 0);try{let c=U==="summarize_up_to"?"up_to":"from",YZ=(c==="up_to"?A:g).trim()||void 0;await V(D,YZ,c),j(!1),n(null),$(void 0),J()}catch(c){e(c),j(!1),n(null),$(void 0),z(`Failed to summarize:
|
|
3
3
|
${c}`)}return}Z(),j(!0),z(void 0);let f=null,u=null;if(U==="code"||U==="both")try{await X(D)}catch(c){f=c,e(f)}if(U==="conversation"||U==="both")try{await W(D)}catch(c){u=c,e(u)}if(j(!1),$(void 0),u&&f)z(`Failed to restore the conversation and code:
|
|
4
4
|
${u}
|
|
@@ -6,7 +6,7 @@ ${f}`);else if(u)z(`Failed to restore the conversation:
|
|
|
6
6
|
${u}`);else if(f)z(`Failed to restore the code:
|
|
7
7
|
${f}`);else J()}let Q0=$0(),$9=I.useCallback(()=>{if(D&&!K){$(void 0);return}d("tengu_message_selector_cancelled",{}),J()},[J,D,K]),j9=I.useCallback(()=>_((U)=>Math.max(0,U-1)),[]),F9=I.useCallback(()=>_((U)=>Math.min(w.length-1,U+1)),[w.length]),M9=I.useCallback(()=>_(0),[]),b9=I.useCallback(()=>_(w.length-1),[w.length]),I9=I.useCallback(()=>{let U=w[v];if(U)r(U)},[w,v,r]);y0("confirm:no",$9,{context:"Confirmation",isActive:!D}),P0({"messageSelector:up":j9,"messageSelector:down":F9,"messageSelector:top":M9,"messageSelector:bottom":b9,"messageSelector:select":I9},{context:"MessageSelector",isActive:!O&&!B&&!D&&C});let[W0,X0]=I.useState({});I.useEffect(()=>{async function U(){if(!G)return;Promise.all(w.map(async(f,u)=>{if(f.uuid!==L){let c=I0(H,f.uuid),YZ=w.at(u+1),DZ=c?ZQ(Q,f.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(DZ!==void 0)X0((o)=>({...o,[u]:DZ}));else X0((o)=>({...o,[u]:void 0}))}}))}U()},[w,Q,L,H,G]);let qZ=G&&y?.filesChanged&&y.filesChanged.length>0,C9=!B&&!D&&!K&&C;return M(p,{flexDirection:"column",width:"100%",children:[E(j0,{color:"suggestion"}),M(p,{flexDirection:"column",marginX:1,gap:1,children:[E(F,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:M(F,{color:"error",children:["Error: ",B]})}),!C&&E(a,{children:E(F,{children:"Nothing to rewind to yet."})}),!B&&D&&C&&M(a,{children:[M(F,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),M(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(H0,{userMessage:D,color:"text",isCurrent:!1}),M(F,{dimColor:!0,children:["(",U0(new Date(D.timestamp)),")"]})]}),E(t9,{selectedRestoreOption:S,canRestoreCode:!!qZ,diffStatsForRestore:y}),O&&RZ(l)?M(p,{flexDirection:"row",gap:1,children:[E(M0,{}),E(F,{children:"Summarizing…"})]}):E(F0,{isDisabled:O,options:R(!!qZ),defaultFocusValue:qZ?"both":"conversation",onFocus:(U)=>m(U),onChange:(U)=>t(U),onCancel:()=>K?J():$(void 0)}),qZ&&E(p,{marginBottom:1,children:M(F,{dimColor:!0,children:[vZ.warning," Rewinding does not affect files edited manually or via bash."]})})]}),C9&&M(a,{children:[G?E(F,{children:"Restore the code and/or conversation to the point before…"}):E(F,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:w.slice(P,P+bZ).map((U,f)=>{let u=P+f,c=u===v,YZ=U.uuid===L,DZ=u in W0,o=W0[u],MZ=o?.filesChanged&&o.filesChanged.length;return M(p,{height:G?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:c?M(F,{color:"permission",bold:!0,children:[vZ.pointer," "]}):E(F,{children:" "})}),M(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(H0,{userMessage:U,color:c?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),G&&DZ&&E(p,{height:1,flexDirection:"row",children:o?E(a,{children:E(F,{dimColor:!c,color:"inactive",children:MZ?M(a,{children:[MZ===1&&o.filesChanged[0]?`${QZ.basename(o.filesChanged[0])} `:`${MZ} files changed `,E(f0,{diffStats:o})]}):E(a,{children:"No code changes"})})}):M(F,{dimColor:!0,color:"warning",children:[vZ.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(F,{dimColor:!0,italic:!0,children:Q0.pending?M(a,{children:["Press ",Q0.keyName," again to exit"]}):M(a,{children:[!B&&C&&"Enter to continue · ","Esc to exit"]})})]})]})}function s9(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function t9(Q){let Z=VZ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:V}=Q,J=X&&(W==="both"||W==="code"),K;if(Z[0]!==W)K=s9(W),Z[0]=W,Z[1]=K;else K=Z[1];let H;if(Z[2]!==K)H=E(F,{dimColor:!0,children:K}),Z[2]=K,Z[3]=H;else H=Z[3];let B;if(Z[4]!==V||Z[5]!==W||Z[6]!==J)B=!RZ(W)&&(J?E(e9,{diffStatsForRestore:V}):E(F,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=V,Z[5]=W,Z[6]=J,Z[7]=B;else B=Z[7];let z;if(Z[8]!==H||Z[9]!==B)z=M(p,{flexDirection:"column",children:[H,B]}),Z[8]=H,Z[9]=B,Z[10]=z;else z=Z[10];return z}function e9(Q){let Z=VZ.c(14),{diffStatsForRestore:W}=Q;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let H;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))H=E(F,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=H;else H=Z[0];return H}let X=W.filesChanged.length,V;if(X===1){let H;if(Z[1]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=H;else H=Z[2];V=H}else if(X===2){let H;if(Z[3]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=H;else H=Z[4];let B=H,z;if(Z[5]!==W.filesChanged[1])z=QZ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=z;else z=Z[6];V=`${B} and ${z}`}else{let H;if(Z[7]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=H;else H=Z[8];V=`${H} and ${W.filesChanged.length-1} other files`}let J;if(Z[9]!==W)J=E(f0,{diffStats:W}),Z[9]=W,Z[10]=J;else J=Z[10];let K;if(Z[11]!==V||Z[12]!==J)K=E(a,{children:M(F,{dimColor:!0,children:["The code will be restored"," ",J," in ",V,"."]})}),Z[11]=V,Z[12]=J,Z[13]=K;else K=Z[13];return K}function f0(Q){let Z=VZ.c(7),{diffStats:W}=Q;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=M(F,{color:"diffAddedWord",children:["+",W.insertions," "]}),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let V;if(Z[2]!==W.deletions)V=M(F,{color:"diffRemovedWord",children:["-",W.deletions]}),Z[2]=W.deletions,Z[3]=V;else V=Z[3];let J;if(Z[4]!==X||Z[5]!==V)J=M(a,{children:[X,V]}),Z[4]=X,Z[5]=V,Z[6]=J;else J=Z[6];return J}function H0(Q){let Z=VZ.c(31),{userMessage:W,color:X,dimColor:V,isCurrent:J,paddingRight:K}=Q,{columns:H}=E0();if(J){let T;if(Z[0]!==X||Z[1]!==V)T=E(p,{width:"100%",children:E(F,{italic:!0,color:X,dimColor:V,children:"(current)"})}),Z[0]=X,Z[1]=V,Z[2]=T;else T=Z[2];return T}let B=W.message.content,z=typeof B==="string"?null:B[B.length-1],G,L,w,v,_,P,C,D;if(Z[3]!==X||Z[4]!==H||Z[5]!==B||Z[6]!==V||Z[7]!==z||Z[8]!==K){D=Symbol.for("react.early_return_sentinel");Z:{let T=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",O=_0(T);if(C0(O)){let j;if(Z[17]!==X||Z[18]!==V)j=E(p,{flexDirection:"row",width:"100%",children:E(F,{italic:!0,color:X,dimColor:V,children:"((empty message))"})}),Z[17]=X,Z[18]=V,Z[19]=j;else j=Z[19];D=j;break Z}if(O.includes("<bash-input>")){let j=XZ(O,"bash-input");if(j){let l;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))l=E(F,{color:"bashBorder",children:"!"}),Z[20]=l;else l=Z[20];D=M(p,{flexDirection:"row",width:"100%",children:[l,M(F,{color:X,dimColor:V,children:[" ",j]})]});break Z}}if(O.includes(`<${IZ}>`)){let j=XZ(O,IZ),l=XZ(O,"command-args"),n=XZ(O,"skill-format")==="true";if(j)if(n){D=E(p,{flexDirection:"row",width:"100%",children:M(F,{color:X,dimColor:V,children:["Skill(",j,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:M(F,{color:X,dimColor:V,children:["/",j," ",l]})});break Z}}L=p,P="row",C="100%",G=F,w=X,v=V,_=K?O0(O,H-K,!0):O.slice(0,500).split(`
|
|
8
8
|
`).slice(0,4).join(`
|
|
9
|
-
`)}Z[3]=X,Z[4]=H,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=K,Z[9]=G,Z[10]=L,Z[11]=w,Z[12]=v,Z[13]=_,Z[14]=P,Z[15]=C,Z[16]=D}else G=Z[9],L=Z[10],w=Z[11],v=Z[12],_=Z[13],P=Z[14],C=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let $;if(Z[21]!==G||Z[22]!==w||Z[23]!==v||Z[24]!==_)$=E(G,{color:w,dimColor:v,children:_}),Z[21]=G,Z[22]=w,Z[23]=v,Z[24]=_,Z[25]=$;else $=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==C||Z[29]!==$)y=E(L,{flexDirection:P,width:C,children:$}),Z[26]=L,Z[27]=P,Z[28]=C,Z[29]=$,Z[30]=y;else y=Z[30];return y}function ZQ(Q,Z,W){let X=Q.findIndex((B)=>B.uuid===Z);if(X===-1)return;let V=W?Q.findIndex((B)=>B.uuid===W):Q.length;if(V===-1)V=Q.length;let J=[],K=0,H=0;for(let B=X+1;B<V;B++){let z=Q[B];if(!z||!hZ(z))continue;let G=z.toolUseResult;if(!G||!G.filePath||!G.structuredPatch)continue;if(!J.includes(G.filePath))J.push(G.filePath);try{if("type"in G&&G.type==="create")K+=G.content.split(/\r?\n/).length;else for(let L of G.structuredPatch){let w=CZ(L.lines,(_)=>_.startsWith("+")),v=CZ(L.lines,(_)=>_.startsWith("-"));K+=w,H+=v}}catch{continue}}return{filesChanged:J,insertions:K,deletions:H}}function S0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(SZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&R0(W)?W.text.trim():"";if(X.indexOf(`<${z0}>`)!==-1||X.indexOf(`<${q0}>`)!==-1||X.indexOf(`<${B0}>`)!==-1||X.indexOf(`<${L0}>`)!==-1||X.indexOf(`<${v0}>`)!==-1||X.indexOf(`<${D0}>`)!==-1||X.indexOf(`<${A0}`)!==-1)return!1;return!0}function YQ(Q,Z){for(let W=Z+1;W<Q.length;W++){let X=Q[W];if(!X)continue;if(SZ(X))continue;if(hZ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let V=X.message.content;if(Array.isArray(V)){if(V.some((K)=>K.type==="text"&&K.text.trim()||K.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var VZ,I,bZ=7;var WQ=AZ(()=>{S9();_Z();i9();n9();w0();g9();u9();c9();f9();wZ();l9();a9();m9();R9();h9();k9();d9();J0();VZ=N0(p9(),1),I=N0(x9(),1)});var WW={};fZ(WW,{getCronJitterConfig:()=>QW});function QW(){let Q=vY("tengu_kairos_cron_config",WZ,eQ),Z=YW().safeParse(Q);return Z.success?Z.data:WZ}var eQ=60000,dZ=1800000,ZW=2592000000,YW;var XW=AZ(()=>{GZ();tQ();AY();OZ();YW=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(dZ),oneShotMaxMs:Y.number().int().min(0).max(dZ),oneShotFloorMs:Y.number().int().min(0).max(dZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(ZW).default(WZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as JW,readFile as HW,unlink as yY,writeFile as nZ}from"fs/promises";import{dirname as NW,join as PY}from"path";function HZ(Q){return PY(Q??wY(),BW)}async function $Y(Q){let Z;try{Z=await HW(HZ(Q),"utf8")}catch{return}let W=LW().safeParse(UY(Z,!1));return W.success?W.data:void 0}async function _Y(Q,Z){let W=HZ(Z),X=ZZ(Q);try{return await nZ(W,X,{flag:"wx"}),!0}catch(V){let J=aZ(V);if(J==="EEXIST")return!1;if(J==="ENOENT"){await JW(NW(W),{recursive:!0});try{return await nZ(W,X,{flag:"wx"}),!0}catch(K){if(aZ(K)==="EEXIST")return!1;throw K}}throw V}}function lZ(Q){$Z?.(),$Z=OY(async()=>{await LZ(Q)})}async function iZ(Q){let Z=Q?.dir,W=Q?.lockIdentity??NZ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await _Y(X,Z))return JZ=void 0,lZ(Q),b(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await $Y(Z);if(V?.sessionId===W){if(V.pid!==process.pid)await nZ(HZ(Z),ZZ(X)),lZ(Q);return!0}if(V&&EY(V.pid)){if(JZ!==V.sessionId)JZ=V.sessionId,b(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)b(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await yY(HZ(Z)).catch(()=>{}),await _Y(X,Z))return JZ=void 0,lZ(Q),!0;return!1}async function LZ(Q){$Z?.(),$Z=void 0,JZ=void 0;let Z=Q?.dir,W=Q?.lockIdentity??NZ(),X=await $Y(Z);if(!X||X.sessionId!==W)return;try{await yY(HZ(Z)),b("[ScheduledTasks] released scheduler lock")}catch{}}var BW,LW,$Z,JZ;var jY=AZ(()=>{GZ();BZ();VW();KZ();gZ();GW();KW();OZ();PZ();BW=PY(".claudio","scheduled_tasks.lock"),LW=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var AW={};fZ(AW,{isRecurringTaskAged:()=>kY,createCronScheduler:()=>vW,buildMissedTaskNotification:()=>xY});function kY(Q,Z,W){if(W===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=W)}function vW(Q){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:V,onMissed:J,dir:K,lockIdentity:H,getJitterConfig:B,isKilled:z,filter:G}=Q,L=K||H?{dir:K,lockIdentity:H}:void 0,w=[],v=new Map,_=new Set,P=new Set,C=null,D=null,$=null,y=null,T=!1,O=!1;async function j(S){let m=await RY(K);if(T)return;if(w=m,!S)return;let g=Date.now(),x=hY(m,g).filter((A)=>!A.recurring&&!_.has(A.id)&&(!G||G(A)));if(x.length>0){for(let A of x)_.add(A.id),v.set(A.id,1/0);if(d("tengu_scheduled_task_missed",{count:x.length,taskIds:x.map((A)=>A.id).join(",")}),J)J(x);else Z(xY(x));rZ(x.map((A)=>A.id),K).catch((A)=>b(`[ScheduledTasks] failed to remove missed tasks: ${A}`)),b(`[ScheduledTasks] surfaced ${x.length} missed one-shot task(s)`)}}function l(){if(z?.())return;if(W()&&!X)return;let S=Date.now(),m=new Set,g=[],x=B?.()??WZ;function A(N,R){if(G&&!G(N))return;if(m.add(N.id),P.has(N.id))return;let h=v.get(N.id);if(h===void 0)h=N.recurring?oZ(N.cron,N.lastFiredAt??N.createdAt,N.id,x)??1/0:SY(N.cron,N.createdAt,N.id,x)??1/0,v.set(N.id,h),b(`[ScheduledTasks] scheduled ${N.id} for ${h===1/0?"never":new Date(h).toISOString()}`);if(S<h)return;if(b(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),d("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id}),V)V(N);else Z(N.prompt);let r=kY(N,S,x.recurringMaxAgeMs);if(r){let t=Math.floor((S-N.createdAt)/1000/60/60);b(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),d("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!r){let t=oZ(N.cron,S,N.id,x)??1/0;if(v.set(N.id,t),!R)g.push(N.id)}else if(R)IY([N.id]),v.delete(N.id);else P.add(N.id),rZ([N.id],K).catch((t)=>b(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>P.delete(N.id)),v.delete(N.id)}if(O){for(let N of w)A(N,!1);if(g.length>0){for(let N of g)P.add(N);fY(g,S,K).catch((N)=>b(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of g)P.delete(N)})}}if(K===void 0)for(let N of bY())A(N,!0);if(m.size===0){v.clear();return}for(let N of v.keys())if(!m.has(N))v.delete(N)}async function n(){if(T)return;if(C)clearInterval(C),C=null;let{default:S}=await import("./index-0.1.
|
|
9
|
+
`)}Z[3]=X,Z[4]=H,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=K,Z[9]=G,Z[10]=L,Z[11]=w,Z[12]=v,Z[13]=_,Z[14]=P,Z[15]=C,Z[16]=D}else G=Z[9],L=Z[10],w=Z[11],v=Z[12],_=Z[13],P=Z[14],C=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let $;if(Z[21]!==G||Z[22]!==w||Z[23]!==v||Z[24]!==_)$=E(G,{color:w,dimColor:v,children:_}),Z[21]=G,Z[22]=w,Z[23]=v,Z[24]=_,Z[25]=$;else $=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==C||Z[29]!==$)y=E(L,{flexDirection:P,width:C,children:$}),Z[26]=L,Z[27]=P,Z[28]=C,Z[29]=$,Z[30]=y;else y=Z[30];return y}function ZQ(Q,Z,W){let X=Q.findIndex((B)=>B.uuid===Z);if(X===-1)return;let V=W?Q.findIndex((B)=>B.uuid===W):Q.length;if(V===-1)V=Q.length;let J=[],K=0,H=0;for(let B=X+1;B<V;B++){let z=Q[B];if(!z||!hZ(z))continue;let G=z.toolUseResult;if(!G||!G.filePath||!G.structuredPatch)continue;if(!J.includes(G.filePath))J.push(G.filePath);try{if("type"in G&&G.type==="create")K+=G.content.split(/\r?\n/).length;else for(let L of G.structuredPatch){let w=CZ(L.lines,(_)=>_.startsWith("+")),v=CZ(L.lines,(_)=>_.startsWith("-"));K+=w,H+=v}}catch{continue}}return{filesChanged:J,insertions:K,deletions:H}}function S0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(SZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&R0(W)?W.text.trim():"";if(X.indexOf(`<${z0}>`)!==-1||X.indexOf(`<${q0}>`)!==-1||X.indexOf(`<${B0}>`)!==-1||X.indexOf(`<${L0}>`)!==-1||X.indexOf(`<${v0}>`)!==-1||X.indexOf(`<${D0}>`)!==-1||X.indexOf(`<${A0}`)!==-1)return!1;return!0}function YQ(Q,Z){for(let W=Z+1;W<Q.length;W++){let X=Q[W];if(!X)continue;if(SZ(X))continue;if(hZ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let V=X.message.content;if(Array.isArray(V)){if(V.some((K)=>K.type==="text"&&K.text.trim()||K.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var VZ,I,bZ=7;var WQ=AZ(()=>{S9();_Z();i9();n9();w0();g9();u9();c9();f9();wZ();l9();a9();m9();R9();h9();k9();d9();J0();VZ=N0(p9(),1),I=N0(x9(),1)});var WW={};fZ(WW,{getCronJitterConfig:()=>QW});function QW(){let Q=vY("tengu_kairos_cron_config",WZ,eQ),Z=YW().safeParse(Q);return Z.success?Z.data:WZ}var eQ=60000,dZ=1800000,ZW=2592000000,YW;var XW=AZ(()=>{GZ();tQ();AY();OZ();YW=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(dZ),oneShotMaxMs:Y.number().int().min(0).max(dZ),oneShotFloorMs:Y.number().int().min(0).max(dZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(ZW).default(WZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as JW,readFile as HW,unlink as yY,writeFile as nZ}from"fs/promises";import{dirname as NW,join as PY}from"path";function HZ(Q){return PY(Q??wY(),BW)}async function $Y(Q){let Z;try{Z=await HW(HZ(Q),"utf8")}catch{return}let W=LW().safeParse(UY(Z,!1));return W.success?W.data:void 0}async function _Y(Q,Z){let W=HZ(Z),X=ZZ(Q);try{return await nZ(W,X,{flag:"wx"}),!0}catch(V){let J=aZ(V);if(J==="EEXIST")return!1;if(J==="ENOENT"){await JW(NW(W),{recursive:!0});try{return await nZ(W,X,{flag:"wx"}),!0}catch(K){if(aZ(K)==="EEXIST")return!1;throw K}}throw V}}function lZ(Q){$Z?.(),$Z=OY(async()=>{await LZ(Q)})}async function iZ(Q){let Z=Q?.dir,W=Q?.lockIdentity??NZ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await _Y(X,Z))return JZ=void 0,lZ(Q),b(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await $Y(Z);if(V?.sessionId===W){if(V.pid!==process.pid)await nZ(HZ(Z),ZZ(X)),lZ(Q);return!0}if(V&&EY(V.pid)){if(JZ!==V.sessionId)JZ=V.sessionId,b(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)b(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await yY(HZ(Z)).catch(()=>{}),await _Y(X,Z))return JZ=void 0,lZ(Q),!0;return!1}async function LZ(Q){$Z?.(),$Z=void 0,JZ=void 0;let Z=Q?.dir,W=Q?.lockIdentity??NZ(),X=await $Y(Z);if(!X||X.sessionId!==W)return;try{await yY(HZ(Z)),b("[ScheduledTasks] released scheduler lock")}catch{}}var BW,LW,$Z,JZ;var jY=AZ(()=>{GZ();BZ();VW();KZ();gZ();GW();KW();OZ();PZ();BW=PY(".claudio","scheduled_tasks.lock"),LW=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var AW={};fZ(AW,{isRecurringTaskAged:()=>kY,createCronScheduler:()=>vW,buildMissedTaskNotification:()=>xY});function kY(Q,Z,W){if(W===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=W)}function vW(Q){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:V,onMissed:J,dir:K,lockIdentity:H,getJitterConfig:B,isKilled:z,filter:G}=Q,L=K||H?{dir:K,lockIdentity:H}:void 0,w=[],v=new Map,_=new Set,P=new Set,C=null,D=null,$=null,y=null,T=!1,O=!1;async function j(S){let m=await RY(K);if(T)return;if(w=m,!S)return;let g=Date.now(),x=hY(m,g).filter((A)=>!A.recurring&&!_.has(A.id)&&(!G||G(A)));if(x.length>0){for(let A of x)_.add(A.id),v.set(A.id,1/0);if(d("tengu_scheduled_task_missed",{count:x.length,taskIds:x.map((A)=>A.id).join(",")}),J)J(x);else Z(xY(x));rZ(x.map((A)=>A.id),K).catch((A)=>b(`[ScheduledTasks] failed to remove missed tasks: ${A}`)),b(`[ScheduledTasks] surfaced ${x.length} missed one-shot task(s)`)}}function l(){if(z?.())return;if(W()&&!X)return;let S=Date.now(),m=new Set,g=[],x=B?.()??WZ;function A(N,R){if(G&&!G(N))return;if(m.add(N.id),P.has(N.id))return;let h=v.get(N.id);if(h===void 0)h=N.recurring?oZ(N.cron,N.lastFiredAt??N.createdAt,N.id,x)??1/0:SY(N.cron,N.createdAt,N.id,x)??1/0,v.set(N.id,h),b(`[ScheduledTasks] scheduled ${N.id} for ${h===1/0?"never":new Date(h).toISOString()}`);if(S<h)return;if(b(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),d("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id}),V)V(N);else Z(N.prompt);let r=kY(N,S,x.recurringMaxAgeMs);if(r){let t=Math.floor((S-N.createdAt)/1000/60/60);b(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),d("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!r){let t=oZ(N.cron,S,N.id,x)??1/0;if(v.set(N.id,t),!R)g.push(N.id)}else if(R)IY([N.id]),v.delete(N.id);else P.add(N.id),rZ([N.id],K).catch((t)=>b(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>P.delete(N.id)),v.delete(N.id)}if(O){for(let N of w)A(N,!1);if(g.length>0){for(let N of g)P.add(N);fY(g,S,K).catch((N)=>b(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of g)P.delete(N)})}}if(K===void 0)for(let N of bY())A(N,!0);if(m.size===0){v.clear();return}for(let N of v.keys())if(!m.has(N))v.delete(N)}async function n(){if(T)return;if(C)clearInterval(C),C=null;let{default:S}=await import("./index-0.1.15-z3k5tm3n.mjs");if(T)return;if(O=await iZ(L).catch(()=>!1),T){if(O)O=!1,LZ(L);return}if(!O)$=setInterval(()=>{iZ(L).then((g)=>{if(T){if(g)LZ(L);return}if(g){if(O=!0,$)clearInterval($),$=null}}).catch((g)=>b(String(g),{level:"error"}))},DW),$.unref?.();j(!0);let m=TY(K);y=S.watch(m,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:qW},ignorePermissionErrors:!0}),y.on("add",()=>void j(!1)),y.on("change",()=>void j(!1)),y.on("unlink",()=>{if(!T)w=[],v.clear()}),D=setInterval(l,FY),D.unref?.()}return{start(){if(T=!1,K!==void 0){b(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${jZ(K)}`),n();return}if(b(`[ScheduledTasks] scheduler start() — enabled=${zZ()}, hasTasks=${jZ()}`),!zZ()&&(X||jZ()))MY(!0);if(zZ()){n();return}C=setInterval((S)=>{if(zZ())S()},FY,n),C.unref?.()},stop(){if(T=!0,C)clearInterval(C),C=null;if(D)clearInterval(D),D=null;if($)clearInterval($),$=null;if(y?.close(),y=null,O)O=!1,LZ(L)},getNextFireTime(){let S=1/0;for(let m of v.values())if(m<S)S=m;return S===1/0?null:S}}}function xY(Q){let Z=Q.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudio/scheduled_tasks.json.
|
|
10
10
|
|
|
11
11
|
Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Q.map((V)=>{let J=`[${CY(V.cron)}, created ${new Date(V.createdAt).toLocaleString()}]`,K=(V.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),H="`".repeat(Math.max(3,K+1));return`${J}
|
|
12
12
|
${H}
|
|
@@ -20,5 +20,5 @@ ${X.join(`
|
|
|
20
20
|
`);if(W===-1)break;let X=Q.slice(0,W);Q=Q.slice(W+1);let V=await this.processLine(X);if(V)GY("info","cli_stdin_message_parsed",{type:V.type}),yield V}}.bind(this);yield*Z();for await(let W of this.input)Q+=W,yield*Z();if(Q){let W=await this.processLine(Q);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")W.reject(Error(Q.response.error));else{let X=Q.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(V){W.reject(V)}else W.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=DY(VY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[X,V]of Object.entries(Z.variables))process.env[X]=V;b(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)JY(W,"completed");let X=this.pendingRequests.get(Z.response.request_id);if(!X){let K=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof K==="string"&&this.resolvedToolUseIds.has(K)){b(`Ignoring duplicate control_response for already-resolved toolUseID=${K} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z.response.request_id),X.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){X.reject(Error(Z.response.error));return}let V=Z.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(J){X.reject(J)}else X.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){b(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)WY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")WY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){KY(QY(Q)+`
|
|
21
21
|
`)}async sendRequest(Q,Z,W,X=cZ()){let V={type:"control_request",request_id:X,request:Q};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(V),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(V);let J=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let K=this.pendingRequests.get(X);if(K)this.trackResolvedToolUseId(K.request),K.reject(new XY)};if(W)W.addEventListener("abort",J,{once:!0});try{return await new Promise((K,H)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Q},resolve:(B)=>{K(B)},reject:H,schema:Z})})}finally{if(W)W.removeEventListener("abort",J);this.pendingRequests.delete(X)}}createCanUseTool(Q){return async(Z,W,X,V,J,K)=>{let H=K??await NY(Z,W,X,V,J);if(H.behavior==="allow"||H.behavior==="deny")return H;let B=new AbortController,z=X.abortController.signal,G=()=>B.abort();z.addEventListener("abort",G,{once:!0});try{let L=sQ(Z.name,J,W,X,H.suggestions).then((P)=>({source:"hook",decision:P})),w=cZ();Q?.(iQ(Z,W,J,w));let v=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:H.suggestions,blocked_path:H.blockedPath,decision_reason:nQ(H.decisionReason),tool_use_id:J,agent_id:X.agentId},kZ(),B.signal,w).then((P)=>({source:"sdk",result:P})),_=await Promise.race([L,v]);if(_.source==="hook"){if(_.decision)return v.catch(()=>{}),B.abort(),_.decision;let P=await v;return yZ(P.result,Z,W,X)}return yZ(_.result,Z,W,X)}catch(L){return yZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:J},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)qY("running");z.removeEventListener("abort",G)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(W,X,V)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:W,tool_use_id:X||void 0},BY(),V)}catch(J){return console.error(`Error in hook callback ${Q}:`,J),{}}}}}async handleElicitation(Q,Z,W,X,V,J,K){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:V,url:J,elicitation_id:K,requested_schema:W},e0(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:aQ,input:{host:Q.host},tool_use_id:cZ(),description:`Allow network connection to ${Q.host}?`},kZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function WY(Q){console.error(Q),process.exit(1)}async function sQ(Q,Z,W,X,V){let K=X.getAppState().toolPermissionContext.mode,H=LY(Q,Z,W,X,K,V,X.abortController.signal);for await(let B of H)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let G=z.updatedInput||W,L=z.updatedPermissions??[];if(L.length>0){EZ(L);let w=X.getAppState(),v=UZ(w.toolPermissionContext,L);X.setAppState((_)=>{if(_.toolPermissionContext===v)return _;return{..._,toolPermissionContext:v}})}return{behavior:"allow",updatedInput:G,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}BZ();PW();OW();yW();wW();EW();UW();import{randomUUID as $W}from"crypto";function jW(Q){return Q===mY?cY:Q}function SX(Q){let W=gY()?.outputStyle??aY,X={type:"system",subtype:"init",cwd:uY(),session_id:NZ(),tools:Q.tools.map((V)=>jW(V.name)),mcp_servers:Q.mcpClients.map((V)=>({name:V.name,status:V.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),apiKeySource:lY().source,betas:pY(),claude_code_version:"99.0.0",output_style:W,agents:Q.agents.map((V)=>V.agentType),skills:Q.skills.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),plugins:Q.plugins.map((V)=>({name:V.name,path:V.path,source:V.source})),uuid:$W()};return X.fast_mode_state=dY(Q.model,Q.fastMode),X}var nY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function FW(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let X=[],V=null,J=0,K=(G)=>!!G&&/[\p{L}\p{N}_]/u.test(G);for(let G=0;G<Q.length;G++){let L=Q[G];if(V){if(V==="["&&L==="["){J=G;continue}if(L!==nY[V])continue;if(V==="'"&&K(Q[G+1]))continue;X.push({start:J,end:G+1}),V=null}else if(L==="<"&&G+1<Q.length&&/[a-zA-Z/]/.test(Q[G+1])||L==="'"&&!K(Q[G-1])||L!=="<"&&L!=="'"&&L in nY)V=L,J=G}let H=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let G of z){if(G.index===void 0)continue;let L=G.index,w=L+G[0].length;if(X.some((P)=>L>=P.start&&L<P.end))continue;let v=Q[L-1],_=Q[w];if(v==="/"||v==="\\"||v==="-")continue;if(_==="/"||_==="\\"||_==="-"||_==="?")continue;if(_==="."&&K(Q[w+1]))continue;H.push({word:G[0],start:L,end:w})}return H}function kX(Q){return FW(Q,"ultrareview")}_Z();wZ();kW();SW();hW();CW();zY();G0();TW();wZ();fW();RW();import{randomUUID as xW}from"crypto";BZ();_Z();wZ();MW();bW();import{randomUUID as IW}from"crypto";function iY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function rY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function Z9(Q,Z,W,X,V,J,K){let H=IW();oY(H);let B=typeof Q==="string"?Q:Q.find((v)=>v.type==="text")?.text||"";eY(B);let z=typeof Q==="string"?Q:Q.findLast((v)=>v.type==="text")?.text||"";if(z)tY("user_prompt",{prompt_length:String(z.length),prompt:sY(z),"prompt.id":H});let G=iY(B),L=rY(B);if(d("tengu_input_prompt",{is_negative:G,is_keep_going:L}),Z.length>0){let v=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...v,...Z],uuid:V,imagePasteIds:W.length>0?W:void 0,permissionMode:J,isMeta:K||void 0}),...X],shouldQuery:!0}}return{messages:[s({content:Q,uuid:V,permissionMode:J,isMeta:K||void 0}),...X],shouldQuery:!0}}async function BV({input:Q,preExpansionInput:Z,mode:W,setToolJSX:X,context:V,pastedContents:J,ideSelection:K,messages:H,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:G,querySource:L,canUseTool:w,skipSlashCommands:v,bridgeOrigin:_,isMeta:P,skipAttachments:C}){let D=typeof Q==="string"?Q:null;if(W==="prompt"&&D!==null&&!P)B?.(D);i("query_process_user_input_base_start");let $=V.getAppState(),y=await pW(Q,W,X,V,J,K,H,z,G,L,w,$.toolPermissionContext.mode,v,_,P,C,Z);if(i("query_process_user_input_base_end"),!y.shouldQuery)return y;i("query_hooks_start");let T=J9(Q)||"";for await(let O of D9(T,$.toolPermissionContext.mode,V,V.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let j=q9(O.blockingError);return{messages:[H9(`${j}
|
|
22
22
|
|
|
23
|
-
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let j=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:j})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(G9({type:"hook_additional_context",content:O.additionalContexts.map(Y9),hookName:"UserPromptSubmit",toolUseID:`hook-${xW()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:Y9(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return i("query_hooks_end"),y}var tZ=1e4;function Y9(Q){if(Q.length>tZ)return`${Q.substring(0,tZ)}… [output truncated - exceeded ${tZ} characters]`;return Q}async function pW(Q,Z,W,X,V,J,K,H,B,z,G,L,w,v,_,P,C){let D=null,$=[],y=[],T=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){i("query_image_processing_start");let A=[];for(let R of Q)if(R.type==="image"){let h=await Z0(R);if(h.dimensions){let r=FZ(h.dimensions);if(r)y.push(r)}A.push(h.block)}else A.push(R);T=A,i("query_image_processing_end");let N=A[A.length-1];if(N?.type==="text")D=N.text,$=A.slice(0,-1);else $=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=V?Object.values(V).filter(V9):[],j=O.map((A)=>A.id),l=V?await W9(V):new Map;i("query_pasted_image_processing_start");let n=await Promise.all(O.map(async(A)=>{let N={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return d("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await Z0(N),originalDimensions:A.dimensions,sourcePath:A.sourcePath??l.get(A.id)}})),S=[];for(let{resized:A,originalDimensions:N,sourcePath:R}of n){if(A.dimensions){let h=FZ(A.dimensions,R);if(h)y.push(h)}else if(N){let h=FZ(N,R);if(h)y.push(h)}else if(R)y.push(`[Image source: ${R}]`);S.push(A.block)}i("query_pasted_image_processing_end");let m=w;if(v&&D!==null&&D.startsWith("/")){let A=X9(D),N=A?z9(A.commandName,X.options.commands):void 0;if(N)if(L9(N))m=!1;else{let R=`/${B9(N)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:H}),N9(`<local-command-stdout>${R}</local-command-stdout>`)],shouldQuery:!1,resultText:R}}}let g=!P&&D!==null&&(Z!=="prompt"||m||!D.startsWith("/"));i("query_attachment_loading_start");let x=g?await Q9(K9(D,X,J??null,[],K,z)):[];if(i("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.1.
|
|
23
|
+
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let j=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:j})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(G9({type:"hook_additional_context",content:O.additionalContexts.map(Y9),hookName:"UserPromptSubmit",toolUseID:`hook-${xW()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:Y9(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return i("query_hooks_end"),y}var tZ=1e4;function Y9(Q){if(Q.length>tZ)return`${Q.substring(0,tZ)}… [output truncated - exceeded ${tZ} characters]`;return Q}async function pW(Q,Z,W,X,V,J,K,H,B,z,G,L,w,v,_,P,C){let D=null,$=[],y=[],T=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){i("query_image_processing_start");let A=[];for(let R of Q)if(R.type==="image"){let h=await Z0(R);if(h.dimensions){let r=FZ(h.dimensions);if(r)y.push(r)}A.push(h.block)}else A.push(R);T=A,i("query_image_processing_end");let N=A[A.length-1];if(N?.type==="text")D=N.text,$=A.slice(0,-1);else $=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=V?Object.values(V).filter(V9):[],j=O.map((A)=>A.id),l=V?await W9(V):new Map;i("query_pasted_image_processing_start");let n=await Promise.all(O.map(async(A)=>{let N={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return d("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await Z0(N),originalDimensions:A.dimensions,sourcePath:A.sourcePath??l.get(A.id)}})),S=[];for(let{resized:A,originalDimensions:N,sourcePath:R}of n){if(A.dimensions){let h=FZ(A.dimensions,R);if(h)y.push(h)}else if(N){let h=FZ(N,R);if(h)y.push(h)}else if(R)y.push(`[Image source: ${R}]`);S.push(A.block)}i("query_pasted_image_processing_end");let m=w;if(v&&D!==null&&D.startsWith("/")){let A=X9(D),N=A?z9(A.commandName,X.options.commands):void 0;if(N)if(L9(N))m=!1;else{let R=`/${B9(N)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:H}),N9(`<local-command-stdout>${R}</local-command-stdout>`)],shouldQuery:!1,resultText:R}}}let g=!P&&D!==null&&(Z!=="prompt"||m||!D.startsWith("/"));i("query_attachment_loading_start");let x=g?await Q9(K9(D,X,J??null,[],K,z)):[];if(i("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.1.15-57ga0c30.mjs");return eZ(await A(D,$,x,X,W),y)}if(D!==null&&!m&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-0.1.15-mee2mbyy.mjs"),N=await A(D,$,S,x,X,W,H,B,G);return eZ(N,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),N=x.find((R)=>R.attachment.type==="agent_mention");if(N){let R=`@agent-${N.attachment.agentType}`,h=A===R,r=A.startsWith(R)&&!h;d("tengu_subagent_at_mention",{is_subagent_only:h,is_prefix:r})}}return eZ(Z9(T,S,j,x,H,L,_),y)}function eZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Q}gW();BZ();KZ();gZ();mW();uW();w0();dW();cW();import{isAbsolute as lW,resolve as aW}from"path";function nW(Q,Z,W){let X=[],V=[],J=[];for(let[K,H]of Object.entries(Q)){let B=Z[K],z=P9(H.source,W?.projectRoot);if(!B)X.push(K);else if(H.sourceIsFallback)J.push(K);else if(!O9(z,B.source))V.push({name:K,declaredSource:z,materializedSource:B.source});else J.push(K)}return{missing:X,sourceChanged:V,upToDate:J}}async function yV(Q){let Z=U9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await E9()}catch(G){e(G),W={}}let X=nW(Z,W,{projectRoot:Y0()}),V=[...X.missing.map((G)=>({name:G,source:P9(Z[G].source),action:"install"})),...X.sourceChanged.map(({name:G,declaredSource:L})=>({name:G,source:L,action:"update"}))],J=[],K=[];for(let G of V){if(Q?.skip?.(G.name,G.source)){J.push(G.name);continue}if(G.action==="update"&&w9(G.source)&&!await _9(G.source.path)){b(`[reconcile] '${G.name}' declared path does not exist; keeping materialized entry`),J.push(G.name);continue}K.push(G)}if(K.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:J};b(`[reconcile] ${K.length} marketplace(s): ${K.map((G)=>`${G.name}(${G.action})`).join(", ")}`);let H=[],B=[],z=[];for(let G=0;G<K.length;G++){let{name:L,source:w,action:v}=K[G];Q?.onProgress?.({type:"installing",name:L,action:v,index:G+1,total:K.length});try{let _=await y9(w);if(v==="install")H.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:_.alreadyMaterialized})}catch(_){let P=v9(_);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(_)}}return{installed:H,updated:B,failed:z,upToDate:X.upToDate,skipped:J}}function P9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!lW(Q.path)){let W=Z??Y0(),X=A9(W);return{...Q,path:aW(X??W,Q.path)}}return Q}
|
|
24
24
|
export{rW as U,jW as V,SX as W,o9 as X,S0 as Y,YQ as Z,QQ as _,WQ as $,kX as aa,BV as ba,kZ as ca,yZ as da,QY as ea,oQ as fa,nW as ga,yV as ha,QW as ia,WW as ja,XW as ka,vW as la,AW as ma,_W as na};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{nd as c,td as Eq}from"./cli-0.1.
|
|
1
|
+
import{nd as c,td as Eq}from"./cli-0.1.15-zf1s8y92.mjs";import{$j as S,CG as Cq,FG as b,GG as Lq,JG as Hq,KG as Jq,MF as v,MG as vq,NF as m,NG as y,OG as Qq,PF as Oq,PG as Xq,QG as Yq,Qj as s,RG as $q,SG as d,Sj as Tq,VG as Dq,Wj as A,Wz as l,Xz as wq,Yj as D,Zj as Mq,_j as h,ak as Rq,gG as n,gl as i,il as Fq,mG as e,nG as P,rG as jq,sG as O,tG as qq,vG as I,wG as Gq,wk as t,xk as Aq}from"./cli-0.1.15-26hkdean.mjs";import{X_ as F,Z_ as L,_5 as a,d6 as Kq,j$ as Bq,r_ as V,z_ as _q}from"./cli-0.1.15-4892kydg.mjs";import{Xea as o,_ea as N,cfa as Uq,mfa as p,qfa as Wq}from"./cli-0.1.15-nk50qhet.mjs";import{Bha as f,mla as xq}from"./cli-0.1.15-12azgmva.mjs";import{bma as Zq}from"./cli-0.1.15-mhbfhhf6.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudio/settings.json, shared with your team). To disable just for you: claudio plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(i(Q),G)await t(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(s(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
|
|
2
2
|
${G.join(`
|
|
3
3
|
`)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Tq();Uq();Wq();Kq();Oq();Rq();Cq();jq();Aq();Mq();vq();Dq();Fq();wq();Eq();Lq();Bq();_q();k=["user","project","local"],HG=["user","project","local","managed"]});
|
|
4
4
|
export{k as ad,HG as bd,JG as cd,QG as dd,kq as ed,XG as fd,YG as gd,$G as hd,zG as id,ZG as jd,xG as kd,hq as ld};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Jt as D,Nt as r,pE as F,qE as y,tE as S,zE as o}from"./cli-0.1.
|
|
1
|
+
import{Jt as D,Nt as r,pE as F,qE as y,tE as S,zE as o}from"./cli-0.1.15-26hkdean.mjs";import{MT as A,NT as l,qU as z,rU as O}from"./cli-0.1.15-68f0jtkh.mjs";import{D6 as x,E6 as d,G6 as b,H6 as g}from"./cli-0.1.15-4892kydg.mjs";import{hfa as k,ifa as p,mfa as L,qfa as c,wfa as V,zfa as I}from"./cli-0.1.15-nk50qhet.mjs";import{Lla as T,Mla as C}from"./cli-0.1.15-p5ty029c.mjs";import{bma as w}from"./cli-0.1.15-mhbfhhf6.mjs";import{spawn as G,spawnSync as _}from"child_process";import{basename as R}from"path";function u(q){return!!b(q)}function N(q){let H=R(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function m(q,H,B){if(!B)return[H];if(f.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=N(B);if(Q){let W=m(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>V(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&P.test(R(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=_(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=_(X,M,W)}if(Z.error)return V(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,P,f,v;var j=w(()=>{C();O();I();g();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],P=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,f=new Set(["code","cursor","windsurf","codium"]);v=T(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>u(H))})});function a(q){return N(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!a(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=s[J]??J;return x(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${D(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=y(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Nq(q,H){let B=L(),J=A();try{let X=H?S(q,H):q;k(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
|
|
2
2
|
`)&&!Q.endsWith(`
|
|
3
3
|
|
|
4
4
|
`))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var s;var t=w(()=>{o();O();j();d();c();r();p();l();s={code:"code -w",subl:"subl --wait"}});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{bma as C}from"./cli-0.1.
|
|
1
|
+
import{bma as C}from"./cli-0.1.15-mhbfhhf6.mjs";function F(m,q){switch(q.type){case"set_local_jsx":{if(q.generation<m.generation)return m;return{state:{...q.payload,isLocalJSXCommand:!0},generation:m.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:m.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(m.hasLocalJSXActive)return m;return{...m,state:q.payload}}case"set_null":{if(m.hasLocalJSXActive)return m;if(m.state===null)return m;return{...m,state:null}}}}var D;var G=C(()=>{D={state:null,generation:0,hasLocalJSXActive:!1}});function L(m){return B=m,()=>{if(B===m)B=null}}function M(m){let q=F(z,m);if(q===z)return;z=q,B?.(q.state)}function N(){return z.generation}var z,B=null;var H=C(()=>{G();z=D});
|
|
2
2
|
export{L as Ng,M as Og,N as Pg,H as Qg};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{DN as TJ,Fj as DJ,Hj as cJ,Lj as IJ,Mj as BJ,Nj as pJ,Ug as dJ,kO as jJ,oO as ZV}from"./cli-0.1.
|
|
1
|
+
import{DN as TJ,Fj as DJ,Hj as cJ,Lj as IJ,Mj as BJ,Nj as pJ,Ug as dJ,kO as jJ,oO as ZV}from"./cli-0.1.15-26hkdean.mjs";import{$_ as WJ,I6 as VJ,K6 as p,X$ as NJ,_5 as L,d6 as kJ,g7 as fJ,j$ as uJ,m6 as c,n6 as PJ,oaa as hJ,q7 as qJ,u7 as mJ}from"./cli-0.1.15-4892kydg.mjs";import{vca as j,wca as zJ}from"./cli-0.1.15-rr65b3dk.mjs";import{yea as f,zea as gJ}from"./cli-0.1.15-b7f6hacc.mjs";import{Yea as e,cfa as SJ,mfa as JJ,qfa as bJ,wfa as Q,zfa as yJ}from"./cli-0.1.15-nk50qhet.mjs";import{tha as AJ,uha as wJ}from"./cli-0.1.15-12azgmva.mjs";import{Zla as LJ,bma as XJ}from"./cli-0.1.15-mhbfhhf6.mjs";class d{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await y(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let H=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,H)W(),H=!1;await y(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=CJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let H=W.charCodeAt(Y);if(H>=97&&H<=122)V|=1<<H-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),H=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);H[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,X=[],N=-1/0,{paths:D,lowerPaths:q,charBits:x,pathLens:U,readyCount:m}=this;J:for(let M=0;M<m;M++){if((x[M]&$)!==$)continue;let B=Z?D[M]:q[M],E=B.indexOf(H[0]);if(E===-1)continue;b[0]=E;let R=0,g=0,u=E;for(let A=1;A<Y;A++){if(E=B.indexOf(H[A],u+1),E===-1)continue J;b[A]=E;let F=E-u-1;if(F===0)g+=4;else R+=3+F*1;u=E}if(X.length===W&&_+g-R<=N)continue;let S=D[M],UJ=U[M],T=Y*16+g-R;T+=HJ(S,b[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,b[A],!1);if(T+=Math.max(0,32-(UJ>>2)),X.length<W){if(X.push({path:S,fuzzScore:T}),X.length===W)X.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=X[0].fuzzScore}else if(T>N){let A=0,F=X.length;while(A<F){let h=A+F>>1;if(X[h].fuzzScore<T)A=h+1;else F=h}X.splice(A,0,{path:S,fuzzScore:T}),X.shift(),N=X[0].fuzzScore}}X.sort((M,B)=>B.fuzzScore-M.fuzzScore);let I=X.length,w=Math.max(I,1),z=Array(I);for(let M=0;M<I;M++){let B=X[M].path,E=M/w,R=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:R}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(vJ(V))return 8;if(GJ(V)&&RJ(J.charCodeAt(W)))return 6;return 0}function vJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function RJ(J){return J>=65&&J<=90}function y(){return new Promise((J)=>setImmediate(J))}function CJ(J,W){let Z=new Set;for(let Y of J){let H=Y.length;for(let _=0;_<Y.length;_++){let X=Y.charCodeAt(_);if(X===47||X===92){H=_;break}}let $=Y.slice(0,H);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,H)=>{let $=Y.length-H.length;if($!==0)return $;return Y<H?-1:Y>H?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var _J=4,b;var QJ=XJ(()=>{b=new Int32Array(64)});import{statSync as lJ}from"fs";import*as O from"path";function l(){if(!K)K=new d;return K}function UV(){K=null,v=null,G++,k=null,C=[],ZJ=[],$J=[],YJ.clear(),n=null,s=null,o=0,a=null,i=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let H=J[Y];for(let $=0;$<H.length;$++)V=(V^H.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let H=0;H<Y.length;H++)V=(V^Y.charCodeAt(H))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function nJ(){let J=VJ(j());if(!J)return null;try{return lJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function MJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function sJ(J){if(J.length===0)return;if(!K||C.length===0)return;let W=await FJ(J),Z=[...C,...ZJ,...$J,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${C.length} tracked + ${J.length} untracked files`)}async function OJ(J,W){let Z=`${J}:${W}`;if(s===Z)return n;let V=JJ(),Y=[".ignore",".rgignore"],H=[...new Set([J,W])],$=KJ.default(),_=!1,X=H.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(X.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${X[q]}`)}let D=_?$:null;return n=D,s=Z,D}async function oJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=VJ(j());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=j(),H=Date.now(),$=await c(p(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-H}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
|
|
2
2
|
`).filter(Boolean),X=MJ(_,V,Y),N=await OJ(V,Y);if(N){let q=X.length;X=N.filter(X),Q(`[FileIndex] applied ignore patterns: ${q} -> ${X.length} files`)}C=X;let D=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${X.length} tracked files in ${D}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:X.length,tracked_count:X.length,untracked_count:0,duration_ms:D}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=G;k=c(p(),q,{timeout:1e4,cwd:V}).then(async(U)=>{if(x!==G)return;if(U.code===0){let m=U.stdout.trim().split(`
|
|
3
3
|
`).filter(Boolean),I=MJ(m,V,Y),w=await OJ(V,Y);if(w&&I.length>0){let z=I.length;I=w.filter(I),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${I.length} files`)}Q(`[FileIndex] background untracked fetch: ${I.length} files`),sJ(I)}}).catch((U)=>{Q(`[FileIndex] background untracked fetch failed: ${U}`)}).finally(()=>{k=null})}return X}catch(Y){return Q(`[FileIndex] git ls-files error: ${e(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(aJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>_J)await y(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function aJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let H=O.dirname(J[Y]);while(H!=="."&&!V.has(H)){let $=O.dirname(H);if($===H)break;V.add(H),H=$}}}async function iJ(J){return(await Promise.all(IJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function rJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await oJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;Q("[FileIndex] git ls-files returned null, falling back to ripgrep");let V=Date.now(),Y=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)Y.push("--no-ignore-vcs");let $=(await DJ(Y,".",J)).map((X)=>O.relative(j(),X)),_=Date.now()-V;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function tJ(){let J=AbortSignal.timeout(1e4),W=l();try{let Z=WJ(),V=NJ(),Y=Z.respectGitignore??V.respectGitignore??!0,H=j(),[$,_]=await Promise.all([rJ(J,Y),iJ(H)]);ZJ=_;let X=[...$,..._],N=await FJ(X);$J=N;let D=[...N,...X],q=xJ(D);if(q!==i)await W.loadFromFileListAsync(D).done,i=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){L(Z)}return W}function eJ(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function vV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=eJ(Z,Y),Z==="")return""}return Z}function r(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function JV(J,W){return J.search(W,t).map((V)=>r(V.path,V.score))}function EJ(){if(v)return;let J=nJ();if(K){if(!(J!==null&&J!==a)&&Date.now()-o<VV)return}let W=G,Z=Date.now();l(),v=tJ().then((V)=>{if(W!==G)return V;return v=null,YJ.emit(),a=J,o=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${e(V)}`),L(V),W===G)v=null;return l()})}async function WV(){let J=JJ(),W=j();try{return(await J.readdir(W)).map((V)=>{let Y=O.join(W,V.name),H=O.relative(W,Y);return V.isDirectory()?H+O.sep:H})}catch(Z){return L(Z),[]}}async function GV(J,W=!1){if(!J&&!W)return[];if(WJ().fileSuggestion?.type==="command"){let V={...TJ(),query:J};return(await jJ(V)).slice(0,t).map(r)}if(J===""||J==="."||J==="./"){let V=await WV();return EJ(),V.slice(0,t).map(r)}let Z=Date.now();try{let V=v!==null;EJ();let Y=J,H="."+O.sep;if(J.startsWith(H))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=K?JV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return L(V),[]}}function RV(J,W,Z,V,Y,H){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let X=V+$.length;H(X)}var KJ,K=null,v=null,YJ,jV,G=0,k=null,C,ZJ,$J,n=null,s=null,o=0,a=null,i=null,P=null,t=15,VV=5000;var YV=XJ(()=>{pJ();QJ();gJ();hJ();zJ();yJ();SJ();PJ();bJ();fJ();ZV();kJ();mJ();cJ();uJ();wJ();KJ=LJ(dJ(),1);YJ=AJ(),jV=YJ.subscribe,C=[],ZJ=[],$J=[]});
|
|
4
4
|
export{jV as ag,UV as bg,vV as cg,EJ as dg,GV as eg,RV as fg,YV as gg};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{gF as x,jF as A}from"./cli-0.1.
|
|
1
|
+
import{gF as x,jF as A}from"./cli-0.1.15-26hkdean.mjs";import{bma as z}from"./cli-0.1.15-mhbfhhf6.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var B=z(()=>{A()});
|
|
2
2
|
export{G as Qe,H as Re,B as Se};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Gq as $,Hq as k,Nq as N,Tq as C,br as V}from"./cli-0.1.
|
|
1
|
+
import{Gq as $,Hq as k,Nq as N,Tq as C,br as V}from"./cli-0.1.15-26hkdean.mjs";import{AU as f,CU as t,GU as v,QS as P,fV as D}from"./cli-0.1.15-68f0jtkh.mjs";import{EV as n,FV as i,GV as M}from"./cli-0.1.15-gxgy4enj.mjs";import{Zla as w,bma as L}from"./cli-0.1.15-mhbfhhf6.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{V();N();D();M();b=w(P(),1)});
|
|
2
2
|
export{J as Te,z as Ue};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{OV as N,PV as V,QV as D}from"./cli-0.1.
|
|
1
|
+
import{OV as N,PV as V,QV as D}from"./cli-0.1.15-asts8hm3.mjs";import{GZ as Y,LZ as _,_2 as J,a3 as $,d3 as B,y3 as x,z2 as Z}from"./cli-0.1.15-q35rzjnz.mjs";import{$4 as R,K4 as X}from"./cli-0.1.15-x69hfzmj.mjs";import{cda as Q,ida as P}from"./cli-0.1.15-6mad0r56.mjs";import{bma as W}from"./cli-0.1.15-mhbfhhf6.mjs";function E(){let z=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",F=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/99.0.0 (${process.env.CLAUDE_CODE_ENTRYPOINT??"cli"}${z}${F})`}function I(){let z=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)z.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)z.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)z.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);return`claude-code/99.0.0${z.length>0?` (${z.join(", ")})`:""}`}function w(){if(Y()==="firstParty")return`Claude-User (${N()}; +https://support.anthropic.com/)`;return`Claudio-User (${V()})`}function C(){if(B()){let F=J();if(!F?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${F.accessToken}`,"anthropic-beta":Q}}}let z=Z();if(!z)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":z}}}async function O(z,F){try{return await z()}catch(G){if(!X.isAxiosError(G))throw G;let L=G.response?.status;if(!(L===401||F?.also403Revoked&&L===403&&typeof G.response?.data==="string"&&G.response.data.includes("OAuth token has been revoked")))throw G;let M=J()?.accessToken;if(!M)throw G;return await $(M),await z()}}var H=W(()=>{R();P();x();_();D()});
|
|
2
2
|
export{E as IV,I as JV,w as KV,C as LV,O as MV,H as NV};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_2 as q,y3 as D}from"./cli-0.1.
|
|
1
|
+
import{_2 as q,y3 as D}from"./cli-0.1.15-q35rzjnz.mjs";import{hda as m,ida as z}from"./cli-0.1.15-6mad0r56.mjs";import{bma as x}from"./cli-0.1.15-mhbfhhf6.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
|
|
2
2
|
export{E as Fd,F as Gd,K as Hd,M as Id,G as Jd};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bma as j}from"./cli-0.1.
|
|
1
|
+
import{bma as j}from"./cli-0.1.15-mhbfhhf6.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
|
|
2
2
|
`:`
|
|
3
3
|
`)+z,H=D+1,D=q.indexOf(`
|
|
4
4
|
`,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{hK as R,iK as j,jK as Q,kK as x,lK as E,mK as l,nK as i,rK as c,sK as r}from"./cli-0.1.
|
|
1
|
+
import{hK as R,iK as j,jK as Q,kK as x,lK as E,mK as l,nK as i,rK as c,sK as r}from"./cli-0.1.15-26hkdean.mjs";import{qS as S,rS as t}from"./cli-0.1.15-8v8bskr0.mjs";import{AU as O,CU as W,QS as b1,WU as k,fV as K,nU as p,oU as u}from"./cli-0.1.15-68f0jtkh.mjs";import{DV as A,EV as V,FV as D,GV as w}from"./cli-0.1.15-gxgy4enj.mjs";import{HV as n}from"./cli-0.1.15-tp614m5f.mjs";import{Zla as v,bma as q}from"./cli-0.1.15-mhbfhhf6.mjs";function s(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function e(J){return(J.ctrl||J.meta)&&J.key==="y"}function G1({isActive:J,onExit:b,onCancel:$,onExitUp:N,columns:Z,passthroughCtrlKeys:H=[],initialQuery:g="",backspaceExitsOnEmpty:P=!0}){let{columns:_}=S(),Y=Z??_,[G,h]=U.useState(g),[L,B]=U.useState(g.length),m=U.useCallback((d)=>{h(d),B(d.length)},[]),z=(d)=>{if(!J)return;let F=c.fromText(G,Y,L);if(d.ctrl&&H.includes(d.key.toLowerCase()))return;if(!s(d))Q();if(!e(d))i();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),N)N();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();R(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();R(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();R(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();R(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=j();if(T.length>0){let X=F.offset,M=F.insert(T);x(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=E();if(T){let{text:X,start:M,length:I}=T,f=G.slice(0,M),a=G.slice(M+I),C=f+X+a,o=M+X.length;l(X.length),h(C),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!d1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return k((d,F,T)=>{z(new p(T.keypress))},{isActive:J}),{query:G,setQuery:m,cursorOffset:L,handleKeyDown:z}}var U,d1;var T1=q(()=>{u();K();r();t();U=v(n(),1);d1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});function V1(J){let b=y.c(17),{query:$,placeholder:N,isFocused:Z,isTerminalFocused:H,prefix:g,width:P,cursorOffset:_,borderless:Y}=J,G=N===void 0?"Search…":N,h=g===void 0?"⌕":g,L=Y===void 0?!1:Y,B=_??$.length,m=L?void 0:"round",z=Z?"suggestion":void 0,d=!Z,F=L?0:1,T=!Z,X;if(b[0]!==Z||b[1]!==H||b[2]!==B||b[3]!==G||b[4]!==$)X=Z?V(A,{children:$?H?D(A,{children:[V(W,{children:$.slice(0,B)}),V(W,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&V(W,{children:$.slice(B+1)})]}):V(W,{children:$}):H?D(A,{children:[V(W,{inverse:!0,children:G.charAt(0)}),V(W,{dimColor:!0,children:G.slice(1)})]}):V(W,{dimColor:!0,children:G})}):$?V(W,{children:$}):V(W,{children:G}),b[0]=Z,b[1]=H,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=D(W,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let I;if(b[10]!==M||b[11]!==m||b[12]!==z||b[13]!==d||b[14]!==F||b[15]!==P)I=V(O,{flexShrink:0,borderStyle:m,borderColor:z,borderDimColor:d,paddingX:F,width:P,children:M}),b[10]=M,b[11]=m,b[12]=z,b[13]=d,b[14]=F,b[15]=P,b[16]=I;else I=b[16];return I}var y;var B1=q(()=>{K();w();y=v(b1(),1)});
|
|
2
2
|
export{V1 as Hf,B1 as If,G1 as Jf,T1 as Kf};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{yea as $,zea as P}from"./cli-0.1.
|
|
1
|
+
import{yea as $,zea as P}from"./cli-0.1.15-b7f6hacc.mjs";import{Yea as X,cfa as z,efa as Y,ifa as H,wfa as Z,zfa as O}from"./cli-0.1.15-nk50qhet.mjs";import{bma as x}from"./cli-0.1.15-mhbfhhf6.mjs";function h(q){return q.replace(w,(Q,J,K)=>{if(K.length<F)return`"${J}":"[REDACTED]"`;let V=`${K.slice(0,8)}...${K.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let Q=typeof q==="string"?q:Y(q),J=h(Q);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function R(q){let Q=X(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let K=J.data,V=typeof K.message==="string"?K.message:typeof K.error==="object"&&K.error&&("message"in K.error)&&typeof K.error.message==="string"?K.error.message:void 0;if(V)return`${Q}: ${V}`}}return Q}function U(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function j(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function D(q,Q,J){if(Q)Z(Q);$("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{P();O();z();H();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
|
|
2
2
|
export{N as zd,R as Ad,U as Bd,j as Cd,D as Dd,m as Ed};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{kd as j,ld as E}from"./cli-0.1.
|
|
1
|
+
import{kd as j,ld as E}from"./cli-0.1.15-e494j2sj.mjs";import{CG as f,Wj as W,Zj as v,eG as X,gG as Y,pG as Z,rG as w,vG as _,yG as $}from"./cli-0.1.15-26hkdean.mjs";import{K9 as S,X9 as A,_5 as Q,d6 as T,daa as V,oaa as N}from"./cli-0.1.15-4892kydg.mjs";import{Yea as L,cfa as K,wfa as B,zfa as R}from"./cli-0.1.15-nk50qhet.mjs";import{bma as y}from"./cli-0.1.15-mhbfhhf6.mjs";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:S(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(V()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){Q(q)}})()}var J=null,G=null;var U=y(()=>{E();N();R();K();T();f();w();v();A()});
|
|
2
2
|
export{d as _b,P as $b,t as ac,U as bc};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{nI as Q,oI as $}from"./cli-0.1.
|
|
1
|
+
import{nI as Q,oI as $}from"./cli-0.1.15-26hkdean.mjs";import{gga as V,gha as W,hga as P,hha as E}from"./cli-0.1.15-12azgmva.mjs";import{bma as L}from"./cli-0.1.15-mhbfhhf6.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
|
|
2
2
|
export{v as Ib,C as Jb};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Yla as Z}from"./cli-0.1.
|
|
1
|
+
import{Yla as Z}from"./cli-0.1.15-acdm8b28.mjs";import{$la as Y,cma as O}from"./cli-0.1.15-mhbfhhf6.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
2
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
3
|
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
4
|
export{ye as Rla};
|