@claudiolabs/claudio 0.1.10 → 0.1.12
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/bin/claudio +50 -1
- package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +1 -0
- package/dist/chunks/App-0.1.12-t1g68ag4.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.1.12-x3zt5579.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +1 -0
- package/dist/chunks/DiffDialog-0.1.12-tzjdg5ys.mjs +3 -0
- package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +1 -0
- package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +1 -0
- package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +1 -0
- package/dist/chunks/InProcessTransport-0.1.12-xnrc78z1.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +1 -0
- package/dist/chunks/Onboarding-0.1.12-tc4trc3y.mjs +1 -0
- package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +1 -0
- package/dist/chunks/REPL-0.1.12-4750qvss.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.1.12-f1byjres.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +1 -0
- package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +1 -0
- package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +1 -0
- package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +1 -0
- package/dist/chunks/agents-0.1.12-1dz073e3.mjs +3 -0
- package/dist/chunks/agents-0.1.12-vfwpnn0d.mjs +111 -0
- package/dist/chunks/api-0.1.12-e314x4g9.mjs +1 -0
- package/dist/chunks/asciicast-0.1.12-nwzfr5gz.mjs +1 -0
- package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +1 -0
- package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +1 -0
- package/dist/chunks/auth-0.1.12-vhdwtwhb.mjs +1 -0
- package/dist/chunks/autoMode-0.1.12-xjr5qd6q.mjs +48 -0
- package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +1 -0
- package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +4 -0
- package/dist/chunks/bridgePointer-0.1.12-vdj4j4ke.mjs +1 -0
- package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +1 -0
- package/dist/chunks/buddy-0.1.12-4q50s2x4.mjs +3 -0
- package/dist/chunks/cacache-0.1.12-mtaw8981.mjs +1 -0
- package/dist/chunks/cache-probe-0.1.12-4s8cc2km.mjs +21 -0
- package/dist/chunks/cacheStats-0.1.12-qqcw6b5n.mjs +4 -0
- package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +1 -0
- package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +1 -0
- package/dist/chunks/chromeNativeHost-0.1.12-7e2jv2nr.mjs +2 -0
- package/dist/chunks/claude-for-chrome-mcp-0.1.12-2q97mema.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.1.12-1yrkynq4.mjs +1 -0
- package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +1 -0
- package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +1 -0
- package/dist/chunks/cli-0.1.12-024a8zz7.mjs +2 -0
- package/dist/chunks/cli-0.1.12-04jw23rj.mjs +2 -0
- package/dist/chunks/cli-0.1.12-04v3yab2.mjs +3 -0
- package/dist/chunks/cli-0.1.12-0eznapyf.mjs +2 -0
- package/dist/chunks/cli-0.1.12-0kqx19vz.mjs +2 -0
- package/dist/chunks/cli-0.1.12-0vf5f6qn.mjs +2 -0
- package/dist/chunks/cli-0.1.12-0x3cd401.mjs +2 -0
- package/dist/chunks/cli-0.1.12-0xzdygm2.mjs +50 -0
- package/dist/chunks/cli-0.1.12-19as1myk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +2 -0
- package/dist/chunks/cli-0.1.12-1hv04bp7.mjs +2 -0
- package/dist/chunks/cli-0.1.12-1x06khjr.mjs +2 -0
- package/dist/chunks/cli-0.1.12-238c85zt.mjs +2 -0
- package/dist/chunks/cli-0.1.12-242der7s.mjs +5036 -0
- package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +2 -0
- package/dist/chunks/cli-0.1.12-2fajd44n.mjs +2 -0
- package/dist/chunks/cli-0.1.12-2sqxe53a.mjs +2 -0
- package/dist/chunks/cli-0.1.12-2v18rdhk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-2yy1nw3s.mjs +2 -0
- package/dist/chunks/cli-0.1.12-2zqgfhrb.mjs +2 -0
- package/dist/chunks/cli-0.1.12-34gqc6yf.mjs +2 -0
- package/dist/chunks/cli-0.1.12-352pjhkh.mjs +2 -0
- package/dist/chunks/cli-0.1.12-37ezy1qg.mjs +2 -0
- package/dist/chunks/cli-0.1.12-37ga9zc2.mjs +2 -0
- package/dist/chunks/cli-0.1.12-3d2xpvk2.mjs +2 -0
- package/dist/chunks/cli-0.1.12-3ywnr2v1.mjs +2 -0
- package/dist/chunks/cli-0.1.12-4gj8p030.mjs +22 -0
- package/dist/chunks/cli-0.1.12-4qedbzt3.mjs +24 -0
- package/dist/chunks/cli-0.1.12-4sh0f4y1.mjs +3 -0
- package/dist/chunks/cli-0.1.12-4syxz3pe.mjs +12 -0
- package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +2 -0
- package/dist/chunks/cli-0.1.12-4wwhk7dc.mjs +2 -0
- package/dist/chunks/cli-0.1.12-4ys47rex.mjs +2 -0
- package/dist/chunks/cli-0.1.12-52dbx2x6.mjs +4 -0
- package/dist/chunks/cli-0.1.12-5b3j1c9c.mjs +2 -0
- package/dist/chunks/cli-0.1.12-5exp787z.mjs +18 -0
- package/dist/chunks/cli-0.1.12-5k9mfnz0.mjs +2 -0
- package/dist/chunks/cli-0.1.12-5p9g1vcm.mjs +2 -0
- package/dist/chunks/cli-0.1.12-5pw10pf8.mjs +2 -0
- package/dist/chunks/cli-0.1.12-5qhkbp8w.mjs +2 -0
- package/dist/chunks/cli-0.1.12-5ye0t0xd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-6238zg7k.mjs +2 -0
- package/dist/chunks/cli-0.1.12-6ddq5n4e.mjs +2 -0
- package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +16 -0
- package/dist/chunks/cli-0.1.12-6rjh20wh.mjs +2 -0
- package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +2 -0
- package/dist/chunks/cli-0.1.12-6zryzryc.mjs +2 -0
- package/dist/chunks/cli-0.1.12-73k5qd97.mjs +13 -0
- package/dist/chunks/cli-0.1.12-74tt2500.mjs +2 -0
- package/dist/chunks/cli-0.1.12-756ngehz.mjs +4 -0
- package/dist/chunks/cli-0.1.12-7da43cy1.mjs +2 -0
- package/dist/chunks/cli-0.1.12-7ehqw1dk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-7mjpbm22.mjs +2 -0
- package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +2 -0
- package/dist/chunks/cli-0.1.12-7xsa2bcp.mjs +2 -0
- package/dist/chunks/cli-0.1.12-817sd5bc.mjs +6 -0
- package/dist/chunks/cli-0.1.12-830kqdpq.mjs +3 -0
- package/dist/chunks/cli-0.1.12-86nmrm6g.mjs +2 -0
- package/dist/chunks/cli-0.1.12-8qm558mj.mjs +2 -0
- package/dist/chunks/cli-0.1.12-8qvgy8xr.mjs +2 -0
- package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +2 -0
- package/dist/chunks/cli-0.1.12-8znn9f50.mjs +2 -0
- package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +2 -0
- package/dist/chunks/cli-0.1.12-9gs0g8yb.mjs +2 -0
- package/dist/chunks/cli-0.1.12-9pq0gse0.mjs +3 -0
- package/dist/chunks/cli-0.1.12-9v01t95v.mjs +2 -0
- package/dist/chunks/cli-0.1.12-a2frnpdd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-a2qh6gjr.mjs +5 -0
- package/dist/chunks/cli-0.1.12-a5h71tt8.mjs +34 -0
- package/dist/chunks/cli-0.1.12-actnmgw5.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ae3e3ffp.mjs +2 -0
- package/dist/chunks/cli-0.1.12-af1r644n.mjs +2 -0
- package/dist/chunks/cli-0.1.12-awb2yac7.mjs +3 -0
- package/dist/chunks/cli-0.1.12-b01yrner.mjs +2 -0
- package/dist/chunks/cli-0.1.12-baxk5jyy.mjs +4 -0
- package/dist/chunks/cli-0.1.12-bddm1g1s.mjs +59 -0
- package/dist/chunks/cli-0.1.12-bh7jp3zk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-bhxgr018.mjs +4 -0
- package/dist/chunks/cli-0.1.12-bjzb0sjt.mjs +132 -0
- package/dist/chunks/cli-0.1.12-bmtahtv7.mjs +2 -0
- package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-bnss4rxn.mjs +833 -0
- package/dist/chunks/cli-0.1.12-c23pyffx.mjs +2 -0
- package/dist/chunks/cli-0.1.12-c28bme4j.mjs +2 -0
- package/dist/chunks/cli-0.1.12-c47ape20.mjs +7 -0
- package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +2 -0
- package/dist/chunks/cli-0.1.12-cxn1ke77.mjs +2 -0
- package/dist/chunks/cli-0.1.12-d0es0fxd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-d8m01qtm.mjs +2 -0
- package/dist/chunks/cli-0.1.12-dc4e6688.mjs +2 -0
- package/dist/chunks/cli-0.1.12-dqynn0at.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ds2mn8zn.mjs +2 -0
- package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +8 -0
- package/dist/chunks/cli-0.1.12-e262snmb.mjs +3 -0
- package/dist/chunks/cli-0.1.12-e4zeaahk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-erggrdth.mjs +9 -0
- package/dist/chunks/cli-0.1.12-f0x1y6nn.mjs +2 -0
- package/dist/chunks/cli-0.1.12-faa9mx3m.mjs +15 -0
- package/dist/chunks/cli-0.1.12-fqpxr3qb.mjs +2 -0
- package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g1yp7kdf.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g2s9mjr6.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g3ycbjxk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g4sdgt8h.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g604mknq.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g728hcdr.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g8mny195.mjs +2 -0
- package/dist/chunks/cli-0.1.12-h0d833vg.mjs +24 -0
- package/dist/chunks/cli-0.1.12-h248m986.mjs +2 -0
- package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +2 -0
- package/dist/chunks/cli-0.1.12-hsw67esw.mjs +2 -0
- package/dist/chunks/cli-0.1.12-j6gjfwh5.mjs +31 -0
- package/dist/chunks/cli-0.1.12-j6hwb68p.mjs +45 -0
- package/dist/chunks/cli-0.1.12-jjza3gz9.mjs +2 -0
- package/dist/chunks/cli-0.1.12-jqrk975g.mjs +15 -0
- package/dist/chunks/cli-0.1.12-k2164g7e.mjs +2 -0
- package/dist/chunks/cli-0.1.12-kea0zcje.mjs +2 -0
- package/dist/chunks/cli-0.1.12-kg8gb6e3.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ktpqrbjc.mjs +2 -0
- package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +2 -0
- package/dist/chunks/cli-0.1.12-kys514qx.mjs +2 -0
- package/dist/chunks/cli-0.1.12-kzd4y6yq.mjs +3 -0
- package/dist/chunks/cli-0.1.12-m3q5r7wd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-m6jeef2z.mjs +6 -0
- package/dist/chunks/cli-0.1.12-mevh0dza.mjs +2 -0
- package/dist/chunks/cli-0.1.12-mr41yjpw.mjs +2 -0
- package/dist/chunks/cli-0.1.12-mwp84gtr.mjs +2 -0
- package/dist/chunks/cli-0.1.12-nfvtmt75.mjs +2 -0
- package/dist/chunks/cli-0.1.12-nnyca8nb.mjs +2 -0
- package/dist/chunks/cli-0.1.12-nv2m8kgk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +4 -0
- package/dist/chunks/cli-0.1.12-pm5cwtxh.mjs +2 -0
- package/dist/chunks/cli-0.1.12-pnh4t8c3.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ps94e9y5.mjs +2 -0
- package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +3 -0
- package/dist/chunks/cli-0.1.12-q63qrz06.mjs +2 -0
- package/dist/chunks/cli-0.1.12-q8k1zvhb.mjs +2 -0
- package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +2 -0
- package/dist/chunks/cli-0.1.12-qn20n18h.mjs +12 -0
- package/dist/chunks/cli-0.1.12-qrx9nssg.mjs +21 -0
- package/dist/chunks/cli-0.1.12-qsh4sj4y.mjs +2 -0
- package/dist/chunks/cli-0.1.12-r6f9sy54.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ra3sby5b.mjs +2 -0
- package/dist/chunks/cli-0.1.12-rqedb88a.mjs +10 -0
- package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +4 -0
- package/dist/chunks/cli-0.1.12-rwhrpb6w.mjs +2 -0
- package/dist/chunks/cli-0.1.12-rwzav5h1.mjs +11 -0
- package/dist/chunks/cli-0.1.12-ryycx3v6.mjs +2 -0
- package/dist/chunks/cli-0.1.12-rzpc0tr9.mjs +44 -0
- package/dist/chunks/cli-0.1.12-s0cwq66w.mjs +2 -0
- package/dist/chunks/cli-0.1.12-sd72y750.mjs +12 -0
- package/dist/chunks/cli-0.1.12-sgtpyf6y.mjs +11 -0
- package/dist/chunks/cli-0.1.12-strz382t.mjs +2 -0
- package/dist/chunks/cli-0.1.12-sxxpysy8.mjs +2 -0
- package/dist/chunks/cli-0.1.12-t8712dbc.mjs +2 -0
- package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +2 -0
- package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +2 -0
- package/dist/chunks/cli-0.1.12-taqfqnag.mjs +4 -0
- package/dist/chunks/cli-0.1.12-trdq9d6x.mjs +2 -0
- package/dist/chunks/cli-0.1.12-tyt09z73.mjs +2 -0
- package/dist/chunks/cli-0.1.12-v000x470.mjs +2 -0
- package/dist/chunks/cli-0.1.12-v0510w04.mjs +2 -0
- package/dist/chunks/cli-0.1.12-v79j5ced.mjs +2 -0
- package/dist/chunks/cli-0.1.12-v8j9zstg.mjs +2 -0
- package/dist/chunks/cli-0.1.12-vgbc3g9x.mjs +2 -0
- package/dist/chunks/cli-0.1.12-vpnp7x5c.mjs +100 -0
- package/dist/chunks/cli-0.1.12-vwcas8f6.mjs +2 -0
- package/dist/chunks/cli-0.1.12-vxej5jdm.mjs +2 -0
- package/dist/chunks/cli-0.1.12-vzga2are.mjs +192 -0
- package/dist/chunks/cli-0.1.12-w0qbr98a.mjs +2 -0
- package/dist/chunks/cli-0.1.12-wcdh3m4s.mjs +5 -0
- package/dist/chunks/cli-0.1.12-wdmxm11z.mjs +2 -0
- package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +3 -0
- package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +134 -0
- package/dist/chunks/cli-0.1.12-xanhpra7.mjs +2 -0
- package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-xekep4qg.mjs +58 -0
- package/dist/chunks/cli-0.1.12-xfqkrd5x.mjs +2 -0
- package/dist/chunks/cli-0.1.12-xj3mv67x.mjs +39 -0
- package/dist/chunks/cli-0.1.12-y04asmqh.mjs +2 -0
- package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +2 -0
- package/dist/chunks/cli-0.1.12-y9598sy3.mjs +16 -0
- package/dist/chunks/cli-0.1.12-ybm1kvwy.mjs +4 -0
- package/dist/chunks/cli-0.1.12-yk12dgnx.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ytxphavm.mjs +2 -0
- package/dist/chunks/cli-0.1.12-z8eybrhz.mjs +2 -0
- package/dist/chunks/cli-0.1.12-zk49aaxv.mjs +2 -0
- package/dist/chunks/cli-0.1.12-zs5rpqmb.mjs +5 -0
- package/dist/chunks/cli-0.1.12-zwyec6tj.mjs +2 -0
- package/dist/chunks/client-0.1.12-f54egbjx.mjs +1 -0
- package/dist/chunks/color-0.1.12-jss6svg8.mjs +1 -0
- package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +3 -0
- package/dist/chunks/config-0.1.12-1pyte6wv.mjs +1 -0
- package/dist/chunks/config-0.1.12-ryxz4stj.mjs +1 -0
- package/dist/chunks/context-0.1.12-mnwn2xss.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +1 -0
- package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +1 -0
- package/dist/chunks/copy-0.1.12-w6tabpy0.mjs +9 -0
- package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +1 -0
- package/dist/chunks/createSession-0.1.12-117q0efg.mjs +1 -0
- package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +1 -0
- package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +1 -0
- package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +1 -0
- package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +1 -0
- package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +1 -0
- package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +8 -0
- package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +1 -0
- package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +1 -0
- package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +1 -0
- package/dist/chunks/export-0.1.12-s6ag6jke.mjs +2 -0
- package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +1 -0
- package/dist/chunks/fast-0.1.12-9x69m50c.mjs +1 -0
- package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.1.12-95kzm3md.mjs +1 -0
- package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +1 -0
- package/dist/chunks/growthbook-0.1.12-4phnr6b3.mjs +1 -0
- package/dist/chunks/heapdump-0.1.12-m49qs4r7.mjs +6 -0
- package/dist/chunks/help-0.1.12-f02ce11x.mjs +1 -0
- package/dist/chunks/hookChains-0.1.12-brq8x7f7.mjs +3 -0
- package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +1 -0
- package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +79 -0
- package/dist/chunks/ide-0.1.12-553mazfs.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.1.12-3mrm0vts.mjs +1 -0
- package/dist/chunks/index-0.1.12-218arkqe.mjs +9 -0
- package/dist/chunks/index-0.1.12-2ykt90tn.mjs +1 -0
- package/dist/chunks/index-0.1.12-34ew4zjx.mjs +1 -0
- package/dist/chunks/index-0.1.12-3nbh75ta.mjs +1 -0
- package/dist/chunks/index-0.1.12-41g5mvtk.mjs +7 -0
- package/dist/chunks/index-0.1.12-77szwkm6.mjs +1 -0
- package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +1 -0
- package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +1 -0
- package/dist/chunks/index-0.1.12-d5w1w05d.mjs +1 -0
- package/dist/chunks/index-0.1.12-d7j83tkh.mjs +1 -0
- package/dist/chunks/index-0.1.12-hvf65cbr.mjs +1 -0
- package/dist/chunks/index-0.1.12-m0e193t8.mjs +1 -0
- package/dist/chunks/index-0.1.12-nc3z95ph.mjs +5 -0
- package/dist/chunks/index-0.1.12-r92p75vh.mjs +1 -0
- package/dist/chunks/index-0.1.12-rhj8dsvk.mjs +30 -0
- package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +1 -0
- package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +1 -0
- package/dist/chunks/index-0.1.12-v53nbtdb.mjs +2 -0
- package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +1 -0
- package/dist/chunks/index-0.1.12-z0brwe1k.mjs +2 -0
- package/dist/chunks/index-0.1.12-zc2ayczg.mjs +1 -0
- package/dist/chunks/index-0.1.12-zqrp5tve.mjs +9 -0
- package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +1 -0
- package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +1 -0
- package/dist/chunks/insights-0.1.12-93mz1f1d.mjs +870 -0
- package/dist/chunks/install-0.1.12-11xkk6vf.mjs +1 -0
- package/dist/chunks/install-github-app-0.1.12-qd8g81v4.mjs +149 -0
- package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +1 -0
- package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +12 -0
- package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +1 -0
- package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +2 -0
- package/dist/chunks/knowledge-0.1.12-1zq0qj6h.mjs +2 -0
- package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +1 -0
- package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +1 -0
- package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +1 -0
- package/dist/chunks/main-0.1.12-47ck3kj2.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +1 -0
- package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +1 -0
- package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +4 -0
- package/dist/chunks/mcp-0.1.12-vm3tpth6.mjs +17 -0
- package/dist/chunks/mcpServer-0.1.12-zwsas6ss.mjs +1 -0
- package/dist/chunks/mcpb-0.1.12-mcbd7ywh.mjs +1 -0
- package/dist/chunks/memory-0.1.12-7x2msczw.mjs +3 -0
- package/dist/chunks/mobile-0.1.12-qdtxwz76.mjs +2 -0
- package/dist/chunks/model-0.1.12-15e9c8j0.mjs +2 -0
- package/dist/chunks/model-0.1.12-z2qjscwh.mjs +1 -0
- package/dist/chunks/oauth-0.1.12-3aky0v8n.mjs +1 -0
- package/dist/chunks/openaiShim-0.1.12-p458t1q6.mjs +14 -0
- package/dist/chunks/output-style-0.1.12-cahkbh9x.mjs +1 -0
- package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +1 -0
- package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +1 -0
- package/dist/chunks/passes-0.1.12-7vmawmvq.mjs +1 -0
- package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +3 -0
- package/dist/chunks/plan-0.1.12-waed49m8.mjs +1 -0
- package/dist/chunks/plist-0.1.12-65r770yt.mjs +1 -0
- package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +1 -0
- package/dist/chunks/plugins-0.1.12-sm87b8fm.mjs +9 -0
- package/dist/chunks/print-0.1.12-8mgqmx4k.mjs +57 -0
- package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +1 -0
- package/dist/chunks/process-0.1.12-t401v84c.mjs +1 -0
- package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +9 -0
- package/dist/chunks/prompt-0.1.12-786vk11a.mjs +1 -0
- package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +1 -0
- package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +1 -0
- package/dist/chunks/provider-0.1.12-wrfpbx8a.mjs +2 -0
- package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +1 -0
- package/dist/chunks/registry-0.1.12-btwd6z61.mjs +1 -0
- package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +2 -0
- package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.1.12-c0y46zw8.mjs +1 -0
- package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +1 -0
- package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +1 -0
- package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +2 -0
- package/dist/chunks/rewind-0.1.12-707se5pz.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +1 -0
- package/dist/chunks/session-0.1.12-2xgt0x74.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +1 -0
- package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +1 -0
- package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +5 -0
- package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +1 -0
- package/dist/chunks/skills-0.1.12-sh637gsv.mjs +1 -0
- package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +1 -0
- package/dist/chunks/state-0.1.12-e374v6h8.mjs +1 -0
- package/dist/chunks/stats-0.1.12-5pj1c6sr.mjs +6 -0
- package/dist/chunks/status-0.1.12-qphx08h4.mjs +1 -0
- package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +1 -0
- package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +1 -0
- package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +1 -0
- package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +1 -0
- package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +1 -0
- package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +1 -0
- package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.1.12-9525v010.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.1.12-d5c4096k.mjs +4 -0
- package/dist/chunks/update-0.1.12-hwx0e6fq.mjs +94 -0
- package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.1.12-yhnqfcyb.mjs +14 -0
- package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +1 -0
- package/dist/chunks/util-0.1.12-qdejkkj5.mjs +1 -0
- package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +1 -0
- package/dist/chunks/vim-0.1.12-z78k9k65.mjs +1 -0
- package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +1 -0
- package/dist/chunks/wiki-0.1.12-vecp82xq.mjs +132 -0
- package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +1 -0
- package/dist/chunks/wrapper-0.1.12-bpewypaz.mjs +7 -0
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +3 -3
- package/package.json +4 -1
- package/dist/chunks/AgentTool-0.1.10-6d1adwh4.mjs +0 -1
- package/dist/chunks/App-0.1.10-kcqgpy9v.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.10-276swzgm.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.1.10-zy1wpm5p.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.10-wm40g3s8.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.10-s6979mex.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.10-r7fr5krr.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.10-r34sxess.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.10-fkrt161g.mjs +0 -1
- package/dist/chunks/DiffDialog-0.1.10-z3c417rj.mjs +0 -3
- package/dist/chunks/Doctor-0.1.10-hzxpkma0.mjs +0 -1
- package/dist/chunks/Grove-0.1.10-k7t0bk1q.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.10-9nmcsqzc.mjs +0 -1
- package/dist/chunks/InProcessTransport-0.1.10-wpgrvt4k.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.10-1yxptsrm.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.10-2dx3wzpc.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.10-52vcfe6j.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.10-sshvgxhv.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.10-gk479qf3.mjs +0 -1
- package/dist/chunks/REPL-0.1.10-pzwdjhkc.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.10-h4qtmeht.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.1.10-7pnzpe15.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.10-pna8cvtz.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.10-qgt41j05.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.10-yhws2rqe.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.10-235npnf1.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.10-9dwz8tfs.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.10-j46d8gme.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.10-mc05hsn1.mjs +0 -1
- package/dist/chunks/add-dir-0.1.10-67yt41qd.mjs +0 -1
- package/dist/chunks/agents-0.1.10-c6k1gjp7.mjs +0 -3
- package/dist/chunks/agents-0.1.10-ezzxfn1m.mjs +0 -111
- package/dist/chunks/api-0.1.10-712k136n.mjs +0 -1
- package/dist/chunks/asciicast-0.1.10-p5232pbe.mjs +0 -1
- package/dist/chunks/assistant-0.1.10-ghtz2fm5.mjs +0 -1
- package/dist/chunks/auth-0.1.10-ec2e3mg3.mjs +0 -1
- package/dist/chunks/auth-0.1.10-pnnxbpmz.mjs +0 -1
- package/dist/chunks/autoMode-0.1.10-en4g4zp3.mjs +0 -48
- package/dist/chunks/backgroundHousekeeping-0.1.10-w42bm2y9.mjs +0 -1
- package/dist/chunks/branch-0.1.10-z00acm0q.mjs +0 -4
- package/dist/chunks/bridgePointer-0.1.10-0fpe1aqp.mjs +0 -1
- package/dist/chunks/btw-0.1.10-zz9v05r2.mjs +0 -1
- package/dist/chunks/buddy-0.1.10-g62mmn7n.mjs +0 -3
- package/dist/chunks/cacache-0.1.10-jdqat7je.mjs +0 -1
- package/dist/chunks/cache-probe-0.1.10-m5je5wda.mjs +0 -21
- package/dist/chunks/cacheStats-0.1.10-h3wmx4ck.mjs +0 -4
- package/dist/chunks/caches-0.1.10-gfv0fw3r.mjs +0 -1
- package/dist/chunks/chrome-0.1.10-vn58ms2z.mjs +0 -1
- package/dist/chunks/chromeNativeHost-0.1.10-1546eayv.mjs +0 -2
- package/dist/chunks/claude-for-chrome-mcp-0.1.10-4pjczkdy.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.1.10-gxr4sfek.mjs +0 -1
- package/dist/chunks/claudemd-0.1.10-fxjaqw0j.mjs +0 -1
- package/dist/chunks/clear-0.1.10-7a42j19v.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.10-vb1ec5bk.mjs +0 -1
- package/dist/chunks/cli-0.1.10-0n4bjm9z.mjs +0 -3
- package/dist/chunks/cli-0.1.10-0zwk2w6t.mjs +0 -3
- package/dist/chunks/cli-0.1.10-17f08ra3.mjs +0 -2
- package/dist/chunks/cli-0.1.10-19jdke0x.mjs +0 -2
- package/dist/chunks/cli-0.1.10-1faf50d6.mjs +0 -2
- package/dist/chunks/cli-0.1.10-1remt68x.mjs +0 -2
- package/dist/chunks/cli-0.1.10-1zgq248j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-227xyew7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-283zk2ee.mjs +0 -2
- package/dist/chunks/cli-0.1.10-28zx3btb.mjs +0 -14
- package/dist/chunks/cli-0.1.10-2a49sq4g.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2ahvbvra.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2gmmnep8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2k83cndj.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2mqddc7q.mjs +0 -31
- package/dist/chunks/cli-0.1.10-2tygs780.mjs +0 -2
- package/dist/chunks/cli-0.1.10-3chjvgrj.mjs +0 -2
- package/dist/chunks/cli-0.1.10-3d0w3dmn.mjs +0 -12
- package/dist/chunks/cli-0.1.10-3q43p3wr.mjs +0 -11
- package/dist/chunks/cli-0.1.10-3s7cftaq.mjs +0 -39
- package/dist/chunks/cli-0.1.10-3zkqq9sp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4a42q38j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4c5p0gjr.mjs +0 -3
- package/dist/chunks/cli-0.1.10-4jsc4zm5.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4md6sg2a.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4n8p34vn.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4n8rvtk0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4nrdrp9t.mjs +0 -21
- package/dist/chunks/cli-0.1.10-4q7m47pn.mjs +0 -3
- package/dist/chunks/cli-0.1.10-4vnky3f9.mjs +0 -3
- package/dist/chunks/cli-0.1.10-594z8zdp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-5jnkne9q.mjs +0 -2
- package/dist/chunks/cli-0.1.10-5kg4wpz2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-5tyyhz34.mjs +0 -833
- package/dist/chunks/cli-0.1.10-63qeecn7.mjs +0 -24
- package/dist/chunks/cli-0.1.10-6bn5q3gp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6f66h3s0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6g6ga1zd.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6p8tttyp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6wf59qza.mjs +0 -58
- package/dist/chunks/cli-0.1.10-72ece2yk.mjs +0 -2
- package/dist/chunks/cli-0.1.10-73y7xdxy.mjs +0 -2
- package/dist/chunks/cli-0.1.10-7691mckr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-77zcax57.mjs +0 -2
- package/dist/chunks/cli-0.1.10-7d7j1qyf.mjs +0 -2
- package/dist/chunks/cli-0.1.10-7ngfsh9h.mjs +0 -4
- package/dist/chunks/cli-0.1.10-7v1vvde4.mjs +0 -8
- package/dist/chunks/cli-0.1.10-7ydarbm4.mjs +0 -2
- package/dist/chunks/cli-0.1.10-8dyffagh.mjs +0 -2
- package/dist/chunks/cli-0.1.10-91tna7ay.mjs +0 -2
- package/dist/chunks/cli-0.1.10-977j0ey2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-97rwbawt.mjs +0 -2
- package/dist/chunks/cli-0.1.10-9dfywk37.mjs +0 -2
- package/dist/chunks/cli-0.1.10-9rh1hjrr.mjs +0 -16
- package/dist/chunks/cli-0.1.10-9ybfn3a4.mjs +0 -50
- package/dist/chunks/cli-0.1.10-9zjhrr6j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-a4p945wp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-a53q2hat.mjs +0 -2
- package/dist/chunks/cli-0.1.10-a6j6www8.mjs +0 -10
- package/dist/chunks/cli-0.1.10-acy8ec7t.mjs +0 -2
- package/dist/chunks/cli-0.1.10-akaq0zte.mjs +0 -2
- package/dist/chunks/cli-0.1.10-aw4xkrf7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-b59j6twr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-be8dvtg8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-bfw7yx17.mjs +0 -2
- package/dist/chunks/cli-0.1.10-bgxwxmv1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-bqsa7eam.mjs +0 -2
- package/dist/chunks/cli-0.1.10-brfs5rdm.mjs +0 -4
- package/dist/chunks/cli-0.1.10-bw6411be.mjs +0 -3
- package/dist/chunks/cli-0.1.10-bxbkeycj.mjs +0 -4
- package/dist/chunks/cli-0.1.10-c7bkm855.mjs +0 -4
- package/dist/chunks/cli-0.1.10-cd9k16mb.mjs +0 -2
- package/dist/chunks/cli-0.1.10-ckb6d1wg.mjs +0 -5
- package/dist/chunks/cli-0.1.10-cp1bprrv.mjs +0 -2
- package/dist/chunks/cli-0.1.10-crwvcrfq.mjs +0 -2
- package/dist/chunks/cli-0.1.10-d48qgcag.mjs +0 -2
- package/dist/chunks/cli-0.1.10-d70y9y7x.mjs +0 -2
- package/dist/chunks/cli-0.1.10-dh7by4rw.mjs +0 -2
- package/dist/chunks/cli-0.1.10-dx1a4dz7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-dx92txwb.mjs +0 -13
- package/dist/chunks/cli-0.1.10-e0ftjytk.mjs +0 -2
- package/dist/chunks/cli-0.1.10-e4qewc1p.mjs +0 -44
- package/dist/chunks/cli-0.1.10-e64kvn2p.mjs +0 -2
- package/dist/chunks/cli-0.1.10-eh248dzz.mjs +0 -15
- package/dist/chunks/cli-0.1.10-ejtn8grm.mjs +0 -2
- package/dist/chunks/cli-0.1.10-er8zk2kj.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f1nw74m1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f2jh6yv0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f38gq0e0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f7wg8ttz.mjs +0 -2
- package/dist/chunks/cli-0.1.10-fay16q4v.mjs +0 -2
- package/dist/chunks/cli-0.1.10-fcarec7s.mjs +0 -2
- package/dist/chunks/cli-0.1.10-fh4zzwzq.mjs +0 -5
- package/dist/chunks/cli-0.1.10-fhvyzg2m.mjs +0 -2
- package/dist/chunks/cli-0.1.10-frs4kmth.mjs +0 -2
- package/dist/chunks/cli-0.1.10-g6rx9rdb.mjs +0 -132
- package/dist/chunks/cli-0.1.10-gccb3gw8.mjs +0 -4
- package/dist/chunks/cli-0.1.10-gdqbhzyr.mjs +0 -100
- package/dist/chunks/cli-0.1.10-gms4557v.mjs +0 -252
- package/dist/chunks/cli-0.1.10-gnds07ck.mjs +0 -2
- package/dist/chunks/cli-0.1.10-h7dsgrnw.mjs +0 -2
- package/dist/chunks/cli-0.1.10-h7egg5xp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hbk3dhq8.mjs +0 -24
- package/dist/chunks/cli-0.1.10-hpa8eyg4.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hpg8gdm2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hrjh10v7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hwk5cfdc.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hyxg32sc.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jb7jbbms.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jjdvb4je.mjs +0 -2
- package/dist/chunks/cli-0.1.10-js33z9dt.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jy0nmcmp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jy7ds572.mjs +0 -2
- package/dist/chunks/cli-0.1.10-kdqsv63d.mjs +0 -3
- package/dist/chunks/cli-0.1.10-knbxee8j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-kp2t4r8z.mjs +0 -2
- package/dist/chunks/cli-0.1.10-me1f9fvm.mjs +0 -2
- package/dist/chunks/cli-0.1.10-mjy2g3ce.mjs +0 -7
- package/dist/chunks/cli-0.1.10-mqgz2v10.mjs +0 -2
- package/dist/chunks/cli-0.1.10-mt4jf92z.mjs +0 -2
- package/dist/chunks/cli-0.1.10-mt6tj76h.mjs +0 -192
- package/dist/chunks/cli-0.1.10-mv1psn5z.mjs +0 -15
- package/dist/chunks/cli-0.1.10-n0kq1anb.mjs +0 -22
- package/dist/chunks/cli-0.1.10-nfnje7ew.mjs +0 -34
- package/dist/chunks/cli-0.1.10-nh3yfpyp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-npkfteg7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-nzvv74kz.mjs +0 -2
- package/dist/chunks/cli-0.1.10-nzxw7p2m.mjs +0 -4
- package/dist/chunks/cli-0.1.10-p42gvsdg.mjs +0 -2
- package/dist/chunks/cli-0.1.10-p4a151rw.mjs +0 -2
- package/dist/chunks/cli-0.1.10-p5wpvhbv.mjs +0 -2
- package/dist/chunks/cli-0.1.10-pagxn9ep.mjs +0 -2
- package/dist/chunks/cli-0.1.10-pw67rrjr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qez6cjt8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qf6ps98q.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qhh8pa5t.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qkv7g58s.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qtq4gx83.mjs +0 -3
- package/dist/chunks/cli-0.1.10-qw2c8g14.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qw7kdg27.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rgtrj3k8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rjz4ymc4.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rnwbgj0h.mjs +0 -134
- package/dist/chunks/cli-0.1.10-rpyv9ekb.mjs +0 -45
- package/dist/chunks/cli-0.1.10-rr3xpxx1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rvb440sp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s3x3vzah.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s4x77tm0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s6jxst02.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s7s5bgrq.mjs +0 -11
- package/dist/chunks/cli-0.1.10-s7zk0vc8.mjs +0 -18
- package/dist/chunks/cli-0.1.10-sab6x266.mjs +0 -2
- package/dist/chunks/cli-0.1.10-seekz53q.mjs +0 -2
- package/dist/chunks/cli-0.1.10-sre7cbsg.mjs +0 -2
- package/dist/chunks/cli-0.1.10-szz5tkt1.mjs +0 -4
- package/dist/chunks/cli-0.1.10-t0v9d184.mjs +0 -2
- package/dist/chunks/cli-0.1.10-t1zd86kd.mjs +0 -2
- package/dist/chunks/cli-0.1.10-t8rnwwhq.mjs +0 -2
- package/dist/chunks/cli-0.1.10-ta048zme.mjs +0 -3
- package/dist/chunks/cli-0.1.10-v0vhyf3h.mjs +0 -4
- package/dist/chunks/cli-0.1.10-v385rk98.mjs +0 -2
- package/dist/chunks/cli-0.1.10-v582vfad.mjs +0 -2
- package/dist/chunks/cli-0.1.10-v6gq9bxc.mjs +0 -7
- package/dist/chunks/cli-0.1.10-vrd90nhd.mjs +0 -16
- package/dist/chunks/cli-0.1.10-w1hqcxj1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-w8np72sh.mjs +0 -2
- package/dist/chunks/cli-0.1.10-wajz23ff.mjs +0 -2
- package/dist/chunks/cli-0.1.10-wjmtd9vm.mjs +0 -6
- package/dist/chunks/cli-0.1.10-wm8pd1jq.mjs +0 -2
- package/dist/chunks/cli-0.1.10-wvhzawgv.mjs +0 -12
- package/dist/chunks/cli-0.1.10-x1qs5ctr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-x2eaxa4s.mjs +0 -2
- package/dist/chunks/cli-0.1.10-xjpjs3y5.mjs +0 -2
- package/dist/chunks/cli-0.1.10-xzz1tdne.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y17z0pes.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y1bkenem.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y2byece1.mjs +0 -12
- package/dist/chunks/cli-0.1.10-y3q22zvb.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y6a8q1t3.mjs +0 -9
- package/dist/chunks/cli-0.1.10-y9mkzh11.mjs +0 -5036
- package/dist/chunks/cli-0.1.10-yq3dy7w2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-yset0578.mjs +0 -2
- package/dist/chunks/cli-0.1.10-z20mk55m.mjs +0 -5
- package/dist/chunks/cli-0.1.10-z3f97n2d.mjs +0 -6
- package/dist/chunks/cli-0.1.10-z4a84y0c.mjs +0 -2
- package/dist/chunks/cli-0.1.10-z7ghb8z7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-zeqsd250.mjs +0 -2
- package/dist/chunks/cli-0.1.10-zxcxqxwv.mjs +0 -2
- package/dist/chunks/cli-0.1.10-zxgw1kqq.mjs +0 -2
- package/dist/chunks/client-0.1.10-btm7zd17.mjs +0 -1
- package/dist/chunks/color-0.1.10-h3wdkq18.mjs +0 -1
- package/dist/chunks/compact-0.1.10-3vz0z7cj.mjs +0 -3
- package/dist/chunks/config-0.1.10-37452dtw.mjs +0 -1
- package/dist/chunks/config-0.1.10-apkj5t0e.mjs +0 -1
- package/dist/chunks/context-0.1.10-z4vfp64w.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.10-xmmn39z5.mjs +0 -1
- package/dist/chunks/conversation-0.1.10-p82mc6k7.mjs +0 -1
- package/dist/chunks/copy-0.1.10-y1c1gb1w.mjs +0 -9
- package/dist/chunks/cost-0.1.10-d5wpnm54.mjs +0 -1
- package/dist/chunks/createSession-0.1.10-7bq5e7c3.mjs +0 -1
- package/dist/chunks/desktop-0.1.10-3f54fc1k.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.10-1kyc0kvc.mjs +0 -1
- package/dist/chunks/detection-0.1.10-0h6d9cqt.mjs +0 -1
- package/dist/chunks/devtools-0.1.10-93f39njd.mjs +0 -1
- package/dist/chunks/diff-0.1.10-j17ke0k6.mjs +0 -1
- package/dist/chunks/doctor-0.1.10-wcq13152.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.10-k1phbjt5.mjs +0 -1
- package/dist/chunks/effort-0.1.10-kanyae0a.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.10-ydckkyqx.mjs +0 -1
- package/dist/chunks/environments-0.1.10-7dht1svt.mjs +0 -1
- package/dist/chunks/exit-0.1.10-q7af8rb6.mjs +0 -1
- package/dist/chunks/export-0.1.10-tgsj9sg2.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.10-qccdgzpk.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.10-5rpbnmgs.mjs +0 -1
- package/dist/chunks/fast-0.1.10-eq1jgfqk.mjs +0 -1
- package/dist/chunks/feedback-0.1.10-yvpgv2wy.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.1.10-1q5vbtwp.mjs +0 -1
- package/dist/chunks/git-0.1.10-ngvcytb0.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.10-w5g5cqhg.mjs +0 -1
- package/dist/chunks/growthbook-0.1.10-zkm4sham.mjs +0 -1
- package/dist/chunks/heapdump-0.1.10-29gq2jvb.mjs +0 -6
- package/dist/chunks/help-0.1.10-yj8ra443.mjs +0 -1
- package/dist/chunks/hookChains-0.1.10-32qn4nw8.mjs +0 -3
- package/dist/chunks/hooks-0.1.10-epp78p44.mjs +0 -79
- package/dist/chunks/hooks-0.1.10-fjrmscrk.mjs +0 -1
- package/dist/chunks/ide-0.1.10-361fyyet.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.1.10-18yjap6z.mjs +0 -1
- package/dist/chunks/index-0.1.10-1cxj797w.mjs +0 -2
- package/dist/chunks/index-0.1.10-30c6wwdm.mjs +0 -30
- package/dist/chunks/index-0.1.10-80bh88yr.mjs +0 -1
- package/dist/chunks/index-0.1.10-8apwt1gk.mjs +0 -1
- package/dist/chunks/index-0.1.10-8c4f5nq6.mjs +0 -2
- package/dist/chunks/index-0.1.10-9mqxzarc.mjs +0 -5
- package/dist/chunks/index-0.1.10-c29w46aj.mjs +0 -1
- package/dist/chunks/index-0.1.10-c450y86m.mjs +0 -1
- package/dist/chunks/index-0.1.10-d1r31eyx.mjs +0 -9
- package/dist/chunks/index-0.1.10-drj30y1c.mjs +0 -1
- package/dist/chunks/index-0.1.10-g667a23q.mjs +0 -1
- package/dist/chunks/index-0.1.10-gz2mwwnj.mjs +0 -1
- package/dist/chunks/index-0.1.10-m1gd7g5v.mjs +0 -1
- package/dist/chunks/index-0.1.10-n4bkm7fr.mjs +0 -9
- package/dist/chunks/index-0.1.10-r42rb77w.mjs +0 -7
- package/dist/chunks/index-0.1.10-ra4k3x9k.mjs +0 -1
- package/dist/chunks/index-0.1.10-s32szzwg.mjs +0 -1
- package/dist/chunks/index-0.1.10-std21r3g.mjs +0 -1
- package/dist/chunks/index-0.1.10-t71jm4x7.mjs +0 -1
- package/dist/chunks/index-0.1.10-vpcq7nfa.mjs +0 -1
- package/dist/chunks/index-0.1.10-x6dkpkw7.mjs +0 -1
- package/dist/chunks/index-0.1.10-xqy1yh0c.mjs +0 -1
- package/dist/chunks/initReplBridge-0.1.10-4af5e275.mjs +0 -1
- package/dist/chunks/ink-0.1.10-57r8vscr.mjs +0 -1
- package/dist/chunks/insights-0.1.10-rptwhmpm.mjs +0 -870
- package/dist/chunks/install-0.1.10-9w2w5vre.mjs +0 -1
- package/dist/chunks/install-github-app-0.1.10-xhj1zyqh.mjs +0 -149
- package/dist/chunks/install-slack-app-0.1.10-tq51qy4s.mjs +0 -1
- package/dist/chunks/instrumentation-0.1.10-kyzfec48.mjs +0 -12
- package/dist/chunks/interactiveHelpers-0.1.10-1491802m.mjs +0 -1
- package/dist/chunks/keybindings-0.1.10-fpyw69y7.mjs +0 -2
- package/dist/chunks/knowledge-0.1.10-2aa0bb5w.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.10-h8t0ppav.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.10-ne71stmt.mjs +0 -1
- package/dist/chunks/logout-0.1.10-xxm4ydq9.mjs +0 -1
- package/dist/chunks/lsp-0.1.10-k53wta4y.mjs +0 -1
- package/dist/chunks/main-0.1.10-q3qenxfq.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.10-s37qwcz1.mjs +0 -1
- package/dist/chunks/mcp-0.1.10-af795ewj.mjs +0 -1
- package/dist/chunks/mcp-0.1.10-b5z770fs.mjs +0 -17
- package/dist/chunks/mcp-0.1.10-nd17220r.mjs +0 -4
- package/dist/chunks/mcpServer-0.1.10-vrpfykem.mjs +0 -1
- package/dist/chunks/mcpb-0.1.10-jzxbat3k.mjs +0 -1
- package/dist/chunks/memory-0.1.10-zwzw20d5.mjs +0 -3
- package/dist/chunks/mobile-0.1.10-02fzsby3.mjs +0 -2
- package/dist/chunks/model-0.1.10-9g2nyrq7.mjs +0 -1
- package/dist/chunks/model-0.1.10-rygn5rc7.mjs +0 -2
- package/dist/chunks/oauth-0.1.10-t6fn448z.mjs +0 -1
- package/dist/chunks/openaiShim-0.1.10-gnhp89j2.mjs +0 -14
- package/dist/chunks/output-style-0.1.10-tnvcw858.mjs +0 -1
- package/dist/chunks/package-HMBVQOZ4-0.1.10-zd9nnmft.mjs +0 -1
- package/dist/chunks/parser-0.1.10-yemkwzb2.mjs +0 -1
- package/dist/chunks/passes-0.1.10-3zg7g2tp.mjs +0 -1
- package/dist/chunks/permissions-0.1.10-3tmntee5.mjs +0 -3
- package/dist/chunks/plan-0.1.10-sj11cbeb.mjs +0 -1
- package/dist/chunks/plist-0.1.10-mfhsxrkb.mjs +0 -1
- package/dist/chunks/plugin-0.1.10-c2rxcqb7.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.10-n5esk5p9.mjs +0 -1
- package/dist/chunks/plugins-0.1.10-cyb1q58v.mjs +0 -9
- package/dist/chunks/print-0.1.10-s2t5nd3y.mjs +0 -57
- package/dist/chunks/privacy-settings-0.1.10-kxx4szxa.mjs +0 -1
- package/dist/chunks/process-0.1.10-kp51xxsy.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.10-t1cdkkjx.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.1.10-pvndkc40.mjs +0 -9
- package/dist/chunks/prompt-0.1.10-2kjnmw4z.mjs +0 -1
- package/dist/chunks/prompt-0.1.10-v546t6x4.mjs +0 -1
- package/dist/chunks/prompts-0.1.10-8k80tabm.mjs +0 -1
- package/dist/chunks/provider-0.1.10-5p16y1p3.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.10-0r6j5m52.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.10-0sgjcqvt.mjs +0 -1
- package/dist/chunks/registry-0.1.10-nyx80cwb.mjs +0 -1
- package/dist/chunks/release-notes-0.1.10-8bpsjmax.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.10-f8cj2ymj.mjs +0 -2
- package/dist/chunks/remote-env-0.1.10-x65rh1n3.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.1.10-tk9vhzgk.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.10-xx5eng27.mjs +0 -1
- package/dist/chunks/rename-0.1.10-zjwr9vqm.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.10-34e8jwrt.mjs +0 -1
- package/dist/chunks/resume-0.1.10-dc75n2zf.mjs +0 -2
- package/dist/chunks/rewind-0.1.10-kt2968kt.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.1.10-whhwsy1v.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.10-19w6767r.mjs +0 -1
- package/dist/chunks/session-0.1.10-pzsbjyqm.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.10-jaadayzy.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.10-b72srv50.mjs +0 -1
- package/dist/chunks/setup-0.1.10-fbs90hdh.mjs +0 -5
- package/dist/chunks/sinks-0.1.10-02w5f1q9.mjs +0 -1
- package/dist/chunks/skills-0.1.10-pexnbjqd.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.10-gcv6ckp5.mjs +0 -1
- package/dist/chunks/state-0.1.10-embrgn1a.mjs +0 -1
- package/dist/chunks/stats-0.1.10-s0rzmsxx.mjs +0 -6
- package/dist/chunks/status-0.1.10-8r0jrc8n.mjs +0 -1
- package/dist/chunks/stickers-0.1.10-dj7ganhx.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.10-hpv416jp.mjs +0 -1
- package/dist/chunks/tasks-0.1.10-cnvnk57k.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.10-j6sfy2zc.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.10-ddhe13pc.mjs +0 -1
- package/dist/chunks/teleport-0.1.10-saft8sby.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.10-4p5xvtyy.mjs +0 -1
- package/dist/chunks/theme-0.1.10-5xss74sp.mjs +0 -1
- package/dist/chunks/thinkback-0.1.10-e4bz61r1.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.10-0vjf0r8c.mjs +0 -1
- package/dist/chunks/toolPool-0.1.10-57jq29ct.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.10-ysjw302j.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.10-zy988esg.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.1.10-vhmcr6t6.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.1.10-sqjsmw0x.mjs +0 -4
- package/dist/chunks/update-0.1.10-p7ctpbkr.mjs +0 -94
- package/dist/chunks/upgrade-0.1.10-8585sfbv.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.1.10-ddbrjzqt.mjs +0 -14
- package/dist/chunks/usage-0.1.10-r8vznre6.mjs +0 -1
- package/dist/chunks/util-0.1.10-51fk6c0k.mjs +0 -1
- package/dist/chunks/utils-0.1.10-43r4vneb.mjs +0 -1
- package/dist/chunks/vim-0.1.10-3yzrqjw5.mjs +0 -1
- package/dist/chunks/watcher-0.1.10-xq2qsexd.mjs +0 -1
- package/dist/chunks/wiki-0.1.10-v3w4719f.mjs +0 -132
- package/dist/chunks/worktree-0.1.10-b5r0y9mr.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.10-ckcv927j.mjs +0 -1
- package/dist/chunks/wrapper-0.1.10-10976h3e.mjs +0 -7
- /package/dist/chunks/{cli-0.1.10-tf9dk84p.mjs → cli-0.1.12-41zq3gv6.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.10-xfdakzcb.mjs → cli-0.1.12-ng34ay3g.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.10-9xpgjxhj.mjs → cli-0.1.12-tvawkeks.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Tf as L,Uf as x}from"./cli-0.1.12-mwp84gtr.mjs";import{sw as $,tw as b,xw as B,yw as f,zw as l}from"./cli-0.1.12-242der7s.mjs";import"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import"./cli-0.1.12-tyt09z73.mjs";import{QU as J,SU as C,eT as i,tV as M,vV as u}from"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import{rX as q,sX as Q,tX as O}from"./cli-0.1.12-04jw23rj.mjs";import{uX as j}from"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import{B_ as _,D_ as m,Haa as d,Jaa as I,Taa as c}from"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import{gga as h,hga as D}from"./cli-0.1.12-6x2mnahn.mjs";import{Gga as v,Mga as S,eha as H,hha as T}from"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import{Qna as W}from"./cli-0.1.12-1hv04bp7.mjs";D();x();u();T();m();S();l();c();O();var p=W(i(),1),A=W(j(),1);import{homedir as n}from"node:os";import{join as r}from"node:path";function a(){let U=_.platform==="win32",z=n();if(U)return r(z,".local","bin","claudio.exe").replace(/\//g,"\\");return"~/.local/bin/claudio"}function V(U){let z=p.c(5),{messages:G}=U;if(G.length===0)return null;let y;if(z[0]===Symbol.for("react.memo_cache_sentinel"))y=q(J,{children:Q(C,{color:"warning",children:[q(L,{status:"warning",withSpace:!0}),"Setup notes:"]})}),z[0]=y;else y=z[0];let K;if(z[1]!==G)K=G.map(o),z[1]=G,z[2]=K;else K=z[2];let Y;if(z[3]!==K)Y=Q(J,{flexDirection:"column",gap:0,marginBottom:1,children:[y,K]}),z[3]=K,z[4]=Y;else Y=z[4];return Y}function o(U,z){return q(J,{marginLeft:2,children:Q(C,{dimColor:!0,children:["• ",U]})},z)}function g({onDone:U,force:z,target:G}){let[y,K]=A.useState({type:"checking"});return A.useEffect(()=>{async function Y(){try{H(`Install: Starting installation process (force=${z}, target=${G})`);let Z=G||I()?.autoUpdatesChannel||"latest";K({type:"installing",version:Z}),H(`Install: Calling installLatest(channelOrVersion=${Z}, forceReinstall=${z})`);let R=await b(Z,z);if(H(`Install: installLatest returned version=${R.latestVersion}, wasUpdated=${R.wasUpdated}, lockFailed=${R.lockFailed}`),R.lockFailed)throw Error("Could not install - another process is currently installing Claude. Please try again in a moment.");if(!R.latestVersion)H("Install: Failed to retrieve version information during install",{level:"error"});if(!R.wasUpdated)H("Install: Already up to date");K({type:"setting-up"});let k=await $(!0);if(H(`Install: Setup launcher completed with ${k.length} messages`),k.length>0)k.forEach((X)=>H(`Install: Setup message: ${X.message}`));H("Install: Cleaning up npm installations after successful install");let{removed:E,errors:N,warnings:F}=await f();if(E>0)H(`Cleaned up ${E} npm installation(s)`);if(N.length>0)H(`Cleanup errors: ${N.join(", ")}`);let P=await B();if(P.length>0)H(`Shell alias cleanup: ${P.map((X)=>X.message).join("; ")}`);if(h("tengu_claude_install_command",{has_version:R.latestVersion?1:0,forced:z?1:0}),G==="latest"||G==="stable")d("userSettings",{autoUpdatesChannel:G}),H(`Install: Saved autoUpdatesChannel=${G} to user settings`);let w=[...F,...P.map((X)=>X.message)];if(k.length>0)K({type:"set-up",messages:k.map((X)=>X.message)}),setTimeout(K,2000,{type:"success",version:R.latestVersion||"current",setupMessages:[...k.map((X)=>X.message),...w]});else H("Install: Shell PATH already configured"),K({type:"success",version:R.latestVersion||"current",setupMessages:w.length>0?w:void 0})}catch(Z){H(`Install command failed: ${Z}`,{level:"error"}),K({type:"error",message:v(Z)})}}Y()},[z,G]),A.useEffect(()=>{if(y.type==="success")setTimeout(U,2000,"Claude Code installation completed successfully",{display:"system"});else if(y.type==="error")setTimeout(U,3000,"Claude Code installation failed",{display:"system"})},[y,U]),Q(J,{flexDirection:"column",marginTop:1,children:[y.type==="checking"&&q(C,{color:"claude",children:"Checking installation status..."}),y.type==="cleaning-npm"&&q(C,{color:"warning",children:"Cleaning up old npm installations..."}),y.type==="installing"&&Q(C,{color:"claude",children:["Installing Claude Code native build ",y.version,"..."]}),y.type==="setting-up"&&q(C,{color:"claude",children:"Setting up launcher and shell integration..."}),y.type==="set-up"&&q(V,{messages:y.messages}),y.type==="success"&&Q(J,{flexDirection:"column",gap:1,children:[Q(J,{children:[q(L,{status:"success",withSpace:!0}),q(C,{color:"success",bold:!0,children:"Claude Code successfully installed!"})]}),Q(J,{marginLeft:2,flexDirection:"column",gap:1,children:[y.version!=="current"&&Q(J,{children:[q(C,{dimColor:!0,children:"Version: "}),q(C,{color:"claude",children:y.version})]}),Q(J,{children:[q(C,{dimColor:!0,children:"Location: "}),q(C,{color:"text",children:a()})]})]}),q(J,{marginLeft:2,flexDirection:"column",gap:1,children:Q(J,{marginTop:1,children:[q(C,{dimColor:!0,children:"Next: Run "}),q(C,{color:"claude",bold:!0,children:"claude --help"}),q(C,{dimColor:!0,children:" to get started"})]})}),y.setupMessages&&q(V,{messages:y.setupMessages})]}),y.type==="error"&&Q(J,{flexDirection:"column",gap:1,children:[Q(J,{children:[q(L,{status:"error",withSpace:!0}),q(C,{color:"error",children:"Installation failed"})]}),q(C,{color:"error",children:y.message}),q(J,{marginTop:1,children:q(C,{dimColor:!0,children:"Try running with --force to override checks"})})]})]})}var Qq={type:"local-jsx",name:"install",description:"Install Claude Code native build",argumentHint:"[options]",async call(U,z,G){let y=G.includes("--force"),Y=G.filter((R)=>!R.startsWith("--"))[0],{unmount:Z}=await M(q(g,{onDone:(R,k)=>{Z(),U(R,k)},force:y,target:Y}))}};export{Qq as install,a as getInstallationPath};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import{Ay as H0,By as nf,DK as t,EK as G0,Tv as Hf,Uv as Sf,mv as R0,nv as _f,ov as qf,qv as jf}from"./cli-0.1.12-242der7s.mjs";import"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import{DP as d0,EP as w0,FP as B0,GP as vf,HP as U0,IP as Of,LP as c0,MP as lf}from"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import{aS as Ef,bS as fq}from"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import{GS as e,HS as D0,US as z0,VS as s,WS as J0}from"./cli-0.1.12-tyt09z73.mjs";import{OU as f0,QU as Q,SU as X,WU as L0,eT as r,eU as zf,jU as of,nT as I0,vV as j}from"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import{qX as T,rX as d,sX as I,tX as g}from"./cli-0.1.12-04jw23rj.mjs";import{uX as Y0}from"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import{RX as V0,SX as Uf}from"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import{M4 as Gf,k4 as y0,l5 as Mf,m4 as Nf}from"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import{$$ as kf,Cba as Bf,I7 as Q0,M8 as gf,N7 as Df,O7 as M0,P7 as Jf,Q8 as ef,S7 as m0,T7 as sf,V7 as o,X7 as wf,Yba as af,haa as tf}from"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import{gga as R,hga as F0}from"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import{Qna as _,Una as h}from"./cli-0.1.12-1hv04bp7.mjs";function hf(W){if(W.pending)return I(X,{children:["Press ",W.keyName," again to exit"]});return I(U0,{children:[d(d0,{shortcut:"↑↓",action:"navigate"}),d(d0,{shortcut:"Space",action:"toggle"}),d(d0,{shortcut:"Enter",action:"confirm"}),d(B0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}function A0(W){let f=C0.c(14),{onSubmit:q,defaultSelections:Y}=W,[D,z]=K0.useState(!1),M;if(f[0]!==q)M=(N)=>{if(N.length===0){z(!0);return}z(!1),q(N)},f[0]=q,f[1]=M;else M=f[1];let L=M,H;if(f[2]===Symbol.for("react.memo_cache_sentinel"))H=()=>{z(!1)},f[2]=H;else H=f[2];let V=H,Z;if(f[3]===Symbol.for("react.memo_cache_sentinel"))Z=()=>{z(!0)},f[3]=Z;else Z=f[3];let F=Z,y;if(f[4]===Symbol.for("react.memo_cache_sentinel"))y=d(Q,{children:I(X,{dimColor:!0,children:["More workflow examples (issue triage, CI fixes, etc.) at:"," ",d(L0,{url:"https://github.com/anthropics/claude-code-action/blob/main/examples/",children:"https://github.com/anthropics/claude-code-action/blob/main/examples/"})]})}),f[4]=y;else y=f[4];let m;if(f[5]===Symbol.for("react.memo_cache_sentinel"))m=Tf.map(pf),f[5]=m;else m=f[5];let b;if(f[6]!==Y||f[7]!==L)b=d(R0,{options:m,defaultValue:Y,onSubmit:L,onChange:V,onCancel:F,hideIndexes:!0}),f[6]=Y,f[7]=L,f[8]=b;else b=f[8];let P;if(f[9]!==D)P=D&&d(Q,{children:d(X,{color:"error",children:"You must select at least one workflow to continue"})}),f[9]=D,f[10]=P;else P=f[10];let C;if(f[11]!==b||f[12]!==P)C=I(c0,{title:"Select GitHub workflows to install",subtitle:"We'll create a workflow file in your repository for each one you select.",onCancel:F,inputGuide:hf,children:[y,b,P]}),f[11]=b,f[12]=P,f[13]=C;else C=f[13];return C}function pf(W){return{label:W.label,value:W.value}}var C0,K0,Tf;var g0=h(()=>{j();vf();_f();Of();lf();w0();g();C0=_(r(),1),K0=_(Y0(),1),Tf=[{value:"claude",label:"@Claude Code - Tag @claude in issues and PR comments"},{value:"claude-review",label:"Claude Code Review - Automated code review on new PRs"}]});var k0="Add Claude Code GitHub Workflow",x="https://github.com/anthropics/claude-code-action/blob/main/docs/setup.md",N0=`name: Claude Code
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issue_comment:
|
|
5
|
+
types: [created]
|
|
6
|
+
pull_request_review_comment:
|
|
7
|
+
types: [created]
|
|
8
|
+
issues:
|
|
9
|
+
types: [opened, assigned]
|
|
10
|
+
pull_request_review:
|
|
11
|
+
types: [submitted]
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
claude:
|
|
15
|
+
if: |
|
|
16
|
+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
|
17
|
+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
|
|
18
|
+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
|
19
|
+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
permissions:
|
|
22
|
+
contents: read
|
|
23
|
+
pull-requests: read
|
|
24
|
+
issues: read
|
|
25
|
+
id-token: write
|
|
26
|
+
actions: read # Required for Claude to read CI results on PRs
|
|
27
|
+
steps:
|
|
28
|
+
- name: Checkout repository
|
|
29
|
+
uses: actions/checkout@v4
|
|
30
|
+
with:
|
|
31
|
+
fetch-depth: 1
|
|
32
|
+
|
|
33
|
+
- name: Run Claude Code
|
|
34
|
+
id: claude
|
|
35
|
+
uses: anthropics/claude-code-action@v1
|
|
36
|
+
with:
|
|
37
|
+
anthropic_api_key: \${{ secrets.ANTHROPIC_API_KEY }}
|
|
38
|
+
|
|
39
|
+
# This is an optional setting that allows Claude to read CI results on PRs
|
|
40
|
+
additional_permissions: |
|
|
41
|
+
actions: read
|
|
42
|
+
|
|
43
|
+
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
|
|
44
|
+
# prompt: 'Update the pull request description to include a summary of changes.'
|
|
45
|
+
|
|
46
|
+
# Optional: Add claude_args to customize behavior and configuration
|
|
47
|
+
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
|
48
|
+
# or https://code.claude.com/docs/en/cli-reference for available options
|
|
49
|
+
# claude_args: '--allowed-tools Bash(gh pr:*)'
|
|
50
|
+
|
|
51
|
+
`,E0=`## \uD83E\uDD16 Installing Claude Code GitHub App
|
|
52
|
+
|
|
53
|
+
This PR adds a GitHub Actions workflow that enables Claude Code integration in our repository.
|
|
54
|
+
|
|
55
|
+
### What is Claude Code?
|
|
56
|
+
|
|
57
|
+
[Claude Code](https://claude.com/claude-code) is an AI coding agent that can help with:
|
|
58
|
+
- Bug fixes and improvements
|
|
59
|
+
- Documentation updates
|
|
60
|
+
- Implementing new features
|
|
61
|
+
- Code reviews and suggestions
|
|
62
|
+
- Writing tests
|
|
63
|
+
- And more!
|
|
64
|
+
|
|
65
|
+
### How it works
|
|
66
|
+
|
|
67
|
+
Once this PR is merged, we'll be able to interact with Claude by mentioning @claude in a pull request or issue comment.
|
|
68
|
+
Once the workflow is triggered, Claude will analyze the comment and surrounding context, and execute on the request in a GitHub action.
|
|
69
|
+
|
|
70
|
+
### Important Notes
|
|
71
|
+
|
|
72
|
+
- **This workflow won't take effect until this PR is merged**
|
|
73
|
+
- **@claude mentions won't work until after the merge is complete**
|
|
74
|
+
- The workflow runs automatically whenever Claude is mentioned in PR or issue comments
|
|
75
|
+
- Claude gets access to the entire PR or issue context including files, diffs, and previous comments
|
|
76
|
+
|
|
77
|
+
### Security
|
|
78
|
+
|
|
79
|
+
- Our Anthropic API key is securely stored as a GitHub Actions secret
|
|
80
|
+
- Only users with write access to the repository can trigger the workflow
|
|
81
|
+
- All Claude runs are stored in the GitHub Actions run history
|
|
82
|
+
- Claude's default tools are limited to reading/writing files and interacting with our repo by creating comments, branches, and commits.
|
|
83
|
+
- We can add more allowed tools by adding them to the workflow file like:
|
|
84
|
+
|
|
85
|
+
\`\`\`
|
|
86
|
+
allowed_tools: Bash(npm install),Bash(npm run build),Bash(npm run lint),Bash(npm run test)
|
|
87
|
+
\`\`\`
|
|
88
|
+
|
|
89
|
+
There's more information in the [Claude Code action repo](https://github.com/anthropics/claude-code-action).
|
|
90
|
+
|
|
91
|
+
After merging this PR, let's try mentioning @claude in a comment on any PR to get started!`,v0=`name: Claude Code Review
|
|
92
|
+
|
|
93
|
+
on:
|
|
94
|
+
pull_request:
|
|
95
|
+
types: [opened, synchronize, ready_for_review, reopened]
|
|
96
|
+
# Optional: Only run on specific file changes
|
|
97
|
+
# paths:
|
|
98
|
+
# - "src/**/*.ts"
|
|
99
|
+
# - "src/**/*.tsx"
|
|
100
|
+
# - "src/**/*.js"
|
|
101
|
+
# - "src/**/*.jsx"
|
|
102
|
+
|
|
103
|
+
jobs:
|
|
104
|
+
claude-review:
|
|
105
|
+
# Optional: Filter by PR author
|
|
106
|
+
# if: |
|
|
107
|
+
# github.event.pull_request.user.login == 'external-contributor' ||
|
|
108
|
+
# github.event.pull_request.user.login == 'new-developer' ||
|
|
109
|
+
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
|
|
110
|
+
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
permissions:
|
|
113
|
+
contents: read
|
|
114
|
+
pull-requests: read
|
|
115
|
+
issues: read
|
|
116
|
+
id-token: write
|
|
117
|
+
|
|
118
|
+
steps:
|
|
119
|
+
- name: Checkout repository
|
|
120
|
+
uses: actions/checkout@v4
|
|
121
|
+
with:
|
|
122
|
+
fetch-depth: 1
|
|
123
|
+
|
|
124
|
+
- name: Run Claude Code Review
|
|
125
|
+
id: claude-review
|
|
126
|
+
uses: anthropics/claude-code-action@v1
|
|
127
|
+
with:
|
|
128
|
+
anthropic_api_key: \${{ secrets.ANTHROPIC_API_KEY }}
|
|
129
|
+
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
|
|
130
|
+
plugins: 'code-review@claude-code-plugins'
|
|
131
|
+
prompt: '/code-review:code-review \${{ github.repository }}/pull/\${{ github.event.pull_request.number }}'
|
|
132
|
+
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
|
133
|
+
# or https://code.claude.com/docs/en/cli-reference for available options
|
|
134
|
+
|
|
135
|
+
`;var X0=()=>{};function _0(W){let f=O0.c(55),{existingApiKey:q,apiKeyOrOAuthToken:Y,onApiKeyChange:D,onSubmit:z,onToggleUseExistingKey:M,onCreateOAuthToken:L,selectedOption:H,onSelectOption:V}=W,Z=H===void 0?q?"existing":L?"oauth":"new":H,[F,y]=l0.useState(0),m=e(),[b]=I0(),P;if(f[0]!==q||f[1]!==L||f[2]!==V||f[3]!==M||f[4]!==Z)P=()=>{if(Z==="new"&&L)V?.("oauth");else if(Z==="oauth"&&q)V?.("existing"),M(!0)},f[0]=q,f[1]=L,f[2]=V,f[3]=M,f[4]=Z,f[5]=P;else P=f[5];let C=P,N;if(f[6]!==L||f[7]!==V||f[8]!==M||f[9]!==Z)N=()=>{if(Z==="existing")V?.(L?"oauth":"new"),M(!1);else if(Z==="oauth")V?.("new")},f[6]=L,f[7]=V,f[8]=M,f[9]=Z,f[10]=N;else N=f[10];let E=N,v;if(f[11]!==L||f[12]!==z||f[13]!==Z)v=()=>{if(Z==="oauth"&&L)L();else z()},f[11]=L,f[12]=z,f[13]=Z,f[14]=v;else v=f[14];let O=v,B=Z==="new",K;if(f[15]!==O||f[16]!==E||f[17]!==C)K={"confirm:previous":C,"confirm:next":E,"confirm:yes":O},f[15]=O,f[16]=E,f[17]=C,f[18]=K;else K=f[18];let J=!B,G;if(f[19]!==J)G={context:"Confirmation",isActive:J},f[19]=J,f[20]=G;else G=f[20];s(K,G);let w;if(f[21]!==E||f[22]!==C)w={"confirm:previous":C,"confirm:next":E},f[21]=E,f[22]=C,f[23]=w;else w=f[23];let U;if(f[24]!==B)U={context:"Confirmation",isActive:B},f[24]=B,f[25]=U;else U=f[25];s(w,U);let c;if(f[26]===Symbol.for("react.memo_cache_sentinel"))c=I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{bold:!0,children:"Install GitHub App"}),d(X,{dimColor:!0,children:"Choose API key"})]}),f[26]=c;else c=f[26];let k;if(f[27]!==q||f[28]!==Z||f[29]!==b)k=q&&d(Q,{marginBottom:1,children:I(X,{children:[Z==="existing"?f0("success",b)("> "):" ","Use your existing Claude Code API key"]})}),f[27]=q,f[28]=Z,f[29]=b,f[30]=k;else k=f[30];let A;if(f[31]!==L||f[32]!==Z||f[33]!==b)A=L&&d(Q,{marginBottom:1,children:I(X,{children:[Z==="oauth"?f0("success",b)("> "):" ","Create a long-lived token with your Claude subscription"]})}),f[31]=L,f[32]=Z,f[33]=b,f[34]=A;else A=f[34];let l;if(f[35]!==Z||f[36]!==b)l=Z==="new"?f0("success",b)("> "):" ",f[35]=Z,f[36]=b,f[37]=l;else l=f[37];let $;if(f[38]!==l)$=d(Q,{marginBottom:1,children:I(X,{children:[l,"Enter a new API key"]})}),f[38]=l,f[39]=$;else $=f[39];let p;if(f[40]!==Y||f[41]!==F||f[42]!==D||f[43]!==z||f[44]!==Z||f[45]!==m)p=Z==="new"&&d(t,{value:Y,onChange:D,onSubmit:z,onPaste:D,focus:!0,placeholder:"sk-ant… (Create a new key at https://platform.claude.com/settings/keys)",mask:"*",columns:m.columns,cursorOffset:F,onChangeCursorOffset:y,showCursor:!0}),f[40]=Y,f[41]=F,f[42]=D,f[43]=z,f[44]=Z,f[45]=m,f[46]=p;else p=f[46];let u;if(f[47]!==k||f[48]!==A||f[49]!==$||f[50]!==p)u=I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[c,k,A,$,p]}),f[47]=k,f[48]=A,f[49]=$,f[50]=p,f[51]=u;else u=f[51];let n;if(f[52]===Symbol.for("react.memo_cache_sentinel"))n=d(Q,{marginLeft:3,children:d(X,{dimColor:!0,children:"↑/↓ to select · Enter to continue"})}),f[52]=n;else n=f[52];let a;if(f[53]!==u)a=I(T,{children:[u,n]}),f[53]=u,f[54]=a;else a=f[54];return a}var O0,l0;var T0=h(()=>{G0();D0();j();J0();g();O0=_(r(),1),l0=_(Y0(),1)});function p0(W){let f=i0.c(42),{useExistingSecret:q,secretName:Y,onToggleUseExistingSecret:D,onSecretNameChange:z,onSubmit:M}=W,[L,H]=h0.useState(0),V=e(),[Z]=I0(),F;if(f[0]!==D)F=()=>D(!0),f[0]=D,f[1]=F;else F=f[1];let y=F,m;if(f[2]!==D)m=()=>D(!1),f[2]=D,f[3]=m;else m=f[3];let b=m,P;if(f[4]!==b||f[5]!==y||f[6]!==M)P={"confirm:previous":y,"confirm:next":b,"confirm:yes":M},f[4]=b,f[5]=y,f[6]=M,f[7]=P;else P=f[7];let C;if(f[8]!==q)C={context:"Confirmation",isActive:q},f[8]=q,f[9]=C;else C=f[9];s(P,C);let N;if(f[10]!==b||f[11]!==y)N={"confirm:previous":y,"confirm:next":b},f[10]=b,f[11]=y,f[12]=N;else N=f[12];let E=!q,v;if(f[13]!==E)v={context:"Confirmation",isActive:E},f[13]=E,f[14]=v;else v=f[14];s(N,v);let O;if(f[15]===Symbol.for("react.memo_cache_sentinel"))O=I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{bold:!0,children:"Install GitHub App"}),d(X,{dimColor:!0,children:"Setup API key secret"})]}),f[15]=O;else O=f[15];let B;if(f[16]===Symbol.for("react.memo_cache_sentinel"))B=d(Q,{marginBottom:1,children:d(X,{color:"warning",children:"ANTHROPIC_API_KEY already exists in repository secrets!"})}),f[16]=B;else B=f[16];let K;if(f[17]===Symbol.for("react.memo_cache_sentinel"))K=d(Q,{marginBottom:1,children:d(X,{children:"Would you like to:"})}),f[17]=K;else K=f[17];let J;if(f[18]!==Z||f[19]!==q)J=q?f0("success",Z)("> "):" ",f[18]=Z,f[19]=q,f[20]=J;else J=f[20];let G;if(f[21]!==J)G=d(Q,{marginBottom:1,children:I(X,{children:[J,"Use the existing API key"]})}),f[21]=J,f[22]=G;else G=f[22];let w;if(f[23]!==Z||f[24]!==q)w=!q?f0("success",Z)("> "):" ",f[23]=Z,f[24]=q,f[25]=w;else w=f[25];let U;if(f[26]!==w)U=d(Q,{marginBottom:1,children:I(X,{children:[w,"Create a new secret with a different name"]})}),f[26]=w,f[27]=U;else U=f[27];let c;if(f[28]!==L||f[29]!==z||f[30]!==M||f[31]!==Y||f[32]!==V||f[33]!==q)c=!q&&I(T,{children:[d(Q,{marginBottom:1,children:d(X,{children:"Enter new secret name (alphanumeric with underscores):"})}),d(t,{value:Y,onChange:z,onSubmit:M,focus:!0,placeholder:"e.g., CLAUDE_API_KEY",columns:V.columns,cursorOffset:L,onChangeCursorOffset:H,showCursor:!0})]}),f[28]=L,f[29]=z,f[30]=M,f[31]=Y,f[32]=V,f[33]=q,f[34]=c;else c=f[34];let k;if(f[35]!==G||f[36]!==U||f[37]!==c)k=I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[O,B,K,G,U,c]}),f[35]=G,f[36]=U,f[37]=c,f[38]=k;else k=f[38];let A;if(f[39]===Symbol.for("react.memo_cache_sentinel"))A=d(Q,{marginLeft:3,children:d(X,{dimColor:!0,children:"↑/↓ to select · Enter to continue"})}),f[39]=A;else A=f[39];let l;if(f[40]!==k)l=I(T,{children:[k,A]}),f[40]=k,f[41]=l;else l=f[41];return l}var i0,h0;var u0=h(()=>{G0();D0();j();J0();g();i0=_(r(),1),h0=_(Y0(),1)});function o0(){let W=j0.c(1),f;if(W[0]===Symbol.for("react.memo_cache_sentinel"))f=d(X,{children:"Checking GitHub CLI installation…"}),W[0]=f;else f=W[0];return f}var j0;var S0=h(()=>{j();g();j0=_(r(),1)});function a0(W){let f=n0.c(49),{currentRepo:q,useCurrentRepo:Y,repoUrl:D,onRepoUrlChange:z,onSubmit:M,onToggleUseCurrentRepo:L}=W,[H,V]=W0.useState(0),[Z,F]=W0.useState(!1),m=e().columns,b;if(f[0]!==q||f[1]!==M||f[2]!==D||f[3]!==Y)b=()=>{if(!(Y?q:D)?.trim()){F(!0);return}M()},f[0]=q,f[1]=M,f[2]=D,f[3]=Y,f[4]=b;else b=f[4];let P=b,C=!Y||!q,N;if(f[5]!==L)N=()=>{L(!0),F(!1)},f[5]=L,f[6]=N;else N=f[6];let E=N,v;if(f[7]!==L)v=()=>{L(!1),F(!1)},f[7]=L,f[8]=v;else v=f[8];let O=v,B;if(f[9]!==O||f[10]!==E||f[11]!==P)B={"confirm:previous":E,"confirm:next":O,"confirm:yes":P},f[9]=O,f[10]=E,f[11]=P,f[12]=B;else B=f[12];let K=!C,J;if(f[13]!==K)J={context:"Confirmation",isActive:K},f[13]=K,f[14]=J;else J=f[14];s(B,J);let G;if(f[15]!==O||f[16]!==E)G={"confirm:previous":E,"confirm:next":O},f[15]=O,f[16]=E,f[17]=G;else G=f[17];let w;if(f[18]!==C)w={context:"Confirmation",isActive:C},f[18]=C,f[19]=w;else w=f[19];s(G,w);let U;if(f[20]===Symbol.for("react.memo_cache_sentinel"))U=I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{bold:!0,children:"Install GitHub App"}),d(X,{dimColor:!0,children:"Select GitHub repository"})]}),f[20]=U;else U=f[20];let c;if(f[21]!==q||f[22]!==Y)c=q&&d(Q,{marginBottom:1,children:I(X,{bold:Y,color:Y?"permission":void 0,children:[Y?"> ":" ","Use current repository: ",q]})}),f[21]=q,f[22]=Y,f[23]=c;else c=f[23];let k=!Y||!q,A=!Y||!q?"permission":void 0,l=!Y||!q?"> ":" ",$=q?"Enter a different repository":"Enter repository",p;if(f[24]!==k||f[25]!==A||f[26]!==l||f[27]!==$)p=d(Q,{marginBottom:1,children:I(X,{bold:k,color:A,children:[l,$]})}),f[24]=k,f[25]=A,f[26]=l,f[27]=$,f[28]=p;else p=f[28];let u;if(f[29]!==q||f[30]!==H||f[31]!==P||f[32]!==z||f[33]!==D||f[34]!==m||f[35]!==Y)u=(!Y||!q)&&d(Q,{marginLeft:2,marginBottom:1,children:d(t,{value:D,onChange:(P0)=>{z(P0),F(!1)},onSubmit:P,focus:!0,placeholder:"Enter a repo as owner/repo or https://github.com/owner/repo…",columns:m,cursorOffset:H,onChangeCursorOffset:V,showCursor:!0})}),f[29]=q,f[30]=H,f[31]=P,f[32]=z,f[33]=D,f[34]=m,f[35]=Y,f[36]=u;else u=f[36];let n;if(f[37]!==c||f[38]!==p||f[39]!==u)n=I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[U,c,p,u]}),f[37]=c,f[38]=p,f[39]=u,f[40]=n;else n=f[40];let a;if(f[41]!==Z)a=Z&&d(Q,{marginLeft:3,marginBottom:1,children:d(X,{color:"error",children:"Please enter a repository name to continue"})}),f[41]=Z,f[42]=a;else a=f[42];let b0=q?"↑/↓ to select · ":"",q0;if(f[43]!==b0)q0=d(Q,{marginLeft:3,children:I(X,{dimColor:!0,children:[b0,"Enter to continue"]})}),f[43]=b0,f[44]=q0;else q0=f[44];let Z0;if(f[45]!==n||f[46]!==a||f[47]!==q0)Z0=I(T,{children:[n,a,q0]}),f[45]=n,f[46]=a,f[47]=q0,f[48]=Z0;else Z0=f[48];return Z0}var n0,W0;var r0=h(()=>{G0();D0();j();J0();g();n0=_(r(),1),W0=_(Y0(),1)});function x0(W){let f=$0.c(10),{currentWorkflowInstallStep:q,secretExists:Y,useExistingSecret:D,secretName:z,skipWorkflow:M,selectedWorkflows:L}=W,H=M===void 0?!1:M,V;if(f[0]!==Y||f[1]!==z||f[2]!==L||f[3]!==H||f[4]!==D)V=H?["Getting repository information",Y&&D?"Using existing API key secret":`Setting up ${z} secret`]:["Getting repository information","Creating branch",L.length>1?"Creating workflow files":"Creating workflow file",Y&&D?"Using existing API key secret":`Setting up ${z} secret`,"Opening pull request page"],f[0]=Y,f[1]=z,f[2]=L,f[3]=H,f[4]=D,f[5]=V;else V=f[5];let Z=V,F;if(f[6]===Symbol.for("react.memo_cache_sentinel"))F=I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{bold:!0,children:"Install GitHub App"}),d(X,{dimColor:!0,children:"Create GitHub Actions workflow"})]}),f[6]=F;else F=f[6];let y;if(f[7]!==q||f[8]!==Z)y=d(T,{children:I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[F,Z.map((m,b)=>{let P="pending";if(b<q)P="completed";else if(b===q)P="in-progress";return d(Q,{children:I(X,{color:P==="completed"?"success":P==="in-progress"?"warning":void 0,children:[P==="completed"?"✓ ":"",m,P==="in-progress"?"…":""]})},b)})]})}),f[7]=q,f[8]=Z,f[9]=y;else y=f[9];return y}var $0;var s0=h(()=>{j();g();$0=_(r(),1)});function t0(W){let f=e0.c(15),{error:q,errorReason:Y,errorInstructions:D}=W,z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=d(Q,{flexDirection:"column",marginBottom:1,children:d(X,{bold:!0,children:"Install GitHub App"})}),f[0]=z;else z=f[0];let M;if(f[1]!==q)M=I(X,{color:"error",children:["Error: ",q]}),f[1]=q,f[2]=M;else M=f[2];let L;if(f[3]!==Y)L=Y&&d(Q,{marginTop:1,children:I(X,{dimColor:!0,children:["Reason: ",Y]})}),f[3]=Y,f[4]=L;else L=f[4];let H;if(f[5]!==D)H=D&&D.length>0&&I(Q,{flexDirection:"column",marginTop:1,children:[d(X,{dimColor:!0,children:"How to fix:"}),D.map(uf)]}),f[5]=D,f[6]=H;else H=f[6];let V;if(f[7]===Symbol.for("react.memo_cache_sentinel"))V=d(Q,{marginTop:1,children:I(X,{dimColor:!0,children:["For manual setup instructions, see:"," ",d(X,{color:"claude",children:x})]})}),f[7]=V;else V=f[7];let Z;if(f[8]!==M||f[9]!==L||f[10]!==H)Z=I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[z,M,L,H,V]}),f[8]=M,f[9]=L,f[10]=H,f[11]=Z;else Z=f[11];let F;if(f[12]===Symbol.for("react.memo_cache_sentinel"))F=d(Q,{marginLeft:3,children:d(X,{dimColor:!0,children:"Press any key to exit"})}),f[12]=F;else F=f[12];let y;if(f[13]!==Z)y=I(T,{children:[Z,F]}),f[13]=Z,f[14]=y;else y=f[14];return y}function uf(W,f){return I(Q,{marginLeft:2,children:[d(X,{dimColor:!0,children:"• "}),d(X,{children:W})]},f)}var e0;var ff=h(()=>{X0();j();g();e0=_(r(),1)});function Yf(W){let f=df.c(16),{repoName:q,onSelectAction:Y}=W,D;if(f[0]===Symbol.for("react.memo_cache_sentinel"))D=[{label:"Update workflow file with latest version",value:"update"},{label:"Skip workflow update (configure secrets only)",value:"skip"},{label:"Exit without making changes",value:"exit"}],f[0]=D;else D=f[0];let z=D,M;if(f[1]!==Y)M=(C)=>{Y(C)},f[1]=Y,f[2]=M;else M=f[2];let L=M,H;if(f[3]!==Y)H=()=>{Y("exit")},f[3]=Y,f[4]=H;else H=f[4];let V=H,Z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))Z=d(X,{bold:!0,children:"Existing Workflow Found"}),f[5]=Z;else Z=f[5];let F;if(f[6]!==q)F=I(Q,{flexDirection:"column",marginBottom:1,children:[Z,I(X,{dimColor:!0,children:["Repository: ",q]})]}),f[6]=q,f[7]=F;else F=f[7];let y;if(f[8]===Symbol.for("react.memo_cache_sentinel"))y=I(Q,{flexDirection:"column",marginBottom:1,children:[I(X,{children:["A Claude workflow file already exists at"," ",d(X,{color:"claude",children:".github/workflows/claude.yml"})]}),d(X,{dimColor:!0,children:"What would you like to do?"})]}),f[8]=y;else y=f[8];let m;if(f[9]!==V||f[10]!==L)m=d(Q,{flexDirection:"column",children:d(qf,{options:z,onChange:L,onCancel:V})}),f[9]=V,f[10]=L,f[11]=m;else m=f[11];let b;if(f[12]===Symbol.for("react.memo_cache_sentinel"))b=d(Q,{marginTop:1,children:I(X,{dimColor:!0,children:["View the latest workflow template at:"," ",d(X,{color:"claude",children:"https://github.com/anthropics/claude-code-action/blob/main/examples/claude.yml"})]})}),f[12]=b;else b=f[12];let P;if(f[13]!==F||f[14]!==m)P=I(Q,{flexDirection:"column",borderStyle:"round",borderDimColor:!0,paddingX:1,children:[F,y,m,b]}),f[13]=F,f[14]=m,f[15]=P;else P=f[15];return P}var df;var Xf=h(()=>{jf();j();g();df=_(r(),1)});function Zf(W){let f=Qf.c(12),{repoUrl:q,onSubmit:Y}=W,D;if(f[0]===Symbol.for("react.memo_cache_sentinel"))D={context:"Confirmation"},f[0]=D;else D=f[0];z0("confirm:yes",Y,D);let z;if(f[1]===Symbol.for("react.memo_cache_sentinel"))z=d(Q,{flexDirection:"column",marginBottom:1,children:d(X,{bold:!0,children:"Install the Claude GitHub App"})}),f[1]=z;else z=f[1];let M;if(f[2]===Symbol.for("react.memo_cache_sentinel"))M=d(Q,{marginBottom:1,children:d(X,{children:"Opening browser to install the Claude GitHub App…"})}),f[2]=M;else M=f[2];let L;if(f[3]===Symbol.for("react.memo_cache_sentinel"))L=d(Q,{marginBottom:1,children:d(X,{children:"If your browser doesn't open automatically, visit:"})}),f[3]=L;else L=f[3];let H;if(f[4]===Symbol.for("react.memo_cache_sentinel"))H=d(Q,{marginBottom:1,children:d(X,{underline:!0,children:"https://github.com/apps/claude"})}),f[4]=H;else H=f[4];let V;if(f[5]!==q)V=d(Q,{marginBottom:1,children:I(X,{children:["Please install the app for repository: ",d(X,{bold:!0,children:q})]})}),f[5]=q,f[6]=V;else V=f[6];let Z;if(f[7]===Symbol.for("react.memo_cache_sentinel"))Z=d(Q,{marginBottom:1,children:d(X,{dimColor:!0,children:"Important: Make sure to grant access to this specific repository"})}),f[7]=Z;else Z=f[7];let F;if(f[8]===Symbol.for("react.memo_cache_sentinel"))F=d(Q,{children:I(X,{bold:!0,color:"permission",children:["Press Enter once you've installed the app",M0.ellipsis]})}),f[8]=F;else F=f[8];let y;if(f[9]===Symbol.for("react.memo_cache_sentinel"))y=d(Q,{marginTop:1,children:I(X,{dimColor:!0,children:["Having trouble? See manual setup instructions at:"," ",d(X,{color:"claude",children:x})]})}),f[9]=y;else y=f[9];let m;if(f[10]!==V)m=I(Q,{flexDirection:"column",borderStyle:"round",borderDimColor:!0,paddingX:1,children:[z,M,L,H,V,Z,F,y]}),f[10]=V,f[11]=m;else m=f[11];return m}var Qf;var Lf=h(()=>{Jf();X0();j();J0();g();Qf=_(r(),1)});function Vf({onSuccess:W,onCancel:f}){let[q,Y]=i.useState({state:"starting"}),[D]=i.useState(()=>new Hf),[z,M]=i.useState(""),[L,H]=i.useState(0),[V,Z]=i.useState(!1),[F,y]=i.useState(!1),m=i.useRef(new Set),b=i.useRef(void 0),P=e(),C=Math.max(50,P.columns-If.length-4);function N(B){if(q.state!=="error")return;if(B.preventDefault(),B.key==="return"&&q.toRetry)M(""),H(0),Y({state:"about_to_retry",nextState:q.toRetry});else f()}async function E(B,K){try{let[J,G]=B.split("#");if(!J||!G){Y({state:"error",message:"Invalid code. Please make sure the full code was copied",toRetry:{state:"waiting_for_login",url:K}});return}R("tengu_oauth_manual_entry",{}),D.handleManualAuthCodeInput({authorizationCode:J,state:G})}catch(J){Q0(J),Y({state:"error",message:J.message,toRetry:{state:"waiting_for_login",url:K}})}}let v=i.useCallback(async()=>{m.current.forEach((B)=>clearTimeout(B)),m.current.clear();try{let B=await D.startOAuthFlow(async(J)=>{Y({state:"waiting_for_login",url:J});let G=setTimeout(Z,3000,!0);m.current.add(G)},{loginWithClaudeAi:!0,inferenceOnly:!0,expiresIn:31536000});Y({state:"processing"}),Gf(B);let K=setTimeout((J,G,w,U)=>{J({state:"success",token:G});let c=setTimeout(w,1000,G);U.current.add(c)},100,Y,B.accessToken,W,m);m.current.add(K)}catch(B){let K=B.message;Y({state:"error",message:K,toRetry:{state:"starting"}}),Q0(B),R("tengu_oauth_error",{error:K})}},[D,W]);i.useEffect(()=>{if(q.state==="starting")v()},[q.state,v]),i.useEffect(()=>{if(q.state==="about_to_retry"){let B=setTimeout((K,J,G)=>{J(K.state==="waiting_for_login"),G(K)},500,q.nextState,Z,Y);m.current.add(B)}},[q]),i.useEffect(()=>{if(z==="c"&&q.state==="waiting_for_login"&&V&&!F)zf(q.url).then((B)=>{if(B)process.stdout.write(B);y(!0),clearTimeout(b.current),b.current=setTimeout(y,2000,!1)}),M("")},[z,q,V,F]),i.useEffect(()=>{let B=m.current;return()=>{D.cleanup(),B.forEach((K)=>clearTimeout(K)),B.clear(),clearTimeout(b.current)}},[D]);function O(){switch(q.state){case"starting":return I(Q,{children:[d(H0,{}),d(X,{children:"Starting authentication…"})]});case"waiting_for_login":return I(Q,{flexDirection:"column",gap:1,children:[!V&&I(Q,{children:[d(H0,{}),d(X,{children:"Opening browser to sign in with your Claude account…"})]}),V&&I(Q,{children:[d(X,{children:If}),d(t,{value:z,onChange:M,onSubmit:(B)=>E(B,q.url),cursorOffset:L,onChangeCursorOffset:H,columns:C})]})]});case"processing":return I(Q,{children:[d(H0,{}),d(X,{children:"Processing authentication…"})]});case"success":return I(Q,{flexDirection:"column",gap:1,children:[d(X,{color:"success",children:"✓ Authentication token created successfully!"}),d(X,{dimColor:!0,children:"Using token for GitHub Actions setup…"})]});case"error":return I(Q,{flexDirection:"column",gap:1,children:[I(X,{color:"error",children:["OAuth error: ",q.message]}),q.toRetry?d(X,{dimColor:!0,children:"Press Enter to try again, or any other key to cancel"}):d(X,{dimColor:!0,children:"Press any key to return to API key selection"})]});case"about_to_retry":return d(Q,{flexDirection:"column",gap:1,children:d(X,{color:"permission",children:"Retrying…"})});default:return null}}return I(Q,{flexDirection:"column",gap:1,tabIndex:0,autoFocus:!0,onKeyDown:N,children:[q.state==="starting"&&I(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[d(X,{bold:!0,children:"Create Authentication Token"}),d(X,{dimColor:!0,children:"Creating a long-lived token for GitHub Actions"})]}),q.state!=="success"&&q.state!=="starting"&&q.state!=="processing"&&I(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[d(X,{bold:!0,children:"Create Authentication Token"}),d(X,{dimColor:!0,children:"Creating a long-lived token for GitHub Actions"})]},"header"),q.state==="waiting_for_login"&&V&&I(Q,{flexDirection:"column",gap:1,paddingBottom:1,children:[I(Q,{paddingX:1,children:[I(X,{dimColor:!0,children:["Browser didn't open? Use the url below to sign in"," "]}),F?d(X,{color:"success",children:"(Copied!)"}):d(X,{dimColor:!0,children:d(d0,{shortcut:"c",action:"copy",parens:!0})})]}),d(L0,{url:q.url,children:d(X,{dimColor:!0,children:q.url})})]},"urlToCopy"),d(Q,{paddingLeft:1,flexDirection:"column",gap:1,children:O()})]})}var i,If="Paste code here if prompted > ";var bf=h(()=>{F0();w0();nf();G0();D0();of();j();Sf();Mf();Df();g();i=_(Y0(),1)});function Wf(W){let f=W.trim(),q=f.match(/^(?<owner>[^/:\s]+)\/(?<repo>[^/\s]+?)(?:\.git)?\/?$/i);if(q?.groups?.owner&&q.groups.repo)return`${q.groups.owner}/${q.groups.repo}`.replace(/\.git$/i,"");let Y=f.match(/^(?:https?:\/\/)?(?:www\.)?github\.com\/(?<owner>[^/:\s]+)\/(?<repo>[^/\s]+?)(?:\.git)?\/?$/i);if(Y?.groups?.owner&&Y.groups.repo)return`${Y.groups.owner}/${Y.groups.repo}`.replace(/\.git$/i,"");let D=f.match(/^(?:git@|ssh:\/\/git@)(?:www\.)?github\.com[:/](?<owner>[^/:\s]+)\/(?<repo>[^/\s]+?)(?:\.git)?\/?$/i);if(D?.groups?.owner&&D.groups.repo)return`${D.groups.owner}/${D.groups.repo}`;if(/^[a-z][a-z0-9+.-]*:\/\//i.test(f))return null;try{let z=new URL(f),M=z.hostname.toLowerCase();if(M!=="github.com"&&M!=="www.github.com")return null;let L=z.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(L.length<2)return null;return`${L[0]}/${L[1]}`.replace(/\.git$/i,"")}catch{return null}}var Ff=()=>{};function yf(W){let f=mf.c(21),{secretExists:q,useExistingSecret:Y,secretName:D,skipWorkflow:z}=W,M=z===void 0?!1:z,L;if(f[0]===Symbol.for("react.memo_cache_sentinel"))L=I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{bold:!0,children:"Install GitHub App"}),d(X,{dimColor:!0,children:"Success"})]}),f[0]=L;else L=f[0];let H;if(f[1]!==M)H=!M&&d(X,{color:"success",children:"✓ GitHub Actions workflow created!"}),f[1]=M,f[2]=H;else H=f[2];let V;if(f[3]!==q||f[4]!==Y)V=q&&Y&&d(Q,{marginTop:1,children:d(X,{color:"success",children:"✓ Using existing ANTHROPIC_API_KEY secret"})}),f[3]=q,f[4]=Y,f[5]=V;else V=f[5];let Z;if(f[6]!==q||f[7]!==D||f[8]!==Y)Z=(!q||!Y)&&d(Q,{marginTop:1,children:I(X,{color:"success",children:["✓ API key saved as ",D," secret"]})}),f[6]=q,f[7]=D,f[8]=Y,f[9]=Z;else Z=f[9];let F;if(f[10]===Symbol.for("react.memo_cache_sentinel"))F=d(Q,{marginTop:1,children:d(X,{children:"Next steps:"})}),f[10]=F;else F=f[10];let y;if(f[11]!==M)y=M?I(T,{children:[d(X,{children:"1. Install the Claude GitHub App if you haven't already"}),d(X,{children:"2. Your workflow file was kept unchanged"}),d(X,{children:"3. API key is configured and ready to use"})]}):I(T,{children:[d(X,{children:"1. A pre-filled PR page has been created"}),d(X,{children:"2. Install the Claude GitHub App if you haven't already"}),d(X,{children:"3. Merge the PR to enable Claude PR assistance"})]}),f[11]=M,f[12]=y;else y=f[12];let m;if(f[13]!==H||f[14]!==V||f[15]!==Z||f[16]!==y)m=I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[L,H,V,Z,F,y]}),f[13]=H,f[14]=V,f[15]=Z,f[16]=y,f[17]=m;else m=f[17];let b;if(f[18]===Symbol.for("react.memo_cache_sentinel"))b=d(Q,{marginLeft:3,children:d(X,{dimColor:!0,children:"Press any key to exit"})}),f[18]=b;else b=f[18];let P;if(f[19]!==m)P=I(T,{children:[m,b]}),f[19]=m,f[20]=P;else P=f[20];return P}var mf;var Pf=h(()=>{j();g();mf=_(r(),1)});async function rf(W,f,q,Y,D,z,M){let L=await o("gh",["api",`repos/${W}/contents/${q}`,"--jq",".sha"]),H=null;if(L.code===0)H=L.stdout.trim();let V=Y;if(D==="CLAUDE_CODE_OAUTH_TOKEN")V=Y.replace(/anthropic_api_key: \$\{\{ secrets\.ANTHROPIC_API_KEY \}\}/g,"claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}");else if(D!=="ANTHROPIC_API_KEY")V=Y.replace(/anthropic_api_key: \$\{\{ secrets\.ANTHROPIC_API_KEY \}\}/g,`anthropic_api_key: \${{ secrets.${D} }}`);let Z=Buffer.from(V).toString("base64"),F=["api","--method","PUT",`repos/${W}/contents/${q}`,"-f",`message=${H?`"Update ${z}"`:`"${z}"`}`,"-f",`content=${Z}`,"-f",`branch=${f}`];if(H)F.push("-f",`sha=${H}`);let y=await o("gh",F);if(y.code!==0){if(y.stderr.includes("422")&&y.stderr.includes("sha"))throw R("tengu_setup_github_actions_failed",{reason:"failed_to_create_workflow_file",exit_code:y.code,...M}),Error(`Failed to create workflow file ${q}: A Claude workflow file already exists in this repository. Please remove it first or update it manually.`);R("tengu_setup_github_actions_failed",{reason:"failed_to_create_workflow_file",exit_code:y.code,...M});let m=`
|
|
136
|
+
|
|
137
|
+
Need help? Common issues:
|
|
138
|
+
`+`· Permission denied → Run: gh auth refresh -h github.com -s repo,workflow
|
|
139
|
+
`+`· Not authorized → Ensure you have admin access to the repository
|
|
140
|
+
`+"· For manual setup → Visit: https://github.com/anthropics/claude-code-action";throw Error(`Failed to create workflow file ${q}: ${y.stderr}${m}`)}}async function cf(W,f,q,Y,D=!1,z,M,L){try{R("tengu_setup_github_actions_started",{skip_workflow:D,has_api_key:!!f,using_default_secret_name:q==="ANTHROPIC_API_KEY",selected_claude_workflow:z.includes("claude"),selected_claude_review_workflow:z.includes("claude-review"),...L});let H=await o("gh",["api",`repos/${W}`,"--jq",".id"]);if(H.code!==0)throw R("tengu_setup_github_actions_failed",{reason:"repo_not_found",exit_code:H.code,...L}),Error(`Failed to access repository ${W}: ${H.stderr}`);let V=await o("gh",["api",`repos/${W}`,"--jq",".default_branch"]);if(V.code!==0)throw R("tengu_setup_github_actions_failed",{reason:"failed_to_get_default_branch",exit_code:V.code,...L}),Error(`Failed to get default branch: ${V.stderr}`);let Z=V.stdout.trim(),F=await o("gh",["api",`repos/${W}/git/ref/heads/${Z}`,"--jq",".object.sha"]);if(F.code!==0)throw R("tengu_setup_github_actions_failed",{reason:"failed_to_get_branch_sha",exit_code:F.code,...L}),Error(`Failed to get branch SHA: ${F.stderr}`);let y=F.stdout.trim(),m=null;if(!D){Y(),m=`add-claude-github-actions-${Date.now()}`;let b=await o("gh",["api","--method","POST",`repos/${W}/git/refs`,"-f",`ref=refs/heads/${m}`,"-f",`sha=${y}`]);if(b.code!==0)throw R("tengu_setup_github_actions_failed",{reason:"failed_to_create_branch",exit_code:b.code,...L}),Error(`Failed to create branch: ${b.stderr}`);Y();let P=[];if(z.includes("claude"))P.push({path:".github/workflows/claude.yml",content:N0,message:"Claude PR Assistant workflow"});if(z.includes("claude-review"))P.push({path:".github/workflows/claude-code-review.yml",content:v0,message:"Claude Code Review workflow"});for(let C of P)await rf(W,m,C.path,C.content,q,C.message,L)}if(Y(),f){let b=await o("gh",["secret","set",q,"--body",f,"--repo",W]);if(b.code!==0){R("tengu_setup_github_actions_failed",{reason:"failed_to_set_api_key_secret",exit_code:b.code,...L});let P=`
|
|
141
|
+
|
|
142
|
+
Need help? Common issues:
|
|
143
|
+
`+`· Permission denied → Run: gh auth refresh -h github.com -s repo
|
|
144
|
+
`+`· Not authorized → Ensure you have admin access to the repository
|
|
145
|
+
`+"· For manual setup → Visit: https://github.com/anthropics/claude-code-action";throw Error(`Failed to set API key secret: ${b.stderr||"Unknown error"}${P}`)}}if(!D&&m){Y();let b=`https://github.com/${W}/compare/${Z}...${m}?quick_pull=1&title=${encodeURIComponent(k0)}&body=${encodeURIComponent(E0)}`;await V0(b)}R("tengu_setup_github_actions_completed",{skip_workflow:D,has_api_key:!!f,auth_type:M,using_default_secret_name:q==="ANTHROPIC_API_KEY",selected_claude_workflow:z.includes("claude"),selected_claude_review_workflow:z.includes("claude-review"),...L}),Bf((b)=>({...b,githubActionSetupCount:(b.githubActionSetupCount??0)+1}))}catch(H){if(!H||!(H instanceof Error)||!H.message.includes("Failed to"))R("tengu_setup_github_actions_failed",{reason:"unexpected_error",...L});if(H instanceof Error)Q0(H);throw H}}var Rf=h(()=>{F0();af();X0();Uf();wf();Df()});function Kf(W){let f=Cf.c(8),{warnings:q,onContinue:Y}=W,D;if(f[0]===Symbol.for("react.memo_cache_sentinel"))D={context:"Confirmation"},f[0]=D;else D=f[0];z0("confirm:yes",Y,D);let z;if(f[1]===Symbol.for("react.memo_cache_sentinel"))z=I(Q,{flexDirection:"column",marginBottom:1,children:[I(X,{bold:!0,children:[M0.warning," Setup Warnings"]}),d(X,{dimColor:!0,children:"We found some potential issues, but you can continue anyway"})]}),f[1]=z;else z=f[1];let M;if(f[2]!==q)M=q.map($f),f[2]=q,f[3]=M;else M=f[3];let L;if(f[4]===Symbol.for("react.memo_cache_sentinel"))L=d(Q,{marginTop:1,children:d(X,{bold:!0,color:"permission",children:"Press Enter to continue anyway, or Ctrl+C to exit and fix issues"})}),f[4]=L;else L=f[4];let H;if(f[5]===Symbol.for("react.memo_cache_sentinel"))H=d(Q,{marginTop:1,children:I(X,{dimColor:!0,children:["You can also try the manual setup steps if needed:"," ",d(X,{color:"claude",children:x})]})}),f[5]=H;else H=f[5];let V;if(f[6]!==M)V=d(T,{children:I(Q,{flexDirection:"column",borderStyle:"round",paddingX:1,children:[z,M,L,H]})}),f[6]=M,f[7]=V;else V=f[7];return V}function $f(W,f){return I(Q,{flexDirection:"column",marginBottom:1,children:[d(X,{color:"warning",bold:!0,children:W.title}),d(X,{children:W.message}),W.instructions.length>0&&d(Q,{flexDirection:"column",marginLeft:2,marginTop:1,children:W.instructions.map(xf)})]},f)}function xf(W,f){return I(X,{dimColor:!0,children:["• ",W]},f)}var Cf;var Af=h(()=>{Jf();X0();j();J0();g();Cf=_(r(),1)});function dq(W){let[f]=S.useState(()=>Nf()),[q,Y]=S.useState({...qq,useExistingKey:!!f,selectedApiKeyOption:f?"existing":y0()?"oauth":"new"});Ef(),S.default.useEffect(()=>{R("tengu_install_github_app_started",{})},[]);let D=S.useCallback(async()=>{let J=[];if((await m0("gh --version",{shell:!0,reject:!1})).exitCode!==0)J.push({title:"GitHub CLI not found",message:"GitHub CLI (gh) does not appear to be installed or accessible.",instructions:["Install GitHub CLI from https://cli.github.com/","macOS: brew install gh","Windows: winget install --id GitHub.cli","Linux: See installation instructions at https://github.com/cli/cli#installation"]});let w=await m0("gh auth status -a",{shell:!0,reject:!1});if(w.exitCode!==0)J.push({title:"GitHub CLI not authenticated",message:"GitHub CLI does not appear to be authenticated.",instructions:["Run: gh auth login","Follow the prompts to authenticate with GitHub","Or set up authentication using environment variables or other methods"]});else{let c=w.stdout.match(/Token scopes:.*$/m);if(c){let k=c[0],A=[];if(!k.includes("repo"))A.push("repo");if(!k.includes("workflow"))A.push("workflow");if(A.length>0){Y((l)=>({...l,step:"error",error:`GitHub CLI is missing required permissions: ${A.join(", ")}.`,errorReason:"Missing required scopes",errorInstructions:[`Your GitHub CLI authentication is missing the "${A.join('" and "')}" ${kf(A.length,"scope")} needed to manage GitHub Actions and secrets.`,"","To fix this, run:"," gh auth refresh -h github.com -s repo,workflow","","This will add the necessary permissions to manage workflows and secrets."]}));return}}}let U=await gf()??"";R("tengu_install_github_app_step_completed",{step:"check-gh"}),Y((c)=>({...c,warnings:J,currentRepo:U,selectedRepoName:U,useCurrentRepo:!!U,step:J.length>0?"warnings":"choose-repo"}))},[]);S.default.useEffect(()=>{if(q.step==="check-gh")D()},[q.step,D]);let z=S.useCallback(async(J,G)=>{Y((w)=>({...w,step:"creating",currentWorkflowInstallStep:0}));try{await cf(q.selectedRepoName,J,G,()=>{Y((w)=>({...w,currentWorkflowInstallStep:w.currentWorkflowInstallStep+1}))},q.workflowAction==="skip",q.selectedWorkflows,q.authType,{useCurrentRepo:q.useCurrentRepo,workflowExists:q.workflowExists,secretExists:q.secretExists}),R("tengu_install_github_app_step_completed",{step:"creating"}),Y((w)=>({...w,step:"success"}))}catch(w){let U=w instanceof Error?w.message:"Failed to set up GitHub Actions";if(U.includes("workflow file already exists"))R("tengu_install_github_app_error",{reason:"workflow_file_exists"}),Y((c)=>({...c,step:"error",error:"A Claude workflow file already exists in this repository.",errorReason:"Workflow file conflict",errorInstructions:["The file .github/workflows/claude.yml already exists","You can either:"," 1. Delete the existing file and run this command again"," 2. Update the existing file manually using the template from:",` ${x}`]}));else R("tengu_install_github_app_error",{reason:"setup_github_actions_failed"}),Y((c)=>({...c,step:"error",error:U,errorReason:"GitHub Actions setup failed",errorInstructions:[]}))}},[q.selectedRepoName,q.workflowAction,q.selectedWorkflows,q.useCurrentRepo,q.workflowExists,q.secretExists,q.authType]);async function M(){await V0("https://github.com/apps/claude")}async function L(J){try{let G=await o("gh",["api",`repos/${J}`,"--jq",".permissions.admin"]);if(G.code===0)return{hasAccess:G.stdout.trim()==="true"};if(G.stderr.includes("404")||G.stderr.includes("Not Found"))return{hasAccess:!1,error:"repository_not_found"};return{hasAccess:!1}}catch{return{hasAccess:!1}}}async function H(J){return(await o("gh",["api",`repos/${J}/contents/.github/workflows/claude.yml`,"--jq",".sha"])).code===0}async function V(){let J=await o("gh",["secret","list","--app","actions","--repo",q.selectedRepoName]);if(J.code===0)if(J.stdout.split(`
|
|
146
|
+
`).some((U)=>{return/^ANTHROPIC_API_KEY\s+/.test(U)}))Y((U)=>({...U,secretExists:!0,step:"check-existing-secret"}));else if(f)Y((U)=>({...U,apiKeyOrOAuthToken:f,useExistingKey:!0})),await z(f,q.secretName);else Y((U)=>({...U,step:"api-key"}));else if(f)Y((G)=>({...G,apiKeyOrOAuthToken:f,useExistingKey:!0})),await z(f,q.secretName);else Y((G)=>({...G,step:"api-key"}))}let Z=async()=>{if(q.step==="warnings")R("tengu_install_github_app_step_completed",{step:"warnings"}),Y((J)=>({...J,step:"install-app"})),setTimeout(M,0);else if(q.step==="choose-repo"){let J=q.useCurrentRepo?q.currentRepo:q.selectedRepoName;if(!J.trim())return;let G=[],w=Wf(J),U=/^[a-z][a-z0-9+.-]*:\/\//i.test(J)||J.startsWith("www.");if(w)J=w;else if(U)G.push({title:"Invalid GitHub URL format",message:"The repository URL format appears to be invalid.",instructions:["Use format: owner/repo or https://github.com/owner/repo","Example: anthropics/claude-cli"]});if(!J.includes("/"))G.push({title:"Repository format warning",message:'Repository should be in format "owner/repo"',instructions:["Use format: owner/repo","Example: anthropics/claude-cli"]});let c=await L(J);if(c.error==="repository_not_found")G.push({title:"Repository not found",message:`Repository ${J} was not found or you don't have access.`,instructions:[`Check that the repository name is correct: ${J}`,"Ensure you have access to this repository",'For private repositories, make sure your GitHub token has the "repo" scope',"You can add the repo scope with: gh auth refresh -h github.com -s repo,workflow"]});else if(!c.hasAccess)G.push({title:"Admin permissions required",message:`You might need admin permissions on ${J} to set up GitHub Actions.`,instructions:["Repository admins can install GitHub Apps and set secrets","Ask a repository admin to run this command if setup fails","Alternatively, you can use the manual setup instructions"]});let k=await H(J);if(G.length>0){let A=[...q.warnings,...G];Y((l)=>({...l,selectedRepoName:J,workflowExists:k,warnings:A,step:"warnings"}))}else R("tengu_install_github_app_step_completed",{step:"choose-repo"}),Y((A)=>({...A,selectedRepoName:J,workflowExists:k,step:"install-app"})),setTimeout(M,0)}else if(q.step==="install-app")if(R("tengu_install_github_app_step_completed",{step:"install-app"}),q.workflowExists)Y((J)=>({...J,step:"check-existing-workflow"}));else Y((J)=>({...J,step:"select-workflows"}));else if(q.step==="check-existing-workflow")return;else if(q.step==="select-workflows")return;else if(q.step==="check-existing-secret")if(R("tengu_install_github_app_step_completed",{step:"check-existing-secret"}),q.useExistingSecret)await z(null,q.secretName);else await z(q.apiKeyOrOAuthToken,q.secretName);else if(q.step==="api-key"){if(q.selectedApiKeyOption==="oauth")return;let J=q.selectedApiKeyOption==="existing"?f:q.apiKeyOrOAuthToken;if(!J){R("tengu_install_github_app_error",{reason:"api_key_missing"}),Y((w)=>({...w,step:"error",error:"API key is required"}));return}Y((w)=>({...w,apiKeyOrOAuthToken:J,useExistingKey:q.selectedApiKeyOption==="existing"}));let G=await o("gh",["secret","list","--app","actions","--repo",q.selectedRepoName]);if(G.code===0)if(G.stdout.split(`
|
|
147
|
+
`).some((c)=>{return/^ANTHROPIC_API_KEY\s+/.test(c)}))R("tengu_install_github_app_step_completed",{step:"api-key"}),Y((c)=>({...c,secretExists:!0,step:"check-existing-secret"}));else R("tengu_install_github_app_step_completed",{step:"api-key"}),await z(J,q.secretName);else R("tengu_install_github_app_step_completed",{step:"api-key"}),await z(J,q.secretName)}},F=(J)=>{Y((G)=>({...G,selectedRepoName:J}))},y=(J)=>{Y((G)=>({...G,apiKeyOrOAuthToken:J}))},m=(J)=>{Y((G)=>({...G,selectedApiKeyOption:J}))},b=S.useCallback(()=>{R("tengu_install_github_app_step_completed",{step:"api-key"}),Y((J)=>({...J,step:"oauth-flow"}))},[]),P=S.useCallback((J)=>{R("tengu_install_github_app_step_completed",{step:"oauth-flow"}),Y((G)=>({...G,apiKeyOrOAuthToken:J,useExistingKey:!1,secretName:"CLAUDE_CODE_OAUTH_TOKEN",authType:"oauth_token"})),z(J,"CLAUDE_CODE_OAUTH_TOKEN")},[z]),C=S.useCallback(()=>{Y((J)=>({...J,step:"api-key"}))},[]),N=(J)=>{if(J&&!/^[a-zA-Z0-9_]+$/.test(J))return;Y((G)=>({...G,secretName:J}))},E=(J)=>{Y((G)=>({...G,useCurrentRepo:J,selectedRepoName:J?G.currentRepo:""}))},v=(J)=>{Y((G)=>({...G,useExistingKey:J}))},O=(J)=>{Y((G)=>({...G,useExistingSecret:J,secretName:J?"ANTHROPIC_API_KEY":""}))},B=async(J)=>{if(J==="exit"){W.onDone("Installation cancelled by user");return}if(R("tengu_install_github_app_step_completed",{step:"check-existing-workflow"}),Y((G)=>({...G,workflowAction:J})),J==="skip"||J==="update")if(f)await V();else Y((G)=>({...G,step:"api-key"}))};function K(J){if(J.preventDefault(),q.step==="success")R("tengu_install_github_app_completed",{});W.onDone(q.step==="success"?"GitHub Actions setup complete!":q.error?`Couldn't install GitHub App: ${q.error}
|
|
148
|
+
For manual setup instructions, see: ${x}`:`GitHub App installation failed
|
|
149
|
+
For manual setup instructions, see: ${x}`)}switch(q.step){case"check-gh":return d(o0,{});case"warnings":return d(Kf,{warnings:q.warnings,onContinue:Z});case"choose-repo":return d(a0,{currentRepo:q.currentRepo,useCurrentRepo:q.useCurrentRepo,repoUrl:q.selectedRepoName,onRepoUrlChange:F,onToggleUseCurrentRepo:E,onSubmit:Z});case"install-app":return d(Zf,{repoUrl:q.selectedRepoName,onSubmit:Z});case"check-existing-workflow":return d(Yf,{repoName:q.selectedRepoName,onSelectAction:B});case"check-existing-secret":return d(p0,{useExistingSecret:q.useExistingSecret,secretName:q.secretName,onToggleUseExistingSecret:O,onSecretNameChange:N,onSubmit:Z});case"api-key":return d(_0,{existingApiKey:f,useExistingKey:q.useExistingKey,apiKeyOrOAuthToken:q.apiKeyOrOAuthToken,onApiKeyChange:y,onToggleUseExistingKey:v,onSubmit:Z,onCreateOAuthToken:y0()?b:void 0,selectedOption:q.selectedApiKeyOption,onSelectOption:m});case"creating":return d(x0,{currentWorkflowInstallStep:q.currentWorkflowInstallStep,secretExists:q.secretExists,useExistingSecret:q.useExistingSecret,secretName:q.secretName,skipWorkflow:q.workflowAction==="skip",selectedWorkflows:q.selectedWorkflows});case"success":return d(Q,{tabIndex:0,autoFocus:!0,onKeyDown:K,children:d(yf,{secretExists:q.secretExists,useExistingSecret:q.useExistingSecret,secretName:q.secretName,skipWorkflow:q.workflowAction==="skip"})});case"error":return d(Q,{tabIndex:0,autoFocus:!0,onKeyDown:K,children:d(t0,{error:q.error,errorReason:q.errorReason,errorInstructions:q.errorInstructions})});case"select-workflows":return d(A0,{defaultSelections:q.selectedWorkflows,onSubmit:(J)=>{if(R("tengu_install_github_app_step_completed",{step:"select-workflows"}),Y((G)=>({...G,selectedWorkflows:J})),f)V();else Y((G)=>({...G,step:"api-key"}))}});case"oauth-flow":return d(Vf,{onSuccess:P,onCancel:C})}}async function JY(W){return d(dq,{onDone:W})}var S,qq;var Yq=h(()=>{sf();F0();g0();X0();fq();j();Mf();Uf();wf();ef();tf();T0();u0();S0();r0();s0();ff();Xf();Lf();bf();Ff();Pf();Rf();Af();g();S=_(Y0(),1),qq={step:"check-gh",selectedRepoName:"",currentRepo:"",useCurrentRepo:!1,apiKeyOrOAuthToken:"",useExistingKey:!0,currentWorkflowInstallStep:0,warnings:[],secretExists:!1,secretName:"ANTHROPIC_API_KEY",useExistingSecret:!0,workflowExists:!1,selectedWorkflows:["claude","claude-review"],selectedApiKeyOption:"new",authType:"api_key"}});Yq();export{JY as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{RX as z,SX as I}from"./cli-0.1.12-c23pyffx.mjs";import{Cba as q,Yba as H}from"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import{gga as m,hga as F}from"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import{Una as D}from"./cli-0.1.12-1hv04bp7.mjs";async function T(){if(m("tengu_install_slack_app_clicked",{}),q((h)=>({...h,slackAppInstallCount:(h.slackAppInstallCount??0)+1})),await z(k))return{type:"text",value:"Opening Slack app installation page in browser…"};else return{type:"text",value:`Couldn't open browser. Visit: ${k}`}}var k="https://slack.com/marketplace/A08SF47R6P4-claude";var J=D(()=>{F();I();H()});J();export{T as call};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{FY as nw,iY as Kw,mY as Cw,oY as Ww,pY as yw,rY as Yw,tY as u}from"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import{S4 as zw,U4 as Dw,Y4 as Gw,g5 as Jw,l5 as uw}from"./cli-0.1.12-y9598sy3.mjs";import{F5 as hw,m5 as Ow,n5 as h,p5 as fw,q5 as ww,u5 as Lw,w5 as $w,x5 as Qw}from"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import{I7 as M,Kaa as e,N7 as jw,S8 as t,T8 as o,Taa as Rw,U8 as bw}from"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import{Vfa as r,_fa as Mw}from"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import{Gga as p,Mga as Sw,Oga as T,Sga as Aw,dha as s,eha as Y,hha as d,kga as L,mga as Uw}from"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import{Bha as Hw,rha as i}from"./cli-0.1.12-ra3sby5b.mjs";import{Kka as I,Lka as n,Nka as E,Oka as c,Pka as f,Qka as N,Rka as m,Yma as Iw}from"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import{Qna as Vw,Una as A,Vna as q}from"./cli-0.1.12-1hv04bp7.mjs";class b{constructor(){}async export($,w){w({code:0})}async shutdown(){}async forceFlush(){}selectAggregationTemporality(){return 0}}var g=()=>{};class R{error($,...w){M(Error($)),Y(`[3P telemetry] OTEL diag error: ${$}`,{level:"error"})}warn($,...w){M(Error($)),Y(`[3P telemetry] OTEL diag warn: ${$}`,{level:"warn"})}info($,...w){return}debug($,...w){return}verbose($,...w){return}}var P=A(()=>{d();jw()});import{DiagLogLevel as Ew,diag as mw,trace as Zw}from"@opentelemetry/api";import{logs as H}from"@opentelemetry/api-logs";import{envDetector as Tw,hostDetector as vw,osDetector as lw,resourceFromAttributes as V}from"@opentelemetry/resources";import{BatchLogRecordProcessor as _w,ConsoleLogRecordExporter as aw,LoggerProvider as qw}from"@opentelemetry/sdk-logs";import{ConsoleMetricExporter as gw,MeterProvider as x,PeriodicExportingMetricReader as Bw}from"@opentelemetry/sdk-metrics";import{BasicTracerProvider as Fw,BatchSpanProcessor as kw,ConsoleSpanExporter as dw}from"@opentelemetry/sdk-trace-base";import{ATTR_SERVICE_NAME as Pw,ATTR_SERVICE_VERSION as xw,SEMRESATTRS_HOST_ARCH as O}from"@opentelemetry/semantic-conventions";function y($,w){return new Promise((D,Q)=>{setTimeout((z,J)=>z(new v(J)),$,Q,w).unref()})}function iw(){if(!process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE)process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE="delta"}function l($){return($||"").trim().split(",").filter(Boolean).map((w)=>w.trim()).filter((w)=>w!=="none")}async function pw(){let $=l(process.env.OTEL_METRICS_EXPORTER),w=parseInt(process.env.OTEL_METRIC_EXPORT_INTERVAL||cw.toString()),D=[];for(let Q of $)if(Q==="console"){let z=new gw,J=z.export.bind(z);z.export=(G,k)=>{if(G.resource&&G.resource.attributes)Y(`
|
|
2
|
+
=== Resource Attributes ===`),Y(T(G.resource.attributes)),Y(`===========================
|
|
3
|
+
`);return J(G,k)},D.push(z)}else if(Q==="otlp"){let z=process.env.OTEL_EXPORTER_OTLP_METRICS_PROTOCOL?.trim()||process.env.OTEL_EXPORTER_OTLP_PROTOCOL?.trim(),J=a();switch(z){case"grpc":{let{OTLPMetricExporter:G}=await import("@opentelemetry/exporter-metrics-otlp-grpc");D.push(new G);break}case"http/json":{let{OTLPMetricExporter:G}=await import("@opentelemetry/exporter-metrics-otlp-http");D.push(new G(J));break}case"http/protobuf":{let{OTLPMetricExporter:G}=await import("@opentelemetry/exporter-metrics-otlp-proto");D.push(new G(J));break}default:throw Error(`Unknown protocol set in OTEL_EXPORTER_OTLP_METRICS_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${z}`)}}else if(Q==="prometheus"){let{PrometheusExporter:z}=await import("@opentelemetry/exporter-prometheus");D.push(new z)}else throw Error(`Unknown exporter type set in OTEL_EXPORTER_OTLP_METRICS_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${Q}`);return D.map((Q)=>{if("export"in Q)return new Bw({exporter:Q,exportIntervalMillis:w});return Q})}async function sw(){let $=l(process.env.OTEL_LOGS_EXPORTER),w=process.env.OTEL_EXPORTER_OTLP_LOGS_PROTOCOL?.trim()||process.env.OTEL_EXPORTER_OTLP_PROTOCOL?.trim(),D=process.env.OTEL_EXPORTER_OTLP_ENDPOINT;Y(`[3P telemetry] getOtlpLogExporters: types=${T($)}, protocol=${w}, endpoint=${D}`);let Q=[];for(let z of $)if(z==="console")Q.push(new aw);else if(z==="otlp"){let J=a();switch(w){case"grpc":{let{OTLPLogExporter:G}=await import("@opentelemetry/exporter-logs-otlp-grpc");Q.push(new G);break}case"http/json":{let{OTLPLogExporter:G}=await import("@opentelemetry/exporter-logs-otlp-http");Q.push(new G(J));break}case"http/protobuf":{let{OTLPLogExporter:G}=await import("@opentelemetry/exporter-logs-otlp-proto");Q.push(new G(J));break}default:throw Error(`Unknown protocol set in OTEL_EXPORTER_OTLP_LOGS_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${w}`)}}else throw Error(`Unknown exporter type set in OTEL_LOGS_EXPORTER env var: ${z}`);return Q}async function tw(){let $=l(process.env.OTEL_TRACES_EXPORTER),w=[];for(let D of $)if(D==="console")w.push(new dw);else if(D==="otlp"){let Q=process.env.OTEL_EXPORTER_OTLP_TRACES_PROTOCOL?.trim()||process.env.OTEL_EXPORTER_OTLP_PROTOCOL?.trim(),z=a();switch(Q){case"grpc":{let{OTLPTraceExporter:J}=await import("@opentelemetry/exporter-trace-otlp-grpc");w.push(new J);break}case"http/json":{let{OTLPTraceExporter:J}=await import("@opentelemetry/exporter-trace-otlp-http");w.push(new J(z));break}case"http/protobuf":{let{OTLPTraceExporter:J}=await import("@opentelemetry/exporter-trace-otlp-proto");w.push(new J(z));break}default:throw Error(`Unknown protocol set in OTEL_EXPORTER_OTLP_TRACES_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: ${Q}`)}}else throw Error(`Unknown exporter type set in OTEL_TRACES_EXPORTER env var: ${D}`);return w}function ow(){return i(process.env.CLAUDE_CODE_ENABLE_TELEMETRY)}function rw(){let $=new b;return new Bw({exporter:$,exportIntervalMillis:300000})}function ew(){let $=Gw(),w=zw()&&($==="enterprise"||$==="team");return Dw()||w}async function w0($){let w=process.env.BETA_TRACING_ENDPOINT;if(!w)return;let[{OTLPTraceExporter:D},{OTLPLogExporter:Q}]=await Promise.all([import("@opentelemetry/exporter-trace-otlp-http"),import("@opentelemetry/exporter-logs-otlp-http")]),z={url:`${w}/v1/traces`},J={url:`${w}/v1/logs`},G=new D(z),k=new kw(G,{scheduledDelayMillis:Xw}),_=new Fw({resource:$,spanProcessors:[k]});Zw.setGlobalTracerProvider(_),m(_);let j=new Q(J),F=new qw({resource:$,processors:[new _w(j,{scheduledDelayMillis:Nw})]});H.setGlobalLoggerProvider(F),n(F);let X=H.getLogger("com.anthropic.claude_code.events","99.0.0");E(X),process.on("beforeExit",async()=>{await F?.forceFlush(),await _?.forceFlush()}),process.on("exit",()=>{F?.forceFlush(),_?.forceFlush()})}async function C0(){if(r("telemetry_init_start"),iw(),s())for(let K of["OTEL_METRICS_EXPORTER","OTEL_LOGS_EXPORTER","OTEL_TRACES_EXPORTER"]){let W=process.env[K];if(W?.includes("console"))process.env[K]=W.split(",").map((Z)=>Z.trim()).filter((Z)=>Z!=="console").join(",")}mw.setLogger(new R,Ew.ERROR),Kw();let $=[],w=ow();if(Y(`[3P telemetry] isTelemetryEnabled=${w} (CLAUDE_CODE_ENABLE_TELEMETRY=${process.env.CLAUDE_CODE_ENABLE_TELEMETRY})`),w)$.push(...await pw());if(ew())$.push(rw());let D=t(),Q={[Pw]:"claude-code",[xw]:"99.0.0"};if(D==="wsl"){let K=o();if(K)Q["wsl.version"]=K}let z=V(Q),J=V(lw.detect().attributes||{}),G=vw.detect(),k=G.attributes?.[O]?{[O]:G.attributes[O]}:{},_=V(k),j=V(Tw.detect().attributes||{}),F=z.merge(J).merge(_).merge(j);if(Ww()){w0(F).catch((Z)=>Y(`Beta tracing init failed: ${Z}`,{level:"error"}));let K=new x({resource:F,views:[],readers:$});return f(K),L(async()=>{let Z=parseInt(process.env.CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS||"2000");try{u();let B=I(),U=N(),S=[K.shutdown()];if(B)S.push(B.forceFlush().then(()=>B.shutdown()));if(U)S.push(U.forceFlush().then(()=>U.shutdown()));await Promise.race([Promise.all(S),y(Z,"OpenTelemetry shutdown timeout")])}catch{}}),K.getMeter("com.anthropic.claude_code","99.0.0")}let X=new x({resource:F,views:[],readers:$});if(f(X),w){let K=await sw();if(Y(`[3P telemetry] Created ${K.length} log exporter(s)`),K.length>0){let W=new qw({resource:F,processors:K.map((B)=>new _w(B,{scheduledDelayMillis:parseInt(process.env.OTEL_LOGS_EXPORT_INTERVAL||Nw.toString())}))});H.setGlobalLoggerProvider(W),n(W);let Z=H.getLogger("com.anthropic.claude_code.events","99.0.0");E(Z),Y("[3P telemetry] Event logger set successfully"),process.on("beforeExit",async()=>{await W?.forceFlush(),await N()?.forceFlush()}),process.on("exit",()=>{W?.forceFlush(),N()?.forceFlush()})}}if(w&&Yw()){let K=await tw();if(K.length>0){let W=K.map((B)=>new kw(B,{scheduledDelayMillis:parseInt(process.env.OTEL_TRACES_EXPORT_INTERVAL||Xw.toString())})),Z=new Fw({resource:F,spanProcessors:W});Zw.setGlobalTracerProvider(Z),m(Z)}}return L(async()=>{let K=parseInt(process.env.CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS||"2000");try{u();let W=[X.shutdown()],Z=I();if(Z)W.push(Z.shutdown());let B=N();if(B)W.push(B.shutdown());await Promise.race([Promise.all(W),y(K,"OpenTelemetry shutdown timeout")])}catch(W){if(W instanceof Error&&W.message.includes("timeout"))Y(`
|
|
4
|
+
OpenTelemetry telemetry flush timed out after ${K}ms
|
|
5
|
+
|
|
6
|
+
To resolve this issue, you can:
|
|
7
|
+
1. Increase the timeout by setting CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS env var (e.g., 5000 for 5 seconds)
|
|
8
|
+
2. Check if your OpenTelemetry backend is experiencing scalability issues
|
|
9
|
+
3. Disable OpenTelemetry by unsetting CLAUDE_CODE_ENABLE_TELEMETRY env var
|
|
10
|
+
|
|
11
|
+
Current timeout: ${K}ms
|
|
12
|
+
`,{level:"error"});throw W}}),X.getMeter("com.anthropic.claude_code","99.0.0")}async function y0(){let $=c();if(!$)return;let w=parseInt(process.env.CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS||"5000");try{let D=[$.forceFlush()],Q=I();if(Q)D.push(Q.forceFlush());let z=N();if(z)D.push(z.forceFlush());await Promise.race([Promise.all(D),y(w,"OpenTelemetry flush timeout")]),Y("Telemetry flushed successfully")}catch(D){if(D instanceof v)Y(`Telemetry flush timed out after ${w}ms. Some metrics may not be exported.`,{level:"warn"});else Y(`Telemetry flush failed: ${p(D)}`,{level:"error"})}}function $0(){let $={},w=process.env.OTEL_EXPORTER_OTLP_HEADERS;if(w)for(let D of w.split(",")){let[Q,...z]=D.split("=");if(Q&&z.length>0)$[Q.trim()]=z.join("=").trim()}return $}function a(){let $=$w(),w=ww(),D=e(),Q={},z=$0();if(D?.otelHeadersHelper)Q.headers=async()=>{let _=Jw();return{...z,..._}};else if(Object.keys(z).length>0)Q.headers=async()=>z;let J=process.env.OTEL_EXPORTER_OTLP_ENDPOINT;if(!$||J&&Qw(J)){let _=h();if(w||_)Q.httpAgentOptions={...w,..._&&{ca:_}};return Q}let G=h(),k=(_)=>{return w||G?new C.HttpsProxyAgent($,{...w&&{cert:w.cert,key:w.key,passphrase:w.passphrase},...G&&{ca:G}}):new C.HttpsProxyAgent($)};return Q.httpAgentOptions=k,Q}var C,cw=60000,Nw=5000,Xw=5000,v;var Q0=A(()=>{Iw();uw();bw();fw();Uw();d();Hw();Sw();Lw();hw();Rw();Aw();Mw();yw();g();P();Cw();nw();C=Vw(Ow(),1);v=class v extends Error{}});Q0();export{l as parseExporterTypes,ow as isTelemetryEnabled,C0 as initializeTelemetry,y0 as flushTelemetry,iw as bootstrapTelemetry};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as a,t as b,u as c,v as d,w as e,x as f,y as g,z as h}from"./cli-0.1.12-bnss4rxn.mjs";import"./cli-0.1.12-756ngehz.mjs";import"./cli-0.1.12-tvawkeks.mjs";import"./cli-0.1.12-kg8gb6e3.mjs";import"./cli-0.1.12-a2qh6gjr.mjs";import"./cli-0.1.12-v79j5ced.mjs";import"./cli-0.1.12-5pw10pf8.mjs";import"./cli-0.1.12-e4zeaahk.mjs";import"./cli-0.1.12-hsw67esw.mjs";import"./cli-0.1.12-ng34ay3g.mjs";import"./cli-0.1.12-rqedb88a.mjs";import"./cli-0.1.12-nfvtmt75.mjs";import"./cli-0.1.12-8qm558mj.mjs";import"./cli-0.1.12-kys514qx.mjs";import"./cli-0.1.12-p5w2kms9.mjs";import"./cli-0.1.12-0x3cd401.mjs";import"./cli-0.1.12-e262snmb.mjs";import"./cli-0.1.12-kzd4y6yq.mjs";import"./cli-0.1.12-zk49aaxv.mjs";import"./cli-0.1.12-g1yp7kdf.mjs";import"./cli-0.1.12-c8d9vr4b.mjs";import"./cli-0.1.12-bmtahtv7.mjs";import"./cli-0.1.12-4tanq0qc.mjs";import"./cli-0.1.12-m3q5r7wd.mjs";import"./cli-0.1.12-242der7s.mjs";import"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import"./cli-0.1.12-tyt09z73.mjs";import"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import"./cli-0.1.12-04jw23rj.mjs";import"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-g4sdgt8h.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import"./cli-0.1.12-1hv04bp7.mjs";export{g as showSetupScreens,e as showSetupDialog,b as showDialog,f as renderAndRun,h as getRenderContext,d as exitWithMessage,c as exitWithError,a as completeOnboarding};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ef as O,gf as D}from"./cli-0.1.12-wcdh3m4s.mjs";import{Aj as Z,Dj as Q,Ej as v,Fj as A,Gj as L,Jj as z,yj as Y,zj as _}from"./cli-0.1.12-242der7s.mjs";import"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import"./cli-0.1.12-tyt09z73.mjs";import"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import"./cli-0.1.12-04jw23rj.mjs";import"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import{Hga as U,Mga as x,Oga as X,Sga as T}from"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import{Una as W}from"./cli-0.1.12-1hv04bp7.mjs";function w(q){let J=new Set(Z.map((H)=>Q(H.key)));return q.map((H)=>{let M={};for(let[V,R]of Object.entries(H.bindings))if(!J.has(Q(V)))M[V]=R;return{context:H.context,bindings:M}}).filter((H)=>Object.keys(H.bindings).length>0)}function $(){let J={$schema:"https://www.schemastore.org/claude-code-keybindings.json",$docs:"https://code.claude.com/docs/en/keybindings",bindings:w(Y)};return X(J,null,2)+`
|
|
2
|
+
`}var G=W(()=>{T();_();v()});import{mkdir as C,writeFile as I}from"fs/promises";import{dirname as S}from"path";async function E(){if(!A())return{type:"text",value:"Keybinding customization is not enabled. This feature is currently in preview."};let q=L(),J=!1;await C(S(q),{recursive:!0});try{await I(q,$(),{encoding:"utf-8",flag:"wx"})}catch(M){if(U(M)==="EEXIST")J=!0;else throw M}let H=await O(q);if(H.error)return{type:"text",value:`${J?"Opened":"Created"} ${q}. Could not open in editor: ${H.error}`};return{type:"text",value:J?`Opened ${q} in your editor.`:`Created ${q} with template. Opened in your editor.`}}var j=W(()=>{z();G();x();D()});j();export{E as call};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{H5 as B,I5 as _}from"./cli-0.1.12-m6jeef2z.mjs";import{Cba as J,Fba as Q,Yba as Z}from"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import{Una as U}from"./cli-0.1.12-1hv04bp7.mjs";function V(){return D={id:`arc_${Date.now()}`,goals:[],decisions:[],milestones:[],knowledgeGraph:{entities:{},relations:[]},currentPhase:"init",startTime:Date.now(),lastUpdateTime:Date.now()},D}function G(){if(!D)return V();return D}function X(){let l=G();if(!l||Object.keys(l.knowledgeGraph.entities).length===0)return"";let C="\\nKnowledge Graph:\\n";for(let w of Object.values(l.knowledgeGraph.entities)){C+=`- [${w.type}] ${w.name}`;let b=Object.entries(w.attributes);if(b.length>0)C+=` (${b.map(([f,$])=>`${f}: ${$}`).join(", ")})`;C+="\\n"}for(let w of l.knowledgeGraph.relations){let b=l.knowledgeGraph.entities[w.sourceId]?.name,f=l.knowledgeGraph.entities[w.targetId]?.name;if(b&&f)C+=`- ${b} --(${w.type})--> ${f}\\n`}return C}function N(){let l=G();if(!l)return"No conversation arc";let C=l.goals.filter((f)=>f.status==="active"||f.status==="pending"),w=l.goals.filter((f)=>f.status==="completed"),b=`Phase: ${l.currentPhase}\\n`;if(b+=`Goals: ${w.length}/${l.goals.length} completed\\n`,C.length>0)b+=`Active: ${C[0].description.slice(0,50)}...\\n`;if(l.decisions.length>0)b+=`Decisions: ${l.decisions.length}\\n`;if(l.milestones.length>0)b+=`Latest milestone: ${l.milestones[l.milestones.length-1].description.slice(0,40)}`;return b+=X(),b}function q(){D=null}function x(){let l=G();if(!l)return null;return{phase:l.currentPhase,goalCount:l.goals.length,completedGoals:l.goals.filter((C)=>C.status==="completed").length,decisionCount:l.decisions.length,milestoneCount:l.milestones.length,durationMs:l.lastUpdateTime-l.startTime}}var D=null;var H=()=>{};var E=async(l,C)=>{let b=(l?String(l):"").trim().toLowerCase().split(/\s+/).filter(Boolean),f=b[0];if(!f||f==="status"){let $=Q(),L=x(),j=G(),S=Object.keys(j?.knowledgeGraph.entities||{}).length,T=$.knowledgeGraphEnabled!==!1?B.green("ENABLED"):B.red("DISABLED"),K=`${B.bold("Knowledge Graph Engine")}: ${T}
|
|
2
|
+
`;if(L)K+=`• Stats: ${L.goalCount} goals, ${L.milestoneCount} milestones, ${S} technical facts learned`;return{type:"text",value:K}}if(f==="enable"){let $=b[1],L=$==="yes"||$==="true";if(!L&&!($==="no"||$==="false"))return{type:"text",value:"Usage: /knowledge enable <yes|no>"};return J((S)=>({...S,knowledgeGraphEnabled:L})),{type:"text",value:`✨ Knowledge Graph engine ${L?B.green("enabled"):B.red("disabled")}.`}}if(f==="clear")return q(),{type:"text",value:"\uD83D\uDDD1️ Knowledge graph memory has been cleared for this session."};if(f==="list")return{type:"text",value:N()};return{type:"text",value:`Unknown subcommand: ${f}. Available: enable, clear, status, list`}};var z=U(()=>{H();Z();_()});z();export{E as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Kl as a,Ll as b,Ml as c,Nl as d,Ol as e,Pl as f,Ql as g,Rl as h,Sl as i,Tl as j,Ul as k,Wl as l}from"./cli-0.1.12-242der7s.mjs";import"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import"./cli-0.1.12-tyt09z73.mjs";import"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import"./cli-0.1.12-04jw23rj.mjs";import"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import"./cli-0.1.12-1hv04bp7.mjs";l();export{j as parseAgentsFromJson,k as parseAgentFromMarkdown,i as parseAgentFromJson,c as isPluginAgent,b as isCustomAgent,a as isBuiltInAgent,e as hasRequiredMcpServers,g as getAgentDefinitionsWithOverrides,d as getActiveAgentsFromList,f as filterAgentsByMcpRequirements,h as clearAgentDefinitionsCache};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$y as d,Yy as a,Zy as b,_y as c,az as e,bz as f,cz as g}from"./cli-0.1.12-242der7s.mjs";import"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import"./cli-0.1.12-tyt09z73.mjs";import"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import"./cli-0.1.12-04jw23rj.mjs";import"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import"./cli-0.1.12-1hv04bp7.mjs";g();export{f as setupPluginHookHotReload,d as resetHotReloadState,c as pruneRemovedPluginHooks,a as loadPluginHooks,e as getPluginAffectingSettingsSnapshot,b as clearPluginHookCache};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Jv as a,Kv as b,Lv as c,Mv as d}from"./cli-0.1.12-242der7s.mjs";import"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import"./cli-0.1.12-tyt09z73.mjs";import"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import"./cli-0.1.12-04jw23rj.mjs";import"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import"./cli-0.1.12-1hv04bp7.mjs";d();export{a as performLogout,b as clearAuthRelatedCaches,c as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Lz as y,Mz as t,Nz as Jq,Oz as Zq,Pz as Nq,Tz as Qq,Vz as yq,ov as qq,qv as Tq}from"./cli-0.1.12-242der7s.mjs";import"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import{DP as D,EP as i,HP as T,IP as l,LP as o,MP as Hq}from"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import{VS as n,WS as Gq}from"./cli-0.1.12-tyt09z73.mjs";import{OU as I,QU as Z,SU as N,nT as x,vV as a}from"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import{rX as J,sX as X,tX as G}from"./cli-0.1.12-04jw23rj.mjs";import{uX as h}from"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import{$$ as v,Haa as E,O7 as U,P7 as kq,Taa as u,haa as Kq}from"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import{Bha as Bq,oha as e}from"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import{Qna as C,Una as B}from"./cli-0.1.12-1hv04bp7.mjs";function Pq(q){switch(q){case"✓ detected":return"detected";case"✗ missing":return"missing";case"⏳ installing":return"installing";case"⊘ disabled":return"disabled"}}function Oq(q,W){switch(q){case"✓ detected":return{icon:I("success",W)(U.tick),label:"detected"};case"✗ missing":return{icon:I("error",W)(U.cross),label:"missing"};case"⏳ installing":return{icon:I("warning",W)(U.triangleUpOutline),label:"installing"};case"⊘ disabled":return{icon:I("inactive",W)(U.radioOff),label:"disabled"}}}function Lq(q){if(q.status!=="✗ missing")return null;if(q.installer==="manual (SDK)")return q.name==="dart"?"install via Dart SDK":"install manually";return`install via ${q.installer}`}function Eq(q){let W={detected:[],missing:[],installing:[],disabled:[]};for(let z of q)W[Pq(z.status)].push(z);for(let z of f)W[z].sort((Y,A)=>Y.name.localeCompare(A.name));return W}function r({rows:q,onSelectServer:W,onComplete:z}){let[Y]=x(),[A,_]=P.useState(0),[V,k]=P.useState(()=>y()),K=Eq(q),F=[{type:"master"}];for(let Q of f)for(let $ of K[Q])F.push({type:"server",server:$});let M=P.useRef(F);M.current=F;let L=P.useRef(A);L.current=A;let b=P.useRef(V);b.current=V;let m=()=>{let Q=!b.current;k(Q),E("userSettings",{lsp:{enabled:Q?void 0:!1}})};n({"confirm:previous":()=>{let Q=M.current.length;_(($)=>$===0?Q-1:$-1)},"confirm:next":()=>{let Q=M.current.length;_(($)=>$===Q-1?0:$+1)},"confirm:toggle":()=>{if(M.current[L.current]?.type==="master")m()},"confirm:yes":()=>{let Q=M.current[L.current];if(!Q)return;if(Q.type==="master"){m();return}W(Q.server)}},{context:"Confirmation"});let S=q.length,Aq=K.detected.length,Vq=K.missing.length,g=K.installing.length,c=K.disabled.length,w=[`${S} ${v(S,"server")}`,`${Aq} detected`,`${Vq} missing`];if(g>0)w.push(`${g} installing`);if(c>0)w.push(`${c} disabled`);let Fq=w.join(" · "),j=()=>{let $=A===0,H=V?I("success",Y)(U.tick):I("inactive",Y)(U.radioOff),R=V?"enabled":"disabled";return X(Z,{flexDirection:"column",marginBottom:1,children:[J(Z,{paddingLeft:2,children:J(N,{bold:!0,children:"Global"})}),X(Z,{children:[J(N,{color:$?"suggestion":void 0,children:$?`${U.pointer} `:" "}),J(N,{color:$?"suggestion":void 0,children:"LSP"}),X(N,{dimColor:!$,children:[" · ",H," "]}),J(N,{dimColor:!$,children:R})]}),!V&&J(Z,{paddingLeft:2,marginTop:1,children:J(N,{color:"warning",children:"LSP is disabled. No servers connect, the LSP tool is hidden, and diagnostics are not injected."})})]})},_q=(Q)=>{let H=F.findIndex((d)=>d.type==="server"&&d.server===Q)===A,{icon:R,label:Dq}=Oq(Q.status,Y),p=Lq(Q);return X(Z,{children:[J(N,{color:H?"suggestion":void 0,children:H?`${U.pointer} `:" "}),J(N,{color:H?"suggestion":void 0,children:Q.name}),X(N,{dimColor:!H,children:[" · ",R," "]}),J(N,{dimColor:!H,children:Dq}),p&&X(N,{dimColor:!0,children:[" · ",p]})]},Q.name)},Mq=(Q)=>{let $=K[Q];if($.length===0)return null;return X(Z,{flexDirection:"column",marginBottom:1,children:[X(Z,{paddingLeft:2,children:[J(N,{bold:!0,children:Iq[Q]}),X(N,{dimColor:!0,children:[" (",$.length,")"]})]}),$.map(_q)]},Q)},Uq=q.length===0?X(Z,{flexDirection:"column",children:[j(),J(N,{dimColor:!0,children:"Loading..."})]}):X(Z,{flexDirection:"column",children:[j(),f.map(Mq)]});return X(Z,{flexDirection:"column",children:[J(o,{title:"LSP servers",subtitle:Fq,onCancel:()=>z(),hideInputGuide:!0,children:Uq}),J(Z,{paddingX:1,children:J(N,{dimColor:!0,italic:!0,children:X(T,{children:[J(D,{shortcut:"↑↓",action:"navigate"}),J(D,{shortcut:"Space",action:"toggle LSP"}),J(D,{shortcut:"Enter",action:"select"}),J(D,{shortcut:"Esc",action:"close"})]})})})]})}var P,f,Iq;var s=B(()=>{kq();a();Gq();t();u();Kq();l();Hq();i();G();P=C(h(),1),f=["detected","missing","installing","disabled"],Iq={detected:"Detected",missing:"Missing",installing:"Installing",disabled:"Disabled"}});import{rm as wq}from"node:fs/promises";import{join as Rq}from"node:path";function fq(q){let W=Math.floor(q/5),z=20-W;return`[${"█".repeat(W)}${"░".repeat(z)}] ${q}%`}function Xq({server:q,onCancel:W,onComplete:z}){let[Y,A]=Wq.useState(null),_=q.installer!=="manual (SDK)"&&q.installer!=="—",V=y(),k=[];if(_&&!q.found&&V)k.push({label:"Install",value:"install"});if(_&&q.managed)k.push({label:"Uninstall",value:"uninstall"});if(!q.disabled)k.push({label:"Disable",value:"disable"});else k.push({label:"Enable",value:"enable"});k.push({label:"Back",value:"back"});let K=async(F)=>{if(F==="back"){W();return}if(F==="install"){if(A({phase:"download",pct:0}),await Jq(q.name,(L)=>A(L)))z(`✓ ${q.name} installed`);else z(`✗ failed to install ${q.name}`);return}if(F==="uninstall"){let M=Rq(e(),"lsp",q.name);await wq(M,{recursive:!0,force:!0}),Qq(),W();return}if(F==="disable"){E("userSettings",{lsp:{[q.name]:{disabled:!0}}}),W();return}if(F==="enable"){E("userSettings",{lsp:{[q.name]:{disabled:void 0}}}),W();return}};if(Y!==null){let F=Y.phase==="download"?Y.pct:Y.phase==="extract"?99:Y.phase==="done"?100:0,M=Y.phase==="download"?`Downloading ${q.name}...`:Y.phase==="extract"?`Extracting ${q.name}...`:Y.phase==="done"?`Installed ${q.name}`:`Failed to install ${q.name}`;return X(Z,{flexDirection:"column",paddingX:1,children:[X(N,{children:[Y.phase==="failed"?"Failed to install ":"Installing ",J(N,{bold:!0,children:q.name}),Y.phase==="failed"?"":"..."]}),Y.phase!=="failed"&&J(N,{color:"yellow",children:fq(F)}),J(N,{dimColor:!0,children:M})]})}return X(Z,{flexDirection:"column",children:[X(Z,{flexDirection:"column",paddingX:1,borderStyle:"round",children:[X(Z,{marginBottom:1,children:[J(N,{bold:!0,children:q.name}),X(N,{dimColor:!0,children:[" ",q.status," ",q.installer!=="—"?`installer: ${q.installer}`:""]})]}),!V&&J(Z,{marginBottom:1,children:J(N,{color:"yellow",children:"LSP is globally disabled. Enable LSP from the dashboard to install servers."})}),J(qq,{options:k,onChange:K,onCancel:W})]}),J(Z,{marginTop:1,children:J(N,{dimColor:!0,italic:!0,children:X(T,{children:[J(D,{shortcut:"↑↓",action:"navigate"}),J(D,{shortcut:"Enter",action:"select"}),J(D,{shortcut:"Esc",action:"back"})]})})})]})}var Wq;var Yq=B(()=>{a();Nq();yq();t();u();Tq();l();i();Bq();G();Wq=C(h(),1)});function $q({onComplete:q}){let[W,z]=O.useState({type:"list"}),[Y,A]=O.useState([]),_=O.useCallback(()=>{Zq().then(A).catch(()=>A([]))},[]);if(O.useEffect(()=>{_()},[_]),W.type==="server-menu")return J(Xq,{server:W.server,onCancel:()=>{_(),z({type:"list"})},onComplete:(V)=>{_(),q(V)}});return J(r,{rows:Y,onSelectServer:(V)=>z({type:"server-menu",server:V}),onComplete:q})}var O;var zq=B(()=>{Nq();s();Yq();G();O=C(h(),1)});async function zJ(q,W,z){return J($q,{onComplete:q})}var Cq=B(()=>{zq();G()});Cq();export{zJ as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as a,B as b}from"./cli-0.1.12-bnss4rxn.mjs";import"./cli-0.1.12-756ngehz.mjs";import"./cli-0.1.12-tvawkeks.mjs";import"./cli-0.1.12-kg8gb6e3.mjs";import"./cli-0.1.12-a2qh6gjr.mjs";import"./cli-0.1.12-v79j5ced.mjs";import"./cli-0.1.12-5pw10pf8.mjs";import"./cli-0.1.12-e4zeaahk.mjs";import"./cli-0.1.12-hsw67esw.mjs";import"./cli-0.1.12-ng34ay3g.mjs";import"./cli-0.1.12-rqedb88a.mjs";import"./cli-0.1.12-nfvtmt75.mjs";import"./cli-0.1.12-8qm558mj.mjs";import"./cli-0.1.12-kys514qx.mjs";import"./cli-0.1.12-p5w2kms9.mjs";import"./cli-0.1.12-0x3cd401.mjs";import"./cli-0.1.12-e262snmb.mjs";import"./cli-0.1.12-kzd4y6yq.mjs";import"./cli-0.1.12-zk49aaxv.mjs";import"./cli-0.1.12-g1yp7kdf.mjs";import"./cli-0.1.12-c8d9vr4b.mjs";import"./cli-0.1.12-bmtahtv7.mjs";import"./cli-0.1.12-4tanq0qc.mjs";import"./cli-0.1.12-m3q5r7wd.mjs";import"./cli-0.1.12-242der7s.mjs";import"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import"./cli-0.1.12-tyt09z73.mjs";import"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import"./cli-0.1.12-04jw23rj.mjs";import"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-g4sdgt8h.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import"./cli-0.1.12-1hv04bp7.mjs";export{a as startDeferredPrefetches,b as main};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b0 as a,c0 as b}from"./cli-0.1.12-g4sdgt8h.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import"./cli-0.1.12-1hv04bp7.mjs";export{a as applySafeConfigEnvironmentVariables,b as applyConfigEnvironmentVariables};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{fe as vq,ge as MG,he as lq,ie as BG,je as cq,ke as fG,le as iq,me as AG}from"./cli-0.1.12-kwc7ew38.mjs";import{oe as DG,pe as hG,re as PG}from"./cli-0.1.12-xfqkrd5x.mjs";import"./cli-0.1.12-ybm1kvwy.mjs";import{We as KG,Xe as dG}from"./cli-0.1.12-0eznapyf.mjs";import{$q as FG,Ay as Bq,By as QG,KI as XG,Mq as wq,NI as YG,OI as yG,SI as ZG,Uq as fq,_q as NG,bK as zq,dK as HG,eK as gq,ov as JG,qv as jG}from"./cli-0.1.12-242der7s.mjs";import{cP as RG,fP as lG}from"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import{DP as Jq,EP as sq,FP as Wq,GP as eq,HP as yq,IP as qG,LP as Mq,MP as GG}from"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import{US as rq,VS as LG,WS as tq}from"./cli-0.1.12-tyt09z73.mjs";import{OU as j,QU as O,SU as U,WU as Rq,eT as Aq,nT as Xq,vV as uq}from"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import{rX as J,sX as W,tX as p}from"./cli-0.1.12-04jw23rj.mjs";import{uX as Uq}from"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import{$$ as zG,O7 as b,P7 as jq,_$ as aq,haa as nq}from"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import{$ga as kG,hha as uG}from"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import{Qna as v,Una as Qq}from"./cli-0.1.12-1hv04bp7.mjs";function dq({agentServer:G,onCancel:q,onComplete:Q}){let[X]=Xq(),[y,B]=u.useState(!1),[f,Y]=u.useState(null),[V,P]=u.useState(null),H=u.useRef(null);u.useEffect(()=>()=>H.current?.abort(),[]);let T=u.useCallback(()=>{if(y)H.current?.abort(),H.current=null,B(!1),P(null)},[y]);rq("confirm:no",T,{context:"Confirmation",isActive:y});let w=u.useCallback(async()=>{if(!G.needsAuth||!G.url)return;B(!0),Y(null);let L=new AbortController;H.current=L;try{let E={type:G.transport,url:G.url};await YG(G.name,E,P,L.signal),Q?.(`Authentication successful for ${G.name}. The server will connect when the agent runs.`)}catch(E){if(E instanceof Error&&!(E instanceof XG))Y(E.message)}finally{B(!1),H.current=null}},[G,Q]),k=aq(String(G.name));if(y)return W(O,{flexDirection:"column",gap:1,padding:1,children:[W(U,{color:"claude",children:["Authenticating with ",G.name,"…"]}),W(O,{children:[J(Bq,{}),J(U,{children:" A browser window will open for authentication"})]}),V&&W(O,{flexDirection:"column",children:[J(U,{dimColor:!0,children:"If your browser doesn't open automatically, copy this URL manually:"}),J(Rq,{url:V})]}),J(O,{marginLeft:3,children:W(U,{dimColor:!0,children:["Return here after authenticating in your browser."," ",J(Wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]})})]});let R=[];if(G.needsAuth)R.push({label:G.isAuthenticated?"Re-authenticate":"Authenticate",value:"auth"});return R.push({label:"Back",value:"back"}),W(Mq,{title:`${k} MCP Server`,subtitle:"agent-only",onCancel:q,inputGuide:(L)=>L.pending?W(U,{children:["Press ",L.keyName," again to exit"]}):W(yq,{children:[J(Jq,{shortcut:"↑↓",action:"navigate"}),J(Jq,{shortcut:"Enter",action:"confirm"}),J(Wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]}),children:[W(O,{flexDirection:"column",gap:0,children:[W(O,{children:[J(U,{bold:!0,children:"Type: "}),J(U,{dimColor:!0,children:G.transport})]}),G.url&&W(O,{children:[J(U,{bold:!0,children:"URL: "}),J(U,{dimColor:!0,children:G.url})]}),G.command&&W(O,{children:[J(U,{bold:!0,children:"Command: "}),J(U,{dimColor:!0,children:G.command})]}),W(O,{children:[J(U,{bold:!0,children:"Used by: "}),J(U,{dimColor:!0,children:G.sourceAgents.join(", ")})]}),W(O,{marginTop:1,children:[J(U,{bold:!0,children:"Status: "}),W(U,{children:[j("inactive",X)(b.radioOff)," not connected (agent-only)"]})]}),G.needsAuth&&W(O,{children:[J(U,{bold:!0,children:"Auth: "}),G.isAuthenticated?W(U,{children:[j("success",X)(b.tick)," authenticated"]}):W(U,{children:[j("warning",X)(b.triangleUpOutline)," may need authentication"]})]})]}),J(O,{children:J(U,{dimColor:!0,children:"This server connects only when running the agent."})}),f&&J(O,{children:W(U,{color:"error",children:["Error: ",f]})}),J(O,{children:J(JG,{options:R,onChange:async(L)=>{switch(L){case"auth":await w();break;case"back":q();break}},onCancel:q})})]})}var u;var pq=Qq(()=>{jq();uq();tq();ZG();nq();eq();jG();qG();GG();sq();QG();p();u=v(Uq(),1)});function UG(G){switch(G){case"project":return{label:"Project MCPs",path:fq(G)};case"user":return{label:"User MCPs",path:fq(G)};case"local":return{label:"Local MCPs",path:fq(G)};case"enterprise":return{label:"Enterprise MCPs"};case"dynamic":return{label:"Built-in MCPs",path:"always available"};default:return{label:G}}}function pG(G){let q=new Map;for(let Q of G){let X=Q.scope;if(!q.has(X))q.set(X,[]);q.get(X).push(Q)}for(let[,Q]of q)Q.sort((X,y)=>X.name.localeCompare(y.name));return q}function mq(G){let q=OG.c(78),{servers:Q,agentServers:X,onSelectServer:y,onSelectAgentServer:B,onComplete:f}=G,Y;if(q[0]!==X)Y=X===void 0?[]:X,q[0]=X,q[1]=Y;else Y=q[1];let V=Y,[P]=Xq(),[H,T]=VG.useState(0),w;if(q[2]!==Q){let Z=Q.filter(vG);w=pG(Z),q[2]=Q,q[3]=w}else w=q[3];let k=w,R;if(q[4]!==Q)R=Q.filter(SG).sort(xG),q[4]=Q,q[5]=R;else R=q[5];let L=R,E;if(q[6]!==k)E=(k.get("dynamic")??[]).sort(gG),q[6]=k,q[7]=E;else E=q[7];let M=E,C;if(q[8]===Symbol.for("react.memo_cache_sentinel"))C=UG("dynamic"),q[8]=C;else C=q[8];let l=C,K;if(q[9]!==V||q[10]!==L||q[11]!==M||q[12]!==k){K=[];for(let Z of WG){let A=k.get(Z)??[];for(let I of A)K.push({type:"server",server:I})}for(let Z of L)K.push({type:"server",server:Z});for(let Z of V)K.push({type:"agent-server",agentServer:Z});for(let Z of M)K.push({type:"server",server:Z});q[9]=V,q[10]=L,q[11]=M,q[12]=k,q[13]=K}else K=q[13];let F=K,N;if(q[14]!==f)N=()=>{f("MCP dialog dismissed",{display:"system"})},q[14]=f,q[15]=N;else N=q[15];let D=N,z;if(q[16]!==B||q[17]!==y||q[18]!==F||q[19]!==H)z=()=>{let Z=F[H];if(!Z)return;if(Z.type==="server")y(Z.server);else if(Z.type==="agent-server"&&B)B(Z.agentServer)},q[16]=B,q[17]=y,q[18]=F,q[19]=H,q[20]=z;else z=q[20];let h=z,m,_;if(q[21]!==F)_=()=>T((Z)=>Z===0?F.length-1:Z-1),m=()=>T((Z)=>Z===F.length-1?0:Z+1),q[21]=F,q[22]=m,q[23]=_;else m=q[22],_=q[23];let i;if(q[24]!==D||q[25]!==h||q[26]!==m||q[27]!==_)i={"confirm:previous":_,"confirm:next":m,"confirm:yes":h,"confirm:no":D},q[24]=D,q[25]=h,q[26]=m,q[27]=_,q[28]=i;else i=q[28];let c;if(q[29]===Symbol.for("react.memo_cache_sentinel"))c={context:"Confirmation"},q[29]=c;else c=q[29];LG(i,c);let g;if(q[30]!==F)g=(Z)=>F.findIndex((A)=>A.type==="server"&&A.server===Z),q[30]=F,q[31]=g;else g=q[31];let Lq=g,o;if(q[32]!==F)o=(Z)=>F.findIndex((A)=>A.type==="agent-server"&&A.agentServer===Z),q[32]=F,q[33]=o;else o=q[33];let Zq=o,$;if(q[34]===Symbol.for("react.memo_cache_sentinel"))$=kG(),q[34]=$;else $=q[34];let CG=$,Fq;if(q[35]!==Q)Fq=Q.some(_G),q[35]=Q,q[36]=Fq;else Fq=q[36];let hq=Fq;if(Q.length===0&&V.length===0)return null;let Kq;if(q[37]!==Lq||q[38]!==H||q[39]!==P)Kq=(Z)=>{let A=Lq(Z),I=H===A,d,S;if(Z.client.type==="disabled")d=j("inactive",P)(b.radioOff),S="disabled";else if(Z.client.type==="connected")d=j("success",P)(b.tick),S="connected";else if(Z.client.type==="pending"){d=j("inactive",P)(b.radioOff);let{reconnectAttempt:oq,maxReconnectAttempts:$q}=Z.client;if(oq&&$q)S=`reconnecting (${oq}/${$q})…`;else S="connecting…"}else if(Z.client.type==="needs-auth")d=j("warning",P)(b.triangleUpOutline),S="needs authentication";else d=j("error",P)(b.cross),S="failed";return W(O,{children:[J(U,{color:I?"suggestion":void 0,children:I?`${b.pointer} `:" "}),J(U,{color:I?"suggestion":void 0,children:Z.name}),W(U,{dimColor:!I,children:[" · ",d," "]}),J(U,{dimColor:!I,children:S})]},`${Z.name}-${A}`)},q[37]=Lq,q[38]=H,q[39]=P,q[40]=Kq;else Kq=q[40];let x=Kq,Oq;if(q[41]!==Zq||q[42]!==H||q[43]!==P)Oq=(Z)=>{let A=Zq(Z),I=H===A,d=Z.needsAuth?j("warning",P)(b.triangleUpOutline):j("inactive",P)(b.radioOff),S=Z.needsAuth?"may need auth":"agent-only";return W(O,{children:[J(U,{color:I?"suggestion":void 0,children:I?`${b.pointer} `:" "}),J(U,{color:I?"suggestion":void 0,children:Z.name}),W(U,{dimColor:!I,children:[" · ",d," "]}),J(U,{dimColor:!I,children:S})]},`agent-${Z.name}-${A}`)},q[41]=Zq,q[42]=H,q[43]=P,q[44]=Oq;else Oq=q[44];let Tq=Oq,Vq=Q.length+V.length,Hq;if(q[45]===Symbol.for("react.memo_cache_sentinel"))Hq=J(KG,{}),q[45]=Hq;else Hq=q[45];let Dq;if(q[46]!==Vq)Dq=zG(Vq,"server"),q[46]=Vq,q[47]=Dq;else Dq=q[47];let Cq=`${Vq} ${Dq}`,a;if(q[48]!==x||q[49]!==k)a=WG.map((Z)=>{let A=k.get(Z);if(!A||A.length===0)return null;let I=UG(Z);return W(O,{flexDirection:"column",marginBottom:1,children:[W(O,{paddingLeft:2,children:[J(U,{bold:!0,children:I.label}),I.path&&W(U,{dimColor:!0,children:[" (",I.path,")"]})]}),A.map((d)=>x(d))]},Z)}),q[48]=x,q[49]=k,q[50]=a;else a=q[50];let n;if(q[51]!==L||q[52]!==x)n=L.length>0&&W(O,{flexDirection:"column",marginBottom:1,children:[J(O,{paddingLeft:2,children:J(U,{bold:!0,children:"claude.ai"})}),L.map((Z)=>x(Z))]}),q[51]=L,q[52]=x,q[53]=n;else n=q[53];let s;if(q[54]!==V||q[55]!==Tq)s=V.length>0&&W(O,{flexDirection:"column",marginBottom:1,children:[J(O,{paddingLeft:2,children:J(U,{bold:!0,children:"Agent MCPs"})}),[...new Set(V.flatMap(mG))].map((Z)=>W(O,{flexDirection:"column",marginTop:1,children:[J(O,{paddingLeft:2,children:W(U,{dimColor:!0,children:["@",Z]})}),V.filter((A)=>A.sourceAgents.includes(Z)).map((A)=>Tq(A))]},Z))]}),q[54]=V,q[55]=Tq,q[56]=s;else s=q[56];let r;if(q[57]!==M||q[58]!==x)r=M.length>0&&W(O,{flexDirection:"column",marginBottom:1,children:[W(O,{paddingLeft:2,children:[J(U,{bold:!0,children:l.label}),l.path&&W(U,{dimColor:!0,children:[" (",l.path,")"]})]}),M.map((Z)=>x(Z))]}),q[57]=M,q[58]=x,q[59]=r;else r=q[59];let t;if(q[60]!==hq)t=hq&&J(U,{dimColor:!0,children:CG?"※ Error logs shown inline with --debug":"※ Run claude --debug to see error logs"}),q[60]=hq,q[61]=t;else t=q[61];let Pq;if(q[62]===Symbol.for("react.memo_cache_sentinel"))Pq=W(U,{dimColor:!0,children:[J(Rq,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})," ","for help"]}),q[62]=Pq;else Pq=q[62];let e;if(q[63]!==t)e=W(O,{flexDirection:"column",children:[t,Pq]}),q[63]=t,q[64]=e;else e=q[64];let qq;if(q[65]!==a||q[66]!==n||q[67]!==s||q[68]!==r||q[69]!==e)qq=W(O,{flexDirection:"column",children:[a,n,s,r,e]}),q[65]=a,q[66]=n,q[67]=s,q[68]=r,q[69]=e,q[70]=qq;else qq=q[70];let Gq;if(q[71]!==D||q[72]!==Cq||q[73]!==qq)Gq=J(Mq,{title:"Manage MCP servers",subtitle:Cq,onCancel:D,hideInputGuide:!0,children:qq}),q[71]=D,q[72]=Cq,q[73]=qq,q[74]=Gq;else Gq=q[74];let Eq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))Eq=J(O,{paddingX:1,children:J(U,{dimColor:!0,italic:!0,children:W(yq,{children:[J(Jq,{shortcut:"↑↓",action:"navigate"}),J(Jq,{shortcut:"Enter",action:"confirm"}),J(Wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})}),q[75]=Eq;else Eq=q[75];let Nq;if(q[76]!==Gq)Nq=W(O,{flexDirection:"column",children:[Hq,Gq,Eq]}),q[76]=Gq,q[77]=Nq;else Nq=q[77];return Nq}function mG(G){return G.sourceAgents}function _G(G){return G.client.type==="failed"}function gG(G,q){return G.name.localeCompare(q.name)}function xG(G,q){return G.name.localeCompare(q.name)}function SG(G){return G.client.config.type==="claudeai-proxy"}function vG(G){return G.client.config.type!=="claudeai-proxy"}var OG,VG,WG;var _q=Qq(()=>{jq();uq();tq();FG();uG();nq();eq();qG();GG();sq();dG();p();OG=v(Aq(),1),VG=v(Uq(),1),WG=["project","local","user","enterprise"]});function xq(G){let q=EG.c(25),{serverName:Q,onComplete:X}=G,[y]=Xq(),B=HG(),f=DG(),[Y,V]=kq.useState(!0),[P,H]=kq.useState(null),T,w;if(q[0]!==X||q[1]!==f||q[2]!==Q||q[3]!==B)T=()=>{(async function(){try{if(!B.getState().mcp.clients.find((M)=>M.name===Q)){H(`MCP server "${Q}" not found`),V(!1),X(`MCP server "${Q}" not found`);return}let E=await f(Q);q:switch(E.client.type){case"connected":{V(!1),X(`Successfully reconnected to ${Q}`);break q}case"needs-auth":{H(`${Q} requires authentication`),V(!1),X(`${Q} requires authentication. Use /mcp to authenticate.`);break q}case"pending":case"failed":case"disabled":H(`Failed to reconnect to ${Q}`),V(!1),X(`Failed to reconnect to ${Q}`)}}catch(L){let E=L,M=E instanceof Error?E.message:String(E);H(M),V(!1),X(`Error: ${M}`)}})()},w=[Q,f,B,X],q[0]=X,q[1]=f,q[2]=Q,q[3]=B,q[4]=T,q[5]=w;else T=q[4],w=q[5];if(kq.useEffect(T,w),Y){let k;if(q[6]!==Q)k=W(U,{color:"text",children:["Reconnecting to ",J(U,{bold:!0,children:Q})]}),q[6]=Q,q[7]=k;else k=q[7];let R;if(q[8]===Symbol.for("react.memo_cache_sentinel"))R=W(O,{children:[J(Bq,{}),J(U,{children:" Establishing connection to MCP server"})]}),q[8]=R;else R=q[8];let L;if(q[9]!==k)L=W(O,{flexDirection:"column",gap:1,padding:1,children:[k,R]}),q[9]=k,q[10]=L;else L=q[10];return L}if(P){let k;if(q[11]!==y)k=j("error",y)(b.cross),q[11]=y,q[12]=k;else k=q[12];let R;if(q[13]!==k)R=W(U,{children:[k," "]}),q[13]=k,q[14]=R;else R=q[14];let L;if(q[15]!==Q)L=W(U,{color:"error",children:["Failed to reconnect to ",Q]}),q[15]=Q,q[16]=L;else L=q[16];let E;if(q[17]!==R||q[18]!==L)E=W(O,{children:[R,L]}),q[17]=R,q[18]=L,q[19]=E;else E=q[19];let M;if(q[20]!==P)M=W(U,{dimColor:!0,children:["Error: ",P]}),q[20]=P,q[21]=M;else M=q[21];let C;if(q[22]!==E||q[23]!==M)C=W(O,{flexDirection:"column",gap:1,padding:1,children:[E,M]}),q[22]=E,q[23]=M,q[24]=C;else C=q[24];return C}return null}var EG,kq;var Sq=Qq(()=>{jq();uq();PG();gq();QG();p();EG=v(Aq(),1),kq=v(Uq(),1)});function Iq(G){let q=wG.c(66),{onComplete:Q}=G,X=zq($G),y=zq(oG),B=X.clients,f;if(q[0]===Symbol.for("react.memo_cache_sentinel"))f={type:"list"},q[0]=f;else f=q[0];let[Y,V]=Yq.default.useState(f),P;if(q[1]===Symbol.for("react.memo_cache_sentinel"))P=[],q[1]=P;else P=q[1];let[H,T]=Yq.default.useState(P),w;if(q[2]!==y.allAgents)w=NG(y.allAgents),q[2]=y.allAgents,q[3]=w;else w=q[3];let k=w,R;if(q[4]!==B)R=B.filter(iG).sort(cG),q[4]=B,q[5]=R;else R=q[5];let L=R,E,M;if(q[6]!==L||q[7]!==X.tools)E=()=>{let K=!1;return async function(){let D=await Promise.all(L.map(async(z)=>{let h=z.config.scope,m=z.config.type==="sse",_=z.config.type==="http",i=z.config.type==="claudeai-proxy",c=void 0;if(m||_){let o=await new yG(z.name,z.config).tokens(),Zq=RG()!==null&&z.type==="connected",$=z.type==="connected"&&wq(X.tools,z.name).length>0;c=Boolean(o)||Zq||$}let g={name:z.name,client:z,scope:h};if(i)return{...g,transport:"claudeai-proxy",isAuthenticated:!1,config:z.config};else if(m)return{...g,transport:"sse",isAuthenticated:c,config:z.config};else if(_)return{...g,transport:"http",isAuthenticated:c,config:z.config};else return{...g,transport:"stdio",config:z.config}}));if(K)return;T(D)}(),()=>{K=!0}},M=[L,X.tools],q[6]=L,q[7]=X.tools,q[8]=E,q[9]=M;else E=q[8],M=q[9];Yq.default.useEffect(E,M);let C,l;if(q[10]!==k.length||q[11]!==L.length||q[12]!==Q||q[13]!==H.length)C=()=>{if(H.length===0&&L.length>0)return;if(H.length===0&&k.length===0)Q("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `claude mcp --help` or visit https://code.claude.com/docs/en/mcp to learn more.")},l=[H.length,L.length,k.length,Q],q[10]=k.length,q[11]=L.length,q[12]=Q,q[13]=H.length,q[14]=C,q[15]=l;else C=q[14],l=q[15];switch(Yq.useEffect(C,l),Y.type){case"list":{let K,F;if(q[16]===Symbol.for("react.memo_cache_sentinel"))F=(D)=>V({type:"server-menu",server:D}),K=(D)=>V({type:"agent-server-menu",agentServer:D}),q[16]=K,q[17]=F;else K=q[16],F=q[17];let N;if(q[18]!==k||q[19]!==Q||q[20]!==H||q[21]!==Y.defaultTab)N=J(mq,{servers:H,agentServers:k,onSelectServer:F,onSelectAgentServer:K,onComplete:Q,defaultTab:Y.defaultTab}),q[18]=k,q[19]=Q,q[20]=H,q[21]=Y.defaultTab,q[22]=N;else N=q[22];return N}case"server-menu":{let K;if(q[23]!==X.tools||q[24]!==Y.server.name)K=wq(X.tools,Y.server.name),q[23]=X.tools,q[24]=Y.server.name,q[25]=K;else K=q[25];let F=K,N=Y.server.transport==="claudeai-proxy"?"claude.ai":"Claude Code";if(Y.server.transport==="stdio"){let D;if(q[26]!==Y.server)D=()=>V({type:"server-tools",server:Y.server}),q[26]=Y.server,q[27]=D;else D=q[27];let z;if(q[28]!==N)z=()=>V({type:"list",defaultTab:N}),q[28]=N,q[29]=z;else z=q[29];let h;if(q[30]!==Q||q[31]!==F.length||q[32]!==D||q[33]!==z||q[34]!==Y.server)h=J(lq,{server:Y.server,serverToolsCount:F.length,onViewTools:D,onCancel:z,onComplete:Q}),q[30]=Q,q[31]=F.length,q[32]=D,q[33]=z,q[34]=Y.server,q[35]=h;else h=q[35];return h}else{let D;if(q[36]!==Y.server)D=()=>V({type:"server-tools",server:Y.server}),q[36]=Y.server,q[37]=D;else D=q[37];let z;if(q[38]!==N)z=()=>V({type:"list",defaultTab:N}),q[38]=N,q[39]=z;else z=q[39];let h;if(q[40]!==Q||q[41]!==F.length||q[42]!==D||q[43]!==z||q[44]!==Y.server)h=J(vq,{server:Y.server,serverToolsCount:F.length,onViewTools:D,onCancel:z,onComplete:Q}),q[40]=Q,q[41]=F.length,q[42]=D,q[43]=z,q[44]=Y.server,q[45]=h;else h=q[45];return h}}case"server-tools":{let K,F;if(q[46]!==Y.server)F=(D,z)=>V({type:"server-tool-detail",server:Y.server,toolIndex:z}),K=()=>V({type:"server-menu",server:Y.server}),q[46]=Y.server,q[47]=K,q[48]=F;else K=q[47],F=q[48];let N;if(q[49]!==K||q[50]!==F||q[51]!==Y.server)N=J(iq,{server:Y.server,onSelectTool:F,onBack:K}),q[49]=K,q[50]=F,q[51]=Y.server,q[52]=N;else N=q[52];return N}case"server-tool-detail":{let K;if(q[53]!==X.tools||q[54]!==Y.server.name)K=wq(X.tools,Y.server.name),q[53]=X.tools,q[54]=Y.server.name,q[55]=K;else K=q[55];let N=K[Y.toolIndex];if(!N)return V({type:"server-tools",server:Y.server}),null;let D;if(q[56]!==Y.server)D=()=>V({type:"server-tools",server:Y.server}),q[56]=Y.server,q[57]=D;else D=q[57];let z;if(q[58]!==D||q[59]!==N||q[60]!==Y.server)z=J(cq,{tool:N,server:Y.server,onBack:D}),q[58]=D,q[59]=N,q[60]=Y.server,q[61]=z;else z=q[61];return z}case"agent-server-menu":{let K;if(q[62]===Symbol.for("react.memo_cache_sentinel"))K=()=>V({type:"list",defaultTab:"Agents"}),q[62]=K;else K=q[62];let F;if(q[63]!==Q||q[64]!==Y.agentServer)F=J(dq,{agentServer:Y.agentServer,onCancel:K,onComplete:Q}),q[63]=Q,q[64]=Y.agentServer,q[65]=F;else F=q[65];return F}}}function cG(G,q){return G.name.localeCompare(q.name)}function iG(G){return G.name!=="ide"}function oG(G){return G.agentDefinitions}function $G(G){return G.mcp}var wG,Yq;var IG=Qq(()=>{ZG();FG();gq();lG();pq();_q();MG();BG();fG();AG();p();wG=v(Aq(),1),Yq=v(Uq(),1)});var bG=Qq(()=>{pq();_q();Sq();MG();IG();BG();fG();AG()});function aG(G){let q=TG.c(7),{action:Q,target:X,onComplete:y}=G,B=zq(sG),f=hG(),Y=bq.useRef(!1),V,P;if(q[0]!==Q||q[1]!==B||q[2]!==y||q[3]!==X||q[4]!==f)V=()=>{if(Y.current)return;Y.current=!0;let H=Q==="enable",T=B.filter(nG),w=X==="all"?T.filter((k)=>H?k.type==="disabled":k.type!=="disabled"):T.filter((k)=>k.name===X);if(w.length===0){y(X==="all"?`All MCP servers are already ${H?"enabled":"disabled"}`:`MCP server "${X}" not found`);return}for(let k of w)f(k.name);y(X==="all"?`${H?"Enabled":"Disabled"} ${w.length} MCP server(s)`:`MCP server "${X}" ${H?"enabled":"disabled"}`)},P=[Q,X,B,f,y],q[0]=Q,q[1]=B,q[2]=y,q[3]=X,q[4]=f,q[5]=V,q[6]=P;else V=q[5],P=q[6];return bq.useEffect(V,P),null}function nG(G){return G.name!=="ide"}function sG(G){return G.mcp.clients}async function UQ(G,q,Q){if(Q){let X=Q.trim().split(/\s+/);if(X[0]==="no-redirect")return J(Iq,{onComplete:G});if(X[0]==="reconnect"&&X[1])return J(xq,{serverName:X.slice(1).join(" "),onComplete:G});if(X[0]==="enable"||X[0]==="disable")return J(aG,{action:X[0],target:X.length>1?X.slice(1).join(" "):"all",onComplete:G})}return J(Iq,{onComplete:G})}var TG,bq;var rG=Qq(()=>{bG();Sq();PG();gq();p();TG=v(Aq(),1),bq=v(Uq(),1)});rG();export{UQ as call};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{vg as BG,wg as bG}from"./cli-0.1.12-2sqxe53a.mjs";import{th as xG}from"./cli-0.1.12-4tanq0qc.mjs";import{Bi as LG,CJ as WG,EJ as TG,OD as OG,PD as IG,QC as T,SC as PG,YK as JG,ZK as CG,bF as C,cF as MG,eJ as FG,gI as kG,gj as R,hJ as qG,hj as V,hp as DG,ij as g,ip as VG,jj as NG,kj as l,lj as r,mj as jG,nj as t,oi as q,oj as wG,pj as a,qi as KG,qj as o,ri as yG,rj as zG,sA as HG,sH as ZG,so as $G,tA as fG,to as UG,xi as QG}from"./cli-0.1.12-242der7s.mjs";import"./cli-0.1.12-7mjpbm22.mjs";import"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import"./cli-0.1.12-tyt09z73.mjs";import"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import{AW as M,BW as n,DW as U,EW as i,HW as E,KW as m,LW as z,MW as P,OV as S,PV as v,VV as _,YV as h,_V as u,aW as c,eW as d,uW as YG,wW as p,xW as f}from"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import{mX as XG}from"./cli-0.1.12-h248m986.mjs";import"./cli-0.1.12-04jw23rj.mjs";import"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import{A3 as EG,c3 as GG}from"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import{I7 as e,N7 as AG}from"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import{Oga as b,Sga as _G}from"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import"./cli-0.1.12-1hv04bp7.mjs";jG();P();wG();NG();P();class I{constructor(G){this._server=G}requestStream(G,K,X){return this._server.requestStream(G,K,X)}createMessageStream(G,K){let X=this._server.getClientCapabilities();if((G.tools||G.toolChoice)&&!X?.sampling?.tools)throw Error("Client does not support sampling tools capability.");if(G.messages.length>0){let Q=G.messages[G.messages.length-1],$=Array.isArray(Q.content)?Q.content:[Q.content],Z=$.some((Y)=>Y.type==="tool_result"),D=G.messages.length>1?G.messages[G.messages.length-2]:void 0,W=D?Array.isArray(D.content)?D.content:[D.content]:[],F=W.some((Y)=>Y.type==="tool_use");if(Z){if($.some((Y)=>Y.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!F)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(F){let Y=new Set(W.filter((H)=>H.type==="tool_use").map((H)=>H.id)),B=new Set($.filter((H)=>H.type==="tool_result").map((H)=>H.toolUseId));if(Y.size!==B.size||![...Y].every((H)=>B.has(H)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:G},U,K)}elicitInputStream(G,K){let X=this._server.getClientCapabilities(),Q=G.mode??"form";switch(Q){case"url":{if(!X?.elicitation?.url)throw Error("Client does not support url elicitation.");break}case"form":{if(!X?.elicitation?.form)throw Error("Client does not support form elicitation.");break}}let $=Q==="form"&&G.mode===void 0?{...G,mode:"form"}:G;return this.requestStream({method:"elicitation/create",params:$},E,K)}async getTask(G,K){return this._server.getTask({taskId:G},K)}async getTaskResult(G,K,X){return this._server.getTaskResult({taskId:G},K,X)}async listTasks(G,K){return this._server.listTasks(G?{cursor:G}:void 0,K)}async cancelTask(G,K){return this._server.cancelTask({taskId:G},K)}}zG();class k extends l{constructor(G,K){super(K);if(this._serverInfo=G,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(M.options.map((X,Q)=>[X,Q])),this.isMessageIgnored=(X,Q)=>{let $=this._loggingLevels.get(Q);return $?this.LOG_LEVEL_SEVERITY.get(X)<this.LOG_LEVEL_SEVERITY.get($):!1},this._capabilities=K?.capabilities??{},this._instructions=K?.instructions,this._jsonSchemaValidator=K?.jsonSchemaValidator??new t,this.setRequestHandler(u,(X)=>this._oninitialize(X)),this.setNotificationHandler(c,()=>this.oninitialized?.()),this._capabilities.logging)this.setRequestHandler(n,async(X,Q)=>{let $=Q.sessionId||Q.requestInfo?.headers["mcp-session-id"]||void 0,{level:Z}=X.params,D=M.safeParse(Z);if(D.success)this._loggingLevels.set($,D.data);return{}})}get experimental(){if(!this._experimental)this._experimental={tasks:new I(this)};return this._experimental}registerCapabilities(G){if(this.transport)throw Error("Cannot register capabilities after connecting to transport");this._capabilities=r(this._capabilities,G)}setRequestHandler(G,K){let Q=g(G)?.method;if(!Q)throw Error("Schema is missing a method literal");let $;if(R(Q)){let D=Q;$=D._zod?.def?.value??D.value}else{let D=Q;$=D._def?.value??D.value}if(typeof $!=="string")throw Error("Schema method literal must be a string");if($==="tools/call"){let D=async(W,F)=>{let Y=V(f,W);if(!Y.success){let O=Y.error instanceof Error?Y.error.message:String(Y.error);throw new z(_.InvalidParams,`Invalid tools/call request: ${O}`)}let{params:B}=Y.data,H=await Promise.resolve(K(W,F));if(B.task){let O=V(d,H);if(!O.success){let y=O.error instanceof Error?O.error.message:String(O.error);throw new z(_.InvalidParams,`Invalid task creation result: ${y}`)}return O.data}let J=V(p,H);if(!J.success){let O=J.error instanceof Error?J.error.message:String(J.error);throw new z(_.InvalidParams,`Invalid tools/call result: ${O}`)}return J.data};return super.setRequestHandler(G,D)}return super.setRequestHandler(G,K)}assertCapabilityForMethod(G){switch(G){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw Error(`Client does not support sampling (required for ${G})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw Error(`Client does not support elicitation (required for ${G})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw Error(`Client does not support listing roots (required for ${G})`);break;case"ping":break}}assertNotificationCapability(G){switch(G){case"notifications/message":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${G})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw Error(`Server does not support notifying about resources (required for ${G})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw Error(`Server does not support notifying of tool list changes (required for ${G})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw Error(`Server does not support notifying of prompt list changes (required for ${G})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support URL elicitation (required for ${G})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(G){if(!this._capabilities)return;switch(G){case"completion/complete":if(!this._capabilities.completions)throw Error(`Server does not support completions (required for ${G})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${G})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw Error(`Server does not support prompts (required for ${G})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw Error(`Server does not support resources (required for ${G})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Server does not support tools (required for ${G})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw Error(`Server does not support tasks capability (required for ${G})`);break;case"ping":case"initialize":break}}assertTaskCapability(G){o(this._clientCapabilities?.tasks?.requests,G,"Client")}assertTaskHandlerCapability(G){if(!this._capabilities)return;a(this._capabilities.tasks?.requests,G,"Server")}async _oninitialize(G){let K=G.params.protocolVersion;return this._clientCapabilities=G.params.capabilities,this._clientVersion=G.params.clientInfo,{protocolVersion:v.includes(K)?K:S,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},h)}async createMessage(G,K){if(G.tools||G.toolChoice){if(!this._clientCapabilities?.sampling?.tools)throw Error("Client does not support sampling tools capability.")}if(G.messages.length>0){let X=G.messages[G.messages.length-1],Q=Array.isArray(X.content)?X.content:[X.content],$=Q.some((F)=>F.type==="tool_result"),Z=G.messages.length>1?G.messages[G.messages.length-2]:void 0,D=Z?Array.isArray(Z.content)?Z.content:[Z.content]:[],W=D.some((F)=>F.type==="tool_use");if($){if(Q.some((F)=>F.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!W)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(W){let F=new Set(D.filter((B)=>B.type==="tool_use").map((B)=>B.id)),Y=new Set(Q.filter((B)=>B.type==="tool_result").map((B)=>B.toolUseId));if(F.size!==Y.size||![...F].every((B)=>Y.has(B)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}if(G.tools)return this.request({method:"sampling/createMessage",params:G},i,K);return this.request({method:"sampling/createMessage",params:G},U,K)}async elicitInput(G,K){switch(G.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support url elicitation.");let Q=G;return this.request({method:"elicitation/create",params:Q},E,K)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw Error("Client does not support form elicitation.");let Q=G.mode==="form"?G:{...G,mode:"form"},$=await this.request({method:"elicitation/create",params:Q},E,K);if($.action==="accept"&&$.content&&Q.requestedSchema)try{let D=this._jsonSchemaValidator.getValidator(Q.requestedSchema)($.content);if(!D.valid)throw new z(_.InvalidParams,`Elicitation response content does not match requested schema: ${D.errorMessage}`)}catch(Z){if(Z instanceof z)throw Z;throw new z(_.InternalError,`Error validating elicitation response: ${Z instanceof Error?Z.message:String(Z)}`)}return $}}}createElicitationCompletionNotifier(G,K){if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:G}},K)}async listRoots(G,K){return this.request({method:"roots/list",params:G},m,K)}async sendLoggingMessage(G,K){if(this._capabilities.logging){if(!this.isMessageIgnored(G.level,K))return this.notification({method:"notifications/message",params:G})}}async sendResourceUpdated(G){return this.notification({method:"notifications/resources/updated",params:G})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}}bG();xG();P();VG();CG();qG();yG();PG();UG();LG();AG();kG();EG();TG();fG();_G();IG();MG();process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS??="true";var RG=[JG];function s(G,K){let X=new Set(K.map(($)=>$.name)),Q=G.filter(($)=>!X.has($.name));return[...K,...Q]}async function gG(){let G=[],K=[];return await FG(({client:X,tools:Q})=>{G.push(X),K.push(...Q)}),{mcpClients:G,mcpTools:K}}async function FK(G,K,X){let $=QG(100);HG(G);let Z=new k({name:"claude/tengu",version:"99.0.0"},{capabilities:{tools:{}}}),{mcpClients:D,mcpTools:W}=await gG();Z.setRequestHandler(YG,async()=>{let Y=q(),B=s(T(Y),W);return{tools:await Promise.all(B.map(async(H)=>{let J;if(H.outputSchema){let O=C(H.outputSchema);if(typeof O==="object"&&O!==null&&"type"in O&&O.type==="object")J=O}return{...H,description:await H.prompt({getToolPermissionContext:async()=>Y,tools:B,agents:[]}),inputSchema:H.inputJSONSchema??C(H.inputSchema),outputSchema:J}}))}}),Z.setRequestHandler(f,async({params:{name:Y,arguments:B}})=>{let H=q(),J=s(T(H),W),O=KG(J,Y);if(!O)throw Error(`Tool ${Y} not found`);let y={abortController:$G(),options:{commands:RG,tools:J,mainLoopModel:GG(),thinkingConfig:{type:"disabled"},mcpClients:D,mcpResources:{},isNonInteractiveSession:!0,debug:K,verbose:X,agentDefinitions:{activeAgents:[],allAgents:[]}},getAppState:()=>DG(),setAppState:()=>{},messages:[],readFileState:$,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:()=>{},updateAttributionState:()=>{}};try{if(!O.isEnabled())throw Error(`Tool ${Y} is not enabled`);let N=O.inputSchema.parse(B??{}),L=await O.validateInput?.(N??{},y);if(L&&!L.result)throw Error(`Tool ${Y} input is invalid: ${L.message}`);let x=await O.call(N??{},y,WG,ZG({content:[]})),w,A=x.data;if(typeof A==="string")w=[{type:"text",text:A}];else if(Array.isArray(A))w=A.map((j)=>{if(j.type==="text")return{type:"text",text:j.text||""};else if(j.type==="image"&&j.source)return{type:"image",data:j.source.data,mimeType:j.source.media_type};else return console.warn(`Unmapped content block type from tool ${Y}: ${j.type||"unknown"}`),{type:"text",text:b(j)}});else w=[{type:"text",text:b(A)}];return{content:w,isError:!!x.isError}}catch(N){if(e(N),N instanceof XG)return{isError:!0,content:[{type:"text",text:`Tool ${Y} input is invalid:
|
|
2
|
+
${N.errors.map((w)=>`- ${w.path.join(".")}: ${w.message}`).join(`
|
|
3
|
+
`)}`}]};return{isError:!0,content:[{type:"text",text:(N instanceof Error?OG(N):[String(N)]).filter(Boolean).join(`
|
|
4
|
+
`).trim()||"Error"}]}}});async function F(){let Y=new BG;await Z.connect(Y)}return await F()}export{FK as startMCPServer,gG as loadReexposedMcpTools,s as getCombinedTools};
|