@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,2 @@
|
|
|
1
|
+
import{V7 as z,X7 as G}from"./cli-0.1.12-vzga2are.mjs";import{Una as D}from"./cli-0.1.12-1hv04bp7.mjs";function H(k){let g;try{g=new URL(k)}catch(A){throw Error(`Invalid URL format: ${k}`)}if(g.protocol!=="http:"&&g.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${g.protocol}`)}async function K(k){try{let g=process.platform;if(g==="win32"){let{code:C}=await z("explorer",[k]);return C===0}let A=g==="darwin"?"open":"xdg-open",{code:B}=await z(A,[k]);return B===0}catch(g){return!1}}async function L(k){try{H(k);let g=process.env.BROWSER,A=process.platform;if(A==="win32"){if(g){let{code:C}=await z(g,[`"${k}"`]);return C===0}let{code:B}=await z("rundll32",["url,OpenURL",k],{});return B===0}else{let B=g||(A==="darwin"?"open":"xdg-open"),{code:C}=await z(B,[k]);return C===0}}catch(g){return!1}}var I=D(()=>{G()});
|
|
2
|
+
export{K as QX,L as RX,I as SX};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Yb as K,Zb as Y}from"./cli-0.1.12-kys514qx.mjs";import{$q as X,Dq as V,Eq as W,Mm as G,Nm as B,Tq as J,yq as H,zq as U}from"./cli-0.1.12-242der7s.mjs";import{Rna as q,Una as v}from"./cli-0.1.12-1hv04bp7.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>H.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(G([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();B();U();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(W(),q(V))});
|
|
2
|
+
export{P as Ub,C as Vb,A as Wb,D as Xb};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{cP as a,dP as E,fP as r,gP as o,hP as s,mP as GQ}from"./cli-0.1.12-7mjpbm22.mjs";import{BX as N,DX as t}from"./cli-0.1.12-d8m01qtm.mjs";import{f4 as U,g4 as I}from"./cli-0.1.12-y9598sy3.mjs";import{F5 as KQ,y5 as n}from"./cli-0.1.12-erggrdth.mjs";import{J6 as jQ,s6 as e}from"./cli-0.1.12-rwzav5h1.mjs";import{r7 as Y,t7 as h}from"./cli-0.1.12-vzga2are.mjs";import{gga as u,hga as ZQ}from"./cli-0.1.12-6x2mnahn.mjs";import{Gga as H,Hga as i,Mga as F,Oga as k,Pga as R,Sga as y,eha as K,hha as b}from"./cli-0.1.12-rzpc0tr9.mjs";ZQ();b();h();F();y();function D(Q){if(Q<60000)return`${Math.round(Q/1000)}s`;let W=Math.floor(Q/60000),Z=Math.round(Q%60000/1000);return Z>0?`${W}m ${Z}s`:`${W}m`}function $Q(Q){let Z=(Q.startsWith("sk-ant-si-")?Q.slice(10):Q).split(".");if(Z.length!==3||!Z[1])return null;try{return R(Buffer.from(Z[1],"base64url").toString("utf8"))}catch{return null}}function f(Q){let W=$Q(Q);if(W!==null&&typeof W==="object"&&"exp"in W&&typeof W.exp==="number")return W.exp;return null}var zQ=300000,p=1800000,m=3,JQ=60000;function FQ({getAccessToken:Q,onRefresh:W,label:Z,refreshBufferMs:z=zQ}){let $=new Map,J=new Map,G=new Map;function X(V){let w=(G.get(V)??0)+1;return G.set(V,w),w}function q(V,w){let j=f(w);if(!j){K(`[${Z}:token] Could not decode JWT expiry for sessionId=${V}, token prefix=${w.slice(0,15)}…, keeping existing timer`);return}let C=$.get(V);if(C)clearTimeout(C);let B=X(V),P=new Date(j*1000).toISOString(),v=j*1000-Date.now()-z;if(v<=0){K(`[${Z}:token] Token for sessionId=${V} expires=${P} (past or within buffer), refreshing immediately`),O(V,B);return}K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(v)} (expires=${P}, buffer=${z/1000}s)`);let WQ=setTimeout(O,v,V,B);$.set(V,WQ)}function L(V,w){let j=$.get(V);if(j)clearTimeout(j);let C=X(V),B=Math.max(w*1000-z,30000);K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(B)} (expires_in=${w}s, buffer=${z/1000}s)`);let P=setTimeout(O,B,V,C);$.set(V,P)}async function O(V,w){let j;try{j=await Q()}catch(B){K(`[${Z}:token] getAccessToken threw for sessionId=${V}: ${H(B)}`,{level:"error"})}if(G.get(V)!==w){K(`[${Z}:token] doRefresh for sessionId=${V} stale (gen ${w} vs ${G.get(V)}), skipping`);return}if(!j){let B=(J.get(V)??0)+1;if(J.set(V,B),K(`[${Z}:token] No OAuth token available for refresh, sessionId=${V} (failure ${B}/${m})`,{level:"error"}),Y("error","bridge_token_refresh_no_oauth"),B<m){let P=setTimeout(O,JQ,V,w);$.set(V,P)}return}J.delete(V),K(`[${Z}:token] Refreshing token for sessionId=${V}: new token prefix=${j.slice(0,15)}…`),u("tengu_bridge_token_refreshed",{}),W(V,j);let C=setTimeout(O,p,V,w);$.set(V,C),K(`[${Z}:token] Scheduled follow-up refresh for sessionId=${V} in ${D(p)}`)}function _(V){X(V);let w=$.get(V);if(w)clearTimeout(w),$.delete(V);J.delete(V)}function QQ(){for(let V of G.keys())X(V);for(let V of $.values())clearTimeout(V);$.clear(),J.clear()}return{schedule:q,scheduleFromExpiresIn:L,cancel:_,cancelAll:QQ}}import{randomUUID as g}from"crypto";b();h();F();KQ();GQ();r();I();t();y();class T extends Error{retryAfterMs;constructor(Q,W){super(Q);this.retryAfterMs=W}}class x{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(Q){this.config=Q}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(Q){if(this.closed)return;let W=Array.isArray(Q)?Q:[Q];if(W.length===0)return;while(this.pending.length+W.length>this.config.maxQueueSize&&!this.closed)await new Promise((Z)=>{this.backpressureResolvers.push(Z)});if(this.closed)return;this.pending.push(...W),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((Q)=>{this.flushResolvers.push(Q)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let Q of this.backpressureResolvers)Q();this.backpressureResolvers=[];for(let Q of this.flushResolvers)Q();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let Q=0;try{while(this.pending.length>0&&!this.closed){let W=this.takeBatch();if(W.length===0)continue;try{await this.config.send(W),Q=0}catch(Z){if(Q++,this.config.maxConsecutiveFailures!==void 0&&Q>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(W.length,Q),Q=0,this.releaseBackpressure();continue}this.pending=W.concat(this.pending);let z=Z instanceof T?Z.retryAfterMs:void 0;await this.sleep(this.retryDelay(Q,z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let W of this.flushResolvers)W();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:Q,maxBatchBytes:W}=this.config;if(W===void 0)return this.pending.splice(0,Q);let Z=0,z=0;while(z<this.pending.length&&z<Q){let $;try{$=Buffer.byteLength(k(this.pending[z]))}catch{this.pending.splice(z,1);continue}if(z>0&&Z+$>W)break;Z+=$,z++}return this.pending.splice(0,z)}retryDelay(Q,W){let Z=Math.random()*this.config.jitterMs;if(W!==void 0)return Math.max(this.config.baseDelayMs,Math.min(W,this.config.maxDelayMs))+Z;return Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs)+Z}releaseBackpressure(){let Q=this.backpressureResolvers;this.backpressureResolvers=[];for(let W of Q)W()}sleep(Q){return new Promise((W)=>{this.sleepResolve=W,setTimeout((Z,z)=>{Z.sleepResolve=null,z()},Q,this,W)})}}I();class c{inflight=null;pending=null;closed=!1;config;constructor(Q){this.config=Q}enqueue(Q){if(this.closed)return;this.pending=this.pending?d(this.pending,Q):Q,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let Q=this.pending;this.pending=null,this.inflight=this.sendWithRetry(Q).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(Q){let W=Q,Z=0;while(!this.closed){if(await this.config.send(W))return;if(Z++,await U(this.retryDelay(Z)),this.pending&&!this.closed)W=d(W,this.pending),this.pending=null}}retryDelay(Q){let W=Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs),Z=Math.random()*this.config.jitterMs;return W+Z}}function d(Q,W){let Z={...Q};for(let[z,$]of Object.entries(W))if((z==="external_metadata"||z==="internal_metadata")&&Z[z]&&typeof Z[z]==="object"&&typeof $==="object"&&$!==null)Z[z]={...Z[z],...$};else Z[z]=$;return Z}var VQ=20000,YQ=100;function l(){return!0}class M extends Error{reason;constructor(Q){super(`CCRClient init failed: ${Q}`);this.reason=Q}}var XQ=10;function qQ(){return{byMessage:new Map,scopeToMessage:new Map}}function S(Q){return`${Q.session_id}:${Q.parent_tool_use_id??""}`}function wQ(Q,W){let Z=[],z=new Map;for(let $ of Q)switch($.event.type){case"message_start":{let J=$.event.message.id,G=W.scopeToMessage.get(S($));if(G)W.byMessage.delete(G);W.scopeToMessage.set(S($),J),W.byMessage.set(J,[]),Z.push($);break}case"content_block_delta":{if($.event.delta.type!=="text_delta"){Z.push($);break}let J=W.scopeToMessage.get(S($)),G=J?W.byMessage.get(J):void 0;if(!G){Z.push($);break}let X=G[$.event.index]??=[];X.push($.event.delta.text);let q=z.get(X);if(q){q.event.delta.text=X.join("");break}let L={type:"stream_event",uuid:$.uuid,session_id:$.session_id,parent_tool_use_id:$.parent_tool_use_id,event:{type:"content_block_delta",index:$.event.index,delta:{type:"text_delta",text:X.join("")}}};z.set(X,L),Z.push(L);break}default:Z.push($)}return Z}function LQ(Q,W){Q.byMessage.delete(W.message.id);let Z=S(W);if(Q.scopeToMessage.get(Z)===W.message.id)Q.scopeToMessage.delete(Z)}class OQ{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=n({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=qQ();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(Q,W,Z){if(this.onEpochMismatch=Z?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Z?.heartbeatIntervalMs??VQ,this.heartbeatJitterFraction=Z?.heartbeatJitterFraction??0,this.getAuthHeaders=Z?.getAuthHeaders??E,W.protocol!=="http:"&&W.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${W.protocol}`);let z=W.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${W.protocol}//${W.host}${z}`,this.sessionId=z.split("/").pop()||"",this.workerState=new c({send:($)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...$},"PUT worker").then((J)=>J.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async($)=>{let J=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:$},"client events");if(!J.ok)throw new T("client event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async($)=>{let J=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:$},"internal events");if(!J.ok)throw new T("internal event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new x({maxBatchSize:64,maxQueueSize:64,send:async($)=>{let J=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:$.map((G)=>({event_id:G.eventId,status:G.status}))},"delivery batch");if(!J.ok)throw new T("delivery POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),Q.setOnEvent(($)=>{this.reportDelivery($.event_id,"received")})}async initialize(Q){let W=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new M("no_auth_headers");if(Q===void 0){let G=process.env.CLAUDE_CODE_WORKER_EPOCH;Q=G?parseInt(G,10):NaN}if(isNaN(Q))throw new M("missing_epoch");this.workerEpoch=Q;let Z=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new M("worker_register_failed");this.currentState="idle",this.startHeartbeat(),o(()=>{this.writeEvent({type:"keep_alive"})}),K(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-W});let{metadata:$,durationMs:J}=await Z;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:J,had_state:$!==null});return $}async getWorkerState(){let Q=Date.now(),W=this.getAuthHeaders();if(Object.keys(W).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,W,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-Q}}async request(Q,W,Z,z,{timeout:$=1e4}={}){let J=this.getAuthHeaders();if(Object.keys(J).length===0)return{ok:!1};try{let G=await this.http[Q](`${this.sessionBaseUrl}${W}`,Z,{headers:{...J,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:$});if(G.status>=200&&G.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(G.status===409)this.handleEpochMismatch();if(G.status===401||G.status===403){let X=a(),q=X?f(X):null;if(q!==null&&q*1000<Date.now())K(`CCRClient: session_token expired (exp=${new Date(q*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=XQ)K(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(K(`CCRClient: ${z} returned ${G.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:Q,path:W,status:G.status}),G.status===429){let X=G.headers?.["retry-after"],q=typeof X==="string"?parseInt(X,10):NaN;if(!isNaN(q)&&q>=0)return{ok:!1,retryAfterMs:q*1000}}return{ok:!1}}catch(G){return K(`CCRClient: ${z} failed: ${H(G)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:Q,path:W,error_code:i(G)}),{ok:!1}}}reportState(Q,W){if(Q===this.currentState&&!W)return;this.currentState=Q,this.workerState.enqueue({worker_status:Q,requires_action_details:W?{tool_name:W.tool_name,action_description:W.action_description,request_id:W.request_id}:null})}reportMetadata(Q){this.workerState.enqueue({external_metadata:Q})}handleEpochMismatch(){K("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let Q=()=>{let Z=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(W,this.heartbeatIntervalMs+Z)},W=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;Q()};Q()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)K("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(Q){if(Q.type==="stream_event"){if(this.streamEventBuffer.push(Q),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),YQ);return}if(await this.flushStreamEventBuffer(),Q.type==="assistant")LQ(this.streamTextAccumulator,Q);await this.eventUploader.enqueue(this.toClientEvent(Q))}toClientEvent(Q){let W=Q;return{payload:{...W,uuid:typeof W.uuid==="string"?W.uuid:g()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let Q=this.streamEventBuffer;this.streamEventBuffer=[];let W=wQ(Q,this.streamTextAccumulator);await this.eventUploader.enqueue(W.map((Z)=>({payload:Z,ephemeral:!0})))}async writeInternalEvent(Q,W,{isCompaction:Z=!1,agentId:z}={}){let $={payload:{type:Q,...W,uuid:typeof W.uuid==="string"?W.uuid:g()},...Z&&{is_compaction:!0},...z&&{agent_id:z}};await this.internalEventUploader.enqueue($)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(Q,W,Z){let z=this.getAuthHeaders();if(Object.keys(z).length===0)return null;let $=[],J;do{let G=new URL(`${this.sessionBaseUrl}${Q}`);for(let[q,L]of Object.entries(W))G.searchParams.set(q,L);if(J)G.searchParams.set("cursor",J);let X=await this.getWithRetry(G.toString(),z,Z);if(!X)return null;$.push(...X.data??[]),J=X.next_cursor}while(J);return K(`CCRClient: Read ${$.length} internal events from ${Q}${W.subagents?" (subagents)":""}`),$}async getWithRetry(Q,W,Z){for(let z=1;z<=10;z++){let $;try{$=await this.http.get(Q,{headers:{...W,"anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:30000})}catch(J){if(K(`CCRClient: GET ${Q} failed (attempt ${z}/10): ${H(J)}`,{level:"warn"}),z<10){let G=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(G)}continue}if($.status>=200&&$.status<300)return $.data;if($.status===409)this.handleEpochMismatch();if(K(`CCRClient: GET ${Q} returned ${$.status} (attempt ${z}/10)`,{level:"warn"}),z<10){let J=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(J)}}return K("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Z}),null}reportDelivery(Q,W){this.deliveryUploader.enqueue({eventId:Q,status:W})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),s(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}jQ();b();h();F();r();I();y();t();var BQ=1000,HQ=30000,UQ=600000,CQ=45000,PQ=new Set([401,403,404]),A=10,TQ=500,NQ=8000,kQ={stream:!0};function xQ(){return!0}function AQ(Q){let W=[],Z=0,z;while((z=Q.indexOf(`
|
|
2
|
+
|
|
3
|
+
`,Z))!==-1){let $=Q.slice(Z,z);if(Z=z+2,!$.trim())continue;let J={},G=!1;for(let X of $.split(`
|
|
4
|
+
`)){if(X.startsWith(":")){G=!0;continue}let q=X.indexOf(":");if(q===-1)continue;let L=X.slice(0,q),O=X[q+1]===" "?X.slice(q+2):X.slice(q+1);switch(L){case"event":J.event=O;break;case"id":J.id=O;break;case"data":J.data=J.data?J.data+`
|
|
5
|
+
`+O:O;break}}if(J.data||G)W.push(J)}return{frames:W,remaining:Q.slice(Z)}}class _Q{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(Q,W={},Z,z,$,J){this.url=Q;if(this.headers=W,this.sessionId=Z,this.refreshHeaders=z,this.getAuthHeaders=J??E,this.postUrl=RQ(Q),$!==void 0&&$>0)this.lastSequenceNum=$;K(`SSETransport: SSE URL = ${Q.href}`),K(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){K(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let Q=Date.now(),W=new URL(this.url.href);if(this.lastSequenceNum>0)W.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Z=this.getAuthHeaders(),z={...this.headers,...Z,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":N()};if(Z.Cookie)delete z.Authorization;if(this.lastSequenceNum>0)z["Last-Event-ID"]=String(this.lastSequenceNum);K(`SSETransport: Opening ${W.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let $=await fetch(W.href,{headers:z,signal:this.abortController.signal});if(!$.ok){let G=PQ.has($.status);if(K(`SSETransport: HTTP ${$.status}${G?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:$.status}),G){this.state="closed",this.onCloseCallback?.($.status);return}this.handleConnectionError();return}if(!$.body){K("SSETransport: No response body"),this.handleConnectionError();return}let J=Date.now()-Q;K("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:J}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream($.body)}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Connection error: ${H($)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(Q){let W=Q.getReader(),Z=new TextDecoder,z="";try{while(!0){let{done:$,value:J}=await W.read();if($)break;z+=Z.decode(J,kQ);let{frames:G,remaining:X}=AQ(z);z=X;for(let q of G){if(this.resetLivenessTimer(),q.id){let L=parseInt(q.id,10);if(!isNaN(L)){if(this.seenSequenceNums.has(L))K(`SSETransport: DUPLICATE frame seq=${L} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(L),this.seenSequenceNums.size>1000){let O=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<O)this.seenSequenceNums.delete(_)}if(L>this.lastSequenceNum)this.lastSequenceNum=L}}if(q.event&&q.data)this.handleSSEFrame(q.event,q.data);else if(q.data)K("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Stream read error: ${H($)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{W.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")K("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(Q,W){if(Q!=="client_event"){K(`SSETransport: Unexpected SSE event type '${Q}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:Q});return}let Z;try{Z=R(W)}catch($){K(`SSETransport: Failed to parse client_event data: ${H($)}`,{level:"error"});return}let z=Z.payload;if(z&&typeof z==="object"&&"type"in z){let $=this.sessionId?` session=${this.sessionId}`:"";K(`SSETransport: Event seq=${Z.sequence_num} event_id=${Z.event_id} event_type=${Z.event_type} payload_type=${String(z.type)}${$}`),Y("info","cli_sse_message_received"),this.onData?.(k(z)+`
|
|
6
|
+
`)}else K(`SSETransport: Ignoring client_event with no type in payload: event_id=${Z.event_id}`);this.onEventCallback?.(Z)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;let W=Q-this.reconnectStartTime;if(W<UQ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let $=this.refreshHeaders();Object.assign(this.headers,$),K("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Z=Math.min(BQ*Math.pow(2,this.reconnectAttempts-1),HQ),z=Math.max(0,Z+Z*0.25*(2*Math.random()-1));K(`SSETransport: Reconnecting in ${Math.round(z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(W/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},z)}else K(`SSETransport: Reconnection time budget exhausted after ${Math.round(W/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:W}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,K("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,CQ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0){K("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Z={...W,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()};K(`SSETransport: POST body keys=${Object.keys(Q).join(",")}`);for(let z=1;z<=A;z++){try{let J=await e.post(this.postUrl,Q,{headers:Z,validateStatus:xQ});if(J.status===200||J.status===201){K(`SSETransport: POST success type=${Q.type}`);return}if(K(`SSETransport: POST ${J.status} body=${k(J.data).slice(0,200)}`),J.status>=400&&J.status<500&&J.status!==429){K(`SSETransport: POST returned ${J.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:J.status});return}K(`SSETransport: POST returned ${J.status}, attempt ${z}/${A}`),Y("warn","cli_sse_post_retryable_error",{status:J.status,attempt:z})}catch(J){K(`SSETransport: POST error: ${J.message}, attempt ${z}/${A}`),Y("warn","cli_sse_post_network_error",{attempt:z})}if(z===A){K(`SSETransport: POST failed after ${A} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let $=Math.min(TQ*Math.pow(2,z-1),NQ);await U($)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(Q){this.onData=Q}setOnClose(Q){this.onCloseCallback=Q}setOnEvent(Q){this.onEventCallback=Q}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function RQ(Q){let W=Q.pathname;if(W.endsWith("/stream"))W=W.slice(0,-7);return`${Q.protocol}//${Q.host}${W}`}
|
|
7
|
+
export{FQ as n,x as o,M as p,OQ as q,_Q as r};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{mc as Z,nc as _,oc as $,rc as O}from"./cli-0.1.12-238c85zt.mjs";import{Ic as Y,Nc as x}from"./cli-0.1.12-p5w2kms9.mjs";import{AG as X,KG as V,pG as U,uG as W,zG as S}from"./cli-0.1.12-242der7s.mjs";import{Gga as Q,Mga as C,eha as R,hha as K}from"./cli-0.1.12-rzpc0tr9.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
|
|
2
|
+
export{F as ta};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{hga as Y}from"./cli-0.1.12-6x2mnahn.mjs";import{hha as V}from"./cli-0.1.12-rzpc0tr9.mjs";import{Una as X}from"./cli-0.1.12-1hv04bp7.mjs";var _,O;var F=X(()=>{_=Promise.resolve(),O=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});async function D(){}async function C(z){if(!z||z.length>G)return null;return null}async function u(z){if(!z||z.length>G)return null;return null}function b(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&U.has(J.text)?[J.text]:[]}let Z=[],$=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!$&&J.type==="word"){$=!0,Z.push(J.text);continue}if(q.has(J.type))Z.push(H(J.text));else if(Q.has(J.type))break}return Z}function H(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var G=1e4,U,q,Q,y;var M=X(()=>{Y();V();F();U=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),q=new Set(["word","string","raw_string","number"]),Q=new Set(["command_substitution","process_substitution"]);y=Symbol("parse-aborted")});
|
|
2
|
+
export{O as VZ,F as WZ,D as XZ,C as YZ,y as ZZ,u as _Z,b as $Z,M as a0};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Una as s}from"./cli-0.1.12-1hv04bp7.mjs";function o(){return"claude-code/99.0.0"}function c(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudio/0.1.12 (${e}${n}${t})`}var r=()=>{};
|
|
2
|
+
export{o as BX,c as CX,r as DX};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{bK as C,eK as X}from"./cli-0.1.12-242der7s.mjs";import{uX as W}from"./cli-0.1.12-ytxphavm.mjs";import{A3 as V,i3 as I,u3 as J}from"./cli-0.1.12-y9598sy3.mjs";import{Xea as H,qfa as T}from"./cli-0.1.12-g8mny195.mjs";import{Qna as P,Una as Q}from"./cli-0.1.12-1hv04bp7.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
|
|
2
|
+
export{v as _b,Y as $b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Sna as a}from"./cli-0.1.12-1hv04bp7.mjs";var i=a((f)=>{function u(t){let r={};if(t=t.replace(/^\?/,""),t)for(let n of t.split("&")){let[e,s=null]=n.split("=");if(e=decodeURIComponent(e),s)s=decodeURIComponent(s);if(!(e in r))r[e]=s;else if(Array.isArray(r[e]))r[e].push(s);else r[e]=[r[e],s]}return r}f.parseQueryString=u});var U=a((d)=>{var y=i(),c=(t)=>{if(typeof t==="string")return c(new URL(t));let{hostname:r,pathname:n,port:e,protocol:s,search:o}=t,p;if(o)p=y.parseQueryString(o);return{hostname:r,port:e?parseInt(e):void 0,protocol:s,path:n,query:p}};d.parseUrl=c});
|
|
2
|
+
export{U as Nna};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{QU as Y,SU as u,eT as u2,nT as Z,vV as e2}from"./cli-0.1.12-bddm1g1s.mjs";import{rX as t,sX as o,tX as U}from"./cli-0.1.12-04jw23rj.mjs";import{B_ as X,D_ as j}from"./cli-0.1.12-vzga2are.mjs";import{Qna as s}from"./cli-0.1.12-1hv04bp7.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claude Code"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudio"," "]}),o(u,{dimColor:!0,children:["v","0.1.12"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudio"," "]}),o(u,{dimColor:!0,children:["v","0.1.12"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","0.1.12"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","0.1.12"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
|
|
2
|
+
export{c2 as Ra};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{Sna as n}from"./cli-0.1.12-1hv04bp7.mjs";var w=n((p)=>{var r={warningEmitted:!1},a=(e)=>{if(e&&!r.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20)r.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
2
|
+
no longer support Node.js ${e} in January 2026.
|
|
3
|
+
|
|
4
|
+
To continue receiving updates to AWS services, bug fixes, and security
|
|
5
|
+
updates please upgrade to a supported Node.js LTS version.
|
|
6
|
+
|
|
7
|
+
More information can be found at: https://a.co/c895JFp`)};function o(e,t,s){if(!e.$source)e.$source={};return e.$source[t]=s,e}function u(e,t,s){if(!e.__aws_sdk_context)e.__aws_sdk_context={features:{}};else if(!e.__aws_sdk_context.features)e.__aws_sdk_context.features={};e.__aws_sdk_context.features[t]=s}function i(e,t,s){if(!e.$source)e.$source={};return e.$source[t]=s,e}p.emitWarningIfUnsupportedVersion=a;p.setCredentialFeature=o;p.setFeature=u;p.setTokenFeature=i;p.state=r});
|
|
8
|
+
export{w as Kna};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{DV as d,EV as X,IV as N}from"./cli-0.1.12-5ye0t0xd.mjs";import{J6 as p,s6 as O}from"./cli-0.1.12-rwzav5h1.mjs";import{Cba as U,D7 as k,E7 as S,Fba as G,I7 as B,N7 as f,Yba as y}from"./cli-0.1.12-vzga2are.mjs";import{Fga as x,Mga as b}from"./cli-0.1.12-rzpc0tr9.mjs";import{Bha as E,oha as H}from"./cli-0.1.12-ra3sby5b.mjs";import{Ska as w,Yma as P}from"./cli-0.1.12-pm5cwtxh.mjs";import{Qna as M,Una as R}from"./cli-0.1.12-1hv04bp7.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(k())return;let J=await O.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
|
|
2
|
+
`);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{p();P();y();E();b();f();S();N();T=M(d(),1)});
|
|
3
|
+
export{zq as Ce,Jq as De,C as Ee,h as Fe,Kq as Ge,Qq as He,g as Ie};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{cb as U,db as y}from"./cli-0.1.12-hsw67esw.mjs";import{c0 as K}from"./cli-0.1.12-g4sdgt8h.mjs";import{A4 as $,F4 as H,l5 as f,w4 as _}from"./cli-0.1.12-y9598sy3.mjs";import{$_ as J,Cba as Q,Fba as B,Haa as N,I7 as W,N7 as P,Taa as g,Yba as A,a$ as X,f$ as b,gca as Y,hca as Z,oca as G}from"./cli-0.1.12-vzga2are.mjs";import{Fga as V,Mga as O}from"./cli-0.1.12-rzpc0tr9.mjs";import{Yma as L,qka as I}from"./cli-0.1.12-pm5cwtxh.mjs";L();f();A();O();P();G();b();g();function i(j){return(k)=>({...k,...typeof j.permission_mode==="string"?{toolPermissionContext:{...k.toolPermissionContext,mode:X(j.permission_mode)}}:{},...typeof j.is_ultraplan_mode==="boolean"?{isUltraplanMode:j.is_ultraplan_mode}:{}})}function p({newState:j,oldState:k}){let R=k.toolPermissionContext.mode,D=j.toolPermissionContext.mode;if(R!==D){let q=J(R),z=J(D);if(q!==z){let F=z==="plan"&&j.isUltraplanMode&&!k.isUltraplanMode?!0:null;U({permission_mode:z,is_ultraplan_mode:F})}y(D)}if(j.mainLoopModel!==k.mainLoopModel&&j.mainLoopModel===null)N("userSettings",{model:void 0}),I(null),Z();if(j.mainLoopModel!==k.mainLoopModel&&j.mainLoopModel!==null)N("userSettings",{model:j.mainLoopModel}),I(j.mainLoopModel),Y(j.mainLoopModel);if(j.expandedView!==k.expandedView){let q=j.expandedView==="tasks",z=j.expandedView==="teammates";if(B().showExpandedTodos!==q||B().showSpinnerTree!==z)Q((F)=>({...F,showExpandedTodos:q,showSpinnerTree:z}))}if(j.verbose!==k.verbose&&B().verbose!==j.verbose){let q=j.verbose;Q((z)=>({...z,verbose:q}))}if(j.settings!==k.settings)try{if(_(),$(),H(),j.settings.env!==k.settings.env)K()}catch(q){W(V(q))}}
|
|
2
|
+
export{i as Va,p as Wa};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{J5 as A}from"./cli-0.1.12-bjzb0sjt.mjs";import{J6 as gG,s6 as q}from"./cli-0.1.12-rwzav5h1.mjs";import{N6 as $G}from"./cli-0.1.12-qn20n18h.mjs";import{Wga as L,_ga as MG,eha as $,hha as i}from"./cli-0.1.12-rzpc0tr9.mjs";import{Bha as HG,qha as c,rha as RG}from"./cli-0.1.12-ra3sby5b.mjs";import{vna as O,wna as g}from"./cli-0.1.12-vgbc3g9x.mjs";import{Qna as aG,Sna as P,Una as a,Vna as H}from"./cli-0.1.12-1hv04bp7.mjs";var GG=P((w)=>{var jG=w&&w.__createBinding||(Object.create?function(G,J,Q,V){if(V===void 0)V=Q;var Y=Object.getOwnPropertyDescriptor(J,Q);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[Q]}};Object.defineProperty(G,V,Y)}:function(G,J,Q,V){if(V===void 0)V=Q;G[V]=J[Q]}),TG=w&&w.__setModuleDefault||(Object.create?function(G,J){Object.defineProperty(G,"default",{enumerable:!0,value:J})}:function(G,J){G.default=J}),o=w&&w.__importStar||function(G){if(G&&G.__esModule)return G;var J={};if(G!=null){for(var Q in G)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(G,Q))jG(J,G,Q)}return TG(J,G),J};Object.defineProperty(w,"__esModule",{value:!0});w.req=w.json=w.toBuffer=void 0;var DG=o(H("http")),NG=o(H("https"));async function e(G){let J=0,Q=[];for await(let V of G)J+=V.length,Q.push(V);return Buffer.concat(Q,J)}w.toBuffer=e;async function LG(G){let Q=(await e(G)).toString("utf8");try{return JSON.parse(Q)}catch(V){let Y=V;throw Y.message+=` (input: ${Q})`,Y}}w.json=LG;function SG(G,J={}){let V=((typeof G==="string"?G:G.href).startsWith("https:")?NG:DG).request(G,J),Y=new Promise((Z,K)=>{V.once("response",Z).once("error",K).end()});return V.then=Y.then.bind(Y),V}w.req=SG});var ZG=P((X)=>{var QG=X&&X.__createBinding||(Object.create?function(G,J,Q,V){if(V===void 0)V=Q;var Y=Object.getOwnPropertyDescriptor(J,Q);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[Q]}};Object.defineProperty(G,V,Y)}:function(G,J,Q,V){if(V===void 0)V=Q;G[V]=J[Q]}),PG=X&&X.__setModuleDefault||(Object.create?function(G,J){Object.defineProperty(G,"default",{enumerable:!0,value:J})}:function(G,J){G.default=J}),VG=X&&X.__importStar||function(G){if(G&&G.__esModule)return G;var J={};if(G!=null){for(var Q in G)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(G,Q))QG(J,G,Q)}return PG(J,G),J},_G=X&&X.__exportStar||function(G,J){for(var Q in G)if(Q!=="default"&&!Object.prototype.hasOwnProperty.call(J,Q))QG(J,G,Q)};Object.defineProperty(X,"__esModule",{value:!0});X.Agent=void 0;var vG=VG(H("net")),JG=VG(H("http")),AG=H("https");_G(GG(),X);var M=Symbol("AgentBaseInternalState");class YG extends JG.Agent{constructor(G){super(G);this[M]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
|
+
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new vG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],V=Q.indexOf(J);if(V!==-1){if(Q.splice(V,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return AG.Agent.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let V={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(V),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,V)).then((K)=>{if(this.decrementSockets(Y,Z),K instanceof JG.Agent)try{return K.addRequest(G,V)}catch(W){return Q(W)}this[M].currentSocket=K,super.createSocket(G,J,Q)},(K)=>{this.decrementSockets(Y,Z),Q(K)})}createConnection(){let G=this[M].currentSocket;if(this[M].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[M].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[M])this[M].defaultPort=G}get protocol(){return this[M].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[M])this[M].protocol=G}}X.Agent=YG});var KG=P((U)=>{var bG=U&&U.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(U,"__esModule",{value:!0});U.parseProxyResponse=void 0;var hG=bG($G()),_=(0,hG.default)("https-proxy-agent:parse-proxy-response");function CG(G){return new Promise((J,Q)=>{let V=0,Y=[];function Z(){let E=G.read();if(E)u(E);else G.once("readable",Z)}function K(){G.removeListener("end",W),G.removeListener("error",R),G.removeListener("readable",Z)}function W(){K(),_("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function R(E){K(),_("onerror %o",E),Q(E)}function u(E){Y.push(E),V+=E.length;let z=Buffer.concat(Y,V),r=z.indexOf(`\r
|
|
3
|
+
\r
|
|
4
|
+
`);if(r===-1){_("have not received end of HTTP headers yet..."),Z();return}let s=z.slice(0,r).toString("ascii").split(`\r
|
|
5
|
+
`),x=s.shift();if(!x)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=x.split(" "),OG=+t[1],UG=t.slice(2).join(" "),T={};for(let D of s){if(!D)continue;let k=D.indexOf(":");if(k===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${D}"`));let l=D.slice(0,k).toLowerCase(),d=D.slice(k+1).trimStart(),S=T[l];if(typeof S==="string")T[l]=[S,d];else if(Array.isArray(S))S.push(d);else T[l]=d}_("got proxy server response: %o %o",x,T),K(),J({connect:{statusCode:OG,statusText:UG,headers:T},buffered:z})}G.on("error",R),G.on("end",W),Z()})}U.parseProxyResponse=CG});var EG=P((B)=>{var yG=B&&B.__createBinding||(Object.create?function(G,J,Q,V){if(V===void 0)V=Q;var Y=Object.getOwnPropertyDescriptor(J,Q);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[Q]}};Object.defineProperty(G,V,Y)}:function(G,J,Q,V){if(V===void 0)V=Q;G[V]=J[Q]}),fG=B&&B.__setModuleDefault||(Object.create?function(G,J){Object.defineProperty(G,"default",{enumerable:!0,value:J})}:function(G,J){G.default=J}),zG=B&&B.__importStar||function(G){if(G&&G.__esModule)return G;var J={};if(G!=null){for(var Q in G)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(G,Q))yG(J,G,Q)}return fG(J,G),J},BG=B&&B.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(B,"__esModule",{value:!0});B.HttpsProxyAgent=void 0;var v=zG(H("net")),WG=zG(H("tls")),uG=BG(H("assert")),xG=BG($G()),kG=ZG(),lG=H("url"),dG=KG(),N=(0,xG.default)("https-proxy-agent"),wG=(G)=>{if(G.servername===void 0&&G.host&&!v.isIP(G.host))return{...G,servername:G.host};return G};class m extends kG.Agent{constructor(G,J){super(J);this.options={path:void 0},this.proxy=typeof G==="string"?new lG.URL(G):G,this.proxyHeaders=J?.headers??{},N("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),V=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?XG(J,"headers"):null,host:Q,port:V}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let V;if(Q.protocol==="https:")N("Creating `tls.Socket`: %o",this.connectOpts),V=WG.connect(wG(this.connectOpts));else N("Creating `net.Socket`: %o",this.connectOpts),V=v.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=v.isIPv6(J.host)?`[${J.host}]`:J.host,K=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
|
+
`;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))K+=`${z}: ${Y[z]}\r
|
|
7
|
+
`;let W=(0,dG.parseProxyResponse)(V);V.write(`${K}\r
|
|
8
|
+
`);let{connect:R,buffered:u}=await W;if(G.emit("proxyConnect",R),this.emit("proxyConnect",R,G),R.statusCode===200){if(G.once("socket",mG),J.secureEndpoint)return N("Upgrading socket connection to TLS"),WG.connect({...XG(wG(J),"host","path","port"),socket:V});return V}V.destroy();let E=new v.Socket({writable:!1});return E.readable=!0,G.once("socket",(z)=>{N("Replaying proxy buffer for failed request"),(0,uG.default)(z.listenerCount("data")>0),z.push(u),z.push(null)}),E}}m.protocols=["http","https"];B.HttpsProxyAgent=m;function mG(G){G.resume()}function XG(G,...J){let Q={},V;for(V in G)if(!J.includes(V))Q[V]=G[V];return Q}});function VJ(){I.cache.clear?.(),$("Cleared CA certificates cache")}var I;var p=a(()=>{g();i();HG();MG();I=O(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if($(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=H("tls"),V=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)V.push(...Z),$(`CA certs: Loaded ${V.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){$("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else V.push(...Q.rootCertificates),$(`CA certs: Loaded ${V.length} bundled root certificates as base (--use-system-ca fallback)`)}else V.push(...Q.rootCertificates),$(`CA certs: Loaded ${V.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});V.push(Y),$(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){$(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return V.length>0?V:void 0})});import{Agent as cG}from"https";function XJ(){let G=F(),J=I();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function h(){let G=F(),J=I();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return $("TLS: Created undici agent with custom certificates"),{dispatcher:new(A()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function zJ(){F.cache.clear?.(),b.cache.clear?.(),$("Cleared mTLS configuration cache")}function BJ(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)$("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,b;var qG=a(()=>{g();p();i();MG();F=O(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),$("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){$(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),$("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){$(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,$("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),b=O(()=>{let G=F(),J=I();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return $("mTLS: Creating HTTPS agent with custom certificates"),new cG(Q)})});function OJ(G){FG.set(G,!0)}function iG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function j(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function pG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=pG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),V=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${V}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some((W)=>{if(W=W.toLowerCase().trim(),W.includes(":"))return Z===W;if(W.startsWith(".")){let R=W;return V===W.substring(1)||V.endsWith(R)}return V===W})}catch{return!1}}function f(G,J={}){let Q=F(),V=I(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...V&&{ca:V}};if(RG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,K,W)=>{W(null,Z,iG(K))};return new IG.HttpsProxyAgent(G,{...Y,...J})}function UJ(G={}){let J=j(),Q=b(),V=q.create({proxy:!1});if(!J){if(Q)V.defaults.httpsAgent=Q;return V}let Y=f(J,G);return V.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),V}function jJ(G){let J=j();if(!J)return;if(y(G))return;return f(J)}function TJ(G){let J=j();if(!J)return;if(y(G))return;return J}function DJ(G){let J=G?.provider??"unknown",Q=FG.get(J)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...Q,unix:Y}}let V=j();if(V){if(typeof Bun<"u")return{...Q,proxy:V,...h()};return{...Q,dispatcher:n(V)}}return{...Q,...h()}}function NJ(){let G=j(),J=b();if(C!==void 0)q.interceptors.request.eject(C),C=void 0;if(q.defaults.proxy=void 0,q.defaults.httpAgent=void 0,q.defaults.httpsAgent=void 0,G){q.defaults.proxy=!1;let Q=f(G);C=q.interceptors.request.use((V)=>{if(V.url&&y(V.url))if(J)V.httpsAgent=J,V.httpAgent=J;else delete V.httpsAgent,delete V.httpAgent;else V.httpsAgent=Q,V.httpAgent=Q;return V}),A().setGlobalDispatcher(n(G))}else if(J){q.defaults.httpsAgent=J;let Q=h();if(Q.dispatcher)A().setGlobalDispatcher(Q.dispatcher)}}async function LJ(){let G=j();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-0.1.12-34ew4zjx.mjs"),import("./index-0.1.12-zqrp5tve.mjs")]),V=f(G),Y=new J({httpAgent:V,httpsAgent:V});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function SJ(){n.cache.clear?.(),$("Cleared proxy agent cache")}var IG,FG,n,C;var nG=a(()=>{gG();g();p();i();HG();qG();IG=aG(EG(),1),FG=new Map;n=O((G)=>{let J=A(),Q=F(),V=I(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||V){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...V&&{ca:V}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)})});
|
|
9
|
+
export{EG as m5,I as n5,VJ as o5,p as p5,F as q5,XJ as r5,zJ as s5,BJ as t5,qG as u5,OJ as v5,j as w5,y as x5,UJ as y5,jJ as z5,TJ as A5,DJ as B5,NJ as C5,LJ as D5,SJ as E5,nG as F5};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bha as F,rha as w}from"./cli-0.1.12-ra3sby5b.mjs";import{Una as D}from"./cli-0.1.12-1hv04bp7.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
|
|
2
|
+
export{Q as OQ,V as PQ,L as QQ};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{Qn as J,Rn as k,UH as L,gI as z,pJ as f,rJ as P}from"./cli-0.1.12-242der7s.mjs";import{_9 as F,d_ as A}from"./cli-0.1.12-vzga2are.mjs";import{$da as H,Yda as W,_da as R,aea as X}from"./cli-0.1.12-j6gjfwh5.mjs";import{gga as Y,hga as h}from"./cli-0.1.12-6x2mnahn.mjs";import{eha as D,hha as M}from"./cli-0.1.12-rzpc0tr9.mjs";import{Ska as q,Yma as C}from"./cli-0.1.12-pm5cwtxh.mjs";import{Una as V}from"./cli-0.1.12-1hv04bp7.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
|
|
2
|
+
`);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:J([v]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=L(w.message.content),B=I().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return Y("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),Y("tengu_session_title_generated",{success:!1}),"Claudio"}}var $=1000,v=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
|
|
3
|
+
|
|
4
|
+
Return JSON with a single "title" field.
|
|
5
|
+
|
|
6
|
+
Good examples:
|
|
7
|
+
{"title": "Fix login button on mobile"}
|
|
8
|
+
{"title": "Add OAuth authentication"}
|
|
9
|
+
{"title": "Debug failing CI tests"}
|
|
10
|
+
{"title": "Refactor API client error handling"}
|
|
11
|
+
|
|
12
|
+
Bad (too vague): {"title": "Code changes"}
|
|
13
|
+
Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
|
|
14
|
+
Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,I;var _=V(()=>{R();C();h();P();M();A();X();z();k();I=H(()=>W.object({title:W.string()}))});
|
|
15
|
+
export{S as Pd,T as Qd,_ as Rd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ci as l,Di as Rq,Ei as i,Fi as Aq,Gk as S,Lk as Zq,pk as E,qk as m,rk as Xq}from"./cli-0.1.12-242der7s.mjs";import{J6 as Qq,s6 as p}from"./cli-0.1.12-rwzav5h1.mjs";import{A$ as n,F$ as vq,I7 as D,N7 as qq,u$ as u,w$ as g,z$ as h}from"./cli-0.1.12-vzga2are.mjs";import{Yda as d,_da as Uq}from"./cli-0.1.12-j6gjfwh5.mjs";import{Gga as W,Hga as O,Iga as C,Mga as _,Oga as P,Pga as v,Sga as f,Wga as M,_ga as y,eha as V,hha as e}from"./cli-0.1.12-rzpc0tr9.mjs";import{Una as N}from"./cli-0.1.12-1hv04bp7.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{Qq();e();_();y();qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
+
export{Fq as ac,r as bc,nq as cc,lq as dc,Oq as ec,QQ as fc,XQ as gc,Dq as hc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ch as R,Eh as y,Fh as v}from"./cli-0.1.12-m3q5r7wd.mjs";import{SU as K,eT as c,vV as E}from"./cli-0.1.12-bddm1g1s.mjs";import{qX as O,rX as N,sX as M,tX as U}from"./cli-0.1.12-04jw23rj.mjs";import{uX as G}from"./cli-0.1.12-ytxphavm.mjs";import{Fba as L,Yba as b}from"./cli-0.1.12-vzga2are.mjs";import{Efa as Z,Qfa as W}from"./cli-0.1.12-bhxgr018.mjs";import{hga as p}from"./cli-0.1.12-6x2mnahn.mjs";import{Qna as F,Una as j}from"./cli-0.1.12-1hv04bp7.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
|
|
2
|
+
export{f as tf,r as uf,n as vf,l as wf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{dda as B,gda as K,i8 as Z,k8 as f,xca as $,yca as y}from"./cli-0.1.12-vzga2are.mjs";import{Bha as E,tha as Y}from"./cli-0.1.12-ra3sby5b.mjs";import{Una as N,Vna as x}from"./cli-0.1.12-1hv04bp7.mjs";import{existsSync as S}from"node:fs";import{homedir as F}from"node:os";import{join as X}from"node:path";function _(){if(Y())return;try{return $().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function J(b){let w=b?.trim();return w?w:void 0}function V(b=process.env){return J(b.GOOGLE_CLOUD_PROJECT)??J(b.GCLOUD_PROJECT)??J(b.GOOGLE_PROJECT_ID)}function D(b=process.env){let w=J(b.GEMINI_AUTH_MODE)?.toLowerCase();if(w==="api-key"||w==="access-token"||w==="adc")return w;return}function P(b=process.env){let w=J(b.GOOGLE_APPLICATION_CREDENTIALS),q=new Set;if(w)q.add(w);q.add(X(F(),".config","gcloud","application_default_credentials.json"));let O=J(b.APPDATA);if(O)q.add(X(O,"gcloud","application_default_credentials.json"));return[...q]}function k(b=process.env){return P(b).some((w)=>S(w))}function G(b){if(typeof b==="string")return J(b);return J(b?.token)}async function A(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[z]})}async function L(b,w){if(!k(b))return{kind:"none"};try{let q=await(w.createGoogleAuth??A)(),O=await q.getClient(),R=G(await O.getAccessToken());if(!R)return{kind:"none"};let Q=V(b)??(typeof q.getProjectId==="function"?J(await q.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:R,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function s(b=process.env,w={}){let q=D(b),O=B(),R=O?.transport==="gemini"?J(O.apiKey):void 0,U=q==="access-token"||q==="adc"?void 0:R;if(U&&(q===void 0||q==="api-key"))return{kind:"api-key",credential:U};let Q=q==="api-key"||q==="adc"?void 0:J(_());if(Q&&(q===void 0||q==="access-token")){let W=V(b);return{kind:"access-token",credential:Q,...W?{projectId:W}:{}}}if(q==="api-key"||q==="access-token")return{kind:"none"};if(w.createGoogleAuth)return L(b,w);return T(J(b.GOOGLE_APPLICATION_CREDENTIALS),J(b.APPDATA),F(),V(b))}var z="https://www.googleapis.com/auth/cloud-platform",C=300000,T;var g=N(()=>{K();E();f();y();T=Z(async(b,w,q,O)=>L({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:w,GOOGLE_CLOUD_PROJECT:O,GCLOUD_PROJECT:O,GOOGLE_PROJECT_ID:O,HOME:q},{}),C)});
|
|
2
|
+
export{D as i6,s as j6,g as k6};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Yma as H,jja as z,nja as B}from"./cli-0.1.12-pm5cwtxh.mjs";import{Una as x}from"./cli-0.1.12-1hv04bp7.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A,G="tick",L="task-notification",_="task-id",b="tool-use-id",k="task-type",p="output-file",v="status",C="summary",O="worktree",y="worktreePath",S="worktreeBranch",f="remote-review",m="remote-review-progress",u="teammate-message",h="channel",l="fork-boilerplate",w="Your directive: ",g,d;var M=x(()=>{A=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],g=["help","-h","--help"],d=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
|
|
2
|
+
export{Q as bea,J as cea,R as dea,K as eea,U as fea,V as gea,W as hea,X as iea,Y as jea,Z as kea,$ as lea,j as mea,q as nea,A as oea,G as pea,L as qea,_ as rea,b as sea,k as tea,p as uea,v as vea,C as wea,O as xea,y as yea,S as zea,f as Aea,m as Bea,u as Cea,h as Dea,l as Eea,w as Fea,g as Gea,d as Hea,M as Iea};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{e0 as N,f0 as k,g0 as F,i0 as U,j0 as p}from"./cli-0.1.12-actnmgw5.mjs";import{C5 as x,E5 as H,F5 as V,o5 as L,p5 as M,s5 as O,u5 as P}from"./cli-0.1.12-erggrdth.mjs";import{Faa as X,Fba as Z,Kaa as Y,Taa as D,Yba as K,l_ as I,n_ as b}from"./cli-0.1.12-vzga2are.mjs";import{Bha as G,rha as $}from"./cli-0.1.12-ra3sby5b.mjs";k();M();K();G();p();P();V();b();D();function A(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:w,CLAUDE_CODE_OAUTH_TOKEN:j,...m}=q;return m}function R(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}var W;function _(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return _(R(A(q)))}var h=["userSettings","flagSettings","policySettings"];function S(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of h){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function o(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}
|
|
2
|
+
export{S as b0,o as c0};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Kna as p}from"./cli-0.1.12-dtba3gm9.mjs";import{Ona as a}from"./cli-0.1.12-qf1kw5cr.mjs";import{Sna as i}from"./cli-0.1.12-1hv04bp7.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
|
|
2
|
+
export{u as K5};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Pd as V,Rd as D}from"./cli-0.1.12-faa9mx3m.mjs";import{Qn as L,Rn as q,UH as Q,gI as w,pJ as U,rJ as B}from"./cli-0.1.12-242der7s.mjs";import{_9 as K,d_ as k}from"./cli-0.1.12-vzga2are.mjs";import{Gga as G,Mga as _,eha as I,hha as $}from"./cli-0.1.12-rzpc0tr9.mjs";import{Una as Z}from"./cli-0.1.12-1hv04bp7.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:L(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=Q(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var F=Z(()=>{B();$();_();k();w();D();q()});
|
|
2
|
+
export{h as Nd,F as Od};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Una as C}from"./cli-0.1.12-1hv04bp7.mjs";import E from"node:fs";import G from"node:path";import H from"node:os";function A(){if(q!==void 0)return;try{let b=process.env.CLAUDE_FEATURE_FLAGS_FILE||G.join(H.homedir(),".claude","feature-flags.json"),j=JSON.parse(E.readFileSync(b,"utf-8"));q=j&&typeof j==="object"&&!Array.isArray(j)?j:null}catch{q=null}}function x(b,j){if(A(),q!=null&&Object.hasOwn(q,b))return q[b];if(Object.hasOwn(z,b))return z[b];return j}function O(){return I}function Q(){return!1}function R(){return A(),q||{}}function S(){return{}}function T(){}function U(){}function W(){return}async function Y(b,j){return x(b,j)}function Z(b,j){return x(b,j)}function $(b,j){return x(b,j)}function v(b){return Boolean(x(b,!1))}async function w(b){return!1}async function P(b){return Boolean(x(b,!1))}function B(){}function D(){q=void 0}async function h(){q=void 0}function N(){}function m(){}async function c(b,j){return x(b,j)}function F(b,j){return x(b,j)}var q=void 0,z,I=()=>{},X=async()=>null;var J=C(()=>{z={tengu_sedge_lantern:!0,tengu_passport_quail:!0,tengu_coral_fern:!0,tengu_bramble_lintel:15}});
|
|
2
|
+
export{O as Xea,Q as Yea,R as Zea,S as _ea,T as $ea,U as afa,W as bfa,X as cfa,Y as dfa,Z as efa,$ as ffa,v as gfa,w as hfa,P as ifa,B as jfa,D as kfa,h as lfa,N as mfa,m as nfa,c as ofa,F as pfa,J as qfa};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{ua as DY}from"./cli-0.1.12-41zq3gv6.mjs";import{bb as qY}from"./cli-0.1.12-hsw67esw.mjs";import{Ih as X9,Jh as RW}from"./cli-0.1.12-w0qbr98a.mjs";import{$t as TW,Ay as M0,By as a9,CJ as NY,DH as hZ,DN as BY,EJ as dQ,EN as lQ,FF as K9,GF as G9,HF as hW,Hs as p0,Is as xZ,Js as u0,Jy as b0,Ks as m0,Ls as c0,MD as HY,Mk as O9,Ms as g0,My as I0,ND as gQ,Nk as gW,Ns as pZ,Ny as TZ,OH as C0,Os as uZ,Po as UZ,Ps as d0,Qs as l0,RD as i,Rs as a0,Ry as n9,SN as q9,So as EZ,Ss as n0,TD as fW,To as h0,Ts as i0,Us as r0,VH as J9,Vs as o0,Ws as s0,XH as H9,Xm as Z0,Xs as t0,Ym as K0,Ys as GQ,Yt as W9,Zm as FZ,_m as G0,bI as N9,bK as T0,cH as aY,cO as D9,eK as i9,fH as PW,gI as wZ,gL as B9,gq as CY,hq as zW,io as JY,iq as TY,jO as LY,jo as cQ,jp as Q9,jq as RY,kq as jZ,lp as CW,lq as rZ,mG as U9,mq as fY,nq as WZ,oG as E9,oq as oZ,ov as F0,pH as SZ,pL as L9,pq as SY,pv as l9,qq as hY,rL as z9,rq as AY,sG as y9,tH as s,tx as k0,uF as V9,ux as XQ,vF as SW,vL as kW,wO as zY,zG as dW,zH as XZ}from"./cli-0.1.12-242der7s.mjs";import{aS as $0,bS as g9}from"./cli-0.1.12-2v18rdhk.mjs";import{GS as E0,HS as m9,US as y0,VS as P0,WS as c9,aT as j0,bT as d9}from"./cli-0.1.12-tyt09z73.mjs";import{QU as p,SU as F,eT as p9,vV as u9}from"./cli-0.1.12-bddm1g1s.mjs";import{qX as a,rX as E,sX as M,tX as J0}from"./cli-0.1.12-04jw23rj.mjs";import{uX as x9}from"./cli-0.1.12-ytxphavm.mjs";import{FY as bW,fY as sY,gY as tY,hY as MW,sY as eY}from"./cli-0.1.12-q63qrz06.mjs";import{GY as EY,KY as GW}from"./cli-0.1.12-4qedbzt3.mjs";import{I2 as dY,M2 as EW,l5 as yW,o4 as lY}from"./cli-0.1.12-y9598sy3.mjs";import{B9 as _9,C7 as f9,F$ as cW,I7 as e,Kaa as gY,N7 as w0,O7 as vZ,P7 as S9,Q8 as uW,Taa as UW,X9 as mW,_9 as UY,d_ as KW,r7 as GY,r8 as A9,t7 as mQ,w9 as CZ,y$ as w9,y9 as h9,z7 as _0}from"./cli-0.1.12-vzga2are.mjs";import{$da as q,Yda as Y,Zda as k,_da as GZ,aea as OZ}from"./cli-0.1.12-j6gjfwh5.mjs";import{Cea as A0,Iea as R9,dea as uY,eea as wW,gea as IZ,jea as B0,kea as L0,lea as z0,mea as q0,pea as D0,qea as v0}from"./cli-0.1.12-g3ycbjxk.mjs";import{Tea as mY,Uea as cY,Wea as OW}from"./cli-0.1.12-tae7cd7e.mjs";import{ffa as vY,qfa as tQ}from"./cli-0.1.12-g8mny195.mjs";import{Efa as O0,Mfa as U0,Qfa as k9}from"./cli-0.1.12-bhxgr018.mjs";import{gga as d,hga as _Z}from"./cli-0.1.12-6x2mnahn.mjs";import{Gga as v9,Hga as aZ,Mga as gZ,Oga as ZZ,Pga as VY,Sga as PZ,eha as b,hha as KZ,kga as OY,mga as VW,yga as XY}from"./cli-0.1.12-rzpc0tr9.mjs";import{jha as KY,nha as uQ}from"./cli-0.1.12-k2164g7e.mjs";import{Mla as MY,Nla as zZ,Ola as bY,Qla as IY,Vma as oY,Yma as BZ,dja as NZ,jja as Y0,kja as wY,ska as pY}from"./cli-0.1.12-pm5cwtxh.mjs";import{Qna as N0,Tna as fZ,Una as AZ,Vna as sZ}from"./cli-0.1.12-1hv04bp7.mjs";var QQ={};fZ(QQ,{selectableUserMessagesFilter:()=>S0,messagesAfterAreOnlySynthetic:()=>YQ,MessageSelector:()=>o9});import{randomUUID as r9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function RZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function o9({messages:Q,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:V,onClose:J,preselectedMessage:K}){let H=T0((U)=>U.fileHistory),[B,z]=I.useState(void 0),G=b0(),L=I.useMemo(r9,[]),w=I.useMemo(()=>[...Q.filter(S0),{...s({content:""}),uuid:L}],[Q,L]),[v,_]=I.useState(w.length-1),P=Math.max(0,Math.min(v-Math.floor(bZ/2),w.length-bZ)),C=w.length>1,[D,$]=I.useState(K),[y,T]=I.useState(void 0);I.useEffect(()=>{if(!K||!G)return;let U=!1;return TZ(H,K.uuid).then((f)=>{if(!U)T(f)}),()=>{U=!0}},[K,G,H]);let[O,j]=I.useState(!1),[l,n]=I.useState(null),[S,m]=I.useState("both"),[g,x]=I.useState(""),[A,N]=I.useState("");function R(U){let f=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],u={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return f.push({value:"summarize",label:"Summarize from here",...u,onChange:x}),f.push({value:"nevermind",label:"Never mind"}),f}I.useEffect(()=>{d("tengu_message_selector_opened",{})},[]);async function h(U){Z(),j(!0);try{await W(U),j(!1),J()}catch(f){e(f),j(!1),z(`Failed to restore the conversation:
|
|
2
|
+
${f}`)}}async function r(U){let f=Q.indexOf(U),u=Q.length-1-f;if(d("tengu_message_selector_selected",{index_from_end:u,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){J();return}if(!G){await h(U);return}let c=await TZ(H,U.uuid);$(U),T(c)}async function t(U){if(d("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(K)J();else $(void 0);return}if(RZ(U)){Z(),j(!0),n(U),z(void 0);try{let c=U==="summarize_up_to"?"up_to":"from",YZ=(c==="up_to"?A:g).trim()||void 0;await V(D,YZ,c),j(!1),n(null),$(void 0),J()}catch(c){e(c),j(!1),n(null),$(void 0),z(`Failed to summarize:
|
|
3
|
+
${c}`)}return}Z(),j(!0),z(void 0);let f=null,u=null;if(U==="code"||U==="both")try{await X(D)}catch(c){f=c,e(f)}if(U==="conversation"||U==="both")try{await W(D)}catch(c){u=c,e(u)}if(j(!1),$(void 0),u&&f)z(`Failed to restore the conversation and code:
|
|
4
|
+
${u}
|
|
5
|
+
${f}`);else if(u)z(`Failed to restore the conversation:
|
|
6
|
+
${u}`);else if(f)z(`Failed to restore the code:
|
|
7
|
+
${f}`);else J()}let Q0=$0(),$9=I.useCallback(()=>{if(D&&!K){$(void 0);return}d("tengu_message_selector_cancelled",{}),J()},[J,D,K]),j9=I.useCallback(()=>_((U)=>Math.max(0,U-1)),[]),F9=I.useCallback(()=>_((U)=>Math.min(w.length-1,U+1)),[w.length]),M9=I.useCallback(()=>_(0),[]),b9=I.useCallback(()=>_(w.length-1),[w.length]),I9=I.useCallback(()=>{let U=w[v];if(U)r(U)},[w,v,r]);y0("confirm:no",$9,{context:"Confirmation",isActive:!D}),P0({"messageSelector:up":j9,"messageSelector:down":F9,"messageSelector:top":M9,"messageSelector:bottom":b9,"messageSelector:select":I9},{context:"MessageSelector",isActive:!O&&!B&&!D&&C});let[W0,X0]=I.useState({});I.useEffect(()=>{async function U(){if(!G)return;Promise.all(w.map(async(f,u)=>{if(f.uuid!==L){let c=I0(H,f.uuid),YZ=w.at(u+1),DZ=c?ZQ(Q,f.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(DZ!==void 0)X0((o)=>({...o,[u]:DZ}));else X0((o)=>({...o,[u]:void 0}))}}))}U()},[w,Q,L,H,G]);let qZ=G&&y?.filesChanged&&y.filesChanged.length>0,C9=!B&&!D&&!K&&C;return M(p,{flexDirection:"column",width:"100%",children:[E(j0,{color:"suggestion"}),M(p,{flexDirection:"column",marginX:1,gap:1,children:[E(F,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:M(F,{color:"error",children:["Error: ",B]})}),!C&&E(a,{children:E(F,{children:"Nothing to rewind to yet."})}),!B&&D&&C&&M(a,{children:[M(F,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),M(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(H0,{userMessage:D,color:"text",isCurrent:!1}),M(F,{dimColor:!0,children:["(",U0(new Date(D.timestamp)),")"]})]}),E(t9,{selectedRestoreOption:S,canRestoreCode:!!qZ,diffStatsForRestore:y}),O&&RZ(l)?M(p,{flexDirection:"row",gap:1,children:[E(M0,{}),E(F,{children:"Summarizing…"})]}):E(F0,{isDisabled:O,options:R(!!qZ),defaultFocusValue:qZ?"both":"conversation",onFocus:(U)=>m(U),onChange:(U)=>t(U),onCancel:()=>K?J():$(void 0)}),qZ&&E(p,{marginBottom:1,children:M(F,{dimColor:!0,children:[vZ.warning," Rewinding does not affect files edited manually or via bash."]})})]}),C9&&M(a,{children:[G?E(F,{children:"Restore the code and/or conversation to the point before…"}):E(F,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:w.slice(P,P+bZ).map((U,f)=>{let u=P+f,c=u===v,YZ=U.uuid===L,DZ=u in W0,o=W0[u],MZ=o?.filesChanged&&o.filesChanged.length;return M(p,{height:G?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:c?M(F,{color:"permission",bold:!0,children:[vZ.pointer," "]}):E(F,{children:" "})}),M(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(H0,{userMessage:U,color:c?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),G&&DZ&&E(p,{height:1,flexDirection:"row",children:o?E(a,{children:E(F,{dimColor:!c,color:"inactive",children:MZ?M(a,{children:[MZ===1&&o.filesChanged[0]?`${QZ.basename(o.filesChanged[0])} `:`${MZ} files changed `,E(f0,{diffStats:o})]}):E(a,{children:"No code changes"})})}):M(F,{dimColor:!0,color:"warning",children:[vZ.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(F,{dimColor:!0,italic:!0,children:Q0.pending?M(a,{children:["Press ",Q0.keyName," again to exit"]}):M(a,{children:[!B&&C&&"Enter to continue · ","Esc to exit"]})})]})]})}function s9(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function t9(Q){let Z=VZ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:V}=Q,J=X&&(W==="both"||W==="code"),K;if(Z[0]!==W)K=s9(W),Z[0]=W,Z[1]=K;else K=Z[1];let H;if(Z[2]!==K)H=E(F,{dimColor:!0,children:K}),Z[2]=K,Z[3]=H;else H=Z[3];let B;if(Z[4]!==V||Z[5]!==W||Z[6]!==J)B=!RZ(W)&&(J?E(e9,{diffStatsForRestore:V}):E(F,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=V,Z[5]=W,Z[6]=J,Z[7]=B;else B=Z[7];let z;if(Z[8]!==H||Z[9]!==B)z=M(p,{flexDirection:"column",children:[H,B]}),Z[8]=H,Z[9]=B,Z[10]=z;else z=Z[10];return z}function e9(Q){let Z=VZ.c(14),{diffStatsForRestore:W}=Q;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let H;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))H=E(F,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=H;else H=Z[0];return H}let X=W.filesChanged.length,V;if(X===1){let H;if(Z[1]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=H;else H=Z[2];V=H}else if(X===2){let H;if(Z[3]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=H;else H=Z[4];let B=H,z;if(Z[5]!==W.filesChanged[1])z=QZ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=z;else z=Z[6];V=`${B} and ${z}`}else{let H;if(Z[7]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=H;else H=Z[8];V=`${H} and ${W.filesChanged.length-1} other files`}let J;if(Z[9]!==W)J=E(f0,{diffStats:W}),Z[9]=W,Z[10]=J;else J=Z[10];let K;if(Z[11]!==V||Z[12]!==J)K=E(a,{children:M(F,{dimColor:!0,children:["The code will be restored"," ",J," in ",V,"."]})}),Z[11]=V,Z[12]=J,Z[13]=K;else K=Z[13];return K}function f0(Q){let Z=VZ.c(7),{diffStats:W}=Q;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=M(F,{color:"diffAddedWord",children:["+",W.insertions," "]}),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let V;if(Z[2]!==W.deletions)V=M(F,{color:"diffRemovedWord",children:["-",W.deletions]}),Z[2]=W.deletions,Z[3]=V;else V=Z[3];let J;if(Z[4]!==X||Z[5]!==V)J=M(a,{children:[X,V]}),Z[4]=X,Z[5]=V,Z[6]=J;else J=Z[6];return J}function H0(Q){let Z=VZ.c(31),{userMessage:W,color:X,dimColor:V,isCurrent:J,paddingRight:K}=Q,{columns:H}=E0();if(J){let T;if(Z[0]!==X||Z[1]!==V)T=E(p,{width:"100%",children:E(F,{italic:!0,color:X,dimColor:V,children:"(current)"})}),Z[0]=X,Z[1]=V,Z[2]=T;else T=Z[2];return T}let B=W.message.content,z=typeof B==="string"?null:B[B.length-1],G,L,w,v,_,P,C,D;if(Z[3]!==X||Z[4]!==H||Z[5]!==B||Z[6]!==V||Z[7]!==z||Z[8]!==K){D=Symbol.for("react.early_return_sentinel");Z:{let T=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",O=_0(T);if(C0(O)){let j;if(Z[17]!==X||Z[18]!==V)j=E(p,{flexDirection:"row",width:"100%",children:E(F,{italic:!0,color:X,dimColor:V,children:"((empty message))"})}),Z[17]=X,Z[18]=V,Z[19]=j;else j=Z[19];D=j;break Z}if(O.includes("<bash-input>")){let j=XZ(O,"bash-input");if(j){let l;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))l=E(F,{color:"bashBorder",children:"!"}),Z[20]=l;else l=Z[20];D=M(p,{flexDirection:"row",width:"100%",children:[l,M(F,{color:X,dimColor:V,children:[" ",j]})]});break Z}}if(O.includes(`<${IZ}>`)){let j=XZ(O,IZ),l=XZ(O,"command-args"),n=XZ(O,"skill-format")==="true";if(j)if(n){D=E(p,{flexDirection:"row",width:"100%",children:M(F,{color:X,dimColor:V,children:["Skill(",j,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:M(F,{color:X,dimColor:V,children:["/",j," ",l]})});break Z}}L=p,P="row",C="100%",G=F,w=X,v=V,_=K?O0(O,H-K,!0):O.slice(0,500).split(`
|
|
8
|
+
`).slice(0,4).join(`
|
|
9
|
+
`)}Z[3]=X,Z[4]=H,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=K,Z[9]=G,Z[10]=L,Z[11]=w,Z[12]=v,Z[13]=_,Z[14]=P,Z[15]=C,Z[16]=D}else G=Z[9],L=Z[10],w=Z[11],v=Z[12],_=Z[13],P=Z[14],C=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let $;if(Z[21]!==G||Z[22]!==w||Z[23]!==v||Z[24]!==_)$=E(G,{color:w,dimColor:v,children:_}),Z[21]=G,Z[22]=w,Z[23]=v,Z[24]=_,Z[25]=$;else $=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==C||Z[29]!==$)y=E(L,{flexDirection:P,width:C,children:$}),Z[26]=L,Z[27]=P,Z[28]=C,Z[29]=$,Z[30]=y;else y=Z[30];return y}function ZQ(Q,Z,W){let X=Q.findIndex((B)=>B.uuid===Z);if(X===-1)return;let V=W?Q.findIndex((B)=>B.uuid===W):Q.length;if(V===-1)V=Q.length;let J=[],K=0,H=0;for(let B=X+1;B<V;B++){let z=Q[B];if(!z||!hZ(z))continue;let G=z.toolUseResult;if(!G||!G.filePath||!G.structuredPatch)continue;if(!J.includes(G.filePath))J.push(G.filePath);try{if("type"in G&&G.type==="create")K+=G.content.split(/\r?\n/).length;else for(let L of G.structuredPatch){let w=CZ(L.lines,(_)=>_.startsWith("+")),v=CZ(L.lines,(_)=>_.startsWith("-"));K+=w,H+=v}}catch{continue}}return{filesChanged:J,insertions:K,deletions:H}}function S0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(SZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&R0(W)?W.text.trim():"";if(X.indexOf(`<${z0}>`)!==-1||X.indexOf(`<${q0}>`)!==-1||X.indexOf(`<${B0}>`)!==-1||X.indexOf(`<${L0}>`)!==-1||X.indexOf(`<${v0}>`)!==-1||X.indexOf(`<${D0}>`)!==-1||X.indexOf(`<${A0}`)!==-1)return!1;return!0}function YQ(Q,Z){for(let W=Z+1;W<Q.length;W++){let X=Q[W];if(!X)continue;if(SZ(X))continue;if(hZ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let V=X.message.content;if(Array.isArray(V)){if(V.some((K)=>K.type==="text"&&K.text.trim()||K.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var VZ,I,bZ=7;var WQ=AZ(()=>{S9();_Z();i9();n9();w0();g9();u9();c9();f9();wZ();l9();a9();m9();R9();h9();k9();d9();J0();VZ=N0(p9(),1),I=N0(x9(),1)});var WW={};fZ(WW,{getCronJitterConfig:()=>QW});function QW(){let Q=vY("tengu_kairos_cron_config",WZ,eQ),Z=YW().safeParse(Q);return Z.success?Z.data:WZ}var eQ=60000,dZ=1800000,ZW=2592000000,YW;var XW=AZ(()=>{GZ();tQ();AY();OZ();YW=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(dZ),oneShotMaxMs:Y.number().int().min(0).max(dZ),oneShotFloorMs:Y.number().int().min(0).max(dZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(ZW).default(WZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as JW,readFile as HW,unlink as yY,writeFile as nZ}from"fs/promises";import{dirname as NW,join as PY}from"path";function HZ(Q){return PY(Q??wY(),BW)}async function $Y(Q){let Z;try{Z=await HW(HZ(Q),"utf8")}catch{return}let W=LW().safeParse(UY(Z,!1));return W.success?W.data:void 0}async function _Y(Q,Z){let W=HZ(Z),X=ZZ(Q);try{return await nZ(W,X,{flag:"wx"}),!0}catch(V){let J=aZ(V);if(J==="EEXIST")return!1;if(J==="ENOENT"){await JW(NW(W),{recursive:!0});try{return await nZ(W,X,{flag:"wx"}),!0}catch(K){if(aZ(K)==="EEXIST")return!1;throw K}}throw V}}function lZ(Q){$Z?.(),$Z=OY(async()=>{await LZ(Q)})}async function iZ(Q){let Z=Q?.dir,W=Q?.lockIdentity??NZ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await _Y(X,Z))return JZ=void 0,lZ(Q),b(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await $Y(Z);if(V?.sessionId===W){if(V.pid!==process.pid)await nZ(HZ(Z),ZZ(X)),lZ(Q);return!0}if(V&&EY(V.pid)){if(JZ!==V.sessionId)JZ=V.sessionId,b(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)b(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await yY(HZ(Z)).catch(()=>{}),await _Y(X,Z))return JZ=void 0,lZ(Q),!0;return!1}async function LZ(Q){$Z?.(),$Z=void 0,JZ=void 0;let Z=Q?.dir,W=Q?.lockIdentity??NZ(),X=await $Y(Z);if(!X||X.sessionId!==W)return;try{await yY(HZ(Z)),b("[ScheduledTasks] released scheduler lock")}catch{}}var BW,LW,$Z,JZ;var jY=AZ(()=>{GZ();BZ();VW();KZ();gZ();GW();KW();OZ();PZ();BW=PY(".claude","scheduled_tasks.lock"),LW=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var AW={};fZ(AW,{isRecurringTaskAged:()=>kY,createCronScheduler:()=>vW,buildMissedTaskNotification:()=>xY});function kY(Q,Z,W){if(W===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=W)}function vW(Q){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:V,onMissed:J,dir:K,lockIdentity:H,getJitterConfig:B,isKilled:z,filter:G}=Q,L=K||H?{dir:K,lockIdentity:H}:void 0,w=[],v=new Map,_=new Set,P=new Set,C=null,D=null,$=null,y=null,T=!1,O=!1;async function j(S){let m=await RY(K);if(T)return;if(w=m,!S)return;let g=Date.now(),x=hY(m,g).filter((A)=>!A.recurring&&!_.has(A.id)&&(!G||G(A)));if(x.length>0){for(let A of x)_.add(A.id),v.set(A.id,1/0);if(d("tengu_scheduled_task_missed",{count:x.length,taskIds:x.map((A)=>A.id).join(",")}),J)J(x);else Z(xY(x));rZ(x.map((A)=>A.id),K).catch((A)=>b(`[ScheduledTasks] failed to remove missed tasks: ${A}`)),b(`[ScheduledTasks] surfaced ${x.length} missed one-shot task(s)`)}}function l(){if(z?.())return;if(W()&&!X)return;let S=Date.now(),m=new Set,g=[],x=B?.()??WZ;function A(N,R){if(G&&!G(N))return;if(m.add(N.id),P.has(N.id))return;let h=v.get(N.id);if(h===void 0)h=N.recurring?oZ(N.cron,N.lastFiredAt??N.createdAt,N.id,x)??1/0:SY(N.cron,N.createdAt,N.id,x)??1/0,v.set(N.id,h),b(`[ScheduledTasks] scheduled ${N.id} for ${h===1/0?"never":new Date(h).toISOString()}`);if(S<h)return;if(b(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),d("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id}),V)V(N);else Z(N.prompt);let r=kY(N,S,x.recurringMaxAgeMs);if(r){let t=Math.floor((S-N.createdAt)/1000/60/60);b(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),d("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!r){let t=oZ(N.cron,S,N.id,x)??1/0;if(v.set(N.id,t),!R)g.push(N.id)}else if(R)IY([N.id]),v.delete(N.id);else P.add(N.id),rZ([N.id],K).catch((t)=>b(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>P.delete(N.id)),v.delete(N.id)}if(O){for(let N of w)A(N,!1);if(g.length>0){for(let N of g)P.add(N);fY(g,S,K).catch((N)=>b(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of g)P.delete(N)})}}if(K===void 0)for(let N of bY())A(N,!0);if(m.size===0){v.clear();return}for(let N of v.keys())if(!m.has(N))v.delete(N)}async function n(){if(T)return;if(C)clearInterval(C),C=null;let{default:S}=await import("./index-0.1.12-cpv0hf3f.mjs");if(T)return;if(O=await iZ(L).catch(()=>!1),T){if(O)O=!1,LZ(L);return}if(!O)$=setInterval(()=>{iZ(L).then((g)=>{if(T){if(g)LZ(L);return}if(g){if(O=!0,$)clearInterval($),$=null}}).catch((g)=>b(String(g),{level:"error"}))},DW),$.unref?.();j(!0);let m=TY(K);y=S.watch(m,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:qW},ignorePermissionErrors:!0}),y.on("add",()=>void j(!1)),y.on("change",()=>void j(!1)),y.on("unlink",()=>{if(!T)w=[],v.clear()}),D=setInterval(l,FY),D.unref?.()}return{start(){if(T=!1,K!==void 0){b(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${jZ(K)}`),n();return}if(b(`[ScheduledTasks] scheduler start() — enabled=${zZ()}, hasTasks=${jZ()}`),!zZ()&&(X||jZ()))MY(!0);if(zZ()){n();return}C=setInterval((S)=>{if(zZ())S()},FY,n),C.unref?.()},stop(){if(T=!0,C)clearInterval(C),C=null;if(D)clearInterval(D),D=null;if($)clearInterval($),$=null;if(y?.close(),y=null,O)O=!1,LZ(L)},getNextFireTime(){let S=1/0;for(let m of v.values())if(m<S)S=m;return S===1/0?null:S}}}function xY(Q){let Z=Q.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claude/scheduled_tasks.json.
|
|
10
|
+
|
|
11
|
+
Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Q.map((V)=>{let J=`[${CY(V.cron)}, created ${new Date(V.createdAt).toLocaleString()}]`,K=(V.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),H="`".repeat(Math.max(3,K+1));return`${J}
|
|
12
|
+
${H}
|
|
13
|
+
${V.prompt}
|
|
14
|
+
${H}`});return`${W}
|
|
15
|
+
|
|
16
|
+
${X.join(`
|
|
17
|
+
|
|
18
|
+
`)}`}var FY=1000,qW=300,DW=5000;var _W=AZ(()=>{BZ();_Z();zW();AY();jY();KZ()});G0();function rW(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let W="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?T9(Z):Z,uuid:W}}function T9(Q){if(!Q.some(V0))return Q;return Q.map((Z)=>{if(!V0(Z))return Z;let W=Z.source,X=typeof W.mediaType==="string"&&W.mediaType?W.mediaType:K0(Z.source.data);return{...Z,source:{type:"base64",media_type:X,data:Z.source.data}}})}function V0(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}GZ();KZ();OZ();h0();XQ();var U6=q(()=>k.object({tool_name:k.string().describe("The name of the tool requesting permission"),input:k.record(k.string(),k.unknown()).describe("The input for the tool"),tool_use_id:k.string().optional().describe("The unique tool use request ID")})),x0=q(()=>k.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),VQ=q(()=>k.object({behavior:k.literal("allow"),updatedInput:k.record(k.string(),k.unknown()),updatedPermissions:k.array(k0()).optional().catch((Q)=>{b(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:k.string().optional(),decisionClassification:x0()})),KQ=q(()=>k.object({behavior:k.literal("deny"),message:k.string(),interrupt:k.boolean().optional(),toolUseID:k.string().optional(),decisionClassification:x0()})),kZ=q(()=>k.union([VQ(),KQ()]));function yZ(Q,Z,W,X){let V={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let J=Q.updatedPermissions;if(J)X.setAppState((H)=>({...H,toolPermissionContext:UZ(H.toolPermissionContext,J)})),EZ(J);let K=Object.keys(Q.updatedInput).length>0?Q.updatedInput:W;return{...Q,updatedInput:K,decisionReason:V}}else if(Q.behavior==="deny"&&Q.interrupt)b(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),X.abortController.abort();return{...Q,decisionReason:V}}import{randomUUID as cZ}from"crypto";GZ();OZ();GQ();var JQ=q(()=>Y.unknown()),HQ=q(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),NQ=q(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(c0(),Y.array(HQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),a0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),j6=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(uZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(d0()),account:l0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:t0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),BQ=q(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),LQ=q(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(u0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),zQ=q(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:m0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),qQ=q(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),DQ=q(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),vQ=q(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),F6=q(()=>Y.object({mcpServers:Y.array(xZ())}).describe("Response containing the current status of all MCP server connections.")),AQ=q(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),_Q=q(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),wQ=q(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),M6=q(()=>Y.object({categories:Y.array(_Q()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(wQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),OQ=q(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),b6=q(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),UQ=q(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),I6=q(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),EQ=q(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),yQ=q(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:g0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),PQ=q(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:JQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),$Q=q(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),p0())}).describe("Replaces the set of dynamically managed MCP servers.")),C6=q(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),jQ=q(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),T6=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(uZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(xZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),FQ=q(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),MQ=q(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),bQ=q(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),IQ=q(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),CQ=q(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),R6=q(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),TQ=q(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),e0=q(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),RQ=q(()=>Y.union([BQ(),LQ(),NQ(),zQ(),qQ(),DQ(),vQ(),AQ(),yQ(),PQ(),OQ(),UQ(),EQ(),$Q(),jQ(),FQ(),MQ(),bQ(),IQ(),CQ(),TQ()])),mZ=q(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:RQ()})),fQ=q(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),SQ=q(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>mZ())).optional()})),ZY=q(()=>Y.object({type:Y.literal("control_response"),response:Y.union([fQ(),SQ()])})),hQ=q(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),YY=q(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),kQ=q(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),f6=q(()=>Y.union([s0(),i0(),r0(),o0(),ZY(),mZ(),hQ(),YY()])),S6=q(()=>Y.union([n0(),mZ(),ZY(),YY(),kQ()]));lQ();KZ();mQ();gZ();dQ();uQ();PZ();GZ();cQ();zY();h0();PZ();gQ();PZ();var xQ=/\u2028|\u2029/g;function pQ(Q){return Q.replace(xQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function QY(Q){return pQ(ZZ(Q))}var aQ="SandboxNetworkAccess";function nQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function iQ(Q,Z,W,X){let V;try{V=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{V=Q.name}return{tool_name:Q.name,action_description:V,tool_use_id:W,request_id:X,input:Z}}var rQ=1000;class oQ{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new HY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>rQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
|
|
19
|
+
`)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let W=Q.indexOf(`
|
|
20
|
+
`);if(W===-1)break;let X=Q.slice(0,W);Q=Q.slice(W+1);let V=await this.processLine(X);if(V)GY("info","cli_stdin_message_parsed",{type:V.type}),yield V}}.bind(this);yield*Z();for await(let W of this.input)Q+=W,yield*Z();if(Q){let W=await this.processLine(Q);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")W.reject(Error(Q.response.error));else{let X=Q.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(V){W.reject(V)}else W.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=DY(VY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[X,V]of Object.entries(Z.variables))process.env[X]=V;b(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)JY(W,"completed");let X=this.pendingRequests.get(Z.response.request_id);if(!X){let K=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof K==="string"&&this.resolvedToolUseIds.has(K)){b(`Ignoring duplicate control_response for already-resolved toolUseID=${K} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z.response.request_id),X.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){X.reject(Error(Z.response.error));return}let V=Z.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(J){X.reject(J)}else X.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){b(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)WY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")WY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){KY(QY(Q)+`
|
|
21
|
+
`)}async sendRequest(Q,Z,W,X=cZ()){let V={type:"control_request",request_id:X,request:Q};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(V),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(V);let J=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let K=this.pendingRequests.get(X);if(K)this.trackResolvedToolUseId(K.request),K.reject(new XY)};if(W)W.addEventListener("abort",J,{once:!0});try{return await new Promise((K,H)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Q},resolve:(B)=>{K(B)},reject:H,schema:Z})})}finally{if(W)W.removeEventListener("abort",J);this.pendingRequests.delete(X)}}createCanUseTool(Q){return async(Z,W,X,V,J,K)=>{let H=K??await NY(Z,W,X,V,J);if(H.behavior==="allow"||H.behavior==="deny")return H;let B=new AbortController,z=X.abortController.signal,G=()=>B.abort();z.addEventListener("abort",G,{once:!0});try{let L=sQ(Z.name,J,W,X,H.suggestions).then((P)=>({source:"hook",decision:P})),w=cZ();Q?.(iQ(Z,W,J,w));let v=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:H.suggestions,blocked_path:H.blockedPath,decision_reason:nQ(H.decisionReason),tool_use_id:J,agent_id:X.agentId},kZ(),B.signal,w).then((P)=>({source:"sdk",result:P})),_=await Promise.race([L,v]);if(_.source==="hook"){if(_.decision)return v.catch(()=>{}),B.abort(),_.decision;let P=await v;return yZ(P.result,Z,W,X)}return yZ(_.result,Z,W,X)}catch(L){return yZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:J},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)qY("running");z.removeEventListener("abort",G)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(W,X,V)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:W,tool_use_id:X||void 0},BY(),V)}catch(J){return console.error(`Error in hook callback ${Q}:`,J),{}}}}}async handleElicitation(Q,Z,W,X,V,J,K){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:V,url:J,elicitation_id:K,requested_schema:W},e0(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:aQ,input:{host:Q.host},tool_use_id:cZ(),description:`Allow network connection to ${Q.host}?`},kZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function WY(Q){console.error(Q),process.exit(1)}async function sQ(Q,Z,W,X,V){let K=X.getAppState().toolPermissionContext.mode,H=LY(Q,Z,W,X,K,V,X.abortController.signal);for await(let B of H)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let G=z.updatedInput||W,L=z.updatedPermissions??[];if(L.length>0){EZ(L);let w=X.getAppState(),v=UZ(w.toolPermissionContext,L);X.setAppState((_)=>{if(_.toolPermissionContext===v)return _;return{..._,toolPermissionContext:v}})}return{behavior:"allow",updatedInput:G,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}BZ();PW();OW();yW();wW();EW();UW();import{randomUUID as $W}from"crypto";function jW(Q){return Q===mY?cY:Q}function SX(Q){let W=gY()?.outputStyle??aY,X={type:"system",subtype:"init",cwd:uY(),session_id:NZ(),tools:Q.tools.map((V)=>jW(V.name)),mcp_servers:Q.mcpClients.map((V)=>({name:V.name,status:V.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),apiKeySource:lY().source,betas:pY(),claude_code_version:"99.0.0",output_style:W,agents:Q.agents.map((V)=>V.agentType),skills:Q.skills.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),plugins:Q.plugins.map((V)=>({name:V.name,path:V.path,source:V.source})),uuid:$W()};return X.fast_mode_state=dY(Q.model,Q.fastMode),X}var nY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function FW(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let X=[],V=null,J=0,K=(G)=>!!G&&/[\p{L}\p{N}_]/u.test(G);for(let G=0;G<Q.length;G++){let L=Q[G];if(V){if(V==="["&&L==="["){J=G;continue}if(L!==nY[V])continue;if(V==="'"&&K(Q[G+1]))continue;X.push({start:J,end:G+1}),V=null}else if(L==="<"&&G+1<Q.length&&/[a-zA-Z/]/.test(Q[G+1])||L==="'"&&!K(Q[G-1])||L!=="<"&&L!=="'"&&L in nY)V=L,J=G}let H=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let G of z){if(G.index===void 0)continue;let L=G.index,w=L+G[0].length;if(X.some((P)=>L>=P.start&&L<P.end))continue;let v=Q[L-1],_=Q[w];if(v==="/"||v==="\\"||v==="-")continue;if(_==="/"||_==="\\"||_==="-"||_==="?")continue;if(_==="."&&K(Q[w+1]))continue;H.push({word:G[0],start:L,end:w})}return H}function kX(Q){return FW(Q,"ultrareview")}_Z();wZ();kW();SW();hW();CW();zY();G0();TW();wZ();fW();RW();import{randomUUID as xW}from"crypto";BZ();_Z();wZ();MW();bW();import{randomUUID as IW}from"crypto";function iY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function rY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function Z9(Q,Z,W,X,V,J,K){let H=IW();oY(H);let B=typeof Q==="string"?Q:Q.find((v)=>v.type==="text")?.text||"";eY(B);let z=typeof Q==="string"?Q:Q.findLast((v)=>v.type==="text")?.text||"";if(z)tY("user_prompt",{prompt_length:String(z.length),prompt:sY(z),"prompt.id":H});let G=iY(B),L=rY(B);if(d("tengu_input_prompt",{is_negative:G,is_keep_going:L}),Z.length>0){let v=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...v,...Z],uuid:V,imagePasteIds:W.length>0?W:void 0,permissionMode:J,isMeta:K||void 0}),...X],shouldQuery:!0}}return{messages:[s({content:Q,uuid:V,permissionMode:J,isMeta:K||void 0}),...X],shouldQuery:!0}}async function BV({input:Q,preExpansionInput:Z,mode:W,setToolJSX:X,context:V,pastedContents:J,ideSelection:K,messages:H,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:G,querySource:L,canUseTool:w,skipSlashCommands:v,bridgeOrigin:_,isMeta:P,skipAttachments:C}){let D=typeof Q==="string"?Q:null;if(W==="prompt"&&D!==null&&!P)B?.(D);i("query_process_user_input_base_start");let $=V.getAppState(),y=await pW(Q,W,X,V,J,K,H,z,G,L,w,$.toolPermissionContext.mode,v,_,P,C,Z);if(i("query_process_user_input_base_end"),!y.shouldQuery)return y;i("query_hooks_start");let T=J9(Q)||"";for await(let O of D9(T,$.toolPermissionContext.mode,V,V.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let j=q9(O.blockingError);return{messages:[H9(`${j}
|
|
22
|
+
|
|
23
|
+
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let j=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:j})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(G9({type:"hook_additional_context",content:O.additionalContexts.map(Y9),hookName:"UserPromptSubmit",toolUseID:`hook-${xW()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:Y9(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return i("query_hooks_end"),y}var tZ=1e4;function Y9(Q){if(Q.length>tZ)return`${Q.substring(0,tZ)}… [output truncated - exceeded ${tZ} characters]`;return Q}async function pW(Q,Z,W,X,V,J,K,H,B,z,G,L,w,v,_,P,C){let D=null,$=[],y=[],T=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){i("query_image_processing_start");let A=[];for(let R of Q)if(R.type==="image"){let h=await Z0(R);if(h.dimensions){let r=FZ(h.dimensions);if(r)y.push(r)}A.push(h.block)}else A.push(R);T=A,i("query_image_processing_end");let N=A[A.length-1];if(N?.type==="text")D=N.text,$=A.slice(0,-1);else $=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=V?Object.values(V).filter(V9):[],j=O.map((A)=>A.id),l=V?await W9(V):new Map;i("query_pasted_image_processing_start");let n=await Promise.all(O.map(async(A)=>{let N={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return d("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await Z0(N),originalDimensions:A.dimensions,sourcePath:A.sourcePath??l.get(A.id)}})),S=[];for(let{resized:A,originalDimensions:N,sourcePath:R}of n){if(A.dimensions){let h=FZ(A.dimensions,R);if(h)y.push(h)}else if(N){let h=FZ(N,R);if(h)y.push(h)}else if(R)y.push(`[Image source: ${R}]`);S.push(A.block)}i("query_pasted_image_processing_end");let m=w;if(v&&D!==null&&D.startsWith("/")){let A=X9(D),N=A?z9(A.commandName,X.options.commands):void 0;if(N)if(L9(N))m=!1;else{let R=`/${B9(N)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:H}),N9(`<local-command-stdout>${R}</local-command-stdout>`)],shouldQuery:!1,resultText:R}}}let g=!P&&D!==null&&(Z!=="prompt"||m||!D.startsWith("/"));i("query_attachment_loading_start");let x=g?await Q9(K9(D,X,J??null,[],K,z)):[];if(i("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.1.12-3s8a2x65.mjs");return eZ(await A(D,$,x,X,W),y)}if(D!==null&&!m&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-0.1.12-m9sh3sjt.mjs"),N=await A(D,$,S,x,X,W,H,B,G);return eZ(N,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),N=x.find((R)=>R.attachment.type==="agent_mention");if(N){let R=`@agent-${N.attachment.agentType}`,h=A===R,r=A.startsWith(R)&&!h;d("tengu_subagent_at_mention",{is_subagent_only:h,is_prefix:r})}}return eZ(Z9(T,S,j,x,H,L,_),y)}function eZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Q}gW();BZ();KZ();gZ();mW();uW();w0();dW();cW();import{isAbsolute as lW,resolve as aW}from"path";function nW(Q,Z,W){let X=[],V=[],J=[];for(let[K,H]of Object.entries(Q)){let B=Z[K],z=P9(H.source,W?.projectRoot);if(!B)X.push(K);else if(H.sourceIsFallback)J.push(K);else if(!O9(z,B.source))V.push({name:K,declaredSource:z,materializedSource:B.source});else J.push(K)}return{missing:X,sourceChanged:V,upToDate:J}}async function yV(Q){let Z=U9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await E9()}catch(G){e(G),W={}}let X=nW(Z,W,{projectRoot:Y0()}),V=[...X.missing.map((G)=>({name:G,source:P9(Z[G].source),action:"install"})),...X.sourceChanged.map(({name:G,declaredSource:L})=>({name:G,source:L,action:"update"}))],J=[],K=[];for(let G of V){if(Q?.skip?.(G.name,G.source)){J.push(G.name);continue}if(G.action==="update"&&w9(G.source)&&!await _9(G.source.path)){b(`[reconcile] '${G.name}' declared path does not exist; keeping materialized entry`),J.push(G.name);continue}K.push(G)}if(K.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:J};b(`[reconcile] ${K.length} marketplace(s): ${K.map((G)=>`${G.name}(${G.action})`).join(", ")}`);let H=[],B=[],z=[];for(let G=0;G<K.length;G++){let{name:L,source:w,action:v}=K[G];Q?.onProgress?.({type:"installing",name:L,action:v,index:G+1,total:K.length});try{let _=await y9(w);if(v==="install")H.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:_.alreadyMaterialized})}catch(_){let P=v9(_);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(_)}}return{installed:H,updated:B,failed:z,upToDate:X.upToDate,skipped:J}}function P9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!lW(Q.path)){let W=Z??Y0(),X=A9(W);return{...Q,path:aW(X??W,Q.path)}}return Q}
|
|
24
|
+
export{rW as Z,jW as _,SX as $,o9 as aa,S0 as ba,YQ as ca,QQ as da,WQ as ea,kX as fa,BV as ga,kZ as ha,yZ as ia,QY as ja,oQ as ka,nW as la,yV as ma,QW as na,WW as oa,XW as pa,vW as qa,AW as ra,_W as sa};
|