@claudiolabs/claudin 0.7.4 → 0.7.5
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/README.md +6 -5
- package/dist/chunks/AgentTool-0.7.5-xc9zjfz7.mjs +1 -0
- package/dist/chunks/App-0.7.5-acjfhz7f.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.7.5-k8xp8shh.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.7.5-b586ydqn.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.7.5-4vrmrdr7.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.7.5-0dfen1xs.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.5-ngb74vnm.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.7.5-0kerpb2w.mjs +1 -0
- package/dist/chunks/DiffDialog-0.7.5-srnpt7vg.mjs +7 -0
- package/dist/chunks/Doctor-0.7.5-4sb6exd1.mjs +1 -0
- package/dist/chunks/ExplorerDialog-0.7.5-4epxtpqm.mjs +6 -0
- package/dist/chunks/Grove-0.7.5-mq5kyerq.mjs +1 -0
- package/dist/chunks/ITermBackend-0.7.5-2gsr5w8r.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.7.5-0pyrr9nf.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.7.5-h5by8vz0.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.7.5-3w71fa3y.mjs +1 -0
- package/dist/chunks/Onboarding-0.7.5-b7vhm3se.mjs +1 -0
- package/dist/chunks/ProviderManager-0.7.5-aerbfw66.mjs +1 -0
- package/dist/chunks/REPL-0.7.5-vtg3m5vj.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.7.5-y1z299bf.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.7.5-j019aekp.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.7.5-svv1q02p.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.7.5-58j0azyf.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.7.5-bc8j445x.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.7.5-cjf1ngxx.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.7.5-ebcazye5.mjs +1 -0
- package/dist/chunks/TrustDialog-0.7.5-152ydvn7.mjs +1 -0
- package/dist/chunks/activeProvider-0.7.5-0kfzwxhb.mjs +1 -0
- package/dist/chunks/add-dir-0.7.5-35b90wc9.mjs +1 -0
- package/dist/chunks/agentTypes-0.7.5-wrskj5tn.mjs +1 -0
- package/dist/chunks/agents-0.7.5-4qcppggm.mjs +110 -0
- package/dist/chunks/agents-0.7.5-xq7kprd6.mjs +3 -0
- package/dist/chunks/api-0.7.5-fcbv21bw.mjs +1 -0
- package/dist/chunks/asciicast-0.7.5-d28172s4.mjs +1 -0
- package/dist/chunks/assistant-0.7.5-f95dwf9p.mjs +1 -0
- package/dist/chunks/auth-0.7.5-10gj2nsp.mjs +1 -0
- package/dist/chunks/auth-0.7.5-gdt0tbr7.mjs +1 -0
- package/dist/chunks/autoMode-0.7.5-rh9k8nn2.mjs +48 -0
- package/dist/chunks/autoUpdater-0.7.5-tfhznsk1.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.7.5-sj02xapc.mjs +1 -0
- package/dist/chunks/branch-0.7.5-5j5akkrn.mjs +4 -0
- package/dist/chunks/bridge-0.7.5-8y0xqq28.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.7.5-nme7hkby.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.7.5-py8rybz2.mjs +1 -0
- package/dist/chunks/bridgeMain-0.7.5-5kat8nm9.mjs +88 -0
- package/dist/chunks/bridgePointer-0.7.5-5wgvs16s.mjs +1 -0
- package/dist/chunks/btw-0.7.5-yawwzr37.mjs +1 -0
- package/dist/chunks/buddy-0.7.5-qmp34ccf.mjs +3 -0
- package/dist/chunks/cacache-0.7.5-7844wbd2.mjs +1 -0
- package/dist/chunks/cache-probe-0.7.5-8jthv18c.mjs +21 -0
- package/dist/chunks/cacheStats-0.7.5-77ds68g1.mjs +4 -0
- package/dist/chunks/caches-0.7.5-qsf7gskj.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.7.5-98s74wma.mjs +1 -0
- package/dist/chunks/claudemd-0.7.5-yemjch22.mjs +1 -0
- package/dist/chunks/clear-0.7.5-m1tdyhpp.mjs +1 -0
- package/dist/chunks/clearTerminal-0.7.5-z4zv01xp.mjs +1 -0
- package/dist/chunks/cli-0.7.5-0bsdv5z9.mjs +2 -0
- package/dist/chunks/cli-0.7.5-0wyg5tbv.mjs +2 -0
- package/dist/chunks/cli-0.7.5-10stvena.mjs +2 -0
- package/dist/chunks/cli-0.7.5-1130jhj6.mjs +5469 -0
- package/dist/chunks/cli-0.7.5-137tt9mn.mjs +42 -0
- package/dist/chunks/cli-0.7.5-1raty5m9.mjs +2 -0
- package/dist/chunks/cli-0.7.5-1s8z73wz.mjs +2 -0
- package/dist/chunks/cli-0.7.5-1tw92v7f.mjs +17 -0
- package/dist/chunks/cli-0.7.5-1w5f2dfy.mjs +2 -0
- package/dist/chunks/cli-0.7.5-1z5n1s3z.mjs +2 -0
- package/dist/chunks/cli-0.7.5-20s4s7eq.mjs +2 -0
- package/dist/chunks/cli-0.7.5-2czfx8da.mjs +2 -0
- package/dist/chunks/cli-0.7.5-2f55fq7s.mjs +2 -0
- package/dist/chunks/cli-0.7.5-2kqm2cm6.mjs +3 -0
- package/dist/chunks/cli-0.7.5-3e9fty2f.mjs +2 -0
- package/dist/chunks/cli-0.7.5-3mhw32x1.mjs +2 -0
- package/dist/chunks/cli-0.7.5-40m9mj91.mjs +133 -0
- package/dist/chunks/cli-0.7.5-49b2vx6q.mjs +2 -0
- package/dist/chunks/cli-0.7.5-49f39qnb.mjs +2 -0
- package/dist/chunks/cli-0.7.5-4mvg3dke.mjs +59 -0
- package/dist/chunks/cli-0.7.5-4pc187my.mjs +2 -0
- package/dist/chunks/cli-0.7.5-4pekv38x.mjs +2 -0
- package/dist/chunks/cli-0.7.5-4s3wj4db.mjs +2 -0
- package/dist/chunks/cli-0.7.5-510b39kd.mjs +3 -0
- package/dist/chunks/cli-0.7.5-529cdx0d.mjs +2 -0
- package/dist/chunks/cli-0.7.5-56navtps.mjs +3 -0
- package/dist/chunks/cli-0.7.5-57cepgzg.mjs +4 -0
- package/dist/chunks/cli-0.7.5-5a315ky8.mjs +17 -0
- package/dist/chunks/cli-0.7.5-5nkj9199.mjs +2 -0
- package/dist/chunks/cli-0.7.5-5pg00eg2.mjs +15 -0
- package/dist/chunks/cli-0.7.5-5pxnxmzj.mjs +2 -0
- package/dist/chunks/cli-0.7.5-5r8ygwxv.mjs +3 -0
- package/dist/chunks/cli-0.7.5-5w2rj0hg.mjs +3 -0
- package/dist/chunks/cli-0.7.5-5z67f2be.mjs +18 -0
- package/dist/chunks/cli-0.7.5-60age1v3.mjs +3 -0
- package/dist/chunks/cli-0.7.5-614rpqd6.mjs +2 -0
- package/dist/chunks/cli-0.7.5-6g85h6sa.mjs +34 -0
- package/dist/chunks/cli-0.7.5-6mf5dxyw.mjs +2 -0
- package/dist/chunks/cli-0.7.5-6mmfvszc.mjs +2 -0
- package/dist/chunks/cli-0.7.5-6s7zhdt4.mjs +2 -0
- package/dist/chunks/cli-0.7.5-6v0bgn02.mjs +2 -0
- package/dist/chunks/cli-0.7.5-6wvc1yjw.mjs +2 -0
- package/dist/chunks/cli-0.7.5-7bd3ngaj.mjs +2 -0
- package/dist/chunks/cli-0.7.5-7ezb8apr.mjs +2 -0
- package/dist/chunks/cli-0.7.5-7gkjs4wv.mjs +2 -0
- package/dist/chunks/cli-0.7.5-7h3tq3wc.mjs +6 -0
- package/dist/chunks/cli-0.7.5-7zd2bp43.mjs +45 -0
- package/dist/chunks/cli-0.7.5-80je81v4.mjs +2 -0
- package/dist/chunks/cli-0.7.5-81aasr9m.mjs +2 -0
- package/dist/chunks/cli-0.7.5-84ksc40j.mjs +25 -0
- package/dist/chunks/cli-0.7.5-85hyf5qe.mjs +15 -0
- package/dist/chunks/cli-0.7.5-90k5jpxh.mjs +2 -0
- package/dist/chunks/cli-0.7.5-92scwwjf.mjs +24 -0
- package/dist/chunks/cli-0.7.5-975by9n8.mjs +3 -0
- package/dist/chunks/cli-0.7.5-987zbyps.mjs +2 -0
- package/dist/chunks/cli-0.7.5-99wdc670.mjs +24 -0
- package/dist/chunks/cli-0.7.5-9na53kvh.mjs +2 -0
- package/dist/chunks/cli-0.7.5-9pd9feb4.mjs +5 -0
- package/dist/chunks/cli-0.7.5-9v3pjabj.mjs +133 -0
- package/dist/chunks/cli-0.7.5-9y8fgxfa.mjs +2 -0
- package/dist/chunks/cli-0.7.5-a36ctp71.mjs +6 -0
- package/dist/chunks/cli-0.7.5-acfkszsn.mjs +8 -0
- package/dist/chunks/cli-0.7.5-akxpdesn.mjs +2 -0
- package/dist/chunks/cli-0.7.5-aphrc23w.mjs +2 -0
- package/dist/chunks/cli-0.7.5-apycan2y.mjs +2 -0
- package/dist/chunks/cli-0.7.5-aq0c8awk.mjs +2 -0
- package/dist/chunks/cli-0.7.5-atzfkz67.mjs +2 -0
- package/dist/chunks/cli-0.7.5-az0dwafe.mjs +2 -0
- package/dist/chunks/cli-0.7.5-b8wc44ze.mjs +2 -0
- package/dist/chunks/cli-0.7.5-ba83wc9t.mjs +2 -0
- package/dist/chunks/cli-0.7.5-be0fn3rp.mjs +2 -0
- package/dist/chunks/cli-0.7.5-bkep7yw1.mjs +2 -0
- package/dist/chunks/cli-0.7.5-bzrmp2wf.mjs +2 -0
- package/dist/chunks/cli-0.7.5-c0qhtrbh.mjs +2 -0
- package/dist/chunks/cli-0.7.5-c3w496ap.mjs +3 -0
- package/dist/chunks/cli-0.7.5-c6xa3se4.mjs +2 -0
- package/dist/chunks/cli-0.7.5-ca0xearm.mjs +2 -0
- package/dist/chunks/cli-0.7.5-cbkmf04v.mjs +2 -0
- package/dist/chunks/cli-0.7.5-cd6cs7q9.mjs +2 -0
- package/dist/chunks/cli-0.7.5-crbzqw8b.mjs +20 -0
- package/dist/chunks/cli-0.7.5-d8kenjfw.mjs +2 -0
- package/dist/chunks/cli-0.7.5-dc34hzge.mjs +12 -0
- package/dist/chunks/cli-0.7.5-ddpksb1g.mjs +2 -0
- package/dist/chunks/cli-0.7.5-dp4tresm.mjs +2 -0
- package/dist/chunks/cli-0.7.5-dx6zs9qf.mjs +2 -0
- package/dist/chunks/cli-0.7.5-dzyyype0.mjs +2 -0
- package/dist/chunks/cli-0.7.5-e7mb7d0a.mjs +10 -0
- package/dist/chunks/cli-0.7.5-e8m1fhax.mjs +2 -0
- package/dist/chunks/cli-0.7.5-eeb6rjs0.mjs +2 -0
- package/dist/chunks/cli-0.7.5-ek1sq6b5.mjs +2 -0
- package/dist/chunks/cli-0.7.5-f5jj9gaq.mjs +2 -0
- package/dist/chunks/cli-0.7.5-f8j1xqbv.mjs +2 -0
- package/dist/chunks/cli-0.7.5-f9jr5v5w.mjs +5 -0
- package/dist/chunks/cli-0.7.5-f9v35634.mjs +2 -0
- package/dist/chunks/cli-0.7.5-fjd3yr3y.mjs +2 -0
- package/dist/chunks/cli-0.7.5-fsr31z4k.mjs +12 -0
- package/dist/chunks/cli-0.7.5-ftngeevg.mjs +2 -0
- package/dist/chunks/cli-0.7.5-fzamc565.mjs +3 -0
- package/dist/chunks/cli-0.7.5-fzktcx0s.mjs +4 -0
- package/dist/chunks/cli-0.7.5-fzqampqh.mjs +4 -0
- package/dist/chunks/cli-0.7.5-g3ejs520.mjs +2 -0
- package/dist/chunks/cli-0.7.5-gb57bm0v.mjs +2 -0
- package/dist/chunks/cli-0.7.5-gbz8thht.mjs +50 -0
- package/dist/chunks/cli-0.7.5-gd8wcttv.mjs +3 -0
- package/dist/chunks/cli-0.7.5-gdadd4x4.mjs +2 -0
- package/dist/chunks/cli-0.7.5-gfq85y17.mjs +2 -0
- package/dist/chunks/cli-0.7.5-gh00zb08.mjs +18 -0
- package/dist/chunks/cli-0.7.5-ghq2axmf.mjs +194 -0
- package/dist/chunks/cli-0.7.5-gmew5n1p.mjs +2 -0
- package/dist/chunks/cli-0.7.5-gpbvs2kz.mjs +2 -0
- package/dist/chunks/cli-0.7.5-h3p8qw3f.mjs +2 -0
- package/dist/chunks/cli-0.7.5-h6e17t7j.mjs +2 -0
- package/dist/chunks/cli-0.7.5-h9s62ky5.mjs +2 -0
- package/dist/chunks/cli-0.7.5-hb39f7nj.mjs +2 -0
- package/dist/chunks/cli-0.7.5-hbgzm4wt.mjs +9 -0
- package/dist/chunks/cli-0.7.5-hce2yd4f.mjs +2 -0
- package/dist/chunks/cli-0.7.5-hcxagyjb.mjs +2 -0
- package/dist/chunks/cli-0.7.5-hd1mkmqa.mjs +2 -0
- package/dist/chunks/cli-0.7.5-hfej6gk7.mjs +2 -0
- package/dist/chunks/cli-0.7.5-hfvrp8qk.mjs +2 -0
- package/dist/chunks/cli-0.7.5-hh8ynv80.mjs +2 -0
- package/dist/chunks/cli-0.7.5-hp8g8gw0.mjs +2 -0
- package/dist/chunks/cli-0.7.5-htnhe6mt.mjs +2 -0
- package/dist/chunks/cli-0.7.5-hxk7g9fk.mjs +2 -0
- package/dist/chunks/cli-0.7.5-hyyd4eh8.mjs +2 -0
- package/dist/chunks/cli-0.7.5-j27qn7ks.mjs +2 -0
- package/dist/chunks/cli-0.7.5-jc93grn1.mjs +2 -0
- package/dist/chunks/cli-0.7.5-jwcpd0fz.mjs +2 -0
- package/dist/chunks/cli-0.7.5-jx9x8eh7.mjs +2 -0
- package/dist/chunks/cli-0.7.5-k2nqj3ry.mjs +39 -0
- package/dist/chunks/cli-0.7.5-kj54k6vh.mjs +4 -0
- package/dist/chunks/cli-0.7.5-krbmx93g.mjs +2 -0
- package/dist/chunks/cli-0.7.5-kzmgwzjq.mjs +7 -0
- package/dist/chunks/cli-0.7.5-m8cf1p72.mjs +2 -0
- package/dist/chunks/cli-0.7.5-medd7tha.mjs +2 -0
- package/dist/chunks/cli-0.7.5-mftmyrxg.mjs +2 -0
- package/dist/chunks/cli-0.7.5-mhdkfw8w.mjs +2 -0
- package/dist/chunks/cli-0.7.5-mk1nsvev.mjs +2 -0
- package/dist/chunks/cli-0.7.5-mkypasee.mjs +3 -0
- package/dist/chunks/cli-0.7.5-mtaq950q.mjs +2 -0
- package/dist/chunks/cli-0.7.5-myvw92ta.mjs +2 -0
- package/dist/chunks/cli-0.7.5-n8nsc1fy.mjs +4 -0
- package/dist/chunks/cli-0.7.5-p72rah24.mjs +2 -0
- package/dist/chunks/cli-0.7.5-pd9x4y8x.mjs +2 -0
- package/dist/chunks/cli-0.7.5-pm9grnq1.mjs +67 -0
- package/dist/chunks/cli-0.7.5-pmsw8q6q.mjs +2 -0
- package/dist/chunks/cli-0.7.5-pxj8y53k.mjs +2 -0
- package/dist/chunks/cli-0.7.5-q4nf1yjd.mjs +2 -0
- package/dist/chunks/cli-0.7.5-qpqfdmsk.mjs +4 -0
- package/dist/chunks/cli-0.7.5-qxdvdw89.mjs +3 -0
- package/dist/chunks/cli-0.7.5-qzhygzzn.mjs +5 -0
- package/dist/chunks/cli-0.7.5-rahmqve7.mjs +2 -0
- package/dist/chunks/cli-0.7.5-rbv538zg.mjs +2 -0
- package/dist/chunks/cli-0.7.5-rc47zyrc.mjs +2 -0
- package/dist/chunks/cli-0.7.5-rg2nrraj.mjs +2 -0
- package/dist/chunks/cli-0.7.5-rpnr09s5.mjs +2 -0
- package/dist/chunks/cli-0.7.5-rqvar6g7.mjs +16 -0
- package/dist/chunks/cli-0.7.5-s65rbrvj.mjs +58 -0
- package/dist/chunks/cli-0.7.5-sq0v922e.mjs +6 -0
- package/dist/chunks/cli-0.7.5-t77nd6kj.mjs +2 -0
- package/dist/chunks/cli-0.7.5-tbrfr6hj.mjs +2 -0
- package/dist/chunks/cli-0.7.5-tqwr1q73.mjs +4 -0
- package/dist/chunks/cli-0.7.5-tzc3pn7w.mjs +2 -0
- package/dist/chunks/cli-0.7.5-v85dx0nq.mjs +2 -0
- package/dist/chunks/cli-0.7.5-v8apq7df.mjs +15 -0
- package/dist/chunks/cli-0.7.5-vhkgs6h9.mjs +2 -0
- package/dist/chunks/cli-0.7.5-vktpnz25.mjs +2 -0
- package/dist/chunks/cli-0.7.5-vmr9xqzs.mjs +6 -0
- package/dist/chunks/cli-0.7.5-vzssapx0.mjs +2 -0
- package/dist/chunks/cli-0.7.5-w2vyrb4j.mjs +18 -0
- package/dist/chunks/cli-0.7.5-wd0yxrvg.mjs +2 -0
- package/dist/chunks/cli-0.7.5-wj3w13az.mjs +2 -0
- package/dist/chunks/cli-0.7.5-wjpv5xmb.mjs +4 -0
- package/dist/chunks/cli-0.7.5-wpgtmkvc.mjs +2 -0
- package/dist/chunks/cli-0.7.5-x2z686xj.mjs +25 -0
- package/dist/chunks/cli-0.7.5-xbqxjykr.mjs +2 -0
- package/dist/chunks/cli-0.7.5-xfxxbwbm.mjs +12 -0
- package/dist/chunks/cli-0.7.5-xg32zg8k.mjs +24 -0
- package/dist/chunks/cli-0.7.5-xgdba5yp.mjs +2 -0
- package/dist/chunks/cli-0.7.5-xt0mqg4f.mjs +2 -0
- package/dist/chunks/cli-0.7.5-xv3vs7j9.mjs +2 -0
- package/dist/chunks/cli-0.7.5-xv6ra0kw.mjs +2 -0
- package/dist/chunks/cli-0.7.5-xvveqsx1.mjs +2 -0
- package/dist/chunks/cli-0.7.5-xwzejhw4.mjs +3 -0
- package/dist/chunks/cli-0.7.5-y3yqkc5p.mjs +12 -0
- package/dist/chunks/cli-0.7.5-y58r6dq0.mjs +2 -0
- package/dist/chunks/cli-0.7.5-y7ehmef8.mjs +1 -0
- package/dist/chunks/cli-0.7.5-ydfgf7qv.mjs +21 -0
- package/dist/chunks/cli-0.7.5-yjwnjtvn.mjs +2 -0
- package/dist/chunks/cli-0.7.5-yr70t57x.mjs +2 -0
- package/dist/chunks/cli-0.7.5-z2yexv2e.mjs +2 -0
- package/dist/chunks/cli-0.7.5-z3dzj7v3.mjs +2 -0
- package/dist/chunks/cli-0.7.5-z40jp8ew.mjs +4 -0
- package/dist/chunks/cli-0.7.5-zde1m2ej.mjs +4 -0
- package/dist/chunks/cli-0.7.5-zdq0vv92.mjs +2 -0
- package/dist/chunks/cli-0.7.5-zftjc44p.mjs +2 -0
- package/dist/chunks/cli-0.7.5-zj0xcj80.mjs +2 -0
- package/dist/chunks/cli-0.7.5-zpmehtjz.mjs +2 -0
- package/dist/chunks/cli-0.7.5-zsmx06gy.mjs +2 -0
- package/dist/chunks/client-0.7.5-w36k0xa4.mjs +1 -0
- package/dist/chunks/color-0.7.5-6q028b6j.mjs +1 -0
- package/dist/chunks/compact-0.7.5-brw7r66h.mjs +3 -0
- package/dist/chunks/config-0.7.5-23y0vmxv.mjs +1 -0
- package/dist/chunks/config-0.7.5-scfm2ghv.mjs +1 -0
- package/dist/chunks/constants-0.7.5-gtkzq93a.mjs +1 -0
- package/dist/chunks/context-0.7.5-5sr5p20h.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.7.5-478h1wv5.mjs +1 -0
- package/dist/chunks/conversation-0.7.5-qmek5yn5.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.7.5-hbgm40tm.mjs +1 -0
- package/dist/chunks/copy-0.7.5-1j6r3503.mjs +9 -0
- package/dist/chunks/cost-0.7.5-qmhkw8cf.mjs +1 -0
- package/dist/chunks/createSSHSession-0.7.5-km7csf59.mjs +1 -0
- package/dist/chunks/createSession-0.7.5-4ry726v4.mjs +1 -0
- package/dist/chunks/debug-0.7.5-f7ay5633.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.7.5-fahgw2xf.mjs +1446 -0
- package/dist/chunks/desktop-0.7.5-177ca2xz.mjs +1 -0
- package/dist/chunks/detectRepository-0.7.5-9tagnw7m.mjs +1 -0
- package/dist/chunks/detection-0.7.5-g5p116dy.mjs +1 -0
- package/dist/chunks/diff-0.7.5-gwzyav0v.mjs +1 -0
- package/dist/chunks/doctor-0.7.5-eqrnfehr.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.7.5-wtjp576r.mjs +1 -0
- package/dist/chunks/earlyInput-0.7.5-cbbxamm6.mjs +1 -0
- package/dist/chunks/effort-0.7.5-h1m1pcsc.mjs +10 -0
- package/dist/chunks/engine-0.7.5-3s2wmkmq.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-0.7.5-6kr19meq.mjs +1 -0
- package/dist/chunks/envUtils-0.7.5-gna3tn15.mjs +1 -0
- package/dist/chunks/environmentSelection-0.7.5-ax80y2br.mjs +1 -0
- package/dist/chunks/environments-0.7.5-vzttb5rv.mjs +1 -0
- package/dist/chunks/errors-0.7.5-39sxdk37.mjs +1 -0
- package/dist/chunks/exampleCommands-0.7.5-xsrm4x8y.mjs +1 -0
- package/dist/chunks/exit-0.7.5-bkbd5npx.mjs +1 -0
- package/dist/chunks/explorer-0.7.5-19gvmqgr.mjs +1 -0
- package/dist/chunks/export-0.7.5-34j4n9kh.mjs +2 -0
- package/dist/chunks/extra-usage-0.7.5-b97sj0ap.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.7.5-xd1mr1j5.mjs +1 -0
- package/dist/chunks/fast-0.7.5-0wqk7a9x.mjs +1 -0
- package/dist/chunks/feedback-0.7.5-vtbcry18.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.7.5-xqazh0ye.mjs +1 -0
- package/dist/chunks/git-0.7.5-e2235c1t.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.7.5-rv73mazg.mjs +1 -0
- package/dist/chunks/goal-0.7.5-cqb7e1pf.mjs +4 -0
- package/dist/chunks/grove-0.7.5-qsvaz9x8.mjs +1 -0
- package/dist/chunks/growthbook-0.7.5-3qfr8h94.mjs +1 -0
- package/dist/chunks/headless-0.7.5-wbtxesec.mjs +2 -0
- package/dist/chunks/heapdump-0.7.5-nc48tbvw.mjs +6 -0
- package/dist/chunks/help-0.7.5-6jm9nrcy.mjs +1 -0
- package/dist/chunks/hookChains-0.7.5-khy46vaw.mjs +3 -0
- package/dist/chunks/hooks-0.7.5-167mv9th.mjs +1 -0
- package/dist/chunks/hooks-0.7.5-nx4910ga.mjs +79 -0
- package/dist/chunks/ide-0.7.5-n6hvszan.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.7.5-ndmd493b.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.7.5-1nbx425g.mjs +1 -0
- package/dist/chunks/index-0.7.5-5j4305xq.mjs +1 -0
- package/dist/chunks/index-0.7.5-63xhx5j4.mjs +1 -0
- package/dist/chunks/index-0.7.5-7e5rqqh4.mjs +9 -0
- package/dist/chunks/index-0.7.5-a12krakj.mjs +2 -0
- package/dist/chunks/index-0.7.5-bsq6e16w.mjs +1 -0
- package/dist/chunks/index-0.7.5-caethvnv.mjs +1 -0
- package/dist/chunks/index-0.7.5-cx1vr981.mjs +17 -0
- package/dist/chunks/index-0.7.5-dcd3w04q.mjs +1 -0
- package/dist/chunks/index-0.7.5-ekrwk3jz.mjs +9 -0
- package/dist/chunks/index-0.7.5-h4cbsc0a.mjs +2 -0
- package/dist/chunks/index-0.7.5-hvzcp0kn.mjs +5 -0
- package/dist/chunks/index-0.7.5-kh3ebxx0.mjs +1 -0
- package/dist/chunks/index-0.7.5-kzhpap3n.mjs +1 -0
- package/dist/chunks/index-0.7.5-njd4yt57.mjs +1 -0
- package/dist/chunks/index-0.7.5-r1ny63xd.mjs +1 -0
- package/dist/chunks/index-0.7.5-ry24w7t2.mjs +1 -0
- package/dist/chunks/index-0.7.5-syzp921n.mjs +30 -0
- package/dist/chunks/index-0.7.5-t7jx62n3.mjs +1 -0
- package/dist/chunks/index-0.7.5-wj36e6k0.mjs +1 -0
- package/dist/chunks/index-0.7.5-yv1dtnpt.mjs +1 -0
- package/dist/chunks/index-0.7.5-yzrfjy23.mjs +1 -0
- package/dist/chunks/index-0.7.5-zfker4t5.mjs +1 -0
- package/dist/chunks/index-0.7.5-zxrxsyxj.mjs +1 -0
- package/dist/chunks/init-0.7.5-hh6v113j.mjs +1 -0
- package/dist/chunks/initReplBridge-0.7.5-c1za6hde.mjs +1 -0
- package/dist/chunks/ink-0.7.5-56yev9n3.mjs +1 -0
- package/dist/chunks/insights-0.7.5-qz9bb1ry.mjs +870 -0
- package/dist/chunks/install-0.7.5-sbxfgz0w.mjs +1 -0
- package/dist/chunks/install-github-app-0.7.5-7txny4wr.mjs +149 -0
- package/dist/chunks/install-slack-app-0.7.5-69pj36yh.mjs +1 -0
- package/dist/chunks/instrumentation-0.7.5-q9v6ptmg.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.7.5-40q6avjg.mjs +1 -0
- package/dist/chunks/keybindings-0.7.5-wj2ms9t5.mjs +2 -0
- package/dist/chunks/knowledge-0.7.5-t1ay4xsf.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.7.5-2sn56g0f.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.7.5-fw6g0k2f.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.7.5-32j9xrwe.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.7.5-wex6715a.mjs +1 -0
- package/dist/chunks/log-0.7.5-ksrcjwgt.mjs +1 -0
- package/dist/chunks/main-0.7.5-y3x6nz9x.mjs +1 -0
- package/dist/chunks/managedEnv-0.7.5-8t44hgy8.mjs +1 -0
- package/dist/chunks/mcp-0.7.5-60fgv34x.mjs +1 -0
- package/dist/chunks/mcp-0.7.5-mbfzrcm8.mjs +4 -0
- package/dist/chunks/mcp-0.7.5-rkaypthk.mjs +17 -0
- package/dist/chunks/mcpb-0.7.5-v66xmybr.mjs +1 -0
- package/dist/chunks/memory-0.7.5-fvpt844c.mjs +3 -0
- package/dist/chunks/model-0.7.5-tsr4h9g8.mjs +2 -0
- package/dist/chunks/model-0.7.5-z5fcqt5b.mjs +1 -0
- package/dist/chunks/node-0.7.5-ym7zwnx3.mjs +12 -0
- package/dist/chunks/oauth-0.7.5-pp4rkjfe.mjs +1 -0
- package/dist/chunks/openaiShim-0.7.5-vtkg5q0g.mjs +14 -0
- package/dist/chunks/output-style-0.7.5-13fnqr6c.mjs +1 -0
- package/dist/chunks/package-ZZWOLTXM-0.7.5-16qd12nt.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.7.5-s8jq90n0.mjs +1 -0
- package/dist/chunks/parser-0.7.5-eefzgrd7.mjs +1 -0
- package/dist/chunks/passes-0.7.5-4axt111x.mjs +1 -0
- package/dist/chunks/permissions-0.7.5-s0m3z1fe.mjs +3 -0
- package/dist/chunks/permissions-0.7.5-xdxqnd7w.mjs +1 -0
- package/dist/chunks/plan-0.7.5-wwgtg3j2.mjs +1 -0
- package/dist/chunks/plist-0.7.5-sqqsbn3c.mjs +1 -0
- package/dist/chunks/plugin-0.7.5-1d2gra71.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.7.5-5z80320b.mjs +1 -0
- package/dist/chunks/plugins-0.7.5-0a9ytst2.mjs +9 -0
- package/dist/chunks/preActionHook-0.7.5-pe8h6p21.mjs +2 -0
- package/dist/chunks/print-0.7.5-9ejsfw3k.mjs +57 -0
- package/dist/chunks/privacy-settings-0.7.5-d9ptjk2d.mjs +1 -0
- package/dist/chunks/process-0.7.5-fgwhv8bw.mjs +1 -0
- package/dist/chunks/processBashCommand-0.7.5-c619z7fd.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.7.5-75p45f0t.mjs +9 -0
- package/dist/chunks/prompt-0.7.5-51c6hnqr.mjs +1 -0
- package/dist/chunks/prompt-0.7.5-cy0v1vqr.mjs +1 -0
- package/dist/chunks/prompts-0.7.5-wmn5bdx5.mjs +1 -0
- package/dist/chunks/protocolHandler-0.7.5-eeqecgkp.mjs +13 -0
- package/dist/chunks/provider-0.7.5-y0gpvctq.mjs +2 -0
- package/dist/chunks/providerProfiles-0.7.5-jrmjbp5b.mjs +1 -0
- package/dist/chunks/providerValidation-0.7.5-jgdgbk4q.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.7.5-29f89kh1.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.7.5-c36hzdav.mjs +34 -0
- package/dist/chunks/registry-0.7.5-whsh7x53.mjs +1 -0
- package/dist/chunks/release-notes-0.7.5-ptvapnr0.mjs +5 -0
- package/dist/chunks/reload-plugins-0.7.5-ka0e8hq5.mjs +2 -0
- package/dist/chunks/remote-env-0.7.5-qjxje9ma.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.7.5-k3f68b7h.mjs +1 -0
- package/dist/chunks/remoteSession-0.7.5-rape7yd4.mjs +1 -0
- package/dist/chunks/rename-0.7.5-ktcd7rtq.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.7.5-phh34y8h.mjs +1 -0
- package/dist/chunks/replLauncher-0.7.5-sq476c2a.mjs +1 -0
- package/dist/chunks/resume-0.7.5-6tvrgh8j.mjs +2 -0
- package/dist/chunks/rewind-0.7.5-vd47v5rv.mjs +1 -0
- package/dist/chunks/rootOptions-0.7.5-wqt2k4rc.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.7.5-ky898f3m.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.7.5-7hkar7r5.mjs +1 -0
- package/dist/chunks/session-0.7.5-hkxz3wye.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.7.5-y04m8ab9.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.7.5-f5rgs672.mjs +1 -0
- package/dist/chunks/sessionStorage-0.7.5-18q303bk.mjs +1 -0
- package/dist/chunks/settings-0.7.5-4hqnkkc8.mjs +1 -0
- package/dist/chunks/setup-0.7.5-y5xxwxbd.mjs +5 -0
- package/dist/chunks/sinks-0.7.5-cvxvp35v.mjs +1 -0
- package/dist/chunks/skills-0.7.5-kwgf9qjq.mjs +1 -0
- package/dist/chunks/startupProfiler-0.7.5-za7tk2tk.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.7.5-czmgq418.mjs +1 -0
- package/dist/chunks/state-0.7.5-ak36peq3.mjs +1 -0
- package/dist/chunks/stats-0.7.5-er3ye8yh.mjs +6 -0
- package/dist/chunks/status-0.7.5-c5cjb8e4.mjs +1 -0
- package/dist/chunks/stickers-0.7.5-j3k2cxdh.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.7.5-c9cn3hdx.mjs +1 -0
- package/dist/chunks/tasks-0.7.5-63j9r8xa.mjs +1 -0
- package/dist/chunks/teamHelpers-0.7.5-m7f40cd8.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.7.5-p9m6xw5v.mjs +1 -0
- package/dist/chunks/teleport-0.7.5-eznfwa79.mjs +1 -0
- package/dist/chunks/terminalSetup-0.7.5-jh6gn62d.mjs +1 -0
- package/dist/chunks/theme-0.7.5-ybd8jwyk.mjs +1 -0
- package/dist/chunks/thinkback-0.7.5-n7szmggb.mjs +1 -0
- package/dist/chunks/thinkback-play-0.7.5-7zmp1768.mjs +1 -0
- package/dist/chunks/toolPool-0.7.5-3086ep19.mjs +1 -0
- package/dist/chunks/toolSearch-0.7.5-ksvb5jn8.mjs +1 -0
- package/dist/chunks/tools-0.7.5-a8e705rj.mjs +1 -0
- package/dist/chunks/trustedDevice-0.7.5-skv46tba.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.7.5-bv92xw4e.mjs +69 -0
- package/dist/chunks/types-0.7.5-63qbfwst.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.7.5-8skwm5gw.mjs +4 -0
- package/dist/chunks/update-0.7.5-g0qcx3kr.mjs +86 -0
- package/dist/chunks/upgrade-0.7.5-gka5mmvk.mjs +1 -0
- package/dist/chunks/upload-0.7.5-6kw8akzx.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.7.5-97n9j2vs.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.7.5-2gqe7mr0.mjs +1 -0
- package/dist/chunks/usage-0.7.5-36hanm9f.mjs +1 -0
- package/dist/chunks/util-0.7.5-90a4jn87.mjs +1 -0
- package/dist/chunks/utils-0.7.5-8rhszmzb.mjs +1 -0
- package/dist/chunks/vim-0.7.5-nptszgna.mjs +1 -0
- package/dist/chunks/watcher-0.7.5-pqe6cg42.mjs +1 -0
- package/dist/chunks/wiki-0.7.5-zngdktge.mjs +132 -0
- package/dist/chunks/workflows-0.7.5-efk35dv0.mjs +1 -0
- package/dist/chunks/worktree-0.7.5-ptj9226d.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.7.5-whaev58q.mjs +1 -0
- package/dist/chunks/wrapper-0.7.5-dfb28jc5.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +3 -11
- package/dist/chunks/AgentTool-0.7.4-n3w81nr0.mjs +0 -1
- package/dist/chunks/App-0.7.4-f82nhj4b.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.7.4-27gdpx41.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.7.4-dfwr2199.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.7.4-y9fxqce2.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.7.4-vqmkfdv5.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.4-yya4exxc.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.7.4-pkmm3hrc.mjs +0 -1
- package/dist/chunks/DiffDialog-0.7.4-c524vxrv.mjs +0 -7
- package/dist/chunks/Doctor-0.7.4-pa6ms0qn.mjs +0 -1
- package/dist/chunks/ExplorerDialog-0.7.4-bmp67p2b.mjs +0 -6
- package/dist/chunks/Grove-0.7.4-9acw1m3r.mjs +0 -1
- package/dist/chunks/ITermBackend-0.7.4-dy75k5qx.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.7.4-8ra8bj22.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.7.4-n4h644pz.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.7.4-cnays88h.mjs +0 -1
- package/dist/chunks/Onboarding-0.7.4-fqvxpdtd.mjs +0 -1
- package/dist/chunks/ProviderManager-0.7.4-e21vv07m.mjs +0 -1
- package/dist/chunks/REPL-0.7.4-n38hda18.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.7.4-f3xp8e01.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.7.4-39wyejgx.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.7.4-6373v72h.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.7.4-y6km4665.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.7.4-wh96svjn.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.7.4-grwq5d7n.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.7.4-k0kt2bxp.mjs +0 -1
- package/dist/chunks/TrustDialog-0.7.4-xhgj5jat.mjs +0 -1
- package/dist/chunks/activeProvider-0.7.4-vzfmpvjc.mjs +0 -1
- package/dist/chunks/add-dir-0.7.4-mfwwzt70.mjs +0 -1
- package/dist/chunks/agentTypes-0.7.4-9fgk10yx.mjs +0 -1
- package/dist/chunks/agents-0.7.4-9fxas1pf.mjs +0 -110
- package/dist/chunks/agents-0.7.4-eart70kj.mjs +0 -3
- package/dist/chunks/api-0.7.4-eqsmhts7.mjs +0 -1
- package/dist/chunks/asciicast-0.7.4-900ptry2.mjs +0 -1
- package/dist/chunks/assistant-0.7.4-qp02hgvg.mjs +0 -1
- package/dist/chunks/auth-0.7.4-ccf1t8td.mjs +0 -1
- package/dist/chunks/auth-0.7.4-tzph01c0.mjs +0 -1
- package/dist/chunks/autoMode-0.7.4-5m9bs574.mjs +0 -48
- package/dist/chunks/autoUpdater-0.7.4-s4krk2je.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.7.4-zqytsqmx.mjs +0 -1
- package/dist/chunks/branch-0.7.4-29eypmvg.mjs +0 -4
- package/dist/chunks/bridge-0.7.4-45nq3nxm.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.7.4-fb2nwbxq.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.7.4-rreg4xyn.mjs +0 -1
- package/dist/chunks/bridgeMain-0.7.4-m4rjydb5.mjs +0 -88
- package/dist/chunks/bridgePointer-0.7.4-mjexaxq5.mjs +0 -1
- package/dist/chunks/btw-0.7.4-rw5186va.mjs +0 -1
- package/dist/chunks/buddy-0.7.4-mwgfqb1k.mjs +0 -3
- package/dist/chunks/cacache-0.7.4-254mqspw.mjs +0 -1
- package/dist/chunks/cache-probe-0.7.4-kjrs8qh8.mjs +0 -21
- package/dist/chunks/cacheStats-0.7.4-2pfk76t7.mjs +0 -4
- package/dist/chunks/caches-0.7.4-qjs93vrb.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.7.4-e2h7mp9r.mjs +0 -1
- package/dist/chunks/claudemd-0.7.4-tv76d8c5.mjs +0 -1
- package/dist/chunks/clear-0.7.4-2qt378q0.mjs +0 -1
- package/dist/chunks/clearTerminal-0.7.4-5jfekabd.mjs +0 -1
- package/dist/chunks/cli-0.7.4-00n6rj7y.mjs +0 -3
- package/dist/chunks/cli-0.7.4-0a7934k3.mjs +0 -21
- package/dist/chunks/cli-0.7.4-0a9kv7ps.mjs +0 -2
- package/dist/chunks/cli-0.7.4-0c1vbfmd.mjs +0 -2
- package/dist/chunks/cli-0.7.4-0h9b4tge.mjs +0 -2
- package/dist/chunks/cli-0.7.4-0thtf513.mjs +0 -2
- package/dist/chunks/cli-0.7.4-0ytxwr14.mjs +0 -2
- package/dist/chunks/cli-0.7.4-12k33ng9.mjs +0 -2
- package/dist/chunks/cli-0.7.4-15xs793c.mjs +0 -2
- package/dist/chunks/cli-0.7.4-1ba5bwdq.mjs +0 -42
- package/dist/chunks/cli-0.7.4-1tkzz9x6.mjs +0 -5469
- package/dist/chunks/cli-0.7.4-2apswqf5.mjs +0 -59
- package/dist/chunks/cli-0.7.4-2fxnz89x.mjs +0 -6
- package/dist/chunks/cli-0.7.4-2haqz80h.mjs +0 -16
- package/dist/chunks/cli-0.7.4-2p5w6279.mjs +0 -45
- package/dist/chunks/cli-0.7.4-33k7j18b.mjs +0 -3
- package/dist/chunks/cli-0.7.4-3e7assg4.mjs +0 -2
- package/dist/chunks/cli-0.7.4-3gn2tfsb.mjs +0 -2
- package/dist/chunks/cli-0.7.4-40m5mk3s.mjs +0 -2
- package/dist/chunks/cli-0.7.4-47nyf9j2.mjs +0 -2
- package/dist/chunks/cli-0.7.4-489pp4nd.mjs +0 -2
- package/dist/chunks/cli-0.7.4-4a6hn01n.mjs +0 -133
- package/dist/chunks/cli-0.7.4-4br84c8j.mjs +0 -2
- package/dist/chunks/cli-0.7.4-4ee9swqr.mjs +0 -2
- package/dist/chunks/cli-0.7.4-4pagjrxs.mjs +0 -18
- package/dist/chunks/cli-0.7.4-4sh782tn.mjs +0 -2
- package/dist/chunks/cli-0.7.4-507dp6s1.mjs +0 -2
- package/dist/chunks/cli-0.7.4-510c371d.mjs +0 -12
- package/dist/chunks/cli-0.7.4-51t8p2qe.mjs +0 -2
- package/dist/chunks/cli-0.7.4-53k7apn9.mjs +0 -2
- package/dist/chunks/cli-0.7.4-5fjrbavz.mjs +0 -2
- package/dist/chunks/cli-0.7.4-5k1t5jcn.mjs +0 -2
- package/dist/chunks/cli-0.7.4-61etrp8x.mjs +0 -2
- package/dist/chunks/cli-0.7.4-61svw97d.mjs +0 -3
- package/dist/chunks/cli-0.7.4-6265e9tz.mjs +0 -2
- package/dist/chunks/cli-0.7.4-62ac47x8.mjs +0 -2
- package/dist/chunks/cli-0.7.4-66p94pps.mjs +0 -3
- package/dist/chunks/cli-0.7.4-68dbzpkf.mjs +0 -3
- package/dist/chunks/cli-0.7.4-6cft4ytf.mjs +0 -15
- package/dist/chunks/cli-0.7.4-6n295sx3.mjs +0 -2
- package/dist/chunks/cli-0.7.4-6sqa761d.mjs +0 -2
- package/dist/chunks/cli-0.7.4-6tvnyqjj.mjs +0 -2
- package/dist/chunks/cli-0.7.4-6zr3mpvn.mjs +0 -2
- package/dist/chunks/cli-0.7.4-729n63er.mjs +0 -2
- package/dist/chunks/cli-0.7.4-7k74b1yf.mjs +0 -1
- package/dist/chunks/cli-0.7.4-7mzefe20.mjs +0 -2
- package/dist/chunks/cli-0.7.4-7t2zsdm5.mjs +0 -2
- package/dist/chunks/cli-0.7.4-7tr153ha.mjs +0 -2
- package/dist/chunks/cli-0.7.4-7wr3z77e.mjs +0 -2
- package/dist/chunks/cli-0.7.4-85txq06q.mjs +0 -2
- package/dist/chunks/cli-0.7.4-8hskaxte.mjs +0 -2
- package/dist/chunks/cli-0.7.4-8nss0n1a.mjs +0 -25
- package/dist/chunks/cli-0.7.4-8vd2zhhw.mjs +0 -2
- package/dist/chunks/cli-0.7.4-8wbk60h9.mjs +0 -2
- package/dist/chunks/cli-0.7.4-8xxafyv0.mjs +0 -18
- package/dist/chunks/cli-0.7.4-90d95m4d.mjs +0 -2
- package/dist/chunks/cli-0.7.4-9kf16ber.mjs +0 -2
- package/dist/chunks/cli-0.7.4-9kzgbrwj.mjs +0 -2
- package/dist/chunks/cli-0.7.4-9r1s7xtv.mjs +0 -6
- package/dist/chunks/cli-0.7.4-9vph2ayc.mjs +0 -2
- package/dist/chunks/cli-0.7.4-9zsty6c5.mjs +0 -2
- package/dist/chunks/cli-0.7.4-abs9vv3n.mjs +0 -2
- package/dist/chunks/cli-0.7.4-ae96heq4.mjs +0 -2
- package/dist/chunks/cli-0.7.4-ahm3gnaw.mjs +0 -2
- package/dist/chunks/cli-0.7.4-akf6rhsn.mjs +0 -4
- package/dist/chunks/cli-0.7.4-aswaa5m4.mjs +0 -2
- package/dist/chunks/cli-0.7.4-at2fkgpk.mjs +0 -2
- package/dist/chunks/cli-0.7.4-b5qdnvdg.mjs +0 -2
- package/dist/chunks/cli-0.7.4-bh4xsr2c.mjs +0 -4
- package/dist/chunks/cli-0.7.4-bkgx5wz7.mjs +0 -2
- package/dist/chunks/cli-0.7.4-bmw3qchp.mjs +0 -2
- package/dist/chunks/cli-0.7.4-bqk5rkrz.mjs +0 -2
- package/dist/chunks/cli-0.7.4-c0e99xn9.mjs +0 -24
- package/dist/chunks/cli-0.7.4-cfsjq69q.mjs +0 -2
- package/dist/chunks/cli-0.7.4-d82gqb10.mjs +0 -2
- package/dist/chunks/cli-0.7.4-d9y5wx3y.mjs +0 -2
- package/dist/chunks/cli-0.7.4-da69w12w.mjs +0 -3
- package/dist/chunks/cli-0.7.4-deyaxrbc.mjs +0 -2
- package/dist/chunks/cli-0.7.4-djbdmzgq.mjs +0 -2
- package/dist/chunks/cli-0.7.4-dwjhqjan.mjs +0 -2
- package/dist/chunks/cli-0.7.4-e2bhfh6d.mjs +0 -2
- package/dist/chunks/cli-0.7.4-ee9ansx1.mjs +0 -24
- package/dist/chunks/cli-0.7.4-eg7xj51b.mjs +0 -2
- package/dist/chunks/cli-0.7.4-egc286gx.mjs +0 -2
- package/dist/chunks/cli-0.7.4-ejm88apc.mjs +0 -2
- package/dist/chunks/cli-0.7.4-emdbzgja.mjs +0 -2
- package/dist/chunks/cli-0.7.4-en1ggcz7.mjs +0 -2
- package/dist/chunks/cli-0.7.4-evtmfc7t.mjs +0 -2
- package/dist/chunks/cli-0.7.4-f23ty9s6.mjs +0 -39
- package/dist/chunks/cli-0.7.4-f8qmyn41.mjs +0 -4
- package/dist/chunks/cli-0.7.4-fhgnbfvj.mjs +0 -2
- package/dist/chunks/cli-0.7.4-g9hc44qq.mjs +0 -2
- package/dist/chunks/cli-0.7.4-g9w5x5ns.mjs +0 -4
- package/dist/chunks/cli-0.7.4-ge77h9d7.mjs +0 -2
- package/dist/chunks/cli-0.7.4-ghq0kwkv.mjs +0 -2
- package/dist/chunks/cli-0.7.4-gjn70n3p.mjs +0 -2
- package/dist/chunks/cli-0.7.4-gr1feczd.mjs +0 -2
- package/dist/chunks/cli-0.7.4-gxccpbef.mjs +0 -3
- package/dist/chunks/cli-0.7.4-h0ze5j97.mjs +0 -2
- package/dist/chunks/cli-0.7.4-h24m11yy.mjs +0 -2
- package/dist/chunks/cli-0.7.4-h5274d0h.mjs +0 -2
- package/dist/chunks/cli-0.7.4-h57hq23q.mjs +0 -2
- package/dist/chunks/cli-0.7.4-h5wxsd2h.mjs +0 -9
- package/dist/chunks/cli-0.7.4-h94hrj45.mjs +0 -2
- package/dist/chunks/cli-0.7.4-hayqy916.mjs +0 -2
- package/dist/chunks/cli-0.7.4-hegk157e.mjs +0 -6
- package/dist/chunks/cli-0.7.4-hnfm0p8b.mjs +0 -2
- package/dist/chunks/cli-0.7.4-hsa9khw7.mjs +0 -17
- package/dist/chunks/cli-0.7.4-hvnq08bj.mjs +0 -24
- package/dist/chunks/cli-0.7.4-hvnzwb5v.mjs +0 -194
- package/dist/chunks/cli-0.7.4-hvs3h0hc.mjs +0 -3
- package/dist/chunks/cli-0.7.4-hw93j7vq.mjs +0 -2
- package/dist/chunks/cli-0.7.4-jg5ajbyb.mjs +0 -2
- package/dist/chunks/cli-0.7.4-jgg33mak.mjs +0 -2
- package/dist/chunks/cli-0.7.4-jgswqtvj.mjs +0 -3
- package/dist/chunks/cli-0.7.4-k735e5sg.mjs +0 -133
- package/dist/chunks/cli-0.7.4-k7s78hkt.mjs +0 -58
- package/dist/chunks/cli-0.7.4-kmgvx19r.mjs +0 -5
- package/dist/chunks/cli-0.7.4-kmxpdkne.mjs +0 -2
- package/dist/chunks/cli-0.7.4-kpp23hbz.mjs +0 -2
- package/dist/chunks/cli-0.7.4-kz0h2jkr.mjs +0 -15
- package/dist/chunks/cli-0.7.4-m1f3fc2v.mjs +0 -2
- package/dist/chunks/cli-0.7.4-m2yz2rtr.mjs +0 -2
- package/dist/chunks/cli-0.7.4-m6n2gga8.mjs +0 -4
- package/dist/chunks/cli-0.7.4-mdv26096.mjs +0 -6
- package/dist/chunks/cli-0.7.4-mg4yp3b0.mjs +0 -2
- package/dist/chunks/cli-0.7.4-mmzkb167.mjs +0 -2
- package/dist/chunks/cli-0.7.4-mq3qzben.mjs +0 -2
- package/dist/chunks/cli-0.7.4-mqbmk6y6.mjs +0 -4
- package/dist/chunks/cli-0.7.4-n9arxrya.mjs +0 -12
- package/dist/chunks/cli-0.7.4-naanktx2.mjs +0 -34
- package/dist/chunks/cli-0.7.4-nbnqrjgm.mjs +0 -2
- package/dist/chunks/cli-0.7.4-nnd4g2nm.mjs +0 -2
- package/dist/chunks/cli-0.7.4-p85h0qry.mjs +0 -17
- package/dist/chunks/cli-0.7.4-pgtn2eay.mjs +0 -2
- package/dist/chunks/cli-0.7.4-pjfb6eq2.mjs +0 -2
- package/dist/chunks/cli-0.7.4-pyyaz246.mjs +0 -2
- package/dist/chunks/cli-0.7.4-q23avgwg.mjs +0 -2
- package/dist/chunks/cli-0.7.4-q4g37dxk.mjs +0 -2
- package/dist/chunks/cli-0.7.4-q4q5x19y.mjs +0 -2
- package/dist/chunks/cli-0.7.4-q83h4xz7.mjs +0 -10
- package/dist/chunks/cli-0.7.4-qcc7kfkv.mjs +0 -2
- package/dist/chunks/cli-0.7.4-qcqz94w2.mjs +0 -2
- package/dist/chunks/cli-0.7.4-qjfmn9db.mjs +0 -2
- package/dist/chunks/cli-0.7.4-r0fkpzp3.mjs +0 -2
- package/dist/chunks/cli-0.7.4-r0nqh5aw.mjs +0 -2
- package/dist/chunks/cli-0.7.4-r1ebyx3p.mjs +0 -2
- package/dist/chunks/cli-0.7.4-r6ste2g4.mjs +0 -2
- package/dist/chunks/cli-0.7.4-rn8x06p3.mjs +0 -2
- package/dist/chunks/cli-0.7.4-rr7x6s9y.mjs +0 -2
- package/dist/chunks/cli-0.7.4-rskynrc5.mjs +0 -4
- package/dist/chunks/cli-0.7.4-rszd2m9d.mjs +0 -3
- package/dist/chunks/cli-0.7.4-rts5twex.mjs +0 -2
- package/dist/chunks/cli-0.7.4-rxsb2bkg.mjs +0 -2
- package/dist/chunks/cli-0.7.4-rzkdke3e.mjs +0 -4
- package/dist/chunks/cli-0.7.4-s97t3v7z.mjs +0 -2
- package/dist/chunks/cli-0.7.4-sm8wf8qx.mjs +0 -67
- package/dist/chunks/cli-0.7.4-sw7nh3hq.mjs +0 -2
- package/dist/chunks/cli-0.7.4-sxvnky38.mjs +0 -2
- package/dist/chunks/cli-0.7.4-syg2nab8.mjs +0 -18
- package/dist/chunks/cli-0.7.4-t68xf0hs.mjs +0 -2
- package/dist/chunks/cli-0.7.4-tcwf7yvv.mjs +0 -2
- package/dist/chunks/cli-0.7.4-te9nvehv.mjs +0 -2
- package/dist/chunks/cli-0.7.4-tkcchh6p.mjs +0 -2
- package/dist/chunks/cli-0.7.4-tme1sywb.mjs +0 -2
- package/dist/chunks/cli-0.7.4-tny04z8h.mjs +0 -2
- package/dist/chunks/cli-0.7.4-tsf2s2bg.mjs +0 -2
- package/dist/chunks/cli-0.7.4-tz5hgphm.mjs +0 -3
- package/dist/chunks/cli-0.7.4-v70q1qwp.mjs +0 -2
- package/dist/chunks/cli-0.7.4-ve6x1t8v.mjs +0 -5
- package/dist/chunks/cli-0.7.4-vq696c8w.mjs +0 -2
- package/dist/chunks/cli-0.7.4-vtnqj21e.mjs +0 -2
- package/dist/chunks/cli-0.7.4-vw2w38z0.mjs +0 -2
- package/dist/chunks/cli-0.7.4-wa74g17n.mjs +0 -2
- package/dist/chunks/cli-0.7.4-wb89zsbs.mjs +0 -2
- package/dist/chunks/cli-0.7.4-wh44hxq2.mjs +0 -5
- package/dist/chunks/cli-0.7.4-wmw8fpv7.mjs +0 -12
- package/dist/chunks/cli-0.7.4-wtz9ed9r.mjs +0 -2
- package/dist/chunks/cli-0.7.4-wv6x6pzr.mjs +0 -50
- package/dist/chunks/cli-0.7.4-x1w88hnn.mjs +0 -12
- package/dist/chunks/cli-0.7.4-x5fcmgcd.mjs +0 -4
- package/dist/chunks/cli-0.7.4-xgw8jjs2.mjs +0 -2
- package/dist/chunks/cli-0.7.4-xhw7cmg0.mjs +0 -2
- package/dist/chunks/cli-0.7.4-xt87yshe.mjs +0 -20
- package/dist/chunks/cli-0.7.4-y3z3j4d9.mjs +0 -8
- package/dist/chunks/cli-0.7.4-y4w46256.mjs +0 -2
- package/dist/chunks/cli-0.7.4-y7sxx7d0.mjs +0 -2
- package/dist/chunks/cli-0.7.4-ybvnfxcf.mjs +0 -4
- package/dist/chunks/cli-0.7.4-yces9dz7.mjs +0 -2
- package/dist/chunks/cli-0.7.4-yjqyy8n2.mjs +0 -2
- package/dist/chunks/cli-0.7.4-yrbhzggw.mjs +0 -3
- package/dist/chunks/cli-0.7.4-yvdbdncp.mjs +0 -2
- package/dist/chunks/cli-0.7.4-z1vgf16g.mjs +0 -25
- package/dist/chunks/cli-0.7.4-z48enz4n.mjs +0 -2
- package/dist/chunks/cli-0.7.4-z88n7a08.mjs +0 -2
- package/dist/chunks/cli-0.7.4-za9xa1j8.mjs +0 -3
- package/dist/chunks/cli-0.7.4-zaa684f4.mjs +0 -15
- package/dist/chunks/cli-0.7.4-zbdceewq.mjs +0 -7
- package/dist/chunks/cli-0.7.4-zzze6t7f.mjs +0 -2
- package/dist/chunks/client-0.7.4-hxpb2apz.mjs +0 -1
- package/dist/chunks/color-0.7.4-pkanvtan.mjs +0 -1
- package/dist/chunks/compact-0.7.4-sjz49brs.mjs +0 -3
- package/dist/chunks/config-0.7.4-f5dgrp7x.mjs +0 -1
- package/dist/chunks/config-0.7.4-mc1mvka6.mjs +0 -1
- package/dist/chunks/constants-0.7.4-q426cgcp.mjs +0 -1
- package/dist/chunks/context-0.7.4-ssay296s.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.7.4-y9y9az38.mjs +0 -1
- package/dist/chunks/conversation-0.7.4-m00s33jt.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.7.4-pv50vnpq.mjs +0 -1
- package/dist/chunks/copy-0.7.4-ktk8gabv.mjs +0 -9
- package/dist/chunks/cost-0.7.4-r3td1n69.mjs +0 -1
- package/dist/chunks/createSSHSession-0.7.4-hhqxxfmb.mjs +0 -1
- package/dist/chunks/createSession-0.7.4-ebs0k8yt.mjs +0 -1
- package/dist/chunks/debug-0.7.4-0nebad2s.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.7.4-jbzptdbp.mjs +0 -1446
- package/dist/chunks/desktop-0.7.4-fmsm731w.mjs +0 -1
- package/dist/chunks/detectRepository-0.7.4-qse5a13f.mjs +0 -1
- package/dist/chunks/detection-0.7.4-a7c8arz9.mjs +0 -1
- package/dist/chunks/diff-0.7.4-ayakpeyz.mjs +0 -1
- package/dist/chunks/doctor-0.7.4-hwhyhjfr.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.7.4-qm9knj52.mjs +0 -1
- package/dist/chunks/earlyInput-0.7.4-x3ysj16t.mjs +0 -1
- package/dist/chunks/effort-0.7.4-1sv0dhhk.mjs +0 -10
- package/dist/chunks/engine-0.7.4-gz82afzv.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-0.7.4-q1h5p7jv.mjs +0 -1
- package/dist/chunks/envUtils-0.7.4-ww7aa64y.mjs +0 -1
- package/dist/chunks/environmentSelection-0.7.4-r3g0hp0m.mjs +0 -1
- package/dist/chunks/environments-0.7.4-8n2fat2s.mjs +0 -1
- package/dist/chunks/errors-0.7.4-v9nwybq7.mjs +0 -1
- package/dist/chunks/exampleCommands-0.7.4-80n656nx.mjs +0 -1
- package/dist/chunks/exit-0.7.4-zmzt7mx8.mjs +0 -1
- package/dist/chunks/explorer-0.7.4-1knjqbak.mjs +0 -1
- package/dist/chunks/export-0.7.4-8b909kg4.mjs +0 -2
- package/dist/chunks/extra-usage-0.7.4-gwxf43jr.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.7.4-vntrq9c8.mjs +0 -1
- package/dist/chunks/fast-0.7.4-7d198jes.mjs +0 -1
- package/dist/chunks/feedback-0.7.4-5q49cx0k.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.7.4-w1471f1j.mjs +0 -1
- package/dist/chunks/git-0.7.4-qm9bjwe1.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.7.4-ecrp7kdj.mjs +0 -1
- package/dist/chunks/goal-0.7.4-ce3ysbxg.mjs +0 -4
- package/dist/chunks/grove-0.7.4-20a0nspg.mjs +0 -1
- package/dist/chunks/growthbook-0.7.4-85m0qnfn.mjs +0 -1
- package/dist/chunks/headless-0.7.4-g1me8a7s.mjs +0 -2
- package/dist/chunks/heapdump-0.7.4-sgk3zw0t.mjs +0 -6
- package/dist/chunks/help-0.7.4-aw6p8ena.mjs +0 -1
- package/dist/chunks/hookChains-0.7.4-3eqqv9t2.mjs +0 -3
- package/dist/chunks/hooks-0.7.4-q1wrys2h.mjs +0 -79
- package/dist/chunks/hooks-0.7.4-v782ktbj.mjs +0 -1
- package/dist/chunks/ide-0.7.4-nvtd5hpv.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.7.4-a0arvwvs.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.7.4-9hxndvnx.mjs +0 -1
- package/dist/chunks/index-0.7.4-0atnj624.mjs +0 -1
- package/dist/chunks/index-0.7.4-3yc5n58n.mjs +0 -1
- package/dist/chunks/index-0.7.4-46qessxk.mjs +0 -1
- package/dist/chunks/index-0.7.4-5x44zrgw.mjs +0 -2
- package/dist/chunks/index-0.7.4-97t4afz3.mjs +0 -1
- package/dist/chunks/index-0.7.4-9rhxb7ph.mjs +0 -1
- package/dist/chunks/index-0.7.4-9z6mgm05.mjs +0 -2
- package/dist/chunks/index-0.7.4-adfj0wz0.mjs +0 -1
- package/dist/chunks/index-0.7.4-bv491fah.mjs +0 -5
- package/dist/chunks/index-0.7.4-cxv3b9bg.mjs +0 -1
- package/dist/chunks/index-0.7.4-d7jstqgp.mjs +0 -1
- package/dist/chunks/index-0.7.4-fxa74szv.mjs +0 -1
- package/dist/chunks/index-0.7.4-hh3v0qz8.mjs +0 -1
- package/dist/chunks/index-0.7.4-kkcp2c2w.mjs +0 -9
- package/dist/chunks/index-0.7.4-n3dcdt88.mjs +0 -1
- package/dist/chunks/index-0.7.4-p8ts8cvg.mjs +0 -1
- package/dist/chunks/index-0.7.4-pamx7cgj.mjs +0 -17
- package/dist/chunks/index-0.7.4-pvvgj6g7.mjs +0 -1
- package/dist/chunks/index-0.7.4-rhf5p3mf.mjs +0 -1
- package/dist/chunks/index-0.7.4-rzztd31r.mjs +0 -1
- package/dist/chunks/index-0.7.4-sajaaw7k.mjs +0 -30
- package/dist/chunks/index-0.7.4-xdq0jf9r.mjs +0 -1
- package/dist/chunks/index-0.7.4-z3z8qmah.mjs +0 -9
- package/dist/chunks/init-0.7.4-4e9zty2q.mjs +0 -1
- package/dist/chunks/initReplBridge-0.7.4-yrparcz7.mjs +0 -1
- package/dist/chunks/ink-0.7.4-r1261h4c.mjs +0 -1
- package/dist/chunks/insights-0.7.4-t5dmav2c.mjs +0 -870
- package/dist/chunks/install-0.7.4-09cxj9vb.mjs +0 -1
- package/dist/chunks/install-github-app-0.7.4-hv9wkbxq.mjs +0 -149
- package/dist/chunks/install-slack-app-0.7.4-hgnea2d6.mjs +0 -1
- package/dist/chunks/instrumentation-0.7.4-17ca7p44.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.7.4-8jxj468e.mjs +0 -1
- package/dist/chunks/keybindings-0.7.4-raw68sen.mjs +0 -2
- package/dist/chunks/knowledge-0.7.4-xg9wb8wf.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.7.4-60ks5x17.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.7.4-fg72pr2c.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.7.4-anp72ngw.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.7.4-jsx8r8aw.mjs +0 -1
- package/dist/chunks/log-0.7.4-12x7gw8q.mjs +0 -1
- package/dist/chunks/main-0.7.4-q6k044gc.mjs +0 -1
- package/dist/chunks/managedEnv-0.7.4-74e7mhhm.mjs +0 -1
- package/dist/chunks/mcp-0.7.4-4sr5rcvc.mjs +0 -17
- package/dist/chunks/mcp-0.7.4-9g6a64bt.mjs +0 -4
- package/dist/chunks/mcp-0.7.4-z4k2mzgy.mjs +0 -1
- package/dist/chunks/mcpb-0.7.4-jxskcyd8.mjs +0 -1
- package/dist/chunks/memory-0.7.4-541b29se.mjs +0 -3
- package/dist/chunks/model-0.7.4-mxvb5p7w.mjs +0 -2
- package/dist/chunks/model-0.7.4-nc7qk972.mjs +0 -1
- package/dist/chunks/node-0.7.4-hg387vyg.mjs +0 -12
- package/dist/chunks/oauth-0.7.4-e4sc7m0w.mjs +0 -1
- package/dist/chunks/openaiShim-0.7.4-mwtq6jnq.mjs +0 -14
- package/dist/chunks/output-style-0.7.4-b3vewghm.mjs +0 -1
- package/dist/chunks/package-GCDC7LJR-0.7.4-1e6194dg.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.7.4-46v5dfsp.mjs +0 -1
- package/dist/chunks/parser-0.7.4-2wt2btdd.mjs +0 -1
- package/dist/chunks/passes-0.7.4-182xeaj4.mjs +0 -1
- package/dist/chunks/permissions-0.7.4-hbqjvate.mjs +0 -3
- package/dist/chunks/permissions-0.7.4-qxf6e5nd.mjs +0 -1
- package/dist/chunks/plan-0.7.4-t5djkwkz.mjs +0 -1
- package/dist/chunks/plist-0.7.4-98g5pq7j.mjs +0 -1
- package/dist/chunks/plugin-0.7.4-0kmdzd88.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.7.4-f1kq85sa.mjs +0 -1
- package/dist/chunks/plugins-0.7.4-52qggqw3.mjs +0 -9
- package/dist/chunks/preActionHook-0.7.4-qdyv0zgd.mjs +0 -2
- package/dist/chunks/print-0.7.4-1y1eqyhp.mjs +0 -57
- package/dist/chunks/privacy-settings-0.7.4-jrr06fw8.mjs +0 -1
- package/dist/chunks/process-0.7.4-bh0fjdst.mjs +0 -1
- package/dist/chunks/processBashCommand-0.7.4-8j3chrnm.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.7.4-j53jaae7.mjs +0 -9
- package/dist/chunks/prompt-0.7.4-6eskezm8.mjs +0 -1
- package/dist/chunks/prompt-0.7.4-bnhsjhx3.mjs +0 -1
- package/dist/chunks/prompts-0.7.4-vevq7ae1.mjs +0 -1
- package/dist/chunks/protocolHandler-0.7.4-s4j6aeqh.mjs +0 -13
- package/dist/chunks/provider-0.7.4-jvtch160.mjs +0 -2
- package/dist/chunks/providerProfiles-0.7.4-yqetgvnq.mjs +0 -1
- package/dist/chunks/providerValidation-0.7.4-g6enpya6.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.7.4-cwnmpqq9.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.7.4-z1bdpgwx.mjs +0 -34
- package/dist/chunks/registry-0.7.4-5tne3d7e.mjs +0 -1
- package/dist/chunks/release-notes-0.7.4-sdsbw8s6.mjs +0 -5
- package/dist/chunks/reload-plugins-0.7.4-8fpph071.mjs +0 -2
- package/dist/chunks/remote-env-0.7.4-b1mzf95y.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.7.4-9psc4fph.mjs +0 -1
- package/dist/chunks/remoteSession-0.7.4-8q76j945.mjs +0 -1
- package/dist/chunks/rename-0.7.4-x6q5drmn.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.7.4-dnp2by0g.mjs +0 -1
- package/dist/chunks/replLauncher-0.7.4-ztr3sg2j.mjs +0 -1
- package/dist/chunks/resume-0.7.4-zg3nxxte.mjs +0 -2
- package/dist/chunks/rewind-0.7.4-9j0zbj9a.mjs +0 -1
- package/dist/chunks/rootOptions-0.7.4-jrktzb1h.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.7.4-h71dwt2q.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.7.4-ks8gnbp8.mjs +0 -1
- package/dist/chunks/session-0.7.4-vc75bjkq.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.7.4-aqvmyy21.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.7.4-7rw6txzf.mjs +0 -1
- package/dist/chunks/sessionStorage-0.7.4-820nxqcx.mjs +0 -1
- package/dist/chunks/settings-0.7.4-xn9kh7fk.mjs +0 -1
- package/dist/chunks/setup-0.7.4-ad98h634.mjs +0 -5
- package/dist/chunks/sinks-0.7.4-z7ad37zx.mjs +0 -1
- package/dist/chunks/skills-0.7.4-ad67cz1j.mjs +0 -1
- package/dist/chunks/startupProfiler-0.7.4-akaj65pe.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.7.4-7r3vt1zf.mjs +0 -1
- package/dist/chunks/state-0.7.4-vjqm3ded.mjs +0 -1
- package/dist/chunks/stats-0.7.4-hqz1awtk.mjs +0 -6
- package/dist/chunks/status-0.7.4-e09aw5s3.mjs +0 -1
- package/dist/chunks/stickers-0.7.4-356twswm.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.7.4-zjpbw9eg.mjs +0 -1
- package/dist/chunks/tasks-0.7.4-yqdwmw5j.mjs +0 -1
- package/dist/chunks/teamHelpers-0.7.4-0mtce030.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.7.4-q60shbd0.mjs +0 -1
- package/dist/chunks/teleport-0.7.4-6h25n23n.mjs +0 -1
- package/dist/chunks/terminalSetup-0.7.4-5fm9br3v.mjs +0 -1
- package/dist/chunks/theme-0.7.4-3cxdxqzd.mjs +0 -1
- package/dist/chunks/thinkback-0.7.4-k40dtctf.mjs +0 -1
- package/dist/chunks/thinkback-play-0.7.4-vmbx4r0v.mjs +0 -1
- package/dist/chunks/toolPool-0.7.4-fr9jcgkr.mjs +0 -1
- package/dist/chunks/toolSearch-0.7.4-72eq96x6.mjs +0 -1
- package/dist/chunks/tools-0.7.4-n2jj5cxj.mjs +0 -1
- package/dist/chunks/trustedDevice-0.7.4-5jh1e885.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.7.4-3sq52e78.mjs +0 -69
- package/dist/chunks/types-0.7.4-cybkwcw1.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.7.4-p3ykdjx4.mjs +0 -4
- package/dist/chunks/update-0.7.4-9hphbpbx.mjs +0 -86
- package/dist/chunks/upgrade-0.7.4-hhn879a5.mjs +0 -1
- package/dist/chunks/upload-0.7.4-rmfqa4n5.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.7.4-f89cjzmp.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.7.4-kdweyv4n.mjs +0 -1
- package/dist/chunks/usage-0.7.4-z5s6dhj7.mjs +0 -1
- package/dist/chunks/util-0.7.4-wf3hrc3w.mjs +0 -1
- package/dist/chunks/utils-0.7.4-f33hkvq8.mjs +0 -1
- package/dist/chunks/vim-0.7.4-pkw9kc18.mjs +0 -1
- package/dist/chunks/watcher-0.7.4-h80z0z8g.mjs +0 -1
- package/dist/chunks/wiki-0.7.4-5rfrx592.mjs +0 -132
- package/dist/chunks/workflows-0.7.4-7dgxra0n.mjs +0 -1
- package/dist/chunks/worktree-0.7.4-ar646nm5.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.7.4-1z56z896.mjs +0 -1
- package/dist/chunks/wrapper-0.7.4-bp55g4da.mjs +0 -7
- /package/dist/chunks/{cli-0.7.4-58p1wenr.mjs → cli-0.7.5-012a6zfk.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.4-533hdyc8.mjs → cli-0.7.5-88bh6s1x.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.4-wes9w04e.mjs → cli-0.7.5-hj89dnh6.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.4-a8qv9b1x.mjs → cli-0.7.5-jk7d368h.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.4-7ftm6c0s.mjs → cli-0.7.5-paykwdd9.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.4-hz7s1rtn.mjs → cli-0.7.5-r5ckgfah.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.4-zdkph0g9.mjs → cli-0.7.5-wjfmb762.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.4-nst28yat.mjs → cli-0.7.5-x4kb7k70.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{vf as N0,wf as U0,yf as VP}from"./cli-0.7.4-4br84c8j.mjs";import{Cv as J0,Dv as QP,FF as L0,Fv as j0,Gn as h,HF as i0,Hn as c0,In as p,Jn as w0,Kn as r,Ln as W0,On as O0,Pn as EP,SM as ZP,TM as m0,VM as qP,_L as WP,_M as CP,hM as cP,iM as fP,kM as M0,lM as h0,mM as T0,nM as d0,pN as C0,qM as R0,tN as pP,uH as G0,vF as XP,vH as YP,wF as mP,xM as u0}from"./cli-0.7.4-1tkzz9x6.mjs";import{CX as D0,DX as LP,jX as JP,kX as hP,xX as z0,zX as TP}from"./cli-0.7.4-wtz9ed9r.mjs";import{IY as k0,SZ as C,UZ as X,WZ as L,_Z as F0,o0 as GP,tY as PP,yY as AP,z0 as q0,zY as I0}from"./cli-0.7.4-2apswqf5.mjs";import{E2 as n,F2 as J,G2 as Q,H2 as a}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as $0}from"./cli-0.7.4-85txq06q.mjs";import{d3 as A0,e3 as dP}from"./cli-0.7.4-da69w12w.mjs";import{W6 as e0,m7 as gP}from"./cli-0.7.4-2haqz80h.mjs";import{Fba as p0,P8 as _,Q8 as r0,cfa as s0,eba as y0,fba as B0,ffa as SP,gba as KP,wba as H0,xba as zP}from"./cli-0.7.4-hvnzwb5v.mjs";import{Dha as g0,Eha as _P}from"./cli-0.7.4-nbnqrjgm.mjs";import{Fha as m,Iha as IP}from"./cli-0.7.4-d9y5wx3y.mjs";import{gja as f0,nja as t0}from"./cli-0.7.4-g9w5x5ns.mjs";import{Lqa as e,Pqa as P0}from"./cli-0.7.4-58p1wenr.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=J0((q)=>q.mcp),M=QP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),A0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=M0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await A0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else s0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof ZP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(XP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(L0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{r0();IP();_P();LP();hP();AP();q0();TP();CP();pP();VP();u0();j0();gP();dP();t0();SP();p0();w0();i0();W0();c0();YP();mP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),k=J0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=M0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(L0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{r0();LP();q0();cP();VP();u0();j0();t0();p0();w0();i0();W0();c0();YP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();w0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=J0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(L0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();u0();j0();p0();w0();i0();W0();EP();c0();a();HP=e(I0(),1)});
|
|
2
|
-
export{bG as mf,$P as nf,uG as of,jP as pf,tG as qf,uP as rf,VJ as sf,aP as tf};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{Pqa as j}from"./cli-0.7.4-58p1wenr.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
|
-
`:`
|
|
3
|
-
`)+z,H=D+1,D=q.indexOf(`
|
|
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(`
|
|
5
|
-
`);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
|
|
6
|
-
export{o as H7,O1 as I7,e as J7};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ld as K,md as Y}from"./cli-0.7.4-vw2w38z0.mjs";import{il as G,jl as B,nl as U,ol as V,pM as J,tp as H,up as W,xM as X}from"./cli-0.7.4-1tkzz9x6.mjs";import{Mqa as q,Pqa as v}from"./cli-0.7.4-58p1wenr.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
|
|
2
|
-
export{P as hd,C as id,A as jd,D as kd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{By as U,Cy as V,Fy as f,Ot as R,Pt as T,Qt as $}from"./cli-0.7.4-1tkzz9x6.mjs";import{b5 as Q,c5 as _}from"./cli-0.7.4-2haqz80h.mjs";import{C$ as Y,Zea as G,ffa as Z,v$ as L}from"./cli-0.7.4-hvnzwb5v.mjs";import{Pqa as X}from"./cli-0.7.4-58p1wenr.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Z();Y();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
|
|
2
|
-
export{O as $c,S as ad,I as bd,N as cd,P as dd,h as ed};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Oqa as x,Pqa as z}from"./cli-0.7.4-58p1wenr.mjs";var H={};x(H,{toInfraSessionId:()=>G,toCompatSessionId:()=>F,setCseShimGate:()=>A});function A(j){q=j}function F(j){if(!j.startsWith("cse_"))return j;if(q&&!q())return j;return"session_"+j.slice(4)}function G(j){if(!j.startsWith("session_"))return j;return"cse_"+j.slice(8)}var q;var J=()=>{};
|
|
2
|
-
export{A as r1,F as s1,G as t1,H as u1,J as v1};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kb as d}from"./cli-0.7.4-533hdyc8.mjs";import{Au as C,Ck as v,DJ as f,Dk as r,Fu as Gj,Gs as h,Ij as O,Is as qj,Kj as o,MS as Vj,Pl as s,QR as m,RR as S,SR as A,TB as I,UB as Jj,US as F,Zt as k,am as y,au as V,bS as c,fm as t,gT as Xj,gu as zj,iS as p,iu as Bj,jS as X,tm as E,uk as $,ul as P,um as e,vk as n,vl as R,ww as D,xw as Hj,zQ as Qj,zu as w}from"./cli-0.7.4-1tkzz9x6.mjs";import{GU as W,UU as jj}from"./cli-0.7.4-4ee9swqr.mjs";import{jW as x,mW as Kj}from"./cli-0.7.4-ee9ansx1.mjs";import{F5 as u,y5 as T}from"./cli-0.7.4-2haqz80h.mjs";import{Rga as Z,Sga as i}from"./cli-0.7.4-r1ebyx3p.mjs";import{Iia as b,Lia as l}from"./cli-0.7.4-hegk157e.mjs";import{Aoa as K,epa as g,hla as U,kla as _,pla as Y,sma as M,uma as N}from"./cli-0.7.4-7wr3z77e.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Bj();Kj();i();l();qj();Qj();u();t();n();Jj();Vj();jj();Hj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=D().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!w(Q))C(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
|
|
2
|
-
export{aj as xa,Pj as ya,Rj as za,Ej as Aa,gj as Ba,lj as Ca};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Pqa as P}from"./cli-0.7.4-58p1wenr.mjs";import{homedir as Q}from"os";import{join as F}from"path";function J(q){return{env:q?.env??process.env,home:q?.homedir??process.env.HOME??Q()}}function k(q){let{env:x,home:B}=J(q);return x.XDG_STATE_HOME??F(B,".local","state")}function w(q){let{env:x,home:B}=J(q);return x.XDG_CACHE_HOME??F(B,".cache")}function H(q){let{env:x,home:B}=J(q);return x.XDG_DATA_HOME??F(B,".local","share")}function g(q){let{home:x}=J(q);return F(x,".local","bin")}var V=()=>{};function W(q){let x=q,B="",C=0,K=10;while(x!==B&&C<K)B=x,x=x.normalize("NFKC"),x=x.replace(/[\p{Cf}\p{Co}\p{Cn}]/gu,""),x=x.replace(/[\u200B-\u200F]/g,"").replace(/[\u202A-\u202E]/g,"").replace(/[\u2066-\u2069]/g,"").replace(/[\uFEFF]/g,"").replace(/[\uE000-\uF8FF]/g,""),C++;if(C>=K)throw Error(`Unicode sanitization reached maximum iterations (${K}) for input: ${q.slice(0,100)}`);return x}function L(q){if(typeof q==="string")return W(q);if(Array.isArray(q))return q.map(L);if(q!==null&&typeof q==="object"){let x={};for(let[B,C]of Object.entries(q))x[L(B)]=L(C);return x}return q}var Y=()=>{};
|
|
2
|
-
export{k as wV,w as xV,H as yV,g as zV,V as AV,W as BV,L as CV,Y as DV};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Ug as s,Vg as Sy}from"./cli-0.7.4-00n6rj7y.mjs";import{bh as wy,dh as kG}from"./cli-0.7.4-489pp4nd.mjs";import{Gi as Zy,Ii as Ky,Ji as ny}from"./cli-0.7.4-hw93j7vq.mjs";import{$n as zy,As as C,FF as i,GF as Ly,Is as _y,KF as g,LF as My,MS as zG,Tn as yy,UK as j,VK as ey,Vn as Gy,Xn as ky,Zw as Xy,_n as qy,aS as Hy,al as e,ao as Iy,ax as oy,bL as Oy,co as Jy,dv as X,el as sy,er as Qy,ev as ay,io as xy,lL as yG,pr as Wy,rS as Vy,sL as by,wL as GG,xr as ly}from"./cli-0.7.4-1tkzz9x6.mjs";import{lW as Ny,mW as ty}from"./cli-0.7.4-ee9ansx1.mjs";import{OX as Py,PX as Uy,QX as jy,UX as qG}from"./cli-0.7.4-wtz9ed9r.mjs";import{_X as Ry,eY as cy}from"./cli-0.7.4-naanktx2.mjs";import{SZ as Q,TZ as $y,UZ as L,WZ as d,z0 as ry,zY as hy}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as O,G2 as E,H2 as p}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as Yy}from"./cli-0.7.4-85txq06q.mjs";import{F5 as iy,V6 as h,f5 as c,g5 as t,m7 as gy}from"./cli-0.7.4-2haqz80h.mjs";import{I7 as a,J7 as fy}from"./cli-0.7.4-9r1s7xtv.mjs";import{Bda as M,H9 as T,Q$ as J,S$ as Ey,X9 as o,aca as n,c_ as Ay,dda as P,e_ as U,f_ as uy,fca as r,gca as v,gda as q,pca as dy}from"./cli-0.7.4-hvnzwb5v.mjs";import{fga as K,qga as A,rga as u}from"./cli-0.7.4-h57hq23q.mjs";import{Fha as f,Iha as Fy}from"./cli-0.7.4-d9y5wx3y.mjs";import{Iia as _,Lia as Dy}from"./cli-0.7.4-hegk157e.mjs";import{Lqa as D}from"./cli-0.7.4-58p1wenr.mjs";ry();u();Fy();M();Ly();Sy();My();p();var $=D(hy(),1),F=D(Yy(),1),Ty={enable_shortcut_tip:!1,enable_startup_dialog:!1};function S(){return A("tengu_desktop_upsell",Ty)}function vy(){return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}function wG(){if(!vy())return!1;if(!S().enable_startup_dialog)return!1;let y=q();if(y.desktopUpsellDismissed)return!1;if((y.desktopUpsellSeenCount??0)>=3)return!1;return!0}function PG(y){let G=$.c(14),{onDone:k}=y,[z,Z]=F.useState(!1),W;if(G[0]===Symbol.for("react.memo_cache_sentinel"))W=[],G[0]=W;else W=G[0];if(F.useEffect(py,W),z){let w;if(G[1]!==k)w=O(s,{onDone:()=>k()}),G[1]=k,G[2]=w;else w=G[2];return w}let b;if(G[3]!==k)b=function(By){switch(By){case"try":{Z(!0);return}case"never":{P(Cy),k();return}case"not-now":{k();return}}},G[3]=k,G[4]=b;else b=G[4];let I=b,R;if(G[5]===Symbol.for("react.memo_cache_sentinel"))R={label:"Open in Claude Code Desktop",value:"try"},G[5]=R;else R=G[5];let H;if(G[6]===Symbol.for("react.memo_cache_sentinel"))H={label:"Not now",value:"not-now"},G[6]=H;else H=G[6];let V;if(G[7]===Symbol.for("react.memo_cache_sentinel"))V=[R,H,{label:"Don't ask again",value:"never"}],G[7]=V;else V=G[7];let my=V,m;if(G[8]===Symbol.for("react.memo_cache_sentinel"))m=O(L,{marginBottom:1,children:O(d,{children:"Same Claude Code with visual diffs, live app preview, parallel sessions, and more."})}),G[8]=m;else m=G[8];let N;if(G[9]!==I)N=()=>I("not-now"),G[9]=I,G[10]=N;else N=G[10];let B;if(G[11]!==I||G[12]!==N)B=O(g,{title:"Try Claude Code Desktop",children:E(L,{flexDirection:"column",paddingX:2,paddingY:1,children:[m,O(i,{options:my,onChange:I,onCancel:N})]})}),G[11]=I,G[12]=N,G[13]=B;else B=G[13];return B}function Cy(y){if(y.desktopUpsellDismissed)return y;return{...y,desktopUpsellDismissed:!0}}function py(){let y=(q().desktopUpsellSeenCount??0)+1;P((G)=>{if((G.desktopUpsellSeenCount??0)>=y)return G;return{...G,desktopUpsellSeenCount:y}}),f("tengu_desktop_upsell_shown",{seen_count:y})}M();function VG(y){let G=q().numStartups;P((k)=>{let z=k.tipsHistory??{};if(z[y]===G)return k;return{...k,tipsHistory:{...z,[y]:G}}})}function x(y){let G=q(),k=G.tipsHistory?.[y];if(!k)return 1/0;return G.numStartups-k}fy();Dy();_y();dy();cy();$y();kG();ay();sy();gy();ty();M();ly();Ey();oy();Ay();xy();iy();uy();GG();yG();ey();zG();u();ny();qG();var Y;async function IG(){if(Y!==void 0)return Y;let y=await Oy();return Y=j in y,Y}async function l(y,G,k){if(!await IG())return!1;if(by(`${y}@${j}`))return!1;let{bashTools:z}=G??{};if(k.cli&&z?.size){if(k.cli.some((Z)=>z.has(Z)))return!0}if(k.filePath&&G?.readFileState){if(Xy(G.readFileState).some((W)=>k.filePath.test(W)))return!0}return!1}var JG=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return q().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${X("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=q();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=q(),G=v(),k=Boolean(y.lastPlanModeUse),z=Boolean(G?.permissions?.defaultMode);return k&&!z}catch(y){return _(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=q();return await o()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${X("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await T()}catch(y){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${X("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await T()}catch(y){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${X("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=q();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(Hy())return!1;return await Ny()>=2}},{id:"terminal-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=q();if(J.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>J.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=q();return Boolean((J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!Ry())return!1;let y=q();return!(J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return q().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&a.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>U()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>v().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return q().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${J.terminal==="vscode"?"code":J.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!yy())return!1;if(U()!=="macos")return!1;switch(J.terminal){case"vscode":return!await Iy();case"cursor":return!await qy();case"windsurf":return!await zy();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(Gy())return!1;if((await ky()).length!==0)return!1;return(await Jy()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!q().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!q().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return q().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!J.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>U()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!C()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>C()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>Vy()&&q().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return q().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${X("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${X("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"desktop-app",content:async()=>"Run Claude Code locally or remotely using the Claude desktop app: clau.de/desktop",cooldownSessions:15,isRelevant:async()=>U()!=="linux"},{id:"desktop-shortcut",content:async(y)=>{return`Continue your session in Claude Code Desktop with ${Q("suggestion",y.theme)("/desktop")}`},cooldownSessions:15,isRelevant:async()=>{if(!S().enable_shortcut_tip)return!1;return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}},{id:"web-app",content:async()=>"Run tasks in the cloud while you keep coding locally · clau.de/web",cooldownSessions:15,isRelevant:async()=>!0},{id:"mobile-app",content:async()=>"/mobile to use Claude Code from the Claude app on your phone",cooldownSessions:15,isRelevant:async()=>!0},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${X("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=q(),k=c()==="opusplan",z=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return k&&z>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
|
|
2
|
-
${Q("suggestion",y.theme)(`/plugin install frontend-design@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>l("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
|
|
3
|
-
${Q("suggestion",y.theme)(`/plugin install vercel@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>l("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let k=Q("suggestion",y.theme)("/effort high");return K("tengu_tide_elm","off")==="copy_b"?`Use ${k} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${k} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!Qy(t()))return!1;if(n("policySettings")?.effortLevel!==void 0)return!1;if(Wy()!==void 0)return!1;let y=r().effortLevel;if(y==="high"||y==="max")return!1;return K("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return K("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${G("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${G('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;return K("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return K("tengu_timber_lark","off")==="copy_b"?`Use ${G("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${G("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!e())return!1;return K("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let G=Q("claude",y.theme),k=jy();return k?`Share Claude Code and earn ${G(Uy(k))} of extra usage · ${G("/passes")}`:`You have free guest passes to share · ${G("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(q().hasVisitedPasses)return!1;let{eligible:G}=Py();return G}},{id:"overage-credit",content:async(y)=>{let G=Q("claude",y.theme),k=Zy(),z=k?Ky(k):null;if(!z)return"";return`${G(`${z} in extra usage, on us`)} · third-party apps · ${G("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>wy()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return q().numStartups>5}}],QG=[];function WG(){let G=r().spinnerTipsOverride;if(!G?.tips?.length)return[];return G.tips.map((k,z)=>({id:`custom-tip-${z}`,content:async()=>k,cooldownSessions:0,isRelevant:async()=>!0}))}async function cG(y){let k=r().spinnerTipsOverride,z=WG();if(k?.excludeDefault&&z.length>0)return z;let Z=[...JG,...QG],W=await Promise.all(Z.map((I)=>I.isRelevant(y)));return[...Z.filter((I,R)=>W[R]).filter((I)=>x(I.id)>=I.cooldownSessions),...z]}
|
|
4
|
-
export{wG as Na,PG as Oa,VG as Pa,x as Qa,cG as Ra};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{CZ as v,DZ as Z,EZ as D,kZ as T,lZ as X,mZ as I,oZ as Y,pZ as p}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as P,H2 as V}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as H}from"./cli-0.7.4-85txq06q.mjs";import{epa as F,nma as W}from"./cli-0.7.4-7wr3z77e.mjs";import{Lqa as A,Pqa as C}from"./cli-0.7.4-58p1wenr.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
|
|
2
|
-
export{u as ai,M as bi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{WZ as K,z0 as k,zY as Z}from"./cli-0.7.4-2apswqf5.mjs";import{G2 as J,H2 as H}from"./cli-0.7.4-hnfm0p8b.mjs";import{P8 as v,Q8 as Y}from"./cli-0.7.4-hvnzwb5v.mjs";import{Lqa as V,Pqa as X}from"./cli-0.7.4-58p1wenr.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
|
|
2
|
-
export{N as Fh,C as Gh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{WZ as t,z0 as f,zY as s}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as n,G2 as c,H2 as r}from"./cli-0.7.4-hnfm0p8b.mjs";import{Lqa as m,Pqa as l}from"./cli-0.7.4-58p1wenr.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
|
|
2
|
-
export{T as mg,p as ng};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Pd as j,Qd as w,Rd as _,Sd as D,Td as L,Ud as A,Vd as O}from"./cli-0.7.4-mqbmk6y6.mjs";import{cp as R,eR as h,fp as b,gR as y,sA as W,vA as V,xA as C,xL as X,yL as I}from"./cli-0.7.4-1tkzz9x6.mjs";import{P8 as Q,Q8 as N,Zea as U,ffa as S}from"./cli-0.7.4-hvnzwb5v.mjs";import{Fha as K,Iha as v}from"./cli-0.7.4-d9y5wx3y.mjs";import{Nia as x,Ria as M}from"./cli-0.7.4-9kf16ber.mjs";import{gja as B,nja as F}from"./cli-0.7.4-g9w5x5ns.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
-
`);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
|
|
3
|
-
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
-
export{g as a,a as b,i as c,u as d,n as e,r as f};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{gi as M,hi as w,ii as A}from"./cli-0.7.4-40m5mk3s.mjs";import{Kga as X,Mga as N,Nga as $,Oga as O}from"./cli-0.7.4-sm8wf8qx.mjs";import{Iia as R,Lia as C}from"./cli-0.7.4-hegk157e.mjs";import{Dja as _,qja as L}from"./cli-0.7.4-h0ze5j97.mjs";import{epa as T,hla as H}from"./cli-0.7.4-7wr3z77e.mjs";import{_pa as W,qqa as y}from"./cli-0.7.4-8xxafyv0.mjs";y();N();T();C();_();O();A();import{randomUUID as I}from"crypto";import{mkdir as P,writeFile as U}from"fs/promises";import{basename as v,join as B}from"path";var D=30000;function Q(q){R(`[bridge:inbound-attach] ${q}`)}var j=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),k=$(()=>X.array(j()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=k().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return v(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function x(){return B(L(),"uploads",H())}async function b(q){let G=M();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${w()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await W.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:D,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),F=(q.file_uuid.slice(0,8)||I().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),E=x(),Y=B(E,`${F}-${K}`);try{await P(E,{recursive:!0}),await U(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(b))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function l(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function s(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return l(G,K)}
|
|
2
|
-
export{S as P,f as Q,l as R,s as S};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{zY as f}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as p,H2 as c}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as M}from"./cli-0.7.4-85txq06q.mjs";import{Lqa as o}from"./cli-0.7.4-58p1wenr.mjs";c();var n=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=n.c(3),{getFpsMetrics:s,children:i}=F,t;if(e[0]!==i||e[1]!==s)t=p(d.Provider,{value:s,children:i}),e[0]=i,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
|
|
2
|
-
export{a as fb,l as gb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{lc as x,mc as o}from"./cli-0.7.4-tme1sywb.mjs";import{DC as l,GK as R,JK as i,ML as W,PL as t,Vo as Y,Xo as g,au as Z,dw as K,fw as m,gu as v,nu as $,ou as d,su as y,uK as O,uu as u,vK as a,xC as M}from"./cli-0.7.4-1tkzz9x6.mjs";import{Zea as X,ffa as h}from"./cli-0.7.4-hvnzwb5v.mjs";import{Iia as I,Lia as c}from"./cli-0.7.4-hegk157e.mjs";import{gja as V,nja as f}from"./cli-0.7.4-g9w5x5ns.mjs";import{epa as _,nla as U}from"./cli-0.7.4-7wr3z77e.mjs";import{Pqa as C}from"./cli-0.7.4-58p1wenr.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),K();let G=await W(),[E,F]=await Promise.all([O(),Z(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Y(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await $(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),y();let N=!1;try{await M()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();u();o();v();c();f();h();i();a();l();d();g();m();t()});
|
|
2
|
-
export{Lj as hc,p as ic};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{Rb as DY}from"./cli-0.7.4-nst28yat.mjs";import{Xc as LY,_c as iQ}from"./cli-0.7.4-90d95m4d.mjs";import{Fg as V0,Gg as p6}from"./cli-0.7.4-syg2nab8.mjs";import{pi as pY,qi as A6}from"./cli-0.7.4-evtmfc7t.mjs";import{$O as nY,Am as yZ,As as M0,Cv as I0,DJ as gY,Dm as $Z,Ds as b0,Em as e0,Es as fZ,FF as C0,Fv as i9,Fz as xY,GF as o9,Is as r9,Iz as D6,KJ as dY,MQ as rY,Pk as L9,QN as BY,QO as lY,Qj as KZ,Qk as u6,Rk as z9,SC as HY,SN as rQ,Sk as q9,TC as aQ,Tj as E0,Tk as bZ,Tp as iZ,Uk as Y0,Up as AY,VQ as iY,Vk as D9,Vp as FZ,Wk as XZ,Wp as _Y,Xk as Q0,Yj as hY,Yk as v9,ZO as aY,ZQ as zY,Zk as A9,_K as P9,_k as sY,aL as F9,aR as qY,cD as NY,dD as nQ,dP as w6,eD as RY,eL as M9,eQ as kZ,gD as z6,gx as h0,hA as uY,hx as uZ,iQ as xZ,ix as k0,jA as v6,jx as x0,kD as n,kx as u0,lL as o6,lx as p0,mD as U6,mp as j9,mx as pZ,nB as cY,np as i6,nx as cZ,oB as _6,ox as c0,pA as CY,px as m0,qA as TY,qK as PY,qx as g0,rA as L6,rx as d0,sB as mY,sx as l0,tB as O6,tK as J6,tt as ZY,tx as a0,uH as T0,ut as xQ,ux as n0,vH as s9,vt as JY,vx as r0,wt as lQ,wx as i0,xJ as s,xt as kY,xx as GQ,zQ as wZ}from"./cli-0.7.4-1tkzz9x6.mjs";import{dW as Q9,hW as R6}from"./cli-0.7.4-ee9ansx1.mjs";import{CX as P0,DX as a9,JX as F0,KX as n9,jX as y0,kX as d9,xX as $0,yX as j0,zX as l9}from"./cli-0.7.4-wtz9ed9r.mjs";import{UZ as p,WZ as M,z0 as g9,zY as m9}from"./cli-0.7.4-2apswqf5.mjs";import{E2 as a,F2 as E,G2 as b,H2 as J0}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as c9}from"./cli-0.7.4-85txq06q.mjs";import{N4 as $Y,R4 as K6,m7 as G6,p6 as jY}from"./cli-0.7.4-2haqz80h.mjs";import{C9 as E9,J_ as TZ,L_ as x9,O_ as y9,P8 as _Z,Q8 as k9,Raa as $9,Sea as U0,Vea as p9,Yaa as r6,Zea as e,a9 as GY,c9 as dQ,c_ as a6,ffa as w0,gca as yY,hba as wY,iba as EY,j$ as n6,kba as V6,n$ as Y9,pca as W6,s$ as T6}from"./cli-0.7.4-hvnzwb5v.mjs";import{Cfa as h9,qfa as B0,yfa as L0}from"./cli-0.7.4-rskynrc5.mjs";import{gga as oY,rga as $6}from"./cli-0.7.4-h57hq23q.mjs";import{Kga as Y,Lga as h,Mga as JZ,Nga as q,Oga as EZ}from"./cli-0.7.4-sm8wf8qx.mjs";import{Rga as UY,Sga as X6,Uga as RZ,Xga as z0,Yga as q0,Zga as D0,_ga as v0,bha as A0,cha as _0,oha as O0,uha as u9}from"./cli-0.7.4-r1ebyx3p.mjs";import{Fha as g,Iha as UZ}from"./cli-0.7.4-d9y5wx3y.mjs";import{Iia as I,Lha as Z9,Lia as HZ,Nha as C6,lia as ZZ,mia as WY,qia as PZ}from"./cli-0.7.4-hegk157e.mjs";import{Nia as KY,Ria as gQ}from"./cli-0.7.4-9kf16ber.mjs";import{Uia as VY,gja as w9,hja as tZ,nja as lZ}from"./cli-0.7.4-g9w5x5ns.mjs";import{Ona as J9,Pna as DZ,Qna as H9,Sna as N9,Tna as X0,Vna as B9,bpa as IY,epa as BZ,hla as NZ,nla as W0,ola as eY,wma as OY}from"./cli-0.7.4-7wr3z77e.mjs";import{Lqa as N0,Oqa as hZ,Pqa as OZ,Qqa as rZ}from"./cli-0.7.4-58p1wenr.mjs";var WQ={};hZ(WQ,{selectableUserMessagesFilter:()=>S0,messagesAfterAreOnlySynthetic:()=>VQ,MessageSelector:()=>e9});import{randomUUID as t9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function SZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function e9({messages:Q,onPreRestore:Z,onRestoreMessage:X,onRestoreCode:V,onSummarize:W,onClose:H,preselectedMessage:G}){let K=I0((U)=>U.fileHistory),[B,z]=T.useState(void 0),J=M0(),L=T.useMemo(t9,[]),_=T.useMemo(()=>[...Q.filter(S0),{...s({content:""}),uuid:L}],[Q,L]),[w,v]=T.useState(_.length-1),P=Math.max(0,Math.min(w-Math.floor(CZ/2),_.length-CZ)),f=_.length>1,[D,F]=T.useState(G),[y,S]=T.useState(void 0);T.useEffect(()=>{if(!G||!J)return;let U=!1;return fZ(K,G.uuid).then((R)=>{if(!U)S(R)}),()=>{U=!0}},[G,J,K]);let[O,$]=T.useState(!1),[d,i]=T.useState(null),[o,C]=T.useState("both"),[k,x]=T.useState(""),[A,j]=T.useState("");function N(U){let R=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],c={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return R.push({value:"summarize",label:"Summarize from here",...c,onChange:x}),R.push({value:"nevermind",label:"Never mind"}),R}T.useEffect(()=>{g("tengu_message_selector_opened",{})},[]);async function u(U){Z(),$(!0);try{await X(U),$(!1),H()}catch(R){e(R),$(!1),z(`Failed to restore the conversation:
|
|
2
|
-
${R}`)}}async function l(U){let R=Q.indexOf(U),c=Q.length-1-R;if(g("tengu_message_selector_selected",{index_from_end:c,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){H();return}if(!J){await u(U);return}let m=await fZ(K,U.uuid);F(U),S(m)}async function VZ(U){if(g("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(G)H();else F(void 0);return}if(SZ(U)){Z(),$(!0),i(U),z(void 0);try{let m=U==="summarize_up_to"?"up_to":"from",YZ=(m==="up_to"?A:k).trim()||void 0;await W(D,YZ,m),$(!1),i(null),F(void 0),H()}catch(m){e(m),$(!1),i(null),F(void 0),z(`Failed to summarize:
|
|
3
|
-
${m}`)}return}Z(),$(!0),z(void 0);let R=null,c=null;if(U==="code"||U==="both")try{await V(D)}catch(m){R=m,e(R)}if(U==="conversation"||U==="both")try{await X(D)}catch(m){c=m,e(c)}if($(!1),F(void 0),c&&R)z(`Failed to restore the conversation and code:
|
|
4
|
-
${c}
|
|
5
|
-
${R}`);else if(c)z(`Failed to restore the conversation:
|
|
6
|
-
${c}`);else if(R)z(`Failed to restore the code:
|
|
7
|
-
${R}`);else H()}let WZ=P0(),t=T.useCallback(()=>{if(D&&!G){F(void 0);return}g("tengu_message_selector_cancelled",{}),H()},[H,D,G]),I9=T.useCallback(()=>v((U)=>Math.max(0,U-1)),[]),C9=T.useCallback(()=>v((U)=>Math.min(_.length-1,U+1)),[_.length]),T9=T.useCallback(()=>v(0),[]),R9=T.useCallback(()=>v(_.length-1),[_.length]),f9=T.useCallback(()=>{let U=_[w];if(U)l(U)},[_,w,l]);$0("confirm:no",t,{context:"Confirmation",isActive:!D}),j0({"messageSelector:up":I9,"messageSelector:down":C9,"messageSelector:top":T9,"messageSelector:bottom":R9,"messageSelector:select":f9},{context:"MessageSelector",isActive:!O&&!B&&!D&&f});let[K0,G0]=T.useState({});T.useEffect(()=>{async function U(){if(!J)return;Promise.all(_.map(async(R,c)=>{if(R.uuid!==L){let m=b0(K,R.uuid),YZ=_.at(c+1),AZ=m?XQ(Q,R.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(AZ!==void 0)G0((r)=>({...r,[c]:AZ}));else G0((r)=>({...r,[c]:void 0}))}}))}U()},[_,Q,L,K,J]);let vZ=J&&y?.filesChanged&&y.filesChanged.length>0,S9=!B&&!D&&!G&&f;return b(p,{flexDirection:"column",width:"100%",children:[E(F0,{color:"suggestion"}),b(p,{flexDirection:"column",marginX:1,gap:1,children:[E(M,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:b(M,{color:"error",children:["Error: ",B]})}),!f&&E(a,{children:E(M,{children:"Nothing to rewind to yet."})}),!B&&D&&f&&b(a,{children:[b(M,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),b(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}),b(M,{dimColor:!0,children:["(",L0(new Date(D.timestamp)),")"]})]}),E(YQ,{selectedRestoreOption:o,canRestoreCode:!!vZ,diffStatsForRestore:y}),O&&SZ(d)?b(p,{flexDirection:"row",gap:1,children:[E(T0,{}),E(M,{children:"Summarizing…"})]}):E(C0,{isDisabled:O,options:N(!!vZ),defaultFocusValue:vZ?"both":"conversation",onFocus:(U)=>C(U),onChange:(U)=>VZ(U),onCancel:()=>G?H():F(void 0)}),vZ&&E(p,{marginBottom:1,children:b(M,{dimColor:!0,children:[_Z.warning," Rewinding does not affect files edited manually or via bash."]})})]}),S9&&b(a,{children:[J?E(M,{children:"Restore the code and/or conversation to the point before…"}):E(M,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:_.slice(P,P+CZ).map((U,R)=>{let c=P+R,m=c===w,YZ=U.uuid===L,AZ=c in K0,r=K0[c],IZ=r?.filesChanged&&r.filesChanged.length;return b(p,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:m?b(M,{color:"permission",bold:!0,children:[_Z.pointer," "]}):E(M,{children:" "})}),b(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(H0,{userMessage:U,color:m?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),J&&AZ&&E(p,{height:1,flexDirection:"row",children:r?E(a,{children:E(M,{dimColor:!m,color:"inactive",children:IZ?b(a,{children:[IZ===1&&r.filesChanged[0]?`${QZ.basename(r.filesChanged[0])} `:`${IZ} files changed `,E(f0,{diffStats:r})]}):E(a,{children:"No code changes"})})}):b(M,{dimColor:!0,color:"warning",children:[_Z.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(M,{dimColor:!0,italic:!0,children:WZ.pending?b(a,{children:["Press ",WZ.keyName," again to exit"]}):b(a,{children:[!B&&f&&"Enter to continue · ","Esc to exit"]})})]})]})}function ZQ(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 YQ(Q){let Z=GZ.c(11),{selectedRestoreOption:X,canRestoreCode:V,diffStatsForRestore:W}=Q,H=V&&(X==="both"||X==="code"),G;if(Z[0]!==X)G=ZQ(X),Z[0]=X,Z[1]=G;else G=Z[1];let K;if(Z[2]!==G)K=E(M,{dimColor:!0,children:G}),Z[2]=G,Z[3]=K;else K=Z[3];let B;if(Z[4]!==W||Z[5]!==X||Z[6]!==H)B=!SZ(X)&&(H?E(QQ,{diffStatsForRestore:W}):E(M,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=W,Z[5]=X,Z[6]=H,Z[7]=B;else B=Z[7];let z;if(Z[8]!==K||Z[9]!==B)z=b(p,{flexDirection:"column",children:[K,B]}),Z[8]=K,Z[9]=B,Z[10]=z;else z=Z[10];return z}function QQ(Q){let Z=GZ.c(14),{diffStatsForRestore:X}=Q;if(X===void 0)return;if(!X.filesChanged||!X.filesChanged[0]){let K;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))K=E(M,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=K;else K=Z[0];return K}let V=X.filesChanged.length,W;if(V===1){let K;if(Z[1]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[1]=X.filesChanged[0],Z[2]=K;else K=Z[2];W=K}else if(V===2){let K;if(Z[3]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[3]=X.filesChanged[0],Z[4]=K;else K=Z[4];let B=K,z;if(Z[5]!==X.filesChanged[1])z=QZ.basename(X.filesChanged[1]||""),Z[5]=X.filesChanged[1],Z[6]=z;else z=Z[6];W=`${B} and ${z}`}else{let K;if(Z[7]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[7]=X.filesChanged[0],Z[8]=K;else K=Z[8];W=`${K} and ${X.filesChanged.length-1} other files`}let H;if(Z[9]!==X)H=E(f0,{diffStats:X}),Z[9]=X,Z[10]=H;else H=Z[10];let G;if(Z[11]!==W||Z[12]!==H)G=E(a,{children:b(M,{dimColor:!0,children:["The code will be restored"," ",H," in ",W,"."]})}),Z[11]=W,Z[12]=H,Z[13]=G;else G=Z[13];return G}function f0(Q){let Z=GZ.c(7),{diffStats:X}=Q;if(!X||!X.filesChanged)return;let V;if(Z[0]!==X.insertions)V=b(M,{color:"diffAddedWord",children:["+",X.insertions," "]}),Z[0]=X.insertions,Z[1]=V;else V=Z[1];let W;if(Z[2]!==X.deletions)W=b(M,{color:"diffRemovedWord",children:["-",X.deletions]}),Z[2]=X.deletions,Z[3]=W;else W=Z[3];let H;if(Z[4]!==V||Z[5]!==W)H=b(a,{children:[V,W]}),Z[4]=V,Z[5]=W,Z[6]=H;else H=Z[6];return H}function H0(Q){let Z=GZ.c(31),{userMessage:X,color:V,dimColor:W,isCurrent:H,paddingRight:G}=Q,{columns:K}=y0();if(H){let S;if(Z[0]!==V||Z[1]!==W)S=E(p,{width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"(current)"})}),Z[0]=V,Z[1]=W,Z[2]=S;else S=Z[2];return S}let B=X.message.content,z=typeof B==="string"?null:B[B.length-1],J,L,_,w,v,P,f,D;if(Z[3]!==V||Z[4]!==K||Z[5]!==B||Z[6]!==W||Z[7]!==z||Z[8]!==G){D=Symbol.for("react.early_return_sentinel");Z:{let S=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",O=U0(S);if(E0(O)){let $;if(Z[17]!==V||Z[18]!==W)$=E(p,{flexDirection:"row",width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"((empty message))"})}),Z[17]=V,Z[18]=W,Z[19]=$;else $=Z[19];D=$;break Z}if(O.includes("<bash-input>")){let $=KZ(O,"bash-input");if($){let d;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))d=E(M,{color:"bashBorder",children:"!"}),Z[20]=d;else d=Z[20];D=b(p,{flexDirection:"row",width:"100%",children:[d,b(M,{color:V,dimColor:W,children:[" ",$]})]});break Z}}if(O.includes(`<${RZ}>`)){let $=KZ(O,RZ),d=KZ(O,"command-args"),i=KZ(O,"skill-format")==="true";if($)if(i){D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["Skill(",$,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["/",$," ",d]})});break Z}}L=p,P="row",f="100%",J=M,_=V,w=W,v=G?B0(O,K-G,!0):O.slice(0,500).split(`
|
|
8
|
-
`).slice(0,4).join(`
|
|
9
|
-
`)}Z[3]=V,Z[4]=K,Z[5]=B,Z[6]=W,Z[7]=z,Z[8]=G,Z[9]=J,Z[10]=L,Z[11]=_,Z[12]=w,Z[13]=v,Z[14]=P,Z[15]=f,Z[16]=D}else J=Z[9],L=Z[10],_=Z[11],w=Z[12],v=Z[13],P=Z[14],f=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let F;if(Z[21]!==J||Z[22]!==_||Z[23]!==w||Z[24]!==v)F=E(J,{color:_,dimColor:w,children:v}),Z[21]=J,Z[22]=_,Z[23]=w,Z[24]=v,Z[25]=F;else F=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==f||Z[29]!==F)y=E(L,{flexDirection:P,width:f,children:F}),Z[26]=L,Z[27]=P,Z[28]=f,Z[29]=F,Z[30]=y;else y=Z[30];return y}function XQ(Q,Z,X){let V=Q.findIndex((B)=>B.uuid===Z);if(V===-1)return;let W=X?Q.findIndex((B)=>B.uuid===X):Q.length;if(W===-1)W=Q.length;let H=[],G=0,K=0;for(let B=V+1;B<W;B++){let z=Q[B];if(!z||!xZ(z))continue;let J=z.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let L of J.structuredPatch){let _=TZ(L.lines,(v)=>v.startsWith("+")),w=TZ(L.lines,(v)=>v.startsWith("-"));G+=_,K+=w}}catch{continue}}return{filesChanged:H,insertions:G,deletions:K}}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(kZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,X=typeof Z==="string"?null:Z[Z.length-1],V=typeof Z==="string"?Z.trim():X&&R0(X)?X.text.trim():"";if(V.indexOf(`<${D0}>`)!==-1||V.indexOf(`<${v0}>`)!==-1||V.indexOf(`<${z0}>`)!==-1||V.indexOf(`<${q0}>`)!==-1||V.indexOf(`<${_0}>`)!==-1||V.indexOf(`<${A0}>`)!==-1||V.indexOf(`<${O0}`)!==-1)return!1;return!0}function VQ(Q,Z){for(let X=Z+1;X<Q.length;X++){let V=Q[X];if(!V)continue;if(kZ(V))continue;if(xZ(V))continue;if(V.type==="progress")continue;if(V.type==="system")continue;if(V.type==="attachment")continue;if(V.type==="user"&&V.isMeta)continue;if(V.type==="assistant"){let W=V.message.content;if(Array.isArray(W)){if(W.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(V.type==="user")return!1}return!0}var GZ,T,CZ=7;var KQ=OZ(()=>{k9();UZ();i9();r9();w0();a9();g9();l9();p9();wZ();o9();s9();d9();u9();x9();h9();n9();J0();GZ=N0(m9(),1),T=N0(c9(),1)});var b6={};hZ(b6,{getCronJitterConfig:()=>M6});function M6(){let Q=oY("tengu_kairos_cron_config",XZ,j6),Z=F6().safeParse(Q);return Z.success?Z.data:XZ}var j6=60000,oZ=1800000,P6=2592000000,F6;var I6=OZ(()=>{JZ();$6();sY();EZ();F6=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(oZ),oneShotMaxMs:Y.number().int().min(0).max(oZ),oneShotFloorMs:Y.number().int().min(0).max(oZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(P6).default(XZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as f6,readFile as S6,unlink as X9,writeFile as eZ}from"fs/promises";import{dirname as h6,join as V9}from"path";function zZ(Q){return V9(Q??eY(),k6)}async function W9(Q){let Z;try{Z=await S6(zZ(Q),"utf8")}catch{return}let X=x6().safeParse(Y9(Z,!1));return X.success?X.data:void 0}async function tY(Q,Z){let X=zZ(Z),V=ZZ(Q);try{return await eZ(X,V,{flag:"wx"}),!0}catch(W){let H=tZ(W);if(H==="EEXIST")return!1;if(H==="ENOENT"){await f6(h6(X),{recursive:!0});try{return await eZ(X,V,{flag:"wx"}),!0}catch(G){if(tZ(G)==="EEXIST")return!1;throw G}}throw W}}function sZ(Q){MZ?.(),MZ=Z9(async()=>{await qZ(Q)})}async function Z0(Q){let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V={sessionId:X,pid:process.pid,acquiredAt:Date.now()};if(await tY(V,Z))return LZ=void 0,sZ(Q),I(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let W=await W9(Z);if(W?.sessionId===X){if(W.pid!==process.pid)await eZ(zZ(Z),ZZ(V)),sZ(Q);return!0}if(W&&Q9(W.pid)){if(LZ!==W.sessionId)LZ=W.sessionId,I(`[ScheduledTasks] scheduler lock held by session ${W.sessionId} (PID ${W.pid})`);return!1}if(W)I(`[ScheduledTasks] recovering stale scheduler lock from PID ${W.pid}`);if(await X9(zZ(Z)).catch(()=>{}),await tY(V,Z))return LZ=void 0,sZ(Q),!0;return!1}async function qZ(Q){MZ?.(),MZ=void 0,LZ=void 0;let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V=await W9(Z);if(!V||V.sessionId!==X)return;try{await X9(zZ(Z)),I("[ScheduledTasks] released scheduler lock")}catch{}}var k6,x6,MZ,LZ;var K9=OZ(()=>{JZ();BZ();C6();HZ();lZ();R6();T6();EZ();PZ();k6=V9(".claudin","scheduled_tasks.lock"),x6=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var d6={};hZ(d6,{takeDueSessionWakeup:()=>O9,isRecurringTaskAged:()=>_9,createCronScheduler:()=>g6,buildMissedTaskNotification:()=>U9});function _9(Q,Z,X){if(X===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=X)}function O9(Q){let Z=X0();if(!Z||Q<Z.fireAtMs)return null;return B9(),{prompt:V0(Z.prompt),reason:Z.reason}}function g6(Q){let{onFire:Z,isLoading:X,assistantMode:V=!1,onFireTask:W,onMissed:H,onWakeupFire:G,dir:K,lockIdentity:B,getJitterConfig:z,isKilled:J,filter:L}=Q,_=K||B?{dir:K,lockIdentity:B}:void 0,w=[],v=new Map,P=new Set,f=new Set,D=null,F=null,y=null,S=null,O=!1,$=!1;async function d(C){let k=await q9(K);if(O)return;if(w=k,!C)return;let x=Date.now(),A=A9(k,x).filter((j)=>!j.recurring&&!P.has(j.id)&&(!L||L(j)));if(A.length>0){for(let j of A)P.add(j.id),v.set(j.id,1/0);if(g("tengu_scheduled_task_missed",{count:A.length,taskIds:A.map((j)=>j.id).join(",")}),H)H(A);else Z(U9(A));Y0(A.map((j)=>j.id),K).catch((j)=>I(`[ScheduledTasks] failed to remove missed tasks: ${j}`)),I(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function i(){if(J?.())return;if(X()&&!V)return;let C=Date.now(),k=new Set,x=[],A=z?.()??XZ;function j(N,u){if(L&&!L(N))return;if(k.add(N.id),f.has(N.id))return;let l=v.get(N.id);if(l===void 0)l=N.recurring?Q0(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:v9(N.cron,N.createdAt,N.id,A)??1/0,v.set(N.id,l),I(`[ScheduledTasks] scheduled ${N.id} for ${l===1/0?"never":new Date(l).toISOString()}`);if(C<l)return;I(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),g("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id});let VZ=K===void 0?V0(N.prompt,void 0,N.agentId):N.prompt;if(W)W(VZ===N.prompt?N:{...N,prompt:VZ});else Z(VZ);let WZ=_9(N,C,A.recurringMaxAgeMs);if(WZ){let t=Math.floor((C-N.createdAt)/1000/60/60);I(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),g("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!WZ){let t=Q0(N.cron,C,N.id,A)??1/0;if(v.set(N.id,t),!u)x.push(N.id)}else if(u)N9([N.id]),v.delete(N.id);else f.add(N.id),Y0([N.id],K).catch((t)=>I(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>f.delete(N.id)),v.delete(N.id)}if($){for(let N of w)j(N,!1);if(x.length>0){for(let N of x)f.add(N);D9(x,C,K).catch((N)=>I(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of x)f.delete(N)})}}if(K===void 0){for(let u of H9())j(u,!0);let N=O9(C);if(N!==null)if(I("[ScheduledTasks] firing pending ScheduleWakeup"),g("tengu_schedule_wakeup_fire",{}),G)G(N.prompt,N.reason);else Z(N.prompt)}if(k.size===0){v.clear();return}for(let N of v.keys())if(!k.has(N))v.delete(N)}async function o(){if(O)return;if(D)clearInterval(D),D=null;let{default:C}=await import("./index-0.7.4-cxv3b9bg.mjs");if(O)return;if($=await Z0(_).catch(()=>!1),O){if($)$=!1,qZ(_);return}if(!$)y=setInterval(()=>{Z0(_).then((x)=>{if(O){if(x)qZ(_);return}if(x){if($=!0,y)clearInterval(y),y=null}}).catch((x)=>I(String(x),{level:"error"}))},m6),y.unref?.();d(!0);let k=z9(K);S=C.watch(k,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:c6},ignorePermissionErrors:!0}),S.on("add",()=>void d(!1)),S.on("change",()=>void d(!1)),S.on("unlink",()=>{if(!O)w=[],v.clear()}),F=setInterval(i,G9),F.unref?.()}return{start(){if(O=!1,K!==void 0){I(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${bZ(K)}`),o();return}if(I(`[ScheduledTasks] scheduler start() — enabled=${DZ()}, hasTasks=${bZ()}`),!DZ()&&(V||bZ()))J9(!0);if(DZ()){o();return}D=setInterval((C)=>{if(DZ())C()},G9,o),D.unref?.()},stop(){if(O=!0,D)clearInterval(D),D=null;if(F)clearInterval(F),F=null;if(y)clearInterval(y),y=null;if(S?.close(),S=null,$)$=!1,qZ(_)},getNextFireTime(){let C=1/0;for(let k of v.values())if(k<C)C=k;if(K===void 0){let k=X0();if(k&&k.fireAtMs<C)C=k.fireAtMs}return C===1/0?null:C}}}function U9(Q){let Z=Q.length>1,X=`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 .claudin/scheduled_tasks.json.
|
|
10
|
-
|
|
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.`,V=Q.map((W)=>{let H=`[${L9(W.cron)}, created ${new Date(W.createdAt).toLocaleString()}]`,G=(W.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),K="`".repeat(Math.max(3,G+1));return`${H}
|
|
12
|
-
${K}
|
|
13
|
-
${W.prompt}
|
|
14
|
-
${K}`});return`${X}
|
|
15
|
-
|
|
16
|
-
${V.join(`
|
|
17
|
-
|
|
18
|
-
`)}`}var G9=1000,c6=300,m6=5000;var l6=OZ(()=>{BZ();UZ();u6();sY();K9();HZ();p6()});import{randomUUID as dZ}from"crypto";JZ();EZ();GQ();var JQ=q(()=>Y.unknown()),HQ=q(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),NQ=q(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(u0(),Y.array(HQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),g0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),EX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(c0()),account:m0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:i0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),BQ=q(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),LQ=q(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(k0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),zQ=q(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:x0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),qQ=q(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),DQ=q(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),vQ=q(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),yX=q(()=>Y.object({mcpServers:Y.array(uZ())}).describe("Response containing the current status of all MCP server connections.")),AQ=q(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),_Q=q(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),OQ=q(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),$X=q(()=>Y.object({categories:Y.array(_Q()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(OQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),UQ=q(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),jX=q(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),wQ=q(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),PX=q(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),EQ=q(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),yQ=q(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:p0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),$Q=q(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:JQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),jQ=q(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),h0())}).describe("Replaces the set of dynamically managed MCP servers.")),FX=q(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),PQ=q(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),MX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(uZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),FQ=q(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),MQ=q(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),bQ=q(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),IQ=q(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),CQ=q(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),bX=q(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),TQ=q(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),o0=q(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),RQ=q(()=>Y.union([BQ(),LQ(),NQ(),zQ(),qQ(),DQ(),vQ(),AQ(),yQ(),$Q(),UQ(),wQ(),EQ(),jQ(),PQ(),FQ(),MQ(),bQ(),IQ(),CQ(),TQ()])),mZ=q(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:RQ()})),fQ=q(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),SQ=q(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>mZ())).optional()})),s0=q(()=>Y.object({type:Y.literal("control_response"),response:Y.union([fQ(),SQ()])})),hQ=q(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),t0=q(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),kQ=q(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),IX=q(()=>Y.union([r0(),l0(),a0(),n0(),s0(),mZ(),hQ(),t0()])),CX=q(()=>Y.union([d0(),mZ(),s0(),t0(),kQ()]));lQ();HZ();dQ();lZ();JZ();HZ();EZ();e0();xQ();var xX=q(()=>h.object({tool_name:h.string().describe("The name of the tool requesting permission"),input:h.record(h.string(),h.unknown()).describe("The input for the tool"),tool_use_id:h.string().optional().describe("The unique tool use request ID")})),YY=q(()=>h.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),uQ=q(()=>h.object({behavior:h.literal("allow"),updatedInput:h.record(h.string(),h.unknown()),updatedPermissions:h.array(ZY()).optional().catch((Q)=>{I(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:h.string().optional(),decisionClassification:YY()})),pQ=q(()=>h.object({behavior:h.literal("deny"),message:h.string(),interrupt:h.boolean().optional(),toolUseID:h.string().optional(),decisionClassification:YY()})),gZ=q(()=>h.union([uQ(),pQ()]));function jZ(Q,Z,X,V){let W={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)V.setAppState((K)=>({...K,toolPermissionContext:yZ(K.toolPermissionContext,H)})),$Z(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:X;return{...Q,updatedInput:G,decisionReason:W}}else if(Q.behavior==="deny"&&Q.interrupt)I(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),V.abortController.abort();return{...Q,decisionReason:W}}rQ();gQ();PZ();JZ();aQ();qY();e0();iQ();PZ();nQ();PZ();var cQ=/\u2028|\u2029/g;function mQ(Q){return Q.replace(cQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function QY(Q){return mQ(ZZ(Q))}var oQ="SandboxNetworkAccess";function sQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function tQ(Q,Z,X,V){let W;try{W=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{W=Q.name}return{tool_name:Q.name,action_description:W,tool_use_id:X,request_id:V,input:Z}}var eQ=1000;class Z6{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new NY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>eQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
|
|
19
|
-
`)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let X=Q.indexOf(`
|
|
20
|
-
`);if(X===-1)break;let V=Q.slice(0,X);Q=Q.slice(X+1);let W=await this.processLine(V);if(W)GY("info","cli_stdin_message_parsed",{type:W.type}),yield W}}.bind(this);yield*Z();for await(let X of this.input)Q+=X,yield*Z();if(Q){let X=await this.processLine(Q);if(X)yield X}this.inputClosed=!0;for(let X of this.pendingRequests.values())X.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 X=this.pendingRequests.get(Z);if(!X)return;if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")X.reject(Error(Q.response.error));else{let V=Q.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(W){X.reject(W)}else X.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=DY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let X=Object.keys(Z.variables);for(let[V,W]of Object.entries(Z.variables))process.env[V]=W;I(`[structuredIO] applied update_environment_variables: ${X.join(", ")}`);return}if(Z.type==="control_response"){let X="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(X)HY(X,"completed");let V=this.pendingRequests.get(Z.response.request_id);if(!V){let G=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof G==="string"&&this.resolvedToolUseIds.has(G)){I(`Ignoring duplicate control_response for already-resolved toolUseID=${G} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(V.request),this.pendingRequests.delete(Z.response.request_id),V.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){V.reject(Error(Z.response.error));return}let W=Z.response.response;if(V.schema)try{V.resolve(V.schema.parse(W))}catch(H){V.reject(H)}else V.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){I(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)XY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")XY(`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
|
-
`)}async sendRequest(Q,Z,X,V=dZ()){let W={type:"control_request",request_id:V,request:Q};if(this.inputClosed)throw Error("Stream closed");if(X?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(W),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(W);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:V});let G=this.pendingRequests.get(V);if(G)this.trackResolvedToolUseId(G.request),G.reject(new VY)};if(X)X.addEventListener("abort",H,{once:!0});try{return await new Promise((G,K)=>{this.pendingRequests.set(V,{request:{type:"control_request",request_id:V,request:Q},resolve:(B)=>{G(B)},reject:K,schema:Z})})}finally{if(X)X.removeEventListener("abort",H);this.pendingRequests.delete(V)}}createCanUseTool(Q){return async(Z,X,V,W,H,G)=>{let K=G??await BY(Z,X,V,W,H);if(K.behavior==="allow"||K.behavior==="deny")return K;let B=new AbortController,z=V.abortController.signal,J=()=>B.abort();z.addEventListener("abort",J,{once:!0});try{let L=Y6(Z.name,H,X,V,K.suggestions).then((P)=>({source:"hook",decision:P})),_=dZ();Q?.(tQ(Z,X,H,_));let w=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:X,permission_suggestions:K.suggestions,blocked_path:K.blockedPath,decision_reason:sQ(K.decisionReason),tool_use_id:H,agent_id:V.agentId},gZ(),B.signal,_).then((P)=>({source:"sdk",result:P})),v=await Promise.race([L,w]);if(v.source==="hook"){if(v.decision)return w.catch(()=>{}),B.abort(),v.decision;let P=await w;return jZ(P.result,Z,X,V)}return jZ(v.result,Z,X,V)}catch(L){return jZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:H},Z,X,V)}finally{if(this.getPendingPermissionRequests().length===0)LY("running");z.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(X,V,W)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:X,tool_use_id:V||void 0},JY(),W)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,X,V,W,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:W,url:H,elicitation_id:G,requested_schema:X},o0(),V)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:oQ,input:{host:Q.host},tool_use_id:dZ(),description:`Allow network connection to ${Q.host}?`},gZ())).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 XY(Q){console.error(Q),process.exit(1)}async function Y6(Q,Z,X,V,W){let G=V.getAppState().toolPermissionContext.mode,K=zY(Q,Z,X,V,G,W,V.abortController.signal);for await(let B of K)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let J=z.updatedInput||X,L=z.updatedPermissions??[];if(L.length>0){$Z(L);let _=V.getAppState(),w=yZ(_.toolPermissionContext,L);V.setAppState((v)=>{if(v.toolPermissionContext===w)return v;return{...v,toolPermissionContext:w}})}return{behavior:"allow",updatedInput:J,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}_Y();function HV(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let X="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?Q6(Z):Z,uuid:X}}function Q6(Q){if(!Q.some(vY))return Q;return Q.map((Z)=>{if(!vY(Z))return Z;let X=Z.source,V=typeof X.mediaType==="string"&&X.mediaType?X.mediaType:AY(Z.source.data);return{...Z,source:{type:"base64",media_type:V,data:Z.source.data}}})}function vY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}BZ();J6();V6();G6();X6();K6();W6();import{randomUUID as H6}from"crypto";function N6(Q){return Q===wY?EY:Q}function OV(Q){let X=yY()?.outputStyle??PY,V={type:"system",subtype:"init",cwd:UY(),session_id:NZ(),tools:Q.tools.map((W)=>N6(W.name)),mcp_servers:Q.mcpClients.map((W)=>({name:W.name,status:W.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),apiKeySource:jY().source,betas:OY(),claude_code_version:"99.0.0",output_style:X,agents:Q.agents.map((W)=>W.agentType),skills:Q.skills.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),plugins:Q.plugins.map((W)=>({name:W.name,path:W.path,source:W.source})),uuid:H6()};return V.fast_mode_state=$Y(Q.model,Q.fastMode),V}var FY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function B6(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let V=[],W=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let L=Q[J];if(W){if(W==="["&&L==="["){H=J;continue}if(L!==FY[W])continue;if(W==="'"&&G(Q[J+1]))continue;V.push({start:H,end:J+1}),W=null}else if(L==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||L==="'"&&!G(Q[J-1])||L!=="<"&&L!=="'"&&L in FY)W=L,H=J}let K=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let J of z){if(J.index===void 0)continue;let L=J.index,_=L+J[0].length;if(V.some((P)=>L>=P.start&&L<P.end))continue;let w=Q[L-1],v=Q[_];if(w==="/"||w==="\\"||w==="-")continue;if(v==="/"||v==="\\"||v==="-"||v==="?")continue;if(v==="."&&G(Q[_+1]))continue;K.push({word:J[0],start:L,end:_})}return K}function wV(Q){return B6(Q,"ultrareview")}UZ();wZ();w6();_6();O6();v6();qY();_Y();D6();wZ();U6();A6();import{randomUUID as E6}from"crypto";BZ();UZ();wZ();L6();z6();import{randomUUID as q6}from"crypto";function MY(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 bY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function fY(Q,Z,X,V,W,H,G){let K=q6();IY(K);let B=typeof Q==="string"?Q:Q.find((w)=>w.type==="text")?.text||"";RY(B);let z=typeof Q==="string"?Q:Q.findLast((w)=>w.type==="text")?.text||"";if(z)TY("user_prompt",{prompt_length:String(z.length),prompt:CY(z),"prompt.id":K});let J=MY(B),L=bY(B);if(g("tengu_input_prompt",{is_negative:J,is_keep_going:L}),Z.length>0){let w=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...w,...Z],uuid:W,imagePasteIds:X.length>0?X:void 0,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}return{messages:[s({content:Q,uuid:W,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}async function iV({input:Q,preExpansionInput:Z,mode:X,setToolJSX:V,context:W,pastedContents:H,ideSelection:G,messages:K,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:J,querySource:L,canUseTool:_,skipSlashCommands:w,bridgeOrigin:v,isMeta:P,skipAttachments:f}){let D=typeof Q==="string"?Q:null;if(X==="prompt"&&D!==null&&!P)B?.(D);n("query_process_user_input_base_start");let F=W.getAppState(),y=await y6(Q,X,V,W,H,G,K,z,J,L,_,F.toolPermissionContext.mode,w,v,P,f,Z);if(n("query_process_user_input_base_end"),!y.shouldQuery)return y;n("query_hooks_start");let S=hY(Q)||"";for await(let O of iY(S,F.toolPermissionContext.mode,W,W.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let $=rY(O.blockingError);return{messages:[gY(`${$}
|
|
22
|
-
|
|
23
|
-
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let $=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:$})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(kY({type:"hook_additional_context",content:O.additionalContexts.map(SY),hookName:"UserPromptSubmit",toolUseID:`hook-${E6()}`,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:SY(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return n("query_hooks_end"),y}var aZ=1e4;function SY(Q){if(Q.length>aZ)return`${Q.substring(0,aZ)}… [output truncated - exceeded ${aZ} characters]`;return Q}async function y6(Q,Z,X,V,W,H,G,K,B,z,J,L,_,w,v,P,f){let D=null,F=[],y=[],S=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){n("query_image_processing_start");let A=[];for(let N of Q)if(N.type==="image"){let u=await iZ(N);if(u.dimensions){let l=FZ(u.dimensions);if(l)y.push(l)}A.push(u.block)}else A.push(N);S=A,n("query_image_processing_end");let j=A[A.length-1];if(j?.type==="text")D=j.text,F=A.slice(0,-1);else F=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=W?Object.values(W).filter(cY):[],$=O.map((A)=>A.id),d=W?await xY(W):new Map;n("query_pasted_image_processing_start");let i=await Promise.all(O.map(async(A)=>{let j={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return g("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await iZ(j),originalDimensions:A.dimensions,sourcePath:A.sourcePath??d.get(A.id)}})),o=[];for(let{resized:A,originalDimensions:j,sourcePath:N}of i){if(A.dimensions){let u=FZ(A.dimensions,N);if(u)y.push(u)}else if(j){let u=FZ(j,N);if(u)y.push(u)}else if(N)y.push(`[Image source: ${N}]`);o.push(A.block)}n("query_pasted_image_processing_end");let C=_;if(w&&D!==null&&D.startsWith("/")){let A=pY(D),j=A?nY(A.commandName,V.options.commands):void 0;if(j)if(aY(j))C=!1;else{let N=`/${lY(j)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:K}),dY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let k=!P&&D!==null&&(Z!=="prompt"||C||!D.startsWith("/"));n("query_attachment_loading_start");let x=k?await uY(mY(D,V,H??null,[],G,z)):[];if(n("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.7.4-8j3chrnm.mjs");return nZ(await A(D,F,x,V,X),y)}if(D!==null&&!C&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-0.7.4-j53jaae7.mjs"),j=await A(D,F,o,x,V,X,K,B,J);return nZ(j,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),j=x.find((N)=>N.attachment.type==="agent_mention");if(j){let N=`@agent-${j.attachment.agentType}`,u=A===N,l=A.startsWith(N)&&!u;g("tengu_subagent_at_mention",{is_subagent_only:u,is_prefix:l})}}return nZ(fY(S,o,$,x,K,L,v),y)}function nZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((X)=>({type:"text",text:X})),isMeta:!0}));return Q}i6();BZ();HZ();lZ();n6();a6();w0();o6();r6();import{isAbsolute as s6,resolve as t6}from"path";function e6(Q,Z,X){let V=[],W=[],H=[];for(let[G,K]of Object.entries(Q)){let B=Z[G],z=b9(K.source,X?.projectRoot);if(!B)V.push(G);else if(K.sourceIsFallback)H.push(G);else if(!j9(z,B.source))W.push({name:G,declaredSource:z,materializedSource:B.source});else H.push(G)}return{missing:V,sourceChanged:W,upToDate:H}}async function IW(Q){let Z=P9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let X;try{X=await F9()}catch(J){e(J),X={}}let V=e6(Z,X,{projectRoot:W0()}),W=[...V.missing.map((J)=>({name:J,source:b9(Z[J].source),action:"install"})),...V.sourceChanged.map(({name:J,declaredSource:L})=>({name:J,source:L,action:"update"}))],H=[],G=[];for(let J of W){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&$9(J.source)&&!await y9(J.source.path)){I(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:V.upToDate,skipped:H};I(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let K=[],B=[],z=[];for(let J=0;J<G.length;J++){let{name:L,source:_,action:w}=G[J];Q?.onProgress?.({type:"installing",name:L,action:w,index:J+1,total:G.length});try{let v=await M9(_);if(w==="install")K.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:v.alreadyMaterialized})}catch(v){let P=w9(v);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(v)}}return{installed:K,updated:B,failed:z,upToDate:V.upToDate,skipped:H}}function b9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!s6(Q.path)){let X=Z??W0(),V=E9(X);return{...Q,path:t6(V??X,Q.path)}}return Q}
|
|
24
|
-
export{HV as X,N6 as Y,OV as Z,e9 as _,S0 as $,VQ as aa,WQ as ba,KQ as ca,wV as da,iV as ea,gZ as fa,jZ as ga,QY as ha,oQ as ia,Z6 as ja,e6 as ka,IW as la,M6 as ma,b6 as na,I6 as oa,g6 as pa,d6 as qa,l6 as ra};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{uH as U,vH as w}from"./cli-0.7.4-1tkzz9x6.mjs";import{UZ as N,WZ as O,z0 as k,zY as f}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as M,G2 as H,H2 as R}from"./cli-0.7.4-hnfm0p8b.mjs";import{Lqa as Y,Pqa as Z}from"./cli-0.7.4-58p1wenr.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
|
|
2
|
-
export{_ as Wg,A as Xg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{MN as O,NN as P,ON as Q,PN as U,Ri as M,SN as X,Si as W}from"./cli-0.7.4-1tkzz9x6.mjs";import{Pqa as V}from"./cli-0.7.4-58p1wenr.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
|
|
2
|
-
export{F as qg,$ as rg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Oqa as n,Pqa as o}from"./cli-0.7.4-58p1wenr.mjs";var p={};n(p,{stripProtoFields:()=>e,logEventAsync:()=>c,logEvent:()=>i,attachAnalyticsSink:()=>r,_resetForTesting:()=>s});function e(t){return t}function r(){}function i(){}async function c(){}function s(){}var u=()=>{};
|
|
2
|
-
export{i as Fha,c as Gha,p as Hha,u as Iha};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Bda as R,e9 as Q,g9 as M,gda as P}from"./cli-0.7.4-hvnzwb5v.mjs";import{Iia as G,Lia as C}from"./cli-0.7.4-hegk157e.mjs";import{Pqa as j}from"./cli-0.7.4-58p1wenr.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function U(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function k(q){let z=q.split(`
|
|
2
|
-
`),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of U()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function N(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return k(J)}async function B(){for(let q of v)if(await _(q))return q;return null}async function m(){if(Z!==void 0)return Z;try{let q=await N();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await B();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await m();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var f=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
|
|
3
|
-
export{g as c3,w as d3,f as e3};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Bda as y,gda as P}from"./cli-0.7.4-hvnzwb5v.mjs";import{Pqa as U}from"./cli-0.7.4-58p1wenr.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
|
|
2
|
-
export{G as NW,M as OW,N as PW,Y as QW,C as RW,_ as SW,R as TW,f as UW,E as VW,I as WW,k as XW,A as YW,b as ZW,h as _W,m as $W,p as aX,u as bX,T as cX,e as dX,W as eX,a as fX,s as gX,r as hX,g as iX};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Pqa as J}from"./cli-0.7.4-58p1wenr.mjs";import v from"node:path";function Z(q){if(q.endsWith(v.sep)||q.endsWith("/"))return K;let j=v.basename(q).toLowerCase();if(j.startsWith("readme"))return B[".md"];if(j.startsWith(".env"))return Q;let z=U[j];if(z)return z;let H=v.extname(j);return B[H]??P}var K="",Y="",P="",Q="",U,B;var V=J(()=>{U={"package.json":"",dockerfile:"",".dockerignore":"",".gitignore":"",".gitattributes":"",license:"","bun.lock":""},B={".ts":"",".tsx":"",".js":"",".jsx":"",".mjs":"",".cjs":"",".json":"",".md":"",".markdown":"",".toml":"",".yaml":"",".yml":"",".py":"",".rs":"",".go":"",".sh":"",".bash":"",".zsh":"",".css":"",".scss":"",".html":"",".htm":"",".png":"",".jpg":"",".jpeg":"",".gif":"",".svg":"",".webp":"",".lock":""}});
|
|
2
|
-
export{K as Th,Y as Uh,Z as Vh,V as Wh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a4 as H,b4 as _,c4 as Y,d4 as y}from"./cli-0.7.4-2haqz80h.mjs";import{a9 as M,c9 as f}from"./cli-0.7.4-hvnzwb5v.mjs";import{Iia as x,Lha as F,Lia as S,Nha as b,uia as P,yia as p}from"./cli-0.7.4-hegk157e.mjs";import{gja as V,nja as R}from"./cli-0.7.4-g9w5x5ns.mjs";import{Dja as g,tja as U}from"./cli-0.7.4-h0ze5j97.mjs";import{epa as A,qna as D,rna as W}from"./cli-0.7.4-7wr3z77e.mjs";import{Pqa as L}from"./cli-0.7.4-58p1wenr.mjs";function I(){let q=D();if(q!==void 0)return q;let G=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!G){let w=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,z=Y(w,"session ingress token");return W(z),z}let Q=parseInt(G,10);if(Number.isNaN(Q))return x(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${G}`,{level:"error"}),W(null),null;try{let w=P(),z=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${Q}`:`/proc/self/fd/${Q}`,X=w.readFileSync(z,{encoding:"utf8"}).trim();if(!X)return x("File descriptor contained empty token",{level:"error"}),W(null),null;return x(`Successfully read token from file descriptor ${Q}`),W(X),_(H,X,"session ingress token"),X}catch(w){x(`Failed to read token from file descriptor ${Q}: ${V(w)}`,{level:"error"});let z=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,X=Y(z,"session ingress token");return W(X),X}}function k(){let q=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(q)return q;return I()}function s(){let q=k();if(!q)return{};if(q.startsWith("sk-ant-sid")){let G={Cookie:`sessionKey=${q}`},Q=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(Q)G["X-Organization-Uuid"]=Q;return G}return{Authorization:`Bearer ${q}`}}function o(q){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=q}var u=L(()=>{A();y();S();R();p()});function E(){j(),K=setInterval(()=>{if(M("debug","session_keepalive_heartbeat",{refcount:J}),U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()},C)}function v(){if(j(),$===null)return;B=setTimeout(()=>{M("info","session_idle_30s"),B=null},C)}function j(){if(B!==null)clearTimeout(B),B=null}function e(q){if($=q,J>0&&K===null)E()}function qq(){if($=null,K!==null)clearInterval(K),K=null;j()}function Gq(){if(U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()}function Jq(){return $!==null}function Kq(q){if(J++,Z.set(q,(Z.get(q)??0)+1),J===1){if(O=Date.now(),$!==null&&K===null)E()}if(!N)N=!0,F(async()=>{M("info","session_activity_at_shutdown",{refcount:J,active:Object.fromEntries(Z),oldest_activity_ms:J>0&&O!==null?Date.now()-O:null})})}function Qq(q){if(J>0)J--;let G=(Z.get(q)??0)-1;if(G>0)Z.set(q,G);else Z.delete(q);if(J===0&&K!==null)clearInterval(K),K=null,v()}var C=30000,$=null,J=0,Z,O=null,K=null,B=null,N=!1;var h=L(()=>{b();f();g();Z=new Map});var $q;var m=L(()=>{$q={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,output_tokens_details:{thinking_tokens:0},server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"}});
|
|
2
|
-
export{k as EV,s as FV,o as GV,u as HV,e as IV,qq as JV,Gq as KV,Jq as LV,Kq as MV,Qq as NV,h as OV,$q as PV,m as QV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{B3 as W,C3 as V,O6 as j,m7 as f,p6 as M,x3 as G}from"./cli-0.7.4-2haqz80h.mjs";import{Bca as x,Cca as B,D_ as w,E_ as z,H_ as Y}from"./cli-0.7.4-hvnzwb5v.mjs";import{Eha as F,wha as J}from"./cli-0.7.4-nbnqrjgm.mjs";import{Pqa as Z}from"./cli-0.7.4-58p1wenr.mjs";function g(){q=void 0,w()}function p(){if(q!==void 0)return q;if(G()!=="firstParty")return q=z(!1);if(!W())return q=z(!1);if(x())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=j();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(J)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=M({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var X=Z(()=>{F();f();V();B();Y()});function S(Q){let $=Q.toUpperCase();return K.has($)||k.some((m)=>$.startsWith(m))}var K,k,y,I;var b=Z(()=>{K=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDE_CODE_SUBAGENT_MODEL"]),k=["VERTEX_REGION_CLAUDE_"];y=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDE_CODE_API_KEY_HELPER_TTL_MS","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS","CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDE_CODE_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL","CLAUDE_CODE_MAX_OUTPUT_TOKENS","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SUBAGENT_MODEL","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
|
|
2
|
-
export{g as oT,p as pT,X as qT,S as rT,y as sT,I as tT,b as uT};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{JW as c,yW as T}from"./cli-0.7.4-m1f3fc2v.mjs";import{s1 as w,v1 as n}from"./cli-0.7.4-abs9vv3n.mjs";import{d9 as M,e_ as y,f9 as X,f_ as g,g9 as f}from"./cli-0.7.4-hvnzwb5v.mjs";import{Iia as Z,Lha as R,Lia as h,Nha as F,lia as K,mia as v,qia as m}from"./cli-0.7.4-hegk157e.mjs";import{gja as Y,lja as W,nja as D}from"./cli-0.7.4-g9w5x5ns.mjs";import{Dja as S,qja as E}from"./cli-0.7.4-h0ze5j97.mjs";import{epa as j,hla as k,lla as A,nla as N}from"./cli-0.7.4-7wr3z77e.mjs";import{Pqa as H}from"./cli-0.7.4-58p1wenr.mjs";function O(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,J=10){if(process.platform==="win32"){let Q=`
|
|
2
|
-
$pid = ${String(q)}
|
|
3
|
-
$ancestors = @()
|
|
4
|
-
for ($i = 0; $i -lt ${J}; $i++) {
|
|
5
|
-
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
|
|
6
|
-
if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
7
|
-
$pid = $proc.ParentProcessId
|
|
8
|
-
$ancestors += $pid
|
|
9
|
-
}
|
|
10
|
-
$ancestors -join ','
|
|
11
|
-
`.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.trim().split(",").filter(Boolean).map((G)=>parseInt(G,10)).filter((G)=>!isNaN(G))}let L=`pid=${String(q)}; for i in $(seq 1 ${J}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
|
|
12
|
-
`).filter(Boolean).map((Q)=>parseInt(Q,10)).filter((Q)=>!isNaN(Q))}function e(q){try{let J=String(q),L=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${J}\\").CommandLine"`:`ps -o command= -p ${J}`,z=M(L,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,J=10){if(process.platform==="win32"){let Q=`
|
|
13
|
-
$currentPid = ${String(q)}
|
|
14
|
-
$commands = @()
|
|
15
|
-
for ($i = 0; $i -lt ${J}; $i++) {
|
|
16
|
-
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
|
|
17
|
-
if (-not $proc) { break }
|
|
18
|
-
if ($proc.CommandLine) { $commands += $proc.CommandLine }
|
|
19
|
-
if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
20
|
-
$currentPid = $proc.ParentProcessId
|
|
21
|
-
}
|
|
22
|
-
$commands -join [char]0
|
|
23
|
-
`.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.split("\x00").filter(Boolean)}let L=`currentpid=${String(q)}; for i in $(seq 1 ${J}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var _=H(()=>{f()});import{chmod as u,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as b}from"fs/promises";import{join as $}from"path";function U(){return $(E(),"sessions")}function o(){return}async function Uq(){if(T()!=null)return!1;let q=o()??"interactive",J=U(),L=$(J,`${process.pid}.json`);R(async()=>{try{await P(L)}catch{}});try{return await a(J,{recursive:!0,mode:448}),await u(J,448),await b(L,K({pid:process.pid,sessionId:k(),cwd:N(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),A((z)=>{B({sessionId:z})}),!0}catch(z){return Z(`[concurrentSessions] register failed: ${Y(z)}`),!1}}async function B(q){let J=$(U(),`${process.pid}.json`);try{let L=v(await p(J,"utf8"));await b(J,K({...L,...q}))}catch(L){Z(`[concurrentSessions] updatePidFile failed: ${Y(L)}`)}}async function Bq(q){if(!q)return;await B({name:q})}async function C(q){await B({bridgeSessionId:q})}async function Mq(){let q=U(),J;try{J=await l(q)}catch(z){if(!W(z))Z(`[concurrentSessions] readdir failed: ${Y(z)}`);return 0}let L=0;for(let z of J){if(!/^\d+\.json$/.test(z))continue;let Q=parseInt(z.slice(0,-5),10);if(Q===process.pid){L++;continue}if(O(Q))L++;else if(y()!=="wsl")P($(q,z)).catch(()=>{})}return L}var I=H(()=>{j();F();h();S();D();_();g();m();c()});function Aq(q){x=q,C(r()??null).catch(()=>{})}function d(){return x}function r(){let q=d();return q?w(q.bridgeSessionId):void 0}var x=null;var t=H(()=>{I();n()});
|
|
24
|
-
export{O as dW,i as eW,e as fW,qq as gW,_ as hW,Uq as iW,Bq as jW,C as kW,Mq as lW,I as mW,Aq as nW,d as oW,r as pW,t as qW};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Rd as Jq,Vd as Tq}from"./cli-0.7.4-mqbmk6y6.mjs";import{ae as zq,be as bq}from"./cli-0.7.4-8hskaxte.mjs";import{FF as r,GF as Gq,GK as S,JK as Nq,ML as D,On as n,PL as Cq,Pn as yq,UK as s,VK as _q,ZK as a,aL as l,eL as t,jL as e,lL as Rq,sL as qq,uH as u,vH as fq,wL as Fq}from"./cli-0.7.4-1tkzz9x6.mjs";import{UZ as F,WZ as C,pY as i,qY as Kq,z0 as Oq,zY as Bq}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as v,G2 as R,H2 as p}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as Lq}from"./cli-0.7.4-85txq06q.mjs";import{O_ as x,U8 as g,V8 as Zq,Zea as m,e9 as $,e_ as o,f_ as Hq,ffa as wq,g9 as Xq,j$ as vq}from"./cli-0.7.4-hvnzwb5v.mjs";import{Iia as B,Lia as Yq}from"./cli-0.7.4-hegk157e.mjs";import{fja as P,ija as h,nja as Wq}from"./cli-0.7.4-g9w5x5ns.mjs";import{Lqa as d,Pqa as Vq}from"./cli-0.7.4-58p1wenr.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
|
|
2
|
-
export{Iq as Hd,Yz as Id,Dq as Jd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Pqa as C}from"./cli-0.7.4-58p1wenr.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
|
-
export{L as li,M as mi,N as ni,H as oi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ci as W,Di as B}from"./cli-0.7.4-en1ggcz7.mjs";import{F2 as U,H2 as J}from"./cli-0.7.4-hnfm0p8b.mjs";import{d3 as V,e3 as v}from"./cli-0.7.4-da69w12w.mjs";import{N3 as N,O3 as _,O6 as Q,T6 as R,m7 as $}from"./cli-0.7.4-2haqz80h.mjs";import{Zea as K,ffa as Z}from"./cli-0.7.4-hvnzwb5v.mjs";import{Pqa as Y}from"./cli-0.7.4-58p1wenr.mjs";async function w(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await V("https://claude.ai/upgrade/max"),U(W,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var E=Y(()=>{_();$();v();Z();B();J()});
|
|
2
|
-
export{w as ec,E as fc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{FF as A,HF as O,On as M,Pn as G}from"./cli-0.7.4-1tkzz9x6.mjs";import{UZ as w,WZ as d,_Z as v,z0 as W,zY as U}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as i,G2 as a,H2 as S}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as N}from"./cli-0.7.4-85txq06q.mjs";import{Bda as P,nda as I}from"./cli-0.7.4-hvnzwb5v.mjs";import{Fha as h,Iha as L}from"./cli-0.7.4-d9y5wx3y.mjs";import{Lqa as b,Pqa as B}from"./cli-0.7.4-58p1wenr.mjs";function V(t){let e=T.c(18),{onDone:g,isStandaloneDialog:D,externalIncludes:r}=t,s;if(e[0]===Symbol.for("react.memo_cache_sentinel"))s=[],e[0]=s;else s=e[0];k.default.useEffect(q,s);let c;if(e[1]!==g)c=(E)=>{if(E==="no")h("tengu_claude_md_external_includes_dialog_declined",{}),I($);else h("tengu_claude_md_external_includes_dialog_accepted",{}),I(Y);g()},e[1]=g,e[2]=c;else c=e[2];let l=c,u;if(e[3]!==l)u=()=>{l("no")},e[3]=l,e[4]=u;else u=e[4];let y=u,C=!D,x=!D,m;if(e[5]===Symbol.for("react.memo_cache_sentinel"))m=i(d,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),e[5]=m;else m=e[5];let o;if(e[6]!==r)o=r&&r.length>0&&a(w,{flexDirection:"column",children:[i(d,{dimColor:!0,children:"External imports:"}),r.map(R)]}),e[6]=r,e[7]=o;else o=e[7];let p;if(e[8]===Symbol.for("react.memo_cache_sentinel"))p=a(d,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",i(v,{url:"https://code.claude.com/docs/en/security"})," "]}),e[8]=p;else p=e[8];let f;if(e[9]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],e[9]=f;else f=e[9];let n;if(e[10]!==l)n=i(A,{options:f,onChange:(E)=>l(E)}),e[10]=l,e[11]=n;else n=e[11];let _;if(e[12]!==y||e[13]!==n||e[14]!==C||e[15]!==x||e[16]!==o)_=a(M,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:y,hideBorder:C,hideInputGuide:x,children:[m,o,p,n]}),e[12]=y,e[13]=n,e[14]=C,e[15]=x,e[16]=o,e[17]=_;else _=e[17];return _}function R(t,e){return a(d,{dimColor:!0,children:[" ",t.path]},e)}function Y(t){return{...t,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function $(t){return{...t,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function q(){h("tengu_claude_md_includes_dialog_shown",{})}var T,k;var z=B(()=>{L();W();P();O();G();S();T=b(U(),1),k=b(N(),1)});
|
|
2
|
-
export{V as _g,z as $g};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Pqa as B}from"./cli-0.7.4-58p1wenr.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
|
|
2
|
-
export{F as pi,C as qi};
|